;(function(){var __vite_style__=document.createElement('style');__vite_style__.innerHTML="._colProtocol_wgzww_1{font-size:.32rem;padding:.4rem .37333rem;color:#999}._colProtocol_wgzww_1 ._protocolText_wgzww_6{color:var(--van-primary);line-height:.4rem}._colProtocol_wgzww_1 ._boxStyle_wgzww_10{background:transparent!important;width:.4rem;height:.4rem;border:transparent!important}._colProtocol_wgzww_1 .van-checkbox{display:inline-block;align-items:inherit;overflow:inherit}._colProtocol_wgzww_1 .van-checkbox__icon{height:.4rem;line-height:.4rem;display:inline-block;vertical-align:middle}._colProtocol_wgzww_1 .van-checkbox__label{line-height:.4rem}\n";document.head.appendChild(__vite_style__);System.register(['./vendor-legacy.ef66db0e.js','./index-legacy.f25f109a13.js','./index-legacy.f25f109a14.js','./icon_checkbox_default-legacy.e33240bc.js','./index-legacy.37fa206e.js'],function(exports){'use strict';var defineComponent,createVNode,Checkbox,createTextVNode,Icon,Popup,activeButtonIcon,inactiveButtonIcon,ColHeader;return{setters:[function(module){defineComponent=module.d;createVNode=module.a;Checkbox=module.a1;createTextVNode=module.b;Icon=module.I;Popup=module.P;},function(){},function(){},function(module){activeButtonIcon=module.a;inactiveButtonIcon=module.i;},function(module){ColHeader=module.C;}],execute:function execute(){var colProtocol="_colProtocol_wgzww_1";var protocolText="_protocolText_wgzww_6";var boxStyle="_boxStyle_wgzww_10";var styles={colProtocol:colProtocol,protocolText:protocolText,boxStyle:boxStyle};var ColProtocol=exports('C',defineComponent({name:'protocol',props:{showHeader:{type:Boolean,default:false},modelValue:{type:Boolean,default:false}},data:function data(){return{checked:false,popupStatus:false,protocolHTML:'',protocolPopup:null};},mounted:function mounted(){this.checked=this.modelValue;window.addEventListener('hashchange',this.onHash,false);},unmounted:function unmounted(){window.removeEventListener('hashchange',this.onHash,false);},watch:{checked:function checked(val){this.$emit('update:modelValue',val);}},methods:{onHash:function onHash(){this.popupStatus=false;},onPopupClose:function onPopupClose(){// 判断是否有协议内容 // if (!this.protocolHTML) { // return // } this.popupStatus=!this.popupStatus;// 打开弹窗 if(this.popupStatus){var route=this.$route;var times=0;for(var i in route.query){times+=1;}var origin=window.location.href;var url=times>0?'&pto='+ +new Date():'?pto='+ +new Date();history.pushState('','',"".concat(origin).concat(url));}else{window.history.go(-1);}if(this.protocolPopup){this.protocolPopup.scrollTop=0;}}},render:function render(){var _this=this;return createVNode("div",{"class":styles.colProtocol},[createVNode(Checkbox,{"modelValue":this.checked,"onUpdate:modelValue":function onUpdateModelValue($event){return _this.checked=$event;}},{default:function _default(){return[createTextVNode("\u6211\u5DF2\u9605\u8BFB\u5E76\u540C\u610F")];},icon:function icon(props){return createVNode(Icon,{"class":styles.boxStyle,"name":props.checked?activeButtonIcon:inactiveButtonIcon,"size":"15"},null);}}),createVNode("span",{"onClick":this.onPopupClose,"class":styles.protocolText},[createTextVNode("\u300A\u9177\u4E50\u79C0\u5E73\u53F0\u670D\u52A1\u534F\u8BAE\u300B")]),createVNode(Popup,{"ref":this.protocolPopup,"show":this.popupStatus,"position":"bottom","style":{height:'100%'}},{default:function _default(){return[_this.showHeader&&createVNode(ColHeader,{"title":"酷乐秀平台服务协议"},null),createVNode("div",{"class":styles.protocolContent},[createVNode("div",{"class":styles.protocolTitle},[createTextVNode("\u9177\u4E50\u79C0\u5E73\u53F0\u670D\u52A1\u534F\u8BAE")]),createVNode("div",{"class":styles.protocolContent},[createTextVNode("\u5446\u5934\u5446\u8111\u7684\u534F\u8BAE\u5185\u5BB9")])])];}})]);}}));}};});})();