System.register(["./index-legacy.c77ea834.js"],(function(){"use strict";var t,e,o,n,a,s,r,i,p,u,T,c,l,f,h,m,v;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,p=w.A,u=w.p,T=w.s,c=w.e,l=w.f,f=w.g,h=w.h,m=w.i,v=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:p},null)])}})])])}}});u({api:"getToken"}).then((function(t){console.log(t,"res");var e=t.content;null!=e&&e.accessToken&&T(e.tokenType+" "+e.accessToken)})),c({api:"setBarStatus",content:{status:0}}),c({api:"getNavHeight"},(function(t){var e=t.content,o=e.dpi||2;if(e.navHeight){var n=e.navHeight/o;console.log(n,"navHeight"),f.navBarHeight=n}}));var g=window.paymentType;l().isTeacher||"TEACHER"===g?f.platformType="TEACHER":l().isStudent||"STUDENT"===g?f.platformType="STUDENT":l().isSchool||"SCHOOL"===g?f.platformType="SCHOOL":f.platformType="STUDENT","TEACHER"===f.platformType?f.platformApi="/api-teacher":"SCHOOL"===f.platformType?f.platformApi="/api-school":(f.platformType,f.platformApi="/api-student");var y=h(w).use(m);y.use(v),y.mount("#app")}}}));
