UNPKG

vue-msgbox

Version:

A message box (like Sweet Alert) for vue.js.

1 lines 30.7 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):"object"==typeof exports?exports.VueMsgbox=e(require("vue")):t.VueMsgbox=e(t.Vue)}(this,function(t){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.MessageBox=void 0;var r,i,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},s=n(28),c=o(s),l=n(80),f=o(l),a="确定",d="取消",p={title:"",message:"",type:"",inputType:"text",showInput:!1,lockScroll:!1,inputValue:null,inputPlaceholder:"",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonPosition:"right",confirmButtonHighlight:!1,cancelButtonHighlight:!1,confirmButtonText:a,cancelButtonText:d,confirmButtonClass:"",cancelButtonClass:""},h=function(t){for(var e=1,n=arguments.length;n>e;e++){var o=arguments[e];for(var r in o)if(o.hasOwnProperty(r)){var i=o[r];void 0!==i&&(t[r]=i)}}return t},y=c["default"].extend(f["default"]),v=[],m=function(t){if(r){var e=r.callback;if("function"==typeof e&&(i.showInput?e(i.inputValue,t):e(t)),r.resolve){var n=r.options.$type;"confirm"===n||"prompt"===n?"confirm"===t?i.showInput?r.resolve({value:i.inputValue,action:t}):r.resolve(t):"cancel"===t&&r.reject&&r.reject(t):r.resolve(t)}}},b=function(){i=new y({el:document.createElement("div")}),i.callback=m},g=function(){if(i||b(),(!i.visible||i.closeTimer)&&v.length>0){r=v.shift();var t=r.options;for(var e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);void 0===t.callback&&(i.callback=m),i.$appendTo(document.body),c["default"].nextTick(function(){i.visible=!0})}},x=function _(t,e){return"string"==typeof t?(t={title:t},arguments[1]&&(t.message=arguments[1]),arguments[2]&&(t.type=arguments[2])):t.callback&&!e&&(e=t.callback),"undefined"!=typeof Promise?new Promise(function(n,o){v.push({options:h({},p,_.defaults||{},t),callback:e,resolve:n,reject:o}),g()}):(v.push({options:h({},p,_.defaults||{},t),callback:e}),void g())};x.setDefaults=function(t){x.defaults=t},x.alert=function(t,e,n){return"object"===("undefined"==typeof e?"undefined":u(e))&&(n=e,e=""),x(h({title:e,message:t,$type:"alert"},n))},x.confirm=function(t,e,n){return"object"===("undefined"==typeof e?"undefined":u(e))&&(n=e,e=""),x(h({title:e,message:t,$type:"confirm",showCancelButton:!0},n))},x.prompt=function(t,e,n){return"object"===("undefined"==typeof e?"undefined":u(e))&&(n=e,e=""),x(h({title:e,message:t,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},x.close=function(){i.visible=!1,v=[],r=null},e["default"]=x,e.MessageBox=x},function(t,e){"use strict";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){"use strict";t.exports=!n(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){"use strict";var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";var o=n(8),r=n(31),i=n(25),u=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(o(t),e=i(e,!0),o(n),r)try{return u(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";var o=n(52),r=n(15);t.exports=function(t){return o(r(t))}},function(t,e,n){"use strict";var o=n(4),r=n(13);t.exports=n(2)?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){"use strict";var o=n(23)("wks"),r=n(14),i=n(1).Symbol,u="function"==typeof i,s=t.exports=function(t){return o[t]||(o[t]=u&&i[t]||(u?i:r)("Symbol."+t))};s.store=o},function(t,e,n){"use strict";var o=n(11);t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},function(t,e){"use strict";var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};t.exports=function(t){return"object"===("undefined"==typeof t?"undefined":n(t))?null!==t:"function"==typeof t}},function(t,e,n){"use strict";var o=n(36),r=n(16);t.exports=Object.keys||function(t){return o(t,r)}},function(t,e){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){"use strict";var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},function(t,e){"use strict";t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){"use strict";t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){"use strict";var o=n(1),r=n(9),i=n(49),u=n(6),s="prototype",c=function l(t,e,n){var c,f,a,d=t&l.F,p=t&l.G,h=t&l.S,y=t&l.P,v=t&l.B,m=t&l.W,b=p?r:r[e]||(r[e]={}),g=b[s],x=p?o:h?o[e]:(o[e]||{})[s];p&&(n=e);for(c in n)f=!d&&x&&void 0!==x[c],f&&c in b||(a=f?x[c]:n[c],b[c]=p&&"function"!=typeof x[c]?n[c]:v&&f?i(a,o):m&&x[c]==a?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[s]=t[s],e}(a):y&&"function"==typeof a?i(Function.call,a):a,y&&((b.virtual||(b.virtual={}))[c]=a,t&l.R&&g&&!g[c]&&u(g,c,a)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){"use strict";t.exports={}},function(t,e){"use strict";t.exports=!0},function(t,e){"use strict";e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";var o=n(4).f,r=n(3),i=n(7)("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){"use strict";var o=n(23)("keys"),r=n(14);t.exports=function(t){return o[t]||(o[t]=r(t))}},function(t,e,n){"use strict";var o=n(1),r="__core-js_shared__",i=o[r]||(o[r]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e){"use strict";var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},function(t,e,n){"use strict";var o=n(11);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,n){"use strict";var o=n(1),r=n(9),i=n(19),u=n(27),s=n(4).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:u.f(t)})}},function(t,e,n){"use strict";e.f=n(7)},function(e,n){e.exports=t},function(t,e){"use strict";var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){"use strict";var o=n(11),r=n(1).document,i=o(r)&&o(r.createElement);t.exports=function(t){return i?r.createElement(t):{}}},function(t,e,n){"use strict";t.exports=!n(2)&&!n(10)(function(){return 7!=Object.defineProperty(n(30)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";var o=n(19),r=n(17),i=n(37),u=n(6),s=n(3),c=n(18),l=n(54),f=n(21),a=n(61),d=n(7)("iterator"),p=!([].keys&&"next"in[].keys()),h="@@iterator",y="keys",v="values",m=function(){return this};t.exports=function(t,e,n,b,g,x,_){l(n,e,b);var w,O,S,C=function(t){if(!p&&t in E)return E[t];switch(t){case y:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},P=e+" Iterator",M=g==v,k=!1,E=t.prototype,j=E[d]||E[h]||g&&E[g],T=j||C(g),B=g?M?C("entries"):T:void 0,I="Array"==e?E.entries||j:j;if(I&&(S=a(I.call(new t)),S!==Object.prototype&&(f(S,P,!0),o||s(S,d)||u(S,d,m))),M&&j&&j.name!==v&&(k=!0,T=function(){return j.call(this)}),o&&!_||!p&&!k&&E[d]||u(E,d,T),c[e]=T,c[P]=m,g)if(w={values:M?T:C(v),keys:x?T:C(y),entries:B},_)for(O in w)O in E||i(E,O,w[O]);else r(r.P+r.F*(p||k),e,w);return w}},function(t,e,n){"use strict";var o=n(8),r=n(58),i=n(16),u=n(22)("IE_PROTO"),s=function(){},c="prototype",l=function(){var t,e=n(30)("iframe"),o=i.length,r=">";for(e.style.display="none",n(51).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object</script"+r),t.close(),l=t.F;o--;)delete l[c][i[o]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[c]=o(t),n=new s,s[c]=null,n[u]=t):n=l(),void 0===e?n:r(n,e)}},function(t,e,n){"use strict";var o=n(36),r=n(16).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,r)}},function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var o=n(3),r=n(5),i=n(48)(!1),u=n(22)("IE_PROTO");t.exports=function(t,e){var n,s=r(t),c=0,l=[];for(n in s)n!=u&&o(s,n)&&l.push(n);for(;e.length>c;)o(s,n=e[c++])&&(~i(l,n)||l.push(n));return l}},function(t,e,n){"use strict";t.exports=n(6)},,function(t,e,n){"use strict";t.exports={"default":n(43),__esModule:!0}},function(t,e,n){"use strict";t.exports={"default":n(44),__esModule:!0}},function(t,e,n){"use strict";t.exports={"default":n(45),__esModule:!0}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};e.__esModule=!0;var i=n(41),u=o(i),s=n(40),c=o(s),l="function"==typeof c["default"]&&"symbol"===r(u["default"])?function(t){return"undefined"==typeof t?"undefined":r(t)}:function(t){return t&&"function"==typeof c["default"]&&t.constructor===c["default"]?"symbol":"undefined"==typeof t?"undefined":r(t)};e["default"]="function"==typeof c["default"]&&"symbol"===l(u["default"])?function(t){return"undefined"==typeof t?"undefined":l(t)}:function(t){return t&&"function"==typeof c["default"]&&t.constructor===c["default"]?"symbol":"undefined"==typeof t?"undefined":l(t)}},function(t,e,n){"use strict";n(67);var o=n(9).Object;t.exports=function(t,e,n){return o.defineProperty(t,e,n)}},function(t,e,n){"use strict";n(70),n(68),n(71),n(72),t.exports=n(9).Symbol},function(t,e,n){"use strict";n(69),n(73),t.exports=n(27).f("iterator")},function(t,e){"use strict";t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){"use strict";t.exports=function(){}},function(t,e,n){"use strict";var o=n(5),r=n(64),i=n(63);t.exports=function(t){return function(e,n,u){var s,c=o(e),l=r(c.length),f=i(u,l);if(t&&n!=n){for(;l>f;)if(s=c[f++],s!=s)return!0}else for(;l>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){"use strict";var o=n(46);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){"use strict";var o=n(12),r=n(35),i=n(20);t.exports=function(t){var e=o(t),n=r.f;if(n)for(var u,s=n(t),c=i.f,l=0;s.length>l;)c.call(t,u=s[l++])&&e.push(u);return e}},function(t,e,n){"use strict";t.exports=n(1).document&&document.documentElement},function(t,e,n){"use strict";var o=n(29);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var o=n(29);t.exports=Array.isArray||function(t){return"Array"==o(t)}},function(t,e,n){"use strict";var o=n(33),r=n(13),i=n(21),u={};n(6)(u,n(7)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=o(u,{next:r(1,n)}),i(t,e+" Iterator")}},function(t,e){"use strict";t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var o=n(12),r=n(5);t.exports=function(t,e){for(var n,i=r(t),u=o(i),s=u.length,c=0;s>c;)if(i[n=u[c++]]===e)return n}},function(t,e,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},r=n(14)("meta"),i=n(11),u=n(3),s=n(4).f,c=0,l=Object.isExtensible||function(){return!0},f=!n(10)(function(){return l(Object.preventExtensions({}))}),a=function(t){s(t,r,{value:{i:"O"+ ++c,w:{}}})},d=function(t,e){if(!i(t))return"symbol"==("undefined"==typeof t?"undefined":o(t))?t:("string"==typeof t?"S":"P")+t;if(!u(t,r)){if(!l(t))return"F";if(!e)return"E";a(t)}return t[r].i},p=function(t,e){if(!u(t,r)){if(!l(t))return!0;if(!e)return!1;a(t)}return t[r].w},h=function(t){return f&&y.NEED&&l(t)&&!u(t,r)&&a(t),t},y=t.exports={KEY:r,NEED:!1,fastKey:d,getWeak:p,onFreeze:h}},function(t,e,n){"use strict";var o=n(4),r=n(8),i=n(12);t.exports=n(2)?Object.defineProperties:function(t,e){r(t);for(var n,u=i(e),s=u.length,c=0;s>c;)o.f(t,n=u[c++],e[n]);return t}},function(t,e,n){"use strict";var o=n(20),r=n(13),i=n(5),u=n(25),s=n(3),c=n(31),l=Object.getOwnPropertyDescriptor;e.f=n(2)?l:function(t,e){if(t=i(t),e=u(e,!0),c)try{return l(t,e)}catch(n){}return s(t,e)?r(!o.f.call(t,e),t[e]):void 0}},function(t,e,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},r=n(5),i=n(34).f,u={}.toString,s="object"==("undefined"==typeof window?"undefined":o(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return i(t)}catch(e){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==u.call(t)?c(t):i(r(t))}},function(t,e,n){"use strict";var o=n(3),r=n(65),i=n(22)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),o(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){"use strict";var o=n(24),r=n(15);t.exports=function(t){return function(e,n){var i,u,s=String(r(e)),c=o(n),l=s.length;return 0>c||c>=l?t?"":void 0:(i=s.charCodeAt(c),55296>i||i>56319||c+1===l||(u=s.charCodeAt(c+1))<56320||u>57343?t?s.charAt(c):i:t?s.slice(c,c+2):(i-55296<<10)+(u-56320)+65536)}}},function(t,e,n){"use strict";var o=n(24),r=Math.max,i=Math.min;t.exports=function(t,e){return t=o(t),0>t?r(t+e,0):i(t,e)}},function(t,e,n){"use strict";var o=n(24),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},function(t,e,n){"use strict";var o=n(15);t.exports=function(t){return Object(o(t))}},function(t,e,n){"use strict";var o=n(47),r=n(55),i=n(18),u=n(5);t.exports=n(32)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){"use strict";var o=n(17);o(o.S+o.F*!n(2),"Object",{defineProperty:n(4).f})},function(t,e){"use strict"},function(t,e,n){"use strict";var o=n(62)(!0);n(32)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=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="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},r=n(1),i=n(3),u=n(2),s=n(17),c=n(37),l=n(57).KEY,f=n(10),a=n(23),d=n(21),p=n(14),h=n(7),y=n(27),v=n(26),m=n(56),b=n(50),g=n(53),x=n(8),_=n(5),w=n(25),O=n(13),S=n(33),C=n(60),P=n(59),M=n(4),k=n(12),E=P.f,j=M.f,T=C.f,B=r.Symbol,I=r.JSON,F=I&&I.stringify,N="prototype",A=h("_hidden"),L=h("toPrimitive"),$={}.propertyIsEnumerable,D=a("symbol-registry"),V=a("symbols"),z=a("op-symbols"),R=Object[N],H="function"==typeof B,W=r.QObject,J=!W||!W[N]||!W[N].findChild,G=u&&f(function(){return 7!=S(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(t,e,n){var o=E(R,e);o&&delete R[e],j(t,e,n),o&&t!==R&&j(R,e,o)}:j,K=function(t){var e=V[t]=S(B[N]);return e._k=t,e},Z=H&&"symbol"==o(B.iterator)?function(t){return"symbol"==("undefined"==typeof t?"undefined":o(t))}:function(t){return t instanceof B},q=function(t,e,n){return t===R&&q(z,e,n),x(t),e=w(e,!0),x(n),i(V,e)?(n.enumerable?(i(t,A)&&t[A][e]&&(t[A][e]=!1),n=S(n,{enumerable:O(0,!1)})):(i(t,A)||j(t,A,O(1,{})),t[A][e]=!0),G(t,e,n)):j(t,e,n)},Y=function(t,e){x(t);for(var n,o=b(e=_(e)),r=0,i=o.length;i>r;)q(t,n=o[r++],e[n]);return t},Q=function(t,e){return void 0===e?S(t):Y(S(t),e)},U=function(t){var e=$.call(this,t=w(t,!0));return this===R&&i(V,t)&&!i(z,t)?!1:e||!i(this,t)||!i(V,t)||i(this,A)&&this[A][t]?e:!0},X=function(t,e){if(t=_(t),e=w(e,!0),t!==R||!i(V,e)||i(z,e)){var n=E(t,e);return!n||!i(V,e)||i(t,A)&&t[A][e]||(n.enumerable=!0),n}},tt=function(t){for(var e,n=T(_(t)),o=[],r=0;n.length>r;)i(V,e=n[r++])||e==A||e==l||o.push(e);return o},et=function(t){for(var e,n=t===R,o=T(n?z:_(t)),r=[],u=0;o.length>u;)i(V,e=o[u++])&&(n?i(R,e):!0)&&r.push(V[e]);return r};H||(B=function(){if(this instanceof B)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function n(e){this===R&&n.call(z,e),i(this,A)&&i(this[A],t)&&(this[A][t]=!1),G(this,t,O(1,e))};return u&&J&&G(R,t,{configurable:!0,set:e}),K(t)},c(B[N],"toString",function(){return this._k}),P.f=X,M.f=q,n(34).f=C.f=tt,n(20).f=U,n(35).f=et,u&&!n(19)&&c(R,"propertyIsEnumerable",U,!0),y.f=function(t){return K(h(t))}),s(s.G+s.W+s.F*!H,{Symbol:B});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ot=0;nt.length>ot;)h(nt[ot++]);for(var nt=k(h.store),ot=0;nt.length>ot;)v(nt[ot++]);s(s.S+s.F*!H,"Symbol",{"for":function(t){return i(D,t+="")?D[t]:D[t]=B(t)},keyFor:function(t){if(Z(t))return m(D,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){J=!0},useSimple:function(){J=!1}}),s(s.S+s.F*!H,"Object",{create:Q,defineProperty:q,defineProperties:Y,getOwnPropertyDescriptor:X,getOwnPropertyNames:tt,getOwnPropertySymbols:et}),I&&s(s.S+s.F*(!H||f(function(){var t=B();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!Z(t)){for(var e,n,o=[t],r=1;arguments.length>r;)o.push(arguments[r++]);return e=o[1],"function"==typeof e&&(n=e),!n&&g(e)||(e=function(t,e){return n&&(e=n.call(this,t,e)),Z(e)?void 0:e}),o[1]=e,F.apply(I,o)}}}),B[N][L]||n(6)(B[N],L,B[N].valueOf),d(B,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(t,e,n){"use strict";n(26)("asyncIterator")},function(t,e,n){"use strict";n(26)("observable")},function(t,e,n){"use strict";n(66);for(var o=n(1),r=n(6),i=n(18),u=n(7)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],c=0;5>c;c++){var l=s[c],f=o[l],a=f&&f.prototype;a&&!a[u]&&r(a,u,l),i[l]=i.Array}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(75),i=o(r),u="确定",s="取消";e["default"]={mixins:[i["default"]],props:{modal:{"default":!0},lockScroll:{"default":!1},closeOnPressEscape:{"default":!0}},computed:{confirmButtonClasses:function(){var t="msgbox-btn msgbox-confirm "+this.confirmButtonClass;return this.confirmButtonHighlight&&(t+=" msgbox-confirm-highlight"),t},cancelButtonClasses:function(){var t="msgbox-btn msgbox-cancel "+this.cancelButtonClass;return this.cancelButtonHighlight&&(t+=" msgbox-cancel-highlight"),t}},methods:{handleAction:function(t){if("prompt"!==this.$type||"confirm"!==t||this.validate()){var e=this.callback;this.visible=!1,e(t)}},validate:function(){if("prompt"===this.$type){var t=this.inputPattern;if(t&&!t.test(this.inputValue||""))return this.editorErrorMessage=this.inputErrorMessage||"输入的数据不合法!",!1;var e=this.inputValidator;if("function"==typeof e){var n=e(this.inputValue);if(n===!1)return this.editorErrorMessage=this.inputErrorMessage||"输入的数据不合法!",!1;if("string"==typeof n)return this.editorErrorMessage=n,!1}}return this.editorErrorMessage="",!0}},watch:{inputValue:function(){"prompt"===this.$type&&this.validate()},visible:function(t){var e=this;t&&"prompt"===this.$type&&setTimeout(function(){e.$els.input&&e.$els.input.focus()},500)}},data:function(){return{title:"",message:"",type:"",showInput:!1,inputValue:null,inputType:"text",inputPlaceholder:"",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonText:u,cancelButtonText:s,confirmButtonPosition:"right",confirmButtonHighlight:!1,confirmButtonClass:"",confirmButtonDisabled:!1,cancelButtonClass:"",cancelButtonHighlight:!1,editorErrorMessage:null,callback:null}}}},function(t,e,n){var o,r,i;(function(t){"use strict";function u(t){return t&&t.__esModule?t:{"default":t}}var s=n(39),c=u(s),l=n(42),f=u(l);!function(u,s){"object"==(0,f["default"])(e)&&"object"==(0,f["default"])(t)?t.exports=s(n(28)):(r=[n(28)],o=s,i="function"==typeof o?o.apply(e,r):o,!(void 0!==i&&(t.exports=i)))}(void 0,function(t){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.i=function(t){return t},e.d=function(t,e,n){(0,c["default"])(t,e,{configurable:!1,enumerable:!0,get:n})},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="/lib/",e(e.s=6)}([function(t,e,n){function o(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.PopupManager=void 0;var r=n(5),i=o(r),u=n(3),s=n(2),c=o(s);n(4);var l=1,f=[],a=function(t){if(-1===f.indexOf(t)){var e=function n(t){var n=t.__vue__;if(!n){var e=t.previousSibling;e.__vue__&&(n=e.__vue__)}return n};i["default"].transition(t,{afterEnter:function(t){var n=e(t);n&&n.doAfterOpen&&n.doAfterOpen()},afterLeave:function(t){var n=e(t);n&&n.doAfterClose&&n.doAfterClose()}})}},d=void 0,p=function(){if(void 0!==d)return d;var t=document.createElement("div");t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);var e=t.offsetWidth;t.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",t.appendChild(n);var o=n.offsetWidth;return t.parentNode.removeChild(t),e-o},h=function y(t){return 3===t.nodeType&&(t=t.nextElementSibling||t.nextSibling,y(t)),t};e["default"]={props:{value:{type:Boolean,"default":!1},transition:{type:String,"default":""},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,"default":!1},modalFade:{type:Boolean,"default":!0},modalClass:{},lockScroll:{type:Boolean,"default":!0},closeOnPressEscape:{type:Boolean,"default":!1},closeOnClickModal:{type:Boolean,"default":!1}},created:function(){this.transition&&a(this.transition)},beforeMount:function(){this._popupId="popup-"+l++,c["default"].register(this._popupId,this)},beforeDestroy:function(){c["default"].deregister(this._popupId),c["default"].closeModal(this._popupId)},data:function(){return{opened:!1,bodyOverflow:null,bodyPaddingRight:null,rendered:!1}},watch:{value:function(t){var e=this;if(t){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,i["default"].nextTick(function(){e.open()}))}else this.close()}},methods:{open:function(t){var e=this;if(!this.rendered)return this.rendered=!0,void this.$emit("input",!0);var n=(0,u.merge)({},this,t);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var o=Number(n.openDelay);o>0?this._openTimer=setTimeout(function(){e._openTimer=null,e.doOpen(n)},o):this.doOpen(n)},doOpen:function(t){if((!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0,this.$emit("input",!0);var e=h(this.$el),n=t.modal,o=t.zIndex;if(o&&(c["default"].zIndex=o),n&&(this._closing&&(c["default"].closeModal(this._popupId),this._closing=!1),c["default"].openModal(this._popupId,c["default"].nextZIndex(),e,t.modalClass,t.modalFade),t.lockScroll)){this.bodyOverflow||(this.bodyPaddingRight=document.body.style.paddingRight,this.bodyOverflow=document.body.style.overflow),d=p();var r=document.body.clientHeight<document.body.scrollHeight;d>0&&r&&(document.body.style.paddingRight=d+"px"),document.body.style.overflow="hidden"}"static"===getComputedStyle(e).position&&(e.style.position="absolute"),n?e.style.zIndex=c["default"].nextZIndex():o&&(e.style.zIndex=o),this.opened=!0,this.onOpen&&this.onOpen(),this.transition||this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var t=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var e=Number(this.closeDelay);e>0?this._closeTimer=setTimeout(function(){t._closeTimer=null,t.doClose()},e):this.doClose()}},doClose:function(){var t=this;this.$emit("input",!1),this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(function(){t.modal&&"hidden"!==t.bodyOverflow&&(document.body.style.overflow=t.bodyOverflow,document.body.style.paddingRight=t.bodyPaddingRight),t.bodyOverflow=null,t.bodyPaddingRight=null},200),this.opened=!1,this.transition||this.doAfterClose()},doAfterClose:function(){c["default"].closeModal(this._popupId),this._closing=!1}}},e.PopupManager=c["default"]},function(t,e){var n=function(t){return(t||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},o=function(t,e){if(!t||!e)return!1;if(-1!=e.indexOf(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").indexOf(" "+e+" ")>-1},r=function u(t,e){if(t){for(var n=t.className,u=(e||"").split(" "),r=0,i=u.length;i>r;r++){var s=u[r];s&&(t.classList?t.classList.add(s):o(t,s)||(n+=" "+s))}t.classList||(t.className=n)}},i=function s(t,e){if(t&&e){for(var r=e.split(" "),s=" "+t.className+" ",i=0,u=r.length;u>i;i++){var c=r[i];c&&(t.classList?t.classList.remove(c):o(t,c)&&(s=s.replace(" "+c+" "," ")))}t.classList||(t.className=n(s))}};t.exports={hasClass:o,addClass:r,removeClass:i}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=function(){var t=u.modalDom;return t||(t=document.createElement("div"),u.modalDom=t,t.addEventListener("touchmove",function(t){t.preventDefault(),t.stopPropagation()}),t.addEventListener("click",function(){u.doOnModalClick&&u.doOnModalClick()})),t},i={},u={zIndex:1e3,modalFade:!0,getInstance:function(t){return i[t]},register:function(t,e){t&&e&&(i[t]=e)},deregister:function(t){t&&(i[t]=null,delete i[t])},nextZIndex:function(){return u.zIndex++},modalStack:[],doOnModalClick:function(){var t=u.modalStack[u.modalStack.length-1];if(t){var e=u.getInstance(t.id);e&&e.closeOnClickModal&&e.close()}},openModal:function(t,e,n,i,u){if(t&&void 0!==e){this.modalFade=u;for(var s=this.modalStack,c=0,l=s.length;l>c;c++){var f=s[c];if(f.id===t)return}var a=r();if((0,o.addClass)(a,"v-modal"),this.modalFade&&(0,o.addClass)(a,"v-modal-enter"),i){var d=i.trim().split(/\s+/);d.forEach(function(t){return(0,o.addClass)(a,t)})}setTimeout(function(){(0,o.removeClass)(a,"v-modal-enter")},200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(a):document.body.appendChild(a),e&&(a.style.zIndex=e),a.style.display="",this.modalStack.push({id:t,zIndex:e,modalClass:i})}},closeModal:function(t){var e=this.modalStack,n=r();if(e.length>0){var i=e[e.length-1];if(i.id===t){if(i.modalClass){var u=i.modalClass.trim().split(/\s+/);u.forEach(function(t){return(0,o.removeClass)(n,t)})}e.pop(),e.length>0&&(n.style.zIndex=e[e.length-1].zIndex)}else for(var s=e.length-1;s>=0;s--)if(e[s].id===t){e.splice(s,1);break}}0===e.length&&(this.modalFade&&(0,o.addClass)(n,"v-modal-leave"),setTimeout(function(){0===e.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none"),(0,o.removeClass)(n,"v-modal-leave")},200))}};window.addEventListener("keydown",function(t){if(27===t.keyCode&&u.modalStack.length>0){var e=u.modalStack[u.modalStack.length-1];if(!e)return;var n=u.getInstance(e.id);n.closeOnPressEscape&&n.close()}}),e["default"]=u},function(t,e){function n(t){for(var e=1,n=arguments.length;n>e;e++){var o=arguments[e];for(var r in o)if(o.hasOwnProperty(r)){var i=o[r];void 0!==i&&(t[r]=i)}}return t}Object.defineProperty(e,"__esModule",{value:!0}),e.merge=n},function(t,e){},function(e,n){e.exports=t},function(t,e,n){t.exports=n(0)}])})}).call(e,n(76)(t))},function(t,e){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){},function(t,e){},function(t,e){t.exports="<div class=msgbox-wrapper> <div class=msgbox v-if=rendered v-show=visible transition=pop-bounce> <div class=msgbox-header v-if=\"title !== ''\"> <div class=msgbox-title>{{ title }}</div> </div> <div class=msgbox-content v-if=\"message !== ''\"> <div class=\"msgbox-status d-icon {{ type ? 'icon-' + type : '' }}\"></div> <div class=msgbox-message>{{{ message }}}</div> <div class=msgbox-input v-show=showInput> <input :type=inputType v-model=inputValue :placeholder=inputPlaceholder v-el:input/> <div class=msgbox-errormsg :style=\"{ visibility: !!editorErrorMessage ? 'visible' : 'hidden' }\">{{editorErrorMessage}}</div> </div> </div> <div class=msgbox-btns :class=\"{ 'msgbox-btns-reverse': confirmButtonPosition === 'left' }\"> <button class=\"{{ cancelButtonClasses }}\" v-show=showCancelButton @click=\"handleAction('cancel')\">{{ cancelButtonText }}</button> <button class=\"{{ confirmButtonClasses }}\" v-show=showConfirmButton @click=\"handleAction('confirm')\">{{ confirmButtonText }}</button> </div> </div> </div>"},function(t,e,n){var o,r;n(78),n(77),o=n(74),r=n(79),t.exports=o||{},t.exports.__esModule&&(t.exports=t.exports["default"]),r&&(("function"==typeof t.exports?t.exports.options:t.exports).template=r)}])});