Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

Dui

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Dui - npm Package Compare versions

Comparing version 0.0.3-alpha.3 to 0.0.3-alpha.4

2

dist/js/dui.min.js

@@ -1,1 +0,1 @@

!function(t){function n(o){if(e[o])return e[o].exports;var r=e[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}var r=e(1),i=o(r),u=e(76),a=o(u);window.Dui=t.exports={Modal:i.default,Animate:a.default}},function(t,n,e){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function i(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function u(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function t(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(n,e,o){return e&&t(n.prototype,e),o&&t(n,o),n}}(),c=e(2),l=o(c),f=e(70),s=o(f),p=e(72),d=o(p),h=e(73),v=o(h),y=e(74),g=o(y),b=e(75),m=o(b);n.default=function(){var t=['<div class="dui-dialog <%= className %>" style="width: <%= width %>px; height: <%= height %>px">',"<% if(close) { %>",'<i class="dui-dialog-close J_dialog-close <%=closeClass %>" href="javascript:;"></i>',"<% } %>",'<% if(title != "" && type == "default") { %>','<div class="dui-dialog-hd">','<h3 class="dui-dialog-title"><%= title %></h3>',"</div>","<% } %>",'<% if(type == "custom") { %>','<div class="dui-dialog-custom-bd"><%= content %></div>',"<% } %>",'<% if(type == "default") { %>','<% if(contentHeight != "auto"){ %>','<div style="height: <%= contentHeight %>px;" class="dui-dialog-bd">',"<% }else { %>",'<div style="height: <%= contentHeight %>;max-height: <%= contentMaxHeight %>px" class="dui-dialog-bd">',"<% } %>","<%= content %>","</div>","<% if(ok || cancel) { %>",'<div class="dui-dialog-ft <%= btnPosClass %>">','<div class="dui-btn-list-g10">',"<% if(ok) { %>",'<a class="dui-btn-info J_dialog-ok" href="javascript:;"><%= okValue %></a>',"<% } %>","<% if(cancel) { %>",'<a class="dui-btn J_dialog-cancel" href="javascript:;"><%= cancelValue %></a>',"<% } %>","</div>","</div>","<% } %>","<% } %>","</div>"],n=function(n){function e(t){r(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this)),o={type:"default",title:"提示",content:"内容",okValue:"确定",cancelValue:"取消",className:"",closeClass:d.default.closeIconClass,mask:!0,close:!0,ok:!1,cancel:!1,btnPos:"right",draggable:!1};return n.option=t,n.option=(0,s.default)({},o,n.option),n.init(),n}return u(e,n),a(e,[{key:"init",value:function(){this.handleOption(),this.show(),this.bindEvent(),this.handleDrag(),this.option.init&&this.option.init.apply(this)}},{key:"handleOption",value:function(){this.handleOptionWidth(),this.handleOptionHeight(),this.handleOptionButton(),this.handleOptionContentHeight()}},{key:"handleOptionWidth",value:function(){var t=this.option.width;t=t?parseInt(t):d.default.minWidth,d.default.minWidth-t>=0&&(t=d.default.minWidth),d.default.maxWidth-t<0&&(t=d.default.maxWidth),this.option.width=t}},{key:"handleOptionHeight",value:function(){var t=this.option.height;"auto"!=t&&(t=t?parseInt(t):d.default.minHeight,d.default.minHeight-t>=0&&(t=d.default.minHeight),d.default.maxHeight-t<0&&(t=d.default.maxHeight),this.option.height=t)}},{key:"handleOptionContentHeight",value:function(){var t=this.option.height,n=d.default.hdHeight,e=d.default.ftHeight,o=d.default.padding,r=d.default.maxHeight,i=void 0;if(this.option.ok||this.option.cancel?i=3*o:(i=2*o,e=0),""==this.option.title&&(n=0),"auto"==t){this.option.contentHeight="auto";var u=r-n-e-i;this.option.contentMaxHeight=u}else{var a=t-n-e-i;this.option.contentHeight=a}}},{key:"handleOptionButton",value:function(){var t=this.option.ok,n=this.option.cancel;if(null==t)this.option.ok=!1;else{var e="boolean"==typeof t;this.option.ok=!!t,this.option.okValue=e?this.option.okValue:t}if(null==n)this.option.ok=!1;else{var e="boolean"==typeof t;this.option.cancel=!!n,this.option.cancelValue=e?this.option.cancelValue:n}this.option.okFn&&(this.option.ok=!0),this.option.cancelFn&&(this.option.cancel=!0),this.option.btnPosClass="dui-dialog-ft-"+this.option.btnPos}},{key:"show",value:function(){var n=v.default.has(".dui-dialog-wrap").length;if(0==n&&this.option.mask){var e='<div class="dui-dialog-wrap"></div>';v.default.appendHTML(document.body,e)}var o=(0,l.default)(t.join("")),r=o(this.option);this.option.mask?this.dialogDom=v.default.appendHTML(v.default.find(".dui-dialog-wrap"),r):this.dialogDom=v.default.appendHTML(document.body,r)}},{key:"hide",value:function(){this.destroy()}},{key:"destroy",value:function(){this.unBindEvent();var t=v.default.has(v.default.find(".dui-dialog-wrap"),".dui-dialog").length;v.default.remove(this.dialogDom),1==t&&this.option.mask&&v.default.remove(v.default.find(".dui-dialog-wrap")),this.dialogDom=null}},{key:"_okFn",value:function(){this.$emit("ok"),this.option.okFn&&this.option.okFn.apply(this)}},{key:"_cancelFn",value:function(){this.$emit("cancel"),this.option.cancelFn&&this.option.cancelFn.apply(this),this.hide()}},{key:"_closeFn",value:function(){this.$emit("close"),this.hide()}},{key:"_escFn",value:function(t){t=t||window.event,"27"==t.keyCode&&this.hide()}},{key:"handleDrag",value:function(){if(this.option.draggable){var t=v.default.find(this.dialogDom,".dui-dialog-hd");v.default.addClass(t,"z-draggable"),m.default.startDrag(t,this.dialogDom,d.default.boundary(this.dialogDom),this)}}},{key:"bindEvent",value:function(){var t=this.okBtn=v.default.find(this.dialogDom,".J_dialog-ok"),n=this.cancelBtn=v.default.find(this.dialogDom,".J_dialog-cancel"),e=this.closeBtn=v.default.find(this.dialogDom,".J_dialog-close");t&&t.addEventListener("click",this.bindOkClick=this._okFn.bind(this),!1),n&&n.addEventListener("click",this.bindCancelClick=this._cancelFn.bind(this),!1),e&&e.addEventListener("click",this.bindCloseClick=this._closeFn.bind(this),!1),document.addEventListener("keydown",this.bindEscClick=this._escFn.bind(this),!1)}},{key:"unBindEvent",value:function(){var t=this.okBtn,n=this.cancelBtn,e=this.closeBtn;t&&t.removeEventListener("click",this.bindOkClick,!1),n&&n.removeEventListener("click",this.bindCancelClick,!1),e&&e.removeEventListener("click",this.bindCloseClick,!1),document.removeEventListener("keydown",this.bindEscClick,!1)}}]),e}(g.default);return n.alert=function(t){return new n({content:t,okFn:function(){this.hide()}})},n.confirm=function(t){return new Promise(function(e){new n({content:t,okFn:function(){e(),this.hide()},cancel:!0})})},n}()},function(t,n,e){function o(t,n,e){var o=d.imports._.templateSettings||d;e&&f(t,n,e)&&(n=void 0),t=h(t),n=i({},n,o,r);var _,j,k=i({},n.imports,o.imports,r),O=s(k),w=a(k,O),M=0,C=n.interpolate||m,S="__p += '",P=RegExp((n.escape||m).source+"|"+C.source+"|"+(C===p?b:m).source+"|"+(n.evaluate||m).source+"|$","g"),E="sourceURL"in n?"//# sourceURL="+n.sourceURL+"\n":"";t.replace(P,function(n,e,o,r,i,u){return o||(o=r),S+=t.slice(M,u).replace(x,c),e&&(_=!0,S+="' +\n__e("+e+") +\n'"),i&&(j=!0,S+="';\n"+i+";\n__p += '"),o&&(S+="' +\n((__t = ("+o+")) == null ? '' : __t) +\n'"),M=u+n.length,n}),S+="';\n";var H=n.variable;H||(S="with (obj) {\n"+S+"\n}\n"),S=(j?S.replace(v,""):S).replace(y,"$1").replace(g,"$1;"),S="function("+(H||"obj")+") {\n"+(H?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(_?", __e = _.escape":"")+(j?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+S+"return __p\n}";var I=u(function(){return Function(O,E+"return "+S).apply(void 0,w)});if(I.source=S,l(I))throw I;return I}var r=e(3),i=e(5),u=e(50),a=e(52),c=e(54),l=e(51),f=e(29),s=e(55),p=e(59),d=e(60),h=e(64),v=/\b__p \+= '';/g,y=/\b(__p \+=) '' \+/g,g=/(__e\(.*?\)|\b__t\)) \+\n'';/g,b=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,m=/($^)/,x=/['\n\r\u2028\u2029\\]/g;t.exports=o},function(t,n,e){function o(t,n,e,o){return void 0===t||r(t,i[e])&&!u.call(o,e)?n:t}var r=e(4),i=Object.prototype,u=i.hasOwnProperty;t.exports=o},function(t,n){function e(t,n){return t===n||t!==t&&n!==n}t.exports=e},function(t,n,e){var o=e(6),r=e(20),i=e(33),u=r(function(t,n,e,r){o(n,i(n),t,r)});t.exports=u},function(t,n,e){function o(t,n,e,o){var u=!e;e||(e={});for(var a=-1,c=n.length;++a<c;){var l=n[a],f=o?o(e[l],t[l],l,e,t):void 0;void 0===f&&(f=t[l]),u?i(e,l,f):r(e,l,f)}return e}var r=e(7),i=e(8);t.exports=o},function(t,n,e){function o(t,n,e){var o=t[n];a.call(t,n)&&i(o,e)&&(void 0!==e||n in t)||r(t,n,e)}var r=e(8),i=e(4),u=Object.prototype,a=u.hasOwnProperty;t.exports=o},function(t,n,e){function o(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}var r=e(9);t.exports=o},function(t,n,e){var o=e(10),r=function(){try{var t=o(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=r},function(t,n,e){function o(t,n){var e=i(t,n);return r(e)?e:void 0}var r=e(11),i=e(19);t.exports=o},function(t,n,e){function o(t){if(!u(t)||i(t))return!1;var n=r(t)?h:l;return n.test(a(t))}var r=e(12),i=e(14),u=e(13),a=e(18),c=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,f=Function.prototype,s=Object.prototype,p=f.toString,d=s.hasOwnProperty,h=RegExp("^"+p.call(d).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=o},function(t,n,e){function o(t){var n=r(t)?l.call(t):"";return n==i||n==u||n==a}var r=e(13),i="[object Function]",u="[object GeneratorFunction]",a="[object Proxy]",c=Object.prototype,l=c.toString;t.exports=o},function(t,n){function e(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}t.exports=e},function(t,n,e){function o(t){return!!i&&i in t}var r=e(15),i=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=o},function(t,n,e){var o=e(16),r=o["__core-js_shared__"];t.exports=r},function(t,n,e){var o=e(17),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();t.exports=i},function(t,n){(function(n){var e="object"==typeof n&&n&&n.Object===Object&&n;t.exports=e}).call(n,function(){return this}())},function(t,n){function e(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var o=Function.prototype,r=o.toString;t.exports=e},function(t,n){function e(t,n){return null==t?void 0:t[n]}t.exports=e},function(t,n,e){function o(t){return r(function(n,e){var o=-1,r=e.length,u=r>1?e[r-1]:void 0,a=r>2?e[2]:void 0;for(u=t.length>3&&"function"==typeof u?(r--,u):void 0,a&&i(e[0],e[1],a)&&(u=r<3?void 0:u,r=1),n=Object(n);++o<r;){var c=e[o];c&&t(n,c,o,u)}return n})}var r=e(21),i=e(29);t.exports=o},function(t,n,e){function o(t,n){return u(i(t,n,r),t+"")}var r=e(22),i=e(23),u=e(25);t.exports=o},function(t,n){function e(t){return t}t.exports=e},function(t,n,e){function o(t,n,e){return n=i(void 0===n?t.length-1:n,0),function(){for(var o=arguments,u=-1,a=i(o.length-n,0),c=Array(a);++u<a;)c[u]=o[n+u];u=-1;for(var l=Array(n+1);++u<n;)l[u]=o[u];return l[n]=e(c),r(t,this,l)}}var r=e(24),i=Math.max;t.exports=o},function(t,n){function e(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}t.exports=e},function(t,n,e){var o=e(26),r=e(28),i=r(o);t.exports=i},function(t,n,e){var o=e(27),r=e(9),i=e(22),u=r?function(t,n){return r(t,"toString",{configurable:!0,enumerable:!1,value:o(n),writable:!0})}:i;t.exports=u},function(t,n){function e(t){return function(){return t}}t.exports=e},function(t,n){function e(t){var n=0,e=0;return function(){var u=i(),a=r-(u-e);if(e=u,a>0){if(++n>=o)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var o=500,r=16,i=Date.now;t.exports=e},function(t,n,e){function o(t,n,e){if(!a(e))return!1;var o=typeof n;return!!("number"==o?i(e)&&u(n,e.length):"string"==o&&n in e)&&r(e[n],t)}var r=e(4),i=e(30),u=e(32),a=e(13);t.exports=o},function(t,n,e){function o(t){return null!=t&&i(t.length)&&!r(t)}var r=e(12),i=e(31);t.exports=o},function(t,n){function e(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}var o=9007199254740991;t.exports=e},function(t,n){function e(t,n){return n=null==n?o:n,!!n&&("number"==typeof t||r.test(t))&&t>-1&&t%1==0&&t<n}var o=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=e},function(t,n,e){function o(t){return u(t)?r(t,!0):i(t)}var r=e(34),i=e(47),u=e(30);t.exports=o},function(t,n,e){function o(t,n){var e=u(t),o=!e&&i(t),f=!e&&!o&&a(t),p=!e&&!o&&!f&&l(t),d=e||o||f||p,h=d?r(t.length,String):[],v=h.length;for(var y in t)!n&&!s.call(t,y)||d&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,v))||h.push(y);return h}var r=e(35),i=e(36),u=e(39),a=e(40),c=e(32),l=e(43),f=Object.prototype,s=f.hasOwnProperty;t.exports=o},function(t,n){function e(t,n){for(var e=-1,o=Array(t);++e<t;)o[e]=n(e);return o}t.exports=e},function(t,n,e){var o=e(37),r=e(38),i=Object.prototype,u=i.hasOwnProperty,a=i.propertyIsEnumerable,c=o(function(){return arguments}())?o:function(t){return r(t)&&u.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},function(t,n,e){function o(t){return r(t)&&a.call(t)==i}var r=e(38),i="[object Arguments]",u=Object.prototype,a=u.toString;t.exports=o},function(t,n){function e(t){return null!=t&&"object"==typeof t}t.exports=e},function(t,n){var e=Array.isArray;t.exports=e},function(t,n,e){(function(t){var o=e(16),r=e(42),i="object"==typeof n&&n&&!n.nodeType&&n,u=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=u&&u.exports===i,c=a?o.Buffer:void 0,l=c?c.isBuffer:void 0,f=l||r;t.exports=f}).call(n,e(41)(t))},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,n){function e(){return!1}t.exports=e},function(t,n,e){var o=e(44),r=e(45),i=e(46),u=i&&i.isTypedArray,a=u?r(u):o;t.exports=a},function(t,n,e){function o(t){return i(t)&&r(t.length)&&!!E[I.call(t)]}var r=e(31),i=e(38),u="[object Arguments]",a="[object Array]",c="[object Boolean]",l="[object Date]",f="[object Error]",s="[object Function]",p="[object Map]",d="[object Number]",h="[object Object]",v="[object RegExp]",y="[object Set]",g="[object String]",b="[object WeakMap]",m="[object ArrayBuffer]",x="[object DataView]",_="[object Float32Array]",j="[object Float64Array]",k="[object Int8Array]",O="[object Int16Array]",w="[object Int32Array]",M="[object Uint8Array]",C="[object Uint8ClampedArray]",S="[object Uint16Array]",P="[object Uint32Array]",E={};E[_]=E[j]=E[k]=E[O]=E[w]=E[M]=E[C]=E[S]=E[P]=!0,E[u]=E[a]=E[m]=E[c]=E[x]=E[l]=E[f]=E[s]=E[p]=E[d]=E[h]=E[v]=E[y]=E[g]=E[b]=!1;var H=Object.prototype,I=H.toString;t.exports=o},function(t,n){function e(t){return function(n){return t(n)}}t.exports=e},function(t,n,e){(function(t){var o=e(17),r="object"==typeof n&&n&&!n.nodeType&&n,i=r&&"object"==typeof t&&t&&!t.nodeType&&t,u=i&&i.exports===r,a=u&&o.process,c=function(){try{return a&&a.binding("util")}catch(t){}}();t.exports=c}).call(n,e(41)(t))},function(t,n,e){function o(t){if(!r(t))return u(t);var n=i(t),e=[];for(var o in t)("constructor"!=o||!n&&c.call(t,o))&&e.push(o);return e}var r=e(13),i=e(48),u=e(49),a=Object.prototype,c=a.hasOwnProperty;t.exports=o},function(t,n){function e(t){var n=t&&t.constructor,e="function"==typeof n&&n.prototype||o;return t===e}var o=Object.prototype;t.exports=e},function(t,n){function e(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}t.exports=e},function(t,n,e){var o=e(24),r=e(21),i=e(51),u=r(function(t,n){try{return o(t,void 0,n)}catch(t){return i(t)?t:new Error(t)}});t.exports=u},function(t,n,e){function o(t){return!!r(t)&&(a.call(t)==i||"string"==typeof t.message&&"string"==typeof t.name)}var r=e(38),i="[object Error]",u=Object.prototype,a=u.toString;t.exports=o},function(t,n,e){function o(t,n){return r(n,function(n){return t[n]})}var r=e(53);t.exports=o},function(t,n){function e(t,n){for(var e=-1,o=t?t.length:0,r=Array(o);++e<o;)r[e]=n(t[e],e,t);return r}t.exports=e},function(t,n){function e(t){return"\\"+o[t]}var o={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};t.exports=e},function(t,n,e){function o(t){return u(t)?r(t):i(t)}var r=e(34),i=e(56),u=e(30);t.exports=o},function(t,n,e){function o(t){if(!r(t))return i(t);var n=[];for(var e in Object(t))a.call(t,e)&&"constructor"!=e&&n.push(e);return n}var r=e(48),i=e(57),u=Object.prototype,a=u.hasOwnProperty;t.exports=o},function(t,n,e){var o=e(58),r=o(Object.keys,Object);t.exports=r},function(t,n){function e(t,n){return function(e){return t(n(e))}}t.exports=e},function(t,n){var e=/<%=([\s\S]+?)%>/g;t.exports=e},function(t,n,e){var o=e(61),r=e(68),i=e(69),u=e(59),a={escape:r,evaluate:i,interpolate:u,variable:"",imports:{_:{escape:o}}};t.exports=a},function(t,n,e){function o(t){return t=i(t),t&&a.test(t)?t.replace(u,r):t}var r=e(62),i=e(64),u=/[&<>"']/g,a=RegExp(u.source);t.exports=o},function(t,n,e){var o=e(63),r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},i=o(r);t.exports=i},function(t,n){function e(t){return function(n){return null==t?void 0:t[n]}}t.exports=e},function(t,n,e){function o(t){return null==t?"":r(t)}var r=e(65);t.exports=o},function(t,n,e){function o(t){if("string"==typeof t)return t;if(u(t))return i(t,o)+"";if(a(t))return f?f.call(t):"";var n=t+"";return"0"==n&&1/t==-c?"-0":n}var r=e(66),i=e(53),u=e(39),a=e(67),c=1/0,l=r?r.prototype:void 0,f=l?l.toString:void 0;t.exports=o},function(t,n,e){var o=e(16),r=o.Symbol;t.exports=r},function(t,n,e){function o(t){return"symbol"==typeof t||r(t)&&a.call(t)==i}var r=e(38),i="[object Symbol]",u=Object.prototype,a=u.toString;t.exports=o},function(t,n){var e=/<%-([\s\S]+?)%>/g;t.exports=e},function(t,n){var e=/<%([\s\S]+?)%>/g;t.exports=e},function(t,n,e){t.exports=e(71)},function(t,n,e){var o=e(6),r=e(20),i=e(33),u=r(function(t,n){o(n,i(n),t)});t.exports=u},function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default={minWidth:420,minHeight:170,maxWidth:920,maxHeight:580,hdHeight:45,ftHeight:30,padding:16,closeIconClass:"iconfont icon-shanchu5",boundary:function(t){var n=t.offsetWidth,e=t.offsetHeight;return{getLeft:function(t){var e=document.documentElement.clientWidth;return t<n/2?n/2:t>e-n/2?e-n/2:t},getTop:function(t){var n=document.documentElement.clientHeight;return t<e/2?e/2:t>n-e/2?n-e/2:t}}}}},function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default={getCss:function(t,n){return t.currentStyle?t.currentStyle[n]:document.defaultView.getComputedStyle(t,!1)[n]},addClass:function(t,n){t.classList.add(n)},has:function(t,n){1==arguments.length&&(t=document,n=arguments[0]);var e=t.querySelectorAll(n);return{length:e.length}},find:function(t,n){return 1==arguments.length&&(t=document,n=arguments[0]),t.querySelector(n)},appendHTML:function(t,n){var e=document.createElement("div");e.innerHTML=n;var o=e.childNodes[0];return t.appendChild(o),o},remove:function(t){return t.parentNode.removeChild(t),t}}},function(t,n){"use strict";function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(n,e,o){return e&&t(n.prototype,e),o&&t(n,o),n}}(),i=[].slice,u=function(){function t(){e(this,t)}return r(t,[{key:"$on",value:function(t,n){if("object"===("undefined"==typeof t?"undefined":o(t)))for(var e in t)this.$on(e,t[e]);else{var r=this,i=r._handles||(r._handles={}),u=i[t]||(i[t]=[]);u.push(n)}return this}},{key:"$off",value:function(t,n){var e=this;if(e._handles){t||(this._handles={});var o,r=e._handles;if(o=r[t]){if(!n)return r[t]=[],e;for(var i=0,u=o.length;i<u;i++)if(n===o[i])return o.splice(i,1),e}return e}}},{key:"$emit",value:function(t){var n,e,o,r=this,u=r._handles;if(t){var e=i.call(arguments,1),o=t;if(!u)return r;if(n=u[o.slice(1)])for(var a=0,c=n.length;a<c;a++)n[a].apply(r,e);if(!(n=u[o]))return r;for(var l=0,c=n.length;l<c;l++)n[l].apply(r,e);return r}}}]),t}();n.default=u},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=e(73),r={left:0,top:0,currentX:0,currentY:0,flag:!1};n.default={startDrag:function(t,n,e,i){"auto"!==(0,o.getCss)(n,"left")&&(r.left=(0,o.getCss)(n,"left")),"auto"!==(0,o.getCss)(n,"top")&&(r.top=(0,o.getCss)(n,"top")),t.onmousedown=function(u){i&&i.$emit("dragStart"),r.flag=!0,u||(u=window.event,t.onselectstart=function(){return!1});var a=u;r.currentX=a.clientX,r.currentY=a.clientY,document.onmouseup=function(){r.flag=!1,"auto"!==(0,o.getCss)(n,"left")&&(r.left=(0,o.getCss)(n,"left")),"auto"!==(0,o.getCss)(n,"top")&&(r.top=(0,o.getCss)(n,"top")),i&&i.$emit("dragEnd"),document.onmousemove=null,document.onmouseup=null},document.onmousemove=function(t){var o=t?t:window.event;if(r.flag){var i=o.clientX,u=o.clientY,a=i-r.currentX,c=u-r.currentY,l=parseInt(r.left)+a,f=parseInt(r.top)+c;e&&(l=e.getLeft(l),f=e.getTop(f)),n.style.left=l+"px",n.style.top=f+"px"}}}}}},function(t,n){"use strict";function e(t,n,e,r,i){function u(t,n){return t.currentStyle?t.currentStyle[n]:getComputedStyle(t,!1)[n]}function a(){return(new Date).getTime()}"undefined"==typeof e&&(e=400,r="linear"),"string"==typeof e?("function"==typeof r&&(i=r),r=e,e=400):"function"==typeof e?(i=e,e=400,r="linear"):"number"==typeof e&&("function"==typeof r?(i=r,r="linear"):"undefined"==typeof r&&(r="linear"));var c={};for(var l in n)c[l]=0,"opacity"==l?c[l]=Math.round(100*u(t,l)):c[l]=parseInt(u(t,l));var f=a();clearInterval(t.timer),t.timer=setInterval(function(){var u=a(),l=e-Math.max(0,f-u+e);for(var s in n){var p=o[r](l,c[s],n[s]-c[s],e);"opacity"==s?(t.style.opacity=p/100,t.style.filter="alpha(opacity="+p+")"):t.style[s]=p+"px"}l==e&&(clearInterval(t.timer),i&&i.call(t))},13)}Object.defineProperty(n,"__esModule",{value:!0});var o={linear:function(t,n,e,o){return e*t/o+n},easeIn:function(t,n,e,o){return e*(t/=o)*t+n},easeOut:function(t,n,e,o){return-e*(t/=o)*(t-2)+n},easeBoth:function(t,n,e,o){return(t/=o/2)<1?e/2*t*t+n:-e/2*(--t*(t-2)-1)+n},easeInStrong:function(t,n,e,o){return e*(t/=o)*t*t*t+n},easeOutStrong:function(t,n,e,o){return-e*((t=t/o-1)*t*t*t-1)+n},easeBothStrong:function(t,n,e,o){return(t/=o/2)<1?e/2*t*t*t*t+n:-e/2*((t-=2)*t*t*t-2)+n},elasticIn:function(t,n,e,o,r,i){if(0===t)return n;if(1==(t/=o))return n+e;if(i||(i=.3*o),!r||r<Math.abs(e)){r=e;var u=i/4}else var u=i/(2*Math.PI)*Math.asin(e/r);return-(r*Math.pow(2,10*(t-=1))*Math.sin((t*o-u)*(2*Math.PI)/i))+n},elasticOut:function(t,n,e,o,r,i){if(0===t)return n;if(1==(t/=o))return n+e;if(i||(i=.3*o),!r||r<Math.abs(e)){r=e;var u=i/4}else var u=i/(2*Math.PI)*Math.asin(e/r);return r*Math.pow(2,-10*t)*Math.sin((t*o-u)*(2*Math.PI)/i)+e+n},elasticBoth:function(t,n,e,o,r,i){if(0===t)return n;if(2==(t/=o/2))return n+e;if(i||(i=o*(.3*1.5)),!r||r<Math.abs(e)){r=e;var u=i/4}else var u=i/(2*Math.PI)*Math.asin(e/r);return t<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t*o-u)*(2*Math.PI)/i))+n:r*Math.pow(2,-10*(t-=1))*Math.sin((t*o-u)*(2*Math.PI)/i)*.5+e+n},backIn:function(t,n,e,o,r){return"undefined"==typeof r&&(r=1.70158),e*(t/=o)*t*((r+1)*t-r)+n},backOut:function(t,n,e,o,r){return"undefined"==typeof r&&(r=3.70158),e*((t=t/o-1)*t*((r+1)*t+r)+1)+n},backBoth:function(t,n,e,o,r){return"undefined"==typeof r&&(r=1.70158),(t/=o/2)<1?e/2*(t*t*(((r*=1.525)+1)*t-r))+n:e/2*((t-=2)*t*(((r*=1.525)+1)*t+r)+2)+n},bounceIn:function(t,n,e,r){return e-o.bounceOut(r-t,0,e,r)+n},bounceOut:function(t,n,e,o){return(t/=o)<1/2.75?e*(7.5625*t*t)+n:t<2/2.75?e*(7.5625*(t-=1.5/2.75)*t+.75)+n:t<2.5/2.75?e*(7.5625*(t-=2.25/2.75)*t+.9375)+n:e*(7.5625*(t-=2.625/2.75)*t+.984375)+n},bounceBoth:function(t,n,e,r){return t<r/2?.5*o.bounceIn(2*t,0,e,r)+n:.5*o.bounceOut(2*t-r,0,e,r)+.5*e+n}};n.default={startMove:e}}]);
!function(t){function n(o){if(e[o])return e[o].exports;var r=e[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}var r=e(1),i=o(r),u=e(76),a=o(u);window.Dui=t.exports={Modal:i.default,Animate:a.default}},function(t,n,e){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function i(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?t:n}function u(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function t(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(n,e,o){return e&&t(n.prototype,e),o&&t(n,o),n}}(),c=e(2),l=o(c),s=e(70),f=o(s),p=e(72),d=o(p),h=e(73),v=o(h),y=e(74),g=o(y),b=e(75),m=o(b);n.default=function(){var t=['<div class="dui-dialog <%= className %>" style="width: <%= width %>px; height: <%= height %>px">',"<% if(close) { %>",'<i class="dui-dialog-close J_dialog-close <%=closeClass %>" href="javascript:;"></i>',"<% } %>",'<% if(title != "" && type == "default") { %>','<div class="dui-dialog-hd">','<h3 class="dui-dialog-title"><%= title %></h3>',"</div>","<% } %>",'<% if(type == "custom") { %>','<div class="dui-dialog-custom-bd"><%= content %></div>',"<% } %>",'<% if(type == "default") { %>','<% if(contentHeight != "auto"){ %>','<div style="height: <%= contentHeight %>px;" class="dui-dialog-bd">',"<% }else { %>",'<div style="height: <%= contentHeight %>;max-height: <%= contentMaxHeight %>px" class="dui-dialog-bd">',"<% } %>","<%= content %>","</div>","<% if(ok || cancel) { %>",'<div class="dui-dialog-ft <%= btnPosClass %>">','<div class="dui-btn-list-g10">',"<% if(ok) { %>",'<a class="dui-btn-info J_dialog-ok" href="javascript:;"><%= okValue %></a>',"<% } %>","<% if(cancel) { %>",'<a class="dui-btn J_dialog-cancel" href="javascript:;"><%= cancelValue %></a>',"<% } %>","</div>","</div>","<% } %>","<% } %>","</div>"],n=function(n){function e(t){r(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this)),o={type:"default",title:"提示",content:"内容",okValue:"确定",cancelValue:"取消",className:"",closeClass:d.default.closeIconClass,mask:!0,close:!0,ok:!1,cancel:!1,btnPos:"right",draggable:!1};return n.option=t,n.option=(0,f.default)({},o,n.option),n.init(),n}return u(e,n),a(e,[{key:"init",value:function(){this.handleOption(),this.show(),this.bindEvent(),this.handleDrag(),this.option.init&&this.option.init.apply(this)}},{key:"handleOption",value:function(){this.handleOptionWidth(),this.handleOptionHeight(),this.handleOptionButton(),this.handleOptionContentHeight()}},{key:"handleOptionWidth",value:function(){var t=this.option.width;t=t?parseInt(t):d.default.minWidth,d.default.minWidth-t>=0&&(t=d.default.minWidth),d.default.maxWidth-t<0&&(t=d.default.maxWidth),this.option.width=t}},{key:"handleOptionHeight",value:function(){var t=this.option.height;"auto"!=t&&(t=t?parseInt(t):d.default.minHeight,d.default.minHeight-t>=0&&(t=d.default.minHeight),d.default.maxHeight-t<0&&(t=d.default.maxHeight),this.option.height=t)}},{key:"handleOptionContentHeight",value:function(){var t=this.option.height,n=d.default.hdHeight,e=d.default.ftHeight,o=d.default.padding,r=d.default.maxHeight,i=void 0;if(this.option.ok||this.option.cancel?i=3*o:(i=2*o,e=0),""==this.option.title&&(n=0),"auto"==t){this.option.contentHeight="auto";var u=r-n-e-i;this.option.contentMaxHeight=u}else{var a=t-n-e-i;this.option.contentHeight=a}}},{key:"handleOptionButton",value:function(){var t=this.option.ok,n=this.option.cancel;if(null==t)this.option.ok=!1;else{var e="boolean"==typeof t;this.option.ok=!!t,this.option.okValue=e?this.option.okValue:t}if(null==n)this.option.ok=!1;else{var e="boolean"==typeof t;this.option.cancel=!!n,this.option.cancelValue=e?this.option.cancelValue:n}this.option.okFn&&(this.option.ok=!0),this.option.cancelFn&&(this.option.cancel=!0),this.option.btnPosClass="dui-dialog-ft-"+this.option.btnPos}},{key:"show",value:function(){var n=v.default.has(".dui-dialog-wrap").length;if(0==n&&this.option.mask){var e='<div class="dui-dialog-wrap"></div>';v.default.appendHTML(document.body,e)}var o=(0,l.default)(t.join("")),r=o(this.option);this.option.mask?this.dialogDom=v.default.appendHTML(v.default.find(".dui-dialog-wrap"),r):this.dialogDom=v.default.appendHTML(document.body,r)}},{key:"hide",value:function(){this.destroy()}},{key:"destroy",value:function(){this.unBindEvent();var t;t=this.option.mask?v.default.has(v.default.find(".dui-dialog-wrap"),".dui-dialog").length:v.default.has(".dui-dialog").length,v.default.remove(this.dialogDom),1==t&&this.option.mask&&v.default.remove(v.default.find(".dui-dialog-wrap")),this.dialogDom=null}},{key:"_okFn",value:function(){this.$emit("ok"),this.option.okFn&&this.option.okFn.apply(this)}},{key:"_cancelFn",value:function(){this.$emit("cancel"),this.option.cancelFn&&this.option.cancelFn.apply(this),this.hide()}},{key:"_closeFn",value:function(){this.$emit("close"),this.hide()}},{key:"_escFn",value:function(t){t=t||window.event,"27"==t.keyCode&&this.hide()}},{key:"handleDrag",value:function(){if(this.option.draggable){var t=v.default.find(this.dialogDom,".dui-dialog-hd");v.default.addClass(t,"z-draggable"),m.default.startDrag(t,this.dialogDom,d.default.boundary(this.dialogDom),this)}}},{key:"bindEvent",value:function(){var t=this.okBtn=v.default.find(this.dialogDom,".J_dialog-ok"),n=this.cancelBtn=v.default.find(this.dialogDom,".J_dialog-cancel"),e=this.closeBtn=v.default.find(this.dialogDom,".J_dialog-close");t&&t.addEventListener("click",this.bindOkClick=this._okFn.bind(this),!1),n&&n.addEventListener("click",this.bindCancelClick=this._cancelFn.bind(this),!1),e&&e.addEventListener("click",this.bindCloseClick=this._closeFn.bind(this),!1),document.addEventListener("keydown",this.bindEscClick=this._escFn.bind(this),!1)}},{key:"unBindEvent",value:function(){var t=this.okBtn,n=this.cancelBtn,e=this.closeBtn;t&&t.removeEventListener("click",this.bindOkClick,!1),n&&n.removeEventListener("click",this.bindCancelClick,!1),e&&e.removeEventListener("click",this.bindCloseClick,!1),document.removeEventListener("keydown",this.bindEscClick,!1)}}]),e}(g.default);return n.alert=function(t){return new n({content:t,okFn:function(){this.hide()}})},n.confirm=function(t){return new Promise(function(e){new n({content:t,okFn:function(){e(),this.hide()},cancel:!0})})},n}()},function(t,n,e){function o(t,n,e){var o=d.imports._.templateSettings||d;e&&s(t,n,e)&&(n=void 0),t=h(t),n=i({},n,o,r);var _,j,k=i({},n.imports,o.imports,r),O=f(k),w=a(k,O),M=0,C=n.interpolate||m,S="__p += '",P=RegExp((n.escape||m).source+"|"+C.source+"|"+(C===p?b:m).source+"|"+(n.evaluate||m).source+"|$","g"),E="sourceURL"in n?"//# sourceURL="+n.sourceURL+"\n":"";t.replace(P,function(n,e,o,r,i,u){return o||(o=r),S+=t.slice(M,u).replace(x,c),e&&(_=!0,S+="' +\n__e("+e+") +\n'"),i&&(j=!0,S+="';\n"+i+";\n__p += '"),o&&(S+="' +\n((__t = ("+o+")) == null ? '' : __t) +\n'"),M=u+n.length,n}),S+="';\n";var H=n.variable;H||(S="with (obj) {\n"+S+"\n}\n"),S=(j?S.replace(v,""):S).replace(y,"$1").replace(g,"$1;"),S="function("+(H||"obj")+") {\n"+(H?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(_?", __e = _.escape":"")+(j?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+S+"return __p\n}";var I=u(function(){return Function(O,E+"return "+S).apply(void 0,w)});if(I.source=S,l(I))throw I;return I}var r=e(3),i=e(5),u=e(50),a=e(52),c=e(54),l=e(51),s=e(29),f=e(55),p=e(59),d=e(60),h=e(64),v=/\b__p \+= '';/g,y=/\b(__p \+=) '' \+/g,g=/(__e\(.*?\)|\b__t\)) \+\n'';/g,b=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,m=/($^)/,x=/['\n\r\u2028\u2029\\]/g;t.exports=o},function(t,n,e){function o(t,n,e,o){return void 0===t||r(t,i[e])&&!u.call(o,e)?n:t}var r=e(4),i=Object.prototype,u=i.hasOwnProperty;t.exports=o},function(t,n){function e(t,n){return t===n||t!==t&&n!==n}t.exports=e},function(t,n,e){var o=e(6),r=e(20),i=e(33),u=r(function(t,n,e,r){o(n,i(n),t,r)});t.exports=u},function(t,n,e){function o(t,n,e,o){var u=!e;e||(e={});for(var a=-1,c=n.length;++a<c;){var l=n[a],s=o?o(e[l],t[l],l,e,t):void 0;void 0===s&&(s=t[l]),u?i(e,l,s):r(e,l,s)}return e}var r=e(7),i=e(8);t.exports=o},function(t,n,e){function o(t,n,e){var o=t[n];a.call(t,n)&&i(o,e)&&(void 0!==e||n in t)||r(t,n,e)}var r=e(8),i=e(4),u=Object.prototype,a=u.hasOwnProperty;t.exports=o},function(t,n,e){function o(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}var r=e(9);t.exports=o},function(t,n,e){var o=e(10),r=function(){try{var t=o(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=r},function(t,n,e){function o(t,n){var e=i(t,n);return r(e)?e:void 0}var r=e(11),i=e(19);t.exports=o},function(t,n,e){function o(t){if(!u(t)||i(t))return!1;var n=r(t)?h:l;return n.test(a(t))}var r=e(12),i=e(14),u=e(13),a=e(18),c=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,s=Function.prototype,f=Object.prototype,p=s.toString,d=f.hasOwnProperty,h=RegExp("^"+p.call(d).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=o},function(t,n,e){function o(t){var n=r(t)?l.call(t):"";return n==i||n==u||n==a}var r=e(13),i="[object Function]",u="[object GeneratorFunction]",a="[object Proxy]",c=Object.prototype,l=c.toString;t.exports=o},function(t,n){function e(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}t.exports=e},function(t,n,e){function o(t){return!!i&&i in t}var r=e(15),i=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=o},function(t,n,e){var o=e(16),r=o["__core-js_shared__"];t.exports=r},function(t,n,e){var o=e(17),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();t.exports=i},function(t,n){(function(n){var e="object"==typeof n&&n&&n.Object===Object&&n;t.exports=e}).call(n,function(){return this}())},function(t,n){function e(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var o=Function.prototype,r=o.toString;t.exports=e},function(t,n){function e(t,n){return null==t?void 0:t[n]}t.exports=e},function(t,n,e){function o(t){return r(function(n,e){var o=-1,r=e.length,u=r>1?e[r-1]:void 0,a=r>2?e[2]:void 0;for(u=t.length>3&&"function"==typeof u?(r--,u):void 0,a&&i(e[0],e[1],a)&&(u=r<3?void 0:u,r=1),n=Object(n);++o<r;){var c=e[o];c&&t(n,c,o,u)}return n})}var r=e(21),i=e(29);t.exports=o},function(t,n,e){function o(t,n){return u(i(t,n,r),t+"")}var r=e(22),i=e(23),u=e(25);t.exports=o},function(t,n){function e(t){return t}t.exports=e},function(t,n,e){function o(t,n,e){return n=i(void 0===n?t.length-1:n,0),function(){for(var o=arguments,u=-1,a=i(o.length-n,0),c=Array(a);++u<a;)c[u]=o[n+u];u=-1;for(var l=Array(n+1);++u<n;)l[u]=o[u];return l[n]=e(c),r(t,this,l)}}var r=e(24),i=Math.max;t.exports=o},function(t,n){function e(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}t.exports=e},function(t,n,e){var o=e(26),r=e(28),i=r(o);t.exports=i},function(t,n,e){var o=e(27),r=e(9),i=e(22),u=r?function(t,n){return r(t,"toString",{configurable:!0,enumerable:!1,value:o(n),writable:!0})}:i;t.exports=u},function(t,n){function e(t){return function(){return t}}t.exports=e},function(t,n){function e(t){var n=0,e=0;return function(){var u=i(),a=r-(u-e);if(e=u,a>0){if(++n>=o)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var o=500,r=16,i=Date.now;t.exports=e},function(t,n,e){function o(t,n,e){if(!a(e))return!1;var o=typeof n;return!!("number"==o?i(e)&&u(n,e.length):"string"==o&&n in e)&&r(e[n],t)}var r=e(4),i=e(30),u=e(32),a=e(13);t.exports=o},function(t,n,e){function o(t){return null!=t&&i(t.length)&&!r(t)}var r=e(12),i=e(31);t.exports=o},function(t,n){function e(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}var o=9007199254740991;t.exports=e},function(t,n){function e(t,n){return n=null==n?o:n,!!n&&("number"==typeof t||r.test(t))&&t>-1&&t%1==0&&t<n}var o=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=e},function(t,n,e){function o(t){return u(t)?r(t,!0):i(t)}var r=e(34),i=e(47),u=e(30);t.exports=o},function(t,n,e){function o(t,n){var e=u(t),o=!e&&i(t),s=!e&&!o&&a(t),p=!e&&!o&&!s&&l(t),d=e||o||s||p,h=d?r(t.length,String):[],v=h.length;for(var y in t)!n&&!f.call(t,y)||d&&("length"==y||s&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,v))||h.push(y);return h}var r=e(35),i=e(36),u=e(39),a=e(40),c=e(32),l=e(43),s=Object.prototype,f=s.hasOwnProperty;t.exports=o},function(t,n){function e(t,n){for(var e=-1,o=Array(t);++e<t;)o[e]=n(e);return o}t.exports=e},function(t,n,e){var o=e(37),r=e(38),i=Object.prototype,u=i.hasOwnProperty,a=i.propertyIsEnumerable,c=o(function(){return arguments}())?o:function(t){return r(t)&&u.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},function(t,n,e){function o(t){return r(t)&&a.call(t)==i}var r=e(38),i="[object Arguments]",u=Object.prototype,a=u.toString;t.exports=o},function(t,n){function e(t){return null!=t&&"object"==typeof t}t.exports=e},function(t,n){var e=Array.isArray;t.exports=e},function(t,n,e){(function(t){var o=e(16),r=e(42),i="object"==typeof n&&n&&!n.nodeType&&n,u=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=u&&u.exports===i,c=a?o.Buffer:void 0,l=c?c.isBuffer:void 0,s=l||r;t.exports=s}).call(n,e(41)(t))},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,n){function e(){return!1}t.exports=e},function(t,n,e){var o=e(44),r=e(45),i=e(46),u=i&&i.isTypedArray,a=u?r(u):o;t.exports=a},function(t,n,e){function o(t){return i(t)&&r(t.length)&&!!E[I.call(t)]}var r=e(31),i=e(38),u="[object Arguments]",a="[object Array]",c="[object Boolean]",l="[object Date]",s="[object Error]",f="[object Function]",p="[object Map]",d="[object Number]",h="[object Object]",v="[object RegExp]",y="[object Set]",g="[object String]",b="[object WeakMap]",m="[object ArrayBuffer]",x="[object DataView]",_="[object Float32Array]",j="[object Float64Array]",k="[object Int8Array]",O="[object Int16Array]",w="[object Int32Array]",M="[object Uint8Array]",C="[object Uint8ClampedArray]",S="[object Uint16Array]",P="[object Uint32Array]",E={};E[_]=E[j]=E[k]=E[O]=E[w]=E[M]=E[C]=E[S]=E[P]=!0,E[u]=E[a]=E[m]=E[c]=E[x]=E[l]=E[s]=E[f]=E[p]=E[d]=E[h]=E[v]=E[y]=E[g]=E[b]=!1;var H=Object.prototype,I=H.toString;t.exports=o},function(t,n){function e(t){return function(n){return t(n)}}t.exports=e},function(t,n,e){(function(t){var o=e(17),r="object"==typeof n&&n&&!n.nodeType&&n,i=r&&"object"==typeof t&&t&&!t.nodeType&&t,u=i&&i.exports===r,a=u&&o.process,c=function(){try{return a&&a.binding("util")}catch(t){}}();t.exports=c}).call(n,e(41)(t))},function(t,n,e){function o(t){if(!r(t))return u(t);var n=i(t),e=[];for(var o in t)("constructor"!=o||!n&&c.call(t,o))&&e.push(o);return e}var r=e(13),i=e(48),u=e(49),a=Object.prototype,c=a.hasOwnProperty;t.exports=o},function(t,n){function e(t){var n=t&&t.constructor,e="function"==typeof n&&n.prototype||o;return t===e}var o=Object.prototype;t.exports=e},function(t,n){function e(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}t.exports=e},function(t,n,e){var o=e(24),r=e(21),i=e(51),u=r(function(t,n){try{return o(t,void 0,n)}catch(t){return i(t)?t:new Error(t)}});t.exports=u},function(t,n,e){function o(t){return!!r(t)&&(a.call(t)==i||"string"==typeof t.message&&"string"==typeof t.name)}var r=e(38),i="[object Error]",u=Object.prototype,a=u.toString;t.exports=o},function(t,n,e){function o(t,n){return r(n,function(n){return t[n]})}var r=e(53);t.exports=o},function(t,n){function e(t,n){for(var e=-1,o=t?t.length:0,r=Array(o);++e<o;)r[e]=n(t[e],e,t);return r}t.exports=e},function(t,n){function e(t){return"\\"+o[t]}var o={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};t.exports=e},function(t,n,e){function o(t){return u(t)?r(t):i(t)}var r=e(34),i=e(56),u=e(30);t.exports=o},function(t,n,e){function o(t){if(!r(t))return i(t);var n=[];for(var e in Object(t))a.call(t,e)&&"constructor"!=e&&n.push(e);return n}var r=e(48),i=e(57),u=Object.prototype,a=u.hasOwnProperty;t.exports=o},function(t,n,e){var o=e(58),r=o(Object.keys,Object);t.exports=r},function(t,n){function e(t,n){return function(e){return t(n(e))}}t.exports=e},function(t,n){var e=/<%=([\s\S]+?)%>/g;t.exports=e},function(t,n,e){var o=e(61),r=e(68),i=e(69),u=e(59),a={escape:r,evaluate:i,interpolate:u,variable:"",imports:{_:{escape:o}}};t.exports=a},function(t,n,e){function o(t){return t=i(t),t&&a.test(t)?t.replace(u,r):t}var r=e(62),i=e(64),u=/[&<>"']/g,a=RegExp(u.source);t.exports=o},function(t,n,e){var o=e(63),r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},i=o(r);t.exports=i},function(t,n){function e(t){return function(n){return null==t?void 0:t[n]}}t.exports=e},function(t,n,e){function o(t){return null==t?"":r(t)}var r=e(65);t.exports=o},function(t,n,e){function o(t){if("string"==typeof t)return t;if(u(t))return i(t,o)+"";if(a(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-c?"-0":n}var r=e(66),i=e(53),u=e(39),a=e(67),c=1/0,l=r?r.prototype:void 0,s=l?l.toString:void 0;t.exports=o},function(t,n,e){var o=e(16),r=o.Symbol;t.exports=r},function(t,n,e){function o(t){return"symbol"==typeof t||r(t)&&a.call(t)==i}var r=e(38),i="[object Symbol]",u=Object.prototype,a=u.toString;t.exports=o},function(t,n){var e=/<%-([\s\S]+?)%>/g;t.exports=e},function(t,n){var e=/<%([\s\S]+?)%>/g;t.exports=e},function(t,n,e){t.exports=e(71)},function(t,n,e){var o=e(6),r=e(20),i=e(33),u=r(function(t,n){o(n,i(n),t)});t.exports=u},function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default={minWidth:420,minHeight:170,maxWidth:920,maxHeight:580,hdHeight:45,ftHeight:30,padding:16,closeIconClass:"iconfont icon-shanchu5",boundary:function(t){var n=t.offsetWidth,e=t.offsetHeight;return{getLeft:function(t){var e=document.documentElement.clientWidth;return t<n/2?n/2:t>e-n/2?e-n/2:t},getTop:function(t){var n=document.documentElement.clientHeight;return t<e/2?e/2:t>n-e/2?n-e/2:t}}}}},function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default={getCss:function(t,n){return t.currentStyle?t.currentStyle[n]:document.defaultView.getComputedStyle(t,!1)[n]},addClass:function(t,n){t.classList.add(n)},has:function(t,n){1==arguments.length&&(t=document,n=arguments[0]);var e=t.querySelectorAll(n);return{length:e.length}},find:function(t,n){return 1==arguments.length&&(t=document,n=arguments[0]),t.querySelector(n)},appendHTML:function(t,n){var e=document.createElement("div");e.innerHTML=n;var o=e.childNodes[0];return t.appendChild(o),o},remove:function(t){return t.parentNode.removeChild(t),t}}},function(t,n){"use strict";function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(n,e,o){return e&&t(n.prototype,e),o&&t(n,o),n}}(),i=[].slice,u=function(){function t(){e(this,t)}return r(t,[{key:"$on",value:function(t,n){if("object"===("undefined"==typeof t?"undefined":o(t)))for(var e in t)this.$on(e,t[e]);else{var r=this,i=r._handles||(r._handles={}),u=i[t]||(i[t]=[]);u.push(n)}return this}},{key:"$off",value:function(t,n){var e=this;if(e._handles){t||(this._handles={});var o,r=e._handles;if(o=r[t]){if(!n)return r[t]=[],e;for(var i=0,u=o.length;i<u;i++)if(n===o[i])return o.splice(i,1),e}return e}}},{key:"$emit",value:function(t){var n,e,o,r=this,u=r._handles;if(t){var e=i.call(arguments,1),o=t;if(!u)return r;if(n=u[o.slice(1)])for(var a=0,c=n.length;a<c;a++)n[a].apply(r,e);if(!(n=u[o]))return r;for(var l=0,c=n.length;l<c;l++)n[l].apply(r,e);return r}}}]),t}();n.default=u},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=e(73),r={left:0,top:0,currentX:0,currentY:0,flag:!1};n.default={startDrag:function(t,n,e,i){"auto"!==(0,o.getCss)(n,"left")&&(r.left=(0,o.getCss)(n,"left")),"auto"!==(0,o.getCss)(n,"top")&&(r.top=(0,o.getCss)(n,"top")),t.onmousedown=function(u){i&&i.$emit("dragStart"),r.flag=!0,u||(u=window.event,t.onselectstart=function(){return!1});var a=u;r.currentX=a.clientX,r.currentY=a.clientY,document.onmouseup=function(){r.flag=!1,"auto"!==(0,o.getCss)(n,"left")&&(r.left=(0,o.getCss)(n,"left")),"auto"!==(0,o.getCss)(n,"top")&&(r.top=(0,o.getCss)(n,"top")),i&&i.$emit("dragEnd"),document.onmousemove=null,document.onmouseup=null},document.onmousemove=function(t){var o=t?t:window.event;if(r.flag){var i=o.clientX,u=o.clientY,a=i-r.currentX,c=u-r.currentY,l=parseInt(r.left)+a,s=parseInt(r.top)+c;e&&(l=e.getLeft(l),s=e.getTop(s)),n.style.left=l+"px",n.style.top=s+"px"}}}}}},function(t,n){"use strict";function e(t,n,e,r,i){function u(t,n){return t.currentStyle?t.currentStyle[n]:getComputedStyle(t,!1)[n]}function a(){return(new Date).getTime()}"undefined"==typeof e&&(e=400,r="linear"),"string"==typeof e?("function"==typeof r&&(i=r),r=e,e=400):"function"==typeof e?(i=e,e=400,r="linear"):"number"==typeof e&&("function"==typeof r?(i=r,r="linear"):"undefined"==typeof r&&(r="linear"));var c={};for(var l in n)c[l]=0,"opacity"==l?c[l]=Math.round(100*u(t,l)):c[l]=parseInt(u(t,l));var s=a();clearInterval(t.timer),t.timer=setInterval(function(){var u=a(),l=e-Math.max(0,s-u+e);for(var f in n){var p=o[r](l,c[f],n[f]-c[f],e);"opacity"==f?(t.style.opacity=p/100,t.style.filter="alpha(opacity="+p+")"):t.style[f]=p+"px"}l==e&&(clearInterval(t.timer),i&&i.call(t))},13)}Object.defineProperty(n,"__esModule",{value:!0});var o={linear:function(t,n,e,o){return e*t/o+n},easeIn:function(t,n,e,o){return e*(t/=o)*t+n},easeOut:function(t,n,e,o){return-e*(t/=o)*(t-2)+n},easeBoth:function(t,n,e,o){return(t/=o/2)<1?e/2*t*t+n:-e/2*(--t*(t-2)-1)+n},easeInStrong:function(t,n,e,o){return e*(t/=o)*t*t*t+n},easeOutStrong:function(t,n,e,o){return-e*((t=t/o-1)*t*t*t-1)+n},easeBothStrong:function(t,n,e,o){return(t/=o/2)<1?e/2*t*t*t*t+n:-e/2*((t-=2)*t*t*t-2)+n},elasticIn:function(t,n,e,o,r,i){if(0===t)return n;if(1==(t/=o))return n+e;if(i||(i=.3*o),!r||r<Math.abs(e)){r=e;var u=i/4}else var u=i/(2*Math.PI)*Math.asin(e/r);return-(r*Math.pow(2,10*(t-=1))*Math.sin((t*o-u)*(2*Math.PI)/i))+n},elasticOut:function(t,n,e,o,r,i){if(0===t)return n;if(1==(t/=o))return n+e;if(i||(i=.3*o),!r||r<Math.abs(e)){r=e;var u=i/4}else var u=i/(2*Math.PI)*Math.asin(e/r);return r*Math.pow(2,-10*t)*Math.sin((t*o-u)*(2*Math.PI)/i)+e+n},elasticBoth:function(t,n,e,o,r,i){if(0===t)return n;if(2==(t/=o/2))return n+e;if(i||(i=o*(.3*1.5)),!r||r<Math.abs(e)){r=e;var u=i/4}else var u=i/(2*Math.PI)*Math.asin(e/r);return t<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t*o-u)*(2*Math.PI)/i))+n:r*Math.pow(2,-10*(t-=1))*Math.sin((t*o-u)*(2*Math.PI)/i)*.5+e+n},backIn:function(t,n,e,o,r){return"undefined"==typeof r&&(r=1.70158),e*(t/=o)*t*((r+1)*t-r)+n},backOut:function(t,n,e,o,r){return"undefined"==typeof r&&(r=3.70158),e*((t=t/o-1)*t*((r+1)*t+r)+1)+n},backBoth:function(t,n,e,o,r){return"undefined"==typeof r&&(r=1.70158),(t/=o/2)<1?e/2*(t*t*(((r*=1.525)+1)*t-r))+n:e/2*((t-=2)*t*(((r*=1.525)+1)*t+r)+2)+n},bounceIn:function(t,n,e,r){return e-o.bounceOut(r-t,0,e,r)+n},bounceOut:function(t,n,e,o){return(t/=o)<1/2.75?e*(7.5625*t*t)+n:t<2/2.75?e*(7.5625*(t-=1.5/2.75)*t+.75)+n:t<2.5/2.75?e*(7.5625*(t-=2.25/2.75)*t+.9375)+n:e*(7.5625*(t-=2.625/2.75)*t+.984375)+n},bounceBoth:function(t,n,e,r){return t<r/2?.5*o.bounceIn(2*t,0,e,r)+n:.5*o.bounceOut(2*t-r,0,e,r)+.5*e+n}};n.default={startMove:e}}]);
{
"name": "Dui",
"version": "0.0.3-alpha.3",
"version": "0.0.3-alpha.4",
"description": "针对税友小企业部门的UI组件开发",

@@ -20,3 +20,3 @@ "main": "index.js",

},
"author": "",
"author": "zhangpu",
"license": "ISC",

@@ -23,0 +23,0 @@ "devDependencies": {

@@ -266,6 +266,13 @@ import Template from "lodash/template";

destroy() {
this.unBindEvent();
var len = DOM.has(DOM.find(".dui-dialog-wrap"), ".dui-dialog").length;
var len;
if(this.option.mask) {
len = DOM.has(DOM.find(".dui-dialog-wrap"), ".dui-dialog").length;
}else {
len = DOM.has(".dui-dialog").length;
}
DOM.remove(this.dialogDom);

@@ -278,2 +285,3 @@

this.dialogDom = null;
}

@@ -280,0 +288,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc