1"use strict";(self.rspackChunknewapi_web=self.rspackChunknewapi_web||[]).push([[7086],{48557(e,t,a){a.r(t);var r=a(31371),c=a(3707),s=a(94852),n=a(65172),u=a(36461),o=a(1855),i=a(82406),h=a(32787);function l(){let e=(0,c.Z)(),t=(0,s.S)({from:"/(auth)/oauth"});return(0,r.useEffect)(()=>{(async()=>{try{t?.provider==="wechat"&&t.code&&await (0,h.Cw)(t.code);let a=await (0,i.Ng)();if(a?.success){o.n.getState().auth.setUser(a.data);let r=t?.redirect||"/dashboard";e({to:r,replace:!0});return}}catch{}u.oR.error(n.Ay.t("OAuth failed")),e({to:"/sign-in",replace:!0})})()},[e,t]),null}a.d(t,{component:()=>l})}}]);
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.