PageSourceSearch

https://flowerrie.com/_next/static/chunks/558.29338bc7c6bc4633.js

js flowerrie.com collected 2026-10-07 17:48:39 UTC 130,934 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[558],{1050:(e,s,t)=>{t.d(s,{J:()=>n});var a=t(73365);t(1521);var i=t(59731),r=t(19952);function n(e){let{className:s,...t}=e;return(0,a.jsx)(i.b,{"data-slot":"label",className:(0,r.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",s),...t})}},13213:(e,s,t)=>{t.d(s,{Pc:()=>i});var a=t(69749);function i(e){return function(e){var s,t;let i=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=Object.values(e.roomCapacities).reduce((e,s)=>e+(parseInt(s)||0),0),n=[...e.uploadedPhotos];null!==e.mainPhotoIndex&&e.mainPhotoIndex>=0&&e.mainPhotoIndex<n.length&&(n=[n[e.mainPhotoIndex],...n.filter((s,t)=>t!==e.mainPhotoIndex)]);let l=n.map(e=>e.url||e.previewUrl).filter(Boolean),d=n.filter(e=>e.url||e.previewUrl).map(e=>null!=e.focalX&&null!=e.focalY?{x:e.focalX,y:e.focalY}:null),c=""!==e.baseHourlyRate.trim(),o=""!==e.dailyRate.trim(),m="hourly",x=e.baseHourlyRate||"0";c&&o?(m="hourly",x=e.baseHourlyRate):o&&!c&&(m="daily",x=e.dailyRate);let u=x?"\xa3".concat(x):"\xa30";return{id:i?"draft-venue":"venue-"+Date.now(),name:e.venueName||"Your Venue Name",description:e.venueDescription||"No description available.",capacity:r||0,price:u,dailyRate:e.dailyRate?"\xa3".concat(e.dailyRate):void 0,hourlyRate:e.baseHourlyRate?"\xa3".concat(e.baseHourlyRate):void 0,priceType:m,rating:4.8*!i,ratingCount:12*!i,images:l,imageFocals:d,location:(null==(s=e.selectedLocation)?void 0:s.name)||(null==(t=e.selectedLocation)?void 0:t.address)||"Location not set",amenities:e.selectedAmenities||[],owner:{id:"vendor-"+Date.now(),name:(0,a.N)(e.vendorName)||e.venueName||"Host",email:"[email protected]",avatar:null},contact:{phone:"+44 1234 567890",email:"[email protected]"},bookings:[]}}(e,!0)}},19336:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(76555).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},23378:(e,s,t)=>{t.d(s,{T:()=>n});var a=t(73365),i=t(1521),r=t(19952);let n=i.forwardRef((e,s)=>{let{className:t,...i}=e;return(0,a.jsx)("textarea",{className:(0,r.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:s,...i})});n.displayName="Textarea"},31011:(e,s,t)=>{t.r(s),t.d(s,{default:()=>L});var a=t(73365),i=t(1521),r=t(23567),n=t(50434),l=t(31312),d=t(96625),c=t(41631),o=t(58336),m=t(1050),x=t(23378),u=t(48158),p=t(44019),h=t(13213),v=t(48612),j=t(19336),g=t(24997),f=t(23311),y=t(46158),N=t(83786),b=t(77962),D=t(35135),k=t(59835),w=t(77396),E=t(57191),R=t(90069),S=t(52748),F=t(67423),A=t(52575),T=t(79476),C=t(66243),P=t(40712),q=t(23924);function O(e){if(null==e)return null;let s="number"==typeof e?e:Number(String(e).replace(/[^\d.-]/g,""));return Number.isFinite(s)&&s>0?s:null}function I(e){let s=e.map(O).filter(e=>null!=e);return s.length?Math.min(...s):null}function B(e){let s=O(null==e?void 0:e.price);if(null!=s)return s;let t=String((null==e?void 0:e.serviceType)||"").toUpperCase(),a=(null==e?void 0:e.cateringDetails)||(null==e?void 0:e.photographyDetails)||(null==e?void 0:e.decorationDetails)||(null==e?void 0:e.bakeryDetails)||(null==e?void 0:e.beautyDetails)||(null==e?void 0:e.entertainmentDetails)||(null==e?void 0:e.transportationDetails)||(null==e?void 0:e.eventExperiencesDetails)||null,i=Array.isArray(null==a?void 0:a.packages)?a.packages:[];if(i.length){let e=I(i.flatMap(e=>[null==e?void 0:e.price,null==e?void 0:e.pricePerHead]));if(null!=e)return e}return"CATERING"===t&&(null==e?void 0:e.cateringDetails)?I([e.cateringDetails.halfDayPackageRate,e.cateringDetails.fullDayPackageRate,e.cateringDetails.baseHourlyRate,e.cateringDetails.dailyRate]):I([null==a?void 0:a.baseHourlyRate,null==a?void 0:a.hourlyRate,null==a?void 0:a.dailyRate,null==a?void 0:a.serviceRate,null==a?void 0:a.perTripRate,null==a?void 0:a.perMileRate,null==a?void 0:a.performanceRate])}function M(e){var s,t,a;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Unknown";if(!e)return i;let r=null==(s=e.firstName)?void 0:s.trim(),n=null==(t=e.lastName)?void 0:t.trim();return r||n?[r,n].filter(Boolean).join(" "):(null==(a=e.email)?void 0:a.trim())||i}function V(e){let{person:s}=e,t=M(s);return(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsxs)(c.eu,{children:[(0,a.jsx)(c.BK,{src:"https://api.dicebear.com/7.x/initials/svg?seed=".concat(encodeURIComponent(t))}),(0,a.jsx)(c.q5,{children:function(e){var s,t,a,i,r,n;if(!e)return"?";let l=null==(s=e.firstName)?void 0:s.trim(),d=null==(t=e.lastName)?void 0:t.trim(),c="".concat(null!=(r=null==l?void 0:l[0])?r:"").concat(null!=(n=null==d?void 0:d[0])?n:"").toUpperCase();if(c)return c;let o=null==(a=e.email)?void 0:a.trim();return(null==o||null==(i=o[0])?void 0:i.toUpperCase())||"?"}(s)})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium",children:t}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:(null==s?void 0:s.email)||"—"}),(null==s?void 0:s.phoneNumber)?(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:s.phoneNumber}):null]})]})}function L(){var e,s,t,c,O,I,L,z,U;let{data:H}=(0,r.useSession)(),_=null==H||null==(e=H.user)?void 0:e.accessToken,[Y,$]=(0,i.useState)([]),[G,Z]=(0,i.useState)([]),[J,W]=(0,i.useState)(!0),[X,K]=(0,i.useState)(null),[Q,ee]=(0,i.useState)(null),[es,et]=(0,i.useState)(!1),[ea,ei]=(0,i.useState)(""),[er,en]=(0,i.useState)(""),[el,ed]=(0,i.useState)(!1),[ec,eo]=(0,i.useState)(!1),[em,ex]=(0,i.useState)(!1),[eu,ep]=(0,i.useState)("");(0,i.useEffect)(()=>{ep(function(e){if(!e)return"";let s=(0,q.parseVenueTypeInput)((0,q.canonicalVenueType)(e));return"valid"===s.status?s.value:""}(null==Q?void 0:Q.venueType))},[null==Q?void 0:Q.id,null==Q?void 0:Q.venueType]);let[eh,ev]=(0,i.useState)(null),[ej,eg]=(0,i.useState)(null),[ef,ey]=(0,i.useState)(!1),[eN,eb]=(0,i.useState)(""),[eD,ek]=(0,i.useState)(""),[ew,eE]=(0,i.useState)(!1),[eR,eS]=(0,i.useState)(!1),[eF,eA]=(0,i.useState)(!1),[eT,eC]=(0,i.useState)("all"),[eP,eq]=(0,i.useState)(new Set),[eO,eI]=(0,i.useState)(""),[eB,eM]=(0,i.useState)(!1),[eV,eL]=(0,i.useState)(!1),[ez,eU]=(0,i.useState)("date");(0,i.useEffect)(()=>{_&&eH()},[H]);let eH=async()=>{try{var e,s,t,a,i,r,n,l;if(!_)throw Error("No authentication token found");let d=(0,v.getApiBaseUrl)(),[c,o]=await Promise.all([fetch("".concat(d,"/admin/venues/pending?limit=100"),{headers:{Authorization:"Bearer ".concat(_),"Content-Type":"application/json"}}),fetch("".concat(d,"/admin/services/pending?limit=100"),{headers:{Authorization:"Bearer ".concat(_),"Content-Type":"application/json"}})]);if(!c.ok){let e=await c.text();
1throw console.error("❌ [VenueApprovals] Venues response error:",e),Error("Failed to fetch pending venues: ".concat(c.status," ").concat(e))}if(!o.ok){let e=await o.text();throw console.error("❌ [VenueApprovals] Services response error:",e),Error("Failed to fetch pending services: ".concat(o.status," ").concat(e))}let m=await c.json(),x=await o.json();console.log("\uD83D\uDCCA [VenueApprovals] Venues response:",{status:c.status,venuesCount:(null==(s=m.data)||null==(e=s.venues)?void 0:e.length)||0,venues:(null==(t=m.data)?void 0:t.venues)||[],fullResponse:m}),console.log("\uD83D\uDCCA [VenueApprovals] Services response:",{status:o.status,servicesCount:(null==(i=x.data)||null==(a=i.services)?void 0:a.length)||0,services:(null==(r=x.data)?void 0:r.services)||[],fullResponse:x,responseKeys:Object.keys(x)});let u=(null==(n=x.data)?void 0:n.services)||x.services||[],p=(null==(l=m.data)?void 0:l.venues)||m.venues||[];console.log("✅ [VenueApprovals] Setting state:",{venuesCount:p.length,servicesCount:u.length,serviceIds:u.map(e=>({id:e.id,name:e.name,status:e.status}))}),$(p),Z(u)}catch(e){console.error("Error fetching pending listings:",e),u.oR.error("Failed to load pending listings")}finally{W(!1)}},e_=async e=>{ed(!0);try{if(!_)throw Error("No authentication token found");console.log("\uD83D\uDD0D Approving venue:",e),console.log("\uD83D\uDD0D API URL:","".concat((0,v.getApiBaseUrl)(),"/admin/venues/").concat(e,"/approve")),console.log("\uD83D\uDD0D Token present:",!!_);let s=await fetch("".concat((0,v.getApiBaseUrl)(),"/admin/venues/").concat(e,"/approve"),{method:"POST",headers:{Authorization:"Bearer ".concat(_),"Content-Type":"application/json"},body:JSON.stringify({approvalNotes:ea,venueType:eu||void 0})});if(console.log("\uD83D\uDD0D Response status:",s.status),console.log("\uD83D\uDD0D Response ok:",s.ok),!s.ok){let e=await s.text();throw console.error("\uD83D\uDD0D Error response:",e),Error("Failed to approve venue: ".concat(s.status," ").concat(e))}u.oR.success("Venue approved successfully!"),K(null),ee(null),ex(!1),ei(""),eH()}catch(e){console.error("Error approving venue:",e),u.oR.error("Failed to approve venue")}finally{ed(!1)}},eY=async e=>{et(!0);try{var s;if(!_)throw Error("No authentication token found");let t=await fetch("".concat((0,v.getApiBaseUrl)(),"/admin/venues/").concat(e),{headers:{Authorization:"Bearer ".concat(_),"Content-Type":"application/json"}});if(!t.ok)throw Error("Failed to fetch venue details");let a=await t.json();ee((null==(s=a.data)?void 0:s.venue)||a.venue)}catch(e){console.error("Error fetching full venue data:",e),u.oR.error("Failed to load venue details"),ee(X)}finally{et(!1)}},e$=e=>{K(e),ex(!0),eY(e.id)},eG=async e=>{ey(!0);try{var s;if(!_)throw Error("No authentication token found");let t=await fetch("".concat((0,v.getApiBaseUrl)(),"/admin/services/").concat(e),{headers:{Authorization:"Bearer ".concat(_),"Content-Type":"application/json"}});if(!t.ok)throw Error("Failed to fetch service details");let a=await t.json();eg((null==(s=a.data)?void 0:s.service)||a.service)}catch(e){console.error("Error fetching full service data:",e),u.oR.error("Failed to load service details"),eg(eh)}finally{ey(!1)}},eZ=e=>{ev(e),eA(!0),eG(e.id)},eJ=async e=>{eE(!0);try{if(!_)throw Error("No authentication token found");let s=await fetch("".concat((0,v.getApiBaseUrl)(),"/admin/services/").concat(e,"/approve"),{method:"POST",headers:{Authorization:"Bearer ".concat(_),"Content-Type":"application/json"},body:JSON.stringify({approvalNotes:eN})});if(!s.ok){let e=await s.text();throw Error("Failed to approve service: ".concat(s.status," ").concat(e))}u.oR.success("Service approved successfully!"),ev(null),eg(null),eA(!1),eb(""),eH()}catch(e){console.error("Error approving service:",e),u.oR.error("Failed to approve service")}finally{eE(!1)}},eW=async e=>{if(!eD.trim())return void u.oR.error("Please provide a reason for rejection");eS(!0);try{if(!_)throw Error("No authentication token found");let s=await fetch("".concat((0,v.getApiBaseUrl)(),"/admin/services/").concat(e,"/reject"),{method:"POST",headers:{Authorization:"Bearer ".concat(_),"Content-Type":"application/json"},body:JSON.stringify({rejectionReason:eD,reason:eD})});if(!s.ok){let e=await s.json().catch(()=>null);throw Error((null==e?void 0:e.message)||"Failed to reject service")}u.oR.success("Service rejected"),ev(null),eg(null),eA(!1),ek(""),eH()}catch(e){console.error("Error rejecting service:",e),u.oR.error((null==e?void 0:e.message)||"Failed to reject service")}finally{eS(!1)}},eX=async e=>{if(!er.trim())return void u.oR.error("Please provide a reason for rejection");eo(!0);try{if(!_)throw Error("No authentication token found");if(!(await fetch("".concat((0,v.getApiBaseUrl)(),"/admin/venues/").concat(e,"/reject"),{method:"POST",headers:{Authorization:"Bearer ".concat(_),"Content-Type":"application/json"},body:JSON.stringify({reason:er,rejectionNotes:er})})).ok)throw Error("Failed to reject venue");u.oR.success("Venue rejected"),K(null),ee(null),ex(!1),en(""),eH()}catch(e){console.error("Error rejecting venue:",e),u.oR.error("Failed to reject venue")}finally{eo(!1)}},eK=(e,s)=>{let t="".concat(e,":").concat(s),a=new Set(eP);a.has(t)?a.delete(t):a.add(t),eq(a)},eQ=async()=>
1{if(0===eP.size)return void u.oR.error("Please select at least one listing to approve");eL(!0);try{if(!_)throw Error("No authentication token found");let e=Array.from(eP).map(e=>{let[s,t]=e.split(":");return{type:s,id:t}}),s=await fetch("".concat((0,v.getApiBaseUrl)(),"/admin/listings/bulk-approve"),{method:"POST",headers:{Authorization:"Bearer ".concat(_),"Content-Type":"application/json"},body:JSON.stringify({listings:e,approvalNotes:eO})});if(!s.ok){let e=await s.text();throw Error("Failed to bulk approve: ".concat(s.status," ").concat(e))}let t=await s.json();u.oR.success("Successfully approved ".concat(t.data.approved.length," listing(s)")),t.data.failed.length>0&&u.oR.warning("".concat(t.data.failed.length," listing(s) failed to approve")),eM(!1),eq(new Set),eI(""),eH()}catch(e){console.error("Error bulk approving listings:",e),u.oR.error(e.message||"Failed to bulk approve listings")}finally{eL(!1)}},e0=e=>{switch(e){case"SUBMITTED":return(0,a.jsx)(d.E,{variant:"outline",className:"bg-blue-50 text-blue-700",children:"Submitted"});case"PENDING":return(0,a.jsx)(d.E,{variant:"outline",className:"bg-yellow-50 text-yellow-700",children:"Pending Review"});default:return(0,a.jsx)(d.E,{variant:"outline",children:e})}};if(J)return(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("div",{className:"h-8 bg-gray-200 rounded animate-pulse"}),(0,a.jsx)("div",{className:"grid gap-4",children:[void 0,void 0,void 0].map((e,s)=>(0,a.jsx)("div",{className:"h-32 bg-gray-200 rounded animate-pulse"},s))})]});(()=>{let e,s=(e=[],Y.forEach(s=>{e.push({type:"VENUE",id:s.id,submittedForReviewAt:s.submittedForReviewAt,name:s.name})}),G.forEach(s=>{e.push({type:"SERVICE",id:s.id,submittedForReviewAt:s.submittedForReviewAt,name:s.name})}),"date"===ez?e.sort((e,s)=>new Date(e.submittedForReviewAt).getTime()-new Date(s.submittedForReviewAt).getTime()):e.sort((e,s)=>e.name.localeCompare(s.name)),e);return"venues"===eT?s.filter(e=>"VENUE"===e.type):"services"===eT&&s.filter(e=>"SERVICE"===e.type)})();let e1="all"===eT||"venues"===eT?Y:[],e2="all"===eT||"services"===eT?G:[],e3=[...e1].sort((e,s)=>"date"===ez?new Date(e.submittedForReviewAt||0).getTime()-new Date(s.submittedForReviewAt||0).getTime():(e.name||"").localeCompare(s.name||"")),e4=[...e2].sort((e,s)=>"date"===ez?new Date(e.submittedForReviewAt||0).getTime()-new Date(s.submittedForReviewAt||0).getTime():(e.name||"").localeCompare(s.name||""));return(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-2xl font-bold tracking-tight",children:"Listing Approvals"}),(0,a.jsx)("p",{className:"text-muted-foreground",children:"Review and approve venue and service submissions"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)(P.l6,{value:ez,onValueChange:e=>eU(e),children:[(0,a.jsx)(P.bq,{className:"w-40",children:(0,a.jsx)(P.yv,{})}),(0,a.jsxs)(P.gC,{children:[(0,a.jsx)(P.eb,{value:"date",children:"Sort by Date"}),(0,a.jsx)(P.eb,{value:"name",children:"Sort by Name"})]})]}),(0,a.jsx)(l.$,{onClick:eH,variant:"outline",children:"Refresh"})]})]}),eP.size>0&&(0,a.jsx)(n.Zp,{className:"bg-blue-50 border-blue-200",children:(0,a.jsx)(n.Wu,{className:"p-4",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("div",{className:"flex items-center gap-2",children:(0,a.jsxs)("span",{className:"text-sm font-medium",children:[eP.size," listing(s) selected"]})}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(l.$,{variant:"outline",size:"sm",onClick:()=>eq(new Set),children:"Clear Selection"}),(0,a.jsxs)(l.$,{size:"sm",onClick:()=>eM(!0),className:"bg-green-600 hover:bg-green-700",children:[(0,a.jsx)(j.A,{className:"h-4 w-4 mr-2"}),"Bulk Approve"]})]})]})})}),(0,a.jsxs)(T.tU,{value:eT,onValueChange:e=>{eC(e),eq(new Set)},children:[(0,a.jsxs)(T.j7,{children:[(0,a.jsxs)(T.Xi,{value:"all",children:["All (",Y.length+G.length,")"]}),(0,a.jsxs)(T.Xi,{value:"venues",children:["Venues (",Y.length,")"]}),(0,a.jsxs)(T.Xi,{value:"services",children:["Services (",G.length,")"]})]}),(0,a.jsx)(T.av,{value:"all",className:"space-y-4",children:0===Y.length&&0===G.length?(0,a.jsx)(n.Zp,{children:(0,a.jsx)(n.Wu,{className:"flex flex-col items-center justify-center py-12",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold",children:"No pending listings"}),(0,a.jsx)("p",{className:"text-muted-foreground",children:"All listings have been reviewed"})]})})}):(0,a.jsxs)("div",{className:"grid gap-4",children:[e3.map(e=>{let s=eP.has("VENUE:".concat(e.id));return(0,a.jsxs)(n.Zp,{className:"hover:shadow-md transition-shadow ".concat(s?"ring-2 ring-blue-500":""),children:[(0,a.jsx)(n.aR,{children:(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsxs)("div",{className:"flex items-start gap-3 flex-1",children:[(0,a.jsx)(C.S,{checked:s,onCheckedChange:()=>eK("VENUE",e.id),className:"mt-1"}),(0,a.jsxs)("div",{className:"space-y-1 flex-1",children:[(0,a.jsx)(n.ZB,{className:"text-lg",children:e.name}),(0,a.jsxs)(n.BT,{children:[e.city,", ",e.state," • Capacity: ",e.capacity," • $",e.price]}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Submitted: ",new Date(e.submittedForReviewAt).toLocaleDateString()]})]})]}),(0,a.jsx)("div",{className:"flex items-center gap-2",children:e0(e.status)})]})}),(0,a.jsx)(n.Wu,{children:(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(V,{person:e.owner}),e.description&&(0,a.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-2",children:e.description}),Array.isArray(e.amenities)&&e.amenities.length>0&&(0,a.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.amenities.slice(0,3).map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s)),e.amenities.length>3&&(0,a.jsxs)(d.E,{variant:"secondary",className:"text-xs",children:["+",e.amenities.length-3," more"]})]}),(0,a.jsx)("div",{className:"flex gap-2",children:(0,a.jsx)(l.$,{variant:"outline",size:"sm",onClick:()=>e$(e),children:"Review"})})]})})]},e.id)}),e4.map(e=>{let s=eP.has("SERVICE:".concat(e.id));return(0,a.jsxs)(n.Zp,{className:"hover:shadow-md transition-shadow ".concat(s?"ring-2 ring-blue-500":""),children:[(0,a.jsx)(n.aR,{children:(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsxs)("div",{className:"flex items-start gap-3 flex-1",children:[(0,a.jsx)(C.S,{checked:s,onCheckedChange:()=>eK("SERVICE",e.id),className:"mt-1"}),(0,a.jsxs)("div",{className:"space-y-1 flex-1",children:[(0,a.jsx)(n.ZB,{className:"text-lg",children:e.name}),(0,a.jsxs)(n.BT,{children:[e.serviceType," • $",e.price||"N/A"]}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Submitted: ",new Date(e.submittedForReviewAt).toLocaleDateString()]})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[e0(e.status),(0,a.jsx)(d.E,{variant:"outline",className:"bg-purple-50 text-purple-700",children:"Service"})]})]})}),(0,a.jsx)(n.Wu,{children:(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(V,{person:e.provider}),e.description&&(0,a.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-2",children:e.description}),(0,a.jsx)("div",{className:"flex gap-2",children:(0,a.jsx)(l.$,{variant:"outline",size:"sm",onClick:()=>eZ(e),children:"Review"})})]})})]},e.id)})]})}),(0,a.jsx)(T.av,{value:"venues",className:"space-y-4",children:0===e3.length?(0,a.jsx)(n.Zp,{children:(0,a.jsx)(n.Wu,{className:"flex flex-col items-center justify-center py-12",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold",children:"No pending venues"}),(0,a.jsx)("p",{className:"text-muted-foreground",children:"All venues have been reviewed"})]})})}):(0,a.jsx)("div",{className:"grid gap-4",children:e3.map(e=>{let s=eP.has("VENUE:".concat(e.id));return(0,a.jsxs)(n.Zp,{className:"hover:shadow-md transition-shadow ".concat(s?"ring-2 ring-blue-500":""),children:[(0,a.jsx)(n.aR,{children:(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsxs)("div",{className:"flex items-start gap-3 flex-1",children:[(0,a.jsx)(C.S,{checked:s,onCheckedChange:()=>eK("VENUE",e.id),className:"mt-1"}),(0,a.jsxs)("div",{className:"space-y-1 flex-1",children:[(0,a.jsx)(n.ZB,{className:"text-lg",children:e.name}),(0,a.jsxs)(n.BT,{children:[e.city,", ",e.state," • Capacity: ",e.capacity," • $",e.price]}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Submitted: ",new Date(e.submittedForReviewAt).toLocaleDateString()]})]})]}),(0,a.jsx)("div",{className:"flex items-center gap-2",children:e0(e.status)})]})}),(0,a.jsx)(n.Wu,{children:(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(V,{person:e.owner}),e.description&&(0,a.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-2",children:e.description}),(0,a.jsx)("div",{className:"flex gap-2",children:(0,a.jsx)(l.$,{variant:"outline",size:"sm",onClick:()=>e$(e),children:"Review"})})]})})]},e.id)})})}),(0,a.jsx)(T.av,{value:"services",className:"space-y-4",children:0===e4.length?(0,a.jsx)(n.Zp,{children:(0,a.jsx)(n.Wu,{className:"flex flex-col items-center justify-center py-12",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold",children:"No pending services"}),(0,a.jsx)("p",{className:"text-muted-foreground",children:"All services have been reviewed"})]})})}):(0,a.jsx)("div",{className:"grid gap-4",children:e4.map(e=>{let s=eP.has("SERVICE:".concat(e.id));return(0,a.jsxs)(n.Zp,{className:"hover:shadow-md transition-shadow ".concat(s?"ring-2 ring-blue-500":""),children:[(0,a.jsx)(n.aR,{children:(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsxs)("div",{className:"flex items-start gap-3 flex-1",children:[(0,a.jsx)(C.S,{checked:s,onCheckedChange:()=>eK("SERVICE",e.id),className:"mt-1"}),(0,a.jsxs)("div",{className:"space-y-1 flex-1",children:[(0,a.jsx)(n.ZB,{className:"text-lg",children:e.name}),(0,a.jsxs)(n.BT,{children:[e.serviceType," • $",e.price||"N/A"]}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Submitted: ",new Date(e.submittedForReviewAt).toLocaleDateString()]})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[e0(e.status),(0,a.jsx)(d.E,{variant:"outline",className:"bg-purple-50 text-purple-700",children:"Service"})]})]})}),(0,a.jsx)(n.Wu,{children:(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(V,{person:e.provider}),e.description&&(0,a.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-2",children:e.description}),(0,a.jsx)("div",{className:"flex gap-2",children:(0,a.jsx)(l.$,{variant:"outline",size:"sm",onClick:()=>eZ(e),children:"Review"})})]})})]},e.id)})})})]}),(0,a.jsx)(o.lG,{open:eB,onOpenChange:eM,children:(0,a.jsxs)(o.Cf,{children:[(0,a.jsxs)(o.c7,{children:[(0,a.jsx)(o.L3,{children:"Bulk Approve Listings"}),(0,a.jsxs)(o.rr,{children:["Approve ",eP.size," selected listing(s)"]})]}),(0,a.jsx)("div",{className:"space-y-4",children:(0,a.jsxs)("div",{children:[(0,a.jsx)(m.J,{children:"Approval Notes (Optional)"}
1),(0,a.jsx)(x.T,{value:eO,onChange:e=>eI(e.target.value),placeholder:"Add notes for all approved listings...",rows:3})]})}),(0,a.jsxs)(o.Es,{children:[(0,a.jsx)(l.$,{variant:"outline",onClick:()=>eM(!1),children:"Cancel"}),(0,a.jsx)(l.$,{onClick:eQ,disabled:eV,className:"bg-green-600 hover:bg-green-700",children:eV?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.A,{className:"h-4 w-4 mr-2 animate-spin"}),"Approving..."]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.A,{className:"h-4 w-4 mr-2"}),"Approve ",eP.size," Listing(s)"]})})]})]})}),(0,a.jsx)(o.lG,{open:em,onOpenChange:ex,children:(0,a.jsxs)(o.Cf,{className:"max-w-4xl max-h-[90vh] flex flex-col p-0",children:[(0,a.jsxs)(o.c7,{className:"px-6 pt-6 pb-4 border-b",children:[(0,a.jsx)(o.L3,{className:"text-2xl font-bold",children:(null==X?void 0:X.name)||"Review Venue"}),(0,a.jsx)(o.rr,{children:"Comprehensive venue review - All submitted data organized by steps"})]}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto px-6 py-4 space-y-6",children:es?(0,a.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-gray-900 mx-auto mb-4"}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Loading venue details..."})]})}):Q?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center",children:(0,a.jsx)("span",{className:"text-sm font-semibold text-blue-700",children:"1"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Venue Type"})]}),(0,a.jsxs)("div",{className:"pl-10",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Type:"}),(0,a.jsxs)(P.l6,{value:eu||void 0,onValueChange:ep,children:[(0,a.jsx)(P.bq,{className:"w-full max-w-xs",children:(0,a.jsx)(P.yv,{placeholder:"Select a type"})}),(0,a.jsx)(P.gC,{children:q.VENUE_TYPE_IDS.map(e=>(0,a.jsx)(P.eb,{value:e,children:q.VENUE_TYPE_LABELS[e]},e))})]})]})]}),(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center",children:(0,a.jsx)("span",{className:"text-sm font-semibold text-blue-700",children:"2"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Basic Details"})]}),(0,a.jsxs)("div",{className:"pl-10 grid grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Venue Name:"}),(0,a.jsx)("p",{className:"font-medium",children:Q.name})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Description:"}),(0,a.jsx)("p",{className:"text-sm",children:Q.description||"No description provided"})]}),Q.vendorName&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Vendor Name:"}),(0,a.jsx)("p",{className:"font-medium",children:Q.vendorName})]})]})]}),(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center",children:(0,a.jsx)("span",{className:"text-sm font-semibold text-blue-700",children:"3"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Room & Capacity"})]}),(0,a.jsxs)("div",{className:"pl-10 grid grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Total Capacity:"}),(0,a.jsxs)("p",{className:"font-medium",children:[Q.capacity||0," people"]})]}),Q.numberOfRooms&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Number of Rooms:"}),(0,a.jsx)("p",{className:"font-medium",children:Q.numberOfRooms})]}),Q.squareFootage&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Square Footage:"}),(0,a.jsxs)("p",{className:"font-medium",children:[Q.squareFootage.toLocaleStr
1ing()," sq ft"]})]}),Q.roomCapacities&&"object"==typeof Q.roomCapacities&&Object.keys(Q.roomCapacities).length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Room Capacities:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:Object.entries(Q.roomCapacities).map(e=>{let[s,t]=e;return(0,a.jsxs)(d.E,{variant:"secondary",className:"text-xs",children:["Room ",s,": ",String(t)," people"]},s)})})]})]})]}),(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center",children:(0,a.jsx)("span",{className:"text-sm font-semibold text-blue-700",children:"4"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Location"})]}),(0,a.jsxs)("div",{className:"pl-10 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-start gap-2",children:[(0,a.jsx)(f.A,{className:"w-4 h-4 text-muted-foreground mt-0.5"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium",children:Q.street||Q.address||"Address not provided"}),(0,a.jsxs)("p",{className:"text-sm text-muted-foreground",children:[Q.city,", ",Q.state," ",Q.zipCode||"",Q.country&&"US"!==Q.country&&", ".concat(Q.country)]})]})]}),Q.latitude&&Q.longitude&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground pl-6",children:["Coordinates: ",Q.latitude.toFixed(6),", ",Q.longitude.toFixed(6)]})]})]}),(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center",children:(0,a.jsx)("span",{className:"text-sm font-semibold text-blue-700",children:"5"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Photos"})]}),(0,a.jsx)("div",{className:"pl-10",children:Q.images&&Q.images.length>0?(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("p",{className:"text-sm text-muted-foreground",children:[Q.images.length," photo",1!==Q.images.length?"s":""," uploaded",null!==Q.primaryImageIndex&&void 0!==Q.primaryImageIndex&&(0,a.jsxs)("span",{className:"ml-2 text-blue-600 font-medium",children:["(Main photo: #",Q.primaryImageIndex+1,")"]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-3 sm:grid-cols-4 gap-3",children:[Q.images.slice(0,8).map((e,s)=>(0,a.jsxs)("div",{className:"relative aspect-square rounded-lg overflow-hidden border border-gray-200 bg-gray-100",children:[(0,a.jsx)("img",{src:"string"==typeof e?e:(null==e?void 0:e.url)||(null==e?void 0:e.src)||"",alt:"Venue photo ".concat(s+1),className:"w-full h-full object-cover",onError:e=>{e.target.src='data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><rect width="200" height="200" fill="#e5e7eb"/><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" fill="#9ca3af" font-size="12">Failed to load</text></svg>'}}),Q.primaryImageIndex===s&&(0,a.jsx)("div",{className:"absolute top-1 left-1 bg-blue-600 text-white text-xs px-1.5 py-0.5 rounded",children:"Main"})]},s)),Q.images.length>8&&(0,a.jsx)("div",{className:"aspect-square rounded-lg border border-gray-200 bg-gray-50 flex items-center justify-center",children:(0,a.jsxs)("p",{className:"text-xs text-muted-foreground text-center",children:["+",Q.images.length-8,(0,a.jsx)("br",{}),"more"]})})]})]}):(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"No photos uploaded"})})]}),(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center",children:(0,a.jsx)("span",{className:"text-sm font-semibold text-blue-700",children:"6"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Pricing"})]}),(0,a.jsxs)("div",{className:"pl-10 grid grid-cols-2 gap-4",children:[Q.hourlyRate&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Hourly Rate:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof Q.hourlyRate?Q.hourlyRate.toFixed(2):Q.hourlyRate,"/hr"]})]}),Q.dailyRate&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Daily Rate:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof Q.dailyRate?Q.dailyRate.toFixed(2):Q.dailyRate,"/day"]})]}),Q.weekendRates&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Weekend Rate:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof Q.weekendRates?Q.weekendRates.toFixed(2):Q.weekendRates]})]}),Q.eveningRate&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Evening Rate:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof Q.eveningRate?Q.eveningRate.toFixed(2):Q.eveningRate]})]}),Q.nightRate&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Night Rate:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof Q.nightRate?Q.nightRate.toFixed(2):Q.nightRate]})]}),Q.securityDepositValue&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Security Deposit:"}),(0,a.jsx)("p",{className:"font-medium",children:"percentage"===Q.securityDepositType?"".concat("number"==typeof Q.securityDepositValue?Q.securityDepositValue.toFixed(0):Q.securityDepositValue,"%"):"\xa3".concat("number"==typeof Q.securityDepositValue?Q.securityDepositValue.toFixed(2):Q.securityDepositValue)})]})]})]}),Q.amenities&&Q.amenities.length>0&&(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center",children:(0,a.jsx)("span",{className:"text-sm font-semibold text-blue-700",children:"7"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Amenities"})]}),(0,a.jsx)("div",{className:"pl-10",children:(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:Q.amenities.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-sm",children:e},s))})})]}),(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center",children:(0,a.jsx)("span",{className:"text-sm font-semibold text-blue-700",children:"8"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Owner Information"})]}),(0,a.jsx)("div",{className:"pl-10 space-y-2",children:(0,a.jsx)(V,{person:Q.owner})})]}),(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-3 bg-gray-50",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-green-100 flex items-center justify-center",children:(0,a.jsx)(j.A,{className:"w-5 h-5 text-green-700"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Live Preview"})]}),(0,a.jsxs)("div",{className:"pl-10",children:[(0,a.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:"This is how customers will see the listing"}),(0,a.jsx)("div",{className:"border rounded-lg overflow-hidden bg-white relative",style:{maxHeight:"500px",overflow:"auto"},children:(0,a.jsx)("div",{className:"origin-top-left",style:{transform:"scale(0.65)",transformOrigin:"top left",width:"153.85%",height:"153.85%"},children:(0,a.jsx)(p.A,{profileData:(0,h.Pc)({venueName:Q.name,venueDescription:Q.description||"",selectedLocation:{name:Q.street||Q.address||"",address:"".concat(Q.street||Q.address||"",", ").concat(Q.city,", ").concat(Q.state),coordinates:{lat:Q.latitude||0,lng:Q.longitude||0}},roomCapacities:"object"==typeof Q.roomCapacities&&Q.roomCapacities?Q.roomCapacities:{},squareFootage:(null==(s=Q.squareFootage)?void 0:s.toString())||"",selectedAmenities:Q.amenities||[],uploadedPhotos:(Q.images||[]).map((e,s)=>({id:"img-".concat(s),url:"string"==typeof e?e:(null==e?void 0:e.url)||(null==e?void 0:e.src)||"",previewUrl:"string"==typeof e?e:(null==e?void 0:e.url)||(null==e?void 0:e.src)||""})),mainPhotoIndex:null!=(U=Q.primaryImageIndex)?U:null,baseHourlyRate:"number"==typeof Q.hourlyRate?Q.hourlyRate.toString():(null==(t=Q.hourlyRate)?void 0:t.toString())||"0",dailyRate:"number"==typeof Q.dailyRate?Q.dailyRate.toString():(null==(c=Q.dailyRate)?void 0:c.toString())||"0",weekendRate:"number"==typeof Q.weekendRates?Q.weekendRates.toString():(null==(O=Q.weekendRates)?void 0:O.toString())||"0",eveningRate:"number"==typeof Q.eveningRate?Q.eveningRate.toString():(null==(I=Q.eveningRate)?void 0:I.toString())||"0",nightRate:"number"==typeof Q.nightRate?Q.nightRate.toString():(null==(L=Q.nightRate)?void 0:L.toString())||"0",securityDepositType:Q.securityDepositType||"fixed",securityDepositValue:"number"==typeof Q.securityDepositValue?Q.securityDepositValue.toString():(null==(z=Q.securityDepositValue)?void 0:z.toString())||"0",vendorName:Q.vendorName||M(Q.owner),numberOfRooms:Q.numberOfRooms||0,selectedVenueType:Q.venueType||null}),isDraft:!0,isEmbedded:!0})})})]})]})]}):(0,a.jsx)("div",{className:"text-center py-12",children:(0,a.jsx)("p",{className:"text-muted-foreground",children:"No venue data available"})})}),(0,a.jsxs)(o.Es,{className:"px-6 py-4 border-t bg-gray-50 gap-2",children:[(0,a.jsxs)(o.lG,{children:[(0,a.jsx)(o.zM,{asChild:!0,children:(0,a.jsx)(l.$,{variant:"destructive",size:"sm",disabled:!Q,children:"Reject"})}),(0,a.jsxs)(o.Cf,{children:[(0,a.jsxs)(o.c7,{children:[(0,a.jsx)(o.L3,{children:"Reject Venue"}),(0,a.jsx)(o.rr,{children:"Provide a reason for rejecting this venue"})]}),(0,a.jsx)("div",{className:"space-y-4",children:(0,a.jsxs)("div",{children:[(0,a.jsx)(m.J,{htmlFor:"rejection-reason",children:"Reason for rejection *"}),(0,a.jsx)(x.T,{id:"rejection-reason",placeholder:"Please provide a clear reason for rejection...",value:er,onCh
1ange:e=>en(e.target.value),className:"mt-1"})]})}),(0,a.jsx)(o.Es,{children:(0,a.jsx)(l.$,{variant:"destructive",onClick:()=>Q&&eX(Q.id),disabled:ec||!er.trim(),children:ec?"Rejecting...":"Reject Venue"})})]})]}),(0,a.jsxs)(o.lG,{children:[(0,a.jsx)(o.zM,{asChild:!0,children:(0,a.jsx)(l.$,{size:"sm",disabled:!Q,children:"Approve"})}),(0,a.jsxs)(o.Cf,{children:[(0,a.jsxs)(o.c7,{children:[(0,a.jsx)(o.L3,{children:"Approve Venue"}),(0,a.jsx)(o.rr,{children:"Add any notes for the venue owner (optional)"})]}),(0,a.jsx)("div",{className:"space-y-4",children:(0,a.jsxs)("div",{children:[(0,a.jsx)(m.J,{htmlFor:"approval-notes",children:"Approval notes (optional)"}),(0,a.jsx)(x.T,{id:"approval-notes",placeholder:"Any notes for the venue owner...",value:ea,onChange:e=>ei(e.target.value),className:"mt-1"})]})}),(0,a.jsx)(o.Es,{children:(0,a.jsx)(l.$,{onClick:()=>Q&&e_(Q.id),disabled:el,children:el?"Approving...":"Approve Venue"})})]})]})]})]})}),(0,a.jsx)(o.lG,{open:eF,onOpenChange:eA,children:(0,a.jsxs)(o.Cf,{className:"max-w-4xl max-h-[90vh] flex flex-col p-0",children:[(0,a.jsxs)(o.c7,{className:"px-6 pt-6 pb-4 border-b",children:[(0,a.jsx)(o.L3,{className:"text-2xl font-bold",children:(null==eh?void 0:eh.name)||"Review Service"}),(0,a.jsx)(o.rr,{children:"Comprehensive service review - All submitted data organized by steps"})]}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto px-6 py-4 space-y-6",children:ef?(0,a.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-gray-900 mx-auto mb-4"}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Loading service details..."})]})}):ej?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center",children:(0,a.jsx)("span",{className:"text-sm font-semibold text-blue-700",children:"1"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Service Type & Basic Details"})]}),(0,a.jsxs)("div",{className:"pl-10 grid grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Service Type:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.serviceType||"Not specified"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Service Name:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.name})]}),(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Description:"}),(0,a.jsx)("p",{className:"text-sm",children:ej.description||"No description provided"})]}),null!=B(ej)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Base Price:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3",B(ej).toFixed(2)]})]}),ej.priceType&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Price Type:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.priceType})]})]})]}),ej.photographyDetails&&(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center",children:(0,a.jsx)(y.A,{className:"w-4 h-4 text-blue-700"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Photography Service Details"})]}),(0,a.jsxs)("div",{className:"pl-10 grid grid-cols-2 gap-4",children:[ej.photographyDetails.serviceFocus&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Service Focus:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.photographyDetails.serviceFocus})]}),ej.photographyDetails.photographyEventTypes&&ej.photographyDetail
1s.photographyEventTypes.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Photography Event Types:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.photographyDetails.photographyEventTypes.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),ej.photographyDetails.videographyEventTypes&&ej.photographyDetails.videographyEventTypes.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Videography Event Types:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.photographyDetails.videographyEventTypes.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),ej.photographyDetails.specialisations&&ej.photographyDetails.specialisations.length>0&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Specializations:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.photographyDetails.specialisations.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]})]})]}),ej.decorationDetails&&(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-purple-100 flex items-center justify-center",children:(0,a.jsx)(N.A,{className:"w-4 h-4 text-purple-700"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Decoration Service Details"})]}),(0,a.jsxs)("div",{className:"pl-10 grid grid-cols-2 gap-4",children:[ej.decorationDetails.serviceFocus&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Service Focus:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.decorationDetails.serviceFocus})]}),ej.decorationDetails.eventTypes&&ej.decorationDetails.eventTypes.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Event Types:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.decorationDetails.eventTypes.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),ej.decorationDetails.decorationTypes&&ej.decorationDetails.decorationTypes.length>0&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Decoration Types:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.decorationDetails.decorationTypes.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),ej.decorationDetails.specialisations&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Specialisations:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.decorationDetails.specialisations})]}),ej.decorationDetails.stylePreferences&&ej.decorationDetails.stylePreferences.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Style Preferences:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.decorationDetails.stylePreferences.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),ej.decorationDetails.colorPalettes&&ej.decorationDetails.colorPalettes.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Color Palettes:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.decorationDetails.colorPalettes.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),ej.decorationDetails.equipmentProvided&&ej.decorationDetails.equipmentProvided.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Equipment Provided:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.decorationDetails.equipmentProvided.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}
1),void 0!==ej.decorationDetails.staffingIncluded&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Staffing Included:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.decorationDetails.staffingIncluded?"Yes":"No"})]}),ej.decorationDetails.setupTime&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Setup Time:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.decorationDetails.setupTime," hours"]})]}),ej.decorationDetails.breakdownTime&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Breakdown Time:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.decorationDetails.breakdownTime," hours"]})]}),ej.decorationDetails.setupResponsibility&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Setup Responsibility:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.decorationDetails.setupResponsibility})]}),ej.decorationDetails.breakdownResponsibility&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Breakdown Responsibility:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.decorationDetails.breakdownResponsibility})]}),ej.decorationDetails.requiredFacilities&&ej.decorationDetails.requiredFacilities.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Required Facilities:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.decorationDetails.requiredFacilities.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]})]})]}),ej.location&&(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center",children:(0,a.jsx)(f.A,{className:"w-4 h-4 text-blue-700"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Location"})]}),(0,a.jsx)("div",{className:"pl-10 space-y-2",children:(0,a.jsxs)("div",{className:"flex items-start gap-2",children:[(0,a.jsx)(f.A,{className:"w-4 h-4 text-muted-foreground mt-0.5"}),(0,a.jsx)("div",{children:"string"==typeof ej.location?(0,a.jsx)("p",{className:"font-medium",children:ej.location}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"font-medium",children:ej.location.name||ej.location.address||"Location not provided"}),ej.location.address&&(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:ej.location.address})]})})]})})]}),(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center",children:(0,a.jsx)(b.A,{className:"w-4 h-4 text-blue-700"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Photos"})]}),(0,a.jsx)("div",{className:"pl-10",children:ej.images&&ej.images.length>0?(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("p",{className:"text-sm text-muted-foreground",children:[ej.images.length," photo",1!==ej.images.length?"s":""," uploaded",null!==ej.mainPhotoIndex&&void 0!==ej.mainPhotoIndex&&(0,a.jsxs)("span",{className:"ml-2 text-blue-600 font-medium",children:["(Main photo: #",ej.mainPhotoIndex+1,")"]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-3 sm:grid-cols-4 gap-3",children:[ej.images.slice(0,8).map((e,s)=>(0,a.jsxs)("div",{className:"relative aspect-square rounded-lg overflow-hidden border border-gray-200 bg-gray-100",children:[(0,a.jsx)("img",{src:"string"==typeof e?e:(null==e?void 0:e.url)||(null==e?void 0:e.src)||"",alt:"Service photo ".concat(s+1),className:"w-full h-full object-cover",onError:e=>{e.target.src='data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><rect width="200" height="200" fill="#e5e7eb"/><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" fill="#9ca3af" font-size="12">Failed to load</text></svg>'}}),ej.mainPhotoIndex===s&&(0,a.jsx)("div",{className:"absolute top-1 left-1 bg-blue-600 text-white text-xs px-1.5 py-0.5 rounded",children:"Main"})]},s)),ej.images.length>8&&(0,a.jsx)("div",{className:"aspect-square rounded-lg border border-gray-200 bg-gray-50 flex items-center justify-center",children:(0,a.jsxs)("p",{className:"text-xs text-muted-foreground text-center",children:["+",ej.images.length-8,(0,a.jsx)("br",{}),"more"]})})]})]}):(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"No photos uploaded"})})]}
1),ej.photographyDetails&&(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center",children:(0,a.jsx)(D.A,{className:"w-4 h-4 text-blue-700"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Pricing & Travel"})]}),(0,a.jsxs)("div",{className:"pl-10 grid grid-cols-2 gap-4",children:[ej.photographyDetails.pricingStructure&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Pricing Structure:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.photographyDetails.pricingStructure})]}),ej.photographyDetails.baseHourlyRate&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Base Hourly Rate:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.photographyDetails.baseHourlyRate?ej.photographyDetails.baseHourlyRate.toFixed(2):ej.photographyDetails.baseHourlyRate,"/hr"]})]}),ej.photographyDetails.videoHourlyRate&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Video Hourly Rate:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.photographyDetails.videoHourlyRate?ej.photographyDetails.videoHourlyRate.toFixed(2):ej.photographyDetails.videoHourlyRate,"/hr"]})]}),ej.photographyDetails.dailyRate&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Daily Rate:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.photographyDetails.dailyRate?ej.photographyDetails.dailyRate.toFixed(2):ej.photographyDetails.dailyRate,"/day"]})]}),ej.photographyDetails.travelAvailability&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Availability:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.photographyDetails.travelAvailability})]}),ej.photographyDetails.travelRadius&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Radius:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.photographyDetails.travelRadius," miles"]})]}),ej.photographyDetails.travelFeePerMile&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Fee Per Mile:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.photographyDetails.travelFeePerMile?ej.photographyDetails.travelFeePerMile.toFixed(2):ej.photographyDetails.travelFeePerMile]})]}),ej.photographyDetails.callOutFee&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Call-Out Fee:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.photographyDetails.callOutFee?ej.photographyDetails.callOutFee.toFixed(2):ej.photographyDetails.callOutFee]})]}),ej.photographyDetails.editingFeeEnabled&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Editing Fee:"}),(0,a.jsxs)("p",{className:"font-medium",children:["per-photo"===ej.photographyDetails.editingFeeType?"Per Photo":"Flat"," - \xa3","number"==typeof ej.photographyDetails.editingFeeValue?ej.photographyDetails.editingFeeValue.toFixed(2):ej.photographyDetails.editingFeeValue]})]}),ej.photographyDetails.rushDeliveryFeeEnabled&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Rush Delivery Fee:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.photographyDetails.rushDeliveryFeeValue?ej.photographyDetails.rushDeliveryFeeValue.toFixed(2):ej.photographyDetails.rushDeliveryFeeValue]})]}),ej.photographyDetails.securityDepositValue&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Security Deposit:"}),(0,a.jsx)("p",{className:"font-medium",children:"percentage"===ej.photographyDetail
1s.securityDepositType?"".concat("number"==typeof ej.photographyDetails.securityDepositValue?ej.photographyDetails.securityDepositValue.toFixed(0):ej.photographyDetails.securityDepositValue,"%"):"\xa3".concat("number"==typeof ej.photographyDetails.securityDepositValue?ej.photographyDetails.securityDepositValue.toFixed(2):ej.photographyDetails.securityDepositValue)})]})]})]}),ej.decorationDetails&&(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-purple-100 flex items-center justify-center",children:(0,a.jsx)(D.A,{className:"w-4 h-4 text-purple-700"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Pricing & Travel"})]}),(0,a.jsxs)("div",{className:"pl-10 grid grid-cols-2 gap-4",children:[ej.decorationDetails.pricingStructure&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Pricing Structure:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.decorationDetails.pricingStructure})]}),ej.decorationDetails.travelAvailability&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Availability:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.decorationDetails.travelAvailability})]}),ej.decorationDetails.travelRadius&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Radius:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.decorationDetails.travelRadius," miles"]})]}),ej.decorationDetails.travelFeeStructure&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Fee Structure:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.decorationDetails.travelFeeStructure})]}),ej.decorationDetails.travelFeePerMile&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Fee Per Mile:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.decorationDetails.travelFeePerMile?ej.decorationDetails.travelFeePerMile.toFixed(2):ej.decorationDetails.travelFeePerMile]})]}),ej.decorationDetails.hasCallOutFee&&ej.decorationDetails.callOutFee&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Call-Out Fee:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.decorationDetails.callOutFee?ej.decorationDetails.callOutFee.toFixed(2):ej.decorationDetails.callOutFee]})]}),ej.decorationDetails.minimumBooking&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Minimum Booking:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.decorationDetails.minimumBooking?ej.decorationDetails.minimumBooking.toFixed(2):ej.decorationDetails.minimumBooking]})]}),ej.decorationDetails.minimumSpend&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Minimum Spend:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.decorationDetails.minimumSpend?ej.decorationDetails.minimumSpend.toFixed(2):ej.decorationDetails.minimumSpend]})]}),ej.decorationDetails.securityDepositValue&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Security Deposit:"}),(0,a.jsx)("p",{className:"font-medium",children:"percentage"===ej.decorationDetails.securityDepositType?"".concat("number"==typeof ej.decorationDetails.securityDepositValue?ej.decorationDetails.securityDepositValue.toFixed(0):ej.decorationDetails.securityDepositValue,"%"):"\xa3".concat("number"==typeof ej.decorationDetails.securityDepositValue?ej.decorationDetails.securityDepositValue.toFixed(2):ej.decorationDetails.securityDepositValue)})]}),ej.decorationDetails.packages&&"object"==typeof ej.decorationDetails.packages&&Array.isArray(ej.decorationDetails.packages)&&ej.decorationDetails.packages.length>0&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Packages:"}),(0,a.jsx)("div",{className:"space-y-2",children:ej.decorationDetail
1s.packages.map((e,s)=>(0,a.jsxs)("div",{className:"border rounded p-2",children:[(0,a.jsx)("p",{className:"font-medium text-sm",children:e.name||"Package ".concat(s+1)}),e.price&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["\xa3","number"==typeof e.price?e.price.toFixed(2):e.price]}),e.description&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:e.description})]},s))})]})]})]}),ej.bakeryDetails&&(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-amber-100 flex items-center justify-center",children:(0,a.jsx)(k.A,{className:"w-4 h-4 text-amber-700"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Bakery Service Details"})]}),(0,a.jsxs)("div",{className:"pl-10 grid grid-cols-2 gap-4",children:[ej.bakeryDetails.serviceFocus&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Service Focus:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.bakeryDetails.serviceFocus})]}),ej.bakeryDetails.eventTypes&&ej.bakeryDetails.eventTypes.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Event Types:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.bakeryDetails.eventTypes.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),ej.bakeryDetails.cakeTypes&&ej.bakeryDetails.cakeTypes.length>0&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Cake Types:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.bakeryDetails.cakeTypes.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),ej.bakeryDetails.specialisations&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Specialisations:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.bakeryDetails.specialisations})]}),ej.bakeryDetails.dietaryOptions&&ej.bakeryDetails.dietaryOptions.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Dietary Options:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.bakeryDetails.dietaryOptions.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),ej.bakeryDetails.allergenInfo&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Allergen Information:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.bakeryDetails.allergenInfo})]}),ej.bakeryDetails.allergenManagement&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Allergen Management:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.bakeryDetails.allergenManagement})]}),ej.bakeryDetails.cakeStyles&&ej.bakeryDetails.cakeStyles.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Cake Styles:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.bakeryDetails.cakeStyles.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),ej.bakeryDetails.decorationTechniques&&ej.bakeryDetails.decorationTechniques.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Decoration Techniques:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.bakeryDetails.decorationTechniques.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),void 0!==ej.bakeryDetails.tastingSessions&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Tasting Sessions:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.bakeryDetails.tastingSessions?"Yes":"No"})]}),ej.bakeryDetails.deliveryOptions&&ej.bakeryDetails.deliveryOptions.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Delivery Options:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.bakeryDetails.deliveryOptions.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),ej.bakeryDetails.servingSizes&&ej.bakeryDetails.servingSizes.length>0&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Serving Sizes:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.bakeryDetails.servingSizes.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),ej.bakeryDetails.setupTime&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Setup Time:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.bakeryDetails.setupTime," hours"]})]}),ej.bakeryDetails.advanceBookingRequired&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Advance Booking Required:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.bakeryDetails.advanceBookingRequired," hours"]})]})]})]}),ej.bakeryDetails&&(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-amber-100 flex items-center justify-center",children:(0,a.jsx)(D.A,{className:"w-4 h-4 text-amber-700"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Pricing & Travel"})]}),(0,a.jsxs)("div",{className:"pl-10 grid grid-cols-2 gap-4",children:[ej.bakeryDetails.pricingStructure&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Pricing Structure:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.bakeryDetails.pricingStructure})]}),ej.bakeryDetails.minimumOrder&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Minimum Order:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.bakeryDetails.minimumOrder?ej.bakeryDetails.minimumOrder.toFixed(2):ej.bakeryDetails.minimumOrder]})]}),ej.bakeryDetails.depositRequired&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Deposit Required:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.bakeryDetails.depositRequired?ej.bakeryDetails.depositRequired.toFixed(2):ej.bakeryDetails.depositRequired]})]}),ej.bakeryDetails.cancellationPolicy&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Cancellation Policy:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.bakeryDetails.cancellationPolicy})]}),ej.bakeryDetails.travelAvailability&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Availability:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.bakeryDetails.travelAvailability})]}),ej.bakeryDetails.travelRadius&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Radius:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.bakeryDetails.travelRadius," miles"]})]}),ej.bakeryDetails.travelFeeStructure&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Fee Structure:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.bakeryDetails.travelFeeStructure})]}),ej.bakeryDetails.travelFeePerMile&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Fee Per Mile:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.bakeryDetails.travelFeePerMile?ej.bakeryDetails.travelFeePerMile.toFixed(2):ej.bakeryDetails.travelFeePerMile]})]}),ej.bakeryDetails.hasCallOutFee&&ej.bakeryDetails.callOutFee&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Call-Out Fee:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.bakeryDetails.callOutFee?ej.bakeryDetails.callOutFee.toFixed(2):ej.bakeryDetails.callOutFee]})]}),ej.bakeryDetails.packages&&"object"==typeof ej.bakeryDetails.packages&&Array.isArray(ej.bakeryDetails.packages)&&ej.bakeryDetails.packages.length>0&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Packages:"}),(0,a.jsx)("div",{className:"space-y-2",children:ej.bakeryDetails.packages.map((e,s)=>(0,a.jsxs)("div",{className:"border rounded p-2",children:[(0,a.jsx)("p",{className:"font-medium text-sm",children:e.name||"Package ".concat(s+1)}),e.price&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["\xa3","number"==typeof e.price?e.price.toFixed(2):e.price]}),e.description&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:e.description})]},s))})]}),ej.bakeryDetails.menus&&"object"==typeof ej.bakeryDetails.menus&&Array.isArray(ej.bakeryDetails.menus)&&ej.bakeryDetails.menus.length>0&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Menus:"}),(0,a.jsx)("div",{className:"space-y-2",children:ej.bakeryDetails.menus.map((e,s)=>(0,a.jsxs)("div",{className:"border rounded p-2",children:[(0,a.jsx)("p",{className:"font-medium text-sm",children:e.name||"Menu ".concat(s+1)}),e.items&&Array.isArray(e.items)&&e.items.length>0&&(0,a.jsxs)("div",{className:"mt-2 space-y-1",children:[e.items.slice(0,5).map((e,s)=>(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["• ",e.name||"Item ".concat(s+1)]},s)),e.items.length>5&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["...and ",e.items.length-5," more items"]})]})]},s))})]})]})]}),ej.entertainmentDetails&&(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-pink-100 flex items-center justify-center",children:(0,a.jsx)(w.A,{className:"w-4 h-4 text-pink-700"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Entertainment Service Details"})]}),(0,a.jsxs)("div",{className:"pl-10 grid grid-cols-2 gap-4",children:[ej.entertainmentDetails.entertainmentType&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Entertainment Type:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.entertainmentDetails.entertainmentType})]}),ej.entertainmentDetails.otherEntertainmentType&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Other Entertainment Type:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.entertainmentDetails.otherEntertainmentType})]}),ej.entertainmentDetails.eventTypes&&ej.entertainmentDetails.eventTypes.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Event Types:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.entertainmentDetails.eventTypes.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),ej.entertainmentDetails.genres&&ej.entertainmentDetails.genres.length>0&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Genres:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.entertainmentDetails.genres.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),ej.entertainmentDetails.specialisations&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Specialisations:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.entertainmentDetails.specialisations})]}),ej.entertainmentDetails.performanceDuration&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Performance Duration:"}),(0,a.jsx)("p",{className:"font-medium",children:"number"==typeof ej.entertainmentDetails.performanceDuration?"".concat(ej.entertainmentDetails.performanceDuration," hours"):ej.entertainmentDetails.performanceDuration})]}),ej.entertainmentDetails.setupTime&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Setup Time:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.entertainmentDetails.setupTime," hours"]})]}),ej.entertainmentDetails.breakdownTime&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Breakdown Time:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.entertainmentDetails.breakdownTime," hours"]})]}),ej.entertainmentDetails.requiredSpace&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Required Space:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.entertainmentDetails.requiredSpace})]}),ej.entertainmentDetails.equipmentProvided&&ej.entertainmentDetails.equipmentProvided.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Equipment Provided:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.entertainmentDetails.equipmentProvided.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),ej.entertainmentDetails.clientNeedsToProvide&&ej.entertainmentDetails.clientNeedsToProvide.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Client Needs to Provide:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.entertainmentDetails.clientNeedsToProvide.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),void 0!==ej.entertainmentDetails.canPerformOutdoors&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Can Perform Outdoors:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.entertainmentDetails.canPerformOutdoors?"Yes":"No"})]}),void 0!==ej.entertainmentDetails.canPerformIndoors&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Can Perform Indoors:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.entertainmentDetails.canPerformIndoors?"Yes":"No"})]}),ej.entertainmentDetails.soundLevel&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Sound Level:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.entertainmentDetails.soundLevel})]}),ej.entertainmentDetails.crowdInteraction&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Crowd Interaction:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.entertainmentDetails.crowdInteraction})]}),ej.entertainmentDetails.advanceBookingRequired&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Advance Booking Required:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.entertainmentDetails.advanceBookingRequired," weeks"]})]})]})]}),ej.entertainmentDetails&&(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-pink-100 flex items-center justify-center",children:(0,a.jsx)(D.A,{className:"w-4 h-4 text-pink-700"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Pricing & Travel"})]}),(0,a.jsxs)("div",{className:"pl-10 grid grid-cols-2 gap-4",children:[ej.entertainmentDetails.pricingStructure&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Pricing Structure:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.entertainmentDetails.pricingStructure})]}),ej.entertainmentDetails.hourlyRate&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Hou
1rly Rate:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.entertainmentDetails.hourlyRate?ej.entertainmentDetails.hourlyRate.toFixed(2):ej.entertainmentDetails.hourlyRate]})]}),ej.entertainmentDetails.performanceRate&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Performance Rate:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.entertainmentDetails.performanceRate?ej.entertainmentDetails.performanceRate.toFixed(2):ej.entertainmentDetails.performanceRate]})]}),ej.entertainmentDetails.depositRequired&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Deposit Required:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.entertainmentDetails.depositRequired?ej.entertainmentDetails.depositRequired.toFixed(2):ej.entertainmentDetails.depositRequired]})]}),ej.entertainmentDetails.minBookingDuration&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Minimum Booking Duration:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.entertainmentDetails.minBookingDuration," hours"]})]}),ej.entertainmentDetails.cancellationPolicy&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Cancellation Policy:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.entertainmentDetails.cancellationPolicy})]}),ej.entertainmentDetails.travelAvailability&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Availability:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.entertainmentDetails.travelAvailability})]}),ej.entertainmentDetails.travelRadius&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Radius:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.entertainmentDetails.travelRadius," miles"]})]}),ej.entertainmentDetails.travelFeeStructure&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Fee Structure:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.entertainmentDetails.travelFeeStructure})]}),ej.entertainmentDetails.travelFeePerMile&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Fee Per Mile:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.entertainmentDetails.travelFeePerMile?ej.entertainmentDetails.travelFeePerMile.toFixed(2):ej.entertainmentDetails.travelFeePerMile]})]}),ej.entertainmentDetails.hasCallOutFee&&ej.entertainmentDetails.callOutFee&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Call-Out Fee:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.entertainmentDetails.callOutFee?ej.entertainmentDetails.callOutFee.toFixed(2):ej.entertainmentDetails.callOutFee]})]}),ej.entertainmentDetails.packages&&"object"==typeof ej.entertainmentDetails.packages&&Array.isArray(ej.entertainmentDetails.packages)&&ej.entertainmentDetails.packages.length>0&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Packages:"}),(0,a.jsx)("div",{className:"space-y-2",children:ej.entertainmentDetails.packages.map((e,s)=>(0,a.jsxs)("div",{className:"border rounded p-2",children:[(0,a.jsx)("p",{className:"font-medium text-sm",children:e.name||"Package ".concat(s+1)}),e.price&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["\xa3","number"==typeof e.price?e.price.toFixed(2):e.price]}),e.description&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:e.description}),e.hours&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:[e.hours," hours"]})]},s))})]})]})]}),ej.beautyDetails&&(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-purple-100 flex items-center justify-center",children:(0,a.jsx)(E.A,{className:"w-4 h-4 text-purple-700"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Hair & Beauty Service Details"})]}),(0,a.jsxs)("div",{className:"pl-10 grid grid-cols-2 gap-4",children:[ej.beautyDetails.serviceTypes&&ej.beautyDetails.serviceTypes.length>0&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Service Types:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.beautyDetails.serviceTypes.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),ej.beautyDetails.eventTypes&&ej.beautyDetails.eventTypes.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Event Types:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.beautyDetails.eventTypes.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),ej.beautyDetails.servicesProvided&&ej.beautyDetails.servicesProvided.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Services Provided:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.beautyDetails.servicesProvided.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),ej.beautyDetails.specialisations&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Specialisations:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.beautyDetails.specialisations})]}),void 0!==ej.beautyDetails.onLocationService&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"On-Location Service:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.beautyDetails.onLocationService?"Yes":"No"})]}),void 0!==ej.beautyDetails.studioAvailable&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Studio Available:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.beautyDetails.studioAvailable?"Yes":"No"})]}),void 0!==ej.beautyDetails.groupServiceAvailable&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Group Service Available:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.beautyDetails.groupServiceAvailable?"Yes":"No"})]}),void 0!==ej.beautyDetails.trialSessionsAvailable&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Trial Sessions Available:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.beautyDetails.trialSessionsAvailable?"Yes":"No"})]}),ej.beautyDetails.advanceBookingRequired&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Advance Booking Required:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.beautyDetails.advanceBookingRequired," hours"]})]})]})]}),ej.beautyDetails&&(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-purple-100 flex items-center justify-center",children:(0,a.jsx)(D.A,{className:"w-4 h-4 text-purple-700"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Pricing & Travel"})]}),(0,a.jsxs)("div",{className:"pl-10 grid grid-cols-2 gap-4",children:[ej.beautyDetails.pricingStructure&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Pricing Structure:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.beautyDetails.pricingStructure})]}),ej.beautyDetails.hourlyRate&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Hourly Rate:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.beautyDetails.hourlyRate?ej.beautyDetails.hourlyRate.toFixed(2):ej.beautyDetails.hourlyRate]})]}),ej.beautyDetails.serviceRate&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Service Rate:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.beautyDetails.serviceRate?ej.beautyDetails.serviceRate.toFixed(2):ej.beautyDetails.serviceRate]})]}),ej.beautyDetails.depositRequired&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Deposit Required:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.beautyDetails.depositRequired?ej.beautyDetails.depositRequired.toFixed(2):ej.beautyDetails.depositRequired]})]}),ej.beautyDetails.minBookingDuration&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Minimum Booking Duration:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.beautyDetails.minBookingDuration," hours"]})]}),ej.beautyDetails.cancellationPolicy&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Cancellation Policy:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.beautyDetails.cancellationPolicy})]}),ej.beautyDetails.travelAvailability&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Availability:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.beautyDetails.travelAvailability})]}),ej.beautyDetails.travelRadius&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Radius:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.beautyDetails.travelRadius," miles"]})]}),ej.beautyDetails.travelFeeStructure&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Fee Structure:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.beautyDetails.travelFeeStructure})]}),ej.beautyDetails.travelFeePerMile&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Fee Per Mile:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.beautyDetails.travelFeePerMile?ej.beautyDetails.travelFeePerMile.toFixed(2):ej.beautyDetails.travelFeePerMile]})]}),ej.beautyDetails.hasCallOutFee&&ej.beautyDetails.callOutFee&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Call-Out Fee:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.beautyDetails.callOutFee?ej.beautyDetails.callOutFee.toFixed(2):ej.beautyDetails.callOutFee]})]}),ej.beautyDetails.packages&&"object"==typeof ej.beautyDetails.packages&&Array.isArray(ej.beautyDetails.packages)&&ej.beautyDetails.packages.length>0&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Packages:"}),(0,a.jsx)("div",{className:"space-y-2",children:ej.beautyDetails.packages.map((e,s)=>(0,a.jsxs)("div",{className:"border rounded p-2",children:[(0,a.jsx)("p",{className:"font-medium text-sm",children:e.name||"Package ".concat(s+1)}),e.price&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["\xa3","number"==typeof e.price?e.price.toFixed(2):e.price]}),e.description&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:e.description}),e.hours&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:[e.hours," hours"]})]},s))})]})]})]}
1),ej.transportationDetails&&(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center",children:(0,a.jsx)(R.A,{className:"w-4 h-4 text-blue-700"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Transportation Service Details"})]}),(0,a.jsxs)("div",{className:"pl-10 grid grid-cols-2 gap-4",children:[ej.transportationDetails.vehicleTypes&&ej.transportationDetails.vehicleTypes.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Vehicle Types:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.transportationDetails.vehicleTypes.join(", ")})]}),ej.transportationDetails.serviceTypes&&ej.transportationDetails.serviceTypes.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Service Types:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.transportationDetails.serviceTypes.join(", ")})]}),ej.transportationDetails.fleetSize&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Fleet Size:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.transportationDetails.fleetSize," vehicles"]})]}),ej.transportationDetails.vehicleSpecifications&&ej.transportationDetails.vehicleSpecifications.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Vehicle Specifications:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.transportationDetails.vehicleSpecifications.join(", ")})]}),ej.transportationDetails.capacity&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Capacity:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.transportationDetails.capacity})]}),ej.transportationDetails.amenities&&ej.transportationDetails.amenities.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Amenities:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.transportationDetails.amenities.join(", ")})]}),ej.transportationDetails.driverDetails&&ej.transportationDetails.driverDetails.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Driver Details:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.transportationDetails.driverDetails.join(", ")})]}),ej.transportationDetails.uniformedDrivers&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Uniformed Drivers:"}),(0,a.jsx)("p",{className:"font-medium",children:"Yes"})]}),ej.transportationDetails.licensedDrivers&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Licensed Drivers:"}),(0,a.jsx)("p",{className:"font-medium",children:"Yes"})]}),ej.transportationDetails.meetAndGreet&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Meet & Greet:"}),(0,a.jsx)("p",{className:"font-medium",children:"Yes"})]}),ej.transportationDetails.luggageAssistance&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Luggage Assistance:"}),(0,a.jsx)("p",{className:"font-medium",children:"Yes"})]}),ej.transportationDetails.availabilityHours&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Availability Hours:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.transportationDetails.availabilityHours})]}),ej.transportationDetails.advanceBookingRequired&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Advance Booking Required:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.transportationDetails.advanceBookingRequired," hours"]})]}),ej.transportationDetails.sameDayBooking&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Same Day Booking:"}),(0,a.jsx)("p",{className:"font-medium",children:"Yes"})]}
1),ej.transportationDetails.waitingTime&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Waiting Time:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.transportationDetails.waitingTime})]}),ej.transportationDetails.pricingStructure&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Pricing Structure:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.transportationDetails.pricingStructure})]}),ej.transportationDetails.hourlyRate&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Hourly Rate:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.transportationDetails.hourlyRate?ej.transportationDetails.hourlyRate.toFixed(2):ej.transportationDetails.hourlyRate]})]}),ej.transportationDetails.perMileRate&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Per Mile Rate:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.transportationDetails.perMileRate?ej.transportationDetails.perMileRate.toFixed(2):ej.transportationDetails.perMileRate]})]}),ej.transportationDetails.perTripRate&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Per Trip Rate:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.transportationDetails.perTripRate?ej.transportationDetails.perTripRate.toFixed(2):ej.transportationDetails.perTripRate]})]}),ej.transportationDetails.depositRequired&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Deposit Required:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.transportationDetails.depositRequired?ej.transportationDetails.depositRequired.toFixed(2):ej.transportationDetails.depositRequired]})]}),ej.transportationDetails.minBookingDuration&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Minimum Booking Duration:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.transportationDetails.minBookingDuration," hours"]})]}),ej.transportationDetails.cancellationPolicy&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Cancellation Policy:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.transportationDetails.cancellationPolicy})]}),ej.transportationDetails.travelAvailability&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Availability:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.transportationDetails.travelAvailability})]}),ej.transportationDetails.travelRadius&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Radius:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.transportationDetails.travelRadius," miles"]})]}),ej.transportationDetails.travelFeeStructure&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Fee Structure:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.transportationDetails.travelFeeStructure})]}),ej.transportationDetails.travelFeePerMile&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Fee Per Mile:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.transportationDetails.travelFeePerMile?ej.transportationDetails.travelFeePerMile.toFixed(2):ej.transportationDetails.travelFeePerMile]})]}),ej.transportationDetails.hasCallOutFee&&ej.transportationDetails.callOutFee&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Call-Out Fee:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.transportationDetails.callOutFee?ej.transportationDetails.callOutFee.toFixed(2):ej.transportationDetails.callOutFee]})]}),ej.transportationDetails.packages&&"object"==typeof ej.transportationDetail
1s.packages&&Array.isArray(ej.transportationDetails.packages)&&ej.transportationDetails.packages.length>0&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Packages:"}),(0,a.jsx)("div",{className:"space-y-2",children:ej.transportationDetails.packages.map((e,s)=>(0,a.jsxs)("div",{className:"border rounded p-2",children:[(0,a.jsx)("p",{className:"font-medium text-sm",children:e.name||"Package ".concat(s+1)}),e.price&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["\xa3","number"==typeof e.price?e.price.toFixed(2):e.price]}),e.description&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:e.description}),e.hours&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:[e.hours," hours"]})]},s))})]}),ej.transportationDetails.fleet&&"object"==typeof ej.transportationDetails.fleet&&Array.isArray(ej.transportationDetails.fleet)&&ej.transportationDetails.fleet.length>0&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Fleet Vehicles:"}),(0,a.jsx)("div",{className:"space-y-2",children:ej.transportationDetails.fleet.map((e,s)=>(0,a.jsxs)("div",{className:"border rounded p-2",children:[(0,a.jsxs)("p",{className:"font-medium text-sm",children:[e.make," ",e.model]}),e.price&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["\xa3","number"==typeof e.price?e.price.toFixed(2):e.price]}),e.description&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:e.description}),e.chauffeurIncluded&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:"Chauffeur included"})]},s))})]})]})]}),ej.eventExperiencesDetails&&(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-purple-100 flex items-center justify-center",children:(0,a.jsx)(S.A,{className:"w-4 h-4 text-purple-700"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Event Experiences Service Details"})]}),(0,a.jsxs)("div",{className:"pl-10 grid grid-cols-2 gap-4",children:[ej.eventExperiencesDetails.experienceTypes&&ej.eventExperiencesDetails.experienceTypes.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Experience Types:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.eventExperiencesDetails.experienceTypes.map(e=>e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())).join(", ")})]}),ej.eventExperiencesDetails.otherExperienceType&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Other Experience Type:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.eventExperiencesDetails.otherExperienceType})]}),ej.eventExperiencesDetails.eventTypes&&ej.eventExperiencesDetails.eventTypes.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Event Types:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.eventExperiencesDetails.eventTypes.join(", ")})]}),ej.eventExperiencesDetails.equipmentProvided&&ej.eventExperiencesDetails.equipmentProvided.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Equipment Provided:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.eventExperiencesDetails.equipmentProvided.join(", ")})]}),ej.eventExperiencesDetails.setupTime&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Setup Time:"}),(0,a.jsx)("p",{className:"font-medium",children:(ej.eventExperiencesDetails.setupTime,"".concat(ej.eventExperiencesDetails.setupTime," hours"))})]}),ej.eventExperiencesDetails.breakdownTime&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Breakdown Time:"}),(0,a.jsx)("p",{className:"font-medium",children:(ej.eventExperiencesDetails.breakdownTime,"".concat(ej.eventExperiencesDetails.breakdownTime," hours"))})]}),ej.eventExperiencesDetails.spaceRequirements&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Space Requirements:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.eventExperiencesDetails.spaceRequirements})]}),ej.eventExperiencesDetails.powerRequirements&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Power Requirements:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.eventExperiencesDetails.powerRequirements})]}),void 0!==ej.eventExperiencesDetails.staffingRequired&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Staffing Required:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.eventExperiencesDetails.staffingRequired?"Yes":"No"})]}),ej.eventExperiencesDetails.features&&ej.eventExperiencesDetails.features.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Features:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.eventExperiencesDetails.features.join(", ")})]}),ej.eventExperiencesDetails.customisationOptions&&ej.eventExperiencesDetails.customisationOptions.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Customisation Options:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.eventExperiencesDetails.customisationOptions.join(", ")})]}),ej.eventExperiencesDetails.addOns&&ej.eventExperiencesDetails.addOns.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Add-ons:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.eventExperiencesDetails.addOns.join(", ")})]}),ej.eventExperiencesDetails.advanceBookingRequired&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Advance Booking Required:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.eventExperiencesDetails.advanceBookingRequired," weeks"]})]}),void 0!==ej.eventExperiencesDetails.sameDayBooking&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Same Day Booking:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.eventExperiencesDetails.sameDayBooking?"Yes":"No"})]}),void 0!==ej.eventExperiencesDetails.deliveryIncluded&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Delivery Included:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.eventExperiencesDetails.deliveryIncluded?"Yes":"No"})]}),void 0!==ej.eventExperiencesDetails.setupIncluded&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Setup Included:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.eventExperiencesDetails.setupIncluded?"Yes":"No"})]}),void 0!==ej.eventExperiencesDetails.breakdownIncluded&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Breakdown Included:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.eventExperiencesDetails.breakdownIncluded?"Yes":"No"})]}),ej.eventExperiencesDetails.travelAvailability&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Availability:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.eventExperiencesDetails.travelAvailability.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())})]}),ej.eventExperiencesDetails.travelRadius&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Radius:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.eventExperiencesDetails.travelRadius," miles"]})]}),ej.eventExperiencesDetails.travelFeeStructure&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Fee Structure:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.eventExperiencesDetails.travelFeeStructure.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())})]}),ej.eventExperiencesDetails.travelFeePerMile&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Travel Fee Per Mile:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.eventExperiencesDetails.travelFeePerMile?ej.eventExperiencesDetails.travelFeePerMile.toFixed(2):ej.eventExperiencesDetails.travelFeePerMile]})]}),ej.eventExperiencesDetails.hasCallOutFee&&ej.eventExperiencesDetails.callOutFee&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Call-Out Fee:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.eventExperiencesDetails.callOutFee?ej.eventExperiencesDetails.callOutFee.toFixed(2):ej.eventExperiencesDetails.callOutFee]})]}),ej.eventExperiencesDetails.pricingStructure&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Pricing Structure:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.eventExperiencesDetails.pricingStructure.replace(/-/g," ").replace(/\b\w/g,e=>e.toUpperCase())})]}),ej.eventExperiencesDetails.hourlyRate&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Hourly Rate:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.eventExperiencesDetails.hourlyRate?ej.eventExperiencesDetails.hourlyRate.toFixed(2):ej.eventExperiencesDetails.hourlyRate]})]}),ej.eventExperiencesDetails.dailyRate&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Daily Rate:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.eventExperiencesDetails.dailyRate?ej.eventExperiencesDetails.dailyRate.toFixed(2):ej.eventExperiencesDetails.dailyRate]})]}),ej.eventExperiencesDetails.depositRequired&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Deposit Required:"}),(0,a.jsxs)("p",{className:"font-medium",children:["\xa3","number"==typeof ej.eventExperiencesDetails.depositRequired?ej.eventExperiencesDetails.depositRequired.toFixed(2):ej.eventExperiencesDetails.depositRequired]})]}),ej.eventExperiencesDetails.minBookingDuration&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Min Booking Duration:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.eventExperiencesDetails.minBookingDuration," hours"]})]}),ej.eventExperiencesDetails.cancellationPolicy&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Cancellation Policy:"}),(0,a.jsx)("p",{className:"font-medium",children:ej.eventExperiencesDetails.cancellationPolicy.charAt(0).toUpperCase()+ej.eventExperiencesDetails.cancellationPolicy.slice(1)})]}),ej.eventExperiencesDetails.packages&&"object"==typeof ej.eventExperiencesDetails.packages&&Array.isArray(ej.eventExperiencesDetails.packages)&&ej.eventExperiencesDetails.packages.length>0&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Packages:"}),(0,a.jsx)("div",{className:"space-y-2",children:ej.eventExperiencesDetails.packages.map((e,s)=>(0,a.jsxs)("div",{className:"border rounded p-2",children:[(0,a.jsx)("p",{className:"font-medium text-sm",children:e.name||"Package ".concat(s+1)}),e.price&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["\xa3","number"==typeof e.price?e.price.toFixed(2):e.price]}),e.description&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:e.description}),e.hours&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:[e.hours," hours"]}),e.inclusions&&Array.isArray(e.inclusions)&&e.inclusions.length>0&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground mt-1",children:["Includes: ",e.inclusions.join(", ")
1]})]},s))})]}),(ej.eventExperiencesDetails.publicLiabilityInsurancePolicyNumber||ej.eventExperiencesDetails.patTestingCertificateNumber||ej.eventExperiencesDetails.riskAssessmentNumber||ej.eventExperiencesDetails.healthSafetyCertificationNumber)&&(0,a.jsxs)("div",{className:"col-span-2 mt-4 pt-4 border-t",children:[(0,a.jsx)("h4",{className:"font-semibold text-md mb-3",children:"UK Certifications & Compliance"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[ej.eventExperiencesDetails.publicLiabilityInsurancePolicyNumber&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Public Liability Insurance:"}),(0,a.jsx)("p",{className:"font-medium text-sm",children:ej.eventExperiencesDetails.publicLiabilityInsurancePolicyNumber}),ej.eventExperiencesDetails.publicLiabilityInsuranceExpiry&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Expires: ",new Date(ej.eventExperiencesDetails.publicLiabilityInsuranceExpiry).toLocaleDateString()]}),ej.eventExperiencesDetails.publicLiabilityCoverAmount&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Cover: \xa3","number"==typeof ej.eventExperiencesDetails.publicLiabilityCoverAmount?ej.eventExperiencesDetails.publicLiabilityCoverAmount.toFixed(2):ej.eventExperiencesDetails.publicLiabilityCoverAmount]})]}),ej.eventExperiencesDetails.patTestingCertificateNumber&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"PAT Testing Certificate:"}),(0,a.jsx)("p",{className:"font-medium text-sm",children:ej.eventExperiencesDetails.patTestingCertificateNumber}),ej.eventExperiencesDetails.patTestingCertificateExpiry&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Expires: ",new Date(ej.eventExperiencesDetails.patTestingCertificateExpiry).toLocaleDateString()]}),ej.eventExperiencesDetails.patTestingCertificateIssuer&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Issuer: ",ej.eventExperiencesDetails.patTestingCertificateIssuer]})]}),ej.eventExperiencesDetails.riskAssessmentNumber&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Risk Assessment:"}),(0,a.jsx)("p",{className:"font-medium text-sm",children:ej.eventExperiencesDetails.riskAssessmentNumber}),ej.eventExperiencesDetails.riskAssessmentExpiry&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Expires: ",new Date(ej.eventExperiencesDetails.riskAssessmentExpiry).toLocaleDateString()]}),ej.eventExperiencesDetails.riskAssessmentIssuer&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Issuer: ",ej.eventExperiencesDetails.riskAssessmentIssuer]})]}),ej.eventExperiencesDetails.healthSafetyCertificationNumber&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Health & Safety Certification:"}),(0,a.jsx)("p",{className:"font-medium text-sm",children:ej.eventExperiencesDetails.healthSafetyCertificationNumber}),ej.eventExperiencesDetails.healthSafetyCertificationExpiry&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Expires: ",new Date(ej.eventExperiencesDetails.healthSafetyCertificationExpiry).toLocaleDateString()]}),ej.eventExperiencesDetails.healthSafetyCertificationIssuer&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Issuer: ",ej.eventExperiencesDetails.healthSafetyCertificationIssuer]})]}),ej.eventExperiencesDetails.equipmentInsurancePolicyNumber&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Equipment Insurance:"}),(0,a.jsx)("p",{className:"font-medium text-sm",children:ej.eventExperiencesDetails.equipmentInsurancePolicyNumber}),ej.eventExperiencesDetails.equipmentInsuranceExpiry&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Expires: ",new Date(ej.eventExperiencesDetails.equipmentInsuranceExpiry).toLocaleDateString()]}),ej.eventExperiencesDetails.equipmentInsuranceCoverAmount&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Cover: \xa3","number"==typeof ej.eventExperiencesDetails.equipmentInsuranceCoverAmount?ej.eventExperiencesDetails.equipmentInsuranceCoverAmount.toFixed(2):ej.eventExperiencesDetails.equipmentInsuranceCoverAmount]})]}
1),(void 0!==ej.eventExperiencesDetails.staffBackgroundChecksEnabled||void 0!==ej.eventExperiencesDetails.enhancedDbsChecksEnabled)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Staff Background Checks:"}),ej.eventExperiencesDetails.staffBackgroundChecksEnabled&&(0,a.jsx)("p",{className:"font-medium text-sm",children:"Enabled"}),ej.eventExperiencesDetails.enhancedDbsChecksEnabled&&(0,a.jsx)("p",{className:"font-medium text-sm",children:"Enhanced DBS Checks: Enabled"})]}),ej.eventExperiencesDetails.additionalCertifications&&"object"==typeof ej.eventExperiencesDetails.additionalCertifications&&Array.isArray(ej.eventExperiencesDetails.additionalCertifications)&&ej.eventExperiencesDetails.additionalCertifications.length>0&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Additional Certifications:"}),(0,a.jsx)("div",{className:"space-y-2",children:ej.eventExperiencesDetails.additionalCertifications.map((e,s)=>(0,a.jsxs)("div",{className:"border rounded p-2",children:[(0,a.jsx)("p",{className:"font-medium text-sm",children:e.name||e.type||"Certification ".concat(s+1)}),e.number&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Number: ",e.number]}),e.issuer&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Issuer: ",e.issuer]}),e.expiry&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Expires: ",new Date(e.expiry).toLocaleDateString()]}),e.description&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:e.description})]},s))})]})]})]})]})]}),(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center",children:(0,a.jsx)(F.A,{className:"w-4 h-4 text-blue-700"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Provider Information"})]}),(0,a.jsx)("div",{className:"pl-10 space-y-2",children:(0,a.jsx)(V,{person:ej.provider})})]}),ej.tags&&ej.tags.length>0||ej.minNotice||ej.maxAdvanceBooking||ej.cancellationPolicy&&(0,a.jsxs)("div",{className:"border rounded-lg p-4 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center",children:(0,a.jsx)(A.A,{className:"w-4 h-4 text-blue-700"})}),(0,a.jsx)("h3",{className:"font-semibold text-lg",children:"Additional Information"})]}),(0,a.jsxs)("div",{className:"pl-10 grid grid-cols-2 gap-4",children:[ej.tags&&ej.tags.length>0&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Tags:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:ej.tags.map((e,s)=>(0,a.jsx)(d.E,{variant:"secondary",className:"text-xs",children:e},s))})]}),ej.minNotice&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Minimum Notice:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.minNotice," hours"]})]}),ej.maxAdvanceBooking&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Max Advance Booking:"}),(0,a.jsxs)("p",{className:"font-medium",children:[ej.maxAdvanceBooking," days"]})]}),ej.cancellationPolicy&&(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-sm mb-1",children:"Cancellation Policy:"}),(0,a.jsx)("p",{className:"text-sm",children:ej.cancellationPolicy})]})]})]})]}):(0,a.jsx)("div",{className:"text-center py-12",children:(0,a.jsx)("p",{className:"text-muted-foreground",children:"No service data available"})})}),(0,a.jsxs)(o.Es,{className:"px-6 py-4 border-t bg-gray-50 gap-2",children:[(0,a.jsxs)(o.lG,{children:[(0,a.jsx)(o.zM,{asChild:!0,children:(0,a.jsx)(l.$,{variant:"destructive",size:"sm",disabled:!ej,children:"Reject"})}),(0,a.jsxs)(o.Cf,{children:[(0,a.jsxs)(o.c7,{children:[(0,a.jsx)(o.L3,{children:"Reject Service"}),(0,a.jsx)(o.rr,{children:"Provide a reason for rejecting this service"})]}),(0,a.jsx)("div",{className:"space-y-4",children:(0,a.jsxs)("div",{children:[(0,a.jsx)(m.J,{htmlFor:"service-rejection-reason",children:"Reason for rejection *"}),(0,a.jsx)(x.T,{id:"service-rejection-reason",placeholder:"Please provide a clear reason for rejection...",value:eD,onChange:e=>ek(e.target.value),className:"mt-1"})]})}),(0,a.jsx)(o.Es,{children:(0,a.jsx)(l.$,{variant:"destructive",onClick:()=>ej&&eW(ej.id),disabled:eR||!eD.trim(),children:eR?"Rejecting...":"Reject Service"})})]})]}),(0,a.jsxs)(o.lG,{children:[(0,a.jsx)(o.zM,{asChild:!0,children:(0,a.jsx)(l.$,{size:"sm",disabled:!ej,children:"Approve"})}),(0,a.jsxs)(o.Cf,{children:[(0,a.jsxs)(o.c7,{children:[(0,a.jsx)(o.L3,{children:"Approve Service"}),(0,a.jsx)(o.rr,{children:"Add any notes for the service provider (optional)"})]}),(0,a.jsx)("div",{className:"space-y-4",children:(0,a.jsxs)("div",{children:[(0,a.jsx)(m.J,{htmlFor:"service-approval-notes",children:"Approval notes (optional)"}),(0,a.jsx)(x.T,{id:"service-approval-notes",placeholder:"Any notes for the service provider...",value:eN,onChange:e=>eb(e.target.value),className:"mt-1"})]})}),(0,a.jsx)(o.Es,{children:(0,a.jsx)(l.$,{onClick:()=>ej&&eJ(ej.id),disabled:ew,children:ew?"Approving...":"Approve Service"})})]})]})]})]})})]})}},32464:(e,s,t)=>{t.d(s,{C1:()=>D,bL:()=>N});var a=t(1521),i=t(87524),r=t(75190),n=t(56298),l=t(55760),d=t(28458),c=t(3382),o=t(93988),m=t(75968),x=t(73365),u="Checkbox",[p,h]=(0,r.A)(u),[v,j]=p(u);function g(e){let{__scopeCheckbox:s,checked:t,children:i,defaultChecked:r,disabled:n,form:d,name:c,onCheckedChange:o,required:m,value:p="on",internal_do_not_use_render:h}=e,[j,g]=(0,l.i)({prop:t,defaultProp:null!=r&&r,onChange:o,caller:u}),[f,y]=a.useState(null),[N,b]=a.useState(null),D=a.useRef(!1),k=!f||!!d||!!f.closest("form"),w={checked:j,disabled:n,setChecked:g,control:f,setControl:y,name:c,form:d,value:p,hasConsumerStoppedPropagationRef:D,required:m,defaultChecked:!E(r)&&r,isFormControl:k,bubbleInput:N,setBubbleInput:b};return(0,x.jsx)(v,{scope:s,...w,children:"function"==typeof h?h(w):i})}var f="CheckboxTrigger",y=a.forwardRef((e,s)=>{let{__scopeCheckbox:t,onKeyDown:r,onClick:l,...d}=e,{control:c,value:o,disabled:u,checked:p,required:h,setControl:v,setChecked:g,hasConsumerStoppedPropagationRef:y,isFormControl:N,bubbleInput:b}=j(f,t),D=(0,i.s)(s,v),k=a.useRef(p);return a.useEffect(()=>{let e=null==c?void 0:c.form;if(e){let s=()=>g(k.current);
1return e.addEventListener("reset",s),()=>e.removeEventListener("reset",s)}},[c,g]),(0,x.jsx)(m.sG.button,{type:"button",role:"checkbox","aria-checked":E(p)?"mixed":p,"aria-required":h,"data-state":R(p),"data-disabled":u?"":void 0,disabled:u,value:o,...d,ref:D,onKeyDown:(0,n.m)(r,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,n.m)(l,e=>{g(e=>!!E(e)||!e),b&&N&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())})})});y.displayName=f;var N=a.forwardRef((e,s)=>{let{__scopeCheckbox:t,name:a,checked:i,defaultChecked:r,required:n,disabled:l,value:d,onCheckedChange:c,form:o,...m}=e;return(0,x.jsx)(g,{__scopeCheckbox:t,checked:i,defaultChecked:r,disabled:l,required:n,onCheckedChange:c,name:a,form:o,value:d,internal_do_not_use_render:e=>{let{isFormControl:a}=e;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(y,{...m,ref:s,__scopeCheckbox:t}),a&&(0,x.jsx)(w,{__scopeCheckbox:t})]})}})});N.displayName=u;var b="CheckboxIndicator",D=a.forwardRef((e,s)=>{let{__scopeCheckbox:t,forceMount:a,...i}=e,r=j(b,t);return(0,x.jsx)(o.C,{present:a||E(r.checked)||!0===r.checked,children:(0,x.jsx)(m.sG.span,{"data-state":R(r.checked),"data-disabled":r.disabled?"":void 0,...i,ref:s,style:{pointerEvents:"none",...e.style}})})});D.displayName=b;var k="CheckboxBubbleInput",w=a.forwardRef((e,s)=>{let{__scopeCheckbox:t,...r}=e,{control:n,hasConsumerStoppedPropagationRef:l,checked:o,defaultChecked:u,required:p,disabled:h,name:v,value:g,form:f,bubbleInput:y,setBubbleInput:N}=j(k,t),b=(0,i.s)(s,N),D=(0,d.Z)(o),w=(0,c.X)(n);a.useEffect(()=>{if(!y)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,s=!l.current;if(D!==o&&e){let t=new Event("click",{bubbles:s});y.indeterminate=E(o),e.call(y,!E(o)&&o),y.dispatchEvent(t)}},[y,D,o,l]);let R=a.useRef(!E(o)&&o);return(0,x.jsx)(m.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=u?u:R.current,required:p,disabled:h,name:v,value:g,form:f,...r,tabIndex:-1,ref:b,style:{...r.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function E(e){return"indeterminate"===e}function R(e){return E(e)?"indeterminate":e?"checked":"unchecked"}w.displayName=k},32731:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(76555).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},35135:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(76555).A)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]])},40712:(e,s,t)=>{t.d(s,{bq:()=>m,eb:()=>u,gC:()=>x,l6:()=>c,yv:()=>o});var a=t(73365);t(1521);var i=t(14545),r=t(11007),n=t(32731),l=t(54230),d=t(19952);function c(e){let{...s}=e;return(0,a.jsx)(i.bL,{"data-slot":"select",...s})}function o(e){let{...s}=e;return(0,a.jsx)(i.WT,{"data-slot":"select-value",...s})}function m(e){let{className:s,size:t="default",children:n,...l}=e;return(0,a.jsxs)(i.l9,{"data-slot":"select-trigger","data-size":t,className:(0,d.cn)("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s),...l,children:[n,(0,a.jsx)(i.In,{asChild:!0,children:(0,a.jsx)(r.A,{className:"size-4 opacity-50"})})]})}function x(e){let{className:s,children:t,position:r="popper",...n}=e;return(0,a.jsx)(i.ZL,{children:(0,a.jsxs)(i.UC,{"data-slot":"select-content",className:(0,d.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:r,...n,children:[(0,a.jsx)(p,{}),(0,a.jsx)(i.LM,{className:(0,d.cn)("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),(0,a.jsx)(h,{})]})})}function u(e){let{className:s,children:t,...r}=e;return(0,a.jsxs)(i.q7,{"data-slot":"select-item",className:(0,d.cn)("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",s),...r,children:[(0,a.jsx)("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,a.jsx)(i.VF,{children:(0,a.jsx)(n.A,{className:"size-4"})})}),(0,a.jsx)(i.p4,{children:t})]})}function p(e){let{className:s,...t}=e;return(0,a.jsx)(i.PP,{"data-slot":"select-scroll-up-button",className:(0,d.cn)("flex cursor-default items-center justify-center py-1",s),...t,children:(0,a.jsx)(l.A,{className:"size-4"})})}function h(e){let{className:s,...t}=e;return(0,a.jsx)(i.wn,{"data-slot":"select-scroll-down-button",className:(0,d.cn)("flex cursor-default items-center justify-center py-1",s),...t,children:(0,a.jsx)(r.A,{className:"size-4"})})}},52748:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(76555).A)("party-popper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]])},58336:(e,s,t)=>{t.d(s,{Cf:()=>m,Es:()=>u,L3:()=>p,c7:()=>x,lG:()=>l,rr:()=>h,zM:()=>d});var a=t(73365);t(1521);var i=t(45001),r=t(17687),n=t(19952);function l(e){let{...s}=e;return(0,a.jsx)(i.bL,{"data-slot":"dialog",...s})}function d(e){let{...s}=e;return(0,a.jsx)(i.l9,{"data-slot":"dialog-trigger",...s})}function c(e){let{...s}=e;return(0,a.jsx)(i.ZL,{"data-slot":"dialog-portal",...s})}function o(e){let{className:s,...t}=e;return(0,a.jsx)(i.hJ,{"data-slot":"dialog-overlay",className:(0,n.cn)("fixed inset-0 z-[240] bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:duration-150",s),...t})}function m(e){let{className:s,children:t,showCloseButton:l=!0,style:d,...m}=e;return(0,a.jsxs)(c,{"data-slot":"dialog-portal",children:[(0,a.jsx)(o,{}),(0,a.jsxs)(i.UC,{"data-slot":"dialog-content",className:(0,n.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 !fixed top-[50%] left-[50%] z-[250] flex w-full max-h-[90dvh] min-h-0 max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] flex-col gap-4 overflow-y-auto rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",s),style:{maxHeight:"min(90dvh, 720px)",...d},...m,children:[t,l&&(0,a.jsxs)(i.bm,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,a.jsx)(r.A,{}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function x(e){let{className:s,...t}=e;return(0,a.jsx)("div",{"data-slot":"dialog-header",className:(0,n.cn)("flex flex-col gap-2 text-center sm:text-left",s),...t})}function u(e){let{className:s,...t}=e;return(0,a.jsx)("div",{"data-slot":"dialog-footer",className:(0,n.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",s),...t})}function p(e){let{className:s,...t}=e;return(0,a.jsx)(i.hE,{"data-slot":"dialog-title",className:(0,n.cn)("text-lg leading-none font-semibold",s),...t})}function h(e){let{className:s,...t}=e;return(0,a.jsx)(i.VY,{"data-slot":"dialog-description",className:(0,n.cn)("text-muted-foreground text-sm",s),...t})}},59731:(e,s,t)=>{t.d(s,{b:()=>l});var a=t(1521),i=t(75968),r=t(73365),n=a.forwardRef((e,s)=>(0,r.jsx)(i.sG.label,{...e,ref:s,onMouseDown:s=>{var t;s.target.closest("button, input, select, textarea")||(null==(t=e.onMouseDown)||t.call(e,s),!s.defaultPrevented&&s.detail>1&&s.preventDefault())}}));n.displayName="Label";var l=n},59835:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(76555).A)("cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]])},66243:(e,s,t)=>{t.d(s,{S:()=>l});var a=t(73365);
1t(1521);var i=t(32464),r=t(32731),n=t(19952);function l(e){let{className:s,...t}=e;return(0,a.jsx)(i.bL,{"data-slot":"checkbox",className:(0,n.cn)("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",s),...t,children:(0,a.jsx)(i.C1,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:(0,a.jsx)(r.A,{className:"size-3.5"})})})}},69749:(e,s,t)=>{t.d(s,{N:()=>i});let a=new Set(["john smith","jane doe"]);function i(e){if("string"!=typeof e)return;let s=e.trim();if(!(!s||"string"==typeof s&&a.has(s.trim().toLowerCase())))return s}},77962:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(76555).A)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},98248:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(76555).A)("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]])}}]);

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.