!function(){function e(e,t,o,n,r,c,a){try{var i=e[c](a),s=i.value}catch(l){return void o(l)}i.done?t(s):Promise.resolve(s).then(n,r)}function t(t){return function(){var o=this,n=arguments;return new Promise((function(r,c){var a=t.apply(o,n);function i(t){e(a,r,c,i,s,"next",t)}function s(t){e(a,r,c,i,s,"throw",t)}i(void 0)}))}}var o=document.createElement("style");o.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(o),System.register(["./index-legacy.9fbf5cc3.js","./index-legacy.2f9334b6.js","./index-legacy.ec44c18a.js","./icon_checkbox_default-legacy.e33240bc.js","./index-legacy.a25aafdb.js"],(function(e){"use strict";var o,n,r,c,a,i,s,l,p,u,h,d;return{setters:[function(e){o=e.d,n=e.g,r=e.w,c=e.j,a=e.B,i=e.O,s=e.F,l=e.aT},function(e){p=e.C},function(){},function(e){u=e.a,h=e.i},function(e){d=e.C}],execute:function(){var w={colProtocol:"_colProtocol_wgzww_1",protocolText:"_protocolText_wgzww_6",boxStyle:"_boxStyle_wgzww_10"},g={BUY_ORDER:"《酷乐秀平台服务协议》",REGISTER:"《酷乐秀平台注册协议》"};e("C",o({name:"protocol",props:{showHeader:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1},prototcolType:{type:String,default:"BUY_ORDER"}},data:function(){return{exists:!0,checked:this.modelValue,popupStatus:!1,protocolHTML:"",protocolPopup:null,baseUrl:"STUDENT"===n.platformType?"/api-student":"/api-teacher"}},mounted:function(){var e=this;return t(regeneratorRuntime.mark((function t(){var o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r.get(e.baseUrl+"/sysUserContractRecord/checkContractSign",{params:{contractType:e.prototcolType}});case 3:o=t.sent,e.exists=o.data,e.checked=e.checked||e.exists,e.$emit("update:modelValue",e.checked||e.exists),t.next=11;break;case 9:t.prev=9,t.t0=t.catch(0);case 11:e.checked=e.modelValue,window.addEventListener("hashchange",e.onHash,!1);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))()},unmounted:function(){window.removeEventListener("hashchange",this.onHash,!1)},watch:{checked:function(e){this.$emit("update:modelValue",e)}},methods:{getContractDetail:function(){var e=this;return t(regeneratorRuntime.mark((function t(){var o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,console.log("getContractDetail"),e.protocolHTML){t.next=8;break}return t.next=5,r.get(e.baseUrl+"/sysUserContractRecord/queryContract",{params:{contractType:e.prototcolType}});case 5:o=t.sent,e.protocolHTML=o.data,console.log(o);case 8:e.onPopupClose(),t.next=13;break;case 11:t.prev=11,t.t0=t.catch(0);case 13:case"end":return t.stop()}}),t,null,[[0,11]])})))()},onHash:function(){this.popupStatus=!1},onPopupClose:function(){if(this.popupStatus=!this.popupStatus,this.popupStatus){var e=this.$route,t=0;for(var o in e.query)t+=1;var n=window.location.href,r=t>0?"&pto="+ +new Date:"?pto="+ +new Date;history.pushState("","","".concat(n).concat(r))}else window.history.go(-1);this.protocolPopup&&(this.protocolPopup.scrollTop=0)}},render:function(){var e=this;return c("div",{class:w.colProtocol},[!this.exists&&c(p,{modelValue:this.checked,"onUpdate:modelValue":function(t){return e.checked=t}},{default:function(){return[a("我已阅读并同意")]},icon:function(e){return c(i,{class:w.boxStyle,name:e.checked?"tenant"===n.projectType?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABXpJREFUWEe9mX9oVWUYx7/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91AX4kJCTgDovJAR6znw713AR+8FlRCXtP7nQOpF9TGldFwH5504OJ8MNeFpx1A36Bj5G6uBZY9ZIY8JZV0d5w3VgJrngiH9fw1wIPzUyfWZqTCNqAWYi8XtUIoXwA0rwEevj8MeexbQEI2rIiG2yuV8/zPM+e8gHaIlSLRXV3bviTkO7VmyKs3wwrLR7lwDdg75MCZtse4HpJxWfC23gFk6dWCfXChhFwLPKIpaerXJdy+LwzKqY4R0+wypM0c7wBbu4vywYoFQMu6eMjvx3JwJpWi+kH1WtuoA1tdjA/qxi2VbKszQ0q4j4fNOWd7Zmw/mBszSG51oWZBT9yYflDmZLuEfCAX4IsS7lREzimFFzX0e/DgcXxNS5V2Cx3hJI44JVC3pIoyYOMqoKYSkModPad0K1pzqs7F+X3QabfsjWF7fxVm0mMgRDescdOcN2B5U2BBQ1PETOJsucGG1Yb0W/4IHyxk0dLn4mBe6i2/DagOTX4S38m52E8n89DkzCb62DkH/WDk6GCciwFK1IuRzvDY6ZUhBwZ3Q2ufNxf1So0YD0w+CO4Wp2MGd1tF/+iD6gK7y22fiws8+nDH0ApYtwZA8vDojszFhR8e+aHWj9/yHgyVOheXcPym7vu89VA9srQfxEvCk9//mYvlASaaxPC20g4wg5D5joC9QijgCESaMPFBzGTm5gg4AGo8RFd2hPjebhyMHmRvwyG63uoFXkNkaTmYa8B4MPAagvl3+zUE4QdYmRQGp0p6DfEfS3E2u50HgEwAAAAASUVORK5CYII=":u:h,size:"15"},null)}}),this.exists&&c(s,null,[a("查看")]),c("span",{onClick:this.getContractDetail,class:w.protocolText},[g[this.prototcolType]]),c(l,{ref:this.protocolPopup,show:this.popupStatus,position:"bottom",style:{height:"100%"}},{default:function(){return[e.showHeader&&c(d,{title:"酷乐秀平台服务协议"},null),e.popupStatus&&c("div",{class:w.protocolContent,id:"mProtocol"},[c("div",{class:w.protocolContent,innerHTML:e.protocolHTML},null)])]}})])}}))}}}))}();