1import{o as l,E as c,i as o,e,F as x}from"./index-5yIA4G3P.js";import{A as m}from"./AdminLayout-C1nGfJQY.js";import"./AuthenticatedApp-CCBRrGPa.js";function h(){const{data:i=[]}=l(),t=c(),n=o(),r=()=>n.invalidateQueries({queryKey:x()}),d=(s,a)=>{t.mutate({id:s,data:{status:a}},{onSuccess:r})};return e.jsxs(m,{children:[e.jsx("h1",{className:"in2-display text-4xl text-white mb-8",children:"Advertiser Enquiries"}),e.jsxs("div",{className:"bg-[var(--in2-panel)] border border-[var(--in2-line)] rounded-lg overflow-hidden",children:[e.jsxs("div",{className:"grid grid-cols-12 gap-4 px-6 py-4 border-b border-[var(--in2-line)] bg-[var(--in2-ink)] text-xs text-[var(--in2-muted)] in2-condensed uppercase tracking-widest",children:[e.jsx("div",{className:"col-span-2",children:"Date"}),e.jsx("div",{className:"col-span-3",children:"Company / Contact"}),e.jsx("div",{className:"col-span-4",children:"Message"}),e.jsx("div",{className:"col-span-3",children:"Status"})]}),e.jsxs("div",{className:"flex flex-col divide-y divide-[var(--in2-line)]",children:[i.map(s=>e.jsxs("div",{className:`grid grid-cols-12 gap-4 px-6 py-4 ${s.status==="new"?"bg-[rgba(255,180,0,0.05)]":""}`,children:[e.jsx("div",{className:"col-span-2 text-sm text-[var(--in2-muted)]",children:new Date(s.createdAt).toLocaleDateString()}),e.jsxs("div",{className:"col-span-3",children:[e.jsx("div",{className:"font-bold text-white",children:s.companyName}),e.jsx("div",{className:"text-sm text-[var(--in2-muted)]",children:s.contactName}),e.jsx("div",{className:"text-xs text-[var(--in2-cyan)] mt-1",children:s.email}),s.phone&&e.jsx("div",{className:"text-xs text-[var(--in2-muted)]",children:s.phone})]}),e.jsx("div",{className:"col-span-4 text-sm text-[var(--in2-muted)]",children:s.message}),e.jsx("div",{className:"col-span-3",children:e.jsxs("select",{value:s.status,onChange:a=>d(s.id,a.target.value),className:"bg-[var(--in2-ink)] border border-[var(--in2-line)] text-sm rounded px-2 py-1 outline-none focus:border-[var(--in2-cyan)]",children:[e.jsx("option",{value:"new",children:"New"}),e.jsx("option",{value:"contacted",children:"Contacted"}),e.jsx("option",{value:"converted",children:"Converted"}),e.jsx("option",{value:"dismissed",children:"Dismissed"})]})})]},s.id)),i.length===0&&e.jsx("div",{className:"p-8 text-center text-[var(--in2-muted)]",children:"No enquiries yet."})]})]})]})}export{h as default};
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.