1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9151],{23027:(e,s,t)=>{t.d(s,{A:()=>l});var a=t(50979),n=t(24246),r=t(85915),o=t(61202);let i=r.Ay.span.withConfig({displayName:"ContactLink__StyledA",componentId:"sc-6aca44ef-0"})(["display:inline-block;margin-left:6px;color:#3256ad;font-weight:600;text-decoration:underline;",""],({cloudUser:e})=>{if(e)return(0,r.AH)(["background-color:#fff;color:#2451a3;padding:0.5em;text-decoration:none;font-weight:700;font-size:1.2rem;display:inline-block;border-radius:initial;border-radius:5px;"])}),l=({cloudUser:e})=>{let{t:s}=(0,o.Bd)("auth");return(0,a.jsx)(n.A,{href:"/contact-us",target:"_blank",children:(0,a.jsx)(i,{cloudUser:e,children:s("auth_contact_us")})})}},23134:(e,s,t)=>{t.d(s,{A:()=>l});var a=t(50979),n=t(25963),r=t(61202),o=t(66233),i=t(76001);function l({onClickConfirmVerify:e,errorMsg:s,setErrorMsg:t,isErrorVerifyEmail:d=!1,email:c,isSuccess:p,isLoading:h}){let[u,m]=(0,n.useState)(""),[g,_]=(0,n.useState)(!1),{t:f}=(0,r.Bd)(),w=(0,n.useRef)(null);return(0,n.useEffect)(()=>{w.current&&w.current.focus()},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(o.WT,{children:[(0,a.jsx)(o.ZB,{children:f("verify_title")}),(0,a.jsx)(o.C1,{children:f("verify_desc_2")})]}),c&&(0,a.jsx)(o.y5,{children:c}),(0,a.jsxs)(o.Qu,{children:[(0,a.jsx)(o.vR,{ref:w,type:"text",placeholder:f("verify_placeholder_2"),value:u,onChange:e=>{m(e.target.value)},onKeyDown:s=>{"Enter"===s.key&&e(u,_,t)},isError:""!==s,maxWidth:"280",minLength:6,maxLength:6,autoComplete:"off"}),""!==s&&(0,a.jsx)(o.Wx,{children:s})]}),!d&&(0,a.jsx)(o.n9,{disabled:g,onClick:()=>e(u,_,t),children:h||p&&!s?(0,a.jsx)(i.A,{size:5,color:"#fff"}):f("verify_button_2")})]})}},59151:(e,s,t)=>{t.r(s),t.d(s,{default:()=>S});var a=t(50979),n=t(25963),r=t(61202),o=t(85915),i=t(53457),l=t(12912),d=t(45580),c=t(79481),p=t(32540),h=t(46071),u=t(77941),m=t(66233);let g=o.Ay.div.withConfig({displayName:"ChangePassword__ChangePasswordContainer",componentId:"sc-9925b33c-0"})(["display:flex;justify-content:center;align-items:center;padding-bottom:30px;"]),_=o.Ay.div.withConfig({displayName:"ChangePassword__ChangePasswordLayout",componentId:"sc-9925b33c-1"})(["max-width:450px;width:100%;margin:0 auto;"]),f=o.Ay.h1.withConfig({displayName:"ChangePassword__Title",componentId:"sc-9925b33c-2"})(["font-family:var(--font-Nunito-Sans);color:#000000;margin:30px auto 30px auto;text-align:center;font-weight:700;font-size:2.2rem;line-height:30px;"]),w=function({email:e,resetStep:s}){let t=(0,u.useRouter)(),{t:o}=(0,r.Bd)("auth"),[w,{setForm:x}]=(0,l.A)({pw:""}),[y,I]=(0,n.useState)(""),[j,C]=(0,n.useState)(i.MI.DEFAULT),[A,E]=(0,n.useState)(i.MI.DEFAULT),[b,k]=(0,n.useState)(o("auth_check_password")),[v,S]=(0,n.useState)(""),M=e=>{(A===i.MI.ACTIVE||y!==e)&&(E(i.MI.FAILURE),S(o("register_password_does_not_match"))),c.a_.password.test(e)&&""!==e.trim()?(C(i.MI.ACTIVE),y===e&&(S(""),E(i.MI.ACTIVE))):(C(i.MI.FAILURE),k(o("auth_check_password")))},L=e=>{w.pw!==e||""===e?(E(i.MI.FAILURE),S(o("register_password_does_not_match"))):j===i.MI.ACTIVE?(S(""),E(i.MI.ACTIVE)):j===i.MI.FAILURE&&(S(""),E(i.MI.FAILURE))},N=(0,h.Cl)(),T=async()=>{try{+(j!==i.MI.ACTIVE||A!==i.MI.ACTIVE)?(j!==i.MI.ACTIVE&&M(w.pw),A!==i.MI.ACTIVE&&L(y)):N.mutate({email:e,pw:w.pw},{onSuccess:e=>{200===e.status?(d.o.show({message:"password_change_success",type:"success"}),t.push("/login")):400===e.status&&"invalid email."===e.message?d.o.show({message:"invalid_email",type:"warning"}):400===e.status&&"invalid password"===e.message?d.o.show({message:"invalid_password",type:"warning"}):(400===e.status&&"auth code is expired"===e.message?d.o.show({message:"auth_code_is_expired",type:"warning"}):"not a member"===e.message?d.o.show({message:"please_check_email",type:"warning"}):d.o.show({message:"error_500",type:"error"}),s())}})}catch(e){d.o.show({message:"password_change_failure",type:"error"})}};return(0,a.jsx)(g,{children:(0,a.jsxs)("div",{children:[(0,a.jsx)(f,{children:o("change_password")}),(0,a.jsxs)(_,{children:[(0,a.jsxs)(p.F,{status:j,children:[(0,a.jsx)("input",{type:"password",placeholder:o("auth_placeholder_password"),name:"pw",value:w.pw,onChange:e=>{let{value:s}=e.currentTarget;x({...w,pw:s}),M(s)},maxLength:20}),(0,a.jsx)("span",{children:b})]}),(0,a.jsxs)(p.F,{status:A,children:[(0,a.jsx)("input",{type:"password",placeholder:o("auth_placeholder_confirm_password"),name:"cfpw",value:y,onChange:e=>{let{value:s}=e.currentTarget;I(s),L(s)},maxLength:20}),(0,a.jsx)("span",{children:v})]}),(0,a.jsx)(m.n9,{onClick:T,children:o("change_password_change")})]})]})})};var x=t(23134),y=t(78596),I=t(47165),j=t(94751),C=t(23027);function A({email:e,setEmail:s,toNextStep:t}){let{t:o,i18n:i}=(0,r.Bd)("auth"),{t:l}=(0,r.Bd)("toast"),c=i.language,p=(0,n.useRef)(null),[h,u]=(0,n.use
1State)(""),g=(0,I.j5)();(0,n.useEffect)(()=>{p.current&&p.current.focus()},[]),(0,n.useEffect)(()=>{u("")},[c]);let _=async()=>{if(""===e.trim())u(l("please_check_email"));else try{g.mutate({email:e},{onSuccess:e=>{if(200===e.status)"already confirmed"===e.message?u(l("already_confirmed")):(u(""),d.o.show({message:"send_email_success",type:"success"}),t());else if(400===e.status&&e.message.includes("available after")){let s=j.r.n_seconds_parser(c,e.message);u(s)}else throw e},onError:e=>{if("network_error"===e.message)d.o.show({message:"network_error",type:"error"});else throw e}})}catch(e){if("string"==typeof e&&e.toLowerCase().startsWith("available after"))u(j.r.n_seconds_parser(c,e));else{let s=j.r.message(e);console.error(s),u(l(s))}}};return(0,a.jsxs)(E,{children:[(0,a.jsx)(b,{children:o("reset_password")}),(0,a.jsx)(k,{ref:p,type:"text",placeholder:o("reset_password_placeholder_email"),name:"email",value:e,onChange:e=>{s(e.target.value)},onKeyDown:e=>{13===e.keyCode&&_()},maxLength:50,minLength:2}),h&&(0,a.jsx)(v,{children:h}),(0,a.jsx)(m.n9,{onClick:_,children:o("reset_password")}),(0,a.jsx)("br",{}),o("auth_need_help")," ",(0,a.jsx)(C.A,{})]})}let E=o.Ay.div.withConfig({displayName:"ResetEmailInput__Content",componentId:"sc-cadc3a62-0"})(["max-width:450px;width:100%;margin:0 auto;text-align:center;word-break:keep-all;"]),b=o.Ay.h1.withConfig({displayName:"ResetEmailInput__VerifyTitle",componentId:"sc-cadc3a62-1"})(["",""],m.a$),k=o.Ay.input.withConfig({displayName:"ResetEmailInput__EmailInput",componentId:"sc-cadc3a62-2"})(["border:none;display:block;width:100%;padding:15px;margin:10px auto;border-bottom:1px solid #464646;"]),v=o.Ay.div.withConfig({displayName:"ResetEmailInput__EmailInputErrorDesc",componentId:"sc-cadc3a62-3"})(["font-size:1.2rem;line-height:16px;text-align:center;color:#d94dd1;"]),S=function({userEmail:e}){let{t:s,i18n:t}=(0,r.Bd)(),[o,i]=(0,n.useState)(""),[l,c]=(0,n.useState)(e||""),{Funnel:p,setStep:u}=(0,y.o)("ì´ë©ì¼ ì
ë ¥"),m=(0,h.rX)();(0,n.useEffect)(()=>{i("")},[t.language]);let g=async e=>{m.mutate({email:l,auth_code:e},{onSuccess:e=>{200===e.status?(i(""),u("í¨ì¤ìë ë³ê²½")):400===e.status&&"auth code is different"===e.message?i(s("verify_code_not_match")):(400===e.status&&"auth code is expired"===e.message||400===e.status&&"blocked"===e.message||400===e.status&&"no auth code"===e.message?(d.o.show({message:"auth_token_is_expired",type:"warning"}),c(""),i("")):d.o.show({message:"error_500",type:"error"}),u("ì´ë©ì¼ ì
ë ¥"))},onError:()=>{d.o.show({message:"error_500",type:"error"}),u("ì´ë©ì¼ ì
ë ¥")}})};return(0,a.jsxs)(p,{children:[(0,a.jsx)(p.Step,{name:"ì´ë©ì¼ ì
ë ¥",children:(0,a.jsx)(A,{email:l,setEmail:c,toNextStep:()=>u("ì´ë©ì¼ ì¸ì¦ë²í¸")})}),(0,a.jsx)(p.Step,{name:"ì´ë©ì¼ ì¸ì¦ë²í¸",children:(0,a.jsx)(x.A,{errorMsg:o,setErrorMsg:i,onClickConfirmVerify:g})}),(0,a.jsx)(p.Step,{name:"í¨ì¤ìë ë³ê²½",children:(0,a.jsx)(w,{email:l,resetStep:()=>u("ì´ë©ì¼ ì
ë ¥")})})]})}},76001:(e,s,t)=>{t.d(s,{A:()=>r});var a=t(50979),n=t(85915);function r({size:e,color:s}){return(0,a.jsxs)(i,{className:"dots_wrap",size:e||2,color:s||"#727272",children:[(0,a.jsx)("span",{className:"dot"}),(0,a.jsx)("span",{className:"dot"}),(0,a.jsx)("span",{className:"dot"})]})}let o=(0,n.i7)(["0%{opacity:1;}100%{opacity:0;}"]),i=n.Ay.span.withConfig({displayName:"LoadingDots__Dots",componentId:"sc-f6fe7b83-0"})(["display:inline-flex;margin:0 4px;> .dot{display:inline-block;width:",";height:",";border-radius:",";margin:",";background:",";-webkit-animation:"," 3s infinite ease-in-out;animation:"," 3s infinite ease-in-out;:nth-of-type(1){-webkit-animation-delay:-1.5s;animation-delay:-1.5s;}:nth-of-type(2){-webkit-animation-delay:-1s;animation-delay:-1s;}:nth-of-type(3){-webkit-animation-delay:-0.5s;animation-delay:-0.5s;}}"],({size:e})=>`${e}px;`,({size:e})=>`${e}px;`,({size:e})=>`${e}px;`,({size:e})=>`${.75*e}px;`,({color:e})=>e,o,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.