PageSourceSearch

https://zamala.ai/_next/static/chunks/pages/pro/inquiries-00dc63b3e256198a.js

js zamala.ai collected 2026-10-05 13:25:26 UTC 55,808 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2629],{19983:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pro/inquiries",function(){return a(30248)}])},2691:function(e,t,a){"use strict";a.d(t,{h:function(){return GoogleMaps}});var s=a(85893),r=a(67294),i=a(88471);function GoogleMaps(e){let{address:t}=e,a=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=(0,i.l)();e.load().then(e=>{let s=new e.maps.Geocoder;s.geocode({address:t},(t,s)=>{if("OK"===s){let s=new e.maps.Map(a.current,{center:t[0].geometry.location,zoom:8});return new e.maps.Marker({map:s,position:t[0].geometry.location})}})})},[t]),(0,s.jsx)("div",{className:"h-120 rounded-2xl",ref:a})}},56677:function(e,t,a){"use strict";a.d(t,{u:function(){return VendorPlatformSkeleton}});var s=a(85893);function VendorPlatformSkeleton(){return(0,s.jsx)("div",{className:"flex flex-col h-full md:h-screen",children:(0,s.jsx)("div",{className:"",children:(0,s.jsxs)("div",{className:"flex flex-col md:flex-row flex-grow h-full md:h-screen",children:[(0,s.jsx)("div",{className:"",children:(0,s.jsx)("aside",{className:"relative h-fit bg-paper dark:bg-dark-card md:dark:bg-dark-bg md:rounded-2xl w-full md:w-[250px] animate-pulse",children:(0,s.jsx)("ul",{className:"flex md:flex-col gap-4 py-4 px-3",children:Array.from({length:4}).map((e,t)=>(0,s.jsx)("li",{className:"w-full",children:(0,s.jsx)("div",{className:"flex gap-2 items-center p-2 rounded-xl bg-ink-6 dark:bg-white/5 animate-pulse h-8"})},t))})})}),(0,s.jsx)("main",{className:"flex-grow md:pl-2/3 py-6 md:py-0 md:pl-4 overflow-y-scroll",children:(0,s.jsx)("div",{className:"col-span-1 sm:col-span-2 md:col-span-4 h-96 bg-ink-6 dark:bg-white/5 rounded-2xl"})})]})})})}a(67294)},88471:function(e,t,a){"use strict";a.d(t,{l:function(){return sharedMapsLoader}});var s=a(33311);let r=null;function sharedMapsLoader(){return r||(r=new s.aN({apiKey:"AIzaSyBU1loKrHMWzcYdX1nX4CZ9bNzde3HADyA",version:"weekly",libraries:["places"]})),r}},30248:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return U},default:function(){return VendorsInquiriesPage}});var s=a(85893),r=a(9008),i=a.n(r),n=a(42406),l=a(67294),d=a(86010),o=a(82809),c=a(70197),x=a(12274),m=a(42298),u=a(67803),p=a(50319),h=a(37887),b=a(11163),g=a(378),f=a(82729),v=a(68806);function _templateObject(){let e=(0,f._)(["\n  query MyResponseGuarantees {\n    myResponseGuarantees {\n      id\n      association_id\n      lead_id\n      status\n      first_message_at\n      expires_at\n      nudge_sent_at\n    }\n  }\n"]);return _templateObject=function(){return e},e}let k=(0,v.Ps)(_templateObject());function purchase_lead_templateObject(){let e=(0,f._)(["\n  mutation PurchaseLead($vendorId: ID!, $leadId: ID!) {\n    purchaseLead(vendor_id: $vendorId, lead_id: $leadId) {\n      id\n      vendor_id\n      lead_id\n      is_purchased_and_validated\n      purchase_date\n    }\n  }\n"]);return purchase_lead_templateObject=function(){return e},e}let w=(0,v.Ps)(purchase_lead_templateObject());function mark_lead_as_read_templateObject(){let e=(0,f._)(["\n  mutation MarkLeadAsRead($lead_id: ID!, $vendor_id: ID!) {\n    markLeadAsRead(lead_id: $lead_id, vendor_id: $vendor_id)\n  }\n"]);return mark_lead_as_read_templateObject=function(){return e},e}let y=(0,v.Ps)(mark_lead_as_read_templateObject());var j=a(3251),N=a(99498),_=a(82440),z=a(41503),C=a(59799),q=a(96044),I=a(2691),L=a(46049),D=a(7003),Z=a(43549),F=a(89583);let P={music_genre:"Music style",performance_duration:"Duration",equipment_needed:"Equipment",coverage_type:"Coverage",coverage_hours:"Coverage hours",photo_style:"Photography style",dietary_restrictions:"Dietary restrictions",service_style:"Service style",food_type:"Cuisine",service_duration:"Duration",venue_preference:"Venue type",venue_amenities:"Amenities needed",floral_style:"Floral style",floral_arrangements:"Arrangements",beauty_services:"Services needed",people_count_beauty:"People count",cake_dietary:"Dietary",cake_style:"Style",passenger_count_transport:"Passengers",vehicle_preference:"Vehicle",ceremony_type:"Ceremony type",photobooth_type:"Booth type",entertainment_type:"Entertainment",magician_type:"Performance type",audience_type:"Audience",decor_style:"Decor style",decor_scope:"Areas to decorate",rental_items:"Items needed",rental_quantity:"Quantity",lighting_style:"Lighting style",lighting_venue:"Venue details",bar_type:"Bar type",bar_duration:"Bar hours",mc_language:"Language",mc_style:"MC style"},T={base:"inline-flex items-center gap-1.5 rounded-full border text-[11px] leading-none px-2.5 py-1 font-medium",urgent:"bg-
1amber-50 border-amber-200 text-amber-700 dark:bg-amber-900/30 dark:border-amber-800 dark:text-amber-300",first:"bg-zamala-tint border-zamala-violet/30 text-zamala-violet dark:bg-zamala-violet/15 dark:border-zamala-violet/30 dark:text-zamala-violet-40",matched:"bg-ink-6 border-transparent text-ink-55 dark:bg-white/5 dark:text-white/55",details:"bg-blue-50 border-blue-200 text-blue-700 dark:bg-blue-900/30 dark:border-blue-800 dark:text-blue-300",reply:"bg-amber-50 border-amber-300 text-amber-800 ring-1 ring-amber-400/40 shadow-sm dark:bg-amber-900/30 dark:border-amber-700 dark:text-amber-300 dark:ring-amber-500/30",tentative:"bg-yellow-50 border-yellow-300 text-yellow-800 dark:bg-yellow-900/30 dark:border-yellow-700 dark:text-yellow-300"},R=["Direct","Be first","Urgent","Unlocked","Locked"],formatBudget=e=>e&&"Not specified"!==e?e:null,daysUntil=e=>{if(!e||!(0,x.Z)(e))return null;let t=(0,u.Z)(e,new Date);return t<0?null:t},competitionCapLabel=e=>{var t;let a=null!==(t=e.unlockCap)&&void 0!==t?t:0,s=Math.min(e.totalVendorsResponded,a);return s>=a&&e.isWarmLead?"".concat(a,"+ pros have connected"):"".concat(s," of ").concat(a," pros have connected with this host")},M={info:"bg-zamala-tint border-zamala-violet/20 text-zamala-violet dark:bg-zamala-violet/10 dark:border-zamala-violet/30 dark:text-zamala-violet-40",active:"bg-blue-50 border-blue-200 text-blue-700 dark:bg-blue-900/20 dark:border-blue-800 dark:text-blue-300",positive:"bg-emerald-50 border-emerald-200 text-emerald-700 dark:bg-emerald-900/20 dark:border-emerald-800 dark:text-emerald-300",refund:"bg-amber-50 border-amber-200 text-amber-800 dark:bg-amber-900/20 dark:border-amber-800 dark:text-amber-300"},formatGuaranteeDate=e=>{if(!e)return null;let t=/^\d+$/.test(String(e))?new Date(parseInt(String(e),10)):new Date(e);return(0,x.Z)(t)?(0,m.Z)(t,"MMMM do, yyyy"):null},guaranteeChipFor=e=>{if(!e)return null;switch(e.status){case"awaiting_first_message":return{text:"Send your first message to start your response guarantee.",tone:"info",icon:"messages"};case"armed":{let t=formatGuaranteeDate(e.expires_at);return{text:t?"Response guarantee active — the host has until ".concat(t," to reply, or your credits come back."):"Response guarantee active — if the host does not reply in time, your credits come back.",tone:"active",icon:"time"}}case"met":return{text:"Host replied",tone:"positive",icon:"check-circle"};case"refunded":return{text:"Credits returned — the host didn't reply in time.",tone:"refund",icon:"credits"};case"reopened":return{text:"Host replied after the guarantee — conversation reopened.",tone:"positive",icon:"check-circle"};default:return null}};function HotLeads(){var e,t,a,r,i,n;let u=(0,b.useRouter)(),[f,v]=(0,l.useState)([]),[O,S]=(0,l.useState)([]),[U,J]=(0,l.useState)(0),W=O[U]||null,[V,E]=(0,l.useState)([]),[A,B]=(0,l.useState)(!1),[H,$]=(0,l.useState)(null),{open:G}=(0,q.t)(),[Y,Q]=(0,l.useState)(""),[K,X]=(0,l.useState)(new Set),[ee,{loading:et}]=(0,p.D)(N.Wf,{onCompleted:()=>eo().catch(()=>{})}),{totalCredits:ea}=(0,C.d)(),es=null===(e=(0,z.a)())||void 0===e?void 0:e.currentUserID,{data:er}=(0,h.a)(j.L,{variables:{userId:es},skip:!es,fetchPolicy:"network-only"}),ei=null==er?void 0:null===(t=er.vendorByUserId)||void 0===t?void 0:t.id,{data:en,refetch:el}=(0,h.a)(g.D,{variables:{vendorId:ei},skip:!ei,fetchPolicy:"network-only"}),{data:ed,refetch:eo}=(0,h.a)(k,{skip:!ei,fetchPolicy:"network-only"}),ec=(0,l.useMemo)(()=>{var e;let t=new Map,a=null!==(e=null==ed?void 0:ed.myResponseGuarantees)&&void 0!==e?e:[];for(let e of a)t.set(String(e.lead_id),e);return t},[ed]),[ex]=(0,p.D)(w,{onCompleted:()=>eo().catch(()=>{})}),[em]=(0,p.D)(y),eu=(0,l.useMemo)(()=>{var e;if(!(null==en?void 0:null===(e=en.vendor)||void 0===e?void 0:e.leads)||!ei)return[];let t=en.vendor.leads.filter(e=>{var t,a,s,r,i;if(es&&String(e.planner_id)===String(es))return!1;let n=(null===(t=e.status)||void 0===t?void 0:t.status_name)==="in_progress",l=(null===(a=e.status)||void 0===a?void 0:a.status_name)==="paused",d=(null===(s=e.status)||void 0===s?void 0:s.status_name)==="cancelled",o=(null===(r=e.status)||void 0===r?void 0:r.status_name)==="completed",c=null===(i=e.lead_vendor_associations)||void 0===i?void 0:i.some(e=>e.is_purchased_and_validated);return n||(l||d)&&c||o&&c}).sort((e,t)=>
1parseInt(t.created_at)-parseInt(e.created_at)).map(e=>{var t,a,s,r,i,n,l,d,u;let p=new Date(parseInt(e.event_date)),h=(0,c.Z)(e.event_start,"HH:mm:ss",new Date),b=(0,c.Z)(e.event_end,"HH:mm:ss",new Date),g=null===(t=e.lead_vendor_associations)||void 0===t?void 0:t.some(e=>e.is_purchased_and_validated),f=null===(a=e.lead_vendor_associations)||void 0===a?void 0:a.some(e=>e.vendor_id===ei&&e.is_read),v=null===(s=e.lead_vendor_associations)||void 0===s?void 0:s.some(e=>e.vendor_id===ei&&!0===e.reply_request),k=null===(r=e.lead_vendor_associations)||void 0===r?void 0:r.some(e=>e.vendor_id===ei&&!!e.quote_requested_at),w=null===(i=e.lead_vendor_associations)||void 0===i?void 0:i.find(e=>e.vendor_id===ei),y=null!==(u=null==w?void 0:w.unlock_price)&&void 0!==u?u:null,j=null===e.unlock_cap||void 0===e.unlock_cap?null:e.unlock_cap,N=e.purchased_recommendations_count||0;return{id:e.id,name:e.planner_name||"",credits:e.credits||0,unlockPrice:y,quoteMessage:(null==w?void 0:w.quote_message)||null,requestedPackage:(null==w?void 0:w.requested_package)||null,unlockCap:j,isInquiryFull:null!=j&&Math.min(N,j)>=j&&!k&&!g,createdAt:(0,o.Z)(new Date(parseInt(e.created_at)),{addSuffix:!0}),hasReplyRequested:v,isWarmLead:k,isPaused:(null===(n=e.status)||void 0===n?void 0:n.status_name)==="paused",isCancelled:(null===(l=e.status)||void 0===l?void 0:l.status_name)==="cancelled",isClosed:(null===(d=e.status)||void 0===d?void 0:d.status_name)==="completed",beFirstToRespond:!e.is_first_purchased,showFullLeadInfo:!!g,totalVendorsMatch:e.max_recommendations||0,totalVendorsResponded:e.purchased_recommendations_count||0,isRead:!!f,isTentativeDate:!!e.is_tentative_date,event:{name:e.event_name||"",type:e.event_type||"",date:(0,x.Z)(p)?(0,m.Z)(p,"MMMM do, yyyy"):"Flexible",rawDate:(0,x.Z)(p)?p:null,startTime:(0,x.Z)(h)?(0,m.Z)(h,"h:mm a"):"Not specified",endTime:(0,x.Z)(b)?(0,m.Z)(b,"h:mm a"):"Not specified",location:e.location||"Not specified",guestCount:e.guest_count||"Not specified",theme:e.event_theme||"Not specified",additionalDetails:e.additional_details||"Not specified",specialRequirements:e.special_requirements||"Not specified",budget:e.budget_range||"Not specified",isUrgentRequest:!!e.urgent}}});return t},[en,ei,es]);(0,l.useEffect)(()=>{v(eu),S(eu),J(eu.length?0:-1)},[eu]),(0,l.useEffect)(()=>{Q("")},[U]);let ep=(0,l.useCallback)(e=>{E(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),eh=(0,l.useCallback)(()=>{if(!V.length){S(f),J(f.length?0:-1);return}let e=[...f];V.includes("Direct")&&(e=e.filter(e=>e.isWarmLead)),V.includes("Be first")&&(e=e.filter(e=>e.beFirstToRespond)),V.includes("Urgent")&&(e=e.filter(e=>e.event.isUrgentRequest)),V.includes("Unlocked")&&(e=e.filter(e=>e.showFullLeadInfo)),V.includes("Locked")&&(e=e.filter(e=>!e.showFullLeadInfo)),S(e),J(e.length?0:-1)},[V,f]);(0,l.useEffect)(()=>{eh()},[eh]);let{vendor:eb}=en||{},eg=(0,l.useCallback)((e,t)=>{J(t),!e.isRead&&(null==eb?void 0:eb.id)&&em({variables:{lead_id:e.id,vendor_id:eb.id},update:t=>{var a;let s=t.readQuery({query:g.D,variables:{vendorId:eb.id}});if(!(null==s?void 0:null===(a=s.vendor)||void 0===a?void 0:a.leads))return;let r=s.vendor.leads.map(t=>t.id!==e.id?t:{...t,lead_vendor_associations:t.lead_vendor_associations.map(e=>e.vendor_id===eb.id?{...e,is_read:!0}:e)});t.writeQuery({query:g.D,variables:{vendorId:eb.id},data:{vendor:{...s.vendor,leads:r}}})}})},[eb,em]),ef=(0,l.useCallback)(()=>{J(e=>e<O.length-1?e+1:O.length-1)},[O.length]),ev=(0,l.useCallback)(()=>{J(e=>e>0?e-1:0)},[]),ek=(0,l.useCallback)(()=>{B(!1),$(null)},[]),ew=(0,l.useCallback)(()=>{B(!1),setTimeout(()=>G({source:"hot_leads",lead:W}),250)},[G,W]),ey=(0,l.useCallback)(()=>{W&&G({source:"hot_leads",lead:W})},[G,W]),{totalCredits:ej}=(0,C.d)(),eN=(0,l.useCallback)(async()=>{var e,t,a,s;if(!W||!(null==eb?void 0:eb.id))return;let r=null!==(e=W.unlockPrice)&&void 0!==e?e:W.credits;if(r>ej){$("You need ".concat(r," credits but only have ").concat(ej,". Top up to unlock this inquiry."));return}$(null);try{await ex({variables:{vendorId:eb.id,leadId:W.id}});let e=Y.trim();if(e)try{await ee({variables:{leadId:Number(W.id),content:e}}),X(e=>new Set(e).add(W.id)),Q("")}catch(e){console.error("Unlock succeeded but first message failed:",e)}L.B({action:"request_unlocked",category:"marketplace",label:W.isWarmLead?"warm_lead":"standard_lead",value:r||0}),await el(),B(!1)}catch(r){let e=null==r?void 0:null===(s=r.graphQLErrors)||void 0===s?void 0:null===(a=s[0])||void 0===a?void 0:null===(t=a.extensions)||void 0===t?void 0:t.code;if("INSUFFICIENT_CREDITS"===e){let{required:e,available:t}=r.graphQLErrors[0].extensions;$("Not enough credits. This inquiry costs ".concat(e," but you have ").concat(t,". Top up to unlock it.")),setTimeout(()=>{B(!1),G({source:"hot_leads",lead:W})},1500)}else"INQUIRY_FULL"===e?($("This inquiry is full. It has reached the most pros it can connect with."),await el(),setTimeout(()=>B(!1),1500)):"ALREADY_UNLOCKED"===e?($(null),await el(),B(!1)):(console.error("Error processing lead purchase:",r),$("Something went wrong. Please try again."))}},[eb,ex,ee,Y,W,ej,el,G]),e_=(0,l.useCallback)(async()=>
1{if(Y.trim()&&W)try{await ee({variables:{leadId:Number(W.id),content:Y.trim()}}),X(e=>new Set(e).add(W.id)),Q("")}catch(e){console.error("Failed to start conversation:",e)}},[Y,W,ee]),ez=(null==W?void 0:null===(a=W.name)||void 0===a?void 0:a.split(" ")[0])||"",eC=W?daysUntil(W.event.rawDate):null,eq=null!==eC&&eC<=14,eI=W?null!==(n=W.unlockPrice)&&void 0!==n?n:W.credits:0,eL=!!W&&!W.showFullLeadInfo&&ea<eI,eD=W?guaranteeChipFor(ec.get(String(W.id))):null,eZ=f.filter(e=>e.isWarmLead).length,eF=f.length-eZ;return(0,s.jsxs)("div",{className:"flex flex-col lg:flex-row gap-6 min-h-0",children:[(0,s.jsxs)("aside",{className:"hidden lg:flex lg:flex-col lg:w-1/3 w-full bg-white dark:bg-dark-bg p-6 shadow-sm rounded-[20px] border border-ink-12 dark:border-dark-edge",children:[(0,s.jsxs)("div",{className:"flex items-baseline justify-between gap-2 mb-1",children:[(0,s.jsxs)("h2",{className:"font-[700] text-xl",children:[O.length," matching"," ",1===O.length?"inquiry":"inquiries"]}),(0,s.jsxs)("div",{className:"group relative bg-zamala-tint dark:bg-zamala-violet/15 text-zamala-violet dark:text-zamala-violet-40 rounded-full px-3 py-1.5 text-sm font-[600] flex items-center gap-1.5 cursor-help","aria-describedby":"credits-tooltip",children:[(0,s.jsx)(D.JO,{name:"credits",size:14}),ea," credits",(0,s.jsxs)("span",{id:"credits-tooltip",role:"tooltip",className:"absolute right-0 top-full mt-2 w-max max-w-[220px] px-3 py-2 rounded-lg bg-ink dark:bg-white text-white dark:text-ink text-[11px] font-[400] opacity-0 invisible group-hover:opacity-100 group-hover:visible transition pointer-events-none z-20",children:["≈ ",Math.floor(ea/Z.$W),"–",Math.floor(ea/Z.ZJ)," inquiry unlocks (",Z.ZJ,"–",Z.$W," credits each)"]})]})]}),f.length>0&&(eZ>0||eF>0)&&(0,s.jsxs)("p",{className:"text-xs text-ink-55 dark:text-white/50 mb-4",children:[eZ>0&&(0,s.jsxs)(s.Fragment,{children:[eZ," direct",eF>0&&" \xb7 "]}),eF>0&&(0,s.jsxs)(s.Fragment,{children:[eF," Zamala-matched"]})]}),f.length>0&&(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5 mb-4",children:R.map(e=>{let t=V.includes(e);return(0,s.jsx)("button",{type:"button","data-testid":"filter-chip-".concat(e.toLowerCase().replace(/\s/g,"-")),onClick:()=>ep(e),className:(0,d.Z)("rounded-full px-3 py-1 text-xs font-[500] transition",t?"bg-zamala-violet text-white":"bg-ink-6 dark:bg-white/5 text-ink-55 dark:text-white/50 hover:bg-ink-12 dark:hover:bg-white/10"),children:"Direct"===e?"★ Direct":e},e)})}),O.length>0?(0,s.jsx)("div",{className:"overflow-y-auto scrollbar scrollbar-gutter flex-1 space-y-3 pb-4 px-1 pt-1",children:O.slice().sort((e,t)=>e.isWarmLead&&!t.isWarmLead?-1:!e.isWarmLead&&t.isWarmLead?1:0).map(e=>{var t,a;let r=O.indexOf(e),i=r===U,n=!e.isRead;if(e.isWarmLead&&!e.showFullLeadInfo)return(0,s.jsxs)("button",{type:"button","data-testid":"lead-row-".concat(e.id),onClick:()=>eg(e,r),className:(0,d.Z)("w-full text-left rounded-[16px] p-4 transition relative overflow-hidden border-2 focus:outline-none",n?"bg-gradient-to-br from-zamala-violet to-[#5330C9] text-white border-zamala-violet hover:opacity-95":"bg-white dark:bg-dark-bg text-ink dark:text-white border-zamala-violet/40 hover:border-zamala-violet/70",i&&"ring-2 ring-zamala-violet ring-offset-2 ring-offset-white dark:ring-offset-dark-bg"),"aria-current":i?"true":void 0,children:[(0,s.jsx)("div",{className:(0,d.Z)("absolute top-0 right-0 -mt-12 -mr-8 w-32 h-32 rounded-full pointer-events-none",n?"bg-white/10":"bg-zamala-violet/5"),"aria-hidden":!0}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,s.jsx)("span",{className:(0,d.Z)("inline-flex items-center gap-1 text-[10px] font-bold uppercase tracking-wider rounded-full px-2.5 py-1",n?"bg-white text-zamala-violet":"bg-zamala-violet text-white"),children:"★ Host chose you"}),(0,s.jsx)("span",{className:(0,d.Z)("inline-flex items-center gap-1 text-[10px] font-semibold uppercase tracking-wider rounded-full px-2 py-1 ring-1",n?"bg-white/15 text-white ring-white/30":"bg-zamala-tint dark:bg-zamala-violet/15 text-zamala-violet dark:text-zamala-violet-30 ring-zamala-violet/20"),children:"Wants 
1your quote"})]}),(()=>{var t;let a=null===(t=e.lead_vendor_associations)||void 0===t?void 0:t.find(e=>e.vendor_id===ei),r=null==a?void 0:a.requested_package,i=null==a?void 0:a.quote_message;return(null==r?void 0:r.name)||i?(0,s.jsxs)("div",{className:"mb-2 space-y-1.5",children:[(null==r?void 0:r.name)&&(0,s.jsxs)("div",{className:(0,d.Z)("inline-flex items-center gap-1 rounded-full px-2.5 py-1 text-[11px] font-medium ring-1",n?"bg-white/15 text-white ring-white/20":"bg-zamala-tint dark:bg-zamala-violet/15 text-zamala-violet dark:text-zamala-violet-30 ring-zamala-violet/20"),children:["Interested in: ",r.name,r.price?" \xb7 $".concat(r.price):""]}),i&&(0,s.jsxs)("p",{className:(0,d.Z)("text-[12px] italic leading-snug line-clamp-3",n?"text-white/90":"text-ink-55 dark:text-white/60"),children:["“",i,"”"]})]}):null})(),(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,s.jsx)("div",{className:(0,d.Z)("w-10 h-10 rounded-full grid place-items-center text-base font-bold shrink-0",n?"bg-white text-zamala-violet":"bg-zamala-violet/15 text-zamala-violet dark:text-zamala-violet-30"),"aria-hidden":!0,children:(e.name||"?")[0]}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("div",{className:"font-semibold text-base leading-tight truncate",children:e.name.split(" ")[0]}),(0,s.jsxs)("div",{className:(0,d.Z)("text-xs truncate",n?"text-white/70":"text-ink-55 dark:text-white/50"),children:[e.event.location,"Not specified"!==e.event.guestCount&&" \xb7 ".concat(e.event.guestCount," guests")]})]})]}),(0,s.jsx)("p",{className:(0,d.Z)("text-xs leading-snug mb-3",n?"text-white/85":"text-ink-55 dark:text-white/60"),children:"Viewed your profile and reached out to you."}),e.event.additionalDetails&&"Not specified"!==e.event.additionalDetails&&(0,s.jsx)("p",{className:(0,d.Z)("text-sm leading-snug mb-3 line-clamp-2",n?"text-white/90":"text-ink-70 dark:text-white/70"),children:e.event.additionalDetails}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:(0,d.Z)("text-[11px]",n?"text-white/60":"text-ink-30 dark:text-white/30"),children:e.createdAt}),(0,s.jsxs)("span",{className:(0,d.Z)("text-[11px] font-semibold",n?"text-white":"text-zamala-violet dark:text-zamala-violet-30"),children:["Unlock \xb7 ",null!==(t=e.unlockPrice)&&void 0!==t?t:e.credits," credits →"]})]})]})]},e.id);let l=e.isPaused||e.isCancelled||e.isClosed;return(0,s.jsxs)("button",{type:"button","data-testid":"lead-row-".concat(e.id),onClick:()=>eg(e,r),className:(0,d.Z)("w-full text-left rounded-[16px] p-4 transition border-2 shadow-sm focus:outline-none",i?"border-zamala-violet bg-white dark:bg-dark-bg":n?"border-zamala-violet/30 bg-zamala-violet/5 dark:bg-zamala-violet/10 hover:border-zamala-violet/50":"border-ink-12 dark:border-dark-edge bg-white dark:bg-dark-bg hover:border-ink-30 dark:hover:border-white/20",l&&!i&&"opacity-60"),"aria-current":i?"true":void 0,children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-3 flex-wrap gap-1.5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 flex-wrap",children:[n&&!l&&(0,s.jsx)("span",{className:"inline-flex items-center gap-1 bg-zamala-violet text-white font-[600] rounded-full px-2 py-0.5 text-[10px] uppercase tracking-wider",children:"New"}
1),e.isPaused&&(0,s.jsx)("span",{className:"inline-flex items-center gap-1 bg-gray-100 dark:bg-white/10 text-gray-600 dark:text-gray-300 font-[500] rounded-full px-2 py-0.5 text-[10px]",children:"Paused"}),e.isCancelled&&(0,s.jsx)("span",{className:"inline-flex items-center gap-1 bg-red-50 dark:bg-red-500/10 text-red-600 dark:text-red-400 font-[500] rounded-full px-2 py-0.5 text-[10px]",children:"Cancelled"}),e.isClosed&&(0,s.jsx)("span",{className:"inline-flex items-center gap-1 bg-gray-100 dark:bg-white/10 text-gray-600 dark:text-gray-300 font-[500] rounded-full px-2 py-0.5 text-[10px]",children:"Closed"}),e.event.isUrgentRequest&&(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 text-[10px] font-medium text-amber-700 bg-amber-50 border border-amber-200 dark:bg-amber-900/30 dark:border-amber-800 dark:text-amber-300 rounded-full px-2 py-0.5",children:[(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-500 animate-pulse"}),"URGENT"]})]}),e.showFullLeadInfo?(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-emerald-50 dark:bg-emerald-900/30 border border-emerald-200 dark:border-emerald-800 px-2 py-0.5 text-[10px] font-medium text-emerald-700 dark:text-emerald-400",children:[(0,s.jsx)(D.JO,{name:"lock-open",size:11}),"Unlocked"]}):(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-zamala-tint dark:bg-zamala-violet/15 px-2 py-0.5 text-[10px] font-bold text-zamala-violet dark:text-zamala-violet-30",children:[(0,s.jsx)(D.JO,{name:"lock",size:11}),null!==(a=e.unlockPrice)&&void 0!==a?a:e.credits," credits"]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,s.jsxs)("div",{className:(0,d.Z)("w-10 h-10 rounded-full flex justify-center items-center text-base font-bold relative shrink-0 uppercase",n?"bg-zamala-violet/15 text-zamala-violet":"bg-ink-12 dark:bg-white/10 text-ink-55 dark:text-white/70"),"aria-hidden":!0,children:[(e.name||"?")[0],n&&(0,s.jsx)("span",{className:"absolute -top-0.5 -right-0.5 w-2 h-2 rounded-full bg-zamala-violet"})]}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("div",{className:(0,d.Z)("truncate text-base leading-tight",n?"font-semibold":"font-medium"),children:e.showFullLeadInfo?e.name:e.name.split(" ")[0]}),(0,s.jsxs)("div",{className:"text-xs text-ink-55 dark:text-white/50 truncate",children:[e.event.location,"Not specified"!==e.event.guestCount&&" \xb7 ".concat(e.event.guestCount," guests"),"Flexible"!==e.event.date&&" \xb7 ".concat(e.event.date)]})]})]}),e.event.additionalDetails&&"Not specified"!==e.event.additionalDetails&&(0,s.jsx)("p",{className:"text-sm text-ink-70 dark:text-white/70 leading-snug mb-3 line-clamp-2",children:e.event.additionalDetails}),(0,s.jsxs)("div",{className:"flex items-center justify-between text-[11px]",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-ink-30 dark:text-white/30",children:[(0,s.jsx)("span",{children:e.createdAt}),null!=e.unlockCap?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsx)("span",{children:competitionCapLabel(e)})]}):e.totalVendorsMatch>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsxs)("span",{children:[e.totalVendorsResponded," of"," ",e.totalVendorsMatch," responded"]})]})]}),e.isInquiryFull?(0,s.jsx)("span",{className:"text-ink-55 dark:text-white/50 font-medium",children:"Inquiry full"}):!e.showFullLeadInfo&&!e.isPaused&&!e.isCancelled&&!e.isClosed&&(0,s.jsx)("span",{className:"text-zamala-violet font-medium",children:e.beFirstToRespond?"Be first →":"View →"})]})]},e.id)})}):f.length>0&&0===O.length?(0,s.jsxs)("div",{className:"flex flex-col items-center pt-12 text-center text-sm text-ink-55 dark:text-white/50 flex-1",children:[(0,s.jsx)(D.JO,{name:"inbox",size:48,className:"mb-4 text-ink-30 dark:text-white/30"}),(0,s.jsx)("p",{className:"font-medium",children:"No inquiries match your filters."}),(0,s.jsx)("p",{className:"text-xs mt-1",children:"Adjust filters or try again later."}),(0,s.jsx)("button",{type:"button",onClick:()=>E([]),className:"mt-4 text-xs text-zamala-violet hover:underline font-medium",children:"Clear filters"})]}):null]}),W?(0,s.jsxs)("section",{className:"lg:w-2/3 w-full min-w-0 bg-white dark:bg-dark-bg p-5 sm:p-6 shadow-sm rounded-[20px] border border-ink-12 dark:border-dark-edge max-lg:mt-4 lg:overflow-y-auto lg:max-h-[calc(100vh-8rem)] scrollbar",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-5 lg:hidden",children:[(0,s.jsxs)("button",{type:"button",className:"btn-secondary flex items-center gap-2",onClick:ev,disabled:U<=0,children:[(0,s.jsx)(D.JO,{name:"chevron-left",size:20}),"Back"]}),(0,s.jsxs)("h2",{className:"text-base font-semibold",children:[U+1," of ",O.length]}),(0,s.jsxs)("button",{type:"button",className:"btn-secondary flex items-center gap-2",onClick:ef,disabled:U>=O.length-1,children:["Next",(0,s.jsx)(D.JO,{name:"chevron-right",size:20})]})]}),(0,s.jsxs)("header",{className:"mb-5",children:[(0,s.jsx)("div",{className:"flex items-start justify-between gap-3 mb-3 flex-wrap",children:(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[W.showFullLeadInfo&&(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[10px] font-medium text-emerald-700 bg-emerald-50 border border-emerald-200 dark:bg-emerald-900/30 dark:border-emerald-800 dark:text-emerald-300 rounded-full px-2.5 py-1",children:[(0,s.jsx)(D.JO,{name:"lock-open",size:11}),"Unlocked"]}),W.isPaused&&(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-[10px] leading-none bg-gray-100 border-gray-200 text-gray-600 dark:bg-white/10 dark:border-white/20 dark:text-gray-400 font-[500]",children:[(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-gray-400"}),"Paused by host"]}),W.isCancelled&&(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-[10px] leading-none bg-red-50 border-red-200 text-red-600 dark:bg-red-500/10 dark:border-red-500/20 dark:text-red-400 font-[500]",children:[(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-red-400"}),"Cancelled"]}),W.isClosed&&(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-[10px] leading-none bg-gray-100 border-gray-200 text-gray-600 dark:bg-white/10 dark:border-white/20 dark:text-gray-400 font-[500]",children:[(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-gray-400"}),"Closed"]}),W.event.isUrgentRequest&&(0,s.jsxs)("span",{className:(0,d.Z)(T.base,T.urgent),children:[(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-500 animate-pulse"}),"Urgent"]}),W.beFirstToRespond&&!W.showFullLeadInfo&&(0,s.jsx)("span",{className:(0,d.Z)(T.base,T.first),children:"Be the first"}),!W.isWarmLead&&(0,s.jsx)("span",{className:(0,d.Z)(T.base,T.matched),children:"Zamala-matched"}),W.event.additionalDetails&&"Not specified"!==W.event.additionalDetails&&(0,s.jsx)("span",{className:(0,d.Z)(T.base,T.details),children:"Details provided"}),W.isTentativeDate&&(0,s.jsx)("span",{className:(0,d.Z)(T.base,T.tentative),children:"Tentative date"}),W.hasReplyRequested&&!W.isWarmLead&&!W.showFullLeadInfo&&(0,s.jsxs)("span",{className:(0,d.Z)(T.base,T.reply),title:"This event host asked for a reply",children:[(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-500 animate-pulse"}),(0,s.jsx)(F.Bjt,{className:"text-[11px]","aria-hidden":!0}),(0,s.jsx)("span",{className:"uppercase tracking-wide",children:"Reply requested"})]})]})}),(0,s.jsx)("h1",{className:"text-2xl sm:text-3xl font-[800] tracking-[-0.5px] leading-tight",children:W.isWarmLead&&!W.showFullLeadInfo?"".concat(ez," chose you"):W.showFullLeadInfo?W.name:ez}),W.isWarmLead&&!W.showFullLeadInfo&&(0,s.jsx)("p",{className:"text-sm text-ink-55 dark:text-white/50 mt-1",children:"They browsed Zamala, saw your profile, and reached out — no other Pros involved on this one."}),(0,s.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-x-4 gap-y-2 text-xs text-ink-55 dark:text-white/50 border-y border-ink-12 dark:border-dark-edge py-3",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-zamala-violet"}),"Posted ",W.createdAt]}),null!=W.unlockCap?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"text-ink-30 dark:text-white/30",children:"\xb7"}),(0,s.jsx)("span",{children:competitionCapLabel(W)})]}):W.totalVendorsMatch>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"text-ink-30 dark:text-white/30",children:"\xb7"}),(0,s.jsxs)("span",{children:[W.totalVendorsResponded," of"," ",W.totalVendorsMatch," Pros responded"]})]}),null!==eC&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"text-ink-30 dark:text-white/30",children:"\xb7"}),(0,s.jsx)("span",{className:(0,d.Z)(eq?"text-amber-700 dark:text-amber-300 font-medium":""),children:0===eC?"Today":1===eC?"1 day away":"".concat(eC," days away")})]})]})]}),W.showFullLeadInfo?(0,s.jsxs)(s.Fragment,{children:[eD&&(0,s.jsxs)("div",{"data-testid":"response-guarantee-status",className:(0,d.Z)("flex items-start gap-2 rounded-[12px] border px-4 py-3 mb-5 text-sm leading-relaxed",M[eD.tone]),children:[(0,s.jsx)(D.JO,{name:eD.icon,size:16,className:"mt-0.5 shrink-0"}),(0,s.jsx)("span",{children:eD.text})]}),W.isPaused&&(0,s.jsxs)("div",{className:"flex items-start gap-3 bg-gray-50 dark:bg-white/5 border border-gray-200 dark:border-white/10 rounded-[16px] p-4 mb-5",children:[(0,s.jsx)(D.JO,{name:"time",size:20,className:"text-gray-400 mt-0.5 shrink-0"}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"text-sm font-[500] text-gray-700 dark:text-gray-300",children:[ez," paused new offers — you can still message them."]}),(0,s.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1 leading-relaxed",children:"Your unlock is preserved and your conversation stays active."})]})]}),W.isCancelled&&(0,s.jsxs)("div",{className:"flex items-start gap-3 bg-red-50 dark:bg-red-500/5 border border-red-100 dark:border-red-500/10 rounded-[16px] p-4 mb-5",children:[(0,s.jsx)(D.JO,{name:"time",size:20,className:"text-red-400 mt-0.5 shrink-0"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-[500] text-red-700 dark:text-red-300",children:"This event is no longer available."}),(0,s.jsx)("p",{className:"text-xs text-red-500 dark:text-red-400 mt-1 leading-relaxed",children:"The host cancelled this event. Your conversation history is preserved but messaging is no longer possible."})]})]}),W.isClosed&&(0,s.jsxs)("div",{className:"flex items-start gap-3 bg-gray-50 dark:bg-white/5 border border-gray-200 dark:border-white/10 rounded-[16px] p-4 mb-5",children:[(0,s.jsx)(D.JO,{name:"time",size:20,className:"text-gray-400 mt-0.5 shrink-0"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-[500] text-gray-700 dark:text-gray-300",children:"This event has closed."}),(0,s.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1 leading-relaxed",children:"The host either hired their team or the event date has passed. Your unlock is preserved for reference."})]})]}),!W.isPaused&&!W.isCancelled&&!W.isClosed&&(0,s.jsxs)("div",{className:"rounded-[20px] border-2 border-zamala-violet bg-white dark:bg-dark-bg p-4 sm:p-5 mb-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,s.jsx)(D.JO,{name:"messages",size:18,className:"text-zamala-violet"}),(0,s.jsxs)("h3",{className:"font-semibold text-sm sm:text-base",children:["Send your first message to ",ez]})]}),K.has(W.id)?(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-3 bg-emerald-50 dark:bg-emerald-900/20 border border-emerald-200 dark:border-emerald-800 rounded-[12px] p-4",children:[(0,s.jsx)("p",{className:"text-sm text-emerald-700 dark:text-emerald-300 flex-1",children:"Message sent. The conversation is now open."}),(0,s.jsx)("button",{type:"button",className:"bg-ink dark:bg-white text-white dark:text-ink rounded-full px-5 py-2 text-sm font-[500] transition hover:opacity-90 whitespace-nowrap",onClick:()=>u.push("/pro/messages"),children:"View conversation"})]}):(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("textarea",{rows:4,placeholder:"Hi ".concat(ez,", I saw your event and I'd love to help..."),className:"w-full resize-none text-sm font-[400] rounded-[12px] border border-ink-12 dark:border-dark-edge bg-paper dark:bg-dark-bg p-4 pr-20 text-ink dark:text-white placeholder:text-ink-30 dark:placeholder:text-white/25 focus:outline-none focus:border-zamala-violet focus:ring-1 focus:ring-zamala-violet/30 transition",value:Y,onChange:e=>Q(e.target.value),onKeyDown:e=>{"Tab"!==e.key||Y.trim()||(e.preventDefault(),Q("Hi ".concat(ez,", I saw your event and I'd love to help! I think I'd be a great fit — happy to chat about what you're looking for and share some ideas."))),"Enter"!==e.key||e.shiftKey||(e.preventDefault(),e_())}}),!Y.trim()&&(0,s.jsx)("span",{className:"absolute bottom-3 right-3 text-[10px] text-ink-30 dark:text-white/20 bg-white dark:bg-dark-bg border border-ink-12 dark:border-dark-edge rounded px-1.5 py-0.5 pointer-events-none",children:"Tab to draft"})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-3",children:[(0,s.jsx)("p",{className:"text-[11px] text-ink-55 dark:text-white/50",children:W.totalVendorsResponded>0?"".concat(W.totalVendorsResponded," of ").concat(W.totalVendorsMatch," Pros already replied"):"Be the first to reply"}),(0,s.jsxs)("button",{type:"button","data-testid":"send-first-message-btn",className:"bg-ink dark:bg-white text-white dark:text-ink rounded-full px-5 py-2.5 text-sm font-[500] transition hover:opacity-90 disabled:opacity-40 disabled:cursor-not-allowed flex items-center gap-2",disabled:!Y.trim()||et,onClick:e_,children:[(0,s.jsx)(D.JO,{name:"send",size:16}),et?"Sending…":"Send message"]})]})]})]})]}):W.isWarmLead?(0,s.jsxs)("div",{className:"bg-zamala-violet rounded-[20px] p-5 sm:p-6 text-white mb-6 relative overflow-hidden",children:[(0,s.jsx)("div",{className:"absolute -top-[40px] -right-[30px] w-[200px] h-[200px] rounded-full pointer-events-none",style:{background:"radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%)"},"aria-hidden":!0}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("div",{className:"flex items-start gap-3 sm:gap-4 mb-4 sm:mb-5",children:[(0,s.jsx)("div",{className:"w-11 h-11 sm:w-12 sm:h-12 rounded-2xl bg-white text-zamala-violet flex items-center justify-center flex-shrink-0",children:(0,s.jsx)("span",{className:"text-xl font-bold",children:"★"})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("p",{className:"font-bold text-base sm:text-lg leading-tight mb-1",children:"This host viewed your profile and expressed interest."}),(0,s.jsxs)("p",{className:"text-white/80 text-sm leading-relaxed",children:["Unlocking this direct request costs ",eI," ",1===eI?"credit":"credits",", shown up front. Replying fast gives you the best chance of getting hired."]})]})]}),W.event.additionalDetails&&"Not specified"!==W.event.additionalDetails&&(0,s.jsxs)("div",{className:"bg-white/10 rounded-[12px] p-4 mb-5",children:[(0,s.jsxs)("p",{className:"text-[11px] uppercase tracking-wider text-white/60 mb-1.5 font-medium",children:[ez,"'s note"]}),(0,s.jsxs)("p",{className:"text-sm text-white italic leading-relaxed",children:["“",W.event.additionalDetails,"”"]}
1)]}),((null===(r=W.requestedPackage)||void 0===r?void 0:r.name)||W.quoteMessage)&&(0,s.jsxs)("div",{className:"bg-white/10 rounded-[12px] p-4 mb-5 ring-1 ring-white/20",children:[(0,s.jsx)("p",{className:"text-[11px] uppercase tracking-wider text-white/60 mb-1.5 font-medium",children:(null===(i=W.requestedPackage)||void 0===i?void 0:i.name)?"Interested in your “".concat(W.requestedPackage.name,"” package"):"Interested in your packages"}),W.quoteMessage&&(0,s.jsxs)("p",{className:"text-sm text-white italic leading-relaxed",children:["“",W.quoteMessage,"”"]})]}),(0,s.jsxs)("button",{type:"button","data-testid":"direct-reply-btn",onClick:()=>B(!0),className:"w-full bg-white text-ink hover:bg-paper py-3.5 sm:py-4 rounded-full font-semibold text-sm transition flex items-center justify-center gap-2 shadow-lg",children:["Reply to ",ez," — ",eI," ",1===eI?"credit":"credits"]})]})]}):W.isInquiryFull?(0,s.jsxs)("div",{"data-testid":"inquiry-full-state",className:"flex items-start gap-3 bg-gray-50 dark:bg-white/5 border border-gray-200 dark:border-white/10 rounded-[20px] p-5 sm:p-6 mb-6",children:[(0,s.jsx)(D.JO,{name:"lock",size:20,className:"text-gray-400 mt-0.5 shrink-0"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-base font-semibold text-gray-700 dark:text-gray-200",children:"This inquiry is full"}),(0,s.jsxs)("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-1 leading-relaxed",children:[ez," has already connected with"," ",W.unlockCap," pros, the most this inquiry accepts. It's no longer taking new connections."]})]})]}):(0,s.jsxs)("div",{className:"bg-ink dark:bg-[#0a0a1a] rounded-[20px] p-5 sm:p-6 text-white mb-6 relative overflow-hidden",children:[(0,s.jsx)("div",{className:"absolute -top-[40px] -right-[30px] w-[200px] h-[200px] rounded-full pointer-events-none",style:{background:"radial-gradient(circle, rgba(191,79,255,0.18) 0%, transparent 70%)"},"aria-hidden":!0}),(0,s.jsx)("div",{className:"absolute -bottom-[40px] -left-[30px] w-[160px] h-[160px] rounded-full pointer-events-none",style:{background:"radial-gradient(circle, rgba(107,63,224,0.15) 0%, transparent 70%)"},"aria-hidden":!0}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-4 sm:gap-6 mb-5",children:[(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("div",{className:"flex items-center gap-2 text-[11px] font-medium uppercase tracking-wider mb-2",children:eL?(0,s.jsxs)("span",{className:"text-amber-300 flex items-center gap-1.5",children:[(0,s.jsx)(D.JO,{name:"lock",size:11}),"Top up to unlock"]}):(0,s.jsxs)("span",{className:"text-white/60 flex items-center gap-1.5",children:[(0,s.jsx)(D.JO,{name:"lock",size:11}),"Locked"]})}),(0,s.jsxs)("h3",{className:"text-lg sm:text-xl font-bold leading-tight mb-1",children:[ez," is waiting for proposals."]}),(0,s.jsx)("p",{className:"text-white/70 text-sm leading-relaxed",children:W.beFirstToRespond?"Be the first ".concat(W.totalVendorsMatch?"of ".concat(W.totalVendorsMatch," "):"","to message ").concat(ez," — replying fast gives you the best chance."):"Message ".concat(ez," directly and make your best offer.")})]}),(0,s.jsxs)("div",{className:"text-right shrink-0 border-l border-white/10 pl-4 sm:pl-6",children:[(0,s.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-white/50 mb-1",children:"Cost"}),(0,s.jsxs)("div",{className:"flex items-baseline gap-1 justify-end",children:[(0,s.jsx)("span",{className:"text-3xl sm:text-4xl font-[800] leading-none",children:eI}),(0,s.jsx)("span",{className:"text-[11px] text-white/50",children:1===eI?"credit":"credits"})]}),(0,s.jsx)("div",{className:(0,d.Z)("text-[10px] mt-1",eL?"text-amber-300":"text-white/50"),children:eL?"You have ".concat(ea," \xb7 need ").concat(eI-ea," more"):"You have ".concat(ea)})]})]}),eL?(0,s.jsxs)("button",{type:"button","data-testid":"topup-unlock-btn",onClick:ey,className:"w-full bg-white text-ink hover:bg-paper py-3.5 sm:py-4 rounded-full font-semibold text-sm transition flex items-center justify-center gap-2 shadow-lg",children:["Top up to unlock",(0,s.jsx)(D.JO,{name:"chevron-right",size:16})]}):(0,s.jsxs)("button",{type:"button","data-testid":"unlock-lead-btn",onClick:()=>B(!0),className:"w-full bg-white text-ink hover:bg-paper py-3.5 sm:py-4 rounded-full font-semibold text-sm transition flex items-center justify-center gap-2 shadow-lg",children:["Unlock ",ez,"'s request — ",eI," ",1===eI?"credit":"credits"]}),(0,s.jsxs)("div",{className:"flex items-center justify-center gap-3 mt-3 text-[11px] text-white/60 flex-wrap",children:[(0,s.jsxs)("a",{href:"/pro/lead-quality",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 hover:text-white underline-offset-2 hover:underline",children:[(0,s.jsx)(D.JO,{name:"check-circle",size:11}),"Lead Quality Guarantee"]}),(0,s.jsx)("span",{className:"text-white/30",children:"\xb7"}),(0,s.jsx)("span",{children:"Pay only for what you use"})]}),(0,s.jsxs)("p",{className:"text-[10px] text-white/40 text-center mt-2 italic",children:["This inquiry costs ",eI," credits. Range typically ",Z.ZJ,"–",Z.$W," by event size."]})]})]}),(0,s.jsxs)("section",{className:"mt-6 sm:mt-8",children:[(0,s.jsx)("h2",{className:"text-[11px] font-[500] uppercase tracking-[1px] text-ink-30 dark:text-white/30 mb-3",children:"Event details"}),(0,s.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:[{icon:"event-date",label:"Date",value:W.event.date,sub:null!==eC?0===eC?"Today":1===eC?"1 day away":"".concat(eC," days away"):null,subClassName:eq?"text-amber-700 dark:text-amber-300":"text-ink-55 dark:text-white/50",color:"text-zamala-violet"},{icon:"time",label:"Time",value:"".concat(W.event.startTime||"—"," – ").concat(W.event.endTime||"—"),color:"text-zamala-violet"},{icon:"location",label:"Location",value:W.event.location,color:"text-rose-500"},{icon:"guests",label:"Guests",value:W.event.guestCount,color:"text-blue-500"},{icon:"budget",label:"Budget",value:formatBudget(W.event.budget)||"—",color:"text-emerald-500"},{icon:"tag",label:"Theme",value:W.event.theme,color:"text-amber-500"}].map(e=>{let{icon:t,label:a,value:r,sub:i,subClassName:n,color:l}=e;return(0,s.jsxs)("div",{className:"rounded-[16px] bg-paper dark:bg-dark-bg border border-ink-12/50 dark:border-dark-edge p-3.5 sm:p-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-1.5",children:[(0,s.jsx)(D.JO,{name:t,size:14,className:l}),(0,s.jsx)("span",{className:"text-[10px] font-[500] uppercase tracking-[0.5px] text-ink-30 dark:text-white/30",children:a})]}),(0,s.jsx)("p",{className:"text-sm font-[600] text-ink dark:text-white leading-tight",children:r||"Not specified"}),i&&(0,s.jsx)("p",{className:(0,d.Z)("text-[11px] mt-0.5",n||"text-ink-55 dark:text-white/50"),children:i})]},a)})}),W.event.additionalDetails&&"Not specified"!==W.event.additionalDetails&&!(W.isWarmLead&&!W.showFullLeadInfo)&&(0,s.jsxs)("div",{className:"mt-3 rounded-[16px] bg-paper dark:bg-dark-bg border border-ink-12/50 dark:border-dark-edge p-4 sm:p-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,s.jsx)(D.JO,{name:"messages",size:14,className:"text-zamala-violet"}),(0,s.jsxs)("span",{className:"text-[10px] font-[500] uppercase tracking-[0.5px] text-ink-30 dark:text-white/30",children:[ez,"'s request, in their words"]})]}),(0,s.jsxs)("p",{className:"text-sm text-ink-70 dark:text-white/70 leading-relaxed italic",children:["“",W.event.additionalDetails,"”"]}
1)]}),W.event.specialRequirements&&"Not specified"!==W.event.specialRequirements&&(0,s.jsxs)("div",{className:"mt-3 rounded-[16px] bg-paper dark:bg-dark-bg border border-ink-12/50 dark:border-dark-edge p-4 sm:p-5",children:[(0,s.jsx)("h3",{className:"text-[10px] font-[500] uppercase tracking-[0.5px] text-ink-30 dark:text-white/30 mb-3",children:"Service requirements"}),(0,s.jsx)("ul",{className:"space-y-1.5",children:W.event.specialRequirements.split(" | ").map(e=>{let t=e.indexOf(":");if(-1===t)return{label:"Note",value:e.trim()};let a=e.slice(0,t).trim(),s=e.slice(t+1).trim(),r=a.toLowerCase().replace(/\s+/g,"_");return{label:P[r]||a.replace(/_/g," "),value:s}}).filter(e=>{let{value:t}=e;return t&&"Not specified"!==t}).map((e,t)=>{let{label:a,value:r}=e;return(0,s.jsxs)("li",{className:"text-sm text-ink-55 dark:text-white/50",children:[(0,s.jsxs)("span",{className:"font-medium text-ink-70 dark:text-white/70",children:[a,":"]})," ",r]},t)})})]})]}),(0,s.jsx)("div",{className:"w-full rounded-[16px] mt-6 overflow-hidden border border-ink-12/50 dark:border-dark-edge",children:(0,s.jsx)(I.h,{address:W.event.location})})]}):0===f.length&&(0,s.jsx)(EmptyStateProLaunch,{router:u}),A&&W&&!W.showFullLeadInfo&&(0,s.jsx)(_.u,{isOpen:A,onClose:ek,title:W.isWarmLead?"".concat(ez," chose you"):"Unlock ".concat(ez,"'s request"),children:(0,s.jsxs)("div",{className:"p-6",children:[W.isWarmLead?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"inline-flex items-center gap-1.5 text-[11px] font-[600] uppercase tracking-[0.5px] px-2.5 py-1 rounded-full bg-zamala-violet text-white mb-4",children:"★ Host chose you"}),(0,s.jsxs)("p",{className:"text-base text-ink-55 dark:text-white/50 mb-4",children:[(0,s.jsx)("span",{className:"font-semibold text-ink dark:text-white",children:ez})," ","viewed your profile and reached out to you directly. Unlocking this direct request costs"," ",(0,s.jsxs)("span",{className:"font-semibold text-ink dark:text-white",children:[eI," ",1===eI?"credit":"credits"]})," ","from your balance — the cost is shown up front."]}),(0,s.jsx)("p",{className:"text-sm text-ink-55 dark:text-white/50 mb-6",children:"Replying within 24 hours gives you the best chance of getting hired."})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"text-base text-ink-55 dark:text-white/50 mb-2",children:["Unlocks"," ",(0,s.jsxs)("span",{className:"font-semibold text-ink dark:text-white",children:[eI," credits"]})," ","from your balance and opens messaging with ",ez,"."]}),(0,s.jsxs)("p",{className:"text-xs text-ink-55 dark:text-white/50 mb-5",children:["You currently have"," ",(0,s.jsxs)("span",{className:"font-semibold",children:[ea," credits"]}),"."]})]}),!W.isWarmLead&&(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("label",{htmlFor:"unlock_first_message",className:"block text-xs font-[500] text-ink-55 dark:text-white/50 mb-1.5",children:"Send a first message (optional, but lifts your reply chances)"}),(0,s.jsx)("textarea",{id:"unlock_first_message",value:Y,onChange:e=>Q(e.target.value),placeholder:"Hi ".concat(ez,", I saw your event and I'd love to help…"),rows:4,className:"w-full rounded-[12px] border border-ink-12 dark:border-dark-edge bg-paper dark:bg-white/5 px-3 py-2.5 text-sm text-ink dark:text-white placeholder:text-ink-30 dark:placeholder:text-white/30 focus:outline-none focus:border-zamala-violet focus:bg-white dark:focus:bg-white/10 transition resize-none"})]}),H&&(0,s.jsx)("p",{className:"mb-4 text-sm text-red-600 dark:text-red-400 rounded-[12px] bg-red-50 dark:bg-red-900/20 px-4 py-2.5",children:H}),(0,s.jsxs)("div",{className:"flex justify-end gap-3 flex-wrap",children:[(0,s.jsx)("button",{type:"button",className:"border border-ink-12 dark:border-dark-edge text-ink dark:text-white rounded-full px-6 py-2.5 font-[500] text-sm transition hover:bg-ink-6 dark:hover:bg-white/5",onClick:ek,children:"Cancel"}),ea>=eI?(0,s.jsx)("button",{type:"button","data-testid":"confirm-unlock-btn",className:"bg-ink dark:bg-white text-white dark:text-ink rounded-full px-6 py-2.5 font-[500] text-sm transition hover:opacity-90",onClick:eN,children:Y.trim()?"Unlock & send — ".concat(eI," ").concat(1===eI?"credit":"credits"):"Unlock — ".concat(eI," ").concat(1===eI?"credit":"credits")}):(0,s.jsxs)("button",{type:"button","data-testid":"modal-topup-btn",className:"bg-zamala-violet hover:bg-zamala-violet-80 text-white rounded-full px-6 py-2.5 font-[500] text-sm transition flex items-center gap-1.5",onClick:ew,children:[(0,s.jsx)(D.JO,{name:"plus",size:16}),"Top up credits"]})]})]})})]})}function EmptyStateProLaunch(e){let{router:t}=e;return(0,s.jsxs)("section",{className:"lg:w-2/3 w-full min-w-0 bg-white dark:bg-dark-bg p-6 sm:p-10 lg:p-12 shadow-sm rounded-[20px] border border-ink-12 dark:border-dark-edge max-lg:mt-4",children:[(0,s.jsxs)("div",{className:"max-w-3xl mx-auto text-center mb-8 sm:mb-10",children:[(0,s.jsxs)("div",{className:"inline-flex items-center gap-2 bg-zamala-tint dark:bg-zamala-violet/15 text-zamala-violet dark:text-zamala-violet-40 rounded-full px-4 py-2 text-xs font-bold uppercase tracking-wider mb-5",children:[(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-zamala-violet animate-pulse"}),"Pre-launch \xb7 early Vancouver"]}),(0,s.jsx)("h1",{className:"text-3xl sm:text-4xl font-[800] tracking-tight leading-tight mb-3",children:"Your inquiries are on their way."}),(0,s.jsx)("p",{className:"text-sm sm:text-base text-ink-55 dark:text-white/50 leading-relaxed max-w-xl mx-auto",children:"Zamala is matching event hosts to Vancouver Pros right now. The moment someone in your category submits a request, we'll send it to you first."})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 max-w-3xl mx-auto mb-6",children:[(0,s.jsxs)("div",{className:"rounded-[16px] bg-paper dark:bg-dark-bg border border-ink-12 dark:border-dark-edge p-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,s.jsx)(D.JO,{name:"check-circle",size:16,className:"text-zamala-violet"}),(0,s.jsx)("span",{className:"text-[11px] font-[600] uppercase tracking-wider text-ink-55 dark:text-white/50",children:"Step 1"})]}),(0,s.jsx)("p",{className:"text-sm font-[600] text-ink dark:text-white mb-1",children:"Complete your profile"}),(0,s.jsx)("p",{className:"text-xs text-ink-55 dark:text-white/50 leading-snug",children:"Pros with detailed tags rank higher when Zamala matches event hosts to pros."})]}),(0,s.jsxs)("div",{className:"rounded-[16px] bg-paper dark:bg-dark-bg border border-ink-12 dark:border-dark-edge p-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,s.jsx)(D.JO,{name:"check-circle",size:16,className:"text-zamala-violet"}),(0,s.jsx)("span",{className:"text-[11px] font-[600] uppercase tracking-wider text-ink-55 dark:text-white/50",children:"Step 2"})]}),(0,s.jsx)("p",{className:"text-sm font-[600] text-ink dark:text-white mb-1",children:"Add 3+ packages"}),(0,s.jsx)("p",{className:"text-xs text-ink-55 dark:text-white/50 leading-snug",children:"Specific packages give hosts more reasons to choose you, and help us match you to the right requests."})]})]}),(0,s.jsxs)("div",{className:"bg-zamala-violet rounded-[20px] p-5 sm:p-6 max-w-3xl mx-auto text-white relative overflow-hidden mb-6",children:[(0,s.jsx)("div",{className:"absolute top-0 right-0 w-48 h-48 rounded-full pointer-events-none",style:{background:"radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%)"},"aria-hidden":!0}),(0,s.jsxs)("div",{className:"relative flex items-start gap-3 sm:gap-4",children:[(0,s.jsx)("div",{className:"w-11 h-11 sm:w-12 sm:h-12 rounded-2xl bg-white text-zamala-violet flex items-center justify-center flex-shrink-0",children:(0,s.jsx)("span",{className:"text-xl font-bold",children:"Z"})}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-[10px] uppercase tracking-wider text-white/60 font-bold mb-1",children:"While you wait"}),(0,s.jsx)("h3",{className:"text-base sm:text-lg font-bold leading-tight mb-2",children:"Founding Pro perks unlock when you launch with us"}),(0,s.jsx)("p",{className:"text-sm text-white/80 leading-relaxed mb-4",children:"We're assembling Vancouver's first Founding Pros — early vendors who get permanent perks, badge recognition, and priority matching as Zamala grows."}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>t.push("/pro/my-page"),className:"bg-white text-ink hover:bg-paper rounded-full px-5 py-2.5 text-sm font-semibold flex items-center gap-2",children:["Complete your profile",(0,s.jsx)(D.JO,{name:"chevron-right",size:14})]}),(0,s.jsx)("button",{type:"button",onClick:()=>t.push("/pro/packages"),className:"border border-white/30 text-white hover:bg-white/10 rounded-full px-5 py-2.5 text-sm font-medium",children:"Add packages"}),(0,s.jsx)("a",{href:"/founding",target:"_blank",rel:"noopener noreferrer",className:"text-white/80 hover:text-white text-sm font-medium underline-offset-2 hover:underline self-center px-2",children:"Learn about Founding Pro →"})]})]})]})]}),(0,s.jsx)("div",{className:"max-w-3xl mx-auto rounded-[16px] border border-ink-12 dark:border-dark-edge bg-paper dark:bg-dark-bg p-4 sm:p-5",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("div",{className:"w-8 h-8 rounded-full bg-white dark:bg-dark-bg border border-ink-12 dark:border-dark-edge flex items-center justify-center flex-shrink-0 mt-0.5",children:(0,s.jsx)(D.JO,{name:"info",size:14,className:"text-zamala-violet"})}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-2 mb-1",children:[(0,s.jsx)("p",{className:"font-semibold text-sm text-ink dark:text-white",children:"First time on Zamala?"}),(0,s.jsx)("a",{href:"/pricing",target:"_blank",rel:"noopener noreferrer",className:"text-xs text-zamala-violet font-medium hover:underline",children:"How credits work →"})]}),(0,s.jsxs)("p",{className:"text-xs text-ink-55 dark:text-white/50 leading-relaxed",children:["When a host reaches out to you directly, the request is marked as direct and its credit cost is shown up front. When Zamala matches you to a request, you spend ",Z.ZJ,"–",Z.$W," ","credits to unlock contact. No subscription, no auto-renewal — pay only what you use."]})]})]})})]})}var O=a(32699),S=a(56677),U=!0;function VendorsInquiriesPage(){let{loading:e}=(0,O.Vv)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i(),{children:[(0,s.jsx)("title",{children:"My Inquiries | Zamala"}),(0,s.jsx)("meta",{name:"description",content:"Discover and respond to client requests matched to your services. Unlock inquiries and grow your event business with Zamala."})]}),(0,s.jsxs)("div",{className:"flex flex-col h-full md:h-screen",children:[(0,s.jsx)(n.X,{}),(0,s.jsx)("main",{className:"pt-16 flex-1 overflow-y-auto scrollbar scrollbar-gutter",children:e?(0,s.jsx)(S.u,{}):(0,s.jsx)(HotLeads,{})})]})]})}}},function(e){e.O(0,[5445,2298,2809,479,2406,9774,2888,179],function(){return e(e.s=19983)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.