1import{k as g,G as f,i as h,a as y,t as w,q as n,A as k,o as q,a2 as x}from"./vue-DaNdVMrz.js";import{u as E,x as I,s as l,y as L,z as T}from"./configInfo-BVHQT-Z6.js";import"./vendor-yC50Gzje.js";import{_ as P}from"./_plugin-vue_export-helper-DlAUqK2U.js";const S={class:"cas-login-loading"},v="å½å龿¥ä¸æ¯æç´æ¥æå¼",M=g({__name:"caslogin",setup(N){const d=w(),t=k(),m=async()=>{var i;const{redirect:r,ticket:s}=d.query,o=r||"/",c=E();try{await c.getDomainInfo(o)}catch(e){n.error((e==null?void 0:e.message)||"ååéªè¯å¤±è´¥"),t.replace({path:"/error",query:{redirect:o}});return}try{const e=(i=c.domainInfo)==null?void 0:i.loginType;if(e===1){const{data:a,msg:_}=await I(s,o);l(a);const{data:u}=await L(o),p=u;if(p)window.location.href=p;else throw new Error(_||v)}else if(e===2){const{data:a}=await T(s);a&&l(a),t.replace({path:o})}else n.error("ç»å½æ¹å¼ä¸åå¨è¯·è系管çå"),t.replace({path:"/error",query:{redirect:o}})}catch(e){n.error((e==null?void 0:e.message)||"ç»å½å¤±è´¥"),t.replace({path:"/403",query:{redirect:o,message:e==null?void 0:e.message}})}};return f(()=>{m()}),(r,s)=>{const o=x;return q(),h("div",S,[y(o,{visible:!0,text:"ç»å½ä¸..."})])}}}),C=P(M,[["__scopeId","data-v-41d08c4b"]]);export{C as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.