1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1977],{14832:(e,t,i)=>{"use strict";i.d(t,{A:()=>c});var n=i(23798),a=i(14222),s=i(26354),r=i(72565),o=i(2856),l=i(21462);let c=e=>{let{loading:t,loadingText:i,size:c=20,sx:p,children:d,progress:u}=e,{t:_}=(0,a.Bd)(),m=l.useMemo(()=>""===i?null:i||_("package__common:loading"),[i,_]);return(0,n.jsx)(l.Fragment,{children:t?(0,n.jsxs)(s.A,{className:"typeless--loading",sx:{display:"flex",alignContent:"center",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",flexDirection:"column",py:2,boxSizing:"border-box",...p},children:["number"==typeof u?(0,n.jsxs)(s.A,{sx:{position:"relative"},children:[(0,n.jsx)(r.A,{variant:"determinate",size:c,value:100,sx:{display:"block",color:e=>e.palette.grey["light"===e.palette.mode?400:800]}}),(0,n.jsx)(r.A,{variant:"determinate",size:c,value:u,sx:{position:"absolute",left:0,top:0}})]}):(0,n.jsx)(r.A,{size:c,sx:{m:"0 auto"}}),m&&(0,n.jsx)(o.A,{mt:1.5,variant:"body2",fontWeight:400,fontSize:"16px",lineHeight:1.25,color:"text.primary",children:m})]}):d})}},23901:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/login/apple",function(){return i(61555)}])},33761:(e,t,i)=>{"use strict";i.d(t,{A:()=>w});var n=i(23798),a=i(38998),s=i(9423),r=i(47838),o=i(42985),l=i(34218),c=i(19321),p=i(76721),d=i(14832),u=i(41760),_=i(21462),m=i(86555),h=i(1718);let x="".concat(a.dr).concat(o.mM.APPLE_LOGIN_CALLBACK),A=()=>{let{isReady:e}=(0,u.useRouter)(),{loaded:t,isLogin:i}=(0,l.V)(),o=(0,_.useRef)(!1);return(0,_.useEffect)(()=>{let n=async()=>{if(window.AppleID){if(i){window.location.href="/login/app/success";return}try{await s.w.setItem("SIGN_METHOD","apple");let e=await (0,c.rY)(),t=await r.s.getAPIFetchDeviceID(),i={env:"main"===a.yt?"stage":a.yt,client_user_id:await (0,p.a7)()||"",app_version:a.kR,...e,device_id:t},n=crypto.randomUUID(),o="".concat(n,"__").concat(JSON.stringify(i));await s.w.setItem("APPLE_SIGNIN_STATE_ID",n),window.AppleID.auth.init({clientId:"com.typeless.app.services",scope:"name email",redirectURI:x,state:o,usePopup:!1,response_mode:"form_post"}),window.AppleID.auth.signIn()}catch(e){}}};e&&t&&(()=>{if(o.current)return;let e=document.createElement("script");e.src="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",e.async=!0,e.onload=()=>{o.current=!0,n()},document.head.appendChild(e)})()},[i,e,t]),(0,n.jsx)(d.A,{loading:!0,loadingText:""})},w=function(){return(0,n.jsxs)(m.A,{disabledAppHeader:!0,disabledSEOAppFooter:!0,children:[(0,n.jsx)(h.A,{noIndexed:!0}),(0,n.jsx)(A,{})]})}},61555:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSG:()=>a,default:()=>s});var n=i(33761),a=!0;let s=n.A}},e=>{e.O(0,[4951,3560,3710,7988,6116,332,9551,636,6593,8792],()=>e(e.s=23901)),_N_E=e.O()}]);
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.