PageSourceSearch

https://handymesh.com/_next/static/chunks/pages/mesh/business/[businessId]-2e5aa96d128e8996.js

js handymesh.com collected 2026-09-24 14:44:51 UTC 37,616 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="54345567-154c-498b-a9a8-d8aec3f95182",e._sentryDebugIdIdentifier="sentry-dbid-54345567-154c-498b-a9a8-d8aec3f95182")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[441],{56524:function(e,r,i){"use strict";i.d(r,{Z:function(){return g}});var o=i(84913),n=i(67294),s=["variant","color","size"],t=function(e){var r=e.color;return n.createElement(n.Fragment,null,n.createElement("path",{fill:r,d:"M13.978 5.319l-3.21 3.21-1.97 1.96a2.13 2.13 0 000 3.01l5.18 5.18c.68.68 1.84.19 1.84-.76V6.079c0-.96-1.16-1.44-1.84-.76z"}))},l=function(e){var r=e.color;return n.createElement(n.Fragment,null,n.createElement("path",{stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.5",d:"M11.19 7.94l-2.62 2.62c-.77.77-.77 2.03 0 2.8l6.52 6.52M15.09 4.04l-1.04 1.04"}))},a=function(e){var r=e.color;return n.createElement(n.Fragment,null,n.createElement("path",{fill:r,d:"M10.77 8.52l5.05 3.79v5.61c0 .96-1.16 1.44-1.84.76L8.8 13.51a2.13 2.13 0 010-3.01l1.97-1.98z",opacity:".4"}),n.createElement("path",{fill:r,d:"M15.82 6.08v6.23l-5.05-3.79 3.21-3.21c.68-.67 1.84-.19 1.84.77z"}))},d=function(e){var r=e.color;return n.createElement(n.Fragment,null,n.createElement("path",{stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.5",d:"M15 19.92L8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08"}))},c=function(e){var r=e.color;return n.createElement(n.Fragment,null,n.createElement("path",{fill:r,d:"M15 20.67c-.19 0-.38-.07-.53-.22l-6.52-6.52a2.74 2.74 0 010-3.86l6.52-6.52c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06l-6.52 6.52c-.48.48-.48 1.26 0 1.74l6.52 6.52c.29.29.29.77 0 1.06-.15.14-.34.22-.53.22z"}))},u=function(e){var r=e.color;return n.createElement(n.Fragment,null,n.createElement("path",{stroke:r,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.5",d:"M15 19.92L8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08"}))},x=function(e,r){switch(e){case"Bold":return n.createElement(t,{color:r});case"Broken":return n.createElement(l,{color:r});case"Bulk":return n.createElement(a,{color:r});case"Linear":default:return n.createElement(d,{color:r});case"Outline":return n.createElement(c,{color:r});case"TwoTone":return n.createElement(u,{color:r})}},g=(0,n.forwardRef)(function(e,r){var i=e.variant,t=e.color,l=e.size,a=void 0===l?"24":l,d=(0,o._)(e,s);return n.createElement("svg",(0,o.a)({},d,{xmlns:"http://www.w3.org/2000/svg",ref:r,width:a,height:a,viewBox:"0 0 24 24",fill:"none"}),x(void 0===i?"Linear":i,void 0===t?"currentColor":t))});g.displayName="ArrowLeft2"},97696:function(e,r,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mesh/business/[businessId]",function(){return i(18719)}])},18719:function(e,r,i){"use strict";i.r(r),i.d(r,{__N_SSP:function(){return eF},default:function(){return eW}});var o=i(85893),n=i(67294),s=i(83658),t=i(68029),l=i(46572),a=i(8186),d=i(73636),c=i(54270),u=i(38491),x=i(12519),g=i(90092),p=i(12553),h=i(88329),f=i(64831),m=i(96278),b=i(8622),j=i(11020),y=i(57652),v=i(23048),w=i(95037),C=i(88815),k=i(61621),S=i(23961),z=i(27931),R=i(45184),I=i(9339),E=i(28864),_=i(31885),A=i(11163),F=i(31529),W=i(99203),U=i(37734),P=i(29705),Z=i(75501),O=i(11718),L=i(68236),T=i(76749),B=i(6485),H=i(47547),N=i(25760),D=i(41282),M=i(5490),q=i(34614),G=i(26840),J=i(57391),K=i(21360),V=i(70010),Q=i(54506),X=i(82206),Y=i(54795),$=i(48899),ee=i(45443),er=i(16310),ei=i(54299),eo=i(45007),en=i(18471),es=i(8573),et=i(55678),el=i(37750);let ea=[5,10,15,20,25],ed=[{value:"fixed",label:"Customers come to us"},{value:"roaming",label:"We go to the customer"},{value:"anywhere",label:"Distance does not matter"}],ec=er.Ry().shape({office_address:er.Z_().required("Address is required"),latitude:er.Rx().required("Coordinates are required"),longitude:er.Rx().required("Coordinates are required"),work_mode:er.Z_().oneOf(["fixed","roaming","anywhere"]).notRequired(),radius_km:er.Rx().notRequired()});var eu=e=>{let{isOpen:r,onClose:i,businessId:s,initialAddress:l,initialWorkMode:c,initialServiceRadiusKm:x}
1=e,[p,h]=(0,n.useState)(!1),f=(0,eo.I0)(),[m,b]=(0,n.useState)(l||""),[j,y]=(0,n.useState)([]),[v,w]=(0,n.useState)(null),C=(0,A.useRouter)();(0,n.useEffect)(()=>{r&&b(l||"")},[r,l]);let k=(0,n.useCallback)(async e=>{if(!e.trim()){y([]);return}h(!0);try{let r={input:e};(null==v?void 0:v.latitude)&&(null==v?void 0:v.longitude)&&(r.location="".concat(v.latitude,",").concat(v.longitude),r.radius="5000");let i=await f((0,en.gn)(r)).unwrap();y(i.predictions||[])}catch(e){console.error("Error fetching suggestions:",e)}finally{h(!1)}},[f,v]);(0,n.useEffect)(()=>{let e=setTimeout(()=>{k(m)},500);return()=>clearTimeout(e)},[m,k]);let S=async e=>{try{let r=await f((0,en.AA)({place_id:e})).unwrap();if(!(null==r?void 0:r.result))throw Error("Invalid response from Place Details API");let{lat:i,lng:o}=r.result.geometry.location;return{latitude:i,longitude:o}}catch(e){return console.error("Error fetching place details:",e),et.Am.error("Failed to fetch location coordinates"),null}},z=async(e,r)=>{h(!0);try{let i=await S(e.place_id);i&&(r("office_address",e.description),r("latitude",i.latitude),r("longitude",i.longitude),b(e.description),y([]))}finally{h(!1)}},R=async e=>{h(!0);try{var r;if(!navigator.geolocation)throw Error("Geolocation not supported");let{latitude:i,longitude:o}=(await new Promise((e,r)=>{navigator.geolocation.getCurrentPosition(e,r,{timeout:1e4,maximumAge:0,enableHighAccuracy:!0})})).coords,n=await f((0,en.RM)({latlng:"".concat(i,",").concat(o)})).unwrap(),s=(null===(r=n.results[0])||void 0===r?void 0:r.formatted_address)||"Selected Location";e("office_address",s),e("latitude",i),e("longitude",o),b(s),w({latitude:i,longitude:o})}catch(e){et.Am.error("Failed to retrieve your current location. Please enter the address manually.")}finally{h(!1)}};return(0,o.jsxs)(M.u_,{closeOnOverlayClick:!1,isOpen:r,onClose:i,size:"lg",children:[(0,o.jsx)(q.Z,{}),(0,o.jsxs)(G.h,{children:[(0,o.jsx)(J.x,{children:"Where does this business work from?"}),(0,o.jsx)(K.o,{}),(0,o.jsx)(V.f,{pb:6,children:(0,o.jsx)(ei.J9,{initialValues:{office_address:l||null,latitude:void 0,longitude:void 0,work_mode:c||"anywhere",radius_km:x||10},validationSchema:ec,onSubmit:async(e,r)=>{let{setSubmitting:o}=r;h(!0);try{await (0,el.SH)(s,{latitude:e.latitude,longitude:e.longitude,officeLocationAddress:e.office_address||void 0,workMode:e.work_mode,serviceRadiusKm:"roaming"===e.work_mode?e.radius_km:void 0}),i(),C.reload()}catch(e){et.Am.error("Failed to save location. Please try again.")}finally{h(!1),o(!1)}},children:e=>{let{values:r,errors:i,touched:n,setFieldValue:s,isSubmitting:l}=e;return(0,o.jsx)(ei.l0,{children:(0,o.jsxs)(a.g,{spacing:6,align:"stretch",children:[(0,o.jsx)(u.z,{size:"lg",variant:"outline",borderColor:"primary",color:"primary",onClick:()=>R(s),isLoading:p,loadingText:"Detecting location...",leftIcon:(0,o.jsx)(es.W,{}),borderRadius:"full",_hover:{bg:"gray.50"},fontWeight:"medium",children:"Use Current Location"}),(0,o.jsxs)(t.x,{position:"relative",children:[(0,o.jsx)(t.x,{position:"absolute",top:"50%",left:0,right:0,borderBottom:"1px",borderColor:"gray.200"}),(0,o.jsx)(g.x,{position:"relative",bg:"white",px:4,fontSize:"sm",color:"gray.500",textAlign:"center",display:"inline-block",left:"50%",transform:"translateX(-50%)",children:"or enter manually"})]}),(0,o.jsxs)(Q.NI,{isInvalid:!!i.office_address&&n.office_address,children:[(0,o.jsx)(X.I,{size:"lg",placeholder:"Street, area, city",value:m,onChange:e=>{b(e.target.value),s("office_address",e.target.value)},onBlur:()=>s("office_address",m),bg:"gray.100",borderRadius:"full"}),(0,o.jsx)(Y.J1,{children:i.office_address})]}),j.length>0&&(0,o.jsxs)(a.g,{maxH:"300px",overflowY:"auto",bg:"white",borderRadius:"md",borderWidth:1,borderColor:"gray.200",p:2,children:[j.map(e=>(0,o.jsx)(t.x,{p:2,w:"full",_hover:{bg:"gray.50",cursor:"pointer"},onClick:()=>z(e,s),children:(0,o.jsx)(g.x,{fontSize:"md",children:e.description})},e.place_id)),p&&(0,o.jsx)($.$,{size:"sm"})]}),(0,o.jsxs)(a.g,{align:"stretch",spacing:3,children:[(0,o.jsx)(g.x,{fontSize:"15px",fontWeight:"700",color:"gray.800",children:"Where do you meet customers?"}),(0,o.jsx)(a.g,{align:"stretch",spacing:2,children:ed.map(e=>{let i=r.work_mode===e.value;return(0,o.jsxs)(t.x,{as:"button",type:"button",onClick:()=>s("work_mode",e.value),display:"flex",alignItems:"center",gap:"12px",w:"full",textAlign:"left",padding:"14px",borderRadius:"12px",borderWidth:i?"2px":"1px",borderColor:i?"#101828":"gray.200",bg
1:"white",children:[(0,o.jsx)(t.x,{w:"18px",h:"18px",borderRadius:"full",borderWidth:"2px",borderColor:i?"#101828":"gray.300",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,children:i&&(0,o.jsx)(t.x,{w:"9px",h:"9px",borderRadius:"full",bg:"#101828"})}),(0,o.jsx)(g.x,{fontSize:"14px",fontWeight:"700",color:"gray.800",children:e.label})]},e.value)})}),"roaming"===r.work_mode&&(0,o.jsxs)(t.x,{bg:"gray.50",borderRadius:"12px",padding:"16px",children:[(0,o.jsx)(g.x,{fontSize:"13px",fontWeight:"700",color:"gray.800",mb:1,children:"How far will you travel for a job?"}),(0,o.jsx)(t.x,{display:"flex",gap:2,flexWrap:"wrap",mb:3,children:ea.map(e=>{let i=r.radius_km===e;return(0,o.jsxs)(u.z,{size:"sm",borderRadius:"full",variant:i?"solid":"outline",bg:i?"#1643C5":"white",color:i?"white":"gray.600",borderColor:i?"#1643C5":"gray.200",onClick:()=>s("radius_km",e),_hover:{bg:i?"#1643C5":"gray.50"},children:[e," km"]},e)})}),(0,o.jsxs)(d.U,{bg:"white",borderRadius:"10px",padding:"10px",spacing:2,children:[(0,o.jsx)(t.x,{w:"8px",h:"8px",borderRadius:"full",bg:"#10B981",flexShrink:0}),(0,o.jsxs)(g.x,{fontSize:"12px",color:"gray.700",children:["Customers will see: travels up to ",r.radius_km," km."]})]})]})]}),(0,o.jsx)(ee.m,{children:(0,o.jsx)(u.z,{size:"lg",width:"100%",colorScheme:"blue",isLoading:p||l,isDisabled:l,type:"submit",borderRadius:"full",mt:4,children:"Update"})})]})})}})})]})]})},ex=i(37945),eg=i(24950),ep=i(57012),eh=e=>{let{isOpen:r,onClose:i,businessId:s,initialBannerImageUrl:l}=e,a=(0,eo.I0)(),c=(0,n.useRef)(null),x=(0,n.useRef)(null),[p,f]=(0,n.useState)(null),[m,b]=(0,n.useState)(null),[j,y]=(0,n.useState)(!1),[v,w]=(0,n.useState)(!1),[C,k]=(0,n.useState)(!1),S=(0,A.useRouter)();(0,n.useEffect)(()=>{l&&!p&&b(l)},[l,p]);let R=async()=>{if(!p){et.Am.error("Please select a file to upload");return}y(!0);try{let e=localStorage.getItem("token");if(!e)throw Error("Authentication token is missing");let r=(await a((0,ep.KC)({files:[{filename:p.name,contentType:p.type}],resourceType:"business",resourceId:s,userAuthToken:e,imageType:"background"})).unwrap()).presignedUrls[0];if(!(null==r?void 0:r.url))throw Error("Failed to retrieve presigned URL");let o=await fetch(r.url,{method:"PUT",headers:{"Content-Type":p.type,"x-goog-meta-resource-type":"business","x-goog-meta-resource-id":s,"x-goog-meta-user_auth_token":e,"x-goog-meta-image-type":"background"},body:p});if(!o.ok)throw Error("Failed to upload ".concat(p.name,". Status: ").concat(o.status));let n="https://storage.googleapis.com/handymesh/".concat(r.filename);await (0,el.lK)(s,n),f(null),b(null),c.current&&(c.current.value=""),i(),S.reload()}catch(e){et.Am.error((null==e?void 0:e.message)||"Failed to upload banner. Please try again.")}finally{y(!1)}},I=()=>{k(!0),w(!0)},E=async()=>{y(!0);try{p?(f(null),b(l||null),c.current&&(c.current.value=""),et.Am.info("Selection cleared")):l&&(await (0,el.lK)(s,""),b(null),et.Am.success("Banner removed successfully"),i(),S.reload()),w(!1),k(!1)}catch(e){et.Am.error("Failed to remove banner. Please try again.")}finally{y(!1)}};return(0,n.useEffect)(()=>()=>{m&&!l&&URL.revokeObjectURL(m)},[m,l]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(M.u_,{closeOnOverlayClick:!1,isOpen:r,onClose:i,size:"xl",children:[(0,o.jsx)(q.Z,{}),(0,o.jsxs)(G.h,{children:[(0,o.jsx)(J.x,{children:"Upload Business Banner"}),(0,o.jsx)(K.o,{}),(0,o.jsx)(V.f,{pb:6,children:(0,o.jsxs)(h.k,{bg:"gray.100",h:"240px",borderRadius:"lg",align:"center",justify:"center",border:"1px dashed",borderColor:"gray.300",cursor:C?"not-allowed":"pointer",opacity:C?.6:1,onClick:()=>{var e;return!C&&(null===(e=c.current)||void 0===e?void 0:e.click())},children:[(0,o.jsx)("input",{type:"file",ref:c,style:{display:"none"},accept:"image/jpeg,image/png,image/heic,image/heif",onChange:e=>{var r;let i=null===(r=e.target.files)||void 0===r?void 0:r[0];if(i){if(i.size>10485760){et.Am.error("File size exceeds 10MB");return}if(!["image/jpeg","image/png","image/heic","image/heif"].includes(i.type)){et.Am.error("Please select a JPG, PNG, or HEIC/HEIF file");return}f(i),b(URL.createObjectURL(i))}},disabled:C}),(0,o.jsx)(h.k,{direction:"column",align:"center",justify:"center",textAlign:"center",p:4,children:m?(0,o.jsxs)(t.x,{position:"relative",display:"inline-block",children:[(0,o.jsx)(ex.E,{src:m,alt:"Banner preview",h:"220px",w:"100%",objectFit:"cover",borderRadius:"md"}),(0,o.jsx)(h.k,{position:"absolute",top:"-8px",right:"-8px",borderRadius:"full",bg:"white",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",minW:"32px",h:"32px",cursor:"pointer",align:"center",justify:"center",onClick:e=>{e.stopPropagation(),I()},_hover:{bg:"gray.100"},children:"x"})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.x,{rounded:"full",bg:"gray.50",p:3,mb:3,border:"1px dashed",borderColor:"gray.300",display:"flex",alignItems:"center",justifyContent:"center",children:(0,o.jsx)(z.Z,{size:24})}),(0,o.jsx)(g.x,{fontSize:"sm",fontWeight:"medium",color:"gray.800",children:"Upload banner image"}),(0,o.jsx)(g.x,{fontSize:"xs",color:"gray.500",children:"JPG, PNG, or HEIC"})]})})]})}),(0,o.jsx)(ee.m,{children:(0,o.jsxs)(d.U,{w:"full",justify:"space-between",children:[(0,o.jsx)(u.z,{colorScheme:"red",variant:"ghost",rounded:"full",onClick:I,isDisabled:!l&&!p||j,children:"Delete Banner"}),(0,o.jsxs)(d.U,{children:[(0,o.jsx)(u.z,{colorScheme:"blue",variant:"outline",rounded:"full",onClick:i,isDisabled:j,children:"Cancel"}),(0,o.jsx)(u.z,{colorScheme:"blue",rounded:"full",onClick:R,isLoading:j,isDisabled:!p||j,children:"Update"})]})]})})]})]}),(0,o.jsx)(eg.aR,{isOpen:v,leastDestructiveRef:x,onClose:()=>w(!1),children:(0,o.jsx)(q.Z,{children:(0,o.jsxs)(eg._T,{children:[(0,o.jsx)(J.x,{fontSize:"lg",fontWeight:"bold",children:"Delete Image"}),(0,o.jsx)(V.f,{children:"Are you sure you want to delete the selected image?"}),(0,o.jsxs)(ee.m,{children:[(0,o.jsx)(u.z,{ref:x,onClick:()=>{w(!1),k(!1)},children:"Cancel"}),(0,o.jsx)(u.z,{colorScheme:"red",onClick:E,ml:3,children:"Delete"})]})]})})})]})},ef=e=>{let{isOpen:r,onClose:i,businessId:s,initialProfileImageUrl:l}=e,a=(0,eo.I0)(),c=(0,n.useRef)(null),x=(0,n.useRef)(null),[p,f]=(0,n.use
1State)(null),[m,b]=(0,n.useState)(null),[j,y]=(0,n.useState)(!1),[v,w]=(0,n.useState)(!1),[C,k]=(0,n.useState)(!1),S=(0,A.useRouter)();(0,n.useEffect)(()=>{l&&!p&&b(l)},[l,p]);let R=async()=>{if(!p){et.Am.error("Please select a file to upload");return}y(!0);try{let e=localStorage.getItem("token");if(!e)throw Error("Authentication token is missing");let r=(await a((0,ep.KC)({files:[{filename:p.name,contentType:p.type}],resourceType:"business",resourceId:s,userAuthToken:e,imageType:"profile"})).unwrap()).presignedUrls[0];if(!(null==r?void 0:r.url))throw Error("Failed to retrieve presigned URL");let o=await fetch(r.url,{method:"PUT",headers:{"Content-Type":p.type,"x-goog-meta-resource-type":"business","x-goog-meta-resource-id":s,"x-goog-meta-user_auth_token":e,"x-goog-meta-image-type":"profile"},body:p});if(!o.ok)throw Error("Failed to upload ".concat(p.name,". Status: ").concat(o.status));let n="https://storage.googleapis.com/handymesh/".concat(r.filename);await (0,el.el)(s,n),f(null),b(null),c.current&&(c.current.value=""),i(),S.reload()}catch(e){et.Am.error((null==e?void 0:e.message)||"Failed to upload profile image. Please try again.")}finally{y(!1)}},I=()=>{k(!0),w(!0)},E=async()=>{y(!0);try{p?(f(null),b(l||null),c.current&&(c.current.value=""),et.Am.info("Selection cleared")):l&&(await (0,el.el)(s,""),b(null),et.Am.success("Profile image removed successfully"),i(),S.reload()),w(!1),k(!1)}catch(e){et.Am.error("Failed to remove profile image. Please try again.")}finally{y(!1)}};return(0,n.useEffect)(()=>()=>{m&&!l&&URL.revokeObjectURL(m)},[m,l]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(M.u_,{closeOnOverlayClick:!1,isOpen:r,onClose:i,size:"xl",children:[(0,o.jsx)(q.Z,{}),(0,o.jsxs)(G.h,{children:[(0,o.jsx)(J.x,{children:"Upload Profile Image"}),(0,o.jsx)(K.o,{}),(0,o.jsx)(V.f,{pb:6,children:(0,o.jsxs)(h.k,{bg:"gray.100",h:"240px",borderRadius:"lg",align:"center",justify:"center",border:"1px dashed",borderColor:"gray.300",cursor:C?"not-allowed":"pointer",opacity:C?.6:1,onClick:()=>{var e;return!C&&(null===(e=c.current)||void 0===e?void 0:e.click())},children:[(0,o.jsx)("input",{type:"file",ref:c,style:{display:"none"},accept:"image/jpeg,image/png,image/heic,image/heif",onChange:e=>{var r;let i=null===(r=e.target.files)||void 0===r?void 0:r[0];if(i){if(i.size>10485760){et.Am.error("File size exceeds 10MB");return}if(!["image/jpeg","image/png","image/heic","image/heif"].includes(i.type)){et.Am.error("Please select a JPG, PNG, or HEIC/HEIF file");return}f(i),b(URL.createObjectURL(i))}},disabled:C}),(0,o.jsx)(h.k,{direction:"column",align:"center",justify:"center",textAlign:"center",p:4,children:m?(0,o.jsxs)(t.x,{position:"relative",display:"inline-block",children:[(0,o.jsx)(ex.E,{src:m,alt:"Profile image preview",maxH:"180px",maxW:"100%",objectFit:"cover",borderRadius:"full",boxSize:"180px",border:"4px solid white",shadow:"lg"}),(0,o.jsx)(h.k,{position:"absolute",top:"0px",right:"0px",borderRadius:"full",bg:"white",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",minW:"32px",h:"32px",cursor:"pointer",align:"center",justify:"center",onClick:e=>{e.stopPropagation(),I()},_hover:{bg:"gray.100"},children:(0,o.jsx)(g.x,{color:"gray.600",fontSize:"sm",fontWeight:"bold",children:"✕"})})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.x,{rounded:"full",bg:"gray.50",p:3,mb:3,border:"1px dashed",borderColor:"gray.300",display:"flex",alignItems:"center",justifyContent:"center",children:(0,o.jsx)(z.Z,{size:24})}),(0,o.jsx)(g.x,{fontSize:"sm",fontWeight:"medium",color:"gray.800",children:"Upload profile image"}),(0,o.jsx)(g.x,{fontSize:"xs",color:"gray.500",children:"JPG, PNG, or HEIC"})]})})]})}),(0,o.jsx)(ee.m,{children:(0,o.jsxs)(d.U,{w:"full",justify:"space-between",children:[(0,o.jsx)(u.z,{colorScheme:"red",variant:"ghost",rounded:"full",onClick:I,isDisabled:!l&&!p||j,children:"Delete Image"}),(0,o.jsxs)(d.U,{children:[(0,o.jsx)(u.z,{colorScheme:"blue",variant:"outline",rounded:"full",onClick:i,isDisabled:j,children:"Cancel"}),(0,o.jsx)(u.z,{colorScheme:"blue",rounded:"full",onClick:R,isLoading:j,isDisabled:!p||j,children:"Update"})]})]})})]})]}),(0,o.jsx)(eg.aR,{isOpen:v,leastDestructiveRef:x,onClose:()=>w(!1),children:(0,o.jsx)(q.Z,{children:(0,o.jsxs)(eg._T,{children:[(0,o.jsx)(J.x,{fontSize:"lg",fontWeight:"bold",children:"Delete Image"}),(0,o.jsx)(V.f,{children:"Are you sure you want to delete the selected image?"}),(0,o.jsxs)(ee.m,{children:[(0,o.jsx)(u.z,{ref:x,onClick:()=>{w(!1),k(!1)},children:"Cancel"}),(0,o.jsx)(u.z,{colorScheme:"red",onClick:E,ml:3,children:"Delete"})]})]})})})]})},em=i(2248);let eb=e=>(0,em.X8)("get","".concat(em.Ne,"/core/quote-intake-fields/profession/").concat(e));var ej=i(26873),ey=i(51656),ev=e=>{let{isOpen:r,onClose:i,businessId:s,ownerUserId:l,businessName:d,logoUrl:c,isTopRated:x}
1=e,[p,h]=(0,n.useState)(null),[f,m]=(0,n.useState)([]),[b,j]=(0,n.useState)([]),[y,v]=(0,n.useState)([]),[w,C]=(0,n.useState)(!1),k=async e=>{C(!0);try{v(await eb(e.id))}catch(e){v([])}j([e]),C(!1)},S=e=>{m(r=>r.some(r=>r.id===e.id)?r.filter(r=>r.id!==e.id):[...r,e])};if((0,n.useEffect)(()=>{if(!r){m([]),j([]),h(null);return}let e=!1;return C(!0),(0,el.sA)(s).then(async r=>{e||(h(r),1===r.length?await k(r[0]):C(!1))}).catch(()=>{e||(h([]),C(!1))}),()=>{e=!0}},[r,s]),b.length>0){let e=b.length>1;return(0,o.jsx)(ey.Z,{isOpen:r,onClose:i,artisanId:l,serviceType:b[0].id,serviceTypes:e?b.map(e=>e.id):void 0,professionDisplayName:b.map(e=>e.name).join(", "),isCustomQuoteFlow:!0,usesReservationInventory:b[0].usesReservationInventory,artisanFirstname:"",artisanLastname:"",displayName:d,isBusinessIdentity:!0,isTopRated:x,imageUrl:c,targetBusinessId:s,overrideQuoteIntakeFields:e?[]:y})}if(!w&&p&&p.length>1){let e=f.length>0;return(0,o.jsxs)(M.u_,{isOpen:r,onClose:i,isCentered:!0,children:[(0,o.jsx)(q.Z,{bg:"rgba(14,18,26,0.52)"}),(0,o.jsxs)(G.h,{maxW:"520px",borderRadius:"20px",children:[(0,o.jsxs)(t.x,{display:"flex",alignItems:"flex-start",gap:"16px",padding:"24px 24px 14px",children:[(0,o.jsxs)(t.x,{flex:"1",minW:"0",display:"flex",flexDirection:"column",gap:"6px",children:[(0,o.jsx)(g.x,{fontSize:"12px",fontWeight:600,letterSpacing:"0.1em",textTransform:"uppercase",color:ej.y.color.muted1,children:"Request a quote"}),(0,o.jsx)(g.x,{fontSize:"24px",fontWeight:700,lineHeight:"1.2",color:ej.y.color.navy,children:"What do you need help with?"}),(0,o.jsxs)(g.x,{fontSize:"14px",lineHeight:"1.45",color:ej.y.color.grey,children:[d," offers ",p.length," services. Pick as many as your job needs."]})]}),(0,o.jsx)(K.o,{position:"static",flexShrink:0})]}),(0,o.jsxs)(V.f,{pt:"0",pb:"24px",maxH:"588px",overflowY:"auto",children:[(0,o.jsx)(a.g,{spacing:"10px",align:"stretch",children:p.map(e=>{let r=f.some(r=>r.id===e.id);return(0,o.jsxs)(t.x,{as:"button",type:"button",onClick:()=>S(e),display:"flex",alignItems:"center",gap:"14px",minH:"60px",padding:"16px 18px",borderRadius:"14px",textAlign:"left",border:r?"1.5px solid":"1px solid",borderColor:r?ej.y.color.navy:ej.y.color.border1,bg:r?ej.y.color.surfaceRaised:"#FFFFFF",cursor:"pointer",children:[(0,o.jsx)(t.x,{flexShrink:0,w:"24px",h:"24px",borderRadius:"".concat(ej.y.radius.checkbox,"px"),border:r?"1px solid":"1.5px solid",borderColor:r?ej.y.color.navy:ej.y.color.checkboxBorder,bg:r?ej.y.color.navy:"#FFFFFF",display:"flex",alignItems:"center",justifyContent:"center",children:r&&(0,o.jsx)(g.x,{fontSize:"13px",fontWeight:700,color:"#FFFFFF",lineHeight:"1",children:"✓"})}),(0,o.jsx)(g.x,{fontSize:"17px",fontWeight:r?700:500,color:r?ej.y.color.navy:ej.y.color.navyText,children:e.businessDisplayName||e.name})]},e.id)})}),(0,o.jsx)(u.z,{mt:"14px",w:"full",h:"auto",padding:"17px 22px",borderRadius:"14px",fontSize:"16px",fontWeight:700,bg:e?ej.y.color.navy:"#E7EAEE",color:e?"#FFFFFF":"#A2AAB6",_hover:e?{opacity:.92}:{},cursor:e?"pointer":"default",isDisabled:!e,onClick:()=>j(f),children:f.length>1?"Continue \xb7 ".concat(f.length," services"):"Continue"})]})]})]})}return!w&&p&&0===p.length?(0,o.jsxs)(M.u_,{isOpen:r,onClose:i,size:"md",children:[(0,o.jsx)(q.Z,{}),(0,o.jsx)(G.h,{children:(0,o.jsx)(V.f,{py:10,children:(0,o.jsxs)(g.x,{textAlign:"center",color:"gray.600",children:[d," hasn't set up its services yet — check back later."]})})})]}):(0,o.jsxs)(M.u_,{isOpen:r&&w,onClose:i,size:"md",children:[(0,o.jsx)(q.Z,{}),(0,o.jsx)(G.h,{children:(0,o.jsx)(V.f,{py:10,children:(0,o.jsx)(a.g,{children:(0,o.jsx)($.$,{})})})})]})},ew=i(31687),eC=i(41886),ek=e=>{let{isOpen:r,onClose:i,businessId:s,initialCategoryId:l,initialCategoryName:a,pendingProfessions:c,pendingProfessionsReason:u}=e,x=(0,A.useRouter)(),[p,h]=(0,n.useState)(!1),[f,m]=(0,n.useState)(!1),b=async e=>{m(!0);try{await (0,el.oS)(s,e),et.Am.success("Business category saved."),x.reload()}catch(e){et.Am.error((null==e?void 0:e.message)||"Couldn't update your business category.")}finally{m(!1)}};return(0,o.jsxs)(M.u_,{isOpen:r,onClose:i,size:"lg",children:[(0,o.jsx)(q.Z,{}),(0,o.jsxs)(G.h,{children:[(0,o.jsx)(J.x,{children:(0,o.jsxs)(t.x,{display:"flex",flexDirection:"column",gap:"4px",pr:"32px",children:[(0,o.jsx)(g.x,{fontSize:"22px",fontWeight:700,lineHeight:"1.2",color:ej.y.color.navy,children:"What you offer"}),(0,o.jsx)(g.x,{fontSize:"14px",fontWeight:400,lineHeight:"1.45",color:ej.y.color.grey,children:"Customers requesting quotes are matched to these."})]})}),(0,o.jsx)(K.o,{}),(0,o.jsx)(V.f,{pb:6,children:(0,o.jsxs)(t.x,{display:"flex",flexDirection:"column",gap:"14px",children:[(0,o.jsx)(t.x,{children:p?(0,o.jsx)(ew.Z,{value:l,onConfirm:b,isSaving:f}):(0,o.jsxs)(d.U,{justify:"space-between",align:"center",bg:ej.y.color.fill1,borderRadius:"14px",px:"14px",py:"12px",children:[(0,o.jsxs)(t.x,{children:[(0,o.jsx)(g.x,{fontSize:"11px",fontWeight:600,letterSpacing:"0.1em",textTransform:"uppercase",color:ej.y.color.muted3,mb:"2px",children:"Category"}),(0,o.jsx)(g.x,{fontSize:"15px",fontWeight:700,color:ej.y.color.navy,children:a||"Not set"})]}),(0,o.jsx)(t.x,{as:"button",type:"button",onClick:()=>h(!0),fontSize:"14px",fontWeight:600,color:ej.y.color.blue,bg:"transparent",border:"none",cursor:"pointer",children:"Change"})]})}),!p&&(0,o.jsx)(eC.Z,{businessId:s,confirmLabel:"Save",showHeader:!1,onSaved:()=>{et.Am.success("Professions updated."),x.reload()},pendingProfessions:c,pendingProfessionsReason:u})]})})]})]})},eS=i(66569),ez=i(19159),eR=i(77883),eI=i(50928),eE=i(92209),e_=i(68730);let eA={store:I.Z,route:E.Z,globe:_.Z};var eF=!0,eW=e=>{var r,i,I,E;let{serverProfile:_}=e,M=(0,A.useRouter)().query.businessId,q=(0,en.$V)(),{activeRole:G}
1=(0,e_.q)(),[J,K]=(0,n.useState)(null),[V,Q]=(0,n.useState)([]),[X,Y]=(0,n.useState)([]),[$,ee]=(0,n.useState)(!1),[er,ei]=(0,n.useState)(null),{business:eo,canManageProfile:es,canManageJobs:et,serviceTags:ea}=er||_,ed=!!(null==q?void 0:q.activeBusinessId)&&(null==q?void 0:q.activeBusinessId)===M,ec="customer"!==G&&ed,ex=ec&&es,eg=ec&&et,ep=!!q&&$;(0,n.useEffect)(()=>{if(!M)return;let e=!1;return ee(!0),Promise.all([(0,ez.TE)(M),(0,eR.tp)(M,3),(0,el.sA)(M),q?(0,el.WR)(M).catch(()=>null):Promise.resolve(null)]).then(r=>{let[i,o,n,s]=r;!e&&(K(i),Q(o),Y(n),s&&ei(s))}).catch(()=>{}).finally(()=>!e&&ee(!1)),()=>{e=!0}},[M]);let em=X.some(e=>e.usesReservationInventory),eb=X.some(e=>e.hasFixedPrice),[ej,ey]=(0,n.useState)(null),ew=()=>ey(null),{isOpen:eC,onOpen:eF,onClose:eW}=(0,s.q)(),{isOpen:eU,onOpen:eP,onClose:eZ}=(0,s.q)(),[eO,eL]=(0,n.useState)(void 0),[eT,eB]=(0,n.useState)(void 0),eH=(0,eE.xr)(eo.workingHours),eN=(0,eE.H1)(eo.workingHours),eD=!!(null==J?void 0:null===(r=J.servicesPricing)||void 0===r?void 0:r.length),eM=eo.catalogs||[];if(!eo)return(0,o.jsx)(U.Z,{});let eq=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(t.x,{maxW:"720px",mx:"auto",position:"relative",zIndex:0,children:[(0,o.jsx)(t.x,{h:"150px",borderTopRadius:{md:"none",lg:"md"},bgImage:eo.bannerImageUrl?"url(".concat(eo.bannerImageUrl,")"):eS.Z.src,bgSize:"cover",bgPosition:"center"}),ex&&(0,o.jsx)(t.x,{position:"absolute",top:"14px",right:"14px",bg:"white",p:"6px",rounded:"full",cursor:"pointer",onClick:()=>ey("banner"),children:(0,o.jsx)(m.Z,{size:20})}),(0,o.jsxs)(t.x,{mx:{base:"0",md:"24px"},px:{base:"10px",md:""},children:[(0,o.jsxs)(t.x,{position:"absolute",top:"100px",bg:"white",rounded:"full",p:1,children:[(0,o.jsx)(l.q,{size:"xl",name:eo.name,src:eo.profileImageUrl||void 0,onClick:ex?()=>ey("profileImage"):void 0,cursor:ex?"pointer":void 0}),ex&&(0,o.jsx)(t.x,{position:"absolute",bottom:"0px",right:"0px",bg:"white",p:"6px",rounded:"full",boxShadow:"0 1px 4px rgba(0,0,0,0.2)",cursor:"pointer",onClick:()=>ey("profileImage"),children:(0,o.jsx)(m.Z,{size:16})})]}),(0,o.jsxs)(a.g,{align:"start",mt:"8px",spacing:"10px",children:[(0,o.jsxs)(d.U,{alignSelf:"flex-end",children:[ep&&(0,o.jsx)(c.O,{borderRadius:"32px",height:"40px",width:"150px",startColor:"gray.100",endColor:"gray.300"}),!ep&&ex&&(0,o.jsxs)(u.z,{borderRadius:"32px",fontSize:"14px",gap:"10px",px:"12px",minW:"unset",w:"max-content",size:"md",onClick:()=>ey("about"),children:[(0,o.jsx)(b.Z,{size:"16px"}),"Edit Profile"]}),!ep&&!ex&&!ed&&(0,o.jsxs)(u.z,{borderRadius:"32px",fontSize:"14px",gap:"10px",px:"12px",minW:"unset",w:"max-content",size:"md",onClick:()=>ey("requestQuote"),children:[(0,o.jsx)(j.Z,{size:"16px"}),"Request a Quote"]}),(0,o.jsx)(x.h,{"aria-label":"Share business",icon:(0,o.jsx)(R.jRj,{size:"16px"}),borderRadius:"full",variant:"outline",borderColor:"gray.200",w:50,onClick:()=>ey("shareProfile")})]}),(0,o.jsxs)(a.g,{align:"start",spacing:0,children:[(0,o.jsxs)(g.x,{fontSize:"xl",fontWeight:"semibold",color:"gray.900",children:[eo.name,eo.isTopRated&&(0,o.jsx)(g.x,{as:"span",ml:2,display:"inline-flex",verticalAlign:"middle",children:(0,o.jsx)(P.Z,{size:"sm"})})]}),(0,o.jsxs)(d.U,{spacing:"4px",children:[(0,o.jsx)(p.J,{as:y.Z,boxSize:4,color:"gray.400"}),(0,o.jsx)(g.x,{fontSize:"md",color:"gray.500",children:(null===(i=eo.businessCategory)||void 0===i?void 0:i.name)||"Service provider"}),ex&&(0,o.jsx)(x.h,{onClick:()=>ey("categoryProfessions"),"aria-label":"Edit category and professions",icon:(0,o.jsx)(b.Z,{size:"16px"}),borderRadius:"full",variant:"outline",borderColor:"gray.200",size:"sm"})]})]}),(()=>{let e=(0,eI.S)({workMode:eo.workMode,officeLocationAddress:eo.officeLocationAddress,serviceRadiusKm:eo.serviceRadiusKm});if(!ex&&!e)return null;let r=e?eA[e.icon]:v.Z;return(0,o.jsxs)(d.U,{spacing:"6px",children:[(0,o.jsx)(r,{size:15,color:"#6B7280"}),(0,o.jsx)(g.x,{fontSize:"md",color:"gray.500",children:e?e.label:"Location not set yet"}),ex&&(0,o.jsx)(x.h,{onClick:()=>ey("location"),"aria-label":"Edit location",icon:(0,o.jsx)(b.Z,{size:"16px"}),borderRadius:"full",variant:"outline",borderColor:"gray.200",size:"sm"})]})})()]})]}),(0,o.jsxs)(a.g,{align:"stretch",spacing:8,mt:"34px",px:{base:"10px",md:""},children:[(ex||Number(eo.ratingCount)>0||Number(eo.rating)>0)&&(0,o.jsxs)(h.k,{direction:"row",bg:"white",borderRadius:"xl",border:"1px solid",borderColor:"gray.200",p:{base:3,md:5},boxShadow:"sm",justify:"space-evenly",align:"center",gap:{base:2,md:4},children:[(0,o.jsxs)(a.g,{spacing:2,flex:"1",children:[(0,o.jsx)(t.x,{p:2,bg:"green.50",rounded:"lg",children:(0,o.jsx)(w.Z,{size:24,color:"#10B981"})}),(0,o.jsxs)(a.g,{spacing:0,align:"center",children:[(0,o.jsx)(g.x,{fontSize:{base:"lg",md:"2xl"},fontWeight:"bold",color:"gray.800",children:Number(eo.ratingCount)||0}),(0,o.jsx)(g.x,{fontSize:{base:"xs",md:"sm"},color:"gray.600",textAlign:"center",children:"Reviews"})]})]}),(0,o.jsx)(f.i,{orientation:"vertical",h:"50px",borderColor:"gray.200"}),(0,o.jsxs)(a.g,{spacing:2,flex:"1",children:[(0,o.jsx)(t.x,{p:2,bg:"yellow.50",rounded:"lg",children:(0,o.jsx)(p.J,{as:C.Z,boxSize:6,color:"#FFC107"})}),(0,o.jsxs)(a.g,{spacing:0,align:"center",children:[(0,o.jsx)(g.x,{fontSize:{base:"lg",md:"2xl"},fontWeight:"bold",color:"gray.800",children:Number(eo.rating)>0?Number(eo.rating).toFixed(1):"New"}),(0,o.jsx)(g.x,{fontSize:{base:"xs",md:"sm"},color:"gray.600",textAlign:"center",children:"Rating"})]})]}),(0,o.jsx)(f.i,{orientation:"vertical",h:"50px",borderColor:"gray.200"}),(0,o.jsxs)(a.g,{spacing:2,flex:"1",children:[(0,o.jsx)(t.x,{p:2,bg:"purple.50",rounded:"lg",children:(0,o.jsx)(k.Z,{size:24,color:"#9333EA"})}),(0,o.jsxs)(a.g,{spacing:0,align:"center",children:[(0,o.jsx)(g.x,{fontSize:{base:"lg",md:"2xl"},fontWeight:"bold",color:"gray.800",children:eo.createdAt?new Date(eo.createdAt).toLocaleDateString("en-US",{month:"short",year:"numeric"}):"N/A"}),(0,o.jsx)(g.x,{fontSize:{base:"xs",md:"sm"},color:"gray.600",textAlign:"center",children:"Member Since"})]})]})]}),(0,o.jsxs)(t.x,{children:[(ex||eo.about)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(d.U,{justify:"space-between",mb:4,children:[(0,o.jsx)(g.x,{fontSize:"xl",fontWeight:"semibold",color:"gray.900",children:"About"}),ex&&(0,o.jsx)(x.h,{onClick:()=>ey("about"),"aria-label":"Edit about",icon:(0,o.jsx)(b.Z,{size:"16px"}),borderRadius:"full",variant:"outline",borderColor:"gray.200",size:"sm"})]}),(0,o.jsx)(t.x,{borderBottom:"1px solid",borderColor:"gray.200",pb:6,children:eo.about?(0,o.jsx)(g.x,{fontSize:"md",color:"gray.600",children:eo.about}):(0,o.jsxs)(a.g,{my:10,spacing:4,textAlign:"center",children:[(0,o.jsx)(h.k,{bg:"gray.50",rounded:"full",justify:"center",align:"center",w:"120px",h:"120px",children:(0,o.jsx)(h.k,{bg:"#F8F8F8",rounded:"full",justify:"center",align:"center",w:"78px",h:"78px",border:"5px solid white",children:(0,o.jsx)(b.Z,{size:44})})}),(0,o.jsxs)(a.g,{spacing:2,children:[(0,o.jsx)(g.x,{fontSize:"lg",fontWeight:"semibold",color:"gray.800",children:"Update Your Bio"}),(0,o.jsx)(g.x,{fontSize:"md",color:"gray.600",maxW:"380px",children:"Add a bio to make this business stand out and attract more customers."}),(0,o.jsx)(u.z,{borderRadius:"36px",onClick:()=>ey("about"),children:"Update Bio"})]})]})})]}),ea.items.length>0&&(0,o.jsxs)(t.x,{pt:6,pb:6,borderBottom:"1px solid",borderColor:"gray.200",children:[(0,o.jsx)(g.x,{fontSize:"xl",fontWeight:"semibold",color:"gray.900",mb:4,children:ea.label}),(0,o.jsx)(d.U,{spacing:"8px",flexWrap:"wrap",children:ea.items.map((e,r)=>(0,o.jsx)(t.x,{bg:"#101828",color:"white",px:"12px",py:"6px",borderRadius:"full",fontSize:"13px",fontWeight:"500",children:e},r))})]}),(ex||eH)&&(0,o.jsx)(t.x,{pt:6,children:(0,o.jsxs)(t.x,{p:3,bg:"white",borderRadius:"md",border:"1px solid",borderColor:"gray.100",children:[(0,o.jsxs)(d.U,{justify:"space-between",mb:2,children:[(0,o.jsxs)(d.U,{alignItems:"center",gap:2,children:[(0,o.jsx)(S.Z,{size:16,color:"#222E50"}),(0,o.jsx)(g.x,{fontSize:"16px",fontWeight:"semibold",color:"gray.800",children:"Working Hours"}),eH&&(0,o.jsx)(t.x,{px:2,py:"2px",borderRadius:"full",bg:eN?"green.50":"gray.100",children:(0,o.jsx)(g.x,{fontSize:"11px",fontWeight:"600",color:eN?"green.600":"gray.500",children:eN?"Open now":"Closed 
1now"})})]}),ex&&(0,o.jsx)(x.h,{onClick:()=>ey("workingHours"),"aria-label":"Edit Working Hours",icon:(0,o.jsx)(b.Z,{size:"16px"}),borderRadius:"full",variant:"outline",borderColor:"gray.200",size:"sm"})]}),(0,o.jsx)(g.x,{fontSize:"sm",color:"gray.600",children:eH||"No working hours set yet."})]})})]}),!$&&(eD||eg&&(em||eb))&&(0,o.jsxs)(t.x,{children:[(0,o.jsxs)(d.U,{justify:"space-between",mb:4,children:[(0,o.jsx)(g.x,{fontSize:"xl",fontWeight:"semibold",color:"gray.900",children:"Services & Pricing"}),eg&&(0,o.jsx)(u.z,{size:"sm",variant:"outline",onClick:()=>{eB(void 0),eF()},children:"Manage Listings"})]}),eD?(0,o.jsx)(O.Z,{items:(null==J?void 0:J.servicesPricing)||[],onItemClick:e=>{eB(e),eF()}}):(0,o.jsx)(g.x,{fontSize:"sm",color:"gray.500",children:"No listings yet."})]}),(ex||eM.length>0)&&(0,o.jsxs)(t.x,{children:[(0,o.jsxs)(d.U,{justify:"space-between",mb:4,children:[(0,o.jsx)(g.x,{fontSize:"xl",fontWeight:"semibold",color:"gray.900",children:"Catalog"}),ex&&eM.length>0&&(0,o.jsx)(u.z,{borderRadius:"36px",variant:"ghost",onClick:()=>{eL(void 0),eP()},children:(0,o.jsxs)(d.U,{children:[(0,o.jsx)(z.Z,{color:"#071E3B"}),(0,o.jsx)(g.x,{color:"#071E3B",children:"Post Work"})]})})]}),(0,o.jsx)(L.Z,{items:eM,isUser:ex,meshId:M,onItemClick:e=>{eL(e),eP()},onAddClick:()=>{eL(void 0),eP()}})]}),(0,o.jsxs)(t.x,{children:[(0,o.jsxs)(g.x,{fontSize:"xl",fontWeight:"semibold",color:"gray.900",mb:4,children:["Reviews (",(null==V?void 0:V.length)||0,")"]}),V.length>0?(0,o.jsx)(a.g,{align:"stretch",spacing:3,children:V.map(e=>(0,o.jsx)(Z.Z,{rating:e},e.id))}):(0,o.jsx)(g.x,{fontSize:"md",color:"gray.500",children:"No reviews yet."})]})]})]}),(0,o.jsx)(ef,{isOpen:"profileImage"===ej,onClose:ew,businessId:M,initialProfileImageUrl:eo.profileImageUrl}),(0,o.jsx)(eh,{isOpen:"banner"===ej,onClose:ew,businessId:M,initialBannerImageUrl:eo.bannerImageUrl}),(0,o.jsx)(N.Z,{isOpen:"about"===ej,onClose:ew,initialBio:eo.about||"",meshId:void 0,businessId:M}),(0,o.jsx)(D.Z,{isOpen:"workingHours"===ej,onClose:ew,initialWorkingHours:eo.workingHours,businessId:M}),(0,o.jsx)(eu,{isOpen:"location"===ej,onClose:ew,businessId:M,initialAddress:eo.officeLocationAddress,initialWorkMode:eo.workMode,initialServiceRadiusKm:eo.serviceRadiusKm}),(0,o.jsx)(ek,{isOpen:"categoryProfessions"===ej,onClose:ew,businessId:M,initialCategoryId:eo.businessCategoryId,initialCategoryName:null===(I=eo.businessCategory)||void 0===I?void 0:I.name,pendingProfessions:eo.pendingProfessions,pendingProfessionsReason:eo.pendingProfessionsReason}),(0,o.jsx)(H.Z,{isOpen:"shareProfile"===ej,onClose:ew,profileUrl:"".concat(window.location.origin,"/mesh/business/").concat(M),userImage:eo.profileImageUrl||eo.logoUrl||void 0,userName:eo.name,profession:(null===(E=eo.businessCategory)||void 0===E?void 0:E.name)||void 0,isBusinessIdentity:!0}),(0,o.jsx)(ev,{isOpen:"requestQuote"===ej,onClose:ew,businessId:M,ownerUserId:_.ownerUserId||"",businessName:eo.name,logoUrl:eo.logoUrl,isTopRated:eo.isTopRated}),(0,o.jsx)(T.Z,{isOpen:eC,onClose:()=>{eB(void 0),eW(),M&&(0,ez.TE)(M).then(K).catch(()=>{})},providerId:_.ownerUserId||"",supportsBookableItem:em,supportsServiceOffering:eb,isOwner:eg,viewOnly:!eg,initialListingId:eT,businessId:M}),(0,o.jsx)(B.Z,{isOpen:eU,onClose:()=>{eL(void 0),eZ()},userId:_.ownerUserId||"",items:eM,isOwner:ex,initialIndex:eO,businessId:M})]});return q?(0,o.jsx)(F.Z,{children:eq}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(W.Z,{}),eq]})}},85330:function(e,r,i){"use strict";i.d(r,{d:function(){return o}});let o=(0,i(24278).I)({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"})}},function(e){e.O(0,[5443,4838,6660,1664,1657,2775,6714,2893,4149,4615,6318,6809,8772,9203,1529,306,6749,5501,7186,2888,9774,179],function(){return e(e.s=97696)}),_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.