1(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[6853],{659:(e,t,r)=>{var o=r(51873),n=Object.prototype,i=n.hasOwnProperty,l=n.toString,a=o?o.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var o=!0}catch(e){}var n=l.call(e);return o&&(t?e[a]=r:delete e[a]),n}},9325:(e,t,r)=>{var o=r(34840),n="object"==typeof self&&self&&self.Object===Object&&self,i=o||n||Function("return this")();e.exports=i},11847:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var o=r(96540),n=r(61225),i=r(56347),l=r(12215),a=r.n(l),c=r(91112),s=r(28633),u=r(40482),d=r(77286),v=r(93172),p=r(98672),h=r(85015),y=r.n(h);function f(){const e=(0,i.W6)(),{auth_code:t,state:r}=(0,v.A)(),l=(0,n.wA)(),h=(0,o.useMemo)(()=>{try{const e=JSON.parse(r);return y()(e)?e:""}catch{return""}},[r]),f=(0,o.useMemo)(()=>h?a().getJSON(h):null,[h]);return(0,o.useEffect)(()=>{const r=new AbortController;return(async()=>{try{var o,n,i;if(!t||null==f||!f.authType||null==f||!f.provider)throw new Error;const s=await(0,c.aX)({redirect_uri:`${window.location.origin}${window.location.pathname}`,provider:f.provider,authType:f.authType,code:t,adId:await p.A.getClientId(),instanceId:a().get(u.iq)},{signal:r.signal});p.A.setToken(s.access_token,s.refresh_token),p.A.setChocomemberId(s.accountId),p.A.rememberLastSigninProvider(null==f?void 0:f.provider);const d=(null==f||null===(o=f.redirection)||void 0===o?void 0:o.startsWith("/login/redirect-sso"))||(null==f||null===(n=f.redirection)||void 0===n?void 0:n.startsWith("/kktv/redirect-sso"))?"/":null!==(i=null==f?void 0:f.redirection)&&void 0!==i?i:"/";l({type:"AUTH_FLOW_BEGIN"}),e.replace(d,{provider:null==f?void 0:f.provider,authType:null==f?void 0:f.authType,isAccountExisted:Boolean(s.existed),isOpenAuthResult:!0})}catch(t){var d;let r=s.RH;var v;console.log("error",t),(null==t?void 0:t.status)>=400&&t.status<500&&(null===(v=t.data)||void 0===v?void 0:v.code)===s.L0&&(r=s.X4),e.replace(null!==(d=null==f?void 0:f.redirection)&&void 0!==d?d:"/",{provider:null==f?void 0:f.provider,authType:null==f?void 0:f.authType,authError:r})}finally{h&&a().remove(h)}})(),()=>{null==r||r.abort()}},[e,t,f,h]),o.createElement(d.A,{style:{height:"100vh"}})}},34840:(e,t,r)=>{var o="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=o},40346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},51873:(e,t,r)=>{var o=r(9325).Symbol;e.exports=o},56449:e=>{var t=Array.isArray;e.exports=t},59350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},72552:(e,t,r)=>{var o=r(51873),n=r(659),i=r(59350),l=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?n(e):i(e)}},85015:(e,t,r)=>{var o=r(72552),n=r(56449),i=r(40346);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==o(e)}}}]);
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.