1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9676],{1548:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});let a=r(11493)._},11493:(e,t,r)=>{"use strict";r.d(t,{_:()=>x});var a=r(36868),c=r(53239),n=r(62490),i=r(15340),o=r(55214),d=r(10331),l=r(64297),s=r(34713);let p=(0,c.createContext)({isAppleMatch:!1,isLoading:!1}),u=e=>{let{children:t}=e,[r,u]=(0,c.useState)(!1),[h,_]=(0,c.useState)(!1),v=(0,d._$)("NEXT_PUBLIC_AUTH_SERVER_URL"),g=(0,l.rd)(),{isAuth:y,isLoading:f}=(0,i.A)(),w=(0,o.Ri)("access_token");return(0,c.useEffect)(()=>{y&&w?(_(!0),s.A.get("".concat(v,"/v2/user/provider"),{headers:{Authorization:"Bearer ".concat(w)}}).then(e=>{if(e.data&&e.data.includes("apple"))u(!0);else throw Error("ì í ê³ì ì°ë ìëì´ìì")}).catch(()=>{(0,n.dXc)("ì í ê³ì ì¼ë¡ ë¡ê·¸ì¸ í´ì£¼ì¸ì"),g.replace("/")})):f||g.replace("/")},[y,w,f]),(0,a.Y)(p.Provider,{value:{isAppleMatch:r,isLoading:h},children:t})};var h=r(32417),_=r(87952),v=r(80832),g=r(27117),y=r(99962);let f=()=>{let[e,t]=(0,c.useState)(!1),[r,i]=(0,c.useState)(""),{generateCode:p,verifyCode:u}=(()=>{let e=(0,d._$)("NEXT_PUBLIC_AUTH_SERVER_URL"),t=(0,o.Ri)("access_token");return{generateCode:async t=>{try{return(await s.A.post("".concat(e,"/v2/recover/apple-generate-code"),{email:t})).data}catch(e){}},verifyCode:async(r,a)=>{try{return(await s.A.post("".concat(e,"/v2/recover/apple-verify-code"),{email:r||"[email protected]",code:a||"123456"},{headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)}})).data}catch(e){}}}})(),[f,w]=(0,c.useState)(""),x=(0,l.rd)();(0,c.useEffect)(()=>{t(!0)},[]);let Y=async()=>{await p(f)?(0,n.dXc)("ì¸ì¦ì½ëê° ì ì¡ëììµëë¤."):(0,n.dXc)("ì¸ì¦ ë©ì¼ ì ì¡ì ì¤í¨íìµëë¤.")},k=async()=>{await u(f,r)?((0,n.dXc)("ì ìëììµëë¤.\n ì¸ì¦ íì¸ í ì°ë½ ëë¦¬ê² ìµëë¤."),x.push("/")):(0,n.dXc)("ì¸ì¦ ì½ëê° ì¬ë°ë¥´ì§ ììµëë¤.")};return e?(0,a.FD)(_.Tk,{width:"100%",gap:"150px",children:[(0,a.FD)(_.Tk,{width:"100%",gap:"10px",children:[(0,a.Y)(v.Z,{typo:"Body6",color:"text_secondary",children:"ì´ë©ì¼"}),(0,a.FD)(_.zt,{width:"100%",gap:"10px",children:[(0,a.Y)(g.a,{height:"44px",p:"10px 20px",backgroundColor:"surface_secondary",borderRadius:"8px",children:(0,a.Y)(y.p,{width:"100%",height:"100%",placeholder:"ì´ë©ì¼ì ì
ë ¥í´ì£¼ì¸ì",onChange:e=>w(e.target.value)})}),(0,a.Y)(n.$nd,{variant:"outline",onClick:Y,children:"ì ì¡"})]}),(0,a.Y)(v.Z,{typo:"Body6",color:"text_secondary",children:"ì¸ì¦ì½ë"}),(0,a.Y)(g.a,{width:"100%",p:"10px 20px",backgroundColor:"surface_secondary",borderRadius:"8px",children:(0,a.Y)(y.p,{placeholder:"ì¸ì¦ì½ë를 ì
ë ¥í´ì£¼ì¸ì",maxLength:6,onChange:e=>{let t=e.target,r=t.value.replace(/[^0-9]/g,"").slice(0,6);i(r),t.value=r}})})]}),(0,a.Y)(h.P,{onClick:k,children:"ì ì¶í기"})]}):null};var w=r(57325);let x=()=>(0,a.Y)(u,{children:(0,a.Y)(f,{})}),Y=e=>{let{children:t}=e;
1return(0,a.Y)(w.G,{headerProps:{title:"Apple ê³ì ì°ë",description:""},children:t})};x.getLayout=function(e){return(0,a.Y)(Y,{children:e})}},32417:(e,t,r)=>{"use strict";r.d(t,{P:()=>i});var a=r(36868),c=r(62490),n=r(27117);let i=e=>{let{disabled:t,children:r,onClick:i}=e;return(0,a.Y)(n.a,{position:["fixed","fixed","relative","relative"],left:"0",right:"0",bottom:"0",width:"100%",background:"background_primary",children:(0,a.Y)(c.$nd,{type:"submit",disabled:t,onClick:i||void 0,variant:"default",size:"lg",className:"w-full rounded-none sm:rounded-xl group active:scale-100 sm:active:scale-95",children:(0,a.Y)("span",{className:"duration-200 group-active:scale-95 sm:group-active:scale-100",children:r})})})}},91278:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/find/apple",function(){return r(1548)}])},99962:(e,t,r)=>{"use strict";r.d(t,{p:()=>d});var a=r(18151),c=r(13688),n=r(58404),i=r(77755),o=r(7e3);let d=(0,a.A)("input")(c.Vy,c.Tp,c.yW,c.xe,c.Zp,c.pn,c.PQ,c.G1,{backgroundColor:"inherit"},(0,n.hL)(),(0,n.ev)(),(0,n.IA)(),(0,i.l0)(),(0,n.r4)(),(0,n.Yv)(),(0,n.Zp)(),(0,o.a)())}},e=>{e.O(0,[9394,4713,2229,7325,636,6593,8792],()=>e(e.s=91278)),_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.