PageSourceSearch

https://www.equityprotect.com/static/js/5770.bfce13ae.chunk.js

js equityprotect.com collected 2026-10-05 05:09:52 UTC 10,568 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkequity_protect_system=self.webpackChunkequity_protect_system||[]).push([[5770],{2411:(e,t,a)=>{a.d(t,{Z:()=>C});var s=a(72791),n=a(24021),o=a(55705),r=a(11087),l=a(59434),i=a(28007),c=a(50228),d=a(45953),m=a(59911),p=a(81898),u=a(61091),x=a(5742),h=a(47367),g=a(71158),f=a(78246),b=a(80184);const v={email:""},j={phone:""},w=n.Ry().shape({email:n.Z_("Please enter your Email Id.").email("Invalid email format").max(255).required("Email id is required")}),Z=n.Ry().shape({phone:n.Z_("PLease enter your Phone number.").typeError("That doesn't look like a phone number").required("Mobile number is required")}),C=e=>{let{isTailwindComponent:t=!1,onSubmit:a,selectedOption:n,fromErr:C,setFormErr:y,goBack:P,resetPasswordFormRef:k,captchaRef:S,recaptchaToken:_=null,setFormValues:N=(()=>{}),handleCaptchaChange:A=(()=>{}),isBroker:T=!1}=e;const B=(0,l.I0)(),F=(0,x.HR)();return(0,s.useEffect)((()=>{F&&A("staging-bypass")}),[]),(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)(c.Z,{children:[(0,b.jsx)(o.J9,{enableReinitialize:!0,validateOnChange:!0,innerRef:k,initialValues:"email"===n?v:j,validationSchema:"email"===n?w:Z,onSubmit:e=>{(F||_)&&(localStorage.setItem("CAPTCHA_Validate",1),B(f.z.checkreCAPTCHA({url:"validate-captcha?token=".concat(_||(F?"staging-bypass":"")),data:{}})),N(e))},children:e=>{let{values:a,setFieldValue:s,touched:r,errors:l,isSubmitting:c}=e;return(0,b.jsxs)(o.l0,{id:"reset-password-form",className:"d-flex justify-content-center align-items-center",style:{flexDirection:"column"},children:[(0,b.jsx)(g.Z,{userEmail:null===a||void 0===a?void 0:a.email}),(0,b.jsxs)(d.ZP,{container:!0,spacing:1,className:"d-flex justify-content-center align-items-center mt-3 w-100",children:["email"===n?(0,b.jsx)(d.ZP,{item:!0,xs:12,md:12,textAlign:"center",alignItems:"center",children:(0,b.jsx)(m.Z,{className:"textField",variant:"outlined",label:"Your email address",id:"emailAddress",name:"email",InputLabelProps:{style:{fontWeight:"400",fontSize:"14px",lineHeight:"20px",color:"#00000075"}},value:null===a||void 0===a?void 0:a.email,onChange:e=>{y(""),s("email",e.target.value)},helperText:r.email&&l.email,error:r.email&&Boolean(l.email)})}):(0,b.jsx)(d.ZP,{xs:12,sm:10,md:6,px:1,children:(0,b.jsx)(h.Z,{name:"phone",values:a,touched:r,setFieldValue:s,errors:l,otherProps:{id:"phoneNumber",onChange:e=>{y(""),s("phone",e),e||s("phone","")}}})}),!F&&(0,b.jsx)(d.ZP,{item:!0,xs:12,md:12,className:"d-flex justify-content-center my-2",children:(0,b.jsx)(p.Z,{className:"textField captcha-field",children:(0,b.jsx)(i.Z,{sitekey:x.OL,onChange:A,className:"g-recaptcha",ref:S})})})]}),(C||c&&!F&&!_)&&(0,b.jsx)("p",{className:"text-danger text-center w-100 mb-3",children:!c||F||_?C:"Please verify ReCAPTCHA"}),(0,b.jsxs)("div",{className:"d-flex justify-content-center align-items-center mt-3",children:[(0,b.jsx)(u.Z,{className:"popup_Btn other_popup_btn mx-2",variant:"contained",onClick:()=>{P(!0),y("")},children:"Back"}),(0,b.jsx)(u.Z,{className:"".concat(t?" success_popup_btn_tailwind ":"success_popup_btn","  popup_Btn mx-2"),type:"submit",variant:"contained",children:"Reset password"})]})]})}}),(0,b.jsx)("div",{className:"text-center resetPwd mt-3",children:!T&&(0,b.jsx)(r.rU,{to:"/login",children:"Back to login"})})]})})})}},34076:(e,t,a)=>{a.d(t,{Z:()=>h});var s=a(72791),n=a(57689),o=a(50228),r=a(4565),l=a(45953),i=a(81898),c=a(83492),d=a(56650),m=a(72900),p=a(61091),u=a(9381),x=a(80184);const h=e=>{let{openPopup:t,setOpenPopup:a,setSelectedOption:h,callAPI:g,backtoLogin:f=(()=>{}),isBroker:b=!1,isTailwindComponent:v=!1}=e;const[j,w]=(0,s.useState)("email"),Z=(0,n.s0)();return(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)(o.Z,{className:"accountBoxWrapper Form_Wrapper",children:[(0,x.jsx)(r.Z,{align:"center",variant:"h3",children:"Authentication to Log in"}),(0,x.jsx)(r.Z,{align:"center",variant:"body1",className:"my-2",children:"Please choose the suitable authentication option to send verification code for reset password."}),(0,x.jsx)(l.ZP,{container:!0,rowSpacing:1,columnSpacing:{xs:1,sm:2,md:3},mt:3,className:"px-2",children:(0,x.jsx)(i.Z,{sx:{width:"100%"},children:(0,x.jsxs)(c.Z,{row:!0,defaultValue:j,"aria-labelledby":"payment-types",name:"payment-modes",onChange:e=>{console.log("Select creditBalance",e.target.value),w(e.target.value)},children:[(0,x.jsx)(l.ZP,{xs:12,md:6,px:1,pb:1,children:(0,x.jsx)(d.Z,{className:"shadow p-3 mb-5 bg-white rounded",sx:{p:2,my:1,boxShadow:"0px 2px 2px rgba(52, 75, 91, 0.06)",borderRadius:"4px"},children:(0,x.jsx)(m.Z,{value:"email",className:"paymentMode w-100",control:(0,x.jsx)(u.Z,{}),label:(0,x.jsx)(r.Z,{variant:"body1",className:"d-flex align-items-center justify-content-between text-dark m-0 fw-600",children:"Send on Email"})})})}),(0,x.jsx)(l.ZP,{xs:12,md:6,px:1,pb:1,children:(0,x.jsx)(d.Z,{className:"shadow p-3 mb-5 bg-white rounded",sx:{p:2,my:1,boxShadow:"0px 2px 2px rgba(52, 75, 91, 0.06)",borderRadius:"4px"},children:(0,x.jsx)(m.Z,{value:"phone",className:"paymentMode w-100",control:(0,x.jsx)(u.Z,{}),label:(0,x.jsx)(r.Z,{variant:"body1",className:"d-flex align-items-center justify-content-between text-dark m-0 fw-600",children:"Send on Mobile"})})})})]})})}),(0,x.jsxs)("div",{className:"text-center stepBtn",children:[(0,x.jsx)(p.Z,{className:"popup_Btn other_popup_btn mt-2 mx-1",type:"submit",variant:"contained",onClick:b?f:()=>
1Z("/login"),children:"Back"}),(0,x.jsx)(p.Z,{className:"".concat(v?" success_popup_btn_tailwind ":"success_popup_btn","  popup_Btn mt-2 mx-1"),type:"submit",variant:"contained",onClick:()=>{console.log("go next...",j),a(!1),h(j)},children:"Next"})]})]})})}},66086:(e,t,a)=>{a.d(t,{Z:()=>m});a(72791);var s=a(11087),n=a(50228),o=a(81872),r=a(87749),l=a(4565),i=a(83793),c=a(58874),d=a(80184);const m=e=>{let{content:t,footer:a,isPadding:m=!1,isAnualPlanScreen:p=!1,prefix:u,isTailwindComponent:x=!1}=e;const h=localStorage.getItem("scrp_hp");let g=(0,c.oOF)(localStorage.getItem("county-code"));return(0,d.jsx)(n.Z,{sx:{backgroundColor:"#f6f9fc",paddingTop:"30px"},children:(0,d.jsxs)(n.Z,{display:"flex",justifyContent:"center",children:[(0,d.jsx)(i.ZP,{}),(0,d.jsxs)(n.Z,{className:"".concat(p&&"border_clasess"),sx:{bgcolor:"white",width:"100%",boxShadow:"0px 30px 70px -10px rgba(52, 75, 91, 0.29)"},children:[(0,d.jsxs)(l.Z,{align:"center",variant:"subtitle1",className:"py-1 ".concat(!x&&"formHeader"),sx:{backgroundColor:x?"#4ba5dd !important":"",color:"#fff !important"},children:[(0,d.jsx)(r.Z,{sx:{fontSize:16},className:"me-1"}),"Secure connection"]}),(0,d.jsxs)(d.Fragment,{children:[t,(0,d.jsx)(o.Z,{className:"separator"}),a&&(0,d.jsx)(n.Z,{py:5,px:2,sx:m&&{marginBottom:"110px"},children:(0,d.jsxs)("div",{className:"text-center newAccountLink",children:[(0,d.jsx)(l.Z,{variant:"caption",className:"me-2",children:"Don\u2019t have an account?"}),(0,d.jsx)(s.rU,{to:"".concat(h?"/"+g:u?"/".concat(u):"","/create-account"),onClick:()=>localStorage.removeItem("CAPTCHA_Validate"),children:"Create one here"})]})})]})]})]})})}},55770:(e,t,a)=>{a.r(t),a.d(t,{default:()=>v});var s=a(72791),n=a(57689),o=a(59434),r=a(50228),l=a(67952),i=a(4565),c=a(74142),d=a(52797),m=a(63941),p=a(58874),u=a(2411),x=a(90842),h=a(66086),g=a(34076),f=a(78246),b=a(80184);const v=e=>{let{isBroker:t=!1,backtoLogin:a=(()=>{}),setIsCreatePassword:v=(()=>{}),isAssistant:j=!1,checkIsCustomer:w=(()=>{}),isTailwindComponent:Z=!1}=e;const C=(0,o.I0)(),y=(0,n.s0)(),{prefix:P}=(0,n.UO)(),k=(0,p.wOe)(P),S=(0,s.useRef)(),_=(0,s.useRef)(),[N,A]=(0,s.useState)(""),[T,B]=(0,s.use
1State)(!1),[F,I]=(0,s.useState)(!0),[R,E]=(0,s.useState)("email"),[O,H]=(0,s.useState)(null),[V,M]=(0,s.useState)(null),L=(0,c.Z)(),q=(0,d.Z)(L.breakpoints.down(884)),z=(0,o.v9)((e=>e.signInUser.forgotPasswordDetails)),{checkReCAPTCHADetails:D,checkReCAPTCHALoader:U}=(0,o.v9)((e=>null===e||void 0===e?void 0:e.signUpUser)),{isCustomerData:W}=(0,o.v9)((e=>null===e||void 0===e?void 0:e.brokerAgents)),Y=e=>{var a;console.log("Form data",e);let s="forgot-password/".concat(R);!t||null!==W&&void 0!==W&&null!==(a=W.data)&&void 0!==a&&a.is_customer||(s="broker/forgot-password/".concat(R)),C(x.I.forgotPassword({url:s,data:e,selectedOption:R})),G()},J=()=>{B(!1),null!==z&&void 0!==z&&z.success&&(A(""),t?v(!0):y("".concat(P?"/".concat(P):"","/create-new-password"),{replace:!0}))},G=()=>{B(!T),console.log("forgotpass details==>.",z)},K=e=>{H(e),C(x.I.forgotPasswordData({})),A("")};function Q(){return(0,b.jsx)(b.Fragment,{children:F?(0,b.jsx)(g.Z,{openPopup:F,setSelectedOption:E,setOpenPopup:I,backtoLogin:a,isBroker:t,isTailwindComponent:Z}):(0,b.jsxs)(r.Z,{className:"accountBoxWrapper Form_Wrapper",children:[(0,b.jsx)(i.Z,{align:"center",variant:"h3",children:"Reset your password"}),(0,b.jsxs)(i.Z,{align:"center",variant:"body1",children:["Please enter your"," ","email"===R?"Email address":"Mobile number"," ","below. You will receive a verification code to create a password via ","email"===R?"Email":"Mobile","."]}),(0,b.jsx)(u.Z,{isTailwindComponent:Z,onSubmit:K,selectedOption:R,fromErr:N,setFormErr:A,goBack:t?a:I,resetPasswordFormRef:S,captchaRef:_,recaptchaToken:O,setFormValues:M,handleCaptchaChange:K,isBroker:t})]})})}return(0,s.useEffect)((()=>{var e,t,a;(0,p.t0M)(z)&&(z.success?(J(),H(null),C(f.z.setreCAPTCHA({})),null===_||void 0===_||null===(e=_.current)||void 0===e||e.reset(),localStorage.removeItem("CAPTCHA_Validate")):(H(null),C(f.z.setreCAPTCHA({})),null===_||void 0===_||null===(t=_.current)||void 0===t||t.reset(),null===S||void 0===S||null===(a=S.current)||void 0===a||a.setSubmitting(!1),(()=>{var e;J(),A(null===z||void 0===z||null===(e=z.data)||void 0===e?void 0:e.message)})()))}),[z]),(0,s.useEffect)((()=>(window.onbeforeunload=function(){return console.log("refreshed..."),!0},()=>{console.log("refreshed stop..."),window.onbeforeunload=null}))),(0,s.useEffect)((()=>{(0,p.t0M)(D)&&null!==D&&void 0!==D&&D.success&&V&&localStorage.getItem("CAPTCHA_Validate")&&(j?w(V):Y(V))}),[D]),(0,s.useEffect)((()=>{(0,p.t0M)(W)&&null!==W&&void 0!==W&&W.success&&V&&localStorage.getItem("CAPTCHA_Validate")&&Y(V)}),[W]),(0,s.useEffect)((()=>{P&&((0,p.t0M)(k)||y("/login",{replace:!1}))}),[P]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(l.Z,{container:!0,children:(0,b.jsx)(l.Z,{xs:12,sm:12,mdOffset:t?0:2,md:t?12:8,lgOffset:t?0:2,lg:t?12:8,xlOffset:t?0:2,xl:t?12:8,children:t?Q():(0,b.jsx)(h.Z,{isPadding:q,content:Q(),prefix:null===k||void 0===k?void 0:k.prefix,footer:!0,isTailwindComponent:Z})})}),(0,b.jsx)(m.a,{open:T||U})]})}}}]);
2//# sourceMappingURL=5770.bfce13ae.chunk.js.map

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.