!function(){function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function t(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t,r,n,i,o,u){try{var s=e[o](u),a=s.value}catch(c){return void r(c)}s.done?t(a):Promise.resolve(a).then(n,i)}var i=document.createElement("style");i.innerHTML="._error_l30mv_1{background-color:#fff;display:flex;flex-direction:column;min-height:100vh;align-items:center;justify-content:center}._error_l30mv_1 ._info_l30mv_9{display:flex;align-items:center;margin-bottom:.8rem}._error_l30mv_1 ._info_l30mv_9 span{display:inline-block;margin-left:.26667rem;color:#58727e;font-size:.48rem}._error_l30mv_1 .col-result-container,._error_l30mv_1 .van-empty{padding-top:0}._error_l30mv_1 .van-button{width:50%}\n",document.head.appendChild(i),System.register(["./index-legacy.2562bdba.js"],(function(e){"use strict";var r,i,o,u,s,a,c,l,f,p,d,m,g;return{setters:[function(e){r=e.f,i=e.d,o=e.g,u=e.t,s=e.x,a=e.i,c=e.b,l=e.a,f=e.n,p=e.j,d=e.C,m=e.R,g=e.F}],execute:function(){var h="_error_l30mv_1",v=r();e("A",i({name:"Auth",data:function(){return{loading:!1}},computed:{isExternal:function(){return this.$route.meta.isExternal&&!v.isStudent||!1},isNeedView:function(){return"login"===o.user.status||"/login"===this.$route.path||this.isExternal}},mounted:function(){!this.isExternal&&this.setAuth()},methods:{setAuth:function(){var e,i=this;return(e=regeneratorRuntime.mark((function e(){var n,p,d,m,g,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.$route.query,(p=n.userInfo||n.Authorization)&&u(p),!i.loading){e.next=5;break}return e.abrupt("return");case 5:if("init"!==o.user.status&&"error"!==o.user.status){e.next=19;break}return i.loading=!0,e.prev=7,e.next=10,s.get("/api-student/student/queryUserInfo",{initRequest:!0});case 10:d=e.sent,a(d.data),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(7),-1===(m=e.t0.message).indexOf("403")&&-1===m.indexOf("authentication")?c():l();case 18:i.loading=!1;case 19:if("logout"===o.user.status)if(r().isApp)f({api:"login"});else try{g=i.$route,h=t({returnUrl:i.$route.path},i.$route.query),g.meta.isRegister&&(h.isRegister=g.meta.isRegister),i.$router.replace({path:"/login",query:h})}catch(v){}case 20:case"end":return e.stop()}}),e,null,[[7,14]])})),function(){var t=this,r=arguments;return new Promise((function(i,o){var u=e.apply(t,r);function s(e){n(u,i,o,s,a,"next",e)}function a(e){n(u,i,o,s,a,"throw",e)}s(void 0)}))})()}},render:function(){return p(g,null,["error"===o.user.status?p("div",{class:h},[p(d,{type:"notFond",classImgSize:"CERT",tips:"加载失败，请稍后重试",buttonText:"重新加载",plain:!0,onClick:this.setAuth},null)]):this.isNeedView?p(m,null,null):null])}}))}}}))}();
