@styzy/vue-popup
Version:
A Popup Plugins For Vue.js
2 lines • 19.7 kB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-popup"]=e():t["vue-popup"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(a){if(e[a])return e[a].exports;var i=e[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(a,i,function(e){return t[e]}.bind(null,i));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"1e11":function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,"@-webkit-keyframes fadeIn-data-v-27613fa2{0%{opacity:0}to{opacity:1}}@keyframes fadeIn-data-v-27613fa2{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeOut-data-v-27613fa2{0%{opacity:1}to{opacity:0}}@keyframes fadeOut-data-v-27613fa2{0%{opacity:1}to{opacity:0}}@-webkit-keyframes scaleIn-data-v-27613fa2{0%{transform:scale(1)}1%{transform:scale(.5)}to{transform:scale(1)}}@keyframes scaleIn-data-v-27613fa2{0%{transform:scale(1)}1%{transform:scale(.5)}to{transform:scale(1)}}@-webkit-keyframes scaleOut-data-v-27613fa2{0%{transform:scale(1)}to{transform:scale(.5)}}@keyframes scaleOut-data-v-27613fa2{0%{transform:scale(1)}to{transform:scale(.5)}}@-webkit-keyframes flyIn-data-v-27613fa2{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes flyIn-data-v-27613fa2{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@-webkit-keyframes flyOut-data-v-27613fa2{0%{transform:translateY(0)}to{transform:translateY(-100%)}}@keyframes flyOut-data-v-27613fa2{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.popup-view[data-v-27613fa2]{position:fixed;top:0;right:0;bottom:0;left:0;margin:auto;-webkit-animation-timing-function:linear;animation-timing-function:linear}.popup-view.animation-fade.v-enter-active[data-v-27613fa2]{-webkit-animation-name:fadeIn-data-v-27613fa2;animation-name:fadeIn-data-v-27613fa2}.popup-view.animation-fade.v-leave-active[data-v-27613fa2]{-webkit-animation-name:fadeOut-data-v-27613fa2;animation-name:fadeOut-data-v-27613fa2}.popup-view.animation-scale.v-enter-active[data-v-27613fa2]{-webkit-animation-name:scaleIn-data-v-27613fa2;animation-name:scaleIn-data-v-27613fa2}.popup-view.animation-scale.v-leave-active[data-v-27613fa2]{-webkit-animation-name:scaleOut-data-v-27613fa2;animation-name:scaleOut-data-v-27613fa2}.popup-view.animation-fly.v-enter-active[data-v-27613fa2]{-webkit-animation-name:flyIn-data-v-27613fa2;animation-name:flyIn-data-v-27613fa2}.popup-view.animation-fly.v-leave-active[data-v-27613fa2]{-webkit-animation-name:flyOut-data-v-27613fa2;animation-name:flyOut-data-v-27613fa2}.popup-view>*[data-v-27613fa2]{display:inline-block}",""]),t.exports=e},"22f3":function(t,e,n){"use strict";n("5f1e")},"24fb":function(t,e,n){"use strict";function a(t,e){var n=t[1]||"",a=t[3];if(!a)return n;if(e&&"function"===typeof btoa){var o=i(a),r=a.sources.map((function(t){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(t," */")}));return[n].concat(r).concat([o]).join("\n")}return[n].join("\n")}function i(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=a(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,a){"string"===typeof t&&(t=[[null,t,""]]);var i={};if(a)for(var o=0;o<this.length;o++){var r=this[o][0];null!=r&&(i[r]=!0)}for(var s=0;s<t.length;s++){var u=[].concat(t[s]);a&&i[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},"499e":function(t,e,n){"use strict";function a(t,e){for(var n=[],a={},i=0;i<e.length;i++){var o=e[i],r=o[0],s=o[1],u=o[2],d=o[3],c={id:t+":"+i,css:s,media:u,sourceMap:d};a[r]?a[r].parts.push(c):n.push(a[r]={id:r,parts:[c]})}return n}n.r(e),n.d(e,"default",(function(){return m}));var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},r=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,u=0,d=!1,c=function(){},p=null,l="data-vue-ssr-id",f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(t,e,n,i){d=n,p=i||{};var r=a(t,e);return h(r),function(e){for(var n=[],i=0;i<r.length;i++){var s=r[i],u=o[s.id];u.refs--,n.push(u)}e?(r=a(t,e),h(r)):r=[];for(i=0;i<n.length;i++){u=n[i];if(0===u.refs){for(var d=0;d<u.parts.length;d++)u.parts[d]();delete o[u.id]}}}}function h(t){for(var e=0;e<t.length;e++){var n=t[e],a=o[n.id];if(a){a.refs++;for(var i=0;i<a.parts.length;i++)a.parts[i](n.parts[i]);for(;i<n.parts.length;i++)a.parts.push(y(n.parts[i]));a.parts.length>n.parts.length&&(a.parts.length=n.parts.length)}else{var r=[];for(i=0;i<n.parts.length;i++)r.push(y(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:r}}}}function v(){var t=document.createElement("style");return t.type="text/css",r.appendChild(t),t}function y(t){var e,n,a=document.querySelector("style["+l+'~="'+t.id+'"]');if(a){if(d)return c;a.parentNode.removeChild(a)}if(f){var i=u++;a=s||(s=v()),e=b.bind(null,a,i,!1),n=b.bind(null,a,i,!0)}else a=v(),e=w.bind(null,a),n=function(){a.parentNode.removeChild(a)};return e(t),function(a){if(a){if(a.css===t.css&&a.media===t.media&&a.sourceMap===t.sourceMap)return;e(t=a)}else n()}}var g=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function b(t,e,n,a){var i=n?"":a.css;if(t.styleSheet)t.styleSheet.cssText=g(e,i);else{var o=document.createTextNode(i),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(o,r[e]):t.appendChild(o)}}function w(t,e){var n=e.css,a=e.media,i=e.sourceMap;if(a&&t.setAttribute("media",a),p.ssrId&&t.setAttribute(l,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"5f1e":function(t,e,n){var a=n("1e11");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("499e").default;i("19a203c8",a,!0,{sourceMap:!1,shadowMode:!1})},8875:function(t,e,n){var a,i,o;(function(n,r){i=[],a=r,o="function"===typeof a?a.apply(e,i):a,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var n,a,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,r=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(f.stack)||r.exec(f.stack),u=s&&s[1]||!1,d=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),p=document.getElementsByTagName("script");u===c&&(n=document.documentElement.outerHTML,a=new RegExp("(?:[^\\n]+?\\n){0,"+(d-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(a,"$1").trim());for(var l=0;l<p.length;l++){if("interactive"===p[l].readyState)return p[l];if(p[l].src===u)return p[l];if(u===c&&p[l].innerHTML&&p[l].innerHTML.trim()===i)return p[l]}return null}}return t}))},9224:function(t){t.exports=JSON.parse('{"name":"@styzy/vue-popup","version":"1.1.0","description":"A Popup Plugins For Vue.js","keywords":["vue","popup","plugin"],"author":{"name":"STYZY","email":"styzyreal@126.com","url":"https://our.styzy.cn"},"bugs":{"url":"https://github.com/styzy/vue-popup/issues","email":"styzyreal@126.com"},"repository":{"type":"git","url":"git@github.com:styzy/vue-popup.git"},"main":"lib/vue-popup.common.js","private":false,"license":"MIT","scripts":{"dev":"vue-cli-service serve --open","lib":"vue-cli-service build --target lib --name vue-popup --dest lib src/index.js"},"dependencies":{"core-js":"^3.6.5","vue":"^2.6.11","vue-router":"^3.2.0"},"devDependencies":{"@prettier/plugin-pug":"^1.19.2","@vue/cli-plugin-babel":"~4.5.0","@vue/cli-plugin-eslint":"~4.5.0","@vue/cli-service":"~4.5.0","@vue/eslint-config-prettier":"^6.0.0","babel-eslint":"^10.1.0","eslint":"^6.8.0","eslint-plugin-prettier":"^3.3.1","eslint-plugin-vue":"^6.2.2","prettier":"^2.2.1","stylus":"^0.54.7","stylus-loader":"^3.0.2","vue-cli-plugin-pug":"~2.0.0","vue-template-compiler":"^2.6.14"}}')},b61c:function(t,e,n){var a=n("e247");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("499e").default;i("5232353a",a,!0,{sourceMap:!1,shadowMode:!1})},d7b7:function(t,e,n){"use strict";n("b61c")},e247:function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,"@-webkit-keyframes fadeIn-data-v-7d86fed0{0%{opacity:0}to{opacity:1}}@keyframes fadeIn-data-v-7d86fed0{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeOut-data-v-7d86fed0{0%{opacity:1}to{opacity:0}}@keyframes fadeOut-data-v-7d86fed0{0%{opacity:1}to{opacity:0}}@-webkit-keyframes scaleIn-data-v-7d86fed0{0%{transform:scale(1)}1%{transform:scale(.5)}to{transform:scale(1)}}@keyframes scaleIn-data-v-7d86fed0{0%{transform:scale(1)}1%{transform:scale(.5)}to{transform:scale(1)}}@-webkit-keyframes scaleOut-data-v-7d86fed0{0%{transform:scale(1)}to{transform:scale(.5)}}@keyframes scaleOut-data-v-7d86fed0{0%{transform:scale(1)}to{transform:scale(.5)}}@-webkit-keyframes flyIn-data-v-7d86fed0{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes flyIn-data-v-7d86fed0{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@-webkit-keyframes flyOut-data-v-7d86fed0{0%{transform:translateY(0)}to{transform:translateY(-100%)}}@keyframes flyOut-data-v-7d86fed0{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.popup-mask[data-v-7d86fed0]{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.3);-webkit-animation-timing-function:linear;animation-timing-function:linear}.popup-mask.animation-fade.v-enter-active[data-v-7d86fed0]{-webkit-animation-name:fadeIn-data-v-7d86fed0;animation-name:fadeIn-data-v-7d86fed0}.popup-mask.animation-fade.v-leave-active[data-v-7d86fed0]{-webkit-animation-name:fadeOut-data-v-7d86fed0;animation-name:fadeOut-data-v-7d86fed0}.popup-mask.animation-scale.v-enter-active[data-v-7d86fed0]{-webkit-animation-name:scaleIn-data-v-7d86fed0;animation-name:scaleIn-data-v-7d86fed0}.popup-mask.animation-scale.v-leave-active[data-v-7d86fed0]{-webkit-animation-name:scaleOut-data-v-7d86fed0;animation-name:scaleOut-data-v-7d86fed0}.popup-mask.animation-fly.v-enter-active[data-v-7d86fed0]{-webkit-animation-name:flyIn-data-v-7d86fed0;animation-name:flyIn-data-v-7d86fed0}.popup-mask.animation-fly.v-leave-active[data-v-7d86fed0]{-webkit-animation-name:flyOut-data-v-7d86fed0;animation-name:flyOut-data-v-7d86fed0}",""]),t.exports=e},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var a=window.document.currentScript,i=n("8875");a=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.destroyed?t._e():n("div",{staticClass:"popup"},[t.mask?n("PopupMask",t._b({attrs:{isLeave:t.isLeave},on:{close:t.closeHandler}},"PopupMask",t.maskProps,!1)):t._e(),n("PopupView",t._b({attrs:{isLeave:t.isLeave},on:{close:t.closeHandler}},"PopupView",t.viewProps,!1))],1)},s=[],u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",[t.isShow&&!t.isLeave?n("div",{staticClass:"popup-mask",class:t.classObject,style:t.styleObject,on:{click:t.clickHandler}}):t._e()])},d=[];const c={FADE:"fade",SCALE:"scale",FLY:"fly"};var p={name:"PopupMask",inheritAttrs:!1,props:{isLeave:{type:Boolean,default:!1},zIndex:{type:Number},maskClickClose:{type:Boolean},animations:{type:Array},animationDuration:{type:Number}},data(){return{isShow:!1}},computed:{classObject(){return{["animation-"+c.FADE]:this.animations.includes(c.FADE),["animation-"+c.SCALE]:this.animations.includes(c.SCALE)}},styleObject(){return{zIndex:this.zIndex,animationDuration:this.animationDuration/1e3+"s"}}},created(){window.setTimeout(()=>{this.isShow=!0},0)},methods:{clickHandler(){this.maskClickClose&&this.$emit("close")}}},l=p;n("d7b7");function f(t,e,n,a,i,o,r,s){var u,d="function"===typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=n,d._compiled=!0),a&&(d.functional=!0),o&&(d._scopeId="data-v-"+o),r?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=u):i&&(u=s?function(){i.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(d.functional){d._injectStyles=u;var c=d.render;d.render=function(t,e){return u.call(e),c(t,e)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,u):[u]}return{exports:t,options:d}}var m=f(l,u,d,!1,null,"7d86fed0",null),h=m.exports,v=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",[t.isShow&&!t.isLeave?n("div",{staticClass:"popup-view",class:t.classObject,style:t.styleObject},[n(t.component,t._b({key:"popup-view-component-"+t.popupId,ref:"component",tag:"component",on:{close:t.handleComponentClose,"hook:mounted":t.handleComponentMounted,resize:t.handleComponentResize}},"component",t.componentProps,!1))],1):t._e()])},y=[],g={name:"PopupView",props:{popupId:{type:String,default:""},isLeave:{type:Boolean,default:!1},zIndex:{type:Number},animations:{type:Array},animationDuration:{type:Number},component:{default:null},componentProps:{default:()=>({})},width:{type:[Number,String]},maxWidth:{type:[Number,String]},minWidth:{type:[Number,String]},height:{type:[Number,String]},maxHeight:{type:[Number,String]},minHeight:{type:[Number,String]}},data(){return{isShow:!1,contentWidth:0,contentHeight:0,instance:null}},computed:{classObject(){return{["animation-"+c.FADE]:this.animations.includes(c.FADE),["animation-"+c.SCALE]:this.animations.includes(c.SCALE),["animation-"+c.FLY]:this.animations.includes(c.FLY)}},styleObject(){return{zIndex:this.zIndex,animationDuration:this.animationDuration/1e3+"s",width:this.formatSize(this.width)||this.contentWidth+"px",maxWidth:this.formatSize(this.maxWidth)||"auto",minWidth:this.formatSize(this.minWidth)||"auto",height:this.formatSize(this.height)||this.contentHeight+"px",maxHeight:this.formatSize(this.maxHeight)||"auto",minHeight:this.formatSize(this.minHeight)||"auto"}}},created(){window.setTimeout(()=>{this.isShow=!0},0)},methods:{async handleComponentMounted(){this.instance=this.$refs.component,await this.instance.$nextTick(),this.fixSize()},handleComponentClose(...t){this.$emit("close",...t)},handleComponentResize(){this.fixSize()},async fixSize(){await this.$nextTick();const{width:t,height:e}=this.getComponentSize();"number"!==typeof this.width&&(this.contentWidth=t),"number"!==typeof this.height&&(this.contentHeight=e)},getComponentSize(){const t=this.instance.$el,e=window.getComputedStyle(t),n="border-box"===e["boxSizing"];let a=parseFloat(e["width"]),i=parseFloat(e["height"]);return n||(a+=parseFloat(e["paddingLeft"])+parseFloat(e["paddingRight"]),i+=parseFloat(e["paddingTop"])+parseFloat(e["paddingBottom"])),{width:a,height:i}},formatSize(t){return"string"===typeof t?"auto"!==t&&t:"number"===typeof t?t+"px":"auto"}}},b=g,w=(n("22f3"),f(b,v,y,!1,null,"27613fa2",null)),k=w.exports,x={name:"Popup",components:{PopupMask:h,PopupView:k},inheritAttrs:!1,props:{mask:{type:Boolean},animationDuration:{type:Number},maskProps:{type:Object,default:()=>({})},viewProps:{type:Object,default:()=>({})}},data(){return{isLeave:!1,destroyed:!1,destroyPayload:void 0}},mounted(){this.$emit("mounted")},destroyed(){this.$emit("destroyed",this.destroyPayload)},methods:{destroy(){this.closeHandler()},async closeHandler(t){this.destroyPayload=t,this.isLeave=!0,await this.wait(this.animationDuration),this.destroyed=!0,await this.$nextTick(),this.$destroy()},wait(t){return new Promise(e=>{window.setTimeout(e,t)})}}},S=x,_=f(S,r,s,!1,null,null,null),C=_.exports;const O=function(t){return Object.prototype.toString.call(t).match(/\s+(\w+)/)[1]};var P=O;const I=function(t){let e,n=P(t);if("Array"===n)e=[];else{if("Object"!==n)return t;e={}}if("Array"===n){for(let n=0,a=t.length;n<a;n++)e.push(I(t[n]));return e}if("Object"===n){for(const n in t)e[n]=I(t[n]);return e}};var j=I,z=n("9224");const E={};let $=null,L=null;class A{static get version(){return z.version}static get plugins(){return E}static get ANIMATION_TYPES(){return j(c)}static _usePlugin(t,e){this.plugins[t]=e,e(this,$)}static install(t){$=t,t.mixin({created(){L||(L=this.$root)}})}static use(t){if(!t)return;if(!$)throw new Error("Popup should be installed by Vue before install plugins");const{name:e,install:n=(()=>{})}=t;if(this.plugins[e])throw new Error("Popup: exist plugin name: "+e);if("Function"!==P(n))throw new Error("Popup: plugin's prop install must be a function");this._usePlugin(e,n)}get seed(){return this._seed++}get zIndex(){return this._zIndex++}get popups(){return this._popups}get parentVm(){return this._parentVm}get PopupConstructor(){return this._PopupConstructor}constructor({zIndex:t=1e3,parentVm:e}={}){if(!$)throw new Error("Popup should be installed by Vue before new Popup()");this._seed=0,this._zIndex=t,this._popups={},this._parentVm=e,this._PopupConstructor=null}_createPopupConstructor(){const t=this.parentVm||L;this._PopupConstructor=$.extend(Object.assign({},C,{parent:t}))}_create(){const t="styzy-vue-popup-"+this.seed,e={id:t,instance:null};return this.popups[t]=e,e}_destroy(t){if(!this.popups[t.id])return;const{instance:e}=t;e&&e.destroy()}render({zIndex:t=this.zIndex,mask:e=!0,maskClickClose:n=!1,component:a,componentProps:i,maskAnimations:o=[c.FADE],viewAnimations:r=[c.FADE,c.SCALE],animationDuration:s=100,width:u="auto",maxWidth:d="auto",minWidth:p="auto",height:l="auto",maxHeight:f="auto",minHeight:m="auto",mounted:h=(()=>{}),destroyed:v=(()=>{})}={}){this.PopupConstructor||this._createPopupConstructor();const y=document.body.appendChild(document.createElement("div")),g=this._create(),b=new this.PopupConstructor({propsData:{mask:e,animationDuration:s,maskProps:{zIndex:t,maskClickClose:n,animations:o,animationDuration:s},viewProps:{zIndex:t,component:a,componentProps:i,animations:r,animationDuration:s,width:u,maxWidth:d,minWidth:p,height:l,maxHeight:f,minHeight:m}}});return g.instance=b,b.$on("mounted",()=>{h&&h(b)}),b.$on("destroyed",t=>{v&&v(t);const e=b.$el.parentNode;e&&e.removeChild(b.$el),delete this.popups[g.id]}),b.$mount(y),()=>{this._destroy(g)}}}var M=A;e["default"]=M}})["default"]}));
//# sourceMappingURL=vue-popup.umd.min.js.map