diff --git a/.eslintrc.cjs b/.eslintrc.cjs
new file mode 100644
index 000000000..6f40582dd
--- /dev/null
+++ b/.eslintrc.cjs
@@ -0,0 +1,15 @@
+/* eslint-env node */
+require('@rushstack/eslint-patch/modern-module-resolution')
+
+module.exports = {
+ root: true,
+ 'extends': [
+ 'plugin:vue/vue3-essential',
+ 'eslint:recommended',
+ '@vue/eslint-config-typescript',
+ '@vue/eslint-config-prettier/skip-formatting'
+ ],
+ parserOptions: {
+ ecmaVersion: 'latest'
+ }
+}
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
new file mode 100644
index 000000000..508e9890c
--- /dev/null
+++ b/.github/workflows/docs.yml
@@ -0,0 +1,51 @@
+name: docs
+
+on:
+ # trigger deployment on every push to main branch
+ push:
+ branches: [main]
+ # trigger deployment manually
+ workflow_dispatch:
+
+jobs:
+ docs:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ # fetch all commits to get last updated time or other git log info
+ fetch-depth: 0
+
+ - name: Setup pnpm
+ uses: pnpm/action-setup@v2
+ with:
+ # choose pnpm version to use
+ version: 8
+ # install deps with pnpm
+ run_install: true
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ # choose node.js version to use
+ node-version: 20
+ # cache deps for pnpm
+ cache: pnpm
+
+ # run build script
+ - name: Build VuePress site
+ run: pnpm docs:build
+
+ # please check out the docs of the workflow for more details
+ # @see https://github.com/crazy-max/ghaction-github-pages
+ - name: Deploy to GitHub Pages
+ uses: crazy-max/ghaction-github-pages@v4
+ with:
+ # deploy to gh-pages branch
+ target_branch: gh-pages
+ # deploy the default output dir of VuePress
+ build_dir: docs/.vuepress/dist
+ env:
+ # @see https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000..3dfa8ebe0
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,31 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+lerna-debug.log*
+
+node_modules
+.DS_Store
+dist
+dist-ssr
+dist-app
+coverage
+*.local
+
+/cypress/videos/
+/cypress/screenshots/
+
+# Editor directories and files
+.vscode/*
+!.vscode/extensions.json
+.idea
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?
+
+*.tsbuildinfo
diff --git a/.npmignore b/.npmignore
index 55ea34366..669db287a 100644
--- a/.npmignore
+++ b/.npmignore
@@ -1,8 +1,8 @@
-.idea
-.gitignore
-node_modules/
-src/
-docs/
-test/
-*.log
-.tmp
\ No newline at end of file
+# Ignore everything
+*
+
+# Don't ignore the dist/ folder's content
+!dist/*
+
+# Don't ignore the package.json file
+!package.json
diff --git a/.nvmrc b/.nvmrc
new file mode 100644
index 000000000..7950a4457
--- /dev/null
+++ b/.nvmrc
@@ -0,0 +1 @@
+v18.17.0
diff --git a/.prettierrc.json b/.prettierrc.json
new file mode 100644
index 000000000..66e23359c
--- /dev/null
+++ b/.prettierrc.json
@@ -0,0 +1,8 @@
+{
+ "$schema": "https://json.schemastore.org/prettierrc",
+ "semi": false,
+ "tabWidth": 2,
+ "singleQuote": true,
+ "printWidth": 100,
+ "trailingComma": "none"
+}
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index 06bafe042..000000000
--- a/LICENSE
+++ /dev/null
@@ -1,20 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2017 Ajeh Emeke
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/README.md b/README.md
index 428ebe78b..80ef0e067 100644
--- a/README.md
+++ b/README.md
@@ -1,244 +1,22 @@
-# Vuejs Dialog Plugin
+# Vuejs Dialog
> A lightweight, promise based alert, prompt and confirm dialog.
[](https://badge.fury.io/js/vuejs-dialog)
[](https://travis-ci.org/Godofbrowser/vuejs-dialog)
[](https://scrutinizer-ci.com/g/Godofbrowser/vuejs-dialog/?branch=master)
-[]()
+[](https://github.com/Godofbrowser/vuejs-dialog/archive/master.zip)
-
-
+The content below is for the Vue3 compatible version of vuejs-dialog, you can find the Vue2 compatible version [here](https://github.com/Godofbrowser/vuejs-dialog/tree/v1.x)
+| Vue Version | Plugin Version |
+|-------------|-----------------------------------------------------------------|
+| Vue 2 | [1.x](https://github.com/Godofbrowser/vuejs-dialog/tree/v1.x) |
+| Vue 3 | [2.x](https://github.com/Godofbrowser/vuejs-dialog/tree/master) |
-## Demo
+## Recommended IDE Setup
-[https://godofbrowser.github.io/vuejs-dialog/](https://godofbrowser.github.io/vuejs-dialog/)
-
-## Installation
-
-#### HTML
-Include the script:
-
- ```html
- // Include vuejs
-
-
- // Include the vuejs-dialog plugin
-
-
-
- ```
-#### NPM
-```javascript
-// installation via npm
-npm install vuejs-dialog
-
-// import into project
-import Vue from "vue"
-import VuejsDialog from "vuejs-dialog"
-
-// Tell Vue to install the plugin.
-Vue.use(VuejsDialog)
-```
-
-## Basic Usage
-
-```javascript
-// Anywhere in your Vuejs App.
-
-this.$dialog.confirm('Please confirm to continue')
- .then(function () {
- console.log('Clicked on proceed')
- })
- .catch(function () {
- console.log('Clicked on cancel')
- });
-```
-
-
-## Usage with ajax - Loader enabled
-```javascript
-// Anywhere in your Vuejs App.
-
-this.$dialog.confirm("If you delete this record, it'll be gone forever.", {
- loader: true // default: false - when set to true, the proceed button shows a loader when clicked.
- // And a dialog object will be passed to the then() callback
-})
- .then((dialog) => {
- // Triggered when proceed button is clicked
-
- // dialog.loading(false) // stops the proceed button's loader
- // dialog.loading(true) // starts the proceed button's loader again
- // dialog.close() // stops the loader and close the dialog
-
- // do some stuff like ajax request.
- setTimeout(() => {
- console.log('Delete action completed ');
- dialog.close();
- }, 2500);
-
- })
- .catch(() => {
- // Triggered when cancel button is clicked
-
- console.log('Delete aborted');
- });
-```
-
-## Usage as a directive
-
-__If you don't pass a message, the global/default message would be used.__
-```html
-
-```
-
-```html
-// Callbacks can be provided
-// Note: If "loader" is set to true, the makeAdmin callback will receive a "dialog" object
-// Which is useful for closing the dialog when transaction is complete.
-
-```
-```javascript
-methods: {
- makeAdmin: function() {
- // Do stuffs
-
- },
- doNothing: function() {
- // Do nothing or some other stuffs
- }
-}
-```
-
-__A more practical use of ths `v-confirm` directive inside a loop__
-
-```html
-// While looping through users
-
-```
-```javascript
-methods: {
- makeAdmin: function(dialog, user) {
- // Make user admin from the backend
- /* tellServerToMakeAdmin(user) */
-
- // When completed, close the dialog
- /* dialog.close() */
-
- },
- doNothing: function() {
- // Do nothing or some other stuffs
- }
-}
-```
-
-__For v-confirm directive, if an "OK" callback is not provided, the default event would be triggered.__
-
-```html
-// Default Behaviour when used on links
-Go to example.com
-
-```
-
-## Setting a dialog title (new)
-
-You can now set a dialog title by passing your message as an object instead of a string.
-The message object should contain a `title` and `body`
-
-```javascript
-let message = {
- title: 'Vuejs Dialog Plugin',
- body: 'A lightweight, promise based alert, prompt and confirm dialog'
-}
-
-this.$dialog.confirm(message)
-```
-
-
-### Options
-```javascript
-// Parameters and options
-
-let message = "Are you sure?";
-
-let options = {
- html: false, // set to true if your message contains HTML tags. eg: "Delete Foo ?"
- loader: false, // set to true if you want the dailog to show a loader after click on "proceed"
- reverse: false, // switch the button positions (left to right, and vise versa)
- okText: 'Continue',
- cancelText: 'Close',
- animation: 'zoom', // Available: "zoom", "bounce", "fade"
- type: 'basic', // coming soon: 'soft', 'hard'
- verification: 'continue', // for hard confirm, user will be prompted to type this to enable the proceed button
- verificationHelp: 'Type "[+:verification]" below to confirm', // Verification help text. [+:verification] will be matched with 'options.verification' (i.e 'Type "continue" below to confirm')
- clicksCount: 3, // for soft confirm, user will be asked to click on "proceed" btn 3 times before actually proceeding
- backdropClose: false // set to true to close the dialog when clicking outside of the dialog window, i.e. click landing on the mask
-};
-
-this.$dialog.confirm(message, options)
- .then(function () {
- // This will be triggered when user clicks on proceed
- })
- .catch(function () {
- // This will be triggered when user clicks on cancel
- });
-```
-### Global Configuration
-```javascript
-// You can also set all your defaults at the point of installation.
-// This will be your global configuration
-
-Vue.use(VuejsDialog, {
- html: true,
- loader: true,
- okText: 'Proceed',
- cancelText: 'Cancel',
- animation: 'bounce',
-})
-
-// Please note that local configurations will be considered before global configurations.
-// This gives you the flexibility of overriding the global config on individual call.
-```
-
-### CSS Override
-
-Please use basic css, ex:
-```css
-.dg-btn--ok {
- border-color: green;
- }
-
-.dg-btn-loader .dg-circle {
- background-color: green;
-}
-```
-
-### Pro tip
-You can use any of the options in your verification help text. Example:
-
-```javascript
-this.$dialog.confirm($message, {
- verificationHelp: 'Enter "[+:verification]" below and click on "[+:okText]"',
- type: 'hard'
-})
-```
-
-# License
-
-[MIT](http://opensource.org/licenses/MIT)
-
-## Contributing
-
-Let's make it better :)
\ No newline at end of file
+- [Documentation](https://example.com/)
+- [Live Demos](https://example.com/)
+- [2.x](https://github.com/Godofbrowser/vuejs-dialog/tree/master)
+- Older Vue2 compatible version [here](https://github.com/Godofbrowser/vuejs-dialog/tree/v1.x)
diff --git a/dist/vuejs-dialog.min.js b/dist/vuejs-dialog.min.js
deleted file mode 100644
index 92bca60d5..000000000
--- a/dist/vuejs-dialog.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VuejsDialog=e():t.VuejsDialog=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=45)}([function(t,e,n){var o=n(25)("wks"),r=n(17),i=n(1).Symbol,a="function"==typeof i;(t.exports=function(t){return o[t]||(o[t]=a&&i[t]||(a?i:r)("Symbol."+t))}).store=o},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var o=n(10),r=n(37),i=n(22),a=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(o(t),e=i(e,!0),o(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e,n){var o=n(2),r=n(12);t.exports=n(6)?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){t.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var o=n(42),r=n(20);t.exports=function(t){return o(r(t))}},function(t,e){t.exports=function(t,e,n,o){var r,i=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(r=t,i=t.default);var s="function"==typeof i?i.options:i;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),n&&(s._scopeId=n),o){var c=s.computed||(s.computed={});Object.keys(o).forEach(function(t){var e=o[t];c[t]=function(){return e}})}return{esModule:r,exports:i,options:s}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.DIALOG_TYPES={ALERT:"alert",CONFIRM:"confirm",PROMPT:"prompt"},r=e.CONFIRM_TYPES={BASIC:"basic",SOFT:"soft",HARD:"hard"};e.ANIMATION_TYPES={FADE:"dg-fade",ZOOM:"dg-zoom",BOUNCE:"dg-bounce"},e.DEFAULT_OPTIONS={html:!1,loader:!1,reverse:!1,backdropClose:!1,okText:"Continue",cancelText:"Close",type:r.BASIC,window:o.CONFIRM,message:"Proceed with the request?",clicksCount:3,animation:"zoom",verification:"continue",verificationHelp:'Type "[+:verification]" below to confirm'}},function(t,e,n){var o=n(15);t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e,n){var o=n(1),r=n(4),i=n(36),a=n(5),s=function(t,e,n){var c,u,f,l=t&s.F,d=t&s.G,p=t&s.S,h=t&s.P,m=t&s.B,g=t&s.W,v=d?r:r[e]||(r[e]={}),y=v.prototype,b=d?o:p?o[e]:(o[e]||{}).prototype;d&&(n=e);for(c in n)(u=!l&&b&&void 0!==b[c])&&c in v||(f=u?b[c]:n[c],v[c]=d&&"function"!=typeof b[c]?n[c]:m&&u?i(f,o):g&&b[c]==f?function(t){var e=function(e,n,o){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,o)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):h&&"function"==typeof f?i(Function.call,f):f,h&&((v.virtual||(v.virtual={}))[c]=f,t&s.R&&y&&!y[c]&&a(y,c,f)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var o=n(41),r=n(26);t.exports=Object.keys||function(t){return o(t,r)}},function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=!0},function(t,e,n){var o=n(15);t.exports=function(t,e){if(!o(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!o(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var o=n(25)("keys"),r=n(17);t.exports=function(t){return o[t]||(o[t]=r(t))}},function(t,e,n){var o=n(1),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});t.exports=function(t){return r[t]||(r[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var o=n(2).f,r=n(3),i=n(0)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,i)&&o(t,i,{configurable:!0,value:e})}},function(t,e,n){var o=n(20);t.exports=function(t){return Object(o(t))}},function(t,e,n){e.f=n(0)},function(t,e,n){var o=n(1),r=n(4),i=n(21),a=n(29),s=n(2).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.firstIndex=e.clickNode=e.mergeObjs=e.cloneObj=e.noop=void 0;var r=n(96),i=o(r),a=n(106),s=o(a),c=(e.noop=function(){},e.cloneObj=function(t){return(0,s.default)({},t)});e.mergeObjs=function(){for(var t=[],e=0;e=e.length?{value:void 0,done:!0}:(t=o(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var o=n(21),r=n(14),i=n(39),a=n(5),s=n(3),c=n(13),u=n(73),f=n(27),l=n(78),d=n(0)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,m,g,v,y){u(n,e,m);var b,_,w,x=function(t){if(!p&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",O="values"==g,T=!1,S=t.prototype,E=S[d]||S["@@iterator"]||g&&S[g],C=E||x(g),j=g?O?x("entries"):C:void 0,M="Array"==e?S.entries||E:E;if(M&&(w=l(M.call(new t)))!==Object.prototype&&w.next&&(f(w,k,!0),o||s(w,d)||a(w,d,h)),O&&E&&"values"!==E.name&&(T=!0,C=function(){return E.call(this)}),o&&!y||!p&&!T&&S[d]||a(S,d,C),c[e]=C,c[k]=h,g)if(b={values:O?C:x("values"),keys:v?C:x("keys"),entries:j},y)for(_ in b)_ in S||i(S,_,b[_]);else r(r.P+r.F*(p||T),e,b);return b}},function(t,e,n){var o=n(72);t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){t.exports=!n(6)&&!n(11)(function(){return 7!=Object.defineProperty(n(38)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var o=n(15),r=n(1).document,i=o(r)&&o(r.createElement);t.exports=function(t){return i?r.createElement(t):{}}},function(t,e,n){t.exports=n(5)},function(t,e,n){var o=n(10),r=n(74),i=n(26),a=n(24)("IE_PROTO"),s=function(){},c=function(){var t,e=n(38)("iframe"),o=i.length;for(e.style.display="none",n(77).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// dialog.vue?7a059c2e","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./dialog-window.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler?id=data-v-2c4e0b92!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./dialog-window.vue\"),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/plugin/components/dialog-window.vue\n// module id = 58\n// module chunks = 0","\r\n
\r\n \r\n
\r\n
\r\n \r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n
{{ messageTitle }}
\r\n \r\n\r\n \r\n
{{ messageBody }}
\r\n\r\n \r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// dialog-window.vue?0ffbb71a","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./ok-btn.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler?id=data-v-424ea784!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./ok-btn.vue\"),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/plugin/components/ok-btn.vue\n// module id = 60\n// module chunks = 0","\r\n \r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// ok-btn.vue?57afeeb9","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n null,\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler?id=data-v-0a4b5bf7!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./btn-loader.vue\"),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/plugin/components/btn-loader.vue\n// module id = 62\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _vm._m(0)\n},staticRenderFns: [function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('span', {\n staticClass: \"dg-btn-loader\"\n }, [_c('span', {\n staticClass: \"dg-circles\"\n }, [_c('span', {\n staticClass: \"dg-circle\"\n }), _vm._v(\" \"), _c('span', {\n staticClass: \"dg-circle\"\n }), _vm._v(\" \"), _c('span', {\n staticClass: \"dg-circle\"\n })])])\n}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler.js?id=data-v-0a4b5bf7!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/plugin/components/btn-loader.vue\n// module id = 63\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return (_vm.enabled) ? _c('button', {\n ref: \"btn\",\n class: ['dg-btn', 'dg-btn--ok', {\n 'dg-btn--loading': _vm.loading\n }, {\n 'dg-pull-right': !_vm.options.reverse\n }],\n attrs: {\n \"disabled\": _vm.is_disabled\n },\n on: {\n \"click\": function($event) {\n $event.preventDefault();\n _vm.proceed()\n }\n }\n }, [_c('span', {\n staticClass: \"dg-btn-content\"\n }, [_vm._t(\"default\"), _vm._v(\" \"), (_vm.soft_confirm) ? _c('span', [_vm._v(\"(\" + _vm._s(_vm.clicks_remaining) + \")\")]) : _vm._e()], 2), _vm._v(\" \"), (_vm.loading) ? _c(\"btn-loader\", {\n tag: \"span\"\n }) : _vm._e()]) : _vm._e()\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler.js?id=data-v-424ea784!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/plugin/components/ok-btn.vue\n// module id = 64\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./cancel-btn.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler?id=data-v-68968d48!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./cancel-btn.vue\"),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/plugin/components/cancel-btn.vue\n// module id = 65\n// module chunks = 0","\r\n \r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// cancel-btn.vue?09e77fa2","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return (_vm.enabled) ? _c('button', {\n ref: \"btn\",\n class: ['dg-btn', 'dg-btn--cancel', {\n 'dg-pull-right': _vm.options.reverse\n }],\n on: {\n \"click\": function($event) {\n $event.preventDefault();\n _vm.$emit('click')\n }\n }\n }, [_vm._t(\"default\")], 2) : _vm._e()\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler.js?id=data-v-68968d48!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/plugin/components/cancel-btn.vue\n// module id = 67\n// module chunks = 0","/**\r\n * Created by Emmy on 3/5/2018.\r\n */\r\n\r\nexport default {\r\n computed: {\r\n messageHasTitle(){\r\n let m = this.options.message\r\n return (typeof m === 'object' && m !== null) && m.title\r\n },\r\n messageTitle(){\r\n return this.messageHasTitle ? this.options.message.title : null\r\n },\r\n messageBody(){\r\n let m = this.options.message\r\n return (typeof m === 'string') ? m : (m.body || '')\r\n }\r\n }\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/plugin/js/mixins/message-mixin.js","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/symbol/iterator.js\n// module id = 69\n// module chunks = 0","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/_wks-ext').f('iterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/symbol/iterator.js\n// module id = 70\n// module chunks = 0","var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_string-at.js\n// module id = 71\n// module chunks = 0","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_a-function.js\n// module id = 72\n// module chunks = 0","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-create.js\n// module id = 73\n// module chunks = 0","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-dps.js\n// module id = 74\n// module chunks = 0","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_array-includes.js\n// module id = 75\n// module chunks = 0","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-absolute-index.js\n// module id = 76\n// module chunks = 0","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_html.js\n// module id = 77\n// module chunks = 0","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gpo.js\n// module id = 78\n// module chunks = 0","require('./es6.array.iterator');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar TO_STRING_TAG = require('./_wks')('toStringTag');\n\nvar DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +\n 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +\n 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +\n 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +\n 'TextTrackList,TouchList').split(',');\n\nfor (var i = 0; i < DOMIterables.length; i++) {\n var NAME = DOMIterables[i];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = Iterators.Array;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/web.dom.iterable.js\n// module id = 79\n// module chunks = 0","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.array.iterator.js\n// module id = 80\n// module chunks = 0","module.exports = function () { /* empty */ };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_add-to-unscopables.js\n// module id = 81\n// module chunks = 0","module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-step.js\n// module id = 82\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/symbol.js\n// module id = 83\n// module chunks = 0","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nrequire('../../modules/es7.symbol.async-iterator');\nrequire('../../modules/es7.symbol.observable');\nmodule.exports = require('../../modules/_core').Symbol;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/symbol/index.js\n// module id = 84\n// module chunks = 0","'use strict';\n// ECMAScript 6 symbols shim\nvar global = require('./_global');\nvar has = require('./_has');\nvar DESCRIPTORS = require('./_descriptors');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar META = require('./_meta').KEY;\nvar $fails = require('./_fails');\nvar shared = require('./_shared');\nvar setToStringTag = require('./_set-to-string-tag');\nvar uid = require('./_uid');\nvar wks = require('./_wks');\nvar wksExt = require('./_wks-ext');\nvar wksDefine = require('./_wks-define');\nvar enumKeys = require('./_enum-keys');\nvar isArray = require('./_is-array');\nvar anObject = require('./_an-object');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar createDesc = require('./_property-desc');\nvar _create = require('./_object-create');\nvar gOPNExt = require('./_object-gopn-ext');\nvar $GOPD = require('./_object-gopd');\nvar $DP = require('./_object-dp');\nvar $keys = require('./_object-keys');\nvar gOPD = $GOPD.f;\nvar dP = $DP.f;\nvar gOPN = gOPNExt.f;\nvar $Symbol = global.Symbol;\nvar $JSON = global.JSON;\nvar _stringify = $JSON && $JSON.stringify;\nvar PROTOTYPE = 'prototype';\nvar HIDDEN = wks('_hidden');\nvar TO_PRIMITIVE = wks('toPrimitive');\nvar isEnum = {}.propertyIsEnumerable;\nvar SymbolRegistry = shared('symbol-registry');\nvar AllSymbols = shared('symbols');\nvar OPSymbols = shared('op-symbols');\nvar ObjectProto = Object[PROTOTYPE];\nvar USE_NATIVE = typeof $Symbol == 'function';\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function () {\n return _create(dP({}, 'a', {\n get: function () { return dP(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (it, key, D) {\n var protoDesc = gOPD(ObjectProto, key);\n if (protoDesc) delete ObjectProto[key];\n dP(it, key, D);\n if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function (tag) {\n var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n sym._k = tag;\n return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D) {\n if (it === ObjectProto) $defineProperty(OPSymbols, key, D);\n anObject(it);\n key = toPrimitive(key, true);\n anObject(D);\n if (has(AllSymbols, key)) {\n if (!D.enumerable) {\n if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;\n D = _create(D, { enumerable: createDesc(0, false) });\n } return setSymbolDesc(it, key, D);\n } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P) {\n anObject(it);\n var keys = enumKeys(P = toIObject(P));\n var i = 0;\n var l = keys.length;\n var key;\n while (l > i) $defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P) {\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key) {\n var E = isEnum.call(this, key = toPrimitive(key, true));\n if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {\n it = toIObject(it);\n key = toPrimitive(key, true);\n if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;\n var D = gOPD(it, key);\n if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it) {\n var names = gOPN(toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);\n } return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it) {\n var IS_OP = it === ObjectProto;\n var names = gOPN(IS_OP ? OPSymbols : toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);\n } return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif (!USE_NATIVE) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');\n var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n var $set = function (value) {\n if (this === ObjectProto) $set.call(OPSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n };\n if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });\n return wrap(tag);\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return this._k;\n });\n\n $GOPD.f = $getOwnPropertyDescriptor;\n $DP.f = $defineProperty;\n require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;\n require('./_object-pie').f = $propertyIsEnumerable;\n require('./_object-gops').f = $getOwnPropertySymbols;\n\n if (DESCRIPTORS && !require('./_library')) {\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n\n wksExt.f = function (name) {\n return wrap(wks(name));\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });\n\nfor (var es6Symbols = (\n // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);\n\nfor (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function (key) {\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');\n for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;\n },\n useSetter: function () { setter = true; },\n useSimple: function () { setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n stringify: function stringify(it) {\n if (it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n var args = [it];\n var i = 1;\n var replacer, $replacer;\n while (arguments.length > i) args.push(arguments[i++]);\n replacer = args[1];\n if (typeof replacer == 'function') $replacer = replacer;\n if ($replacer || !isArray(replacer)) replacer = function (key, value) {\n if ($replacer) value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.symbol.js\n// module id = 85\n// module chunks = 0","var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_meta.js\n// module id = 86\n// module chunks = 0","// all enumerable object keys, includes symbols\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nmodule.exports = function (it) {\n var result = getKeys(it);\n var getSymbols = gOPS.f;\n if (getSymbols) {\n var symbols = getSymbols(it);\n var isEnum = pIE.f;\n var i = 0;\n var key;\n while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);\n } return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_enum-keys.js\n// module id = 87\n// module chunks = 0","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_is-array.js\n// module id = 88\n// module chunks = 0","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./_to-iobject');\nvar gOPN = require('./_object-gopn').f;\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return gOPN(it);\n } catch (e) {\n return windowNames.slice();\n }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopn-ext.js\n// module id = 89\n// module chunks = 0","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopd.js\n// module id = 90\n// module chunks = 0","require('./_wks-define')('asyncIterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.symbol.async-iterator.js\n// module id = 92\n// module chunks = 0","require('./_wks-define')('observable');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.symbol.observable.js\n// module id = 93\n// module chunks = 0","/**\r\n * Created by Emmy on 3/5/2018.\r\n */\r\n\r\nimport {DIALOG_TYPES, CONFIRM_TYPES} from '../constants'\r\n\r\nexport default {\r\n computed: {\r\n cancelBtnDisabled(){\r\n return (this.options.window === DIALOG_TYPES.ALERT)\r\n },\r\n okBtnDisabled(){\r\n return (this.options.window === DIALOG_TYPES.CONFIRM)\r\n && (this.options.type === CONFIRM_TYPES.HARD)\r\n && (this.input !== this.options.verification)\r\n },\r\n leftBtnEnabled(){\r\n return (this.cancelBtnDisabled === false) || (this.options.reverse === true)\r\n },\r\n rightBtnEnabled(){\r\n return (this.cancelBtnDisabled === false) || (this.options.reverse === false)\r\n },\r\n leftBtnFocus(){\r\n return !this.isHardConfirm && (this.options.reverse === true)\r\n },\r\n rightBtnFocus(){\r\n return !this.isHardConfirm && (this.options.reverse === false)\r\n },\r\n leftBtnText(){\r\n return this.options.reverse ? this.options.okText : this.options.cancelText\r\n },\r\n rightBtnText(){\r\n return this.options.reverse ? this.options.cancelText : this.options.okText\r\n }\r\n }\r\n}\n\n\n// WEBPACK FOOTER //\n// ./src/plugin/js/mixins/btn-mixin.js","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('transition', {\n attrs: {\n \"name\": \"dg-backdrop\",\n \"appear\": \"\"\n },\n on: {\n \"after-leave\": function($event) {\n _vm.animationEnded('backdrop')\n }\n }\n }, [(_vm.show) ? _c('div', {\n staticClass: \"dg-backdrop\"\n }) : _vm._e()]), _vm._v(\" \"), _c('transition', {\n attrs: {\n \"name\": _vm.animation,\n \"appear\": \"\"\n },\n on: {\n \"after-leave\": function($event) {\n _vm.animationEnded('content')\n }\n }\n }, [(_vm.show) ? _c('div', {\n class: ['dg-container', {\n 'dg-container--has-input': (_vm.isHardConfirm || _vm.isPrompt)\n }],\n on: {\n \"click\": _vm.closeAtOutsideClick\n }\n }, [_c('div', {\n staticClass: \"dg-content-cont dg-content-cont--floating\"\n }, [_c('div', {\n staticClass: \"dg-main-content\",\n on: {\n \"click\": function($event) {\n $event.stopPropagation();\n }\n }\n }, [_c('div', {\n class: ['dg-content-body', {\n 'dg-content-body--has-title': _vm.messageHasTitle\n }]\n }, [(_vm.messageHasTitle) ? [(_vm.options.html) ? _c('h6', {\n staticClass: \"dg-title\",\n domProps: {\n \"innerHTML\": _vm._s(_vm.messageTitle)\n }\n }) : _c('h6', {\n staticClass: \"dg-title\"\n }, [_vm._v(_vm._s(_vm.messageTitle))])] : _vm._e(), _vm._v(\" \"), (_vm.options.html) ? _c('div', {\n staticClass: \"dg-content\",\n domProps: {\n \"innerHTML\": _vm._s(_vm.messageBody)\n }\n }) : _c('div', {\n staticClass: \"dg-content\"\n }, [_vm._v(_vm._s(_vm.messageBody))]), _vm._v(\" \"), (_vm.isHardConfirm || _vm.isPrompt) ? _c('form', {\n staticClass: \"dg-form\",\n attrs: {\n \"autocomplete\": \"off\"\n },\n on: {\n \"submit\": function($event) {\n $event.preventDefault();\n _vm.submitDialogForm($event)\n }\n }\n }, [_c('label', {\n staticStyle: {\n \"font-size\": \"13px\"\n },\n attrs: {\n \"for\": \"dg-input-elem\"\n }\n }, [_vm._v(_vm._s(_vm.hardConfirmHelpText))]), _vm._v(\" \"), _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.input),\n expression: \"input\"\n }],\n ref: \"inputElem\",\n staticStyle: {\n \"width\": \"100%\",\n \"margin-top\": \"10px\",\n \"padding\": \"5px 15px\",\n \"font-size\": \"16px\",\n \"border-radius\": \"4px\",\n \"border\": \"2px solid #eee\"\n },\n attrs: {\n \"type\": \"text\",\n \"placeholder\": _vm.options.verification,\n \"autocomplete\": \"off\",\n \"id\": \"dg-input-elem\"\n },\n domProps: {\n \"value\": (_vm.input)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.input = $event.target.value\n }\n }\n })]) : _vm._e()], 2), _vm._v(\" \"), _c('div', {\n staticClass: \"dg-content-footer\"\n }, [_c(_vm.leftBtnComponent, {\n tag: \"button\",\n attrs: {\n \"loading\": _vm.loading,\n \"enabled\": _vm.leftBtnEnabled,\n \"options\": _vm.options,\n \"focus\": _vm.leftBtnFocus\n },\n on: {\n \"click\": function($event) {\n _vm.clickLeftBtn()\n }\n }\n }, [(_vm.options.html) ? _c('span', {\n domProps: {\n \"innerHTML\": _vm._s(_vm.leftBtnText)\n }\n }) : _c('span', [_vm._v(_vm._s(_vm.leftBtnText))])]), _vm._v(\" \"), _c(_vm.rightBtnComponent, {\n tag: \"button\",\n attrs: {\n \"loading\": _vm.loading,\n \"enabled\": _vm.rightBtnEnabled,\n \"options\": _vm.options,\n \"focus\": _vm.rightBtnFocus\n },\n on: {\n \"click\": function($event) {\n _vm.clickRightBtn()\n }\n }\n }, [(_vm.options.html) ? _c('span', {\n domProps: {\n \"innerHTML\": _vm._s(_vm.rightBtnText)\n }\n }) : _c('span', [_vm._v(_vm._s(_vm.rightBtnText))])]), _vm._v(\" \"), _c('div', {\n staticClass: \"dg-clear\"\n })])])])]) : _vm._e()])], 1)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler.js?id=data-v-2c4e0b92!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/plugin/components/dialog-window.vue\n// module id = 95\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _from = require(\"../core-js/array/from\");\n\nvar _from2 = _interopRequireDefault(_from);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n } else {\n return (0, _from2.default)(arr);\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/toConsumableArray.js\n// module id = 96\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/array/from\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/array/from.js\n// module id = 97\n// module chunks = 0","require('../../modules/es6.string.iterator');\nrequire('../../modules/es6.array.from');\nmodule.exports = require('../../modules/_core').Array.from;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/array/from.js\n// module id = 98\n// module chunks = 0","'use strict';\nvar ctx = require('./_ctx');\nvar $export = require('./_export');\nvar toObject = require('./_to-object');\nvar call = require('./_iter-call');\nvar isArrayIter = require('./_is-array-iter');\nvar toLength = require('./_to-length');\nvar createProperty = require('./_create-property');\nvar getIterFn = require('./core.get-iterator-method');\n\n$export($export.S + $export.F * !require('./_iter-detect')(function (iter) { Array.from(iter); }), 'Array', {\n // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)\n from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var C = typeof this == 'function' ? this : Array;\n var aLen = arguments.length;\n var mapfn = aLen > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n var index = 0;\n var iterFn = getIterFn(O);\n var length, result, step, iterator;\n if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);\n // if object isn't iterable or it's array with default iterator - use simple case\n if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {\n for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {\n createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);\n }\n } else {\n length = toLength(O.length);\n for (result = new C(length); length > index; index++) {\n createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);\n }\n }\n result.length = index;\n return result;\n }\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.array.from.js\n// module id = 99\n// module chunks = 0","// call something on iterator step with safe closing on error\nvar anObject = require('./_an-object');\nmodule.exports = function (iterator, fn, value, entries) {\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (e) {\n var ret = iterator['return'];\n if (ret !== undefined) anObject(ret.call(iterator));\n throw e;\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-call.js\n// module id = 100\n// module chunks = 0","// check on default Array iterator\nvar Iterators = require('./_iterators');\nvar ITERATOR = require('./_wks')('iterator');\nvar ArrayProto = Array.prototype;\n\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_is-array-iter.js\n// module id = 101\n// module chunks = 0","'use strict';\nvar $defineProperty = require('./_object-dp');\nvar createDesc = require('./_property-desc');\n\nmodule.exports = function (object, index, value) {\n if (index in object) $defineProperty.f(object, index, createDesc(0, value));\n else object[index] = value;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_create-property.js\n// module id = 102\n// module chunks = 0","var classof = require('./_classof');\nvar ITERATOR = require('./_wks')('iterator');\nvar Iterators = require('./_iterators');\nmodule.exports = require('./_core').getIteratorMethod = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/core.get-iterator-method.js\n// module id = 103\n// module chunks = 0","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./_cof');\nvar TAG = require('./_wks')('toStringTag');\n// ES3 wrong here\nvar ARG = cof(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (e) { /* empty */ }\n};\n\nmodule.exports = function (it) {\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_classof.js\n// module id = 104\n// module chunks = 0","var ITERATOR = require('./_wks')('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function () { SAFE_CLOSING = true; };\n // eslint-disable-next-line no-throw-literal\n Array.from(riter, function () { throw 2; });\n} catch (e) { /* empty */ }\n\nmodule.exports = function (exec, skipClosing) {\n if (!skipClosing && !SAFE_CLOSING) return false;\n var safe = false;\n try {\n var arr = [7];\n var iter = arr[ITERATOR]();\n iter.next = function () { return { done: safe = true }; };\n arr[ITERATOR] = function () { return iter; };\n exec(arr);\n } catch (e) { /* empty */ }\n return safe;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-detect.js\n// module id = 105\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _assign = require(\"../core-js/object/assign\");\n\nvar _assign2 = _interopRequireDefault(_assign);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _assign2.default || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/extends.js\n// module id = 106\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/assign.js\n// module id = 107\n// module chunks = 0","require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/_core').Object.assign;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/assign.js\n// module id = 108\n// module chunks = 0","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.assign.js\n// module id = 109\n// module chunks = 0","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-assign.js\n// module id = 110\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', _vm._l((_vm.dialogsARR), function(dialog) {\n return _c('dialog-window', {\n key: dialog.id,\n attrs: {\n \"options\": dialog,\n \"escapeKeyClose\": dialog.escapeKeyClose\n },\n on: {\n \"close\": _vm.destroyDialog\n }\n })\n }))\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler.js?id=data-v-58f8801b!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/plugin/components/dialog.vue\n// module id = 111\n// module chunks = 0","// Directives\r\n\r\nimport {noop, clickNode, cloneObj} from './utilities'\r\nimport {CONFIRM_TYPES} from './constants'\r\n\r\n\r\nlet Directives = function (Vue) {\r\n Object.defineProperties(this, {\r\n Vue: {get: () => Vue},\r\n confirmDefinition: {\r\n get: this.defineConfirm\r\n }\r\n })\r\n}\r\n\r\nDirectives.prototype.getConfirmMessage = function(binding) {\r\n if (binding.value && binding.value.message) {\r\n return binding.value.message\r\n }\r\n return typeof binding.value === 'string' ? binding.value : null\r\n}\r\n\r\nDirectives.prototype.getOptions = function(binding) {\r\n let options = typeof binding.value === 'object' ? cloneObj(binding.value) : {}\r\n\r\n delete options['ok']\r\n delete options['cancel']\r\n\r\n if(binding.arg && CONFIRM_TYPES.hasOwnProperty(binding.arg.toUpperCase())){\r\n options.type = CONFIRM_TYPES[binding.arg.toUpperCase()]\r\n }\r\n\r\n return options\r\n}\r\n\r\nDirectives.prototype.getThenCallback = function(binding, el){\r\n if (binding.value && binding.value.ok) {\r\n return binding.value.ok\r\n } else {\r\n return () => {\r\n // Unbind to allow original event\r\n el.removeEventListener('click', el.VuejsDialog.clickHandler, true)\r\n // Trigger original event\r\n clickNode(el)\r\n // Re-bind listener\r\n el.addEventListener('click', el.VuejsDialog.clickHandler, true)\r\n }\r\n }\r\n}\r\n\r\nDirectives.prototype.getCatchCallback = function(binding) {\r\n if (binding.value && binding.value.cancel) {\r\n return binding.value.cancel\r\n }\r\n return noop\r\n}\r\n\r\nDirectives.prototype.clickHandler = function(event, el, binding) {\r\n event.preventDefault()\r\n event.stopImmediatePropagation()\r\n\r\n let options = this.getOptions(binding)\r\n let confirmMessage = this.getConfirmMessage(binding)\r\n let thenCallback = this.getThenCallback(binding, el)\r\n let catchCallback = this.getCatchCallback(binding)\r\n\r\n this.Vue.dialog\r\n .confirm(confirmMessage, options)\r\n .then(thenCallback)\r\n .catch(catchCallback)\r\n}\r\n\r\nDirectives.prototype.defineConfirm = function () {\r\n const DirectiveDefinition = {}\r\n\r\n DirectiveDefinition.bind = (el, binding) => {\r\n el.VuejsDialog = el.VuejsDialog || {}\r\n\r\n el.VuejsDialog.clickHandler = event => this.clickHandler(event, el, binding)\r\n\r\n el.addEventListener('click', el.VuejsDialog.clickHandler, true)\r\n }\r\n\r\n DirectiveDefinition.unbind = (el) => {\r\n el.removeEventListener('click', el.VuejsDialog.clickHandler, true)\r\n }\r\n\r\n return DirectiveDefinition\r\n}\r\n\r\nexport default Directives\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/plugin/js/directives.js"],"sourceRoot":""}
\ No newline at end of file
diff --git a/docs/.gitignore b/docs/.gitignore
new file mode 100644
index 000000000..a1723454b
--- /dev/null
+++ b/docs/.gitignore
@@ -0,0 +1,6 @@
+# VuePress default temp directory
+.vuepress/.temp
+# VuePress default cache directory
+.vuepress/.cache
+# VuePress default build output directory
+.vuepress/dist
diff --git a/docs/.vuepress/client.js b/docs/.vuepress/client.js
new file mode 100644
index 000000000..4b02df6b9
--- /dev/null
+++ b/docs/.vuepress/client.js
@@ -0,0 +1,25 @@
+import {defineAsyncComponent} from "vue";
+import { defineClientConfig } from 'vuepress/client'
+import {PromiseDialog} from "../../src/plugin/index";
+
+
+export default defineClientConfig({
+ enhance({ app, router, siteData }) {
+ const registerComponent = (fileName) => app.component(
+ fileName,
+ defineAsyncComponent(() => import(`../components/examples/${fileName}.vue`))
+ )
+
+ app.use(PromiseDialog)
+ registerComponent('UIExamplesButton')
+ registerComponent('UIExamplesWrapper')
+ registerComponent('FeaturesExampleAlert')
+ registerComponent('FeaturesExampleConfirm')
+ registerComponent('FeaturesExampleConfirmSoft')
+ registerComponent('FeaturesExampleConfirmHard')
+ registerComponent('FeaturesExamplePrompt')
+ registerComponent('FeaturesExampleDirective')
+ },
+ setup() {},
+ rootComponents: [],
+})
diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js
new file mode 100644
index 000000000..d580d7687
--- /dev/null
+++ b/docs/.vuepress/config.js
@@ -0,0 +1,34 @@
+import { viteBundler } from '@vuepress/bundler-vite'
+import { defaultTheme } from '@vuepress/theme-default'
+import { defineUserConfig } from 'vuepress'
+import {shikiPlugin} from "@vuepress/plugin-shiki";
+// import { mdEnhancePlugin } from "vuepress-plugin-md-enhance";
+
+// Ref (default theme): https://ecosystem.vuejs.press/themes/default/markdown.html
+
+export default defineUserConfig({
+ title: 'Vuejs Dialog',
+ description: 'A lightweight, promise based alert, prompt and confirm dialog',
+ repo: 'godofbrowser/vuejs-dialog',
+ bundler: viteBundler(),
+ plugins: [
+ // https://ecosystem.vuejs.press/plugins/markdown/prismjs.html
+ // https://ecosystem.vuejs.press/plugins/markdown/shiki.html
+ shikiPlugin({
+ // options
+ defaultLang: 'ts',
+ langs: ['ts', 'js', 'json', 'vue', 'md', 'bash', 'diff'],
+ }),
+ // mdEnhancePlugin({
+ // // your options
+ // }),
+ ],
+ theme: defaultTheme({
+ sidebar: [
+ '/index.md',
+ '/features.md',
+ '/digging-deeper.md',
+ '/demos.md',
+ ]
+ }),
+})
diff --git a/docs/.vuepress/entranceApp.js b/docs/.vuepress/entranceApp.js
new file mode 100644
index 000000000..3b45a446b
--- /dev/null
+++ b/docs/.vuepress/entranceApp.js
@@ -0,0 +1,13 @@
+export default ({
+ Vue,
+ options,
+ router,
+ siteData
+}) => {
+ const { routes } = router.options;
+
+ // routes.unshift({
+ // name: 'google-site-verification',
+ // path: '/google0000000.html',
+ // });
+}
diff --git a/docs/components/examples/FeaturesExampleAlert.vue b/docs/components/examples/FeaturesExampleAlert.vue
new file mode 100644
index 000000000..c929d902d
--- /dev/null
+++ b/docs/components/examples/FeaturesExampleAlert.vue
@@ -0,0 +1,20 @@
+
+ Show alert
+
+
+
diff --git a/docs/components/examples/FeaturesExampleConfirm.vue b/docs/components/examples/FeaturesExampleConfirm.vue
new file mode 100644
index 000000000..8a15797b1
--- /dev/null
+++ b/docs/components/examples/FeaturesExampleConfirm.vue
@@ -0,0 +1,21 @@
+
+ Show confirm | basic
+
+
+
diff --git a/docs/components/examples/FeaturesExampleConfirmHard.vue b/docs/components/examples/FeaturesExampleConfirmHard.vue
new file mode 100644
index 000000000..7d463e89b
--- /dev/null
+++ b/docs/components/examples/FeaturesExampleConfirmHard.vue
@@ -0,0 +1,22 @@
+
+ Show confirm | hard
+
+
+
diff --git a/docs/components/examples/FeaturesExampleConfirmSoft.vue b/docs/components/examples/FeaturesExampleConfirmSoft.vue
new file mode 100644
index 000000000..c43561a97
--- /dev/null
+++ b/docs/components/examples/FeaturesExampleConfirmSoft.vue
@@ -0,0 +1,23 @@
+
+ Show confirm | soft
+
+
+
diff --git a/docs/components/examples/FeaturesExampleDirective.vue b/docs/components/examples/FeaturesExampleDirective.vue
new file mode 100644
index 000000000..5e37a9b6c
--- /dev/null
+++ b/docs/components/examples/FeaturesExampleDirective.vue
@@ -0,0 +1,10 @@
+
+ A link
+ or a
+
+
diff --git a/docs/components/examples/FeaturesExamplePrompt.vue b/docs/components/examples/FeaturesExamplePrompt.vue
new file mode 100644
index 000000000..b550f5c28
--- /dev/null
+++ b/docs/components/examples/FeaturesExamplePrompt.vue
@@ -0,0 +1,24 @@
+
+ Show prompt
+
+
+
diff --git a/docs/components/examples/UIExamplesButton.vue b/docs/components/examples/UIExamplesButton.vue
new file mode 100644
index 000000000..7e61898d2
--- /dev/null
+++ b/docs/components/examples/UIExamplesButton.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
diff --git a/docs/components/examples/UIExamplesWrapper.vue b/docs/components/examples/UIExamplesWrapper.vue
new file mode 100644
index 000000000..676c684e3
--- /dev/null
+++ b/docs/components/examples/UIExamplesWrapper.vue
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
diff --git a/docs/css/app.main.css b/docs/css/app.main.css
deleted file mode 100644
index ae64af2fc..000000000
--- a/docs/css/app.main.css
+++ /dev/null
@@ -1 +0,0 @@
-*{-webkit-box-sizing:border-box;box-sizing:border-box}body{margin:0;padding:0;font-family:Noto Sans,sans-serif;font-size:16px;color:#292929}hr{border:none;height:1px;background-color:#dbdbdb}a{color:#41b883;cursor:pointer;text-decoration:none}a:not(.button):hover{text-decoration:underline}.button{-moz-appearance:none;-webkit-appearance:none;-ms-flex-align:center;border:1px solid #dbdbdb;border-radius:3px;-webkit-box-shadow:none;box-shadow:none;font-size:1rem;height:2.25em;line-height:1.5;position:relative;vertical-align:top;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff;color:#363636;cursor:pointer;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;padding:calc(.375em - 1px) .75em;text-align:center;white-space:nowrap}.button:hover{border-color:#a8a8a8}.input-elem{width:100%;border:1px solid #dbdbdb;border-radius:3px;-webkit-box-shadow:none;box-shadow:none;font-size:1rem;height:2.25em;line-height:1.5;position:relative;vertical-align:top;background-color:#fff;color:#363636;padding:calc(.375em - 1px) .75em}.input-elem:focus{border-color:#a8a8a8}.centered,.container{margin-right:auto!important;margin-left:auto!important}.list-unstyled{margin:0;padding:0}.container{width:100%;max-width:1200px}.title-case{text-transform:capitalize}header{background-color:#41b883;color:#fefefe;display:block;margin-bottom:25px}header .lang-btn{margin:5px 12px;color:#fefefe;text-decoration:none}header .lang-btn:hover{text-decoration:underline}header .header-cont{width:94%;max-width:1200px;padding:115px 10px;display:block}header .title{font-size:2.7rem;text-transform:uppercase;margin-bottom:10px}header .description{font-size:1.5rem;margin:10px auto}aside{width:320px;float:left}aside .nav{display:block}aside .nav>li{margin-bottom:5px;display:block}aside .nav>li:last-child{margin-bottom:unset}main{width:100%;max-width:800px;margin:0 auto;padding:0 10px}footer{width:100%;float:left;clear:both}footer p{text-align:center}
\ No newline at end of file
diff --git a/docs/demos.md b/docs/demos.md
new file mode 100644
index 000000000..63e1d2525
--- /dev/null
+++ b/docs/demos.md
@@ -0,0 +1,13 @@
+# Live Demos
+Below are some practical example use cases that you may find useful.
+
+## Quick alert after an event occurs
+
+
+## Confirming CRUD operations
+
+
+## Confirming link clicks
+
+
+## Confirming form reset/submit
diff --git a/docs/digging-deeper.md b/docs/digging-deeper.md
new file mode 100644
index 000000000..01c766e08
--- /dev/null
+++ b/docs/digging-deeper.md
@@ -0,0 +1,8 @@
+# Digging deeper
+
+## Options
+### Custom Class
+### loader
+
+## Custom component
+
diff --git a/docs/features.md b/docs/features.md
new file mode 100644
index 000000000..3f7b8c3d1
--- /dev/null
+++ b/docs/features.md
@@ -0,0 +1,37 @@
+# Features
+
+[[toc]]
+
+## Alert
+An alert dialog can be triggered using the `$dialog.alert()` method. This method returns a promise which resolves when the dialog is dismissed.
+
+
+@[code](components/examples/FeaturesExampleAlert.vue)
+
+## Confirm
+A confirm dialog can be triggered with the `$dialog.confirm()` method. Like the alert dialog, this method returns a promise which resolves when the dialog is dismissed.
+In this section we shall explore how to create a basic confirm dialog as well as the two other variations of the confirm dialog namely; soft and hard confirmation dialogs.
+
+### Basic confirm dialog
+
+@[code](components/examples/FeaturesExampleConfirm.vue)
+
+### Soft confirm dialog
+
+@[code](components/examples/FeaturesExampleConfirmSoft.vue)
+
+### Hard confirm dialog
+
+@[code](components/examples/FeaturesExampleConfirmHard.vue)
+
+## Prompt
+The `$dialog.prompt()` method creates a prompt dialog. Use the prompt dialog to ask user directly for input.
+
+
+@[code](components/examples/FeaturesExamplePrompt.vue)
+
+## Confirm directive
+Add the `v-confirm` directive to any element to instantly cause it to trigger a confirm dialog. This dialog upon confirmation will trigger the default action or the provided callback when available.
+
+
+@[code](components/examples/FeaturesExampleDirective.vue)
diff --git a/docs/index.html b/docs/index.html
deleted file mode 100644
index b7b41f494..000000000
--- a/docs/index.html
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
- VueJs Plugin usage example
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/index.md b/docs/index.md
new file mode 100644
index 000000000..90c30c65e
--- /dev/null
+++ b/docs/index.md
@@ -0,0 +1,142 @@
+# Getting started
+
+[[toc]]
+
+Vuejs-dialog is a vue plugin that's designed to serve as a replacement to the native confirm and alert that ships with the browser. The it is lightweight and comes with a simple api, yet very customizable and extendable.
+
+## Installation
+
+### Package manager
+
+
+
+```shell title="installation via pnpm"
+pnpm add vuejs-dialog
+```
+
+
+
+
+
+```shell title="installation via yarn"
+yarn add vuejs-dialog
+```
+
+
+
+
+
+```bash{2} title="installation via npm"
+npm i -S vuejs-dialog
+```
+
+
+
+
+
+```js title="main.js"
+// import into the project's entry file
+import { createApp } from 'vue';
+import VuejsDialog from 'vuejs-dialog';
+import AppComponent from './App.vue'
+
+// include the default style
+import 'vuejs-dialog/dist/vuejs-dialog.min.css';
+
+// Create the app instance
+const app = createApp(AppComponent)
+
+// Install the plugin for the app instance.
+app.use(VuejsDialog);
+
+// Mount the application on the dom element with id="app"
+app.mount('#app')
+```
+
+### Script tag
+
+```html
+// Todo: update for vue3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+//
+//
+//
+//
+// ...then...
+//
+//
{{ message }}
+//
+```
+
+## Opening a dialog
+
+### Options API
+```vue title="App.vue"
+
+
+
+
+```
+
+### Composition API
+```vue title="App.vue"
+
+
+
+
+```
+
+### Directives API
+```vue title="App.vue"
+
+
+
+```
+
+## Typescript support
+
+// Todo:
diff --git a/docs/js/app.main.js b/docs/js/app.main.js
deleted file mode 100644
index 636662124..000000000
--- a/docs/js/app.main.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(t){function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var e={};n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=48)}([function(t,n,e){var o=e(25)("wks"),i=e(17),r=e(1).Symbol,a="function"==typeof r;(t.exports=function(t){return o[t]||(o[t]=a&&r[t]||(a?r:i)("Symbol."+t))}).store=o},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){var o=e(10),i=e(40),r=e(22),a=Object.defineProperty;n.f=e(7)?Object.defineProperty:function(t,n,e){if(o(t),n=r(n,!0),o(e),i)try{return a(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n){t.exports=function(t,n,e,o){var i,r=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(i=t,r=t.default);var s="function"==typeof r?r.options:r;if(n&&(s.render=n.render,s.staticRenderFns=n.staticRenderFns),e&&(s._scopeId=e),o){var c=s.computed||(s.computed={});Object.keys(o).forEach(function(t){var n=o[t];c[t]=function(){return n}})}return{esModule:i,exports:r,options:s}}},function(t,n){var e=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=e)},function(t,n,e){var o=e(2),i=e(12);t.exports=e(7)?function(t,n,e){return o.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){t.exports=!e(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var o=e(45),i=e(20);t.exports=function(t){return o(i(t))}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=n.DIALOG_TYPES={ALERT:"alert",CONFIRM:"confirm",PROMPT:"prompt"},i=n.CONFIRM_TYPES={BASIC:"basic",SOFT:"soft",HARD:"hard"};n.ANIMATION_TYPES={FADE:"dg-fade",ZOOM:"dg-zoom",BOUNCE:"dg-bounce"},n.DEFAULT_OPTIONS={html:!1,loader:!1,reverse:!1,headline:"Please confirm",okText:"Continue",cancelText:"Close",type:i.BASIC,window:o.CONFIRM,message:"Proceed with the request?",helpText:"Click the proceed button to continue",clicksCount:3,animation:"zoom",verification:"continue",verificationHelp:'Type "[+:verification]" below to confirm'}},function(t,n,e){var o=e(15);t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){t.exports={}},function(t,n,e){var o=e(1),i=e(5),r=e(39),a=e(6),s=function(t,n,e){var c,u,l,f=t&s.F,d=t&s.G,p=t&s.S,m=t&s.P,h=t&s.B,g=t&s.W,v=d?i:i[n]||(i[n]={}),b=v.prototype,y=d?o:p?o[n]:(o[n]||{}).prototype;d&&(e=n);for(c in e)(u=!f&&y&&void 0!==y[c])&&c in v||(l=u?y[c]:e[c],v[c]=d&&"function"!=typeof y[c]?e[c]:h&&u?r(l,o):g&&y[c]==l?function(t){var n=function(n,e,o){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,o)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):m&&"function"==typeof l?r(Function.call,l):l,m&&((v.virtual||(v.virtual={}))[c]=l,t&s.R&&b&&!b[c]&&a(b,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var o=e(44),i=e(26);t.exports=Object.keys||function(t){return o(t,i)}},function(t,n){var e=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+o).toString(36))}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n){var e=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:e)(t)}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){t.exports=!0},function(t,n,e){var o=e(15);t.exports=function(t,n){if(!o(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!o(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!o(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!o(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var o=e(25)("keys"),i=e(17);t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,n,e){var o=e(1),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var o=e(2).f,i=e(3),r=e(0)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,r)&&o(t,r,{configurable:!0,value:n})}},function(t,n,e){var o=e(20);t.exports=function(t){return Object(o(t))}},function(t,n,e){n.f=e(0)},function(t,n,e){var o=e(1),i=e(5),r=e(21),a=e(29),s=e(2).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=r?{}:o.Symbol||{});"_"==t.charAt(0)||t in n||s(n,t,{value:a.f(t)})}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0}),n.firstIndex=n.clickNode=n.mergeObjs=n.cloneObj=n.noop=void 0;var i=e(100),r=o(i),a=e(110),s=o(a),c=(n.noop=function(){},n.cloneObj=function(t){return(0,s.default)({},t)});n.mergeObjs=function(){for(var t=[],n=0;ne.parts.length&&(o.parts.length=e.parts.length)}else{for(var a=[],i=0;i=n.length?{value:void 0,done:!0}:(t=o(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){"use strict";var o=e(21),i=e(14),r=e(42),a=e(6),s=e(3),c=e(13),u=e(77),l=e(27),f=e(82),d=e(0)("iterator"),p=!([].keys&&"next"in[].keys()),m=function(){return this};t.exports=function(t,n,e,h,g,v,b){u(e,n,h);var y,_,x,w=function(t){if(!p&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},k=n+" Iterator",T="values"==g,O=!1,C=t.prototype,S=C[d]||C["@@iterator"]||g&&C[g],E=S||w(g),j=g?T?w("entries"):E:void 0,M="Array"==n?C.entries||S:S;if(M&&(x=f(M.call(new t)))!==Object.prototype&&x.next&&(l(x,k,!0),o||s(x,d)||a(x,d,m)),T&&S&&"values"!==S.name&&(O=!0,E=function(){return S.call(this)}),o&&!b||!p&&!O&&C[d]||a(C,d,E),c[n]=E,c[k]=m,g)if(y={values:T?E:w("values"),keys:v?E:w("keys"),entries:j},b)for(_ in y)_ in C||r(C,_,y[_]);else i(i.P+i.F*(p||O),n,y);return y}},function(t,n,e){var o=e(76);t.exports=function(t,n,e){if(o(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,o){return t.call(n,e,o)};case 3:return function(e,o,i){return t.call(n,e,o,i)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){t.exports=!e(7)&&!e(11)(function(){return 7!=Object.defineProperty(e(41)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var o=e(15),i=e(1).document,r=o(i)&&o(i.createElement);t.exports=function(t){return r?i.createElement(t):{}}},function(t,n,e){t.exports=e(6)},function(t,n,e){var o=e(10),i=e(78),r=e(26),a=e(24)("IE_PROTO"),s=function(){},c=function(){var t,n=e(41)("iframe"),o=r.length;for(n.style.display="none",e(81).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write("
+