!function(){var e=document.createElement("style");e.innerHTML='._wxPopupDialog_1sfd3_1{overflow:initial}._wxPopupDialog_1sfd3_1:before{position:absolute;content:" ";top:-1.94667rem;left:50%;margin-left:-2.29333rem;display:inline-block;background:url(./assets/wx-no-top.562db7f2.png) no-repeat top center;background-size:contain;width:4.58667rem;height:4.10667rem}._popupContainer_1sfd3_16{background:url(./assets/wx-no-bg.f12a4a6d.png) no-repeat top center;background-size:cover;border-radius:.53333rem;overflow:hidden}._popupContainer_1sfd3_16 ._title1_1sfd3_22{padding-top:1.52rem;text-align:center;font-size:.48rem;font-weight:500;color:#3b2300}._popupContainer_1sfd3_16 ._popupTips_1sfd3_29{padding-top:.32rem;padding-bottom:1.25333rem;text-align:center;font-size:.4rem;color:#777;line-height:.56rem}\n',document.head.appendChild(e),System.register(["./index-legacy.eb062188.js","./signin-tips-legacy.559b687e.js","./index-legacy.219fe128.js","./index-legacy.148f784c.js","./index-legacy.3a3e070a.js","./index-legacy.38b799d5.js","./index-legacy.918b8c74.js","./Picker-legacy.95f03705.js","./index-legacy.ac7c51db.js","./use-tab-status-legacy.91417466.js","./index-legacy.fab451f1.js","./index-legacy.10d8486a.js"],(function(e){"use strict";var t,n,a,s,r,l,o,i,u,d,c,p,f,g,h,w,v,m,b,y,x,_,P,k,C,I;return{setters:[function(e){t=e.d,n=e.R,a=e.$,s=e.f,r=e.c,l=e.P,o=e.F,i=e.ag,u=e.ah,d=e.r,c=e.o,p=e.m,f=e.bh,g=e.bi,h=e.b7,w=e.q,v=e.B,m=e.bj,b=e.bk},function(e){y=e.s,x=e.a},function(e){_=e.u,P=e.b},function(e){k=e.C},function(e){C=e.F},function(e){I=e.P},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var G="_wxPopupDialog_1sfd3_1",L="_popupContainer_1sfd3_16",B="_title1_1sfd3_22",S="_popupTips_1sfd3_29",j=t({name:"o-wx-tip",props:{show:{type:Boolean,default:!0},title:{type:String,default:"温馨提示"},message:{type:String,default:"请使用微信打开"}},setup(e){const t=n(!1);return a((()=>{s().weixin||!e.show||(t.value=!0)})),()=>r(o,null,[r(l,{show:t.value,"onUpdate:show":e=>t.value=e,round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:G},{default:()=>[r("div",{class:L},[r("p",{class:B},[e.title]),r("p",{class:S},[e.message])])]})])}});const R=[];for(let e=1;e<=40;e++)R.push({text:e+"班",value:e});e("default",t({name:"pre-register",setup(){const e=_(1e3,{controls:!0});e.pause();const t=i(),n=u(),o=d({loading:!0,orchestraId:n.query.id,code:null,currentGradeList:[{text:"一年级",value:1},{text:"二年级",value:2},{text:"三年级",value:3},{text:"四年级",value:4},{text:"五年级",value:5}],showPicker:!1,classPicker:!1,nameReg:/^[\u4E00-\u9FA5]+$/,openId:"",id:null,videoBrowseData:null,videoBrowsePoint:null,username:"",currentGrade:"",currentClass:"",intervalFnRef:null,applyStatus:!1,isPageHide:!1}),G=e=>e?o.nameReg.test(e)?e.length<2||e.length>15?"学员姓名必须为2~15个字":void 0:"学员姓名必须为中文":"请填写学生真实姓名",L=async()=>{try{var n;if(o.applyStatus)return void c("家长会调查问卷已结束");if(G(o.username))return void c(G(o.username));if(!o.currentGrade)return void c("请选择年级");if(!o.currentClass)return void c("请选择班级");null===(n=o.intervalFnRef)||void 0===n||n.pause(),e.pause(),await p.post("/api-student/open/studentBrowseRecord/updateStat",{data:{id:o.id,pageBrowseTime:e.counter.value,username:o.username,currentGrade:o.currentGrade,currentClass:o.currentClass?Number(o.currentClass):null}}),t.push({path:"/pre-register-video",query:{saveId:o.id,id:o.orchestraId,openId:o.openId}})}catch{var a;null===(a=o.intervalFnRef)||void 0===a||a.resume(),e.resume()}},B=(e,t)=>{let n="";return t.forEach((t=>{t.value==e&&(n=t.text)})),n};a((async()=>{try{o.orchestraId||c("信息获取失败,请联系老师");const{data:t}=await p.get("/api-student/open/orchestra/detail/"+o.orchestraId);if("sixYearSystem"===(t.schoolSystem||"sixYearSystem")?(o.currentGradeList.push({text:"六年级",value:6}),o.currentGradeList.push({text:"初一",value:7}),o.currentGradeList.push({text:"初二",value:8}),o.currentGradeList.push({text:"初三",value:9})):(o.currentGradeList.push({text:"初一",value:6}),o.currentGradeList.push({text:"初二",value:7}),o.currentGradeList.push({text:"初三",value:8}),o.currentGradeList.push({text:"初四",value:9})),!o.code)return;if("PRE_REGISTER"!==t.status)return c("家长会调查问卷已结束"),void(o.applyStatus=!0);const n=(await p.post("/api-student/open/studentBrowseRecord/add",{data:{orchestraId:o.orchestraId,code:o.code,openId:o.openId}})).data;o.currentClass=n.currentClass,o.currentGrade=n.currentGrade,o.openId=n.openId,o.username=n.username,o.videoBrowseData=n.videoBrowseData,o.videoBrowsePoint=n.videoBrowsePoint,o.id=n.id,sessionStorage.setItem("active-open-id",n.openId),e.resume(),o.intervalFnRef=P((()=>{e.counter.value=0,e.resume(),(async(e=10)=>{try{await p.post("/api-student/open/studentBrowseRecord/updateStat",{data:{id:o.id,pageBrowseTime:e}})}catch{}})()}),1e4)}catch{}}));if(s().weixin){const e=sessionStorage.getItem("active-open-id");o.openId=e;const t=f();if(!t){return(async e=>{try{const{data:t}=await p.get("/api-school/open/paramConfig/wechatAppId");t&&(m(),b(t,e))}catch{}})(window.location.origin+window.location.pathname+"#"+n.path+"?"+g.stringify({...n.query})),""}o.code=t}const S=()=>{console.log(o.isPageHide,"showInfo"),o.isPageHide&&window.location.reload()};window.addEventListener("pageshow",S);const E=()=>{console.log(o.isPageHide,"showInfo"),o.isPageHide=!0};return window.addEventListener("pagehide",E),h((()=>{window.removeEventListener("pageshow",S),window.removeEventListener("pagehide",E)})),()=>r("div",{class:y["per-register-active"]},[r("div",{class:y.flowPath},[r("i",{class:y.flowPathTitle},null),r("div",{class:y.flowPathContent},[w("一、请所有家长进行"),r("span",null,[w("签到")]),r("br",null,null),w("二、"),r("span",null,[w("观看")]),w("管乐团家长会议"),r("br",null,null),w("1、学校领导讲话(5分钟)"),r("br",null,null),w("2、基金会老师介绍乐团事项(20分钟)"),r("br",null,null),r("p",{style:{"padding-left":"1em"}},[w("*乐团组建背景及政策"),r("br",null,null),w("*乐团发展规划与乐器知识讲解"),r("br",null,null),w("*学校/基金会/家长各方职责与投入"),r("br",null,null),w("*入团流程讲解")]),w("三、会后,家长可点击"),r("span",null,[w("“乐团报名”")]),w("或扫码进行正式报名")])]),r("div",{class:y.signin},[r("div",{class:y.tips},[r("img",{src:x,class:y.signinTips},null),r("p",null,[w("请先进行"),r("span",null,[w("签到")]),w(",再观看"),r("span",null,[w("管乐团家长会视频")])])]),r(k,{class:y.cellGroup,border:!1},{default:()=>[r(C,{label:"学生姓名",labelAlign:"top",placeholder:"请输入学生姓名",autocomplete:"off",modelValue:o.username,"onUpdate:modelValue":e=>o.username=e},null),r(C,{label:"年级",labelAlign:"top",placeholder:"请选择年级",isLink:!0,readonly:!0,modelValue:B(o.currentGrade,o.currentGradeList),clickable:!1,onClick:()=>o.showPicker=!0},null),r(C,{label:"班级",labelAlign:"top",placeholder:"请选择班级",isLink:!0,readonly:!0,modelValue:B(o.currentClass,R),clickable:!1,onClick:()=>o.classPicker=!0},null),r(v,{class:y.submitBtn,onClick:L},null)]})]),r(j,null,null),r(l,{show:o.showPicker,"onUpdate:show":e=>o.showPicker=e,position:"bottom",round:!0},{default:()=>[r(I,{columns:o.currentGradeList,onCancel:()=>o.showPicker=!1,onConfirm:({selectedValues:e})=>{o.currentGrade=e[0],o.showPicker=!1}},null)]}),r(l,{show:o.classPicker,"onUpdate:show":e=>o.classPicker=e,position:"bottom",round:!0},{default:()=>[r(I,{columns:R,onCancel:()=>o.classPicker=!1,onConfirm:({selectedValues:e})=>{o.currentClass=e[0],o.classPicker=!1}},null)]})])}}))}}}))}();