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