1import{e as l,a as x,j as e,L as o,aI as d}from"./index-DyPIjhZ1.js";import{a as c,e as p}from"./offers.functions-CjV4918i.js";import{C as g}from"./ClassicHeader-RKrnouVL.js";import{R as b}from"./ResponsibleGamblingNotice-Ss7cqHCY.js";import{A as h}from"./arrow-right-CxP2paGI.js";import"./InlineBalances-DjnRCxKy.js";import"./star-CHa3B_rW.js";import"./NotificationBell-D_qlP-mV.js";import"./popover-B9Ntj9Lj.js";import"./win-notifications.functions-DplWGXVL.js";import"./coins-DSDHmfNu.js";import"./SiteTabSwitcher-BSwGVAgD.js";import"./default-avatar-CjZRipED.js";const m="/assets/latest-offers-BGG-S1mR.png";function L(){const r=l(c),{data:i=[],isLoading:t}=x({queryKey:["offers","enabled"],queryFn:()=>r()});return e.jsxs("div",{children:[e.jsx(g,{}),e.jsxs("section",{className:"mb-6",children:[e.jsxs("div",{className:"relative mb-5 overflow-hidden rounded-3xl border border-white/10 bg-gradient-to-br from-[#1a0f2e] via-[#0f1a3a] to-[#0a1428] p-6 shadow-[0_10px_40px_-10px_rgba(255,138,0,0.35)]",children:[e.jsx("div",{className:"absolute -right-8 -top-8 h-40 w-40 rounded-full bg-orange-500/20 blur-3xl"}),e.jsx("div",{className:"absolute -bottom-10 -left-10 h-40 w-40 rounded-full bg-pink-500/20 blur-3xl"}),e.jsxs("div",{className:"relative flex flex-col items-center gap-2 text-center",children:[e.jsx("img",{src:m,alt:"Latest Offers",width:1248,height:544,className:"h-auto w-full max-w-[280px] drop-shadow-[0_6px_20px_rgba(255,60,140,0.35)]"}),e.jsx("p",{className:"text-xs font-medium text-white/70",children:"Exclusive deals and promotions â fresh from A4G HQ."})]})]}),t?e.jsx("div",{className:"space-y-3",children:[1,2,3].map(a=>e.jsx("div",{className:"h-40 animate-pulse rounded-3xl border border-border bg-muted/30"},a))}):i.length===0?e.jsx("div",{className:"rounded-3xl border border-dashed border-border bg-muted/20 p-10 text-center text-sm text-muted-foreground",children:"No offers live right now â check back soon!"}):e.jsx("div",{className:"space-y-4",children:i.map((a,s)=>e.jsx(f,{offer:a,index:s},a.id))})]}),e.jsx(b,{}),e.jsx("footer",{className:"mt-6 mb-10 flex flex-col items-center justify-center gap-3 border-t border-border pt-6 text-center text-[11px] text-muted-foreground",children:e.jsx(o,{to:"/",className:"hover:text-foreground hover:underline",children:"â Back home"})})]})}const n=[{bg:"linear-gradient(135deg, #ff512f 0%, #dd2476 55%, #7a1fa2 100%)",glow:"0 12px 40px -10px rgba(255,81,47,0.55), 0 4px 20px -6px rgba(221,36,118,0.5)",hoverGlow:"0 16px 50px -8px rgba(255,81,47,0.7), 0 6px 24px -6px rgba(221,36,118,0.6)",chipBorder:"border-white/40",chipBg:"bg-white/15",chipText:"text-white",ctaBg:"linear-gradient(90deg, #ffffff 0%, #fff2d1 100%)",ctaText:"text-[#a1145a]",cornerA:"bg-yellow-300/40",cornerB:"bg-fuchsia-500/50"},{bg:"linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #6366f1 100%)",glow:"0 12px 40px -10px rgba(59,130,246,0.55), 0 4px 20px -6px rgba(6,182,212,0.5)",hoverGlow:"0 16px 50px -8px rgba(59,130,246,0.7), 0 6px 24px -6px rgba(6,182,212,0.6)",chipBorder:"border-white/40",chipBg:"bg-white/15",chipText:"text-white",ctaBg:"linear-gradient(90deg, #ffffff 0%, #dbeafe 100%)",ctaText:"text-[#1e40af]",cornerA:"bg-cyan-300/45",cornerB:"bg-indigo-500/55"},{bg:"linear-gradient(135deg, #059669 0%, #10b981 50%, #a3e635 100%)",glow:"0 12px 40px -10px rgba(16,185,129,0.55), 0 4px 20px -6px rgba(163,230,53,0.45)",hoverGlow:"0 16px 50px -8px rgba(16,185,129,0.7), 0 6px 24px -6px rgba(163,230,53,0.55)",chipBorder:"border-white/40",chipBg:"bg-white/15",chipText:"text-white",ctaBg:"linear-gradient(90deg, #ffffff 0%, #ecfccb 100%)",ctaText:"text-[#166534]",cornerA:"bg-lime-300/50",cornerB:"bg-emerald-500/55"},{bg:"linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%)",glow:"0 12px 40px -10px rgba(168,85,247,0.55), 0 4px 20px -6px rgba(236,72,153,0.5)",hoverGlow:"0 16px 50px -8px rgba(168,85,247,0.7), 0 6px 24px -6px rgba(236,72,153,0.6)",chipBorder:"border-white/40",chipBg:"bg-white/15",chipText:"text-white",ctaBg:"linear-gradient(90deg, #ffffff 0%, #fce7f3 100%)",ctaText:"text-[#831843]",cornerA:"bg-fuchsia-300/45",cornerB:"bg-violet-600/55"}];function f({offer:r,index:i}){const t=n[i%n.length],a=e.jsxs("article",{id:r.id,className:"group relative overflow-hidden rounded-3xl border border-white/25 shadow-[0_10px_40px_-10px_rgba(0,0,0,0.5)] transition-all duration-200 hover:-translate-y-0.5",style:{background:t.bg,boxShadow:t.glow},children:[e.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-1/2 bg-gradient-to-b from-white/35 via-white/10 to-transparent"}),e.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-1/3 bg-gradient-to-t from-black/25 to-transparent"}),e.jsx("div",{className:"pointer-events-none absolute inset-0 -translate-x-full bg-gradient-to-r from-transparent via-white/25 to-transparent transition-transform duration-1000 group-hover:translate-x-full"}),e.jsx("div",{className:`pointer-events-none absolute -left-10 -top-10 h-32 w-32 rounded-full blur-3xl ${t.cornerA}`}),e.jsx("div",{className:`pointer-events-none absolute -right-10 -bottom-10 h-32 w-32 rounded-full blur-3xl ${t.cornerB}`}),r.image_url&&e.jsxs("div",{className:"relative aspect-[16/9] w-full overflow-hidden border-b border-white/20",children:[e.jsx("img",{src:r.image_url,alt:"",className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-105",loading:"lazy"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/40 via-trans
1parent to-transparent"})]}),e.jsxs("div",{className:"relative p-5",children:[e.jsxs("div",{className:"mb-3 flex flex-wrap items-center gap-2",children:[e.jsx("div",{className:"inline-flex -skew-x-12 items-center gap-2 border-y-2 border-white bg-white px-4 py-1.5 shadow-[0_4px_14px_-4px_rgba(0,0,0,0.6)]",children:e.jsxs("span",{className:"flex skew-x-12 items-center gap-1.5 text-[13px] font-black uppercase tracking-[0.22em] text-orange-600",children:[e.jsx(d,{className:"h-4 w-4",strokeWidth:2.75})," Offer"]})}),(()=>{const s=p(r);return s?e.jsxs("div",{className:"inline-flex items-center gap-1.5 rounded-md bg-black/30 px-2.5 py-1.5 text-[11px] font-bold uppercase tracking-wider text-white backdrop-blur-sm ring-1 ring-white/30",children:[e.jsx("span",{children:r.recurring_interval?"ð Next ends":"â³ Ends"}),e.jsx("span",{className:"text-white/95",children:s.toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"})})]}):null})()]}),e.jsx("h2",{className:"text-lg font-black leading-tight text-white",style:{textShadow:"0 1px 2px rgba(0,0,0,0.35), 0 0 14px rgba(255,255,255,0.15)"},children:r.title}),e.jsx("p",{className:"mt-2 whitespace-pre-line text-sm leading-relaxed text-white/90 drop-shadow-[0_1px_1px_rgba(0,0,0,0.3)]",children:r.description}),r.cta_link&&e.jsx("div",{className:"mt-4",children:e.jsxs("span",{className:`inline-flex items-center gap-1.5 rounded-full px-4 py-2 text-xs font-black uppercase tracking-wider shadow-[inset_0_1px_0_rgba(255,255,255,0.9),0_4px_16px_-2px_rgba(0,0,0,0.35)] transition-transform duration-150 group-active:scale-95 ${t.ctaText}`,style:{background:t.ctaBg},children:[r.cta_label?.trim()||"Learn more",e.jsx(h,{className:"h-3.5 w-3.5"})]})})]})]});if(r.cta_link){const s=r.cta_link;return/^https?:\/\//i.test(s)?e.jsx("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"block",children:a}):e.jsx(o,{to:s,className:"block",children:a})}return a}export{L as component};
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.