import{d as u,r as c,b as o,c as a,a as h,T as m,F as r,V as g,A as w,p as y,s as v,e as l,f as n,g as s,h as A,i as C,j as d}from"./index.27735e87.js";function H(){import("data:text/javascript,")}var S=u({name:"App",setup(){const t=c({showToast:!1,showToastCenter:!1});return o.on("toastShow",e=>{e==="center"&&(t.showToastCenter=!0),t.showToast=!0}),o.on("toastClose",e=>{t.showToast=!1,e==="center"&&setTimeout(()=>{t.showToastCenter=!1},300)}),o.on("toastStatus",()=>t.showToast),()=>a(r,null,[a(h("router-view"),null,null),a("div",{class:["appRootToast",t.showToastCenter?"appRootToastCenter":""]},[a(m,{show:t.showToast,"onUpdate:show":e=>t.showToast=e,overlay:!0,duration:3e4},{message:()=>a(r,null,[a(g,{class:"toastAnimate",animationData:w},null)])})])])}});y({api:"getToken"}).then(t=>{console.log(t,"res");const e=t.content;e!=null&&e.accessToken&&v(e.tokenType+" "+e.accessToken)});l({api:"setBarStatus",content:{status:0}});l({api:"getNavHeight"},t=>{const{content:e}=t,f=e.dpi||2;if(e.navHeight){const i=e.navHeight/f;console.log(i,"navHeight"),s.navBarHeight=i}});const p=window.paymentType;n().isTeacher||p==="TEACHER"?s.platformType="TEACHER":n().isStudent||p==="STUDENT"?s.platformType="STUDENT":n().isSchool||p==="SCHOOL"?s.platformType="SCHOOL":s.platformType="STUDENT";s.platformType==="TEACHER"?s.platformApi="/api-teacher":s.platformType==="SCHOOL"?s.platformApi="/api-school":s.platformType==="STUDENT"?s.platformApi="/api-student":s.platformApi="/api-student";const T=A(S).use(C);T.use(d);T.mount("#app");export{H as __vite_legacy_guard};
