PageSourceSearch

https://www.eufy.com/_next/static/chunks/17085.45dd0c785cfdb24b.js

js eufy.com collected 2026-09-24 09:33:14 UTC 8,875 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4224c5c7-69bc-4846-b04d-02ce3ddb5531",e._sentryDebugIdIdentifier="sentry-dbid-4224c5c7-69bc-4846-b04d-02ce3ddb5531")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[17085],{80497:function(e,t,i){"use strict";var n=i(85893),o=i(67294),s=i(44829),a=i.n(s),l=i(11472),r=i(93967),u=i.n(r),d=i(32231),c=i(60789),_=i(5307),g=i(56583),v=i(61506),m=i(61806),p=i(66300),h=i(25362),b=i(10494),x=i(9977);t.Z=e=>{var t,i,s;let{data:r,gs:f,locale:C,email:k,onSuccess:R}=e,y={...a(),...f},[A,L]=(0,o.useState)(!1),[T,j]=(0,o.useState)(!1),[N,Q]=(0,o.useState)(""),[w,E]=(0,o.useState)(""),[S,M]=(0,o.useState)(60),{registrationsOptions:Z,setRegistrationsPopup:I}=(0,_.l8)(),O=(0,h.dd)(b.Z),P=Array(6).fill(""),[B,U]=(0,o.useState)(""),[q,D]=(0,o.useState)(P),[W,H]=(0,o.useState)(""),J=(0,o.useRef)(null),Y=q.filter(e=>e),{profile:z}=(0,v.U)(),F=(0,o.useCallback)(async()=>{var e,t,i,n,o;if(!(null==Y?void 0:Y.length)){U((null==r?void 0:r.codeEmptyError)||"");return}if((null==Y?void 0:Y.length)!==6)return;L(!0),(0,g.RC)({event:"ga4Event",event_name:"lp_button",member_active_status:(null==z?void 0:z.activated)?"active":"not active",event_parameters:{page_group:"reg_sub_pop",info:(null==Z?void 0:Z.memberQuickLogin)?"listing prime price":""},position:"success",button_name:r.buttonText}),(0,g.RC)({event:"ga4Event",event_name:"user_center",event_parameters:{page_group:"login_pop",info:(null==Z?void 0:Z.memberQuickLogin)?"listing prime price":""},position:"activate_card",button_name:r.buttonText});let s=await (0,d.default)({action:"account",needRecaptcha:!0,locale:C,url:"/api/multipass/account/quick_logins/code_auth",method:"POST",body:{email:k,login_code:Y.join("")}}).finally(()=>L(!1));if(s.status>100&&s.status<300){let n=btoa(null==s?void 0:null===(t=s.data)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.auth_token);O.show(),I(!1),(0,x.d8)("simplify_registrations_options",JSON.stringify({loginRedirectUrl:null==Z?void 0:Z.loginRedirectUrl,monthlyPlus:null==Z?void 0:Z.monthlyPlus,annualPlus:null==Z?void 0:Z.annualPlus,cartId:null==Z?void 0:null===(i=Z.cart)||void 0===i?void 0:i.id,memberQuickLogin:null==Z?void 0:Z.memberQuickLogin}));let o="".concat(m.n1,"/login?app=").concat((0,p.PO)(C),"&t=").concat(n,"&redirect=").concat(encodeURIComponent(location.href));window.location.href=o,R&&R()}else(null==s?void 0:null===(n=s.data)||void 0===n?void 0:n.error_code)==="147"?U((null==r?void 0:r.incorrectCodeError)||"Invalid verification code."):(null==s?void 0:null===(o=s.data)||void 0===o?void 0:o.error_code)==="154"?U((null==r?void 0:r.expiredCodeMessage)||""):U((null==r?void 0:r.sendEmailErrorMessage)||"");let a=setTimeout(()=>{E(""),Q(""),clearTimeout(a)},5e3)},[Y,null==z?void 0:z.activated,null==Z?void 0:Z.memberQuickLogin,null==Z?void 0:Z.loginRedirectUrl,null==Z?void 0:Z.monthlyPlus,null==Z?void 0:Z.annualPlus,null==Z?void 0:null===(t=Z.cart)||void 0===t?void 0:t.id,r.buttonText,null==r?void 0:r.codeEmptyError,null==r?void 0:r.incorrectCodeError,null==r?void 0:r.expiredCodeMessage,null==r?void 0:r.sendEmailErrorMessage,C,k,O,I,R]),G=(0,o.useCallback)(async()=>{if(!k)return;let e="".concat(location.href).concat(location.href.includes("?")?"&":"?","ref=quickloginauth_reg_sub_pop");j(!0);let t=await (0,d.default)({action:"login",needRecaptcha:!0,locale:C,url:"/api/multipass/account/quick_logins/login_token",method:"POST",body:{email:k,included_code:!0,data:btoa(JSON.stringify({redirect:e}))}});if(j(!1),t.status>100&&t.status<300){E("success"),Q((null==r?void 0:r.sendEmailSuccessMessage)||"");let e=setInterval(()=>{M(t=>t<=0?(clearInterval(e),60):t-1)},1e3)}else E("error"),Q((null==r?void 0:r.sendEmailErrorMessage)||"");let i=setTimeout(()=>{E(""),Q(""),clearTimeout(i)},5e3);(0,g.RC)({event:"ga4Event",event_name:"lp_button",member_active_status:(null==z?void 0:z.activated)?"active":"not active",event_parameters:{page_group:"reg_sub_pop",info:(null==Z?void 0:Z.memberQuickLogin)?"listing prime price":""},position:"success",button_name:null==r?void 0:r.sendAgainText})},[null==r?void 0:r.sendAgainText,null==r?void 0:r.sendEmailErrorMessage,null==r?void 0:r.sendEmailSuccessMessage,k,C,null==z?void 0:z.activated,null==Z?void 0:Z.memberQuickLogin]),K=()=>{var e;(null==J?void 0:J.current)&&(null==J||null===(e=J.current)||void 0===e||e.focus())};return(0,o.useEffect)(()=>{(null==Z?void 0:Z.sendAuthCodeManually)&&G()},[G,null==Z?void 0:Z.sendAuthCodeManually]),(0,n.jsx)("div",{className:u()(y.registrations_auth_code,{[y.disabled]:A}),children:(0,n.jsxs)("div",{className:u()(y.registrations_wrap,"px-5 !pb-12 pt-12 min-l:px-12"),children:[(0,n.jsxs)("div",{className:y.registrations_auth_code_title,children:[(0,n.jsx)(l.Z,{className:y.rac_title,html:null==r?void 0:r.authCodeTitle}),(0,n.jsx)(l.Z,{className:y.rac_desc,html:null==r?void 0:null===(i=r.authCodeDe
1sc)||void 0===i?void 0:i.replace("%email%",k)})]}),(0,n.jsxs)("div",{className:y.registrations_auth_code_body,children:[(0,n.jsx)(l.Z,{className:y.rac_enter_code_text,html:null==r?void 0:r.enterActiveCodeText}),(0,n.jsx)("div",{className:y.numberBox,children:q.map((e,t)=>{let i=q.indexOf("")===t;return(0,n.jsxs)("div",{className:u()(y.itemContent,{active:!!e}),onClick:K,children:[e,i&&(0,n.jsx)("span",{className:u()(y.blinking),children:"l"})]},t)})}),(0,n.jsx)("div",{className:y.inputBoxWrap,children:(0,n.jsx)("input",{type:"text",value:W,onBlur:()=>U(""),onChange:e=>{let t=e.target.value.replace(/[^0-9]/g,"").substr(0,6),i=[...t],n=q.map((e,t)=>i[t]||"");H(t),D(n)},pattern:"[0-9]*",autoComplete:"one-time-code",inputMode:"numeric",maxLength:6,ref:J})}),B&&(0,n.jsx)(l.Z,{className:y.error,html:B}),(null==r?void 0:r.authCodeContent)&&(0,n.jsx)("ul",{className:y.rac_content,dangerouslySetInnerHTML:{__html:null==r?void 0:r.authCodeContent}})]}),(0,n.jsxs)("div",{className:y.registrations_auth_code_footer,children:[(0,n.jsx)(l.Z,{variant:"inline",className:y.authCodeReceiveText,html:null==r?void 0:r.authCodeReceiveText})," ",S&&60!==S?(0,n.jsx)(l.Z,{variant:"inline",html:null==r?void 0:null===(s=r.retrieveText)||void 0===s?void 0:s.replace("%countdownTime%",S.toString()),className:u()(y.sendAgainText,"!text-eufy-color")}):(0,n.jsx)(l.Z,{variant:"inline",onClick:G,className:u()(y.sendAgainText,{"pointer-events-none":T}),html:null==r?void 0:r.sendAgainText}),A?(0,n.jsx)("button",{className:u()(y.rac_submit,y.registrations_btn,y.flex_center,y.loading_btn),children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,n.jsx)("path",{d:"M1 10C1 14.9706 5.02944 19 10 19C14.9706 19 19 14.9706 19 10C19 5.02944 14.9706 1 10 1",stroke:"white",strokeWidth:"2",strokeLinecap:"round"})})}):(0,n.jsx)("button",{type:"submit",className:u()(y.rac_submit,y.registrations_btn,y.flex_center),onClick:F,children:r.buttonText}),(0,n.jsx)(l.Z,{className:y.note,html:null==r?void 0:r.note})]}),(0,n.jsx)(c.v,{status:w,message:N})]})})}},44829:function(e){e.exports={rac_title:"RegistrationsQuickLoginAuthCode_rac_title__2J4Rl",rac_desc:"RegistrationsQuickLoginAuthCode_rac_desc__OqIta",rac_enter_code_text:"RegistrationsQuickLoginAuthCode_rac_enter_code_text__cZ0Oy",numberBox:"RegistrationsQuickLoginAuthCode_numberBox__bt_2z",itemContent:"RegistrationsQuickLoginAuthCode_itemContent__4xZu4",inputBoxWrap:"RegistrationsQuickLoginAuthCode_inputBoxWrap__UBhb0",rac_content:"RegistrationsQuickLoginAuthCode_rac_content__n6wLl",registrations_auth_code_footer:"RegistrationsQuickLoginAuthCode_registrations_auth_code_footer__Qqf35",authCodeReceiveText:"RegistrationsQuickLoginAuthCode_authCodeReceiveText__7CHcp",sendAgainText:"RegistrationsQuickLoginAuthCode_sendAgainText__SoTFq",rac_submit:"RegistrationsQuickLoginAuthCode_rac_submit__oYF3I",note:"RegistrationsQuickLoginAuthCode_note__0WXYQ",error:"RegistrationsQuickLoginAuthCode_error__ATejw",blinking:"RegistrationsQuickLoginAuthCode_blinking__x5N8d",blink:"RegistrationsQuickLoginAuthCode_blink__Zvb8C"}},77930:function(e){e.exports={flex_center:"Registrations_flex_center__5P9_K",registrations_title:"Registrations_registrations_title__Cdove",registrations_btn:"Registrations_registrations_btn__ZHt4q",registrations_input:"Registrations_registrations_input__eshQE",registrations_back:"Registrations_registrations_back__teUYa",registrations_wrap:"Registrations_registrations_wrap__Hkpj9",rsm_close_mask:"Registrations_rsm_close_mask__LmRLM",form_error:"Registrations_form_error__AtOzN",loading_btn:"Registrations_loading_btn__GvkAk",rotate:"Registrations_rotate__liOye",disabled:"Registrations_disabled__EpP6Q",loading_icon:"Registrations_loading_icon__4bfOi",input_error:"Registrations_input_error__UdB7U"}}}]);

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.