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

vuedl

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuedl - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

coverage/lcov-report/src/components/DialogActions.vue.html

2

dist/vuedl.min.js

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):t.vuedl=e(t.Vue)}(this,function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e={computed:{$parameters:function(){return this.$options.propsData},isNewRecord:function(){return!this.$options.primaryKey||!this.$options.propsData||!this.$options.propsData[this.$options.primaryKey]}}},n={name:"Layoutable",mixins:[{name:"Activable",data:function(){return{isActive:!1}},watch:{isActive:function(t){this._dialogInstance?void 0!==this._dialogInstance.isActive&&(this._dialogInstance.isActive=t):this.$parent&&void 0!==this.$parent.isActive&&(this.$parent.isActive=t)}},methods:{close:function(){this.isActive=!1}}}],props:{width:{type:[String,Number],default:function(){return 450}},persistent:Boolean},data:function(){return{loading:!1}},computed:{isLayout:function(){return!0},getWidth:function(){return"string"==typeof this.width?this.width:this.width+"px"}},watch:{isActive:function(t){t||this._destroy()}},mounted:function(){this.isActive=!0},methods:{_destroy:function(){this.$destroy()},dismiss:function(){this.persistent||this.loading||(this.isActive=!1)},close:function(){this.isActive=!1}},beforeDestroy:function(){void 0!==this.$el.remove?this.$el.remove():this.$el.parentNode.removeChild(this.$el)}};var r=function(){this.__data__=[],this.size=0};var o=function(t,e){return t===e||t!=t&&e!=e};var i=function(t,e){for(var n=t.length;n--;)if(o(t[n][0],e))return n;return-1},a=Array.prototype.splice;var s=function(t){var e=this.__data__,n=i(e,t);return!(n<0||(n==e.length-1?e.pop():a.call(e,n,1),--this.size,0))};var c=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]};var l=function(t){return i(this.__data__,t)>-1};var A=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=s,u.prototype.get=c,u.prototype.has=l,u.prototype.set=A;var d=u;var f=function(){this.__data__=new d,this.size=0};var m=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var p=function(t){return this.__data__.get(t)};var h=function(t){return this.__data__.has(t)},v="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function g(t,e){return t(e={exports:{}},e.exports),e.exports}var y="object"==typeof v&&v&&v.Object===Object&&v,C="object"==typeof self&&self&&self.Object===Object&&self,b=y||C||Function("return this")(),_=b.Symbol,x=Object.prototype,w=x.hasOwnProperty,E=x.toString,k=_?_.toStringTag:void 0;var F=function(t){var e=w.call(t,k),n=t[k];try{t[k]=void 0;var r=!0}catch(t){}var o=E.call(t);return r&&(e?t[k]=n:delete t[k]),o},B=Object.prototype.toString;var j=function(t){return B.call(t)},O="[object Null]",z="[object Undefined]",I=_?_.toStringTag:void 0;var $=function(t){return null==t?void 0===t?z:O:I&&I in Object(t)?F(t):j(t)};var S=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},D="[object AsyncFunction]",P="[object Function]",T="[object GeneratorFunction]",N="[object Proxy]";var R,L=function(t){if(!S(t))return!1;var e=$(t);return e==P||e==T||e==D||e==N},G=b["__core-js_shared__"],q=(R=/[^.]+$/.exec(G&&G.keys&&G.keys.IE_PROTO||""))?"Symbol(src)_1."+R:"";var U=function(t){return!!q&&q in t},V=Function.prototype.toString;var W=function(t){if(null!=t){try{return V.call(t)}catch(t){}try{return t+""}catch(t){}}return""},M=/^\[object .+?Constructor\]$/,X=Function.prototype,Y=Object.prototype,K=X.toString,H=Y.hasOwnProperty,J=RegExp("^"+K.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Q=function(t){return!(!S(t)||U(t))&&(L(t)?J:M).test(W(t))};var Z=function(t,e){return null==t?void 0:t[e]};var tt=function(t,e){var n=Z(t,e);return Q(n)?n:void 0},et=tt(b,"Map"),nt=tt(Object,"create");var rt=function(){this.__data__=nt?nt(null):{},this.size=0};var ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},it="__lodash_hash_undefined__",at=Object.prototype.hasOwnProperty;var st=function(t){var e=this.__data__;if(nt){var n=e[t];return n===it?void 0:n}return at.call(e,t)?e[t]:void 0},ct=Object.prototype.hasOwnProperty;var lt=function(t){var e=this.__data__;return nt?void 0!==e[t]:ct.call(e,t)},At="__lodash_hash_undefined__";var ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=nt&&void 0===e?At:e,this};function dt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}dt.prototype.clear=rt,dt.prototype.delete=ot,dt.prototype.get=st,dt.prototype.has=lt,dt.prototype.set=ut;var ft=dt;var mt=function(){this.size=0,this.__data__={hash:new ft,map:new(et||d),string:new ft}};var pt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var ht=function(t,e){var n=t.__data__;return pt(e)?n["string"==typeof e?"string":"hash"]:n.map};var vt=function(t){var e=ht(this,t).delete(t);return this.size-=e?1:0,e};var gt=function(t){return ht(this,t).get(t)};var yt=function(t){return ht(this,t).has(t)};var Ct=function(t,e){var n=ht(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function bt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}bt.prototype.clear=mt,bt.prototype.delete=vt,bt.prototype.get=gt,bt.prototype.has=yt,bt.prototype.set=Ct;var _t=bt,xt=200;var wt=function(t,e){var n=this.__data__;if(n instanceof d){var r=n.__data__;if(!et||r.length<xt-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new _t(r)}return n.set(t,e),this.size=n.size,this};function Et(t){var e=this.__data__=new d(t);this.size=e.size}Et.prototype.clear=f,Et.prototype.delete=m,Et.prototype.get=p,Et.prototype.has=h,Et.prototype.set=wt;var kt=Et,Ft=function(){try{var t=tt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var Bt=function(t,e,n){"__proto__"==e&&Ft?Ft(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var jt=function(t,e,n){(void 0===n||o(t[e],n))&&(void 0!==n||e in t)||Bt(t,e,n)};var Ot=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),s=a.length;s--;){var c=a[t?s:++o];if(!1===n(i[c],c,i))break}return e}}(),zt=g(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n?b.Buffer:void 0,i=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=i?i(n):new t.constructor(n);return t.copy(r),r}}),It=b.Uint8Array;var $t=function(t){var e=new t.constructor(t.byteLength);return new It(e).set(new It(t)),e};var St=function(t,e){var n=e?$t(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};var Dt=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e},Pt=Object.create,Tt=function(){function t(){}return function(e){if(!S(e))return{};if(Pt)return Pt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var Nt=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object),Rt=Object.prototype;var Lt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Rt)};var Gt=function(t){return"function"!=typeof t.constructor||Lt(t)?{}:Tt(Nt(t))};var qt=function(t){return null!=t&&"object"==typeof t},Ut="[object Arguments]";var Vt=function(t){return qt(t)&&$(t)==Ut},Wt=Object.prototype,Mt=Wt.hasOwnProperty,Xt=Wt.propertyIsEnumerable,Yt=Vt(function(){return arguments}())?Vt:function(t){return qt(t)&&Mt.call(t,"callee")&&!Xt.call(t,"callee")},Kt=Array.isArray,Ht=9007199254740991;var Jt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Ht};var Qt=function(t){return null!=t&&Jt(t.length)&&!L(t)};var Zt=function(t){return qt(t)&&Qt(t)};var te=function(){return!1},ee=g(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n?b.Buffer:void 0,i=(o?o.isBuffer:void 0)||te;t.exports=i}),ne="[object Object]",re=Function.prototype,oe=Object.prototype,ie=re.toString,ae=oe.hasOwnProperty,se=ie.call(Object);var ce=function(t){if(!qt(t)||$(t)!=ne)return!1;var e=Nt(t);if(null===e)return!0;var n=ae.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ie.call(n)==se},le={};le["[object Float32Array]"]=le["[object Float64Array]"]=le["[object Int8Array]"]=le["[object Int16Array]"]=le["[object Int32Array]"]=le["[object Uint8Array]"]=le["[object Uint8ClampedArray]"]=le["[object Uint16Array]"]=le["[object Uint32Array]"]=!0,le["[object Arguments]"]=le["[object Array]"]=le["[object ArrayBuffer]"]=le["[object Boolean]"]=le["[object DataView]"]=le["[object Date]"]=le["[object Error]"]=le["[object Function]"]=le["[object Map]"]=le["[object Number]"]=le["[object Object]"]=le["[object RegExp]"]=le["[object Set]"]=le["[object String]"]=le["[object WeakMap]"]=!1;var Ae=function(t){return qt(t)&&Jt(t.length)&&!!le[$(t)]};var ue=function(t){return function(e){return t(e)}},de=g(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n&&y.process,i=function(){try{var t=r&&r.require&&r.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i}),fe=de&&de.isTypedArray,me=fe?ue(fe):Ae;var pe=function(t,e){return"__proto__"==e?void 0:t[e]},he=Object.prototype.hasOwnProperty;var ve=function(t,e,n){var r=t[e];he.call(t,e)&&o(r,n)&&(void 0!==n||e in t)||Bt(t,e,n)};var ge=function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,a=e.length;++i<a;){var s=e[i],c=r?r(n[s],t[s],s,n,t):void 0;void 0===c&&(c=t[s]),o?Bt(n,s,c):ve(n,s,c)}return n};var ye=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},Ce=9007199254740991,be=/^(?:0|[1-9]\d*)$/;var _e=function(t,e){var n=typeof t;return!!(e=null==e?Ce:e)&&("number"==n||"symbol"!=n&&be.test(t))&&t>-1&&t%1==0&&t<e},xe=Object.prototype.hasOwnProperty;var we=function(t,e){var n=Kt(t),r=!n&&Yt(t),o=!n&&!r&&ee(t),i=!n&&!r&&!o&&me(t),a=n||r||o||i,s=a?ye(t.length,String):[],c=s.length;for(var l in t)!e&&!xe.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||_e(l,c))||s.push(l);return s};var Ee=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},ke=Object.prototype.hasOwnProperty;var Fe=function(t){if(!S(t))return Ee(t);var e=Lt(t),n=[];for(var r in t)("constructor"!=r||!e&&ke.call(t,r))&&n.push(r);return n};var Be=function(t){return Qt(t)?we(t,!0):Fe(t)};var je=function(t){return ge(t,Be(t))};var Oe=function(t,e,n,r,o,i,a){var s=pe(t,n),c=pe(e,n),l=a.get(c);if(l)jt(t,n,l);else{var A=i?i(s,c,n+"",t,e,a):void 0,u=void 0===A;if(u){var d=Kt(c),f=!d&&ee(c),m=!d&&!f&&me(c);A=c,d||f||m?Kt(s)?A=s:Zt(s)?A=Dt(s):f?(u=!1,A=zt(c,!0)):m?(u=!1,A=St(c,!0)):A=[]:ce(c)||Yt(c)?(A=s,Yt(s)?A=je(s):(!S(s)||r&&L(s))&&(A=Gt(c))):u=!1}u&&(a.set(c,A),o(A,c,r,i,a),a.delete(c)),jt(t,n,A)}};var ze=function t(e,n,r,o,i){e!==n&&Ot(n,function(a,s){if(S(a))i||(i=new kt),Oe(e,n,s,r,t,o,i);else{var c=o?o(pe(e,s),a,s+"",e,n,i):void 0;void 0===c&&(c=a),jt(e,s,c)}},Be)};var Ie=function(t){return t};var $e=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},Se=Math.max;var De=function(t,e,n){return e=Se(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Se(r.length-e,0),a=Array(i);++o<i;)a[o]=r[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=r[o];return s[e]=n(a),$e(t,this,s)}};var Pe=function(t){return function(){return t}},Te=Ft?function(t,e){return Ft(t,"toString",{configurable:!0,enumerable:!1,value:Pe(e),writable:!0})}:Ie,Ne=800,Re=16,Le=Date.now;var Ge=function(t){var e=0,n=0;return function(){var r=Le(),o=Re-(r-n);if(n=r,o>0){if(++e>=Ne)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Te);var qe=function(t,e){return Ge(De(t,e,Ie),t+"")};var Ue=function(t,e,n){if(!S(n))return!1;var r=typeof e;return!!("number"==r?Qt(n)&&_e(e,n.length):"string"==r&&e in n)&&o(n[e],t)};var Ve=function(t){return qe(function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,a&&Ue(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),e=Object(e);++r<o;){var s=n[r];s&&t(e,s,r,i)}return e})}(function(t,e,n){ze(t,e,n)}),We={},Me=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"dialog-layout"},[this._t("default")],2)};Me._withStripped=!0;var Xe,Ye,Ke,He,Je,Qe=(Xe={render:Me,staticRenderFns:[]},Ke=void 0,He=!1,(Je=("function"==typeof(Ye=We)?Ye.options:Ye)||{}).__file="/Users/yarik/Projects/clones/vuedl/src/components/DefaultLayout.vue",Je.render||(Je.render=Xe.render,Je.staticRenderFns=Xe.staticRenderFns,Je._compiled=!0,He&&(Je.functional=!0)),Je._scopeId=Ke,Je),Ze=function(){return{}};function tn(t){t&&!t._isDestroyed&&"function"==typeof t.$destroy&&t.$destroy()}function en(t){var e;return(e="string"==typeof t?document.querySelector(t):t)||(e=document.body),e}function nn(t,e){return new Promise(function(n,r){if(!Array.isArray(t)){if(!t)return n(null);t=[t]}return n(Promise.all(t.map(function(t){var n=[];if(t.options.asyncData&&"function"==typeof t.options.asyncData){var r=function(t,e){var n;return(n=2===t.length?new Promise(function(n){t(e,function(t,r){t&&e.error(t),n(r=r||{})})}):t(e))&&(n instanceof Promise||"function"==typeof n.then)||(n=Promise.resolve(n)),n}(t.options.asyncData,e);r.then(function(e){return function(t,e){var n=t.options.data||Ze;!e&&t.options.hasAsyncData||(t.options.hasAsyncData=!0,t.options.data=function(){var r=n.call(this);return this.$ssrContext&&(e=this.$ssrContext.asyncData[t.cid]),Object.assign({},r,e)},t._Ctor&&t._Ctor.options&&(t._Ctor.options.data=t.options.data))}(t,e),e}),n.push(r)}else n.push(null);return t.options.fetch?n.push(t.options.fetch(e)):n.push(null),Promise.all(n)})))})}var rn=1e3,on=60*rn,an=60*on,sn=24*an,cn=365.25*sn,ln=function(t,e){e=e||{};var n,r=typeof t;if("string"===r&&t.length>0)return function(t){if((t=String(t)).length>100)return;var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(!e)return;var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*cn;case"days":case"day":case"d":return n*sn;case"hours":case"hour":case"hrs":case"hr":case"h":return n*an;case"minutes":case"minute":case"mins":case"min":case"m":return n*on;case"seconds":case"second":case"secs":case"sec":case"s":return n*rn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}(t);if("number"===r&&!1===isNaN(t))return e.long?An(n=t,sn,"day")||An(n,an,"hour")||An(n,on,"minute")||An(n,rn,"second")||n+" ms":function(t){if(t>=sn)return Math.round(t/sn)+"d";if(t>=an)return Math.round(t/an)+"h";if(t>=on)return Math.round(t/on)+"m";if(t>=rn)return Math.round(t/rn)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function An(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var un=g(function(t,e){function n(t){var n;function o(){if(o.enabled){var t=o,r=+new Date,i=r-(n||r);t.diff=i,t.prev=n,t.curr=r,n=r;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=e.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;c++;var o=e.formatters[r];if("function"==typeof o){var i=a[c];n=o.call(t,i),a.splice(c,1),c--}return n}),e.formatArgs.call(t,a),(o.log||e.log||console.log.bind(console)).apply(t,a)}}return o.namespace=t,o.enabled=e.enabled(t),o.useColors=e.useColors(),o.color=function(t){var n,r=0;for(n in t)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]}(t),o.destroy=r,"function"==typeof e.init&&e.init(o),e.instances.push(o),o}function r(){var t=e.instances.indexOf(this);return-1!==t&&(e.instances.splice(t,1),!0)}(e=t.exports=n.debug=n.default=n).coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){e.enable("")},e.enable=function(t){var n;e.save(t),e.names=[],e.skips=[];var r=("string"==typeof t?t:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")));for(n=0;n<e.instances.length;n++){var i=e.instances[n];i.enabled=e.enabled(i.namespace)}},e.enabled=function(t){if("*"===t[t.length-1])return!0;var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=ln,e.instances=[],e.names=[],e.skips=[],e.formatters={}}),dn=(un.coerce,un.disable,un.enable,un.enabled,un.humanize,un.instances,un.names,un.skips,un.formatters,g(function(t,e){function n(){var t;try{t=e.storage.debug}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t}(e=t.exports=un).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},e.formatArgs=function(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),!n)return;var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var o=0,i=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&"%c"===t&&(i=++o)}),t.splice(i,0,r)},e.save=function(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}},e.load=n,e.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(n())})),fn=(dn.log,dn.formatArgs,dn.save,dn.load,dn.useColors,dn.storage,dn.colors,dn("vuedl:dialog")),mn=1,pn=function(t,e){void 0===e&&(e={});var n=e.layout,r=e.container;if(!t)throw Error("Component was not setted");this._layout=n||{component:Qe,options:{}},this._component=t,this._vm=null,this._vmDialog=null,this._options={},this.id=++mn,this._resolvers=[],this.container=en(r),fn("created")},hn={showed:{configurable:!0},element:{configurable:!0},hasAsyncPreload:{configurable:!0},vm:{configurable:!0},vmd:{configurable:!0}};pn.prototype.show=function(r,o){return void 0===r&&(r={}),void 0===o&&(o={}),new Promise(function(i,a){var s,c,l,A;if(t.prototype.$isServer)return i();if(fn("before show",{params:r,options:o}),s=(s=t.extend({mixins:[n]})).extend(this._layout.component),c=new s(Ve({propsData:Object.assign({},this._layout.options,r)},this.context,o)),l=t.extend(Object.assign({},this._component,{parent:c})),this._component.primaryKey&&(l=l.extend({mixins:[e]})),this.hasAsyncPreload)return Promise.resolve(nn(l,Object.assign({},this.context,{params:r}))).then(function(t){try{return fn("async datas",t),u.call(this)}catch(t){return a(t)}}.bind(this),a);function u(){return(A=new l(Ve({propsData:r},this.context,o))).$mount(),c.$slots.default=A._vnode,c.$mount(),c.$on("hook:destroyed",this._onDestroyed.bind(this)),c.$on("submit",this.onReturn.bind(this)),A.$on("submit",this.onReturn.bind(this)),this._vm=c,this._vm._dialogInstance=A,this._vmDialog=A,this.container=o.container?en(o.container):this.container,this.container.appendChild(this.element),i(this)}return u.call(this)}.bind(this))},pn.prototype.wait=function(){var t=this;return new Promise(function(e){t._resolvers.push(e)})},pn.prototype._onDestroyed=function(){this.remove()},pn.prototype.remove=function(){fn("remove"),this.onDestroyed&&this.onDestroyed(this),this._processResultPromises(),tn(this._vm),tn(this._vmDialog),this._vm=null,this._vmDialog=null},pn.prototype._processResultPromises=function(t){this._resolvers.length&&(fn("processResultPromises",t),this._resolvers.forEach(function(e){return e(t)}),this._resolvers=[])},pn.prototype.onReturn=function(t){fn("onReturn",t),this._processResultPromises(t),this.close()},hn.showed.get=function(){return!!this._vm&&!this._vm._isDestroyed},hn.element.get=function(){return this._vm&&this._vm.$el},hn.hasAsyncPreload.get=function(){return this._component&&(this._component.asyncData||this._component.fetch)},hn.vm.get=function(){return this._vm},hn.vmd.get=function(){return this._vmDialog},pn.prototype.close=function(){this._vm.close()},Object.defineProperties(pn.prototype,hn);var vn=function(t){this._component=t,this._vm=null};vn.prototype.show=function(){if(!this._vm){var e=t.extend(this._component);this._vm=new e,this._vm.$mount(),document.body.appendChild(this._vm.$el)}this._vm.visible=!0},vn.prototype.hide=function(){this._vm.visible=!1};var gn={get:function(t,e){return"symbol"==typeof e||"inspect"===e?t[e]:t[e]?t[e]:t._components[e]?t.createFunctionWrapper(e):t[e]}},yn=function(e){void 0===e&&(e={});var n=e.context,r=e.container;return this._context=n||{},pn.prototype.context=n||{},this._components={},this._layouts={},this._overlays={},this._container=r,this._emitter=new t({}),this._instances=[],new Proxy(this,gn)},Cn={context:{configurable:!0}};Cn.context.get=function(){return this._context},yn.prototype.layout=function(t,e,n){void 0===n&&(n={}),this._layouts[t]={component:e,options:n}},yn.prototype.getLayout=function(t){if("function"==typeof t){var e=t.call(this._context);return t=this._layouts[e.name||"default"],Object.assign({},t,{options:e})}if("object"==typeof t&&"function"==typeof t.render)return{component:t};if(Array.isArray(t)){var n=t[0],r=t[1]||{},o="object"==typeof n&&"function"==typeof n.render?{component:n}:this._layouts[n];return o&&{component:o.component,options:Object.assign({},o.options,r)}}return this._layouts[t]},yn.prototype.overlay=function(t,e){if(void 0===e){if(this._overlays[t])return this._overlays[t];throw new Error('Overlay "'+t+" not found\n Please register it by calling dialog.overlay('"+t+"', component)")}this._overlays[t]=new vn(e)},yn.prototype.getComponent=function(t){if(!this._components[t])throw new Error('Component "'+t+"\" was not found.\n Please register it by calling dialog.register('"+t+"', component)");return this._components[t]},yn.prototype.component=function(t,e,n){if(void 0===n&&(n={}),void 0===e)return this._components[t];this._components[t]={component:e,options:n}},yn.prototype.create=function(t){if(!t)throw new Error("Component is incorrect");var e=this.getLayout(t.layout||"default"),n=new pn(t,{layout:e,context:this._context,container:this._container});return this._emitter.$emit("created",{dialog:n}),n},yn.prototype.show=function(t,e){return void 0===e&&(e={}),new Promise(function(n,r){var o,i,a;i=!!(o=this.create(t)).hasAsyncPreload&&(t.overlay||"default"),(a=i&&this._overlays[i]&&this.overlay(i))&&a.show();var s=function(t){try{throw this._emitter.$emit("error",{error:t,dialog:o}),a&&a.hide(),t}catch(t){return r(t)}}.bind(this);try{return Promise.resolve(o.show(e)).then(function(t){try{return this._emitter.$emit("shown",{dialog:o}),a&&a.hide(),o.onDestroyed=this.onDialogDestroyed.bind(this),n(e.waitForResult?o.wait():o)}catch(t){return s(t)}}.bind(this),s)}catch(t){s(t)}}.bind(this))},yn.prototype.createFunctionWrapper=function(t){var e=this,n=this.getComponent(t);return function(t){return e.show(n.component,Object.assign({},n.options,t))}},yn.prototype.showAndWait=function(t,e){return new Promise(function(n,r){return Promise.resolve(this.show(t,e)).then(function(t){try{return n(t.wait())}catch(t){return r(t)}},r)}.bind(this))},yn.prototype.on=function(t,e){this._emitter.$on(t,e)},yn.prototype.off=function(t,e){this._emitter.$off(t,e)},yn.prototype.once=function(t,e){this._emitter.$once(t,e)},yn.prototype.onDialogDestroyed=function(t){this._emitter.$emit("destroyed",{dialog:t})},Object.defineProperties(yn.prototype,Cn);var bn={props:{width:Number,persistent:Boolean}},_n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"vdialog-modal"}},[n("div",{staticClass:"vdialog-modal-mask",on:{click:function(e){return e.target!==e.currentTarget?null:(e.preventDefault(),e.stopPropagation(),t.dismiss(e))}}},[n("div",{staticClass:"vdialog-modal-container",style:{"max-width":t.getWidth}},[n("dialog-child",t._b({},"dialog-child",t.$options.propsData,!1))],1)])])};_n._withStripped=!0;var xn=function(t,e,n,r,o,i,a,s){var c,l=("function"==typeof n?n.options:n)||{};if(l.__file="/Users/yarik/Projects/clones/vuedl/src/components/DialogLayout.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),l._scopeId=r,e&&(c=function(t){e.call(this,a(t))}),void 0!==c)if(l.functional){var A=l.render;l.render=function(t,e){return c.call(e),A(t,e)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return l}({render:_n,staticRenderFns:[]},function(t){t&&t("data-v-b03a4f82_0",{source:'\n.vdialog-modal-mask {\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n left: 0;\n position: fixed;\n top: 0;\n transition: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);\n width: 100%;\n z-index: 6;\n outline: none;\n background-color: rgba(0, 0, 0, .5);\n}\n.vdialog-modal-container {\n overflow-y: auto;\n max-height: 95%;\n background-color: #fff;\n box-shadow: 0px 11px 15px -7px rgba(0,0,0,0.2), 0px 24px 38px 3px rgba(0,0,0,0.14), 0px 9px 46px 8px rgba(0,0,0,0.12);\n border-radius: 2px;\n margin: 12px;\n overflow-y: auto;\n pointer-events: auto;\n transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);\n width: 100%;\n z-index: inherit;\n}\n\n/*\n* The following styles are auto-applied to elements with\n* transition="modal" when their visibility is toggled\n* by Vue.js.\n*\n* You can easily play with the modal transition by editing\n* these styles.\n*/\n.vdialog-modal-enter {\n opacity: 0;\n}\n.vdialog-modal-leave-active {\n opacity: 0;\n}\n.vdialog-modal-enter .modal-container,\n.vdialog-modal-leave-active .modal-container {\n -webkit-transform: scale(1.1);\n transform: scale(1.1);\n}\n',map:{version:3,sources:["/Users/yarik/Projects/clones/vuedl/src/components/DialogLayout.vue"],names:[],mappings:";AAqBA;EACA,oBAAA;EACA,cAAA;EACA,aAAA;EACA,wBAAA;EACA,QAAA;EACA,gBAAA;EACA,OAAA;EACA,kDAAA;EACA,YAAA;EACA,WAAA;EACA,cAAA;EACA,oCAAA;CACA;AAEA;EACA,iBAAA;EACA,gBAAA;EACA,uBAAA;EACA,sHAAA;EACA,mBAAA;EACA,aAAA;EACA,iBAAA;EACA,qBAAA;EACA,kDAAA;EACA,YAAA;EACA,iBAAA;CACA;;AAEA;;;;;;;EAOA;AAEA;EACA,WAAA;CACA;AAEA;EACA,WAAA;CACA;AAEA;;EAEA,8BAAA;EACA,sBAAA;CACA",file:"DialogLayout.vue",sourcesContent:['<template>\n <transition name="vdialog-modal">\n <div class="vdialog-modal-mask" @click.self.prevent.stop="dismiss">\n <div class="vdialog-modal-container" :style="{ \'max-width\': getWidth }">\n <dialog-child v-bind="$options.propsData"/>\n </div>\n </div>\n </transition>\n</template>\n\n<script>\n\nexport default {\n props: {\n width: Number,\n persistent: Boolean\n }\n}\n<\/script>\n\n<style>\n .vdialog-modal-mask {\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n left: 0;\n position: fixed;\n top: 0;\n transition: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);\n width: 100%;\n z-index: 6;\n outline: none;\n background-color: rgba(0, 0, 0, .5);\n }\n\n .vdialog-modal-container {\n overflow-y: auto;\n max-height: 95%;\n background-color: #fff;\n box-shadow: 0px 11px 15px -7px rgba(0,0,0,0.2), 0px 24px 38px 3px rgba(0,0,0,0.14), 0px 9px 46px 8px rgba(0,0,0,0.12);\n border-radius: 2px;\n margin: 12px;\n overflow-y: auto;\n pointer-events: auto;\n transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);\n width: 100%;\n z-index: inherit;\n }\n\n /*\n * The following styles are auto-applied to elements with\n * transition="modal" when their visibility is toggled\n * by Vue.js.\n *\n * You can easily play with the modal transition by editing\n * these styles.\n */\n\n .vdialog-modal-enter {\n opacity: 0;\n }\n\n .vdialog-modal-leave-active {\n opacity: 0;\n }\n\n .vdialog-modal-enter .modal-container,\n .vdialog-modal-leave-active .modal-container {\n -webkit-transform: scale(1.1);\n transform: scale(1.1);\n }\n</style>\n']},media:void 0})},bn,void 0,!1,0,function t(){var e=document.head||document.getElementsByTagName("head")[0],n=t.styles||(t.styles={}),r="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,o){if(!document.querySelector('style[data-vue-ssr-id~="'+t+'"]')){var i=r?o.media||"default":t,a=n[i]||(n[i]={ids:[],parts:[],element:void 0});if(!a.ids.includes(t)){var s=o.source,c=a.ids.length;if(a.ids.push(t),r&&(a.element=a.element||document.querySelector("style[data-group="+i+"]")),!a.element){var l=a.element=document.createElement("style");l.type="text/css",o.media&&l.setAttribute("media",o.media),r&&(l.setAttribute("data-group",i),l.setAttribute("data-next-index","0")),e.appendChild(l)}if(r&&(c=parseInt(a.element.getAttribute("data-next-index")),a.element.setAttribute("data-next-index",c+1)),a.element.styleSheet)a.parts.push(s),a.element.styleSheet.cssText=a.parts.filter(Boolean).join("\n");else{var A=document.createTextNode(s),u=a.element.childNodes;u[c]&&a.element.removeChild(u[c]),u.length?a.element.insertBefore(A,u[c]):a.element.appendChild(A)}}}}}),wn=[],En={mixins:[{props:{verticalOffset:Number,showClose:{type:Boolean,default:function(){return!0}},position:{type:String,default:function(){return"top-right"}},timeout:{type:[Number,Boolean],default:function(){return 4500}},width:{type:Number,default:function(){return 330}},zIndex:{type:Number,default:function(){return 2e3}}},computed:{horizontalClass:function(){return this.position.indexOf("right")>-1?"right":"left"},verticalProperty:function(){return/^top-/.test(this.position)?"top":"bottom"},getStyle:function(){var t;return(t={})[this.verticalProperty]=this.verticalOffset+"px",t["max-width"]=this.width+"px",t["z-index"]=this.zIndex,t}},methods:{_destroy:function(){this.$el.addEventListener("transitionend",this.onTransitionEnd)},onTransitionEnd:function(){this.$el.removeEventListener("transitionend",this.onTransitionEnd),this.$destroy()},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){this.timeout>0&&(this.timer=setTimeout(this.close,this.timeout))},keydown:function(t){46===t.keyCode||8===t.keyCode?this.clearTimer():27===t.keyCode?this.close():this.startTimer()},close:function(){this.isActive=!1}},watch:{isActive:function(t){var e,n,r;t?(n=(e=this).position,r=10,wn.filter(function(t){return t.position===n}).forEach(function(t){r+=t.$el.offsetHeight+10}),wn.push(e),e.verticalOffset=r):function(t){var e=wn.findIndex(function(e){return e===t});if(!(e<0)){wn.splice(e,1);var n=wn.length,r=t.position;if(n){var o=10;wn.filter(function(t){return t.position===r}).forEach(function(t){t.verticalOffset=o,o+=t.$el.offsetHeight+10})}}}(this)}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}}],props:{width:{type:Number,default:function(){return 330}}},computed:{getStyle:function(){var t;return(t={})[this.verticalProperty]=this.verticalOffset+"px",t["max-width"]=this.width+"px",t["z-index"]=this.zIndex,t}}},kn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"vuedl-notification-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],class:["vuedl-notification",t.horizontalClass],style:t.getStyle,attrs:{role:"alert"},on:{mouseenter:t.clearTimer,mouseleave:t.startTimer}},[t._t("default"),t._v(" "),t.showClose?n("div",{staticClass:"vuedl-notification__closeBtn",on:{click:function(e){return e.stopPropagation(),t.close(e)}}},[t._v("×")]):t._e()],2)])};kn._withStripped=!0;var Fn=function(t,e,n,r,o,i,a,s){var c,l=("function"==typeof n?n.options:n)||{};if(l.__file="/Users/yarik/Projects/clones/vuedl/src/components/NotificationLayout.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),l._scopeId=r,e&&(c=function(t){e.call(this,a(t))}),void 0!==c)if(l.functional){var A=l.render;l.render=function(t,e){return c.call(e),A(t,e)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return l}({render:kn,staticRenderFns:[]},function(t){t&&t("data-v-f0792652_0",{source:"\n.vuedl-notification {\n display:-webkit-box;\n display:-ms-flexbox;\n display:flex;\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n position:fixed;\n -webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);\n box-shadow:0 2px 12px 0 rgba(0,0,0,.1);\n -webkit-transition:opacity .3s,left .3s,right .3s,top .4s,bottom .3s,-webkit-transform .3s;\n transition:opacity .3s,left .3s,right .3s,top .4s,bottom .3s,-webkit-transform .3s;\n transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s;\n transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s,-webkit-transform .3s;\n overflow:hidden\n}\n.vuedl-notification>div:first-child {\n width: 100%\n}\n.vuedl-notification.right {\n right:16px\n}\n.vuedl-notification.left {\n left:16px\n}\n.vuedl-notification__closeBtn {\n position:absolute;\n top: 9px;\n right: 15px;\n cursor: pointer;\n color: #909399;\n font-size: 22px;\n}\n.vuedl-notification__closeBtn:hover {\n color:#606266\n}\n.vuedl-notification-fade-enter.right{\n right:0;\n -webkit-transform:translateX(100%);\n transform:translateX(100%)\n}\n.vuedl-notification-fade-enter.left{\n left:0;\n -webkit-transform:translateX(-100%);\n transform:translateX(-100%)\n}\n.vuedl-notification-fade-leave-active {\n opacity:0\n}\n@media screen and (max-width: 450px) {\n.vuedl-notification {\n left:8px!important;\n right:8px!important;\n max-width: inherit!important;\n}\n}\n\n/* .el-notification-fade-enter {\n &.right {\n right: 0;\n transform: translateX(100%);\n }\n\n &.left {\n left: 0;\n transform: translateX(-100%);\n }\n }\n\n .el-notification-fade-leave-active {\n opacity: 0;\n }*/\n",map:{version:3,sources:["/Users/yarik/Projects/clones/vuedl/src/components/NotificationLayout.vue"],names:[],mappings:";AAwDA;GACA,oBAAA;GACA,oBAAA;GACA,aAAA;GACA,8BAAA;GACA,sBAAA;GACA,eAAA;GACA,+CAAA;GACA,uCAAA;GACA,2FAAA;GACA,mFAAA;GACA,2EAAA;GACA,iGAAA;GACA,eAAA;CACA;AACA;GACA,WAAA;CACA;AACA;GACA,UAAA;CACA;AACA;GACA,SAAA;CACA;AACA;GACA,kBAAA;GACA,SAAA;GACA,YAAA;GACA,gBAAA;GACA,eAAA;GACA,gBAAA;CACA;AACA;GACA,aAAA;CACA;AACA;GACA,QAAA;GACA,mCAAA;GACA,0BAAA;CACA;AACA;GACA,OAAA;GACA,oCAAA;GACA,2BAAA;CACA;AACA;GACA,SAAA;CACA;AACA;AACA;KACA,mBAAA;KACA,oBAAA;KACA,6BAAA;CACA;CACA;;AAEA;;;;;;;;;;;;;;IAcA",file:"NotificationLayout.vue",sourcesContent:['<template>\n <transition name="vuedl-notification-fade">\n <div\n :class="[\'vuedl-notification\', horizontalClass]"\n v-show="isActive"\n :style="getStyle"\n @mouseenter="clearTimer"\n @mouseleave="startTimer"\n role="alert"\n >\n <slot/>\n <div\n class="vuedl-notification__closeBtn"\n v-if="showClose"\n @click.stop="close">×</div>\n </div>\n </transition>\n</template>\n\n<script>\n\nimport Notifiable from \'../mixins/notifiable\'\n\nexport default {\n mixins: [ Notifiable ],\n props: {\n // showClose: {\n // type: Boolean,\n // default: () => true\n // },\n width: {\n type: Number,\n default: () => 330\n }\n },\n computed: {\n getStyle () {\n return {\n [this.verticalProperty]: `${this.verticalOffset}px`,\n \'max-width\': `${this.width}px`,\n \'z-index\': this.zIndex\n }\n }\n }\n // methods: {\n // _destroy () {\n // this.$el.addEventListener(\'transitionend\', this.onTransitionEnd)\n // },\n // onTransitionEnd () {\n // this.$el.removeEventListener(\'transitionend\', this.onTransitionEnd)\n // this.$destroy()\n // }\n // }\n}\n<\/script>\n<style>\n .vuedl-notification {\n display:-webkit-box;\n display:-ms-flexbox;\n display:flex;\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n position:fixed;\n -webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);\n box-shadow:0 2px 12px 0 rgba(0,0,0,.1);\n -webkit-transition:opacity .3s,left .3s,right .3s,top .4s,bottom .3s,-webkit-transform .3s;\n transition:opacity .3s,left .3s,right .3s,top .4s,bottom .3s,-webkit-transform .3s;\n transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s;\n transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s,-webkit-transform .3s;\n overflow:hidden\n }\n .vuedl-notification>div:first-child {\n width: 100%\n }\n .vuedl-notification.right {\n right:16px\n }\n .vuedl-notification.left {\n left:16px\n }\n .vuedl-notification__closeBtn {\n position:absolute;\n top: 9px;\n right: 15px;\n cursor: pointer;\n color: #909399;\n font-size: 22px;\n }\n .vuedl-notification__closeBtn:hover {\n color:#606266\n }\n .vuedl-notification-fade-enter.right{\n right:0;\n -webkit-transform:translateX(100%);\n transform:translateX(100%)\n }\n .vuedl-notification-fade-enter.left{\n left:0;\n -webkit-transform:translateX(-100%);\n transform:translateX(-100%)\n }\n .vuedl-notification-fade-leave-active {\n opacity:0\n }\n @media screen and (max-width: 450px) {\n .vuedl-notification {\n left:8px!important;\n right:8px!important;\n max-width: inherit!important;\n }\n }\n\n /* .el-notification-fade-enter {\n &.right {\n right: 0;\n transform: translateX(100%);\n }\n\n &.left {\n left: 0;\n transform: translateX(-100%);\n }\n }\n\n .el-notification-fade-leave-active {\n opacity: 0;\n }*/\n</style>\n']},media:void 0})},En,void 0,!1,0,function t(){var e=document.head||document.getElementsByTagName("head")[0],n=t.styles||(t.styles={}),r="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,o){if(!document.querySelector('style[data-vue-ssr-id~="'+t+'"]')){var i=r?o.media||"default":t,a=n[i]||(n[i]={ids:[],parts:[],element:void 0});if(!a.ids.includes(t)){var s=o.source,c=a.ids.length;if(a.ids.push(t),r&&(a.element=a.element||document.querySelector("style[data-group="+i+"]")),!a.element){var l=a.element=document.createElement("style");l.type="text/css",o.media&&l.setAttribute("media",o.media),r&&(l.setAttribute("data-group",i),l.setAttribute("data-next-index","0")),e.appendChild(l)}if(r&&(c=parseInt(a.element.getAttribute("data-next-index")),a.element.setAttribute("data-next-index",c+1)),a.element.styleSheet)a.parts.push(s),a.element.styleSheet.cssText=a.parts.filter(Boolean).join("\n");else{var A=document.createTextNode(s),u=a.element.childNodes;u[c]&&a.element.removeChild(u[c]),u.length?a.element.insertBefore(A,u[c]):a.element.appendChild(A)}}}}}),Bn={name:"VDialogOverlay",props:{zIndex:{type:Number,default:function(){return 1250}},visible:{type:Boolean,default:function(){return!1}}}},jn=function(){var t=this.$createElement,e=this._self._c||t;return e("transition",{attrs:{name:"opacity"}},[this.visible?e("div",{staticClass:"dialog-overlay-loading",style:{zIndex:this.zIndex}},[this._v("Loading…")]):this._e()])};jn._withStripped=!0;var On=function(t,e,n,r,o,i,a,s){var c,l=("function"==typeof n?n.options:n)||{};if(l.__file="/Users/yarik/Projects/clones/vuedl/src/components/DialogOverlay.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),l._scopeId=r,e&&(c=function(t){e.call(this,a(t))}),void 0!==c)if(l.functional){var A=l.render;l.render=function(t,e){return c.call(e),A(t,e)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return l}({render:jn,staticRenderFns:[]},function(t){t&&t("data-v-05d353e2_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* Absolute Center Spinner */\n.dialog-overlay-loading {\n position: fixed;\n z-index: 999;\n height: 2em;\n width: 2em;\n overflow: show;\n margin: auto;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n /* background: rgba(112, 112, 112, 0.4); */\n cursor: wait;\n}\n\n/* Transparent Overlay */\n.dialog-overlay-loading:before {\n content: '';\n display: block;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: radial-gradient(rgba(112, 112, 112, 0.4), rgba(50, 50, 50, .8));\n background: -webkit-radial-gradient(rgba(112, 112, 112, 0.4), rgba(50, 50, 50, .8));\n}\n\n/* :not(:required) hides these rules from IE9 and below */\n.dialog-overlay-loading:not(:required) {\n /* hide \"loading...\" text */\n font: 0/0 a;\n color: transparent;\n text-shadow: none;\n background-color: transparent;\n border: 0;\n}\n.dialog-overlay-loading:not(:required):after {\n content: '';\n display: block;\n font-size: 10px;\n width: 1em;\n height: 1em;\n margin-top: -0.5em;\n -webkit-animation: spinner 1500ms infinite linear;\n -moz-animation: spinner 1500ms infinite linear;\n -ms-animation: spinner 1500ms infinite linear;\n -o-animation: spinner 1500ms infinite linear;\n animation: spinner 1500ms infinite linear;\n border-radius: 0.5em;\n -webkit-box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;\nbox-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;\n}\n\n/* Animation */\n@-webkit-keyframes spinner {\n0% {\n -webkit-transform: rotate(0deg);\n -moz-transform: rotate(0deg);\n -ms-transform: rotate(0deg);\n -o-transform: rotate(0deg);\n transform: rotate(0deg);\n}\n100% {\n -webkit-transform: rotate(360deg);\n -moz-transform: rotate(360deg);\n -ms-transform: rotate(360deg);\n -o-transform: rotate(360deg);\n transform: rotate(360deg);\n}\n}\n@-moz-keyframes spinner {\n0% {\n -webkit-transform: rotate(0deg);\n -moz-transform: rotate(0deg);\n -ms-transform: rotate(0deg);\n -o-transform: rotate(0deg);\n transform: rotate(0deg);\n}\n100% {\n -webkit-transform: rotate(360deg);\n -moz-transform: rotate(360deg);\n -ms-transform: rotate(360deg);\n -o-transform: rotate(360deg);\n transform: rotate(360deg);\n}\n}\n@-o-keyframes spinner {\n0% {\n -webkit-transform: rotate(0deg);\n -moz-transform: rotate(0deg);\n -ms-transform: rotate(0deg);\n -o-transform: rotate(0deg);\n transform: rotate(0deg);\n}\n100% {\n -webkit-transform: rotate(360deg);\n -moz-transform: rotate(360deg);\n -ms-transform: rotate(360deg);\n -o-transform: rotate(360deg);\n transform: rotate(360deg);\n}\n}\n@keyframes spinner {\n0% {\n -webkit-transform: rotate(0deg);\n -moz-transform: rotate(0deg);\n -ms-transform: rotate(0deg);\n -o-transform: rotate(0deg);\n transform: rotate(0deg);\n}\n100% {\n -webkit-transform: rotate(360deg);\n -moz-transform: rotate(360deg);\n -ms-transform: rotate(360deg);\n -o-transform: rotate(360deg);\n transform: rotate(360deg);\n}\n}\n",map:{version:3,sources:["/Users/yarik/Projects/clones/vuedl/src/components/DialogOverlay.vue"],names:[],mappings:";;;;;;;;;;;;;;;;;;;;;AAqBA,6BAAA;AACA;EACA,gBAAA;EACA,aAAA;EACA,YAAA;EACA,WAAA;EACA,eAAA;EACA,aAAA;EACA,OAAA;EACA,QAAA;EACA,UAAA;EACA,SAAA;EACA,2CAAA;EACA,aAAA;CACA;;AAEA,yBAAA;AACA;EACA,YAAA;EACA,eAAA;EACA,gBAAA;EACA,OAAA;EACA,QAAA;EACA,YAAA;EACA,aAAA;EACA,4EAAA;EACA,oFAAA;CACA;;AAEA,0DAAA;AACA;EACA,4BAAA;EACA,YAAA;EACA,mBAAA;EACA,kBAAA;EACA,8BAAA;EACA,UAAA;CACA;AAEA;EACA,YAAA;EACA,eAAA;EACA,gBAAA;EACA,WAAA;EACA,YAAA;EACA,mBAAA;EACA,kDAAA;EACA,+CAAA;EACA,8CAAA;EACA,6CAAA;EACA,0CAAA;EACA,qBAAA;EACA,iVAAA;AACA,yUAAA;CACA;;AAEA,eAAA;AAEA;AACA;IACA,gCAAA;IACA,6BAAA;IACA,4BAAA;IACA,2BAAA;IACA,wBAAA;CACA;AACA;IACA,kCAAA;IACA,+BAAA;IACA,8BAAA;IACA,6BAAA;IACA,0BAAA;CACA;CACA;AACA;AACA;IACA,gCAAA;IACA,6BAAA;IACA,4BAAA;IACA,2BAAA;IACA,wBAAA;CACA;AACA;IACA,kCAAA;IACA,+BAAA;IACA,8BAAA;IACA,6BAAA;IACA,0BAAA;CACA;CACA;AACA;AACA;IACA,gCAAA;IACA,6BAAA;IACA,4BAAA;IACA,2BAAA;IACA,wBAAA;CACA;AACA;IACA,kCAAA;IACA,+BAAA;IACA,8BAAA;IACA,6BAAA;IACA,0BAAA;CACA;CACA;AACA;AACA;IACA,gCAAA;IACA,6BAAA;IACA,4BAAA;IACA,2BAAA;IACA,wBAAA;CACA;AACA;IACA,kCAAA;IACA,+BAAA;IACA,8BAAA;IACA,6BAAA;IACA,0BAAA;CACA;CACA",file:"DialogOverlay.vue",sourcesContent:['<template>\n <transition name="opacity">\n <div class="dialog-overlay-loading" :style="{zIndex: zIndex}" v-if="visible">Loading&#8230;</div>\n </transition>\n</template>\n<script>\nexport default {\n name: \'VDialogOverlay\',\n props: {\n zIndex: {\n type: Number,\n default: () => 1250\n },\n visible: {\n type: Boolean,\n default: () => false\n }\n }\n}\n<\/script>\n<style>\n/* Absolute Center Spinner */\n.dialog-overlay-loading {\n position: fixed;\n z-index: 999;\n height: 2em;\n width: 2em;\n overflow: show;\n margin: auto;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n /* background: rgba(112, 112, 112, 0.4); */\n cursor: wait;\n}\n\n/* Transparent Overlay */\n.dialog-overlay-loading:before {\n content: \'\';\n display: block;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: radial-gradient(rgba(112, 112, 112, 0.4), rgba(50, 50, 50, .8));\n background: -webkit-radial-gradient(rgba(112, 112, 112, 0.4), rgba(50, 50, 50, .8));\n}\n\n/* :not(:required) hides these rules from IE9 and below */\n.dialog-overlay-loading:not(:required) {\n /* hide "loading..." text */\n font: 0/0 a;\n color: transparent;\n text-shadow: none;\n background-color: transparent;\n border: 0;\n}\n\n.dialog-overlay-loading:not(:required):after {\n content: \'\';\n display: block;\n font-size: 10px;\n width: 1em;\n height: 1em;\n margin-top: -0.5em;\n -webkit-animation: spinner 1500ms infinite linear;\n -moz-animation: spinner 1500ms infinite linear;\n -ms-animation: spinner 1500ms infinite linear;\n -o-animation: spinner 1500ms infinite linear;\n animation: spinner 1500ms infinite linear;\n border-radius: 0.5em;\n -webkit-box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;\nbox-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;\n}\n\n/* Animation */\n\n@-webkit-keyframes spinner {\n 0% {\n -webkit-transform: rotate(0deg);\n -moz-transform: rotate(0deg);\n -ms-transform: rotate(0deg);\n -o-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n -moz-transform: rotate(360deg);\n -ms-transform: rotate(360deg);\n -o-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@-moz-keyframes spinner {\n 0% {\n -webkit-transform: rotate(0deg);\n -moz-transform: rotate(0deg);\n -ms-transform: rotate(0deg);\n -o-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n -moz-transform: rotate(360deg);\n -ms-transform: rotate(360deg);\n -o-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@-o-keyframes spinner {\n 0% {\n -webkit-transform: rotate(0deg);\n -moz-transform: rotate(0deg);\n -ms-transform: rotate(0deg);\n -o-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n -moz-transform: rotate(360deg);\n -ms-transform: rotate(360deg);\n -o-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes spinner {\n 0% {\n -webkit-transform: rotate(0deg);\n -moz-transform: rotate(0deg);\n -ms-transform: rotate(0deg);\n -o-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n -moz-transform: rotate(360deg);\n -ms-transform: rotate(360deg);\n -o-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n</style>\n']},media:void 0})},Bn,void 0,!1,0,function t(){var e=document.head||document.getElementsByTagName("head")[0],n=t.styles||(t.styles={}),r="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,o){if(!document.querySelector('style[data-vue-ssr-id~="'+t+'"]')){var i=r?o.media||"default":t,a=n[i]||(n[i]={ids:[],parts:[],element:void 0});if(!a.ids.includes(t)){var s=o.source,c=a.ids.length;if(a.ids.push(t),r&&(a.element=a.element||document.querySelector("style[data-group="+i+"]")),!a.element){var l=a.element=document.createElement("style");l.type="text/css",o.media&&l.setAttribute("media",o.media),r&&(l.setAttribute("data-group",i),l.setAttribute("data-next-index","0")),e.appendChild(l)}if(r&&(c=parseInt(a.element.getAttribute("data-next-index")),a.element.setAttribute("data-next-index",c+1)),a.element.styleSheet)a.parts.push(s),a.element.styleSheet.cssText=a.parts.filter(Boolean).join("\n");else{var A=document.createTextNode(s),u=a.element.childNodes;u[c]&&a.element.removeChild(u[c]),u.length?a.element.insertBefore(A,u[c]):a.element.appendChild(A)}}}}}),zn={name:"Confirmable",props:{type:{type:String},text:{type:String,reqiured:!0},title:{type:String},actions:{type:[Array,Object]}}},In={mixins:[{name:"Actionable",mixins:[{name:"Returnable",props:{returnValue:null},data:function(){return{originalValue:this.returnValue,returnResovers:[]}},methods:{return:function(t){this.originalValue=t,this.$root.$emit("submit",this.originalValue),this.$emit("submit",this.originalValue)}}}],data:function(){return{loadingAction:null}},props:{actions:{type:[Array,Object],default:function(){return[]}}},computed:{actionlist:function(){var t=[];for(var e in this.actions){var n=this.actions[e];"string"==typeof n&&(n={text:n}),this.$set(n,"loading",!1),n.key||(n.key=isNaN(e)?e:n.text),["true","false"].indexOf(n.key)>=0&&(n.key=JSON.parse(n.key)),"string"==typeof n.icon&&(n.icon={text:n.icon}),t.push(n)}return t}},methods:{trigger:function(t){var e=this.actionlist.find(function(e){return e.key===t});e&&!this.isActionDisabled(e)&&this.isActionVisible(e)&&this.onActionClick(e)},setLoadingToInstance:function(t,e){t&&void 0!==t.loading&&(t.loading=e)},setLoadingState:function(t){this.$emit("loading",t),!t&&(this.loadingAction=null),this.setLoadingToInstance(this.$root,t),this.setLoadingToInstance(this.$root._dialogInstance,t)},isActionDisabled:function(t){return void 0!==t.disabled&&("function"==typeof t.disabled?t.disabled():t.disabled)},isActionVisible:function(t){return void 0===t.visible||("function"==typeof t.visible?t.visible():t.visible)},onActionClick:function(t){return new Promise(function(e,n){var r;if(r=void 0===t.closable||!0===t.closable,!t.handle)return r&&this.return(t.key),s.call(this);this.loadingAction=t.key,this.setLoadingState(!0);var o=function(){try{return s.call(this)}catch(t){return n(t)}}.bind(this),i=function(t){try{throw this.setLoadingState(!1),console.log("error",t),t}catch(t){return n(t)}}.bind(this);try{var a;return Promise.resolve(t.handle()).then(function(e){try{return a=e,this.setLoadingState(!1),!1!==a&&r&&this.return(a||t.key),o()}catch(t){return i(t)}}.bind(this),i)}catch(t){i(t)}function s(){return e()}}.bind(this))}}}]},$n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",t._l(t.actionlist,function(e){return n("button",{key:e.key,staticClass:"button",class:{loading:t.loadingAction===e.key},attrs:{"action-key":""+e.key,disabled:t.isActionDisabled(e)||!!t.loadingAction},on:{click:function(n){t.onActionClick(e)}}},[t._v("\n "+t._s(e.text)+"\n ")])}))};$n._withStripped=!0;var Sn={components:{DialogActions:function(t,e,n,r,o,i,a,s){var c=("function"==typeof n?n.options:n)||{};return c.__file="/Users/yarik/Projects/clones/vuedl/src/components/DialogActions.vue",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),c._scopeId=r,c}({render:$n,staticRenderFns:[]},0,In,void 0,!1)},layout:"default",mixins:[zn]},Dn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"confirm-box"},[t.title?n("div",{staticClass:"confirm-title"},[n("h1",{staticClass:"title"},[t._v(t._s(t.title))])]):t._e(),t._v(" "),n("div",{staticClass:"confirm-message",domProps:{innerHTML:t._s(t.message)}}),t._v(" "),n("div",{staticClass:"confirm-buttons"},[n("div",{staticClass:"column"},[n("DialogActions",{attrs:{actions:t.actions}})],1)])])};Dn._withStripped=!0;var Pn=function(t,e,n,r,o,i,a,s){var c,l=("function"==typeof n?n.options:n)||{};if(l.__file="/Users/yarik/Projects/clones/vuedl/src/components/Confirm.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),l._scopeId=r,e&&(c=function(t){e.call(this,a(t))}),void 0!==c)if(l.functional){var A=l.render;l.render=function(t,e){return c.call(e),A(t,e)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return l}({render:Dn,staticRenderFns:[]},function(t){t&&t("data-v-8a87651c_0",{source:"\n.confirm-box {\n background: #ffffff;\n}\n.confirm-box .confirm-title {\n padding: 20px\n}\n.confirm-box .confirm-message {\n padding: 0 20px;\n}\n.confirm-box .confirm-buttons {\n text-align: right;\n padding: 10px 20px;\n}\n.confirm-box .confirm-buttons .button {\n font-size: 20px;\n padding-left: 20px;\n}\n",map:{version:3,sources:["/Users/yarik/Projects/clones/vuedl/src/components/Confirm.vue"],names:[],mappings:";AA6BA;EACA,oBAAA;CACA;AACA;EACA,aAAA;CACA;AACA;EACA,gBAAA;CACA;AACA;EACA,mBAAA;EACA,mBAAA;CACA;AACA;EACA,gBAAA;EACA,mBAAA;CACA",file:"Confirm.vue",sourcesContent:['<template>\n <div class="confirm-box">\n <div v-if="!!title" class="confirm-title">\n <h1 class="title">{{ title }}</h1>\n </div>\n <div class="confirm-message" v-html="message" />\n <div class="confirm-buttons">\n <div class="column">\n <DialogActions :actions="actions"/>\n </div>\n </div>\n </div>\n</template>\n<script>\n\nimport Confirmable from \'../mixins/confirmable\'\nimport DialogActions from \'./DialogActions.vue\'\n\nexport default {\n components: {\n DialogActions\n },\n layout: \'default\',\n mixins: [ Confirmable ]\n}\n\n<\/script>\n\n<style>\n .confirm-box {\n background: #ffffff;\n }\n .confirm-box .confirm-title {\n padding: 20px\n }\n .confirm-box .confirm-message {\n padding: 0 20px;\n }\n .confirm-box .confirm-buttons {\n text-align: right;\n padding: 10px 20px;\n }\n .confirm-box .confirm-buttons .button {\n font-size: 20px;\n padding-left: 20px;\n }\n</style>\n']},media:void 0})},Sn,void 0,!1,0,function t(){var e=document.head||document.getElementsByTagName("head")[0],n=t.styles||(t.styles={}),r="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,o){if(!document.querySelector('style[data-vue-ssr-id~="'+t+'"]')){var i=r?o.media||"default":t,a=n[i]||(n[i]={ids:[],parts:[],element:void 0});if(!a.ids.includes(t)){var s=o.source,c=a.ids.length;if(a.ids.push(t),r&&(a.element=a.element||document.querySelector("style[data-group="+i+"]")),!a.element){var l=a.element=document.createElement("style");l.type="text/css",o.media&&l.setAttribute("media",o.media),r&&(l.setAttribute("data-group",i),l.setAttribute("data-next-index","0")),e.appendChild(l)}if(r&&(c=parseInt(a.element.getAttribute("data-next-index")),a.element.setAttribute("data-next-index",c+1)),a.element.styleSheet)a.parts.push(s),a.element.styleSheet.cssText=a.parts.filter(Boolean).join("\n");else{var A=document.createTextNode(s),u=a.element.childNodes;u[c]&&a.element.removeChild(u[c]),u.length?a.element.insertBefore(A,u[c]):a.element.appendChild(A)}}}}});return{install:function(t,e){void 0===e&&(e={});var n=e.property||"$dialog",r=new yn(e);t.prototype[n]=r,r.layout("default",xn),r.layout("notification",Fn),r.overlay("default",On),r.component("confirm",Pn,{waitForResult:!0,actions:{false:"Cancel",true:"OK"}}),r.component("warning",Pn,{type:"warning",waitForResult:!0,actions:{false:"Cancel",true:"OK"}}),r.component("error",Pn,{type:"error",waitForResult:!0,actions:["OK"]})}}});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):t.vuedl=e(t.Vue)}(this,function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e={computed:{$parameters:function(){return this.$options.propsData},isNewRecord:function(){return!this.$options.primaryKey||!this.$options.propsData||!this.$options.propsData[this.$options.primaryKey]}}},n={name:"Layoutable",mixins:[{name:"Activable",data:function(){return{isActive:!1}},watch:{isActive:function(t){this._dialogInstance?void 0!==this._dialogInstance.isActive&&(this._dialogInstance.isActive=t):this.$parent&&void 0!==this.$parent.isActive&&(this.$parent.isActive=t)}},methods:{close:function(){this.isActive=!1}}}],props:{width:{type:[String,Number],default:function(){return 450}},persistent:Boolean},data:function(){return{loading:!1}},computed:{isLayout:function(){return!0},getWidth:function(){return"string"==typeof this.width?this.width:this.width+"px"}},watch:{isActive:function(t){t||this._destroy()}},mounted:function(){this.isActive=!0},methods:{_destroy:function(){this.$destroy()},dismiss:function(){this.persistent||this.loading||(this.isActive=!1)},close:function(){this.isActive=!1}},beforeDestroy:function(){void 0!==this.$el.remove?this.$el.remove():this.$el.parentNode.removeChild(this.$el)}};var r=function(){this.__data__=[],this.size=0};var o=function(t,e){return t===e||t!=t&&e!=e};var i=function(t,e){for(var n=t.length;n--;)if(o(t[n][0],e))return n;return-1},s=Array.prototype.splice;var a=function(t){var e=this.__data__,n=i(e,t);return!(n<0||(n==e.length-1?e.pop():s.call(e,n,1),--this.size,0))};var c=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]};var u=function(t){return i(this.__data__,t)>-1};var f=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function p(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}p.prototype.clear=r,p.prototype.delete=a,p.prototype.get=c,p.prototype.has=u,p.prototype.set=f;var h=p;var l=function(){this.__data__=new h,this.size=0};var v=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var y=function(t){return this.__data__.get(t)};var d=function(t){return this.__data__.has(t)},_="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m(t,e){return t(e={exports:{}},e.exports),e.exports}var b="object"==typeof _&&_&&_.Object===Object&&_,g="object"==typeof self&&self&&self.Object===Object&&self,w=b||g||Function("return this")(),j=w.Symbol,O=Object.prototype,A=O.hasOwnProperty,$=O.toString,P=j?j.toStringTag:void 0;var x=function(t){var e=A.call(t,P),n=t[P];try{t[P]=void 0;var r=!0}catch(t){}var o=$.call(t);return r&&(e?t[P]=n:delete t[P]),o},D=Object.prototype.toString;var z=function(t){return D.call(t)},S="[object Null]",C="[object Undefined]",F=j?j.toStringTag:void 0;var R=function(t){return null==t?void 0===t?C:S:F&&F in Object(t)?x(t):z(t)};var E=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},I="[object AsyncFunction]",T="[object Function]",U="[object GeneratorFunction]",L="[object Proxy]";var k,B=function(t){if(!E(t))return!1;var e=R(t);return e==T||e==U||e==I||e==L},N=w["__core-js_shared__"],W=(k=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+k:"";var q=function(t){return!!W&&W in t},M=Function.prototype.toString;var V=function(t){if(null!=t){try{return M.call(t)}catch(t){}try{return t+""}catch(t){}}return""},K=/^\[object .+?Constructor\]$/,G=Function.prototype,H=Object.prototype,J=G.toString,Q=H.hasOwnProperty,X=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Y=function(t){return!(!E(t)||q(t))&&(B(t)?X:K).test(V(t))};var Z=function(t,e){return null==t?void 0:t[e]};var tt=function(t,e){var n=Z(t,e);return Y(n)?n:void 0},et=tt(w,"Map"),nt=tt(Object,"create");var rt=function(){this.__data__=nt?nt(null):{},this.size=0};var ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},it="__lodash_hash_undefined__",st=Object.prototype.hasOwnProperty;var at=function(t){var e=this.__data__;if(nt){var n=e[t];return n===it?void 0:n}return st.call(e,t)?e[t]:void 0},ct=Object.prototype.hasOwnProperty;var ut=function(t){var e=this.__data__;return nt?void 0!==e[t]:ct.call(e,t)},ft="__lodash_hash_undefined__";var pt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=nt&&void 0===e?ft:e,this};function ht(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ht.prototype.clear=rt,ht.prototype.delete=ot,ht.prototype.get=at,ht.prototype.has=ut,ht.prototype.set=pt;var lt=ht;var vt=function(){this.size=0,this.__data__={hash:new lt,map:new(et||h),string:new lt}};var yt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var dt=function(t,e){var n=t.__data__;return yt(e)?n["string"==typeof e?"string":"hash"]:n.map};var _t=function(t){var e=dt(this,t).delete(t);return this.size-=e?1:0,e};var mt=function(t){return dt(this,t).get(t)};var bt=function(t){return dt(this,t).has(t)};var gt=function(t,e){var n=dt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function wt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}wt.prototype.clear=vt,wt.prototype.delete=_t,wt.prototype.get=mt,wt.prototype.has=bt,wt.prototype.set=gt;var jt=wt,Ot=200;var At=function(t,e){var n=this.__data__;if(n instanceof h){var r=n.__data__;if(!et||r.length<Ot-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new jt(r)}return n.set(t,e),this.size=n.size,this};function $t(t){var e=this.__data__=new h(t);this.size=e.size}$t.prototype.clear=l,$t.prototype.delete=v,$t.prototype.get=y,$t.prototype.has=d,$t.prototype.set=At;var Pt=$t,xt=function(){try{var t=tt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var Dt=function(t,e,n){"__proto__"==e&&xt?xt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var zt=function(t,e,n){(void 0===n||o(t[e],n))&&(void 0!==n||e in t)||Dt(t,e,n)};var St=function(t){return function(e,n,r){for(var o=-1,i=Object(e),s=r(e),a=s.length;a--;){var c=s[t?a:++o];if(!1===n(i[c],c,i))break}return e}}(),Ct=m(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n?w.Buffer:void 0,i=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=i?i(n):new t.constructor(n);return t.copy(r),r}}),Ft=w.Uint8Array;var Rt=function(t){var e=new t.constructor(t.byteLength);return new Ft(e).set(new Ft(t)),e};var Et=function(t,e){var n=e?Rt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};var It=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e},Tt=Object.create,Ut=function(){function t(){}return function(e){if(!E(e))return{};if(Tt)return Tt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var Lt=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object),kt=Object.prototype;var Bt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||kt)};var Nt=function(t){return"function"!=typeof t.constructor||Bt(t)?{}:Ut(Lt(t))};var Wt=function(t){return null!=t&&"object"==typeof t},qt="[object Arguments]";var Mt=function(t){return Wt(t)&&R(t)==qt},Vt=Object.prototype,Kt=Vt.hasOwnProperty,Gt=Vt.propertyIsEnumerable,Ht=Mt(function(){return arguments}())?Mt:function(t){return Wt(t)&&Kt.call(t,"callee")&&!Gt.call(t,"callee")},Jt=Array.isArray,Qt=9007199254740991;var Xt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Qt};var Yt=function(t){return null!=t&&Xt(t.length)&&!B(t)};var Zt=function(t){return Wt(t)&&Yt(t)};var te=function(){return!1},ee=m(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n?w.Buffer:void 0,i=(o?o.isBuffer:void 0)||te;t.exports=i}),ne="[object Object]",re=Function.prototype,oe=Object.prototype,ie=re.toString,se=oe.hasOwnProperty,ae=ie.call(Object);var ce=function(t){if(!Wt(t)||R(t)!=ne)return!1;var e=Lt(t);if(null===e)return!0;var n=se.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ie.call(n)==ae},ue={};ue["[object Float32Array]"]=ue["[object Float64Array]"]=ue["[object Int8Array]"]=ue["[object Int16Array]"]=ue["[object Int32Array]"]=ue["[object Uint8Array]"]=ue["[object Uint8ClampedArray]"]=ue["[object Uint16Array]"]=ue["[object Uint32Array]"]=!0,ue["[object Arguments]"]=ue["[object Array]"]=ue["[object ArrayBuffer]"]=ue["[object Boolean]"]=ue["[object DataView]"]=ue["[object Date]"]=ue["[object Error]"]=ue["[object Function]"]=ue["[object Map]"]=ue["[object Number]"]=ue["[object Object]"]=ue["[object RegExp]"]=ue["[object Set]"]=ue["[object String]"]=ue["[object WeakMap]"]=!1;var fe=function(t){return Wt(t)&&Xt(t.length)&&!!ue[R(t)]};var pe=function(t){return function(e){return t(e)}},he=m(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n&&b.process,i=function(){try{var t=r&&r.require&&r.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i}),le=he&&he.isTypedArray,ve=le?pe(le):fe;var ye=function(t,e){return"__proto__"==e?void 0:t[e]},de=Object.prototype.hasOwnProperty;var _e=function(t,e,n){var r=t[e];de.call(t,e)&&o(r,n)&&(void 0!==n||e in t)||Dt(t,e,n)};var me=function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var a=e[i],c=r?r(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),o?Dt(n,a,c):_e(n,a,c)}return n};var be=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},ge=9007199254740991,we=/^(?:0|[1-9]\d*)$/;var je=function(t,e){var n=typeof t;return!!(e=null==e?ge:e)&&("number"==n||"symbol"!=n&&we.test(t))&&t>-1&&t%1==0&&t<e},Oe=Object.prototype.hasOwnProperty;var Ae=function(t,e){var n=Jt(t),r=!n&&Ht(t),o=!n&&!r&&ee(t),i=!n&&!r&&!o&&ve(t),s=n||r||o||i,a=s?be(t.length,String):[],c=a.length;for(var u in t)!e&&!Oe.call(t,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||je(u,c))||a.push(u);return a};var $e=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},Pe=Object.prototype.hasOwnProperty;var xe=function(t){if(!E(t))return $e(t);var e=Bt(t),n=[];for(var r in t)("constructor"!=r||!e&&Pe.call(t,r))&&n.push(r);return n};var De=function(t){return Yt(t)?Ae(t,!0):xe(t)};var ze=function(t){return me(t,De(t))};var Se=function(t,e,n,r,o,i,s){var a=ye(t,n),c=ye(e,n),u=s.get(c);if(u)zt(t,n,u);else{var f=i?i(a,c,n+"",t,e,s):void 0,p=void 0===f;if(p){var h=Jt(c),l=!h&&ee(c),v=!h&&!l&&ve(c);f=c,h||l||v?Jt(a)?f=a:Zt(a)?f=It(a):l?(p=!1,f=Ct(c,!0)):v?(p=!1,f=Et(c,!0)):f=[]:ce(c)||Ht(c)?(f=a,Ht(a)?f=ze(a):(!E(a)||r&&B(a))&&(f=Nt(c))):p=!1}p&&(s.set(c,f),o(f,c,r,i,s),s.delete(c)),zt(t,n,f)}};var Ce=function t(e,n,r,o,i){e!==n&&St(n,function(s,a){if(E(s))i||(i=new Pt),Se(e,n,a,r,t,o,i);else{var c=o?o(ye(e,a),s,a+"",e,n,i):void 0;void 0===c&&(c=s),zt(e,a,c)}},De)};var Fe=function(t){return t};var Re=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},Ee=Math.max;var Ie=function(t,e,n){return e=Ee(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Ee(r.length-e,0),s=Array(i);++o<i;)s[o]=r[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=r[o];return a[e]=n(s),Re(t,this,a)}};var Te=function(t){return function(){return t}},Ue=xt?function(t,e){return xt(t,"toString",{configurable:!0,enumerable:!1,value:Te(e),writable:!0})}:Fe,Le=800,ke=16,Be=Date.now;var Ne=function(t){var e=0,n=0;return function(){var r=Be(),o=ke-(r-n);if(n=r,o>0){if(++e>=Le)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Ue);var We=function(t,e){return Ne(Ie(t,e,Fe),t+"")};var qe=function(t,e,n){if(!E(n))return!1;var r=typeof e;return!!("number"==r?Yt(n)&&je(e,n.length):"string"==r&&e in n)&&o(n[e],t)};var Me=function(t){return We(function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,s&&qe(n[0],n[1],s)&&(i=o<3?void 0:i,o=1),e=Object(e);++r<o;){var a=n[r];a&&t(e,a,r,i)}return e})}(function(t,e,n){Ce(t,e,n)}),Ve={},Ke=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"dialog-layout"},[this._t("default")],2)};Ke._withStripped=!0;var Ge,He,Je,Qe,Xe,Ye=(Ge={render:Ke,staticRenderFns:[]},Je=void 0,Qe=!1,(Xe=("function"==typeof(He=Ve)?He.options:He)||{}).__file="/Users/yarik/Projects/clones/vuedl/src/components/DefaultLayout.vue",Xe.render||(Xe.render=Ge.render,Xe.staticRenderFns=Ge.staticRenderFns,Xe._compiled=!0,Qe&&(Xe.functional=!0)),Xe._scopeId=Je,Xe),Ze=function(){return{}};function tn(t){t&&!t._isDestroyed&&"function"==typeof t.$destroy&&t.$destroy()}function en(t){var e;return(e="string"==typeof t?document.querySelector(t):t)||(e=document.body),e}function nn(t,e){return new Promise(function(n,r){if(!Array.isArray(t)){if(!t)return n(null);t=[t]}return n(Promise.all(t.map(function(t){var n=[];if(t.options.asyncData&&"function"==typeof t.options.asyncData){var r=function(t,e){var n;return(n=2===t.length?new Promise(function(n){t(e,function(t,r){t&&e.error(t),n(r=r||{})})}):t(e))&&(n instanceof Promise||"function"==typeof n.then)||(n=Promise.resolve(n)),n}(t.options.asyncData,e);r.then(function(e){return function(t,e){var n=t.options.data||Ze;!e&&t.options.hasAsyncData||(t.options.hasAsyncData=!0,t.options.data=function(){var r=n.call(this);return this.$ssrContext&&(e=this.$ssrContext.asyncData[t.cid]),Object.assign({},r,e)},t._Ctor&&t._Ctor.options&&(t._Ctor.options.data=t.options.data))}(t,e),e}),n.push(r)}else n.push(null);return t.options.fetch?n.push(t.options.fetch(e)):n.push(null),Promise.all(n)})))})}var rn=1,on=function(t,e){void 0===e&&(e={});var n=e.layout,r=e.container;if(!t)throw Error("Component was not setted");this._layout=n||{component:Ye,options:{}},this._component=t,this._vm=null,this._vmDialog=null,this._options={},this.id=++rn,this._resolvers=[],this.container=en(r)},sn={showed:{configurable:!0},element:{configurable:!0},hasAsyncPreload:{configurable:!0},vm:{configurable:!0},vmd:{configurable:!0}};on.prototype.show=function(r,o){return void 0===r&&(r={}),void 0===o&&(o={}),new Promise(function(i,s){var a,c,u,f;if(t.prototype.$isServer)return i();if(a=(a=t.extend({mixins:[n]})).extend(this._layout.component),c=new a(Me({propsData:Object.assign({},this._layout.options,r)},this.context,o)),u=t.extend(Object.assign({},this._component,{parent:c})),this._component.primaryKey&&(u=u.extend({mixins:[e]})),this.hasAsyncPreload)return Promise.resolve(nn(u,Object.assign({},this.context,{params:r}))).then(function(t){try{return p.call(this)}catch(t){return s(t)}}.bind(this),s);function p(){return(f=new u(Me({propsData:r},this.context,o))).$mount(),c.$slots.default=f._vnode,c.$mount(),c.$on("hook:destroyed",this._onDestroyed.bind(this)),c.$on("submit",this.onReturn.bind(this)),f.$on("submit",this.onReturn.bind(this)),this._vm=c,this._vm._dialogInstance=f,this._vmDialog=f,this.container=o.container?en(o.container):this.container,this.container.appendChild(this.element),i(this)}return p.call(this)}.bind(this))},on.prototype.wait=function(){var t=this;return new Promise(function(e){t._resolvers.push(e)})},on.prototype._onDestroyed=function(){this.remove()},on.prototype.remove=function(){this.onDestroyed&&this.onDestroyed(this),this._processResultPromises(),tn(this._vm),tn(this._vmDialog),this._vm=null,this._vmDialog=null},on.prototype._processResultPromises=function(t){this._resolvers.length&&(this._resolvers.forEach(function(e){return e(t)}),this._resolvers=[])},on.prototype.onReturn=function(t){this._processResultPromises(t),this.close()},sn.showed.get=function(){return!!this._vm&&!this._vm._isDestroyed},sn.element.get=function(){return this._vm&&this._vm.$el},sn.hasAsyncPreload.get=function(){return this._component&&(this._component.asyncData||this._component.fetch)},sn.vm.get=function(){return this._vm},sn.vmd.get=function(){return this._vmDialog},on.prototype.close=function(){this._vm.close()},Object.defineProperties(on.prototype,sn);var an=function(t){this._component=t,this._vm=null};an.prototype.show=function(){if(!this._vm){var e=t.extend(this._component);this._vm=new e,this._vm.$mount(),document.body.appendChild(this._vm.$el)}this._vm.visible=!0},an.prototype.hide=function(){this._vm.visible=!1};var cn={get:function(t,e){return"symbol"==typeof e||"inspect"===e?t[e]:t[e]?t[e]:t._components[e]?t.createFunctionWrapper(e):t[e]}},un=function(e){void 0===e&&(e={});var n=e.context,r=e.container;return this._context=n||{},on.prototype.context=n||{},this._components={},this._layouts={},this._overlays={},this._container=r,this._emitter=new t({}),this._instances=[],new Proxy(this,cn)},fn={context:{configurable:!0}};fn.context.get=function(){return this._context},un.prototype.layout=function(t,e,n){void 0===n&&(n={}),this._layouts[t]={component:e,options:n}},un.prototype.getLayout=function(t){if("function"==typeof t){var e=t.call(this._context);return t=this._layouts[e.name||"default"],Object.assign({},t,{options:e})}if("object"==typeof t&&"function"==typeof t.render)return{component:t};if(Array.isArray(t)){var n=t[0],r=t[1]||{},o="object"==typeof n&&"function"==typeof n.render?{component:n}:this._layouts[n];return o&&{component:o.component,options:Object.assign({},o.options,r)}}return this._layouts[t]},un.prototype.overlay=function(t,e){if(void 0===e){if(this._overlays[t])return this._overlays[t];throw new Error('Overlay "'+t+" not found\n Please register it by calling dialog.overlay('"+t+"', component)")}this._overlays[t]=new an(e)},un.prototype.getComponent=function(t){if(!this._components[t])throw new Error('Component "'+t+"\" was not found.\n Please register it by calling dialog.register('"+t+"', component)");return this._components[t]},un.prototype.component=function(t,e,n){if(void 0===n&&(n={}),void 0===e)return this._components[t];this._components[t]={component:e,options:n}},un.prototype.create=function(t){if(!t)throw new Error("Component is incorrect");var e=this.getLayout(t.layout||"default"),n=new on(t,{layout:e,context:this._context,container:this._container});return this._emitter.$emit("created",{dialog:n}),n},un.prototype.show=function(t,e){return void 0===e&&(e={}),new Promise(function(n,r){var o,i,s;i=!!(o=this.create(t)).hasAsyncPreload&&(t.overlay||"default"),(s=i&&this._overlays[i]&&this.overlay(i))&&s.show();var a=function(t){try{throw this._emitter.$emit("error",{error:t,dialog:o}),s&&s.hide(),t}catch(t){return r(t)}}.bind(this);try{return Promise.resolve(o.show(e)).then(function(t){try{return this._emitter.$emit("shown",{dialog:o}),s&&s.hide(),o.onDestroyed=this.onDialogDestroyed.bind(this),n(e.waitForResult?o.wait():o)}catch(t){return a(t)}}.bind(this),a)}catch(t){a(t)}}.bind(this))},un.prototype.createFunctionWrapper=function(t){var e=this,n=this.getComponent(t);return function(t){return e.show(n.component,Object.assign({},n.options,t))}},un.prototype.showAndWait=function(t,e){return new Promise(function(n,r){return Promise.resolve(this.show(t,e)).then(function(t){try{return n(t.wait())}catch(t){return r(t)}},r)}.bind(this))},un.prototype.on=function(t,e){this._emitter.$on(t,e)},un.prototype.off=function(t,e){this._emitter.$off(t,e)},un.prototype.once=function(t,e){this._emitter.$once(t,e)},un.prototype.onDialogDestroyed=function(t){this._emitter.$emit("destroyed",{dialog:t})},Object.defineProperties(un.prototype,fn);var pn={install:function(t,e){void 0===e&&(e={});var n=e.property||"$dialog",r=new un(e);Object.defineProperty(t.prototype,n,{get:function(){return r}})}};return"undefined"!=typeof window&&window.Vue&&window.Vue.use(pn),pn});
//# sourceMappingURL=vuedl.min.js.map
{
"name": "vuedl",
"version": "0.0.9",
"version": "0.0.10",
"description": "Vue dialog helper",

@@ -16,3 +16,5 @@ "scripts": {

"coveralls": "jest --env=jsdom --coverage --coverageReporters=text-lcov | coveralls",
"test1": "node_modules/.bin/jest --env=jsdom --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
"test1": "node_modules/.bin/jest --env=jsdom --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs"
},

@@ -19,0 +21,0 @@ "main": "dist/vuedl.cjs.js",

@@ -22,4 +22,4 @@ /*

import Debug from 'debug'
const debug = Debug('vuedl:dialog')
// import Debug from 'debug'
// const debug = Debug('vuedl:dialog')

@@ -40,3 +40,3 @@ let seed = 1

this.container = findContainer(container)
debug('created')
// debug('created')
}

@@ -46,3 +46,3 @@

if (Vue.prototype.$isServer) return
debug('before show', { params, options })
// debug('before show', { params, options })

@@ -66,4 +66,5 @@ // create layout

if (this.hasAsyncPreload) {
let res = await ensureAsyncDatas(DialogCtor, { ...this.context, params })
debug('async datas', res)
// let res =
await ensureAsyncDatas(DialogCtor, { ...this.context, params })
// debug('async datas', res)
}

@@ -104,3 +105,3 @@

remove () {
debug('remove')
// debug('remove')
this.onDestroyed && this.onDestroyed(this)

@@ -119,3 +120,3 @@ // this.element.parentNode.removeChild(this.element)

}
debug('processResultPromises', result)
// debug('processResultPromises', result)
this._resolvers.forEach(resolver => resolver(result))

@@ -126,3 +127,3 @@ this._resolvers = []

onReturn (result) {
debug('onReturn', result)
// debug('onReturn', result)
this._processResultPromises(result)

@@ -129,0 +130,0 @@ this.close()

@@ -11,7 +11,14 @@ /*

import DialogManager from './manager'
import DialogLayout from './components/DialogLayout.vue'
import NotificationLayout from './components/NotificationLayout.vue'
import DialogOverlay from './components/DialogOverlay.vue'
import Confirm from './components/Confirm.vue'
// import DialogLayout from './components/DialogLayout.vue'
// import NotificationLayout from './components/NotificationLayout.vue'
// import DialogOverlay from './components/DialogOverlay.vue'
// import Confirm from './components/Confirm.vue'
// import Actionable from './mixins/actionable'
// import Activable from './mixins/activable'
// import Confirmable from './mixins/confirmable'
// import Notifiable from './mixins/notifiable'
// import Recordable from './mixins/recordable'
// import Returnable from './mixins/returnable'
const Plugin = {

@@ -22,40 +29,43 @@ install (Vue, options = {}) {

// Object.defineProperty(Vue.prototype, property, {
// get () {
// return manager
Object.defineProperty(Vue.prototype, property, {
get () {
return manager
}
})
// Vue.prototype[property] = manager
// manager.layout('default', DialogLayout)
// manager.layout('notification', NotificationLayout)
// manager.overlay('default', DialogOverlay)
// manager.component('confirm', Confirm, {
// waitForResult: true,
// actions: {
// 'false': 'Cancel',
// 'true': 'OK'
// }
// })
Vue.prototype[property] = manager
manager.layout('default', DialogLayout)
manager.layout('notification', NotificationLayout)
manager.overlay('default', DialogOverlay)
// manager.component('warning', Confirm, {
// type: 'warning',
// waitForResult: true,
// actions: {
// 'false': 'Cancel',
// 'true': 'OK'
// }
// })
manager.component('confirm', Confirm, {
waitForResult: true,
actions: {
'false': 'Cancel',
'true': 'OK'
}
})
manager.component('warning', Confirm, {
type: 'warning',
waitForResult: true,
actions: {
'false': 'Cancel',
'true': 'OK'
}
})
manager.component('error', Confirm, {
type: 'error',
waitForResult: true,
actions: [
'OK'
]
})
// manager.component('error', Confirm, {
// type: 'error',
// waitForResult: true,
// actions: [
// 'OK'
// ]
// })
}
}
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(Plugin)
}
export default Plugin

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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