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