1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3214],{67571:function(e,t,n){var l=n(77804);n(88661),t.Z=function(e){let{open:t,onClickMask:n,children:r,zIndex:a=1080}=e;return t?(0,l.jsx)("section",{className:"fixed bottom-0 left-0 right-0 top-0 overflow-auto",style:{zIndex:a},children:(0,l.jsx)("div",{className:"flex min-h-full w-full items-center justify-center bg-black/80 p-8",onClick:()=>null==n?void 0:n(),children:(0,l.jsx)("div",{onClick:e=>e.stopPropagation(),className:"w-full sm:w-auto",children:r})})}):null}},2122:function(e,t,n){var l=n(77804),r=n(88661),a=n(71596),s=n(62148),i=n(33196),o=n(97194),c=n(39162),d=n(28733);t.Z=function(e){let{getPhone:t,getCountryCode:n,openAppealModal:u,loginType:x}=e,p=(0,r.useRef)(),[h,_]=(0,r.useState)(60),[m,f]=(0,r.useState)(!1),[g,v]=(0,r.useState)(!1),b=(0,r.useRef)(!1),j=(0,d.T)(),N=e=>{(0,s.k0)(e)?1200036===e.code?u():a.Z.error(e.message):a.Z.error(j("toast_request_failed_retry"))};(0,r.useEffect)(()=>(m?p.current=window.setInterval(()=>{_(e=>0===e?(clearInterval(p.current),f(!1),60):e-1)},1e3):(_(60),p.current&&clearInterval(p.current)),()=>{p.current&&clearInterval(p.current)}),[m]);let y=async function(){let{ticket:e,randStr:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t(),s=n();try{let t={phone:r,countryCode:s,ticket:e,randStr:l},n=(0,i._n)();x===o.Ez.LOGINTYPETHIRDPART&&n&&(t.unionID=null!=n?n:""),await (0,o.Hy)(t),f(!0),a.Z.success(j("toast_verification_code_sent"))}catch(e){N(e),f(!1)}finally{v(!1),b.current=!1}},w=e=>{if(2===e.ret){v(!1),b.current=!1;return}0===e.ret&&!e.errorCode&&e.ticket&&e.randstr?y({ticket:e.ticket,randStr:e.randstr}):y()},E=()=>{y()},C=async()=>{if(g||m||b.current)return;b.current=!0;let e=t(),l=n();if(!e){a.Z.error(j("login_enter_phone_number")),b.current=!1;return}if(!1===(0,c.OH)(e,l)){a.Z.error(j("login_enter_valid_phone_number")),b.current=!1;return}v(!0);try{let{needCaptcha:t,aid:n,aidEncrypted:r}=await (0,o.sJ)({phone:e,countryCode:l});if(t)try{new TencentCaptcha(n,w,{aidEncrypted:r,userLanguage:navigator.language}).show()}catch(e){E()}else await y()}catch(e){N(e),v(!1),b.current=!1}},k=g||m,I=m?"".concat(j("login_resend_code")," ").concat(h,"s"):j("login_get_verification_code");return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("button",{type:"button",onClick:C,disabled:k,"aria-busy":g,className:"".concat(k?"text-hl_text_02 cursor-not-allowed":"text-hl_brand_02 hover:text-hl_text_00","\n hidden h-[42px] w-[110px] whitespace-nowrap\n rounded-[100px] text-center text-[14px] font-medium leading-[42px] sm:block\n "),children:[(0,l.jsxs)("span",{className:"inline-flex items-center justify-center gap-1.5",children:[g&&(0,l.jsx)("span",{"aria-hidden":"true",className:"h-3 w-3 flex-none animate-spin rounded-full border border-current border-t-transparent"}),(0,l.jsx)("span",{children:I})]}),(0,l.jsx)("span",{className:"sr-only","aria-live":"polite",children:g?j("loading"):""})]}),(0,l.jsxs)("button",{type:"button",disabled:k,"aria-busy":g,className:"block h-[42px] rounded-[100px] py-0 pr-[16px] text-[14px] font-medium leading-[42px] sm:hidden ".concat(k?"text-hl_text_02 cursor-not-allowed":"text-hl_brand_02 hover:text-hl_text_00"),onClick:C,children:[(0,l.jsxs)("span",{className:"inline-flex items-center justify-center gap-1.5",children:[g&&(0,l.jsx)("span",{"aria-hidden":"true",className:"h-3 w-3 flex-none animate-spin rounded-full border border-current border-t-transparent"}),(0,l.jsx)("span",{children:I})]}),(0,l.jsx)("span",{className:"sr-only","aria-live":"polite",children:g?j("loading"):""})]})]})}},39162:function(e,t,n){n.d(t,{OH:function(){return r},Pw:function(){return a},aH:function(){return l}});let l=e=>/^1[3456789]\d{9}$/.test(e),r=(e,t)=>"+86"!==t&&""!==t||l(e),a=e=>/^\d{6}$/.test(e)},33214:function(e,t,n){n.r(t),n.d(t,{default:function(){return T}});var l=n(77804),r=n(88661),a=n(46153),s=n(67571),i=n(17271),o=n(54907),c=n(35966),d=n(93340),u=n(45929),x=n(54772),p=n(91818),h=n(71872),_=n(3297),m=n(71596),f=n(38449),g=n(39869),v=n(45237),b=n(62148),j=n(97194),N=n(33196),y=n(8050),w=n(2122),E=n(39162);n(29587);var C=n(28733);let k="phone",I="code";var L=function(e){let{onBackToOtherMethods:t}=e,n=(0,a.I0)(),r=(0,a.oR)(),[o]=p.Z.useForm(),{getUserInfo:d}=(0,g.Z)(),{onInviteBindCurrentUser:x}
1=(0,v.Z)(),L=(0,C.T)(),O=(0,a.v9)(e=>{var t;return null==e?void 0:null===(t=e.user)||void 0===t?void 0:t.showLoginModal}),R=()=>{(0,N.j1)(),n((0,i.pZ)(!1)),o.setFieldValue(k,""),o.setFieldValue(I,""),(0,f.Ej)({id:u.Cv.LOGIN_RESULT,params:{page:u.Cv.LOGIN_POPUP_PAGE,login_type:u.Ez.MOBILE,result_type:u.dT.FAIL,fail_reason:u.z5.CANCEL}})},S=()=>{m.Z.success(L("toast_login_success")),n((0,i.pZ)(!1)),o.setFieldValue(k,""),o.setFieldValue(I,""),(0,f.Kq)({device_id:r.getState().user.realUserID,hailuo_user_id:r.getState().user.realUserID}),(0,f.Ej)({id:u.Cv.LOGIN_RESULT,params:{result_type:u.dT.SUCCESS,login_type:u.Ez.MOBILE,page:u.Cv.LOGIN_POPUP_PAGE}})},P=e=>{let t=u.z5.OTHER;(0,b.k0)(e)&&(1200036===e.code?m.Z.error(L("login_account_suspended_notice")):m.Z.warn(e.message),t=u.z5.SERVER_ERROR),(0,f.Ej)({id:u.Cv.LOGIN_RESULT,params:{result_type:u.dT.FAIL,fail_reason:t,page:u.Cv.LOGIN_POPUP_PAGE,login_type:u.Ez.MOBILE}})},T=async(e,t)=>{(0,f.I)({id:"before_login_fetch",loginType:j.Ez.LOGINTYPEPHONE});try{let{isRegister:n}=await (0,j.uX)({phone:e,code:t,countryCode:j.ss,loginType:j.Ez.LOGINTYPEPHONE});(0,N.j1)(),await d(n),S(),x()}catch(e){P(e)}};return(0,l.jsx)(s.Z,{open:O,onClickMask:R,children:(0,l.jsxs)("div",{className:"bg-hl_bg_03 relative w-full overflow-hidden rounded-2xl sm:w-[460px]",children:[(0,l.jsx)("button",{className:"absolute right-3 top-3 rounded-lg p-3",onClick:R,children:(0,l.jsx)(c.i7,{})}),(0,l.jsx)("div",{className:"aspect-[690/378] w-full overflow-hidden",children:(0,l.jsx)("img",{src:"https://cdn.hailuoai.video/open-hailuo-video-web/public_assets/97aef762-46c6-4c69-914a-decf59856027.png?x-oss-process=image/resize,p_50/format,webp",alt:"login-background by Hailuo AI Video Generator",className:"h-full w-full object-cover"})}),(0,l.jsxs)("div",{className:"w-full px-6 py-6 sm:min-h-[312px] sm:px-[36px] sm:pb-5 sm:pt-6",children:[(0,l.jsx)("div",{className:"text-hl_text_00 mb-4 flex justify-center",children:(0,l.jsx)(c.ow,{})}),(0,l.jsxs)(p.Z,{form:o,className:"w-full",children:[(0,l.jsx)("div",{className:"phone-wrap bg-hl_bg_05 mb-3 flex h-[42px] rounded-[100px]",children:(0,l.jsx)(p.Z.Item,{name:k,getValueFromEvent:e=>{var t,n;return null==e?void 0:null===(n=e.target)||void 0===n?void 0:null===(t=n.value)||void 0===t?void 0:t.replace(/\D/g,"")},className:"mb-0 w-full",children:(0,l.jsx)(h.default,{maxLength:11,placeholder:L("login_enter_phone_number"),autoComplete:"off",className:"text-hl_text_00 placeholder:text-hl_text_02 h-[42px] rounded-[100px] border-0 bg-transparent px-4 py-0 text-[15px] font-[300] leading-[22px] placeholder:text-[15px] focus:shadow-none",autoFocus:!0})})}),(0,l.jsxs)("div",{className:"bg-hl_bg_05 mb-3 flex h-[42px] w-full items-center overflow-hidden rounded-[100px]",children:[(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(p.Z.Item,{name:I,className:"mb-0",getValueFromEvent:e=>{var t,n;return null==e?void 0:null===(n=e.target)||void 0===n?void 0:null===(t=n.value)||void 0===t?void 0:t.replace(/\D/g,"")},children:(0,l.jsx)(h.default,{size:"large",maxLength:6,autoComplete:"off",className:"code-input text-hl_text_00 placeholder:text-hl_text_02 h-[42px] rounded-l-[100px] rounded-r-none border-0 bg-transparent px-4 py-0 text-[15px] font-[300] leading-[22px] placeholder:text-[15px] focus:shadow-none",placeholder:L("login_enter_verification_code")})})}),(0,l.jsx)("div",{children:(0,l.jsx)(w.Z,{openAppealModal:()=>{m.Z.error(L("login_account_suspended_notice"))},getPhone:()=>o.getFieldValue(k),getCountryCode:()=>j.ss,loginType:j.Ez.LOGINTYPEPHONE})})]}),(0,l.jsx)("div",{className:"mb-2 text-center",children:(0,l.jsxs)("div",{className:"text-hl_text_02 text-[12px] leading-[20px]",children:[(0,l.jsxs)("span",{children:[L("login_agreement_checkbox_label"),"\xa0"]}),(0,l.jsx)("a",{className:"text-hl_text_01 hover:text-hl_text_00 cursor-pointer underline",onClick:()=>(0,y.Y)({url:"/doc/terms-of-service.html",target:"_blank"}),children:L("login_user_agreement")}),(0,l.jsxs)("span",{children:["\xa0",L("login_privacy_policy_policy"),"\xa0"]}),(0,l.jsx)("a",{className:"text-hl_text_01 hover:text-hl_text_00 cursor-pointer underline",onClick:()=>(0,y.Y)({url:"/doc/privacy-policy.html",target:"_blank"}),children:L("login_privacy_policy")})]})}),(0,l.jsx)(_.ZP,{type:"primary",onClick:()=>{let{[k]:e,[I]:t}=o.getFieldsValue();if(!e){m.Z.error(L("login_enter_phone_number"));return}if(!(0,E.aH)(e)){m.Z.error(L("login_enter_valid_phone_number"));return}if(!t){m.Z.error(L("login_enter_verification_code"));return}if(!(0,E.Pw)(t)){m.Z.error(L("login_enter_valid_verification_code"));return}T(e,t)},className:"button login-btn bg-hl_text_00 hover:bg-hl_mask_03 text-hl_text_05 mb-4 flex h-[42px] w-full items-center justify-center rounded-[100px] border-none py-0 text-[14px] font-medium leading-[22px] shadow-none outline-2 outline-offset-2\n focus:shadow-none sm:py-0 sm:text-[16
1px]",children:L("login_login_now")})]}),t&&(0,l.jsx)("button",{type:"button",onClick:()=>{o.resetFields(),null==t||t()},className:"text-hl_brand_02 hover:text-hl_text_00 mb-4 w-full rounded-[100px] text-center text-[13px]",children:L("login_back_other_methods")})]})]})})},O=n(90975),R=n(7475);function S(e){let{onBack:t,canSubmit:n}=e,{getUserInfo:a}=(0,g.Z)(),[s,i]=(0,r.useState)(""),[o,c]=(0,r.useState)(""),[d,u]=(0,r.useState)(!1),[x,p]=(0,r.useState)(0),[h,_]=(0,r.useState)(Date.now()),[m,f]=(0,r.useState)(!1),[v,b]=(0,r.useState)(""),j=(0,r.useRef)(!0),N=(0,r.useRef)(!1);(0,r.useEffect)(()=>{j.current=!0;let e=setInterval(()=>_(Date.now()),500);return()=>{j.current=!1,clearInterval(e)}},[]);let y=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s.trim())&&s.trim().length<=254,w=Math.max(0,Math.ceil((x-h)/1e3));async function E(e){if(N.current||!n()||!y||(e?!/^\d{6}$/.test(o):Date.now()<x))return;N.current=!0,f(!0),b("");let t=e?(0,R.UE)():()=>void 0;try{if(e){let e=await (0,O.loginWithEmailCode)(s,o);if(!j.current)return;if(!await a(e.isRegister,{canCommit:()=>j.current,suppressRequestToast:!0}))throw Error("USER_HYDRATION_FAILED")}else{let e=await (0,O.sendEmailLoginCode)(s);if(!j.current)return;let t=Date.now();_(t),p(t+e.retryAfterMs),u(!0)}}catch(t){j.current&&b(e?"Unable to sign in. Check your code or request a new one and try again.":"Unable to send a code. Please try again.")}finally{t(),N.current=!1,j.current&&f(!1)}}return(0,l.jsxs)("form",{className:"text-hl_text_00 mb-4 flex w-full flex-col gap-3 px-4 sm:px-6",onSubmit:e=>{e.preventDefault(),E(d)},children:[(0,l.jsx)("h2",{className:"text-center text-lg font-semibold",children:"Sign in with email"}),(0,l.jsxs)("label",{className:"flex flex-col gap-2 text-sm",children:["Email address",(0,l.jsx)("input",{type:"email",autoComplete:"email",maxLength:254,required:!0,value:s,disabled:m||d,onChange:e=>i(e.target.value),className:"bg-hl_bg_05 border-current/20 h-11 rounded-xl border px-3"})]}),d&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{role:"status",className:"text-sm",children:"Code sent. Check your inbox."}),(0,l.jsxs)("label",{className:"flex flex-col gap-2 text-sm",children:["Verification code",(0,l.jsx)("input",{autoFocus:!0,inputMode:"numeric",autoComplete:"one-time-code",pattern:"[0-9]{6}",maxLength:6,required:!0,value:o,disabled:m,onChange:e=>c(e.target.value.replace(/\D/g,"")),className:"bg-hl_bg_05 border-current/20 h-11 rounded-xl border px-3 text-lg tracking-widest"})]}),(0,l.jsx)("button",{type:"button",disabled:m||w>0,className:"min-h-11 text-sm disabled:opacity-50",onClick:()=>void E(!1),children:w?"Resend in ".concat(w,"s"):"Resend code"})]}),v&&(0,l.jsxs)("p",{role:"alert",className:"text-sm text-red-400",children:[v," ",(0,l.jsx)("a",{className:"underline",href:"mailto:[email protected]",children:"Contact support"})]}),(0,l.jsx)("button",{type:"submit",disabled:m||!y||d&&!/^\d{6}$/.test(o),className:"h-11 rounded-full bg-[#7657FF] font-medium text-white disabled:opacity-50",children:m?"Please waitâ¦":d?"Sign in":"Send code"}),d&&(0,l.jsx)("button",{type:"button",disabled:m,className:"min-h-11 text-sm underline",onClick:()=>{u(!1),c(""),b("")},children:"Change email"}),(0,l.jsx)("button",{type:"button",disabled:m,onClick:t,className:"min-h-11 text-sm underline",children:"Other sign-in options"})]})}let P={CHINA:"+86"};var T=function(){var e;let t=(0,a.I0)(),n=(0,a.v9)(e=>{var t;return null==e?void 0:null===(t=e.user)||void 0===t?void 0:t.showLoginModal}),p=(0,a.v9)(e=>e.user.loginDraftMemoryOnly),h=(0,a.v9)(e=>{var t;return null==e?void 0:null===(t=e.user)||void 0===t?void 0:t.ipLocation}),{onAppleLogin:_,onGoogleLogin:m,onFacebookLogin:f}=(0,o.Z)(),g=(0,C.T)(),v=null!==(e=null==h?void 0:h.isEU)&&void 0!==e&&e,b
1=h&&h.phonecode===P.CHINA,[j,N]=(0,r.useState)(!1),[y,w]=(0,r.useState)(!1),[E,k]=(0,r.useState)(!1),[I,O]=(0,r.useState)(!1);(0,r.useEffect)(()=>{n||(N(!1),w(!1),k(!1),O(!1),(0,x.e1)())},[n]);let R=()=>{y||k(!0)},T=()=>{(0,x.e1)(),t((0,i.pZ)(!1)),(0,d.Ej)({id:"login_result",params:{page:"login_popup_page",login_type:u.Ez.MOBILE,result_type:u.dT.FAIL,fail_reason:u.z5.CANCEL}})};return b&&I?(0,l.jsx)(L,{onBackToOtherMethods:()=>O(!1)}):(0,l.jsx)(s.Z,{open:n,onClickMask:T,children:(0,l.jsxs)("section",{className:"bg-hl_bg_03 flex w-full flex-col overflow-hidden rounded-2xl sm:w-[460px]",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("div",{className:"aspect-[690/378] w-full overflow-hidden",children:(0,l.jsx)("img",{src:"https://cdn.hailuoai.video/open-hailuo-video-web/public_assets/97aef762-46c6-4c69-914a-decf59856027.png?x-oss-process=image/resize,p_50/format,webp",alt:"login-background by Hailuo AI Video Generator",className:"h-full w-full object-cover"})}),(0,l.jsx)("button",{className:"absolute right-3 top-3 rounded-lg p-3",onClick:T,children:(0,l.jsx)(c.i7,{})})]}),(0,l.jsxs)("div",{className:"relative flex flex-col items-center ".concat(b?"justify-between":"justify-start"," sm:min-h-[312px]"),children:[(0,l.jsx)("div",{className:"text-hl_text_00 my-6",children:(0,l.jsx)(c.ow,{})}),j?(0,l.jsx)(S,{onBack:()=>N(!1),canSubmit:()=>!v||!!y||(R(),!1)}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"mb-4 flex w-full items-center justify-center px-4 sm:px-6",children:(0,l.jsxs)("button",{onClick:()=>{if(v&&!y){R();return}m()},className:"new-color-btn-bg text-hl_text_05 flex h-[44px] w-full flex-row items-center justify-center rounded-[100px]",children:[(0,l.jsx)(c._8,{}),(0,l.jsx)("span",{className:"pl-[10px] text-[14px] font-[500] leading-[22px]",children:g("login_with_google")})]})}),(0,l.jsx)("div",{className:"mb-4 flex w-full items-center justify-center px-4 sm:px-6",children:(0,l.jsxs)("button",{className:"text-hl_text_00 bg-hl_bg_05 hover:bg-hl_bg_08 flex w-full items-center justify-center rounded-[100px] py-[11px]",onClick:()=>{if(v&&!y){R();return}_()},children:[(0,l.jsx)(c.qw,{}),(0,l.jsx)("span",{className:"pl-[10px] text-[14px] font-[500] leading-[22px]",children:g("login_with_apple")})]})}),(0,l.jsx)("div",{className:"mb-4 flex w-full items-center justify-center px-4 sm:px-6",children:(0,l.jsxs)("button",{type:"button",className:"flex h-11 w-full items-center justify-center rounded-full bg-[#1877F2] text-white",onClick:()=>{if(v&&!y){R();return}f()},children:[(0,l.jsx)("span",{"aria-hidden":!0,className:"mr-2 text-2xl font-bold",children:"f"}),(0,l.jsx)("span",{className:"text-sm font-medium",children:g("login_with_facebook")})]})}),b&&(0,l.jsx)("button",{type:"button",className:"text-hl_brand_02 hover:text-hl_text_00 mb-4 rounded-[100px] text-[13px] underline-offset-4",onClick:()=>O(!0),children:g("login_phone_login_continue")}),(0,l.jsx)("button",{type:"button",className:"text-hl_text_00 border-current/20 mb-4 min-h-11 w-[90%] rounded-full border text-sm",onClick:()=>{N(!0)},children:"Continue with email"})]}),p&&(0,l.jsx)("p",{role:"status",className:"text-hl_text_03 mb-3 px-4 text-center text-xs leading-5 sm:px-6",children:g("h5_landing_guest_draft_memory_only")}),v?(0,l.jsxs)("div",{className:"mb-4 flex flex-col items-center px-4 sm:px-6",children:[(0,l.jsxs)("div",{className:"text-hl_text_03 flex items-start gap-[8px] text-[12px] font-[400] leading-[18px]",children:[(0,l.jsx)("input",{type:"checkbox",checked:y,onChange:e=>{w(e.target.checked),e.target.checked&&k(!1)},className:"mt-[2px] flex-shrink-0 cursor-pointer"}),(0,l.jsxs)("span",{onClick:()=>{let e=!y;w(e),e&&k(!1)},className:"cursor-pointer select-none",children:["I have read and agree to the"," ",(0,l.jsx)("a",{className:"text-hl_text_02 visited:text-hl_text_02 hover:text-hl_text_00 active:text-hl_text_02 underline underline-offset-4",href:"/doc/terms-of-service.html",target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),children:g("login_user_agreement")})," ","and"," ",(0,l.jsx)("a",{className:"text-hl_text_02 visited:text-hl_text_02 hover:text-hl_text_00 active:text-hl_text_02 underline underline-offset-4",href:"/doc/privacy-policy.html",target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),children:g("login_privacy_policy")})]})]}),E&&(0,l.jsx)("p",{className:"mb-0 mt-[6px] self-start text-[12px] leading-[18px] text-[#F53F3F]",children:"Please agree to the Terms of Service and Privacy Policy before continuing."})]}):(0,l.jsxs)("div",{className:"text-hl_text_03 mx-auto mb-4 max-w-[330px] text-center text-[12px] leading-[18px] sm:mb-6",children:[(0,l.jsxs)("span",{children:[g("login_agreement_checkbox_label")," "]}),(0,l.jsx)("a",{className:"text-hl_text_02 visited:text-hl_text_02 hover:text-hl_text_02 active:text-hl_text_02 underline underline-offset-4",href:"/doc/terms-of-service.html",target:"_blank",rel:"noopener noreferrer",children:g("login_user_agreement")}),(0,l.jsxs)("span",{children:[" ",g("login_privacy_policy_policy")," "]}),(0,l.jsx)("a",{className:"text-hl_text_02 visited:text-hl_text_02 hover:text-hl_text_02 active:text-hl_text_02 underline underline-offset-4",href:"/doc/privacy-policy.html",target:"_blank",rel:"noopener noreferrer",children:g("login_privacy_policy")})]})]})]})})}},45929:function(e,t,n){var l,r,a,s,i,o;n.d(t,{Cv:function(){return c},Ez:function(){return a},dT:function(){return r},z5:function(){return l}}),(s=l||(l={}))[s.SERVER_ERROR=1]="SERVER_ERROR",s[s.NO_NETWORK=2]="NO_NETWORK",s[s.CANCEL=3]="CANCEL",s[s.OTHER=4]="OTHER",s[s.OAUTH_ERROR=5]="OAUTH_ERROR",(i=r||(r={}))[i.SUCCESS=1]="SUCCESS",i[i.FAIL=2]="FAIL",(o=a||(a={})).GOOGLE="google",o.APPLE="apple",o.FACEBOOK="facebook",o.WECHAT="wechat",o.MOBILE="mobile";let c={LOGIN_RESULT:"login_result",LOGIN_POPUP_PAGE:"login_popup_page"}},90975:function(e,t,n){n.r(t),n.d(t,{loginWithEmailCode:function(){return d},sendEmailLoginCode:function(){return c}});var l=n(11719),r=n(26015),a=n(89461),s=n(47341),i=n(82705);let o={withCredentials:!0,showToast:!1,disableLoginIntercept:!0};async function c(e){var t;let{data:n}=await a.default.post("/v1/api/user/login/sms/send",{phone:"",email:e.trim(),ticket:"",randStr:""},o);if((null===(t=n.statusInfo)||void 0===t?void 0:t.code)!==0)throw n.statusInfo||Error("EMAIL_LOGIN_FAILED");return{retryAfterMs:6e4}}async function d(e,t,n){var c;let d=(null==n?void 0:n.marketingLogin)&&(0,i.gg)()?(0,s.TJ)():null,{data:u}=await a.default.post("/v1/api/user/login/email",(0,l._)({email:e.trim(),code:t},d?{attribution:d}:{},(null==n?void 0:n.marketingLogin)&&n.attributionUrl?{hl_ads_url:n.attributionUrl}:{}),(null==n?void 0:n.marketingLogin)===!0?(0,r._)((0,l._)({},o),{params:{marketing_login:"1"}}):o);if((null===(c=u.statusInfo)||void 0===c?void 0:c.code)!==0||!u.data)throw u.statusInfo||Error("EMAIL_LOGIN_FAILED");return u.data}},29587:function(){}}]);
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.