System.register(["./index-legacy.b2528a15.js","./index-legacy.c610561c.js"],(function(t){"use strict";var e,o,s,i;return{setters:[function(t){e=t.d,o=t.i,s=t.aT},function(t){i=t.q}],execute:function(){t("C",e({name:"col-popup",props:{height:{type:String,default:"100%"},destroy:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1},position:{type:String,default:"bottom"},zIndex:{type:Number,default:2018}},data:function(){return{popupShow:!1,isDestroy:!1}},watch:{modelValue:function(t){this.hashState()}},mounted:function(){this.destroy&&(this.isDestroy=!1),window.addEventListener("hashchange",this.onHash,!1)},unmounted:function(){window.removeEventListener("hashchange",this.onHash,!1)},methods:{onHash:function(){this.$emit("update:modelValue",!1),this.isDestroy=!1},onPopupClose:function(t){this.$emit("update:modelValue",t),this.hashState()},hashState:function(){if(this.modelValue){this.isDestroy=!1;var t=window.location.hash.slice(1).split("?"),e=i.parse(t[1]),o=0;for(var s in e)o++;var n=window.location.href,a=o>0?"&cPop="+ +new Date:"?cPop="+ +new Date;history.pushState("","","".concat(n).concat(a))}else{var h=window.location.hash.slice(1).split("?");i.parse(h[1]).cPop&&window.history.go(-1)}this.$refs.protocolPopup&&(this.$refs.protocolPopup.scrollTop=0)}},render:function(){var t=this;return o(s,{ref:"protocolPopup",show:this.modelValue,transitionAppear:!0,position:this.position,style:{height:this.height},zIndex:this.zIndex,onClosed:function(){t.destroy&&(t.isDestroy=!0)}},{default:function(){return[t.$slots.default&&!t.isDestroy&&t.$slots.default()]}})}}))}}}));