PageSourceSearch

https://bomaenspire.ca/_next/static/chunks/pages/service-provider-directory/edit-8d1f0a1443e846e5.js

js bomaenspire.ca collected 2026-10-04 01:50:04 UTC 33,098 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3350],{1427:(e,i,r)=>{"use strict";r.r(i),r.d(i,{default:()=>H});var a=r(37876),l=r(73665),t=r(14950),o=r(79275),n=r(82777),s=r(94570),c=r(44808),d=r(856),u=r(1959),v=r(96524),p=r(3291),m=r(42008),x=r(5820),h=r(56486),g=r(74912),y=r(69585),j=r(92228),f=r(14232),A=r(54587),b=r.n(A),w=r(75234),C=r(60774),P=r(50223),N=r(91408),D=r(74020),B=r(62603),k=r(35620),F=r(58100),q=r(42264),I=r.n(q);r(11827);var E=r(44158),V=r(34846),S=r(89099),M=r(88025),T=r(11938),_=r(69002),R=r(77328),O=r.n(R),L=r(75807),W=r(82851),U=r.n(W),z=r(55883),Y=r(8742);let Q=()=>{var e,i,r,A,q,R,W,Q,H,X,Z,$,G,J,K,ee;let[ei,er]=(0,f.useState)(null),ea=/^(https?:\/\/)?([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,253}(\/[a-zA-Z0-9\-._~:\/?#[\]@!$&'()*+,;=]*)?$/,el=(0,l.A)(),{t:et}=(0,V.Bd)(),eo=(0,S.useRouter)(),[en,es]=(0,f.useState)(!1),[ec,ed]=(0,f.useState)(!1),[eu,ev]=f.useState("panel1"),[ep,em]=(0,f.useState)(!0),[ex,eh]=(0,f.useState)(null),[eg,ey]=(0,f.useState)([]),[ej,ef]=(0,f.useState)(null),[eA,eb]=(0,f.useState)(""),[ew,eC]=(0,f.useState)(!1),[eP,eN]=(0,f.useState)({type:null,message:""}),[eD,eB]=f.useState("EN"),ek=(e,i)=>{eN({type:e,message:i}),setTimeout(()=>{eN({type:null,message:""})},2e3)},{getAllServicesOffered:eF,allServicesOffered:eq}=(0,k.O)(),eI=et("warranties",{returnObjects:!0}),eE=et("coverageAreaOptions",{returnObjects:!0}),eV=et("provinceList",{returnObjects:!0});et("muncipalityList",{returnObjects:!0}),(0,f.useEffect)(()=>{ed(!0),Promise.allSettled([eL(),eM(),eT(),eF()]).then(()=>{eW(ei,ex),setTimeout(()=>{ed(!1)},5e3)})},[]);let eS=e=>(i,r)=>{ev(!!r&&e)},eM=async()=>{let e=localStorage.getItem("accountShortCode");try{let i=await C.W.fetchAccountDetails(e);!0===i.success?(eh(null==i?void 0:i.data),setTimeout(()=>{eW(ei,null==i?void 0:i.data)},2e3)):(eh(null),ek("error",null==i?void 0:i.message))}catch(e){var i,r;ek("error",null==e||null==(r=e.response)||null==(i=r.data)?void 0:i.message)}},eT=async()=>{try{var e,i;let r=await C.W.getMetaData("businessCompliance");ef(null==r||null==(i=r.data)||null==(e=i.businessCompliance)?void 0:e.questions)}catch(e){}}
1,e_=N.Ik({displayName:N.Yj().required(et("displayNameError")),phone:N.Yj().required(et("contactError")),website:N.Yj().matches(ea,et("websiteValidError")).required(et("websiteEmptyError")),email:N.Yj().email(et("validationMessage.emailInvalid")).required(et("personalDetails.emailError")),coverageArea:N.Yj().required(et("emptyCoverageArea")),province:N.Yj().when("coverageArea",{is:e=>"Provincial/Territorial"===e,then:e=>e.required(et("provinceSelectError")),otherwise:e=>e.notRequired()}),muncipality:N.Yj().when("coverageArea",{is:e=>"Muncipality"===e,then:e=>e.required(et("muncipalityError")),otherwise:e=>e.notRequired()}),serviceProviderActivities:N.YO().min(1,et("activityError")).required(et("activityError")),qualifications:N.YO().of(N.Yj().required(et("qualificationError"))),additionalQualitification:N.Yj().notRequired().matches(ea,{message:et("linkError"),excludeEmptyString:!0}),codeOfConduct:N.zM().oneOf([!0],et("conductError")).required("Required"),businessCompliance:N.YO().min(1,et("complianceError")).of(N.Ik({qId:N.Yj().required(et("queError")),answer:N.zM().required(et("ansError"))}))}),eR=(0,P.Wx)({initialValues:{displayName:(null==ex||null==(e=ex.serviceProviderDirectory)?void 0:e.displayName)||"",phone:(null==ex||null==(i=ex.serviceProviderDirectory)?void 0:i.mobile)||"",website:(null==ex||null==(r=ex.serviceProviderDirectory)?void 0:r.website)||"",email:(null==ex||null==(A=ex.serviceProviderDirectory)?void 0:A.email)||"",coverageArea:(null==ex||null==(q=ex.serviceProviderDirectory)?void 0:q.serviceCoverageArea)||"",province:(null==ex||null==(R=ex.serviceProviderDirectory)?void 0:R.serviceProvince)||"",muncipality:(null==ex||null==(W=ex.serviceProviderDirectory)?void 0:W.serviceMuncipality)||"",serviceProviderActivities:(null==ex?void 0:ex.accountType)==="Organization"?null==ex||null==(Q=ex.organisation)?void 0:Q.serviceProviderActivities:(null==ex?void 0:ex.accountType)==="Individual"?null==ex||null==(H=ex.individual)?void 0:H.serviceProviderActivities:[],qualifications:(null==ex||null==(X=ex.serviceProviderDirectory)?void 0:X.qualifications)||[""],additionalQualitification:(null==ex||null==(Z=ex.serviceProviderDirectory)?void 0:Z.additionalQualitification)||"",logoImage:[],codeOfConduct:!0,businessCompliance:(null==ex||null==($=ex.serviceProviderDirectory)?void 0:$.businessCompliance)||[]},validationSchema:e_,onSubmit:e=>{eC(!0)}}),eO=async()=>{var e,i,r,a,l,t,o,n,s,c;es(!0);let d=null==eR||null==(i=eR.values)||null==(e=i.serviceProviderActivities)?void 0:e.map(e=>{let i=e.key,r=e.value,a=eq.find(e=>e.category.value===i);return{category:a?a.category.key:i,activities:null==r?void 0:r.map(e=>{let i=null==a?void 0:a.activities.find(i=>{let{key:r,value:a}=i;return a===e});return i?i.key:e})}}),u={mobile:eR.values.phone,email:eR.values.email,displayName:eR.values.displayName,website:eR.values.website,logo:U().isEmpty(null==(a=eR.values.logoImage)||null==(r=a[0])?void 0:r._id)?null:null==(t=eR.values.logoImage)||null==(l=t[0])?void 0:l._id,serviceActivities:d,serviceCoverageArea:eR.values.coverageArea,qualifications:eR.values.qualifications,additionalQualifications:eR.values.additionalQualitification,serviceProvince:eR.values.province,serviceMuncipality:eR.values.muncipality,businessCompliance:eR.values.businessCompliance};try{let e=await C.W.addAccountInServiceProviderDirectory(u);!0===e.success?(eM(),ek("success",null==e||null==(o=e.message)?void 0:o.message),setTimeout(()=>{eo.push("/service-provider-directory")},1e3)):ek("error",null==e?void 0:e.message)}catch(e){ek("error",(null==e||null==(s=e.response)||null==(n=s.data)?void 0:n.message)||(null==e||null==(c=e.response)?void 0:c.statusText))}finally{es(!1),eC(!1)}},eL=async()=>{try{let e=await C.W.getUserDetails(localStorage.getItem("userId"));e.success&&er(e.data)}catch(e){}},eW=(e,i)=>{var r,a,l,t,o,n,s,c,d,u,v,p,m,x,h,g,y,j,f,A,b,w,C,P,N;let D=null==i||null==(r=i.serviceProviderDirectory)?void 0:r.mobile;(null==D?void 0:D.startsWith("+1"))?(null==D?void 0:D.startsWith("1"))?eR.setFieldValue("phone","+".concat(null==i||null==(P=i.serviceProviderDirectory)?void 0:P.mobile)||0):eR.setFieldValue("phone","".concat(null==i||null==(N=i.serviceProviderDirectory)?void 0:N.mobile)||""):eR.setFieldValue("phone","+1".concat(null==i||null==(C=i.serviceProviderDirectory)?void 0:C.mobile)||0),eR.setFieldValue("displayName",(null==i||null==(a=i.serviceProviderDirectory)?void 0:a.displayName)||""),eR.setFieldValue("phone","".concat(null==i||null==(l=i.serviceProviderDirectory)?void 0:l.mobile)||""),eR.setFieldValue("email",(null==i||null==(t=i.serviceProviderDirectory)?void 0:t.email)||"");let B={_id:null==i||null==(n=i.serviceProviderDirectory)||null==(o=n.logo)?void 0:o._id,imageCDNUrl:null==i||null==(c=i.serviceProviderDirectory)||null==(s=c.logo)?void 0:s.imageCDNUrl,objectFileName:null==i||null==(u=i.serviceProviderDirectory)||null==(d=u.logo)?void 0:d.objectFileName};eR.setFieldValue("logoImage",[B]),ey([B]),eR.setFieldValue("website",null==i||null==(v=i.serviceProviderDirectory)?void 0:v.website);let k=(null==i?void 0:i.accountType)==="Individual"?null==i||null==(m
1=i.individual)||null==(p=m.serviceProviderActivities)?void 0:p.map(e=>({key:e.category,value:e.activities,selected:!0})):null==i||null==(h=i.organisation)||null==(x=h.serviceProviderActivities)?void 0:x.map(e=>({key:e.category,value:e.activities,selected:!0}));eR.setFieldValue("serviceProviderActivities",k),eR.setFieldValue("additionalQualitification",null==i||null==(g=i.serviceProviderDirectory)?void 0:g.additionalQualifications),eR.setFieldValue("qualifications",(null==i||null==(y=i.serviceProviderDirectory)?void 0:y.qualifications)||[""]),eR.setFieldValue("coverageArea",null==i||null==(j=i.serviceProviderDirectory)?void 0:j.serviceCoverageArea),eR.setFieldValue("province",null==i||null==(f=i.serviceProviderDirectory)?void 0:f.serviceProvince),eR.setFieldValue("muncipality",null==i||null==(A=i.serviceProviderDirectory)?void 0:A.muncipality),eR.setFieldValue("muncipality",null==i||null==(b=i.serviceProviderDirectory)?void 0:b.serviceMuncipality),eR.setFieldValue("businessCompliance",null==i||null==(w=i.serviceProviderDirectory)?void 0:w.businessCompliance)};return console.log("formik===>",eR.values),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(O(),{children:[(0,a.jsx)("meta",{name:"viewport",content:"initial-scale=1, width=device-width"}),(0,a.jsx)("title",{children:"BOMA Enspire Portal | Your Building Retrofit Dashboard"}),(0,a.jsx)("meta",{name:"description",content:"BOMA Enspire participant portal. Manage your building profile, access resources, track applications, and engage with program initiatives."}),(0,a.jsx)("meta",{name:"keywords",content:"BOMA Enspire portal,building retrofit dashboard,program participant area, energy efficiency resources, building performance tracking"}),(0,a.jsx)("meta",{property:"og:title",content:"BOMA Enspire Program Portal"}),(0,a.jsx)("meta",{property:"og:description",content:"Access your participant dashboard to manage building profiles, track applications, and utilize program resources"}),(0,a.jsx)("meta",{property:"og:image",content:"https://bomaenspire.ca/_next/static/media/shutterstock.d7df94fd.svg"}),(0,a.jsx)("meta",{property:"og:url",content:"https://bomaenspire.ca/"}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,a.jsx)("meta",{name:"twitter:title",content:"BOMA Enspire Program Portal"}),(0,a.jsx)("meta",{name:"twitter:description",content:"Your dashboard for managing building profiles, tracking applications, and accessing exclusive program resources."}),(0,a.jsx)("meta",{name:"twitter:image",content:"https://bomaenspire.ca/_next/static/media/shutterstock.d7df94fd.svg"})]}),(0,a.jsx)(T.t,{loading:ec,children:(0,a.jsx)("div",{className:"flex flex-col",children:(0,a.jsxs)("div",{className:"grow pb-4 flex flex-col space-y-5 px-4 md:py-[10px]",children:[(0,a.jsxs)("div",{className:"flex flex-row gap-[10px]",children:[(0,a.jsx)(b(),{src:w.A,alt:"Arrow",onClick:()=>eo.back()}),(0,a.jsxs)(n.A,{textTransform:"uppercase",variant:"mainH4",color:"grayColors.darker",children:[et("serviceProviderDirectory.heading")," /\xa0",(0,a.jsx)(n.A,{variant:"mainH4",color:"textColors.secondary",children:et("serviceProviderDirectory.enlistDetails")})]})]}),(0,a.jsxs)("div",{className:"flex flex-col md:flex-row md:justify-between p-2.5 gap-2.5 bg-[".concat(el.palette.grayColors.lighter,"] rounded-[10px]"),children:[(0,a.jsxs)("div",{className:"flex flex-col justify-start md:w-[50%]",children:[(0,a.jsx)(n.A,{textTransform:"capitalize",variant:"mainBody4",color:"textColors.meta",children:et("serviceProviderDirectory.modal.serviceProvider")}),(0,a.jsx)(n.A,{textTransform:"capitalize",variant:"mainH4",color:"textColors.meta",children:null==ex?void 0:ex.accountName})]}),(0,a.jsxs)("div",{className:"flex flex-col md:justify-end md:w-[50%] md:text-right",children:[(0,a.jsx)(n.A,{textTransform:"capitalize",variant:"mainBody4",color:"blueVariants.secondary",children:et("serviceProviderDirectory.address")}),(0,a.jsx)(n.A,{textTransform:"capitalize",variant:"mainBody2",color:"blueVariants.secondary",children:(null==ex?void 0:ex.accountType)==="Individual"?null==ex||null==(J=ex.individual)||null==(G=J.address)?void 0:G.location:null==ex||null==(ee=ex.organisation)||null==(K=ee.address)?void 0:K.location})]})]}),(0,a.jsx)(n.A,{variant:"mainH4",color:"blueVariants.primary",textAlign:"center",children:et("serviceProviderDirectory.enlistDetails")}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(t.A,{onClick:()=>{em(!ep)},expanded:"panel1"===eu,onChange:eS("panel1"),children:[(0,a.jsx)(o.A,{expandIcon:(0,a.jsx)(D.A,{}),"aria-controls":"panel1a-content",id:"panel1a-header",className:"uppercase rounded-[10px]",sx:{"&.Mui-expanded":{borderBottomLeftRadius:0,borderBottomRightRadius:0}},children:(0,a.jsx)(n.A,{variant:"mainH5",children:et("serviceProviderDirectory.details")})}),(0,a.jsx)(s.A,{children:(0,a.jsxs)("div",{className:"flex flex-col w-full p-[10px] md:p-[20px] space-y-2",children:[(0,a.jsxs)("div",{className:"w-full flex flex-row gap-5 items-center pb-3",children:[(0,a.jsxs)("div",{className:"w-[150px] h-auto",children:[(0,a.jsx)(B.B,{...{removeImage:(e,i)=>{C.W.deleteImage({files:[{_id:i._id,objectFileName:i.objectFileName}]}).then(e=>{e.success&&(eR.setFieldValue("logoImage",[]),ey([]))})},onImageUpload:e=>{if(e){let i={_id:e._id,imageCDNUrl:e.imageCDNUrl,objectFileName:e.objectFileName};eR.setFieldValue("logoImage",[i]),ey([i])}}},multi_upload:!1,imageURL:eR.values.logoImage?eR.values.logoImage[0]:eg[0]}),eA&&(0,a.jsx)("p",{className:"text-sm text-red-500 mt-2",children:eA})]}),(0,a.jsx)("div",{children:(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:(0,a.jsx)(n.A,{variant:"mainBody2",color:"textColors.secondary",children:et("serviceProviderDirectory.addLogo")})}),(0,a.jsx)("li",{children:(0,a.jsxs)(n.A,{variant:"mainBody4",color:"text.secondary",className:"mt-[8px]",children:[et("serviceProviderDirectory.logoUploadInstructions1"),(0,a.jsx)("br",{}),et("serviceProviderDirectory.logoUploadInstructions2"),(0,a.jsx)("br",{}),et("serviceProviderDirectory.logoUploadInstructions3")]})})]})})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(n.A,{variant:"mainBody3",color:"text.primary",gutterBottom:!0,children:et("serviceProviderDirectory.services")}),(0,a.jsx)(F.A,{values:eR.values.serviceProviderActivities,data:eq,selectedValues:()=>"",selectedValuesCallBack:(e,i,r)=>{let a=Object.entries(i).map(e=>{let[i,a]=e;return{key:i,value:a,selected:r&&r.some(e=>e===i)}});eR.setFieldValue("serviceProviderActivities",a)},onBlur:()=>eR.setFieldTouched("serviceProviderActivities",!0)}),eR.touched.serviceProviderActivities&&eR.errors.serviceProviderActivities&&(0,a.jsx)(n.A,{variant:"mainBody4",color:"error.main",className:"px-[5px] py-[5px] ml-[5px] mb-[5px]",children:eR.errors.serviceProviderActivities})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 ",children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(n.A,{variant:"mainBody3",color:"textColors.secondary",className:"mb-[5
1px]",children:et("serviceProviderDirectory.displayName")}),(0,a.jsx)(c.A,{name:"displayName",fullWidth:!0,placeholder:et("displayNamePlaceholder"),value:eR.values.displayName,onChange:e=>{eR.handleChange(e)},onBlur:eR.handleBlur,error:eR.touched.displayName&&!!eR.errors.displayName}),eR.touched.displayName&&eR.errors.displayName&&(0,a.jsx)(n.A,{variant:"mainBody4",color:"error.main",className:"px-[5px] py-[5px] ml-[5px] mb-[5px]",children:eR.errors.displayName})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(n.A,{variant:"mainBody3",color:"textColors.secondary",className:"mb-[5px]",children:et("personalDetails.phoneLabel")}),(0,a.jsx)("div",{className:"w-full max-w-full min-w-full",children:(0,a.jsx)(I(),{country:"ca",onlyCountries:["ca"],specialLabel:"",countryCodeEditable:!1,placeholder:et("personalDetails.phonePlaceholder"),value:"".concat(eR.values.phone)||"",inputStyle:{height:"54px",width:"100%"},disableDropdown:!0,onChange:e=>{eR.setFieldValue("phone",e)},onBlur:()=>eR.setFieldTouched("phone",!0)})}),eR.touched.phone&&eR.errors.phone&&(0,a.jsx)(n.A,{variant:"mainBody4",color:"error.main",className:"px-[5px] py-[5px] ml-[5px] mb-[5px]",children:eR.errors.phone})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(n.A,{variant:"mainBody3",color:"textColors.secondary",className:"mb-[5px]",children:et("serviceProviderDirectory.website")}),(0,a.jsx)(c.A,{name:"website",fullWidth:!0,placeholder:et("websiteUrl"),value:eR.values.website,onChange:eR.handleChange,onBlur:eR.handleBlur,error:eR.touched.website&&!!eR.errors.website}),eR.touched.website&&eR.errors.website&&(0,a.jsx)(n.A,{variant:"mainBody4",color:"error.main",className:"px-[5px] py-[5px] ml-[5px] mb-[5px]",children:eR.errors.website})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(n.A,{variant:"mainBody3",color:"text.secondary",className:"mb-[5px]",children:et("personalDetails.emailLabel")}),(0,a.jsx)(c.A,{name:"email",fullWidth:!0,placeholder:et("emailPlaceholder"),value:eR.values.email,onChange:e=>{eR.handleChange(e)},onBlur:eR.handleBlur,error:eR.touched.email&&!!eR.errors.email}),eR.touched.email&&eR.errors.email&&(0,a.jsx)(n.A,{variant:"mainBody4",color:"error.main",className:"px-[5px] py-[5px] ml-[5px] mb-[5px]",children:eR.errors.email})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(n.A,{variant:"mainBody3",color:"text.secondary",className:"mb-[5px]",children:et("serviceProviderDirectory.primaryArea")}),(0,a.jsx)(d.A,{fullWidth:!0,variant:"outlined",children:(0,a.jsx)(u.A,{name:"coverageArea",displayEmpty:!0,value:eR.values.coverageArea,onChange:e=>{let{value:i}=e.target;eR.setFieldValue("coverageArea",i),"National"===i&&(eR.setFieldValue("province",""),eR.setFieldValue("muncipality",""))},onBlur:()=>eR.setFieldTouched("coverageArea",!0),error:eR.touched.coverageArea&&!!eR.errors.coverageArea,sx:{"& .MuiSelect-select .notranslate::after":{content:'"'.concat(et("serviceProviderDirectory.coverageArea"),'"'),color:"grey",typography:{fontVariant:"mainBody2"}}},children:Object.entries(eE).map(e=>{let[i,r]=e;return(0,a.jsx)(v.A,{value:i,className:"px-4 py-4",children:(0,a.jsx)(p.A,{primary:r})},i)})})}),eR.touched.coverageArea&&eR.errors.coverageArea&&(0,a.jsx)(n.A,{variant:"mainBody4",color:"error.main",className:"px-[5px] py-[5px] ml-[5px] mb-[5px]",children:eR.errors.coverageArea})]}),"National"===eR.values.coverageArea&&(0,a.jsxs)("div",{children:[(0,a.jsx)(n.A,{variant:"mainBody3",color:"text.secondary",className:"mb-[5px]",children:et("serviceProviderDirectory.selectProvince")}),(0,a.jsx)(c.A,{fullWidth:!0,value:"All of Canada",disabled:!0})]}),"Provincial/Territorial"===eR.values.coverageArea&&(0,a.jsxs)("div",{children:[(0,a.jsx)(n.A,{variant:"mainBody3",color:"text.secondary",className:"mb-[5px]",children:et("serviceProviderDirectory.selectProvince")}),(0,a.jsx)(d.A,{fullWidth:!0,variant:"outlined",children:(0,a.jsx)(u.A,{sx:{"& .MuiSelect-select .notranslate::after":{content:'"'.concat(et("provinceSelectError"),'"'),color:"grey",typography:{fontVariant:"mainBody2"}}},multiple:!0,value:eR.values.province?eR.values.province.split(","):[],onChange:e=>{eR.setFieldTouched("province",!0);let i=e.target.value;eR.setFieldValue("province",i.join(",")),eR.setFieldValue("muncipality","")},onBlur:e=>{eR.setFieldTouched("province",!0)},error:eR.touched.province&&!!eR.errors.province,renderValue:e=>(0,a.jsx)(m.A,{className:"flex flex-wrap gap-0.5",children:e.map((i,r)=>(0,a.jsx)(x.A,{label:"".concat(eV[i]||i),onDelete:()=>{},deleteIcon:(0,a.jsx)(L.A,{onMouseDown:r=>{r.stopPropagation();let a=e.filter(e=>e!==i);eR.setFieldValue("province",a.join(","))}}),sx:{backgroundColor:"#174992",color:"white","& .MuiChip-deleteIcon":{color:"white"},typography:{fontVariant:"mainBody2"}}},i))}),children:Object.entries(eV).map(e=>{var i;let[r,l]=e;return(0,a.jsxs)(v.A,{value:r,children:[(0,a.jsx)(h.A,{checked:(null==(i=eR.values.province)?void 0:i.indexOf(r))>-1}),(0,a.jsx)(p.A,{primary:l})]},r)})})}),eR.touched.province&&eR.errors.province&&(0,a.jsx)(n.A,{variant:"mainBody4",color:"error.main",className:"px-[5px] py-[5px] ml-[5px] mb-[5px]",children:eR.errors.province})]}),"Muncipality"===eR.values.coverageArea&&(0,a.jsxs)("div",{children:[(0,a.jsx)(n.A,{variant:"mainBody3",color:"text.secondary",className:"mb-[5
1px]",children:et("serviceProviderDirectory.muncipalities")}),(0,a.jsx)(c.A,{name:"muncipality",fullWidth:!0,placeholder:et("muncipalityPlaceholder"),value:eR.values.muncipality,onChange:e=>{var i;let{value:r}=e.target;eR.setFieldValue("muncipality",r),(null==eR||null==(i=eR.values)?void 0:i.coverageArea)==="Muncipality"&&eR.setFieldValue("province","")},onBlur:eR.handleBlur,error:eR.touched.muncipality&&!!eR.errors.muncipality}),eR.touched.muncipality&&eR.errors.muncipality&&(0,a.jsx)(n.A,{variant:"mainBody4",color:"error.main",className:"px-[5px] py-[5px] ml-[5px]",children:eR.errors.muncipality})]})]})})]})})]}),(0,a.jsxs)(t.A,{onClick:()=>{em(!ep)},expanded:"panel2"===eu,onChange:eS("panel2"),children:[(0,a.jsx)(o.A,{expandIcon:(0,a.jsx)(D.A,{}),"aria-controls":"panel1a-content",id:"panel1a-header",className:"uppercase rounded-[10px]",sx:{"&.Mui-expanded":{borderBottomLeftRadius:0,borderBottomRightRadius:0}},children:(0,a.jsxs)(n.A,{variant:"mainH5",children:[" ",et("serviceProviderDirectory.qualifications")]})}),(0,a.jsx)(s.A,{children:(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 p-[10px] md:p-[20px]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-[5px]",children:[(0,a.jsx)(n.A,{variant:"mainBody3",color:"text.primary",gutterBottom:!0,children:et("serviceProviderDirectory.qualifications")}),eR.values.qualifications.map((e,i)=>(0,a.jsx)("div",{className:"flex flex-row",children:(0,a.jsx)(c.A,{fullWidth:!0,value:e,onChange:e=>((e,i)=>{let r=[...eR.values.qualifications];r[e]=i,eR.setFieldValue("qualifications",r)})(i,e.target.value),placeholder:et("qualificationPlaceholder"),slotProps:{input:{disableUnderline:!0,endAdornment:eR.values.qualifications.length>1&&(0,a.jsx)(g.A,{position:"end",children:(0,a.jsx)(y.A,{onClick:()=>(e=>{let i=eR.values.qualifications.filter((i,r)=>r!==e);eR.setFieldValue("qualifications",i)})(i),children:(0,a.jsx)(E.A,{className:"text-[".concat(el.palette.textColors.tertiary,"]")})})}),className:"text-[16px] text-[".concat(el.palette.textColors.quaternary,"] leading-[21px] font-['Roboto']")}}})},i)),eR.values.qualifications.length<5&&(0,a.jsxs)(n.A,{variant:"mainBody2",color:"primary.light",onClick:()=>{let e=[...eR.values.qualifications,""];eR.setFieldValue("qualifications",e)},className:"underline text-left mt-2 cursor-pointer",children:["+ ",et("serviceProviderDirectory.addMore")]}),(0,a.jsx)(n.A,{variant:"mainBody3",color:"textColors.secondary",className:"mt-2",children:et("serviceProviderDirectory.notes")})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)(n.A,{variant:"mainBody3",color:"textColors.secondary",className:"mb-[5px] flex items-center",children:[et("serviceProviderDirectory.linkMoreInfo")," \xa0"," ",(0,a.jsx)(z.A,{helpText:et("serviceProviderDirectory.linkToolTip")})]}),(0,a.jsx)(c.A,{name:"additionalQualitification",fullWidth:!0,placeholder:et("serviceProviderDirectory.placeholder"),value:eR.values.additionalQualitification,onChange:e=>{eR.handleChange(e)},onBlur:eR.handleBlur,error:eR.touched.additionalQualitification&&!!eR.errors.additionalQualitification}),eR.touched.additionalQualitification&&eR.errors.additionalQualitification&&(0,a.jsx)(n.A,{variant:"mainBody4",color:"error.main",className:"px-[5px] py-[5px] ml-[5px] mb-[5px]",children:eR.errors.additionalQualitification})]})]})})]}),(0,a.jsxs)(t.A,{onClick:()=>{em(!ep)},expanded:"panel3"===eu,onChange:eS("panel3"),children:[(0,a.jsx)(o.A,{expandIcon:(0,a.jsx)(D.A,{}),"aria-controls":"panel1a-content",id:"panel1a-header",className:"uppercase rounded-[10px]",sx:{"&.Mui-expanded":{borderBottomLeftRadius:0,borderBottomRightRadius:0}},children:(0,a.jsx)(n.A,{variant:"mainH5",children:et("serviceProviderDirectory.insurance")})}),(0,a.jsx)(s.A,{children:(0,a.jsxs)("div",{className:"space-y-5 p-[10px] md:p-[20px]",children:[(0,a.jsx)("div",{className:"w-full p-5 flex flex-col items-start gap-[10px] bg-[".concat(el.palette.grayColors.lighter,"] rounded-[10px] space-y-6"),children:(0,a.jsx)("div",{className:"flex flex-row justify-between items-start md:items-center w-full",children:(0,a.jsx)(n.A,{variant:"mainBody3",color:"textColors.quaternary",children:et("serviceProviderDirectory.insuranceConfirmMsg")})})}),null==ej?void 0:ej.map((e,i)=>{var r,l,t,o;return(0,a.jsx)("div",{className:"w-full p-5 flex flex-col items-start gap-[10px] bg-[".concat(el.palette.grayColors.lighter,"] rounded-[10px] space-y-6"),children:(0,a.jsxs)("div",{className:"flex flex-row justify-between items-start md:items-center w-full",children:[(0,a.jsxs)("div",{className:"flex flex-col items-start gap-[5px] w-full",children:[(0,a.jsx)(n.A,{variant:"mainBody1",color:"textColors.quaternary",children:e.question||e.groupTitle}),(0,a.jsx)(n.A,{variant:"mainBody3",color:"textColors.quaternary",children:e.description})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(Y.A,{checked:(null==(l=eR.values.businessCompl
1iance)||null==(r=l.find(i=>i.qId===e.qId))?void 0:r.answer)||!1,onChange:i=>{var r;let a=null==(r=eR.values.businessCompliance)?void 0:r.find(i=>i.qId===e.qId),l={qId:e.qId,_id:e._id,answer:i.target.checked},t=[];t=a?eR.values.businessCompliance.map(i=>i.qId===e.qId?l:i):[...eR.values.businessCompliance||[],l],eR.setFieldValue("businessCompliance",t)}}),(0,a.jsx)(n.A,{variant:"mainBody3",children:(null==(o=eR.values.businessCompliance)||null==(t=o.find(i=>i.qId===e.qId))?void 0:t.answer)?et("yes"):et("no")})]})]})},i)})]})})]}),(0,a.jsxs)(t.A,{onClick:()=>{em(!ep)},expanded:"panel4"===eu,onChange:eS("panel4"),children:[(0,a.jsx)(o.A,{expandIcon:(0,a.jsx)(D.A,{}),"aria-controls":"panel1a-content",id:"panel1a-header",className:"uppercase rounded-[10px]",sx:{"&.Mui-expanded":{borderBottomLeftRadius:0,borderBottomRightRadius:0}},children:(0,a.jsx)(n.A,{variant:"mainH5",children:et("serviceProviderDirectory.warranties")})}),(0,a.jsx)(s.A,{children:(0,a.jsxs)("div",{className:"py-[10px] md:py-[20px] space-y-4",children:[(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsx)("ul",{className:"ml-6 md:ml-10 list-decimal",children:eI.map((e,i)=>(0,a.jsx)("li",{children:(0,a.jsx)(n.A,{dangerouslySetInnerHTML:{__html:e},variant:"mainBody3",color:"text.primary"})},i))})}),(0,a.jsxs)("div",{className:"flex items-center gap-[10px]",children:[(0,a.jsx)(h.A,{className:"text-[".concat(el.palette.text.disabled,"]"),checked:eR.values.codeOfConduct,onChange:e=>eR.setFieldValue("codeOfConduct",e.target.checked),onBlur:eR.handleBlur}),(0,a.jsx)(n.A,{variant:"mainBody3",color:"text.primary",textAlign:"start",children:et("serviceProviderDirectory.agreeMessage")})]})]})})]}),(0,a.jsxs)("div",{className:"flex flex-col md:flex-row gap-2 justify-end",children:[(0,a.jsx)(j.A,{className:"rounded-[10px]  min-w-[300px] h-[50px]",variant:"outlined",sx:{typography:el.typography.button3},onClick:()=>eo.back(),children:et("cancel")}),(0,a.jsx)(j.A,{className:"rounded-[10px] min-w-[300px] h-[50px]",variant:"contained",disabled:!eR.dirty,sx:{...el.typography.button3},onClick:eR.submitForm,children:et("serviceProviderDirectory.saveSubmit")})]})]})]})})}),(0,a.jsx)(M.A,{title:et("serviceProviderDirectory.submission"),isOpen:ew,primaryButtonTitle:et("cancel"),primaryButtonClick:()=>eC(!1),secondaryButtonTitle:et("yes"),secondaryButtonClick:e=>{eO()},isLoading:en,children:(0,a.jsx)(m.A,{className:"w-full",children:(0,a.jsx)(n.A,{variant:"mainBody2",children:et("serviceProviderDirectory.updateConfirm")})})}),eP.type&&(0,a.jsx)("div",{className:"z-[9999]",children:(0,a.jsx)(_.A,{type:eP.type,message:eP.message,handleToggle:!0})})]})};Q.getLayout=function(e){return(0,a.jsx)(T.A,{title:"",breadcrumbs:[],children:e})};let H=Q},8742:(e,i,r)=>{"use strict";r.d(i,{A:()=>o});var a=r(37876),l=r(12392),t=r(66438);function o(e){let{checked:i,onChange:r}=e,o=encodeURIComponent('\n      <svg xmlns="http://www.w3.org/2000/svg" height="20" width="20" viewBox="0 0 24 24" fill="white">\n        <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 \n                 10.59 12 5 17.59 6.41 19 12 13.41 \n                 17.59 
119 19 17.59 13.41 12z"/>\n      </svg>'),n=encodeURIComponent('\n      <svg xmlns="http://www.w3.org/2000/svg" height="20" width="20" viewBox="0 0 24 24" fill="#174992">\n        <path d="M9 16.17L4.83 12l-1.42 1.41L9 19 \n                 21 7l-1.41-1.41z"/>\n      </svg>'),s=(0,t.Ay)(e=>(0,a.jsx)(l.A,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e}))(e=>{let{theme:i}=e;return{width:52,height:32,padding:0,margin:0,"& .MuiSwitch-switchBase":{padding:0,margin:0,top:4,left:-11,right:3,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& .MuiSwitch-thumb":{backgroundColor:"#fff",backgroundImage:'url("data:image/svg+xml;utf8,'.concat(n,'")')},"& + .MuiSwitch-track":{backgroundColor:"#174992",opacity:1,border:0}}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:24,height:24,backgroundColor:"#174992",backgroundImage:'url("data:image/svg+xml;utf8,'.concat(o,'")'),backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"16px 16px"},"& .MuiSwitch-track":{borderRadius:17,border:"1px solid #174992 !important",backgroundColor:"#E9E9EA",opacity:1,transition:i.transitions.create(["background-color"],{duration:500})}}});return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s,{checked:i,onChange:r})})}},38453:(e,i,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/service-provider-directory/edit",function(){return r(1427)}])},55883:(e,i,r)=>{"use strict";r.d(i,{A:()=>p});var a=r(37876),l=r(14232),t=r(90133);let o={src:"/_next/static/media/infoIconGrey.bcdc903e.svg",height:18,width:18,blurWidth:0,blurHeight:0};var n=r(3417),s=r(40239),c=r(66438),d=r(54587),u=r.n(d);let v=(0,c.Ay)(e=>{let{className:i,...r}=e;return(0,a.jsx)(n.A,{...r,classes:{popper:i}})})(e=>{let{theme:i}=e;return{["& .".concat(s.A.tooltip)]:{backgroundColor:"#174992",color:"#FFF",maxWidth:230,fontFamily:"Roboto"},["& .".concat(s.A.arrow)]:{color:"#174992"}}}),p=e=>{let[i,r]=l.useState(!1),n=()=>{r(!1)},s=()=>{r(!0)},c=e.position;return e.dynamicPosition&&(c=window.innerWidth<1025?"bottom":"right"),(0,a.jsx)(t.x,{onClickAway:n,children:(0,a.jsx)(v,{title:(0,a.jsx)(l.Fragment,{children:e.helpText}),open:i,placement:c||"bottom",arrow:!0,children:(0,a.jsx)(u(),{className:"w-[15px] md:w-[20px] h-[15px] md:h-[20px]",src:o,width:20,height:20,alt:"Info",onClick:s,onMouseEnter:s,onMouseLeave:n})})})}},62603:(e,i,r)=>{"use strict";r.d(i,{B:()=>A});var a=r(37876),l=r(14232),t=r(42008),o=r(53318),n=r(82777),s=r(66438),c=r(73665),d=r(14029),u=r(62974),v=r(54587),p=r.n(v),m=r(60774),x=r(11806);let h=(0,s.Ay)("input")({display:"none"}),g=(0,s.Ay)("label")(()=>({cursor:"pointer",textAlign:"center",display:"flex",flexDirection:"column"})),y={"& img":{opacity:.3},"& p, svg":{opacity:1}},j=(0,s.Ay)(t.A,{shouldForwardProp:e=>"error"!==e})(e=>{let{error:i}=e;return{pointerEvents:"none",border:i?"1px dashed red":"1.5px dashed var(--org-primary-navy-blue, #133E73)",backgroundColor:i?"#EDEDED":"#CCDDF6",borderRadius:4,padding:"12px"}}),f=(0,s.Ay)(t.A)({display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center"}),A=e=>{let{imageButton:i=!1,hoverLabel:r=(0,x.t)("uploadLabel"),dropLabel:s=(0,x.t)("dragLabel"),width:v="100%",height:A="100%",backgroundColor:b="#F5F9FF",imageURL:w="",imageError:C=!1,multipleImages:P=[],multi_upload:N=!1,onImageUpload:D,removeImage:B}=e,k=(0,c.A)(),F=(0,o.A)(k.breakpoints.up("sm")),[q,I]=l.useState(r),[E,V]=l.useState(!1),[S,M]=l.useState(!1),T=e=>{e.stopPropagation(),e.preventDefault()};(0,l.useEffect)(()=>{console.log("imageURL::::",w)},[w]);let _=e=>{let{name:i,type:r}=e;m.W.uploadImage({files:[{file:i,fileType:r}]}).then(i=>{let r=i.result[0];console.log("image draggged:::::"),m.W.putImageToS3(e,r.preSignedUrl).then(e=>{e&&D(r)}).catch(e=>{console.log(e,"Error while uploading File"),D(null)})}).catch(e=>{console.log(e,"Error while getting Pre-Signed URL"),D(null)})},R=e=>{D(e)};console.log("images:",w);let O=w&&w.imageCDNUrl;return P&&P.length,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h,{onChange:e=>{var i;let r=null==(i=e.target)?void 0:i.files;r&&r.length>0&&(N?R(r):_(r[0]))},accept:"image/*",id:"file-upload",type:"file"}),(0,a.jsx)(a.Fragment,{children:O?(0,a.jsxs)(t.A,{sx:{position:"relative",height:A,width:v},children:[(0,a.jsx)("span",{onClick:e=>{B(e,w)},style:{cursor:"pointer",position:"absolute",top:"-10px",right:"-10px",zIndex:99},children:(0,a.jsx)(d.A,{fontSize:"small"})}),(0,a.jsx)(p(),{alt:"Uploaded",src:w.imageCDNUrl,style:{objectFit:"fill"},...!F?{fill:!0}:{width:200,height:200}})]}):(0,a.jsx)(g,{htmlFor:"file-upload",...{onMouseEnter:()=>{M(!0)},onMouseLeave:()=>{M(!1)},onDragEnter:e=>{T(e),V(!0),I(s)},onDragLeave:e=>{T(e),V(!1),I(r)}
1,onDragOver:T,onDrop:e=>{var i,a,l,t;T(e),I(r),V(!1),null!==e.dataTransfer.files&&(null==(a=e.dataTransfer)||null==(i=a.files)?void 0:i.length)>0&&(N?R(null==(l=e.dataTransfer)?void 0:l.files):_(null==(t=e.dataTransfer)?void 0:t.files[0]))}},sx:E?y:{},children:(0,a.jsx)(j,{width:v,height:A,bgcolor:b,error:C,children:(!i||E||S)&&(0,a.jsxs)(f,{width:v,height:A,children:[(0,a.jsx)(u.A,{fontSize:"large",className:"text-black"}),(0,a.jsx)(n.A,{variant:"mainBody2",color:"textColors.quaternary",textAlign:"center",p:1,children:q}),(0,a.jsx)(n.A,{children:(0,x.t)("dragLabel")}),(0,a.jsx)(n.A,{children:"200 * 200 px"})]})})})})]})}},75234:(e,i,r)=>{"use strict";r.d(i,{A:()=>a});let a={src:"/_next/static/media/BackCircleArrow.67692fde.svg",height:25,width:24,blurWidth:0,blurHeight:0}}},e=>{e.O(0,[4808,6486,7675,5820,3417,8768,2264,6523,8714,5620,3268,636,6593,8792],()=>e(e.s=38453)),_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.