PageSourceSearch

https://www.ecovacs.com/v4/_next/static/chunks/pages/shop/recover-email-49f860ecdf90a443.js

js ecovacs.com collected 2026-10-01 11:38:19 UTC 6,952 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7832,5623],{85587:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/shop/recover-email",function(){return t(90314)}])},32921:function(e,s,t){"use strict";var r=t(97458);t(52983);var n=t(2683),a=t(84031);s.Z=function(e){return(0,r.jsx)(n.Ee,{...e,src:a.AppImgs.logo,alt:"".concat(a.APP.toLowerCase()," logo")})}},90314:function(e,s,t){"use strict";t.r(s),t.d(s,{__N_SSP:function(){return N},default:function(){return w}});var r=t(97458),n=t(52983),a=t(12438),i=t(40196),c=t(55613),o=t(32921),l=t(23061),p=t(87219),d=t(65101),u=t(8384),m=t(86507),_=t(14166),x=t.n(_);let h=new n.createContext,j=()=>{let{setInfo:e,info:s={},setStep:t,t:a}=(0,n.useContext)(h),{register:o,handleSubmit:l,formState:{errors:p}}=(0,i.cI)({defaultValues:s}),d=async(s,r)=>{r.preventDefault(),m.Wj.open(),await (0,u.lm)(s).finally(()=>m.Wj.close())&&(e(s),t("step2"))};return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"f-title",children:a("recover_password_assitance")}),(0,r.jsx)("p",{className:"text-small text-center text-gray",children:a("recover_password_assitance_discription")}),(0,r.jsxs)("form",{className:x()["form-signin"]+" pt-3",method:"post",autoComplete:"off",onSubmit:l(d),children:[(0,r.jsxs)("div",{className:"input-group input-group-lg",children:[(0,r.jsx)("div",{className:"input-group-prepend",children:(0,r.jsx)("span",{className:"input-group-text",children:(0,r.jsx)("i",{className:"iconfont icon-email"})})}),(0,r.jsx)("input",{type:"text",className:"form-control",placeholder:a("recover_password_assitance_palceholder_email"),...o("email",{required:!0,pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,10}$/i,message:a("account_invalid_email")}})}),(0,r.jsx)("p",{className:"errorTip",children:p.email?a("account_invalid_email"):""})]}),(0,r.jsx)("div",{className:"input-group f-action",children:(0,r.jsx)(c.Z,{className:"button",variant:"contained",type:"submit",children:a("recover_password_assitance_sign")})})]})]})},f=()=>{let{setInfo:e,info:s={},setStep:t,t:a}=(0,n.useContext)(h),{register:o,handleSubmit:p,formState:{errors:d}}=(0,i.cI)(),_=async(r,n)=>{n.preventDefault(),m.Wj.open();let a={...r,email:s.email};(0,u.VP)(a).then(()=>{e(a),t("step3")}).finally(()=>m.Wj.close())},j=async e=>{e.preventDefault(),m.Wj.open(),(0,u.lm)({email:s.email}).then(()=>{l.Z.success(a("resend_code_success_msg"))}).finally(()=>m.Wj.close())};return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"f-title",children:a("recover_code_title")}),(0,r.jsx)("p",{className:"text-small text-center text-gray",children:a("recover_code_discription")+" "+s.email}),(0,r.jsxs)("form",{className:x()["form-signin"]+" pt-3",method:"post",autoComplete:"off",onSubmit:p(_),children:[(0,r.jsxs)("div",{className:"input-group input-group-lg",children:[(0,r.jsx)("div",{className:"input-group-prepend",children:(0,r.jsx)("span",{className:"input-group-text",children:(0,r.jsx)("i",{className:"iconfont icon-email"})})}),(0,r.jsx)("input",{type:"text",className:"form-control",placeholder:a("recover_code_palceholder"),...o("code",{required:!0,pattern:{message:a("account_invalid_security_code")}})}),(0,r.jsx)("p",{className:"errorTip",children:d.code?a("account_invalid_security_code"):""})]}),(0,r.jsx)("div",{className:"input-group f-action",children:(0,r.jsx)(c.Z,{className:"button",variant:"contained",type:"submit",children:a("recover_code_verify")})}),(0,r.jsx)("div",{className:"input-group f-action",children:(0,r.jsx)(c.Z,{fullWidth:!0,variant:"outlined",type:"button",onClick:()=>t("step1"),children:a("back")})}),(0,r.jsx)("div",{className:"clearfix small mt-4",children:(0,r.jsx)("div",{className:"text-center",children:(0,r.jsx)("a",{href:"#",onClick:e=>j(e),children:a("recover_code_resend")})})})]})]})},v=()=>{let{info:e={},setStep:s,t}=(0,n.useContext)(h),{register:a,handleSubmit:o,formState:{errors:_},watch:j,clearErrors:f}=(0,i.cI)(),v=async(s,t)=>{t.preventDefault(),m.Wj.open();let r={...s,...e},n=await (0,u.M4)(r).finally(()=>m.Wj.close());n.ApiError?l.Z.error(n.ApiError.msg):(l.Z.success(n.ApiSuccessMsg),d.F0.push({pathname:p.SIGNIN_URL}))};return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"f-title",children:t("recover_create_new_password")}),(0,r.jsx)("p",{className:"text-small text-center text-gray",children:t("recover_create_new_password_description")}),(0,r.jsxs)("form",{className:x()["form-signin"]+" pt-3",method:"post",autoComplete:"off",onSubmit:o(v),children:[(0,r.jsxs)("div",{className:"input-group input-group-lg",children:[(0,r.jsx)("div",{className:"input-group-prepend",children:(0,r.jsx)("span",{className:"input-group-text",children:(0,r.jsx)("i",{className:"iconfont icon-password"})})}),(0,r.jsx)("input",{type:"password",autoComplete:"new-password",className:"form-control",placeholder:t("recover_create_new_password_placeholder"),...a("password",{required:!0,minLength:6})}),(0,r.jsx)("p",{className:"errorTip",children:_.email?"":_.password?t("account_invalid_password"):""})]}),(0,r.jsxs)("div",{className:"input-group input-group-lg",children:[(0,r.jsx)("div",{className:"input-group-prepend",children:(0,r.jsx)("span",{className:"input-group-text",children:(0,r.jsx)("i",{className:"iconfont icon-password"})})}),(0,r.jsx)("input",{type:"password",autoComplete:"new-password",className:"form-control",placeholder:t("recover_create_new_password_reenter"),...a("repassword",{required:!0,minLength:6,validate:{message:e=>e===j("password")?f():t("confirm_password")}})}),(0,r.jsx)("p",{className:"errorTip",children:_.email||_.password?"":_.repassword?t("confirm_password"):""})]}),(0,r.jsx)("div",{className:"input-group f-action",children:(0,r.jsx)(c.Z,{className:"button",variant:"contained",type:"submit",children:t("recover_create_new_password_save")})}),(0,r.jsx)("div",{className:"input-group f-action",children:(0,r.jsx)(c.Z,{fullWidth:!0,variant:"outlined",type:"button",onClick:()=>s("step2"),children:t("back")})})]})]})};var g=(0,d.Zh)("account")(e=>{let{t:s}
1=e,[t,a]=(0,n.useState)("step1"),[i,c]=(0,n.useState)();return(0,r.jsx)(h.Provider,{value:{t:s,setp:t,info:i,setStep:a,setInfo:c},children:(0,r.jsxs)("div",{className:x()["signin-container"],children:[(0,r.jsx)("div",{className:"f-logo",children:(0,r.jsx)(d.JD,{href:"/",children:(0,r.jsx)(o.Z,{className:"logo-img"})})}),"step1"===t&&(0,r.jsx)(j,{}),"step2"===t&&(0,r.jsx)(f,{}),"step3"===t&&(0,r.jsx)(v,{})]})})}),N=!0,w=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.N,{tKey:"page_title_email"}),(0,r.jsx)(g,{})]})},86507:function(e,s,t){"use strict";t.d(s,{Wj:function(){return n}});var r=t(29176);t(88033);let n={open:()=>r.W.emit("open"),close:()=>r.W.emit("close")}},14166:function(e){e.exports={"signin-container":"style_signin-container__DKL9y",dialog:"style_dialog__qJZvL",closeBtn:"style_closeBtn__xS59B","form-signin":"style_form-signin__nU2xy"}}},function(e){e.O(0,[196,2888,9774,179],function(){return e(e.s=85587)}),_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.