PageSourceSearch

https://portal.igpublish.com.cn/assets/OpenCallback-CmP3AQpw.js

js igpublish.com.cn collected 2026-10-08 03:07:08 UTC 4,250 bytes, 1 lines download raw bytes

1import{_ as b}from"./loading_reader-CixoJGH5.js";import{e as C,r,k as h,o as U,f as R,g as $,h as q,A as L,_ as O}from"./index-C5pP5APy.js";import{aC as S}from"./vendor-C0Uurid2.js";import{z as T,v as A,B,C as o,aa as v,y as x,aI as D,A as I}from"./vue-vendor-L-FQkbel.js";import"./element-plus-Bywy5oHq.js";import"./utils-DEfGBLaJ.js";const E={class:"auth-callback",role:"status","aria-live":"polite"},M={class:"custom-loading"},N={class:"loading-text"},z={class:"loading-title"},V={class:"text-normal auth-message"},W=T({__name:"OpenCallback",setup(P){const{t:c}=S(),w=C(),_=i=>{if(!i)return!1;try{return(/^https?:\/\//i.test(i)?new URL(i):new URL(i,window.location.origin)).pathname.endsWith("/my-account/authentication")}catch{return i.endsWith("/my-account/authentication")}};return A(async()=>{var i,n,d,u,y;try{const e=r.currentRoute.value,s=(i=e.query)==null?void 0:i.key,a=(n=e.query)==null?void 0:n.redirect,f=(d=e.query)==null?void 0:d.error,g=(u=e.query)==null?void 0:u.error_description;if(_(a)){await r.replace({path:"/my-account/authentication",query:{openAuthCallback:"1",...s?{key:s}:{},...a?{redirect:a}:{},...f?{error:f}:{},...g?{error_description:g}:{}}});return}if(!s){h(c("sign-in.failed-auth-callback")),await r.replace("/sign-in");return}const m=await U(s,a),p=m.data;w.updateUser(R(p)),$(),q(m.msg);let l=a||"/";if(p.redirect&&(l=p.redirect),/^https?:\/\//i.test(l)){const k=["https://new.igpublish.com","https://portal.igpublish.com","https://bep.igpublish.com"];let t=new URL(l);k.includes(t.origin)&&t.origin!==window.location.origin&&(t=new URL(`${window.location.origin}${t.pathname}${t.search}${t.hash}`)),t.origin===window.location.origin?await r.replace(`${t.pathname}${t.search}${t.hash}`||"/"):window.location.replace(t.href)}else await r.replace(l)}catch(e){let a=(y=r.currentRoute.value.query)==null?void 0:y.error_description;e instanceof L&&e.message?a=e.message:typeof e=="string"&&e&&(a=e),console.error("Open signinCallback error:",e),h(a||c("sign-in.failed-auth-callback")),setTimeout(()=>{r.replace("/sign-in")},5e3)}}),(i,n)=>(I(),B("div",E,[o("div",M,[o("div",N,[o("div",z,v(x(c)("sign-in.completing-sign-in")),1)]),n[0]||(n[0]=D('<div class="loading-spinner" data-v-c32716f5><div class="custom-spinner" data-v-c32716f5><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 2400 2400" xml:space="preserve" data-v-c32716f5><g stroke-width="200" stroke-linecap="round" stroke="currentColor" fill="none" id="spinner" data-v-c32716f5><line x1="1200" y1="600" x2="1200" y2="100" data-v-c32716f5></line><line opacity="0.5" x1="1200" y1="2300" x2="1200" y2="1800" data-v-c32716f5></line><line opacity="0.917" x1="900" y1="680.4" x2="650" y2="247.4" data-v-c32716f5></line><line opacity="0.417" x1="1750" y1="2152.6" x2="1500" y2="1719.6" data-v-c32716f5></line><line opacity="0.833" x1="680.4" y1="900" x2="247.4" y2="650" data-v-c32716f5></line><line opacity="0.333" x1="2152.6" y1="1750" x2="1719.6" y2="1500" data-v-c32716f5></line><line x1="600" y1="1200" x2="100" y2="1200" opacity="0.75" data-v-c32716f5></line><line opacity="0.25" x1="2300" y1="1200" x2="1800" y2="1200" data-v-c32716f5></line><line opacity="0.667" x1="680.4" y1="1500" x2="247.4" y2="1750" data-v-c32716f5></line><line opacity="0.167" x1="2152.6" y1="650" x2="1719.6" y2="900" data-v-c32716f5></line><line opacity="0.583" x1="900" y1="1719.6" x2="650" y2="2152.6" data-v-c32716f5></line><line opacity="0.083" x1="1750" y1="247.4" x2="1500" y2="680.4" data-v-c32716f5></line><animateTransform attributeName="transform" attributeType="XML" type="rotate" keyTimes="0;0.08333;0.16667;0.25;0.33333;0.41667;0.5;0.58333;0.66667;0.75;0.83333;0.91667" values="0 1199 1199;30 1199 1199;60 1199 1199;90 1199 1199;120 1199 1199;150 1199 1199;180 1199 1199;210 1199 1199;240 1199 1199;270 1199 1199;300 1199 1199;330 1199 1199" dur="1.5s" begin="0s" repeatCount="indefinite" calcMode="discrete" data-v-c32716f5></animateTransform></g></svg></div></div>',1)),o("p",V,v(x(c)("sign-in.processing-auth-callback")),1),n[1]||(n[1]=o("div",{class:"reading-image"},[o("img",{src:b,alt:"Login illustration"})],-1))])]))}}),K=O(W,[["__scopeId","data-v-c32716f5"]]);export{K 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.