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