;(function(){System.register(['./vendor-legacy.031e1374.js','./index-legacy.c75fe8a2.js'],function(exports){'use strict';var defineComponent,createVNode,Popup,qs;return{setters:[function(module){defineComponent=module.d;createVNode=module.a;Popup=module.P;},function(module){qs=module.q;}],execute:function execute(){var ColPopup=exports('C',defineComponent({name:'col-popup',props:{height:{type:String,default:'100%'},destroy:{type:Boolean,default:false},modelValue:{type:Boolean,default:false},position:{type:String,default:'bottom'}},data:function data(){return{popupShow:false,isDestroy:false};},watch:{modelValue:function modelValue(val){this.hashState();}},mounted:function mounted(){this.destroy&&(this.isDestroy=false);window.addEventListener('hashchange',this.onHash,false);},unmounted:function unmounted(){window.removeEventListener('hashchange',this.onHash,false);},methods:{onHash:function onHash(){this.$emit('update:modelValue',false);this.isDestroy=false;},onPopupClose:function onPopupClose(val){this.$emit('update:modelValue',val);this.hashState();},hashState:function hashState(){// 打开弹窗
if(this.modelValue){this.isDestroy=false;var splitUrl=window.location.hash.slice(1).split('?');var query=qs.parse(splitUrl[1]);var times=0;for(var key in query){times++;}var origin=window.location.href;var url=times>0?'&cPop='+ +new Date():'?cPop='+ +new Date();history.pushState('','',"".concat(origin).concat(url));}else{var _splitUrl=window.location.hash.slice(1).split('?');var _query=qs.parse(_splitUrl[1]);if(_query.cPop){window.history.go(-1);}}if(this.$refs.protocolPopup){this.$refs.protocolPopup.scrollTop=0;}}},render:function render(){var _this=this;return createVNode(Popup,{"ref":"protocolPopup","show":this.modelValue,"transitionAppear":true,"position":this.position,"style":{height:this.height},"onClosed":function onClosed(){if(_this.destroy){_this.isDestroy=true;}}},{default:function _default(){return[_this.$slots.default&&!_this.isDestroy&&_this.$slots.default()];}});}}));}};});})();
