(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7365],{16905:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ea}});var o=n(83340),r=n(68902),i=n(29955),l=n(30828),a=n(63445),s=n(48278),c=n(66536),u=n(14757),d=n(63627),p=n(32361);let m=l.CD,h=d.ZP.div.withConfig({componentId:"sc-effbdc96-0"})(["width:100%;.allow-us-check{margin-top:25px;}.allow-us-label{font-style:normal;font-weight:400;font-size:12px;color:#2f3437;}"]),f=d.ZP.div.withConfig({componentId:"sc-effbdc96-1"})(["background:#ffffff;border:1px solid #ced3d7;border-radius:4px;display:flex;align-items:center;height:48px;width:100%;margin-bottom:16px;.country-code,input{font-style:normal;font-weight:500;color:#2a2f32;font-size:16px !important;}.separator{border-left:1px solid #ced3d7;height:90%;}.country-code{margin-left:16px;}.number{margin-left:16px;}"]);var g=e=>{let[t,n]=(0,u.useState)({extension:m,number:"",symbol:(0,l.bK)(m)}),r=t=>{e.onChange&&e.onChange({target:{value:t}})},i=e=>{let o=e.target,{name:i}=o,{value:a}=o,s={...t};"number"===i&&Object.assign(s,{[i]:a=a.replace(/[^0-9]/g,"")}),"extension"===i&&Object.assign(s,{[i]:a,symbol:(0,l.bK)(a)}),n(s),r(s)},d=(0,u.useMemo)(()=>({fontSize:"16px"}),[]);return(0,o.BX)(h,{children:[(0,o.tZ)(p.Z,{children:e.label||"Enter Mobile Number "}),(0,o.BX)(f,{children:[(0,o.tZ)(c.Z,{id:"country-code-input",onChange:i,className:"country-code",input:(0,o.tZ)(a.ZP,{}),value:null==t?void 0:t.extension,name:"extension",children:[l.CD].map(e=>(0,o.tZ)(s.Z,{sx:d,value:e,children:e},e))}),(0,o.tZ)("div",{className:"separator"}),(0,o.tZ)(a.ZP,{onChange:i,className:"number",name:"number",value:null==t?void 0:t.number,placeholder:"Mobile Number",inputProps:{inputMode:"numeric"},id:"mobile-number-input"})]})]})},b=n(23243),v=n(41751),P=n.n(v),Z=n(45189);function _(e){let{RESEND_OTP_WAIT_TIME:t}=(0,b.Z)(),[n,r]=u.useState(""),i=e.name,[l,a]=(0,u.useState)(t),s=(0,u.useRef)(null),c=(0,u.useCallback)(()=>{clearInterval(s.current),a(t)},[]),d=(0,u.useCallback)(()=>{c(),s.current=setInterval(()=>{a(e=>e<2?(clearInterval(s.current),0):e-1)},1e3)},[]);return(0,u.useEffect)(()=>{e.startTimer&&d()},[e.startTimer,e.sentTo]),(0,u.useEffect)(()=>{e.onChange({target:{name:i,value:n}},n)},[n]),(0,o.BX)(x,{children:[(0,o.tZ)(p.Z,{children:"OTP Verification"}),e.sentTo&&(0,o.BX)("span",{className:"OTPInput_sent_to",children:["Enter OTP sent to ",e.sentTo]}),(0,o.tZ)("span",{onClick:e.onChangeNumber,className:P()("OTPInput_change_number"),children:"Change Number"}),(0,o.tZ)(Z.Z,{value:n,onChange:r,inputType:"number",numInputs:e.length,renderInput:(e,t)=>(0,o.tZ)(T,{...e,id:"OTP-input-".concat(t+1)})}),e.error&&(0,o.tZ)("span",{className:"OTPInput_error",children:e.error}),l?(0,o.BX)("span",{className:"OTPInput_resend_in",children:["Resend OTP in ",l<10?"0".concat(l):l,"s"]}):(0,o.tZ)("span",{onClick:()=>{e.onResend&&e.onResend(),c(),d()},className:"OTPInput_resend_button",children:"Resend OTP"})]})}let T=d.ZP.input.withConfig({componentId:"sc-7485cac1-0"})(["text-align:center;width:48px !important;height:48px;padding:0;margin:12px 8px 0 0;background:#ffffff;border:1px solid #ced3d7;border-radius:4px;::-webkit-outer-spin-button,::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}"]),x=d.ZP.div.withConfig({componentId:"sc-7485cac1-1"})(["span{display:block;}.OTPInput_error{margin-top:4px;font-weight:400;font-size:10px;color:#bb111a;}.OTPInput_heading{font-style:normal;font-weight:600;font-size:16px;color:#22272a;}.OTPInput_sent_to{font-style:normal;font-weight:400;font-size:12px;color:#85929b;}.OTPInput_change_number{font-style:normal;font-weight:500;font-size:12px;color:#0066ff;margin-top:4px;cursor:pointer;&.disabled{opacity:0.5;}}.OTPInput_resend_in{font-style:normal;font-weight:400;font-size:12px;color:#85929b;margin-top:28px;}.OTPInput_resend_button{font-weight:500;font-size:12px;color:#0066ff;cursor:pointer;margin-top:28px;}"]);var S=n(82913),C=n(44460);let y=e=>{},I=u.createContext({trackLoginScreenVisited:y,trackPhoneNumberSubmitted:y,trackOTPScreenShown:y,trackOTPSubmitted:y,trackUserInputsScreenShown:y,trackUserInputsDoneClicked:y});function w(e){let{track:t}=(0,C.i)(),{eventProps:n}=e,r={...n||{}};function i(){t(S.e0,r)}return(0,u.useEffect)(()=>{i()},[]),(0,o.tZ)(I.Provider,{value:{trackLoginScreenVisited:i,trackPhoneNumberSubmitted(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(S.xt,{...r,...e})},trackOTPScreenShown(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(S.PW,{...r,...e})},trackOTPSubmitted(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(S.PI,{...r,...e})},trackUserInputsScreenShown(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(S.AJ,{...r,...e})},trackUserInputsDoneClicked(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(S.ZI,{...r,...e})}},children:e.children})}let O=()=>(0,u.useContext)(I);var N=n(37752),k=n(68089),E=n(72411),B=n(31294);let L=(e,t,n)=>E.M.post(B.eQ.requestOTP,{mobile:e,country_code:t,...n}).then(e=>e),U=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return E.M.post(B.eQ.validateOTP,{mobile:e,OTP:n,country_code:t,...o}).then(e=>e)};var A=n(63089),M=n(94191),D=n(27246),R=n.n(D),z=n(29866),F=n(76769),W=n(63129),X=n(21672),Q=n(94401),j=n(82965),V=n(68254),G=n(45616);let K=e=>{let t=(0,j.o)(e=>({place:e.place,latLng:e.latLng})),n=O(),r=(0,V.TA)({initialValues:{first_name:"",last_name:"",user_type:"",location:t},onSubmit(t){n.trackUserInputsDoneClicked({}),e.onSubmit&&e.onSubmit(t)},validationSchema:(0,G.Ry)({first_name:(0,G.Z_)().required().label("First Name"),last_name:(0,G.Z_)().required().label("Last Name"),user_type:(0,G.Z_)().required("Select Who are you"),location:(0,G.Ry)().required("Select Location")})});(0,u.useEffect)(()=>{n.trackUserInputsScreenShown({})},[]);let l=e=>r.values[e],a=e=>r.touched[e]?r.errors[e]:"",s=r.handleChange,c=r.handleBlur;return(0,o.BX)(J,{children:[(0,o.tZ)(q,{className:"field",children:(0,o.tZ)(Q.Z,{label:"First Name",name:"first_name",fullWidth:!0,placeholder:"First Name",onChange:s,onBlur:c,value:l("first_name"),error:!!a("first_name"),helperText:a("first_name")})}),(0,o.tZ)(q,{children:(0,o.tZ)(Q.Z,{label:"Last Name",name:"last_name",fullWidth:!0,placeholder:"Last Name",onChange:s,onBlur:c,value:l("last_name"),error:!!a("last_name"),helperText:a("last_name")})}),(0,o.tZ)(q,{children:(0,o.tZ)(X.Z,{label:"Who are you?",name:"user_type",description:"Select your profession",onChange:s,onBlur:c,value:l("user_type"),error:!!a("user_type"),helperText:a("user_type"),options:[{label:"Homeowner",value:"ho"},{label:"Construction Professional",value:"sp"},{label:"Seller",value:"seller"}]})}),(0,o.tZ)(q,{children:(0,o.tZ)(W.default,{error:!a("location"),helperText:a("location"),onChange:e=>s({target:{value:e,name:"location"}}),label:"Location"})}),(0,o.tZ)(i.Z,{onClick:()=>r.handleSubmit(),sx:{marginTop:"16px"},fullWidth:!0,id:"onboarding_form_continue_button",children:"Continue"})]})},q=d.ZP.div.withConfig({componentId:"sc-ff0ed309-0"})(["margin-top:1rem;"]),J=d.ZP.form.withConfig({componentId:"sc-ff0ed309-1"})([""]);var Y=n(25366),H=n(66397),$=n(13944),ee=n.n($);let et=e=>{let t=(0,V.TA)({initialValues:{profession_id:NaN},onSubmit(t){e.onSubmit&&e.onSubmit(t)},validationSchema:(0,G.Ry)({profession_id:(0,G.Rx)().required().label("Profession")})}),[n,r]=(0,u.useState)([]);(0,u.useEffect)(()=>{(0,Y.Z)().then(e=>{r(e)})},[]);let l=(0,u.useMemo)(()=>n.map(e=>({value:e.id,label:e.profession})),[n]);return(0,o.BX)(eo,{className:ee().container,children:[(0,o.tZ)("form",{onSubmit:t.handleSubmit,children:(0,o.tZ)(en,{children:(0,o.tZ)(X.Z,{error:!!t.errors.profession_id,helperText:t.errors.profession_id,onChange:t.handleChange,label:"Select your profession",name:"profession_id",options:l})})}),(0,H.createPortal)((0,o.tZ)("div",{className:ee().buttonContainer,children:(0,o.tZ)(i.Z,{onClick:t.submitForm,sx:{marginTop:"16px"},fullWidth:!0,id:"onboarding_professionals",className:"SelectProfessionals_Done_Button",children:"Continue"})}),document.getElementById("fixed-button"))]})},en=d.ZP.div.withConfig({componentId:"sc-b51ed573-0"})(["margin-top:1rem;margin-bottom:3rem;"]),eo=d.ZP.div.withConfig({componentId:"sc-b51ed573-1"})([""]),er={MOBILE_NUMBER_INPUT:0,OTP_INPUT:1,USER_ONBOARDING_INFO:2,SELECT_PROFESSION:3},ei=["+913000000001"];function el(e){var t;let n=ec(),l=(0,u.useRef)(null),{setUser:a,setToken:s,user:c,token:d,onboarded:p,authStatus:m}=(0,M.tN)(),h=m===M.bF&&p,{extension:f,mobileNumber:v,numberWithExtension:P,countrySymbol:Z}=(0,u.useMemo)(()=>{let e=n.mobile;return(null==e?void 0:e.extension)&&(null==e?void 0:e.number)?{numberWithExtension:"".concat(null==e?void 0:e.extension).concat(null==e?void 0:e.number),extension:null==e?void 0:e.extension,mobileNumber:null==e?void 0:e.number,countrySymbol:e.symbol}:{numberWithExtension:"",extension:"",mobileNumber:"",countrySymbol:e.symbol}},[n.mobile]);(0,u.useEffect)(()=>{var e;null===(e=l.current)||void 0===e||e.reset()},[n.activeStep]),(0,u.useEffect)(()=>{h&&e.onNext&&e.onNext({},{userDetails:c,accessToken:d})},[h]);let T=O(),x=(0,u.useMemo)(()=>{var e;return!!ei.includes(P)||(null===(e=R()(P))||void 0===e?void 0:e.isValid)},[P]),S=(null===(t=n.OTP)||void 0===t?void 0:t.length)!==4,C=async()=>{var e;if(!x)return console.error("Phone number is invalid");let t=await (null===(e=l.current)||void 0===e?void 0:e.getToken());n.changeStep(er.OTP_INPUT),T.trackPhoneNumberSubmitted({number:n.mobile}),T.trackOTPScreenShown({}),L(P,Z,t).then(()=>{n.changeStep(er.OTP_INPUT)})},y=t=>{a(t.userDetails),s(t.accessToken),e.onNext&&e.onNext({},t)},I=e=>{var t;a(e.userDetails),s(e.accessToken),(null==e?void 0:null===(t=e.userDetails)||void 0===t?void 0:t.onboarded)?y(e):n.changeStep(er.USER_ONBOARDING_INFO)},w=async()=>{var e;T.trackOTPSubmitted({});let t=await (null===(e=l.current)||void 0===e?void 0:e.getToken());U(P,Z,n.OTP,t).then(e=>{I(e.data),n.setOTPError("")}).catch(e=>{var t,o;n.setOTPError((null===(o=e.response)||void 0===o?void 0:null===(t=o.data)||void 0===t?void 0:t.message)||"Invalid OTP, try again")})},{PAGE_URLS:{TERMS_AND_CONDITIONS:E,PRIVACY_POLICY:B}}=(0,b.Z)();return h?(0,o.tZ)(eu,{children:(0,o.tZ)(N.Z,{})}):(0,o.BX)(ed,{children:[(0,o.tZ)(r.S,{ref:l}),(0,o.BX)(F.Nm,{disabled:!0,index:n.activeStep,children:[(0,o.BX)(ep,{children:[(0,o.tZ)(g,{onChange:e=>{let{target:{value:t}}=e;return n.setMobile(t)},label:"Enter WhatsApp Number"}),(0,o.tZ)(i.Z,{onClick:C,disabled:!x,fullWidth:!0,id:"mobile-number-submit-button",children:"Continue"}),(0,o.tZ)(k.Z,{children:(0,o.tZ)(em,{children:(0,o.BX)("p",{children:["By continuing, you agree to our"," ",(0,o.tZ)("a",{href:E,children:"Terms of Services"})," &"," ",(0,o.tZ)("a",{href:B,children:"Privacy Policy"})," ",(0,o.tZ)("br",{})," & allow us to contact you via WhatsApp, phone, SMS, etc."]})})})]},er.MOBILE_NUMBER_INPUT),(0,o.BX)(ep,{children:[(0,o.tZ)("div",{children:(0,o.tZ)(_,{startTimer:n.activeStep===er.OTP_INPUT,sentTo:n.mobile.number,onChangeNumber:()=>n.changeStep(er.MOBILE_NUMBER_INPUT),value:n.OTP,length:4,name:"OTP",error:n.OTPError,onResend:C,onChange:(e,t)=>n.setOTP(t),numeric:!0})}),(0,o.tZ)(i.Z,{disabled:S,sx:{marginTop:"16px"},fullWidth:!0,onClick:w,id:"OTP-verify-button",children:"Verify"})]},er.OTP_INPUT),(0,o.tZ)(ep,{children:(0,o.tZ)(K,{onSubmit:e=>{var t,o,r,i,l;let a={first_name:e.first_name,last_name:e.last_name,area_code:e.location.place.areaCode,location:{lat:null==e?void 0:null===(o=e.location)||void 0===o?void 0:null===(t=o.latLng)||void 0===t?void 0:t.lat.toString(),lon:null==e?void 0:null===(l=e.location)||void 0===l?void 0:null===(i=l.latLng)||void 0===i?void 0:null===(r=i.lng)||void 0===r?void 0:r.toString()},user_type:e.user_type};n.setUserData(a),"sp"==e.user_type?n.changeStep(er.SELECT_PROFESSION):(0,A.updateUser)(a).then(e=>{y({userDetails:e,accessToken:d})})}})},er.USER_ONBOARDING_INFO),(0,o.tZ)(ep,{children:(0,o.tZ)(et,{onSubmit:e=>{let{profession_id:t}=e,o={...n.userData,profession_id:+t};(0,A.updateUser)(o).then(e=>{y({userDetails:e,accessToken:d})})}})},er.SELECT_PROFESSION)]})]})}function ea(e){return(0,o.tZ)(w,{eventProps:e.eventProps,children:(0,o.tZ)(el,{...e})})}let es={mobile:{extension:"",number:"",symbol:""},OTP:"",OTPError:"",activeStep:er.MOBILE_NUMBER_INPUT,userData:{},setMobile:e=>{},changeStep:e=>{},setOTP:e=>{},setOTPError:e=>{},setUserData:e=>{}},ec=(0,z.Ue)()(e=>({...es,setOTPError:t=>e({OTPError:t}),changeStep:t=>e({activeStep:t}),setOTP:t=>{e({OTP:t})},setMobile:t=>e({mobile:t}),setUserData:t=>e({userData:t})})),eu=d.ZP.div.withConfig({componentId:"sc-457f4352-0"})(["height:100vh;display:flex;justify-content:center;align-items:center;"]),ed=d.ZP.div.withConfig({componentId:"sc-457f4352-1"})([""]),ep=d.ZP.div.withConfig({componentId:"sc-457f4352-2"})(["padding:0 4px;"]),em=d.ZP.div.withConfig({componentId:"sc-457f4352-3"})(["font-family:",";position:absolute;font-weight:500;font-size:10px;text-align:center;bottom:0;padding:18px;display:flex;align-items:center;justify-content:center;left:0;right:0;color:#85929b;@media ","{p{width:504px;}}"],e=>{let{theme:t}=e;return t.fonts.poppins},e=>{let{theme:t}=e;return t.mediaQueries.mobileFirst.aboveSM})},1074:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});var o=n(83340),r=n(14757),i=n(42816),l=n(63627);function a(e){let[t,n]=(0,r.useState)(1);return(0,r.useEffect)(()=>{n(e.quantity)},[e.quantity]),(0,o.BX)(s.Wrapper,{children:[(0,o.tZ)(s.Icon,{onClick:()=>e.onChange(t-1),role:"button","data-testid":"minus",children:(0,o.tZ)(i.ywL,{})}),(0,o.tZ)(s.Value,{className:"QuantityUpdateInput_value",children:t}),(0,o.tZ)(s.Icon,{onClick:()=>e.onChange(t+1),role:"button","data-testid":"plus",children:(0,o.tZ)(i.Lfi,{})})]})}let s={Wrapper:l.ZP.div.withConfig({componentId:"sc-b8317b82-0"})(["border:1px solid #ced3d7;border-radius:4px;display:flex;width:80px;justify-content:space-between;align-items:center;"]),Value:l.ZP.div.withConfig({componentId:"sc-b8317b82-1"})(["font-style:normal;font-weight:500;font-size:10px;color:#2f3437;user-select:none;@media ","{font-size:12px;}"],e=>{let{theme:t}=e;return t.mediaQueries.mobileFirst.aboveMD}),Icon:l.ZP.div.withConfig({componentId:"sc-b8317b82-2"})(['background:#fafafa;width:20px;aspect-ratio:1/1;display:flex;justify-content:center;align-items:center;cursor:pointer;&[data-testid="minus"]{border-radius:4px 0px 0px 4px;}&[data-testid="plus"]{border-radius:0 4px 4px 0;}svg{width:12;}@media ',"{svg{width:15;}}"],e=>{let{theme:t}=e;return t.mediaQueries.mobileFirst.aboveMD})}},76769:function(e,t,n){"use strict";n.d(t,{Kn:function(){return o.default},Nm:function(){return i.Z},rK:function(){return r.r}});var o=n(16905),r=n(1074),i=n(4697)},63129:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return P}});var o=n(83340),r=n(37752),i=n(7240),l=n(36480),a=n(46079),s=n(23243),c=n(82965),u=n(25438),d=n(77245),p=n(66680),m=n.n(p),h=n(14757),f=n(63627),g=n(4412),b=n(32361),v=n(88738);function P(e){let[t,p]=(0,h.useState)([]),[f,P]=(0,h.useState)(!1),{GOOGLE_MAP_API_KEY:C=""}=(0,s.Z)();C||console.error("MISSING GOOGLE_MAP_API_KEY!");let y=e.TextField,{search:I,error:w,latLng:O,place:N,selectedPlace:k,setValue:E,clearPlace:B}=(0,c.o)(),L=!(null==I?void 0:I.trim())&&!(null==N?void 0:N.formattedAddress);(0,h.useEffect)(()=>{e.onChange&&(O&&N?e.onChange({latLng:O,place:N}):e.onChange(null))},[N,O]);let U=()=>{Promise.all([n.e(5719),n.e(7289)]).then(n.bind(n,47289)).then(e=>{(0,u.Z)().then(t=>{e.getPlaceDetailByLatLong(t.lat,t.lng).then(e=>{E({selectedPlace:e,place:e,latLng:t})})}).catch(e=>{E({error:e.message})})})},A=(0,h.useCallback)(m()(e=>{e&&(null==e?void 0:e.trim())&&(P(!0),(0,d.t)(C).getPlacePrediction(e).then(e=>{p(e),P(!1)}))},300),[]),M=e=>f?{...e,InputProps:{endAdornment:(0,o.tZ)(a.Z,{onFocus:e=>e.stopPropagation(),position:"end",children:(0,o.tZ)(r.Z,{size:20})})}}:L?{...e,InputProps:{endAdornment:(0,o.tZ)(a.Z,{onFocus:e=>e.stopPropagation(),onClick:e=>{e.stopPropagation(),U()},position:"end",children:(0,o.tZ)("span",{className:"StyledAutocomplete_locate_me",children:"Locate me"})})}}:e;return(0,o.BX)(x,{children:[(0,o.tZ)(Z,{}),(0,o.tZ)(b.Z,{children:e.label}),e.description&&(0,o.tZ)(g.Z,{children:e.description}),(0,o.tZ)(l.Z,{forcePopupIcon:!1,className:"StyledAutocomplete_autocomplete",id:"location-select",getOptionLabel:e=>"string"==typeof e?e:e.description||e.formattedAddress||"",PaperComponent:_,classes:{input:"location_input",option:"StyledAutocomplete_location_suggestion"},filterOptions:e=>e,options:t||[],autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,value:k,noOptionsText:(0,o.tZ)("span",{className:"StyledAutocomplete_no_locations",children:"No Locations"}),onChange:(e,t)=>{if(E({selectedPlace:t}),t){let e=t.place_id;C&&(0,d.t)(C).getLatLngByPlaceId({placeId:e}).then(e=>{Promise.all([n.e(5719),n.e(7289)]).then(n.bind(n,47289)).then(t=>{t.getPlaceDetailByLatLong(e.lat,e.lng).then(t=>{E({place:t,latLng:e})})})}).finally(()=>{C&&(0,d.t)(C).stopTransaction()})}else B()},renderInput:e=>{let t=e=>{E({search:e.target.value}),A(e.target.value)};return y?(0,o.tZ)(y,{...e,onChange:t}):(0,o.tZ)(i.Z,{...M(e),placeholder:"Search locality",onChange:t})},renderOption:(e,t)=>(0,o.tZ)("li",{...e,onClick:function(){for(var t,n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];null==e||null===(t=e.onClick)||void 0===t||t.call(e,...o)},children:(0,o.BX)("span",{className:"wrapper",children:[(0,o.tZ)("span",{className:"icon",children:S})," ",(0,o.tZ)("span",{className:"label",children:t.description})]})})}),(0,o.tZ)(T,{children:"We never share your location with anyone."}),(e.helperText||w||e.error)&&(0,o.tZ)(v.Z,{error:!0,children:w||e.helperText})]})}let Z=(0,f.vJ)(["",""],(0,f.iv)([".StyledAutocomplete_no_locations{font-style:normal;font-weight:400;font-size:14px;color:#2a2f32;}.StyledAutocomplete_location_suggestion{font-style:normal;font-weight:400;font-size:14px;color:#2a2f32;border-bottom:1px solid rgba(206,211,215,0.5);.wrapper{display:flex;gap:16px;}}"])),_=f.ZP.div.withConfig({componentId:"sc-53db9a05-0"})(["background-color:white;"]),T=(0,f.ZP)(v.Z).withConfig({componentId:"sc-53db9a05-1"})(["margin-top:10px !important;display:block;"]),x=f.ZP.div.withConfig({componentId:"sc-53db9a05-2"})([".MuiInputBase-root{font-style:normal;font-weight:400;font-size:14px;color:#2a2f32;padding:12px !important;}.StyledAutocomplete_autocomplete{}.StyledAutocomplete_locate_me{background-color:#0c1c33;border-radius:4px;padding:4px 16px;cursor:pointer;font-style:normal;font-weight:500;font-size:12px;color:#ffffff;}.MuiAutocomplete-endAdornment{background-color:white;}"]),S=(0,o.BX)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.tZ)("g",{clipPath:"url(#clip0_253_10866)",children:(0,o.tZ)("path",{d:"M7.99984 1.33337C5.19984 1.33337 2.6665 3.48004 2.6665 6.80004C2.6665 8.92004 4.29984 11.4134 7.55984 14.2867C7.81317 14.5067 8.19317 14.5067 8.4465 14.2867C11.6998 11.4134 13.3332 8.92004 13.3332 6.80004C13.3332 3.48004 10.7998 1.33337 7.99984 1.33337ZM7.99984 8.00004C7.2665 8.00004 6.6665 7.40004 6.6665 6.66671C6.6665 5.93337 7.2665 5.33337 7.99984 5.33337C8.73317 5.33337 9.33317 5.93337 9.33317 6.66671C9.33317 7.40004 8.73317 8.00004 7.99984 8.00004Z",fill:"#85929B"})}),(0,o.tZ)("defs",{children:(0,o.tZ)("clipPath",{id:"clip0_253_10866",children:(0,o.tZ)("rect",{width:"16",height:"16",fill:"white"})})})]})},30828:function(e,t,n){"use strict";n.d(t,{CD:function(){return i},bK:function(){return s},tc:function(){return a}});let o="+974",r="+971",i="+91",l={[o]:"QA",[r]:"AE",[i]:"IN"},a=[i,r,o],s=e=>l[e]},25438:function(e,t,n){"use strict";function o(){return new Promise((e,t)=>{"geolocation"in navigator?navigator.geolocation.getCurrentPosition(t=>{e({lat:t.coords.latitude,lng:t.coords.longitude})},t,{enableHighAccuracy:!0}):t(Error("Geolocation is not supported by this browser."))})}n.d(t,{Z:function(){return o}})},77245:function(e,t,n){"use strict";let o;n.d(t,{t:function(){return i}});class r{startTransaction(){return new Promise((e,t)=>{let n=window,o=!!(null==n?void 0:n.google),r=()=>{let e=n.google;return this.sessionToken||(this.sessionToken=new e.maps.places.AutocompleteSessionToken),{autoCompleteService:new e.maps.places.AutocompleteService,placeService:new e.maps.places.PlacesService(document.createElement("div")),sessionToken:this.sessionToken}};if(o)e(r());else{let n="https://maps.googleapis.com/maps/api/js?key=".concat(this.MAP_API_KEY,"&libraries=places"),o=document.createElement("script");o.src=n,o.onload=()=>{e(r())},o.onerror=()=>{t("Unable to load")},document.head.appendChild(o)}})}stopTransaction(){this.sessionToken=null}getPlacePrediction(e){return new Promise((t,n)=>{this.startTransaction().then(n=>{n.autoCompleteService.getPlacePredictions({input:e,componentRestrictions:{country:"IN"},sessionToken:n.sessionToken},(e,n)=>{t(e)})})})}getLatLngByPlaceId(e){return e.placeId?new Promise((t,n)=>{this.startTransaction().then(o=>{o.placeService.getDetails({placeId:e.placeId,fields:["geometry"],sessionToken:this.sessionToken},function(e,o){"OK"===o?t({lat:e.geometry.location.lat(),lng:e.geometry.location.lng()}):n(Error("Couldn't get"))})})}):Promise.reject(Error("placeId missing"))}constructor(e){this.MAP_API_KEY=e}}let i=e=>o||(o=new r(e))},25366:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(72411),r=n(31294);let i=()=>o.M.get(r.eQ.getProfessions).then(e=>{var t;return null===(t=e.data)||void 0===t?void 0:t.professions})},63089:function(e,t,n){"use strict";n.r(t),n.d(t,{getUserContactDetails:function(){return s},getUserDetails:function(){return i},logout:function(){return a},updateUser:function(){return l}});var o=n(72411),r=n(31294);let i=()=>o.M.get(r.eQ.getUserDetails).then(e=>e.data),l=e=>o.M.put(r.eQ.updateUser,e).then(e=>e.data),a=()=>o.M.post(r.eQ.logout).then(e=>e),s=e=>o.M.get(r.eQ.getUserContactDetails(e)).then(e=>e.data)},82965:function(e,t,n){"use strict";n.d(t,{o:function(){return s}});var o=n(29866),r=n(65655),i=n(30320),l=n(54732);let a={name:"USER_LOCATION",storage:(0,r.FL)(l.b)},s=(0,o.Ue)()((0,r.mW)((0,r.tJ)((0,i.n)(e=>({location:void 0,selectedPlace:{formattedAddress:""},search:void 0,place:{formattedAddress:""},setValue(t){e(e=>{t.latLng&&(e.latLng=t.latLng),t.place&&(e.place=t.place),t.search&&(e.search=t.search),t.selectedPlace&&(e.selectedPlace=t.selectedPlace)})},clearPlace(){e({place:void 0,latLng:void 0,selectedPlace:void 0,search:""})}})),{...a,partialize:e=>Object.fromEntries(Object.entries(e).filter(e=>{let[t]=e;return!["search"].includes(t)}))}),{name:"Location-Store"}))},13944:function(e){e.exports={buttonContainer:"styles_buttonContainer__muGtw"}}}]);