1import{r as C,j as e}from"./react-vendor-DUhHROXo.js";import{w as _,J as S,L as T,H as L,F as P,o as r,Z as f,a7 as B,a5 as k}from"./index-BLtzf0SR.js";import{C as A,b as O,c as D,a as I}from"./card-9IoFUltb.js";import{B as j}from"./badge-BsE4KYIf.js";import{T as G,a as R,b as o,c}from"./tabs-B9G-WuXr.js";import{s as N}from"./client-DTel1CZI.js";import{u as b}from"./index-Cx0UdoxP.js";import{L as i}from"./router-vendor-Dz9PdDzH.js";import{D as q}from"./download-DFEQ6r6X.js";import{S as E}from"./star-DkFa3J6y.js";import{D as z}from"./dollar-sign-D3lTBfQm.js";const d=["bronze","silver","gold","platinum"],F={one_time:"One-Time",weekly:"/week",monthly:"/month",annual:"/year"};function Y(){const{user:y}=_(),[m,x]=C.useState(null),{data:n=[]}=S({queryKey:["public_ad_packages"],queryFn:async()=>{const{data:s}=await N.from("ad_packages").select("*").eq("is_active",!0).order("tier").order("total_price",{ascending:!0});return s||[]}}),u=n.filter(s=>d.includes(s.tier)).sort((s,a)=>d.indexOf(s.tier)-d.indexOf(a.tier)),h=n.filter(s=>s.tier==="single"),p=n.filter(s=>s.tier==="a_la_carte"),g=n.filter(s=>s.tier==="custom"),v=async s=>{if(!y){b.error("Please sign in or create an account to purchase.");return}
1x(s.id);try{const{data:a,error:t}=await N.functions.invoke("create-sponsor-checkout",{body:{packageId:s.id}});if(t)throw t;a!=null&&a.url&&(window.location.href=a.url)}catch(a){b.error(a.message||"Unable to start checkout")}finally{x(null)}},w=s=>{if(s.total_price===0)return e.jsx("span",{className:"text-lg font-bold",children:"Custom Pricing"});const a=F[s.billing_period]||"";return e.jsxs("span",{className:"flex items-center gap-0.5",children:[e.jsx(z,{className:"h-4 w-4"}),e.jsx("span",{className:"text-2xl font-bold",children:s.total_price.toLocaleString()}),e.jsx("span",{className:"text-xs text-muted-foreground",children:a})]})},l=s=>{const a=s.tier==="gold";return e.jsxs(A,{className:`relative ${a?"border-accent ring-2 ring-accent/20":""}`,children:[a&&e.jsxs(j,{className:"absolute -top-3 left-1/2 -translate-x-1/2 bg-accent text-accent-foreground",children:[e.jsx(E,{className:"w-3 h-3 mr-1"}),"Most Popular"]}),e.jsxs(O,{className:"pb-2",children:[e.jsx(D,{className:"font-display text-lg",children:s.name}),w(s)]}),e.jsxs(I,{children:[s.description&&e.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:s.description}),s.included_placements&&Array.isArray(s.included_placements)&&e.jsx("div",{className:"space-y-1.5 mb-4",children:s.included_placements.map(t=>e.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[e.jsx(B,{className:"w-4 h-4 text-accent mt-0.5 shrink-0"}),e.jsx("span",{className:"text-muted-foreground",children:t.replace(/_/g," ")})]},t))}),s.total_price>0?e.jsx(r,{className:"w-full",disabled:m===s.id,onClick:()=>v(s),children:m===s.id?e.jsxs(e.Fragment,{children:[e.jsx(k,{className:"h-4 w-4 animate-spin mr-2"}),"Processing..."]}):"Purchase"}):e.jsx(r,{variant:"outline",className:"w-full",asChild:!0,children:e.jsx(i,{to:"/advertise",children:"Request Quote"})})]})]},s.id)};return e.jsxs(T,{children:[e.jsxs(L,{children:[e.jsx("title",{children:"Sponsor & Advertise | Bow Tie Sports Group"}),e.jsx("meta",{name:"description",content:"Sponsor The Bow Tie Sports Guy Podcast â explore advertising packages, download our media kit, and purchase sponsorships."}),e.jsx("link",{rel:"canonical",href:"https://btsgpodcast.lovable.app/sponsors"})]}),e.jsxs("section",{className:"relative text-secondary-foreground py-16 md:py-24 overflow-hidden",children:[e.jsxs("div",{className:"absolute inset-0",children:[e.jsx("img",{src:P("sponsors"),alt:"Partner with The Bow Tie Sports Guy",className:"w-full h-full object-cover",loading:"eager"}),e.jsx("div",{className:"absolute inset-0 bg-secondary/75"})]}),e.jsxs("div",{className:"relative container mx-auto px-4 text-center",children:[e.jsx(j,{variant:"outline",className:"border-accent text-accent mb-4",children:"Sponsorship Opportunities"}),e.jsx("h1",{className:"font-display text-4xl md:text-5xl font-bold mb-4",children:"Partner With The Bow Tie Sports Guy"}),e.jsx("p",{className:"text-lg text-secondary-foreground/70 max-w-2xl mx-auto mb-8",children:"Reach engaged NFL fans through host-read placements, website banners, newsletter features, and live stream integrations."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsx(r,{size:"lg",variant:"outline",className:"border-accent text-accent hover:bg-accent/10",asChild:!0,children:e.jsxs("a",{href:"/media-kit",children:[e.jsx(q,{className:"w-4 h-4 mr-2"}),"Download Media Kit"]})}),e.jsx(r,{size:"lg",className:"bg-accent text-accent-foreground hover:bg-accent/90",asChild:!0,children:e.jsxs(i,{to:"/advertise",children:[e.jsx(f,{className:"w-4 h-4 mr-2"}),"Contact Us"]})})]})]})]}),e.jsx("section",{className:"py-12 md:py-16",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx("h2",{className:"font-display text-3xl font-bold mb-2 text-foreground text-center",children:"Advertising & Sponsorship Packages"}),e.jsx("p",{className:"text-center text-muted-foreground mb-8 max-w-xl mx-auto",children:"Choose from tiered sponsorships, single-buy placements, Ã la carte options, or custom add-ons. Purchase instantly or contact us for custom deals."}),e.jsxs(G,{defaultValue:"tiers",className:"max-w-6xl mx-auto",children:[e.jsxs(R,{className:"grid grid-cols-4 w-full max-w-lg mx-auto mb-6",children:[e.jsx(o,{value:"tiers",children:"Tiers"}),e.jsx(o,{value:"single",children:"Single Buys"}),e.jsx(o,{value:"alacarte",children:"Ã La Carte"}),e.jsx(o,{value:"addons",children:"Add-Ons"})]}),e.jsxs(c,{value:"tiers",children:[e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6",children:u.map(l)}),u.length===0&&e.jsx("p",{className:"text-muted-foreground text-center py-8",children:"Coming soon."})]}),e.jsxs(c,{value:"single",children:[e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:h.map(l)}),h.length===0&&e.jsx("p",{className:"text-muted-foreground text-center py-8",children:"Coming soon."})]}),e.jsxs(c,{value:"alacarte",children:[e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:p.map(l)}),p.length===0&&e.jsx("p",{className:"text-muted-foreground text-center py-8",children:"Coming soon."})]}),e.jsxs(c,{value:"addons",children:[e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:g.map(l)}),g.length===0&&e.jsx("p",{className:"text-muted-foreground text-center py-8",children:"Coming soon."})]})]})]})}),e.jsx("section",{className:"bg-muted py-12",children:e.jsxs("div",{className:"container mx-auto px-4 text-center max-w-2xl",children:[e.jsx("h2",{className:"font-display text-2xl font-bold mb-4 text-foreground",children:"Need a Custom Package?"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"We offer custom sponsorship packages tailored to your brand's goals. Contact us to discu
1ss multi-platform integrations, category exclusivity, and negotiated rates."}),e.jsx(r,{size:"lg",className:"bg-accent text-accent-foreground hover:bg-accent/90",asChild:!0,children:e.jsxs(i,{to:"/advertise",children:[e.jsx(f,{className:"w-4 h-4 mr-2"}),"Submit an Inquiry"]})}),e.jsxs("p",{className:"text-sm text-muted-foreground mt-4",children:["Or email us directly at ",e.jsx("a",{href:"mailto:[email protected]",className:"text-accent hover:underline",children:"[email protected]"})]})]})})]})}export{Y 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.