import{d as u,r as c,b as o,c as a,a as h,T as m,F as r,V as w,A as g,i as d,p as v,s as y,e as l,f as n,g as s,h as A,j as C,k as S}from"./ResizeObserver.es.da9c2429.js";function E(){import("data:text/javascript,")}var H=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(w,{class:"toastAnimate",animationData:g},null)])})])])}});window.ResizeObserver===void 0&&(window.ResizeObserver=d);v({api:"getToken"}).then(t=>{console.log(t,"res");const e=t.content;e!=null&&e.accessToken&&y(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(H).use(C);T.use(S);T.mount("#app");export{E as __vite_legacy_guard};