1"use strict";(self.webpackChunkequity_protect_system=self.webpackChunkequity_protect_system||[]).push([[8874],{45877:(e,s,a)=>{a.d(s,{ZP:()=>H,__:()=>E._,pc:()=>V});var o=a(1413),t=a(72791),n=a(24021),i=a(55705),r=(a(59332),a(28007)),l=a(59434),d=a(57689),c=a(56664),u=a(61091),m=a(81346),p=a(35702),v=a(40508),h=a(81898),f=a(74142),x=a(52797),y=a(38254),_=a(29569),g=a(3710),C=a(50228),Z=a(45953),w=a(37924),P=a(96746),j=a(13811),b=a(63941),S=(a(13905),a(77716)),A=a(91055),T=(a(88705),a(47367)),q=a(78246),N=a(5742),F=a(58874),k=a(71158),L=(a(69318),a(49599),a(24174)),I=a(49600),E=a(31593),z=a(75870),B=(a(56021),a(80184));const R=n.Ry().shape((0,o.Z)({},E._)),V={position:"absolute",top:0,right:0,cursor:"pointer"},H=e=>{var s,a,n,E,V,H,W,D;const M=(0,l.I0)(),O=(0,d.s0)(),U=(0,t.useRef)(),J=(0,t.useRef)(),[$,Y]=((0,t.useRef)(),(0,t.useState)("err")),[G,K]=(0,t.useState)(!1),[Q,X]=(0,t.useState)(!1),[ee,se]=(0,t.useState)(!1),[ae,oe]=(0,t.useState)(null),[te,ne]=(0,t.useState)(null),[ie,re]=(0,t.useState)(null),[le,de]=(0,t.useState)(null),[ce,ue]=(0,t.useState)(null),[me]=(0,t.useState)((()=>(0,I.w5)())),pe=e.defaultTypeName||(me.carEscrow?"Escrow Company":""),ve=(0,f.Z)(),he=(0,x.Z)(ve.breakpoints.down(884)),fe=(0,l.v9)((e=>e.signUpUser.stateList)),{spSignupLoader:xe,createAccResponse:ye,professionalsList:_e}=(0,l.v9)((e=>e.serviceProviderSignup)),{checkReCAPTCHADetails:ge,checkReCAPTCHALoader:Ce}=(0,l.v9)((e=>null===e||void 0===e?void 0:e.signUpUser)),Ze=()=>{K(!1)},we=e=>e((e=>!e)),Pe=e=>{e.preventDefault()},je=e=>{ne(e),M(L.b.fetchSuccess({})),Y("")};(0,t.useEffect)((()=>{var e,s;const a=(0,z.F)(_e,pe);if(!a)return;var o;(null===(e=U.current)||void 0===e||null===(s=e.values)||void 0===s?void 0:s.type)||(null===(o=U.current)||void 0===o||o.setFieldValue("type",a,!1))}),[_e,pe]),(0,t.useEffect)((()=>{M(q.z.setreCAPTCHA({})),console.log("states api"),M(q.z.getState({url:"states",data:{}})),M(L.b.getProfessionals({url:"service-provider/types",data:{}}))}),[]),(0,t.useEffect)((()=>{var s,a,o;(0,F.t0M)(ye)&&(null!==ye&&void 0!==ye&&ye.success?(K(!1),ne(null),M(q.z.setreCAPTCHA({})),null===J||void 0===J||null===(s=J.current)||void 0===s||s.reset(),localStorage.removeItem("CAPTCHA_Validate"),e.onBtnClick()):(K(!0),ne(null),M(q.z.setreCAPTCHA({})),null===J||void 0===J||null===(a=J.current)||void 0===a||a.reset(),null===U||void 0===U||null===(o=U.current)||void 0===o||o.setSubmitting(!1)))}),[ye]);const be={PaperProps:{style:{maxHeight:224,width:250}}};return(0,t.useEffect)((()=>{var e;if((0,F.t0M)(ge)&&null!==ge&&void 0!==ge&&null!==(e=ge.data)&&void 0!==e&&e.success&&ae&&localStorage.getItem("CAPTCHA_Validate")){localStorage.setItem("spSignupDetails",JSON.stringify(ae));const e=JSON.parse(JSON.stringify(ae)),s=(0,F.q6e)(null===e||void 0===e?void 0:e.password,N.II.toString());e.password=s,e.confirm_password=s,((e,s)=>{const a=(0,N.B6)(),t=(0,o.Z)((0,o.Z)({},e),{},{step_key:"SEND_OTP",step:0},a?{signup_source:a}:{});M(L.b.spSignupData({url:"service-provider/send-otp",data:t}))})(e)}}),[ge]),(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(C.Z,{className:"".concat(he&&"apex-padding"),children:(0,B.jsx)(i.J9,{enableReinitialize:!0,validateOnChange:!0,innerRef:U,initialValues:{first_name:"",last_name:"",company_name:"",ofc_address:"",ofc_city:"",ofc_state:"",ofc_zip:"",email:me.email,type:"",ofc_phone:"",password:"",confirm_password:""},validationSchema:R,onSubmit:(e,s)=>{console.log("values--\x3e",e),(0,c.yf)(null===e||void 0===e?void 0:e.ofc_phone)&&te&&(localStorage.setItem("CAPTCHA_Validate",1),M(q.z.checkreCAPTCHA({url:"validate-captcha?token=".concat(te),data:{}})),oe(e))},children:e=>{var s;let{values:a,setFieldValue:o,touched:t,errors:n,isSubmitting:l}=e;return(0,B.jsxs)(i.l0,{id:"sp-signup-form",children:[(0,B.jsx)(k.Z,{}),(0,B.jsxs)(Z.ZP,{container:!0,spacing:2,children:[(0,B.jsx)(Z.ZP,{item:!0,xs:12,md:6,children:(0,B.jsx)(A.Z,{id:"firstName",label:"First name",name:"first_name",validation:{values:a,setFieldValue:o,touched:t,errors:n}})}),(0,B.jsx)(Z.ZP,{item:!0,xs:12,md:6,children:(0,B.jsx)(A.Z,{id:"lastName",label:"Last name",name:"last_name",validation:{values:a,setFieldValue:o,touched:t,errors:n}})}),(0,B.jsx)(Z.ZP,{item:!0,xs:12,md:6,children:(0,B.jsx)(A.Z,{id:"emailAddress",label:"Email",n
1ame:"email",validation:{values:a,setFieldValue:o,touched:t,errors:n}})}),(0,B.jsx)(Z.ZP,{item:!0,xs:12,md:6,children:(0,B.jsx)(A.Z,{id:"companyName",label:"Company Name",name:"company_name",validation:{values:a,setFieldValue:o,touched:t,errors:n}})}),(0,B.jsx)(Z.ZP,{item:!0,xs:12,md:6,children:(0,B.jsx)(A.Z,{id:"companyAddress",label:"Company Address",name:"ofc_address",validation:{values:a,setFieldValue:o,touched:t,errors:n}})}),(0,B.jsx)(Z.ZP,{item:!0,xs:12,md:6,children:(0,B.jsx)(T.Z,{name:"ofc_phone",placeholder:"Company Phone number",values:a,touched:t,setFieldValue:o,errors:n,otherProps:{id:"companyPhone",onChange:e=>{o("ofc_phone",e),o("phone_number",e),e||(o("ofc_phone",""),o("phone_number",""))}}})}),(0,B.jsx)(Z.ZP,{item:!0,xs:12,md:6,children:(0,B.jsx)(A.Z,{id:"companyCity",label:"Company City",name:"ofc_city",validation:{values:a,setFieldValue:o,touched:t,errors:n}})}),(0,B.jsx)(Z.ZP,{item:!0,xs:12,md:6,children:(0,B.jsxs)(h.Z,{id:"companyState",fullWidth:!0,className:"sign-textField",error:t.ofc_state&&Boolean(n.ofc_state),children:[(0,B.jsx)(v.Z,{id:"demo-simple-select-label",children:"Company State"}),(0,B.jsxs)(m.Z,{labelId:"demo-simple-select-placeholder",id:"companyStateSelect",value:null===a||void 0===a?void 0:a.ofc_state,label:"Company State",name:"ofc_state",variant:"outlined",onChange:e=>{o("ofc_state",e.target.value)},MenuProps:be,children:[(0,B.jsx)(p.Z,{disabled:!0,value:"",children:(0,B.jsx)("span",{style:{color:"#00000075"},children:"State"})}),null===fe||void 0===fe?void 0:fe.map((e=>(0,B.jsx)(p.Z,{value:e.name,children:e.name})))]}),t.ofc_state&&Boolean(n.ofc_state)&&(0,B.jsx)(w.Z,{sx:{color:"#d32f2f"},children:t.ofc_state&&n.ofc_state})]})}),(0,B.jsx)(Z.ZP,{item:!0,xs:12,md:6,children:(0,B.jsx)(A.Z,{id:"companyZip",label:"Company Zip",name:"ofc_zip",validation:{values:a,setFieldValue:o,touched:t,errors:n}})}),(0,B.jsx)(Z.ZP,{item:!0,xs:12,md:6,children:(0,B.jsxs)(h.Z,{fullWidth:!0,className:"sign-textField",error:t.type&&Boolean(n.type),children:[(0,B.jsx)(v.Z,{id:"demo-simple-select-placeholder",children:"Professional type"}),(0,B.jsxs)(m.Z,{labelId:"demo-simple-select-placeholder",id:"professionalTypeSelect",value:null===a||void 0===a?void 0:a.type,label:"Professional type",name:"type",variant:"outlined",disabled:Boolean(pe),onChange:e=>{o("type",e.target.value)},MenuProps:be,children:[(0,B.jsx)(p.Z,{disabled:!0,value:"",children:(0,B.jsx)("span",{style:{color:"#00000075"},children:"Type"})}),null===_e||void 0===_e||null===(s=_e.data)||void 0===s?void 0:s.map((e=>(0,B.jsx)(p.Z,{value:e.id,children:e.type})))]}),pe?(0,B.jsxs)(w.Z,{children:["California Association of REALTORS\xae \u2014"," ",pe]}):null,t.type&&Boolean(n.type)&&(0,B.jsx)(w.Z,{sx:{color:"#d32f2f"},children:t.type&&n.type})]})}),(0,B.jsxs)(Z.ZP,{item:!0,xs:12,md:6,children:[(0,B.jsx)(P.Z,{id:"passwordField",className:"textfield",type:Q?"text":"password",placeholder:"Create Your Password",name:"password",sx:{backgroundColor:"#f6f9fc",outline:"none"},inputProps:{autoComplete:"new-password"},endAdornment:(0,B.jsx)(y.Z,{position:"end",children:(0,B.jsx)(j.Z,{"aria-label":"toggle password visibility",onClick:()=>we(X),onMouseDown:Pe,edge:"end",children:Q?(0,B.jsx)(_.Z,{}):(0,B.jsx)(g.Z,{})})}),value:null===a||void 0===a?void 0:a.password,fullWidth:!0,onChange:e=>{var s;o("password",null===(s=e.target.value)||void 0===s?void 0:s.trim())},helperText:t.password&&n.password,error:t.password&&Boolean(n.password)}),t.password&&Boolean(n.password)&&(0,B.jsx)(w.Z,{sx:{color:"#d32f2f !important",m:"0 !important",maxWidth:"100% !important"},children:t.password&&n.password})]}),(0,B.jsxs)(Z.ZP,{item:!0,xs:12,md:6,children:[(0,B.jsx)(P.Z,{id:"confirmPasswordField",className:"textfield",type:ee?"text":"password",placeholder:"Confirm Your Password",name:"confirm_password",sx:{backgroundColor:"#f6f9fc"},inputProps:{autoComplete:"new-confirm_password"},endAdornment:(0,B.jsx)(y.Z,{position:"end",children:(0,B.jsx)(j.Z,{"aria-label":"toggle confirm_password visibility",onClick:()=>we(se),onMouseDown:Pe,edge:"end",children:ee?(0,B.jsx)(_.Z,{}):(0,B.jsx)(g.Z,{})})}),value:null===a||void 0===a?void 0:a.confirm_password,fullWidth:!0,onChange:e=>{var s;o("confirm_password",null===(s=e.target.value)||void 0===s?void 0:s.trim())},helperText:t.confirm_password&&n.confirm_password,error:t.confirm_password&&Boolean(n.confirm_password)}),t.confirm_password&&Boolean(n.confirm_password)&&(0,B.jsx)(w.Z,{sx:{color:"#d32f2f !important",m:"0 !important",maxWidth:"100% !important"},children:t.confirm_password&&n.confirm_password})]}),(0,B.jsx)(Z.ZP,{item:!0,xs:12,md:12,className:"d-flex justify-content-center my-2",children:(0,B.jsx)(h.Z,{className:"textField captcha-field",children:(0,B.jsx)(r.Z,{sitekey:N.OL,onChange:je,className:"g
1-recaptcha",ref:J})})}),l&&!te&&(0,B.jsx)("p",{className:"text-danger text-center w-100 mb-3",children:l&&!te?"Please verify ReCAPTCHA":$}),(0,B.jsx)(Z.ZP,{item:!0,xs:12,md:12,children:(0,B.jsx)("div",{className:"text-center createAcBtn mt-2",children:(0,B.jsx)(u.Z,{onClick:()=>{Y(n)},type:"submit",className:"next_button",variant:"contained",children:"Create your account"})})})]})]})}})}),(0,F.t0M)(ye)&&G?(0,B.jsx)(S.default,{type:null!==ye&&void 0!==ye&&null!==(s=ye.data)&&void 0!==s&&null!==(a=s.errors)&&void 0!==a&&a.user_exist?"Warning":"Error",openPopup:G,onClose:!0,mesage:!(null!==ye&&void 0!==ye&&null!==(n=ye.data)&&void 0!==n&&n.success)&&(null===ye||void 0===ye||null===(E=ye.data)||void 0===E?void 0:E.message),onCloseFun:()=>{Ze()},buttons:(null===ye||void 0===ye||null===(V=ye.data)||void 0===V||null===(H=V.errors)||void 0===H?void 0:H.user_exist)&&(0,B.jsx)(u.Z,{className:"popup_Btn success_popup_btn",onClick:()=>{Ze(),O("/login")},children:"Go to login"})}):null,(0,F.t0M)(ge)&&!(null!==ge&&void 0!==ge&&null!==(W=ge.data)&&void 0!==W&&W.success)&&(0,B.jsx)(S.default,{type:"Error",openPopup:!0,onClose:!0,onCloseFun:()=>{M(q.z.setreCAPTCHA({}))},mesage:null===ge||void 0===ge||null===(D=ge.data)||void 0===D?void 0:D.message,footer:!1}),(0,B.jsx)(b.a,{open:xe||Ce})]})}},75870:(e,s,a)=>{function o(e,s){const a=String(s||"").trim().toLowerCase();if(!a)return"";const o=function(e){var s;const a=null!==(s=null===e||void 0===e?void 0:e.data)&&void 0!==s?s:e;return(Array.isArray(a)?a:Array.isArray(null===a||void 0===a?void 0:a.data)?a.data:Array.isArray(null===a||void 0===a?void 0:a.results)?a.results:[]).map((e=>{var s,a,o,t,n,i,r;return{id:String(null!==(s=null!==(a=null!==(o=null!==(t=null===e||void 0===e?void 0:e.id)&&void 0!==t?t:null===e||void 0===e?void 0:e._id)&&void 0!==o?o:null===e||void 0===e?void 0:e.value)&&void 0!==a?a:null===e||void 0===e?void 0:e.code)&&void 0!==s?s:""),type:String(null!==(n=null!==(i=null!==(r=null===e||void 0===e?void 0:e.type)&&void 0!==r?r:null===e||void 0===e?void 0:e.name)&&void 0!==i?i:null===e||void 0===e?void 0:e.label)&&void 0!==n?n:"")}})).filter((e=>e.id&&e.type))}(e).find((e=>e.type.toLowerCase()===a));return(null===o||void 0===o?void 0:o.id)||""}a.d(s,{F:()=>o})},31593:(e,s,a)=>{a.d(s,{_:()=>t});var o=a(24021);const t={first_name:o.Z_("Please enter your First Name.").trim("The First name cannot include leading and trailing spaces").strict(!0).min(2,"Too Short!").max(50,"Too Long!").required("First Name is required"),last_name:o.Z_("Please enter your Last name.").trim("The Last name cannot include leading and trailing spaces").strict(!0).min(2,"Too Short!").max(50,"Too Long!").required("Last Name is required"),company_name:o.Z_("Please enter your Company name.").trim("The Company name cannot include leading and trailing spaces").strict(!0).min(2,"Too Short!").max(50,"Too Long!").required("Company Name is required"),ofc_address:o.Z_("Please enter Company address.").trim("The Company address cannot include leading and trailing spaces").strict(!0).min(5,"Too Short!").max(100,"Too Long!").required("Company address is required"),ofc_suite:o.Z_().trim("The unit or suite cannot include leading and trailing spaces").strict(!0).max(50,"Too Long!"),ofc_city:o.Z_("Please enter Company city.").trim("The Company city cannot include leading and trailing spaces").strict(!0).min(2,"Too Short!").max(50,"Too Long!").required("Company city is required"),ofc_state:o.Z_("Please select the Company state").required("Company state is required"),type:o.Z_("Please select the Professional type").required("Professional type is required"),email:o.Z_("Please enter your Email Id.").email("Invalid email format").max(255).required("Email id is required"),ofc_zip:o.Z_("Please enter Company zip code.").required("Company zip is required").matches(/^[0-9]{5}$/,"Company zipcode must be exactly 5 digits"),ofc_phone:o.Z_("Please enter your Company phone number.").typeError("That doesn't look like a Company phone number").required("Company phone number is required"),password:o.Z_("Please enter Password.").required("Password is required").matches(/^.*(?=.{8,})((?=.*[!@#$%^&*()\-_=+{};:,<.>/?]){1})(?=.*\d)((?=.*[a-z]){1})((?=.*[A-Z]){1}).*$/,"Password must contain at least 8 characters, one uppercase,one lower, one number and one special case character").test("no-spaces","Password cannot contain any spaces",(e=>
1!/\s/.test(e))),confirm_password:o.Z_("Please enter Confirm Password.").required("Confirm Password is required").when("password",{is:e=>!!(e&&e.length>0),then:o.Z_().oneOf([o.iH("password")],"Both password need to be the same").test("no-spaces","Password cannot contain any spaces",(e=>!/\s/.test(e)))})}},49600:(e,s,a)=>{a.d(s,{ev:()=>r,l5:()=>n,sD:()=>i,w5:()=>t});const o="car_escrow_assignment",t=()=>{const e=new URLSearchParams(window.location.search),s=e.get("email")||"",a=e.get("assignment")||"",t="1"===e.get("car_escrow");return a&&localStorage.setItem(o,a),{email:s,assignment:a,carEscrow:t}},n=()=>{const e=localStorage.getItem(o);return e?"/closing-assignments?assignment=".concat(encodeURIComponent(e)):""},i=()=>{localStorage.removeItem(o)},r=e=>{e&&e.startsWith("/")&&!e.startsWith("//")&&localStorage.setItem("previousPath",e)}},49599:(e,s,a)=>{e.exports=a.p+"static/media/document_placeholder.4d252a009dd811a3c101.webp"},69318:(e,s,a)=>{e.exports=a.p+"static/media/pdf_placeholder.6884fa640eb8b5edd39a.webp"}}]); 2//# sourceMappingURL=8874.a6bb3dcc.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.