1import{c as x,a as u,j as e,S as h,f as r,q as i,L as l,i as m,h as a,k as g}from"./index-Ksca7ybQ.js";import{B as j}from"./badge-CQ5JQUKO.js";const d=x("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);function b(){const{data:n,isLoading:c}=u({queryKey:["/api/businesses"]}),t=n?.filter(s=>s.isPremium)||[];return e.jsxs("div",{className:"min-h-screen py-8 px-4","data-testid":"page-premium",children:[e.jsx(h,{title:r["/premium"].title,description:r["/premium"].description}),e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[e.jsx(d,{className:"w-8 h-8 text-yellow-500"}),e.jsx("h1",{className:"text-3xl md:text-4xl font-bold",children:"Premium Listings"})]}),e.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Our featured businesses receive priority placement and enhanced visibility. These trusted local businesses have invested in connecting with you."})]}),e.jsx("div",{className:"bg-gradient-to-r from-yellow-50 to-amber-50 dark:from-yellow-900/20 dark:to-amber-900/20 rounded-xl p-6 mb-8 border border-yellow-200 dark:border-yellow-800",children:e.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(i,{className:"w-6 h-6 text-yellow-500 fill-yellow-500"}),e.jsxs("div",{children:[e.jsx("h2",{className:"font-semibold text-lg",children:"Want to become a Premium listing?"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Get more visibility and attract more customers"})]})]}),e.jsx(l,{href:"/advertise",children:e.jsx(m,{className:"bg-gradient-to-r from-yellow-500 to-amber-500 text-white","data-testid":"button-become-premium",children:"Learn More"})})]})}),c?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:Array.from({length:6}).map((s,o)=>e.jsxs("div",{className:"space-y-3",children:[e.jsx(a,{className:"aspect-video w-full rounded-lg"}),e.jsx(a,{className:"h-6 w-3/4"}),e.jsx(a,{className:"h-4 w-full"})]},o))}):t.length>0?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex items-center gap-2 mb-4",children:e.jsxs(j,{className:"bg-gradient-to-r from-yellow-500 to-amber-500 text-white border-0",children:[e.jsx(i,{className:"w-3 h-3 mr-1 fill-white"}),t.length," Premium Business",t.length!==1?"es":""]})}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:t.map(s=>e.jsx(g,{business:s},s.id))})]}):e.jsxs("div",{className:"text-center py-16",children:[e.jsx(d,{className:"w-16 h-16 text-muted-foreground mx-auto mb-4"}),e.jsx("p",{className:"text-muted-foreground text-lg",children:"No premium listings yet."}),e.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:"Be the first to feature your business!"}),e.jsx(l,{href:"/submit",children:e.jsx(m,{className:"mt-4","data-testid":"button-submit-premium",children:"Submit Your Business"})})]})]})]})}export{b 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.