1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,931024,e=>{"use strict";var t=e.i(34464),a=e.i(292623),l=e.i(504561),r=e.i(430878),s=e.i(621330),i=e.i(995356),n=e.i(290012),o=e.i(247094),c=e.i(472654);e.s(["ProductDecisionWizard",0,function({workflows:e,locale:d=n.defaultLocale}){let[m,u]=(0,r.useState)(e[0]?.id??"arbitrage"),[x,h]=(0,r.useState)(!1),p=(0,r.useMemo)(()=>e.find(e=>e.id===m)??e[0],[m,e]);if(!p)return null;let b=`transition-[opacity,translate] duration-200 ease-out ${x?"starting:translate-y-1 starting:opacity-0":""}`;return(0,t.jsx)("section",{id:"decision-wizard",className:"mx-auto max-w-7xl px-5 py-12","aria-labelledby":"decision-wizard-heading",children:(0,t.jsxs)("div",{className:"overflow-hidden rounded-[2.5rem] border border-[var(--line)] bg-white shadow-sm",children:[(0,t.jsxs)("div",{className:"grid gap-8 p-6 md:p-8 lg:grid-cols-[0.9fr_1.1fr] lg:p-10",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{id:"decision-wizard-heading",className:"text-4xl font-semibold tracking-[-0.04em] md:text-5xl",children:(0,o.t)(d,"wizard.heading")}),(0,t.jsx)("p",{className:"mt-4 text-base leading-8 text-[var(--muted)]",children:(0,o.t)(d,"wizard.intro")}),(0,t.jsx)("div",{className:"mt-8 grid gap-3",children:e.map(e=>{let a=e.id===p.id;return(0,t.jsxs)("button",{type:"button","aria-pressed":a,onClick:()=>{u(e.id),h(!0),(0,i.trackEvent)("decision_wizard_select",{workflow:e.id})},className:`rounded-2xl border p-4 text-left transition-[border-color,background-color,box-shadow,scale] duration-150 ease-out active:scale-[0.99] ${a?"border-[var(--accent)] bg-[var(--soft)] shadow-sm":"border-[var(--line)] bg-white hover:border-[var(--accent)]"}`,children:[(0,t.jsx)("span",{className:"block font-semibold tracking-[-0.02em] text-[var(--foreground)]",children:e.optionLabel}),(0,t.jsx)("span",{className:"mt-1 block text-sm leading-6 text-[var(--muted)]",children:e.optionDescription})]},e.id)})})]}),(0,t.jsxs)("div",{className:`rounded-[2rem] bg-[var(--ink)] p-6 text-white md:p-8 ${b}`,children:[(0,t.jsx)("p",{className:"font-mono text-xs font-bold uppercase tracking-[0.16em] text-white/60",children:p.eyebrow}),(0,t.jsx)("h3",{className:"mt-4 text-3xl font-semibold leading-tight tracking-[-0.05em] md:text-4xl",children:p.title}),(0,t.jsx)("p",{className:"mt-4 text-base leading-8 text-white/75",children:p.summary}),(0,t.jsxs)("div",{className:"mt-6 rounded-2xl border border-white/10 bg-white/5 p-5",children:[(0,t.jsx)("p",{className:"font-semibold text-white",children:(0,o.t)(d,"wizard.whyThis")}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-7 text-white/70",children:p.reason}),(0,t.jsx)("ul",{className:"mt-4 grid gap-2 text-sm leading-6 text-white/75",children:p.proofPoints.map(e=>(0,t.jsxs)("li",{className:"flex gap-3",children:[(0,t.jsx)("span",{className:"mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-[var(--accent)]"}),(0,t.jsx)("span",{children:e})]},e))})]}),(0,t.jsxs)("div",{className:"mt-6 flex flex-wrap gap-3",children:[p.calculatorHref?(0,t.jsx)(l.default,{href:(0,c.localizedHref)(p.calculatorHref,d),className:"rounded-full bg-[var(--accent)] px-5 py-3 font-mono text-xs font-bold uppercase tracking-[0.14em] text-white transition-[scale,background-color] duration-150 ease-out hover:bg-[var(--accent-dark)] active:scale-[0.97]",children:p.calculatorLabel}):null,(0,t.jsx)(l.default,{href:(0,c.localizedHref)(p.primaryHref,d),className:"rounded-full border border-white/25 px-5 py-3 font-mono text-xs font-bold uppercase tracking-[0.14em] text-white transition-[scale,border-color] duration-150 ease-out hover:border-white active:scale-[0.97]",children:p.primaryLabel}),(0,t.jsx)(l.default,{href:(0,c.localizedHref)(p.guideHref,d),className:"rounded-full border border-white/25 px-5 py-3 font-mono text-xs font-bold uppercase tracking-[0.14em] text-white transition-[scale,border-color] duration-150 ease-out hover:border-white active:scale-[0.97]",children:p.guideLabel})]})]},p.id)]}),p.reviews.length>0?(0,t.jsxs)("div",{className:"border-t border-[var(--line)] bg-[var(--soft)] p-6 md:p-8 lg:p-10",children:[(0,t.jsxs)("div",{className:"mb-5 flex flex-wrap items-end justify-between gap-4",children:[(0,t.jsx)("div",{children:(0,t.jsx)("h3",{className:"text-2xl font-semibold tracking-[-0.04em]",children:(0,o.t)(d,"wizard.shortlistTitle")})}),(0,t.jsx)("p",{className:"max-w-2xl text-sm leading-7 text-[var(--muted)]",children:(0,o.t)(d,"wizard.shortlistIntro")})]}),(0,t.jsx)("div",{className:"grid gap-4 lg:grid-cols-3",children:p.reviews.map((e,r)=>(0,t.jsxs)("article",{className:`flex h-full flex-col rounded-2xl border border-[var(--line)] bg-white p-5 shadow-sm ${b}`,style:x?{transitionDelay:`${45*r}ms`}:void 0,children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)(l.default,{href:(0,c.localizedHref)(e.href,d),className:"text-lg font-semibold leading-tight tracking-[-0.03em] hover:text-[var(--accent)]",children:e.title}),(0,t.jsx)("p",{className:"mt-2 font-mono text-xs font-bold uppercase tracking-[0.14em] text-[var(--accent)]",children:e.ratingLabel})]}),e.logo?(0,t.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden rounded-xl border border-[var(--line)] bg-white",children:(0,t.jsx)(a.default,{src:e.logo,alt:`${e.title} logo`,fill:!0,sizes:"48px",className:"object-contain p-1.5"})}):null]}),e.bestFor?(0,t.jsx)("p",{className:"mt-4 flex-1 text-sm leading-7 text-[var(--muted)]",children:e.bestFor}):null,(0,t.jsxs)("div",{className:"mt-5 flex flex-wrap gap-2",children:[e.ctaUrl?(0,t.jsx)(s.ReviewVisitCta,{href:e.ctaUrl,brand:e.title,variant:"inline",locale:d}):null,(0,t.jsx)(l.default,{href:(0,c.localizedHref)(e.href,d),className:"inline-flex min-h-[44px] items-center rounded-full border border-[var(--line)] px-4 py-2 font-mono text-[0.65rem] font-bold uppercase tracking-[0.12em] text-[var(--ink)] transition-[scale,border-color] duration-150 ease-out hover:border-[var(--ink)] active:scale-[0.97]",children:(0,o.t)(d,"wizard.readReview")})]})]},e.slug))}
1,p.id)]}):null]})})}])},956393,e=>{"use strict";var t=e.i(34464),a=e.i(430878),l=e.i(504561),r=e.i(995356),s=e.i(141587),i=e.i(247094);function n(){let e=(0,s.useLocale)(),[l,r]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=!1,t=()=>{fetch("/api/fold-opportunity/").then(e=>e.ok?e.json():null).then(t=>{!e&&t&&r(t.ok?{opp:t.opp,fetchedAt:t.fetchedAt}:null)}).catch(()=>{e||r(null)})};t();let a=setInterval(()=>{document.hidden||t()},9e4),l=()=>{document.hidden||t()};return document.addEventListener("visibilitychange",l),()=>{e=!0,clearInterval(a),document.removeEventListener("visibilitychange",l)}},[]),(0,t.jsx)("div",{className:"mt-3 min-h-[18px]",children:l?(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-0.5 font-mono text-[0.66rem] text-[rgba(233,246,244,0.62)] transition-[opacity,translate] duration-200 ease-out starting:translate-y-1 starting:opacity-0",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 whitespace-nowrap font-semibold uppercase tracking-[0.08em] text-[#7fe9da]",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"h-1 w-1 animate-pulse rounded-full bg-[var(--secondary)]"}),(0,i.t)(e,"home.fold.liveOppLabel")]}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:l.opp.event}),(0,t.jsx)("span",{className:"whitespace-nowrap text-[rgba(233,246,244,0.78)]",children:(0,i.tf)(e,"home.fold.liveOppBackLay",{back:l.opp.backOdds,lay:l.opp.layOdds})}),(0,t.jsx)("span",{className:"whitespace-nowrap",children:(0,i.tf)(e,"home.fold.liveOppFetched",{time:new Date(l.fetchedAt).toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit",timeZone:"UTC"})})})]}):null})}var o=e.i(843160),c=e.i(892833),d=e.i(472654);function m(e){return`â¬${e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function u(e){let t=Number(e);return Number.isFinite(t)&&t>0?t:null}e.s(["HeroCalculator",0,function({topPick:e}){let x=(0,s.useLocale)(),[h,p]=(0,a.useState)("2.10"),[b,g]=(0,a.useState)("2.10"),[f,v]=(0,a.useState)("1000"),j=(0,a.useMemo)(()=>{let e=Number(h),t=Number(b),a=u(f);return!Number.isFinite(e)||!Number.isFinite(t)||e<=1||t<=1||null===a?null:(0,o.computeSurebet)({totalStake:a,odds:[e,t]})},[h,b,f]),k=j?.isArb??!1,N=u(f),y=j&&N?j.profit/N*100:0,w=Number(h),S=Number(b),C=Number.isFinite(w)&&Number.isFinite(S)&&w>1&&S>1?(1/w+1/S)*100:null,L=null!==C&&C<100,$=null===C?null:(Math.min(110,Math.max(90,C))-90)/20*100,B="w-full rounded-xl border border-[rgba(127,233,218,0.22)] bg-white/5 px-3 py-2.5 font-mono text-base font-semibold text-white transition-[border-color,background-color] duration-150 ease-out focus:border-[var(--secondary)] focus:bg-white/10 focus:outline-none focus:ring-2 focus:ring-[rgba(20,184,166,0.4)] [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",M="flex items-center justify-between font-mono text-[0.66rem] font-semibold uppercase tracking-[0.08em] text-[rgba(233,246,244,0.62)]",P="font-normal normal-case tracking-normal text-[rgba(233,246,244,0.66)]";return(0,t.jsxs)("section",{"aria-label":(0,i.t)(x,"home.fold.calcLabel"),className:"relative flex h-full min-w-0 flex-col overflow-hidden rounded-2xl bg-[var(--ink)] text-[#e9f6f4] shadow-[0_1px_2px_rgba(4,47,46,0.06),0_24px_60px_-26px_rgba(4,47,46,0.55)]",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 bg-[radial-gradient(420px_200px_at_92%_-10%,rgba(20,184,166,0.3),transparent_68%)]"}),(0,t.jsxs)("div",{className:"relative flex flex-1 flex-col p-5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 font-mono text-[0.69rem] font-semibold uppercase tracking-[0.12em] text-[#7fe9da]",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"h-1.5 w-1.5 rounded-full bg-[var(--secondary)] shadow-[0_0_0_4px_rgba(20,184,166,0.22)]"}),(0,i.t)(x,"home.fold.calcLabel")]}),(0,t.jsx)("span",{className:"font-mono text-[0.66rem] text-[rgba(233,246,244,0.55)]",children:(0,i.t)(x,"home.fold.calcMode")})]}),(0,t.jsx)("h3",{className:"mb-3.5 mt-1 text-xl font-semibold tracking-[-0.02em] text-white",children:(0,i.t)(x,"home.fold.calcTitle")}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3 max-[380px]:grid-cols-1",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsxs)("label",{htmlFor:"hero-odds-a",className:M,children:[(0,i.t)(x,"home.fold.oddsA")," ",(0,t.jsx)("span",{className:P,children:(0,i.t)(x,"home.fold.decimalHint")})]}),(0,t.jsx)("input",{id:"hero-odds-a",type:"number",inputMode:"decimal",step:"0.01",min:"1.01",value:h,onChange:e=>p(e.target.value),onWheel:e=>e.currentTarget.blur(),className:B})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsxs)("label",{htmlFor:"hero-odds-b",className:M,children:[(0,i.t)(x,"home.fold.oddsB")," ",(0,t.jsx)("span",{className:P,children:(0,i.t)(x,"home.fold.decimalHint")})]}),(0,t.jsx)("input",{id:"hero-odds-b",type:"number",inputMode:"decimal",step:"0.01",min:"1.01",value:b,onChange:e=>g(e.target.value),onWheel:e=>e.currentTarget.blur(),className:B})]}),(0,t.jsxs)("div",{className:"col-span-full flex flex-col gap-1.5",children:[(0,t.jsxs)("label",{htmlFor:"hero-stake",className:M,children:[(0,i.t)(x,"home.fold.totalStake")," ",(0,t.jsx)("span",{className:P,children:(0,i.t)(x,"home.fold.stakeHint")})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("span",{"aria-hidden":!0,
1className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 font-mono text-sm text-[rgba(233,246,244,0.62)]",children:"â¬"}),(0,t.jsx)("input",{id:"hero-stake",type:"number",inputMode:"decimal",step:"1",min:"1",value:f,onChange:e=>v(e.target.value),onWheel:e=>e.currentTarget.blur(),className:`${B} pl-7`})]})]})]}),(0,t.jsxs)("div",{className:"mt-3.5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 font-mono text-[0.63rem] font-semibold uppercase tracking-[0.08em] text-[rgba(233,246,244,0.62)]",children:[(0,t.jsxs)("span",{children:[(0,i.t)(x,"home.fold.marketSum")," ",(0,t.jsx)("span",{className:P,children:(0,i.t)(x,"home.fold.marketSumHint")})]}),(0,t.jsx)("span",{className:`transition-colors duration-200 ease-out ${L?"text-[#6ee7a8]":"text-[#fcd34d]"}`,children:null===C?"--":`${C.toFixed(2)}%`})]}),(0,t.jsxs)("div",{className:"relative mt-2 h-1.5 rounded-full bg-[linear-gradient(90deg,rgba(74,222,128,0.5),rgba(74,222,128,0.16)_50%,rgba(251,191,36,0.16)_50%,rgba(251,191,36,0.5))]",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute inset-y-[-4px] left-1/2 w-px bg-white/45"}),null!==$?(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute inset-0 transition-transform duration-200 ease-out",style:{transform:`translateX(${$}%)`},children:(0,t.jsx)("span",{className:`absolute left-0 top-1/2 h-3.5 w-[3px] -translate-x-1/2 -translate-y-1/2 rounded-full transition-colors duration-200 ease-out ${L?"bg-[#6ee7a8] shadow-[0_0_10px_rgba(110,231,168,0.9)]":"bg-[#fcd34d] shadow-[0_0_10px_rgba(252,211,77,0.8)]"}`})}):null]})]}),(0,t.jsxs)("div",{className:`mt-3.5 rounded-xl border p-4 transition-[background-color,border-color] duration-200 ease-out ${null===j?"border-[rgba(251,191,36,0.4)] bg-[rgba(217,119,6,0.13)]":k?"border-[rgba(74,222,128,0.42)] bg-[rgba(22,163,74,0.14)]":"border-[rgba(251,191,36,0.4)] bg-[rgba(217,119,6,0.13)]"}`,children:[(0,t.jsxs)("div",{role:"status","aria-live":"polite",className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("span",{className:`inline-flex items-center gap-2 text-sm font-bold tracking-[-0.01em] transition-colors duration-200 ease-out ${null!==j&&k?"text-[#6ee7a8]":"text-[#fcd34d]"}`,children:null===j?(0,i.t)(x,"home.fold.invalidOdds"):k?(0,i.t)(x,"home.fold.arbFound"):(0,i.t)(x,"home.fold.noArb")}),(0,t.jsxs)("div",{className:"text-right",children:[(0,t.jsx)("div",{className:`font-mono text-2xl font-bold leading-none tracking-[-0.02em] transition-colors duration-200 ease-out ${null!==j&&k?"text-[#6ee7a8]":"text-[#fcd34d]"}`,children:null===j?"--":`${y>0?"+":""}${y.toFixed(2)}%`}),(0,t.jsx)("div",{className:"mt-0.5 font-mono text-[0.6rem] uppercase tracking-[0.1em] text-[rgba(233,246,244,0.62)]",children:null===j||k?(0,i.t)(x,"home.fold.guaranteedReturn"):(0,i.t)(x,"home.fold.expectedLoss")})]})]}),(0,t.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-2.5 max-[380px]:grid-cols-1",children:[(0,t.jsxs)("div",{className:"rounded-lg border border-[rgba(127,233,218,0.16)] bg-black/20 px-3 py-2.5",children:[(0,t.jsx)("div",{className:"font-mono text-[0.63rem] uppercase tracking-[0.08em] text-[rgba(233,246,244,0.55)]",children:(0,i.t)(x,"home.fold.stakeOnA")}),(0,t.jsx)("div",{className:"mt-0.5 font-mono text-base font-bold text-white",children:j?m(j.stakes[0]):"--"}),(0,t.jsx)("div",{className:"font-mono text-[0.69rem] text-[rgba(233,246,244,0.62)]",children:j?(0,i.tf)(x,"home.fold.returnsAmount",{amount:m(j.returns[0])}):""})]}),(0,t.jsxs)("div",{className:"rounded-lg border border-[rgba(127,233,218,0.16)] bg-black/20 px-3 py-2.5",children:[(0,t.jsx)("div",{className:"font-mono text-[0.63rem] uppercase tracking-[0.08em] text-[rgba(233,246,244,0.55)]",children:(0,i.t)(x,"home.fold.stakeOnB")}),(0,t.jsx)("div",{className:"mt-0.5 font-mono text-base font-bold text-white",children:j?m(j.stakes[1]):"--"}),(0,t.jsx)("div",{className:"font-mono text-[0.69rem] text-[rgba(233,246,244,0.62)]",children:j?(0,i.tf)(x,"home.fold.returnsAmount",{amount:m(j.returns[1])}):""})]})]}),null!==j&&k&&e?(0,t.jsxs)("div",{className:"mt-3 flex flex-wrap items-center justify-between gap-2 rounded-lg border border-[rgba(74,222,128,0.3)] bg-black/15 px-3 py-2.5 transition-[opacity,translate] duration-200 ease-out starting:translate-y-1 starting:opacity-0",children:[(0,t.jsx)("span",{className:"text-[0.78rem] text-[rgba(233,246,244,0.78)]",children:(0,i.t)(x,"home.fold.handoffLead")}),(0,t.jsxs)(l.default,{href:e.href,rel:"nofollow sponsored noopener noreferrer",onClick:()=>
1(0,r.trackAffiliateClick)({brand:e.brand,href:e.href,placement:"home_calculator_result"}),className:"inline-flex min-h-[44px] items-center gap-1.5 rounded-full bg-[var(--secondary)] px-3.5 py-1.5 text-[0.78rem] font-bold !text-[var(--ink)] transition-[scale,background-color] duration-150 ease-out hover:bg-[#7fe9da] active:scale-[0.97]",children:[(0,i.tf)(x,"home.fold.handoffCta",{brand:e.brand}),(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",className:"h-3 w-3",children:[(0,t.jsx)("path",{d:"M7 17L17 7"}),(0,t.jsx)("path",{d:"M8 7h9v9"})]})]})]}):null,(0,t.jsxs)("div",{className:"mt-3 flex flex-wrap items-center justify-between gap-2 font-mono text-[0.69rem] text-[rgba(233,246,244,0.55)]",children:[(0,t.jsx)("span",{children:null===j?(0,i.t)(x,"home.fold.invalidHint"):k?(0,i.tf)(x,"home.fold.lockedProfit",{amount:m(j.profit)}):(0,i.tf)(x,"home.fold.marginAgainst",{amount:m(Math.abs(j.profit))})}),(0,t.jsxs)(l.default,{href:(0,d.localizedHref)((0,c.calculatorHref)("surebet-calculator"),x),className:"group inline-flex items-center gap-1.5 font-semibold text-[#7fe9da] transition-colors duration-150 ease-out hover:text-white",children:[(0,i.t)(x,"home.fold.fullCalculator"),(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",className:"h-3 w-3 transition-transform duration-150 ease-out group-hover:translate-x-0.5",children:[(0,t.jsx)("path",{d:"M5 12h14"}),(0,t.jsx)("path",{d:"M13 6l6 6-6 6"})]})]})]})]}),(0,t.jsx)(n,{})]})]})}],956393)},719207,e=>{"use strict";var t=e.i(34464),a=e.i(430878),l=e.i(504561),r=e.i(995356),s=e.i(141587),i=e.i(247094),n=e.i(472654);function o({href:e,brand:a,className:s,children:i}){return(0,t.jsx)(l.default,{href:e,rel:"nofollow sponsored noopener noreferrer",className:s,onClick:()=>(0,r.trackAffiliateClick)({brand:a,href:e,placement:"home_ranking"}),children:i})}e.s(["RankingSpotlight",0,function({tabs:e}){let r=(0,s.useLocale)(),[c,d]=(0,a.useState)(e[0]?.id),[m,u]=(0,a.useState)(!1),x=e.find(e=>e.id===c)??e[0];if(!x||0===x.items.length)return null;let[h,...p]=x.items,b=`transition-[opacity,translate] duration-200 ease-out ${m?"starting:translate-y-1 starting:opacity-0":""}`;return(0,t.jsxs)("section",{id:"fold-ranking","aria-label":(0,i.t)(r,"home.fold.rankingTitle"),className:"flex h-full min-w-0 flex-col overflow-hidden rounded-2xl border border-[var(--line)] bg-white shadow-[0_1px_2px_rgba(4,47,46,0.04),0_14px_40px_-18px_rgba(4,47,46,0.22)]",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b border-[var(--line)] px-5 pb-3 pt-4",children:[(0,t.jsx)("h2",{className:"text-[0.95rem] font-bold tracking-[-0.01em] text-[var(--ink)]",children:(0,i.t)(r,"home.fold.rankingTitle")}),(0,t.jsx)("span",{className:"whitespace-nowrap font-mono text-[0.69rem] text-[var(--muted)] max-[560px]:hidden",children:(0,i.t)(r,"home.fold.rankingMeta")})]}),(0,t.jsx)("div",{role:"tablist","aria-label":(0,i.t)(r,"home.fold.rankingTitle"),className:"flex gap-1 overflow-x-auto border-b border-[var(--line)] bg-[#fcfdfd] px-3 pt-2 [mask-image:linear-gradient(90deg,#000_88%,transparent)]",children:e.map((a,l)=>(0,t.jsx)("button",{type:"button",id:`ranking-tab-${a.id}`,role:"tab","aria-selected":a.id===x.id,"aria-controls":`ranking-panel-${a.id}`,tabIndex:a.id===x.id?0:-1,onClick:()=>{d(a.id),u(!0)},onKeyDown:t=>((t,a)=>{let l=a;if("ArrowRight"===t.key)l=(a+1)%e.length;else if("ArrowLeft"===t.key)l=(a-1+e.length)%e.length;else if("Home"===t.key)l=0;else{if("End"!==t.key)return;l=e.length-1}t.preventDefault(),d(e[l].id),u(!0),t.currentTarget.parentElement?.querySelectorAll('[role="tab"]')[l]?.focus()})(t,l),className:`min-h-[44px] whitespace-nowrap rounded-t-lg px-3 py-2 text-[0.8rem] font-semibold transition-[color,scale] duration-150 ease-out active:scale-[0.98] ${a.id===x.id?"border border-b-0 border-[var(--line)] bg-white text-[var(--accent-dark)]":"text-[var(--muted)] hover:text-[var(--ink)]"}`,children:(0,i.t)(r,a.labelKey)},a.id))}),(0,t.jsxs)("div",{id:`ranking-panel-${x.id}`,role:"tabpanel","aria-labelledby":`ranking-tab-${x.id}`,className:"flex flex-1 flex-col",children:[(0,t.jsxs)("div",{className:`grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-3.5 border-b border-[var(--line)] bg-[linear-gradient(180deg,var(--soft),#fff_78%)] px-5 py-4 max-[560px]:grid-cols-[40px_minmax(0,1fr)] ${b}
1`,children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"grid h-10 w-10 flex-none place-items-center rounded-xl bg-[linear-gradient(150deg,var(--accent),var(--accent-dark))] font-mono text-base font-bold text-white shadow-sm",children:"1"}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)(l.default,{href:(0,n.localizedHref)(h.reviewHref,r),className:"text-[1.05rem] font-bold tracking-[-0.01em] text-[var(--ink)] hover:text-[var(--accent-dark)]",children:h.brand}),(0,t.jsx)("span",{className:"rounded-full border border-[#fde0b8] bg-[#fff7ed] px-1.5 py-0.5 font-mono text-[0.56rem] font-semibold uppercase tracking-[0.1em] text-[var(--warning)]",children:(0,i.t)(r,"home.fold.editorsPick")})]}),h.blurb?(0,t.jsx)("p",{className:"mt-1 line-clamp-2 text-[0.82rem] leading-snug text-[#334155]",children:h.blurb}):null]}),(0,t.jsxs)("div",{className:"flex-none text-right max-[560px]:col-start-2 max-[560px]:flex max-[560px]:items-center max-[560px]:justify-between max-[560px]:text-left",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"font-mono text-xl font-bold leading-none tracking-[-0.02em] text-[var(--accent-dark)]",children:h.score}),(0,t.jsx)("span",{className:"font-mono text-[0.69rem] text-[var(--muted)]",children:" /10"})]}),h.visitHref?(0,t.jsxs)(o,{href:h.visitHref,brand:h.brand,className:"mt-2 inline-flex min-h-[44px] items-center gap-1.5 rounded-full bg-[var(--accent)] px-3.5 text-[0.78rem] font-semibold !text-white transition-[scale,background-color] duration-150 ease-out hover:bg-[var(--accent-dark)] active:scale-[0.97]",children:[(0,i.t)(r,"home.fold.visit"),(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",className:"h-3 w-3",children:[(0,t.jsx)("path",{d:"M7 17L17 7"}),(0,t.jsx)("path",{d:"M8 7h9v9"})]})]}):null]})]},`${x.id}-top`),(0,t.jsx)("div",{className:`flex flex-1 flex-col ${b}`,children:p.map(e=>(0,t.jsxs)("div",{className:"grid flex-1 grid-cols-[26px_1fr_auto_auto] items-center gap-3 border-t border-[var(--line)] px-5 py-2.5 transition-colors duration-150 ease-out first:border-t-0 hover:bg-[var(--soft)] max-[560px]:grid-cols-[18px_minmax(0,1fr)_auto_auto] max-[560px]:gap-2 max-[560px]:px-4",children:[(0,t.jsx)("span",{className:"text-center font-mono text-[0.8rem] font-semibold text-[var(--muted)]",children:e.rank}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)(l.default,{href:(0,n.localizedHref)(e.reviewHref,r),className:"text-[0.88rem] font-semibold tracking-[-0.01em] text-[var(--ink)] hover:text-[var(--accent-dark)]",children:e.brand}),e.blurb?(0,t.jsx)("span",{className:"mt-px block max-w-[32ch] truncate text-[0.74rem] leading-snug text-[var(--muted)]",children:e.blurb}):null]}),(0,t.jsx)("span",{className:"whitespace-nowrap rounded-lg border border-[#cdeee9] bg-[var(--soft)] px-2 py-0.5 font-mono text-[0.85rem] font-bold text-[var(--accent-dark)]",children:e.score}),e.visitHref?(0,t.jsx)(o,{href:e.visitHref,brand:e.brand,className:"inline-flex min-h-[44px] items-center whitespace-nowrap rounded-full border border-[#cdeee9] bg-[var(--soft)] px-3.5 text-[0.78rem] font-semibold text-[var(--accent-dark)] transition-[scale,background-color,color] duration-150 ease-out hover:bg-[var(--accent)] hover:!text-white active:scale-[0.97] max-[560px]:hidden",children:(0,i.t)(r,"home.fold.visit")}):(0,t.jsx)("span",{})]},e.rank))},`${x.id}-rows`)]}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2.5 border-t border-[var(--line)] bg-[#fcfdfd] px-5 py-3",children:[(0,t.jsxs)(l.default,{href:(0,n.localizedHref)(x.hubHref,r),className:"group inline-flex items-center gap-1.5 text-[0.82rem] font-semibold text-[var(--accent-dark)] hover:text-[var(--ink)]",children:[(0,i.t)(r,"home.fold.seeFullRanking"),(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",className:"h-3 w-3 transition-transform duration-150 ease-out group-hover:translate-x-0.5",children:[(0,t.jsx)("path",{d:"M5 12h14"}),(0,t.jsx)("path",{d:"M13 6l6 6-6 6"})]})]}),(0,t.jsx)("span",{className:"font-mono text-[0.63rem] text-[var(--muted)] max-[560px]:hidden",children:(0,i.t)(r,"home.fold.noPaidPlacements")})]})]})}])},961867,e=>{"use strict";var t=e.i(34464),a=e.i(430878),l=e.i(504561),r=e.i(995356),s=e.i(141587),i=e.i(247094);e.s(["StickyPickCta",0,function({brand:e,score:n,href:o}){let c=(0,s.useLocale)(),[d,m]=(0,a.useState)(!1);return d?null:(0,t.jsx)("div",{className:"fixed inset-x-0 bottom-0 z-40 border-t border-[var(--line)] bg-white/95 px-4 py-2.5 shadow-[0_-8px_30px_-12px_rgba(4,47,46,0.25)] backdrop-blur transition-transform duration-[400ms] ease-out starting:translate-y-full md:hidden",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-7xl items-center justify-between gap-2",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("span",{className:"block font-mono text-[0.6rem] font-semibold uppercase tracking-[0.1em] text-[var(--muted)]",children:[(0,i.t)(c,"home.fold.stickyTopPick")," · ",(0,i.t)(c,"home.fold.affiliateTag")]}),(0,t.jsxs)("span",{className:"block truncate text-sm font-bold text-[var(--ink)]",children:[e," ",(0,t.jsxs)("span",{className:"font-mono text-[var(--accent-dark)]",children:[n,"/10"]})]})]}),(0,t.jsxs)("div",{className:"flex flex-none items-center gap-1",children:[(0,t.jsx)(l.default,{href:o,rel:"nofollow sponsored noopener noreferrer",onClick:()=>
1(0,r.trackAffiliateClick)({brand:e,href:o,placement:"home_sticky_pick"}),className:"inline-flex min-h-[44px] items-center rounded-full bg-[var(--accent)] px-5 text-sm font-bold !text-white transition-[scale,background-color] duration-150 ease-out hover:bg-[var(--accent-dark)] active:scale-[0.97]",children:(0,i.t)(c,"home.fold.visit")}),(0,t.jsx)("button",{type:"button","aria-label":(0,i.t)(c,"home.fold.dismiss"),onClick:()=>m(!0),className:"grid h-11 w-11 flex-none place-items-center rounded-full text-[var(--muted)] transition-colors duration-150 ease-out hover:text-[var(--ink)]",children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",className:"h-4 w-4","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M6 6l12 12M18 6L6 18"})})})]})]})})}])},197637,e=>{"use strict";var t=e.i(34464),a=e.i(430878),l=e.i(141587),r=e.i(247094),s=e.i(699277);function i({title:e,description:a,children:n}){let o=(0,l.useLocale)();return(0,t.jsxs)("section",{className:"my-10 min-w-0 max-w-full overflow-hidden rounded-[2rem] border border-[var(--line)] bg-white shadow-sm",children:[(0,t.jsxs)("div",{className:"border-b border-[var(--line)] bg-[var(--soft)] px-6 py-5",children:[(0,t.jsx)("p",{className:"font-mono text-xs font-bold uppercase tracking-[0.16em] text-[var(--accent)]",children:(0,r.t)(o,"calculator.eyebrow")}),(0,t.jsx)("h2",{className:"mt-2 text-2xl font-semibold tracking-[-0.04em] text-[var(--ink)]",children:e}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-7 text-[var(--muted)]",children:(0,s.keepFinalWordsTogether)(a)})]}),(0,t.jsx)("div",{className:"min-w-0 p-6",children:n})]})}let n="mt-2 w-full min-h-[44px] rounded-xl border border-[var(--line)] bg-white px-3 py-2.5 text-[var(--ink)] shadow-sm outline-none transition focus:border-[var(--accent)] focus:ring-2 focus:ring-[var(--accent)]/20";function o({label:e,children:a,className:l}){return(0,t.jsxs)("label",{className:`block text-sm font-semibold text-[var(--ink)] ${l??""}`,children:[e,a]})}function c(e){return(0,t.jsx)("input",{className:n,...e})}function d(e){return(0,t.jsx)("select",{className:n,...e})}function m({label:e,checked:a,onChange:l}){return(0,t.jsxs)("label",{className:"flex min-h-[44px] cursor-pointer items-center gap-3 text-sm font-semibold text-[var(--ink)]",children:[(0,t.jsx)("input",{type:"checkbox",className:"h-5 w-5 rounded border-[var(--line)] text-[var(--accent)] focus:ring-[var(--accent)]",checked:a,onChange:e=>l(e.target.checked)}),e]})}function u({children:e}){return(0,t.jsx)("p",{className:"font-mono text-xs font-bold uppercase tracking-[0.14em] text-[var(--accent-dark)]",children:e})}function x({label:e,value:a,tone:l="neutral"}){return(0,t.jsxs)("div",{className:"rounded-2xl border border-[var(--line)] bg-[var(--soft)] px-4 py-3",children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.12em] text-[var(--muted)]",children:e}),(0,t.jsx)("p",{className:`mt-1 text-xl font-semibold tabular-nums tracking-tight ${"profit"===l?"text-emerald-700":"loss"===l?"text-red-700":"text-[var(--ink)]"}`,children:a})]})}function h({children:e,variant:a="secondary",...l}){return(0,t.jsx)("button",{type:"button",className:"primary"===a?"min-h-[44px] rounded-full bg-[var(--accent)] px-5 py-2.5 text-sm font-bold uppercase tracking-[0.12em] text-white shadow-sm transition active:scale-[0.97] hover:bg-[var(--accent-dark)]":"min-h-[44px] rounded-full border border-[var(--line)] bg-white px-5 py-2.5 text-sm font-semibold text-[var(--ink)] shadow-sm transition active:scale-[0.97] hover:bg-[var(--soft)]",...l,children:e})}function p({tabs:e,active:a,onChange:l}){return(0,t.jsx)("div",{role:"radiogroup","aria-label":e.map(e=>e.label).join(", "),className:"flex min-w-0 flex-wrap gap-2 rounded-2xl border border-[var(--line)] bg-[var(--soft)] p-1.5",children:e.map((r,s)=>{let i=r.id===a;return(0,t.jsx)("button",{type:"button",role:"radio","aria-checked":i,tabIndex:i?0:-1,onClick:()=>l(r.id),onKeyDown:t=>((t,a)=>{let r=a;if("ArrowRight"===t.key||"ArrowDown"===t.key)r=(a+1)%e.length;else if("ArrowLeft"===t.key||"ArrowUp"===t.key)r=(a-1+e.length)%e.length;else if("Home"===t.key)r=0;else{if("End"!==t.key)return;r=e.length-1}t.preventDefault(),l(e[r].id);let s=t.currentTarget.parentElement?.querySelectorAll('[role="radio"]');s?.[r]?.focus()})(t,s),className:i?"min-h-[44px] min-w-0 flex-1 basis-0 rounded-xl bg-[var(--accent)] px-3 py-2.5 text-sm font-bold text-white shadow-sm transition-[transform,background-color] duration-150 ease-[var(--ease-out)] active:scale-[0.97]":"min-h-[44px] min-w-0 flex-1 basis-0 rounded-xl px-3 py-2.5 text-sm font-semibold text-[var(--muted)] transition-[transform,color] duration-150 ease-[var(--ease-out)] hover:text-[var(--ink)] active:scale-[0.97]",children:r.label},r.id)})})}function b({label:e,value:a,compact:l=!1}){return l?(0,t.jsxs)("div",{className:"min-w-0 rounded-2xl border border-[var(--accent)]/30 bg-[var(--accent)]/5 px-3 py-3 sm:px-5 sm:py-4",children:[(0,t.jsx)("p",{className:"text-pretty text-xs font-semibold leading-4 text-[var(--ink)] sm:text-sm",children:e}),(0,t.jsx)("p",{className:"mt-1 text-xl font-bold tabular-nums tracking-tight text-[var(--accent-dark)] sm:text-2xl",children:a})]}):(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center justify-between gap-3 rounded-2xl border border-[var(--accent)]/30 bg-[var(--accent)]/5 px-5 py-4",children:[(0,t.jsx)("p",{className:"min-w-0 text-sm font-semibold text-[var(--ink)]",children:e}),(0,t.jsx)("p",{className:"shrink-0 text-2xl font-bold tabular-nums tracking-tight text-[var(--accent-dark)]",children:a})]})}function g({columns:e,rows:a}){return(0,t.jsx)("div",{className:"max-w-full overflow-x-auto rounded-2xl border border-[var(--line)]",children:(0,t.jsxs)("table",{className:`${e.length>3?"min-w-[42rem]":"min-w-full"} border-collapse text-sm`,children:[(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{className:"bg-[var(--accent)] text-white",children:e.map(e=>(0,t.jsx)("th",{scope:"col",className:`px-4 py-3 font-semibold uppercase tracking-[0.08em] ${"right"===e.align?"text-right":"text-left"}`,children:e.label},e.key))})}),(0,t.jsx)("tbody",{children:a.map((a,l)=>(0,t.jsx)("tr",{className:"border-t border-[var(--line)] odd:bg-white even:bg-[var(--soft)]/40",children:e.map(e=>{let l,r=a[e.key]??{value:"N/A"};return(0,t.jsx)("td",{className:`px-4 py-3 tabular-nums ${"right"===e.align?"text-right":"text-left"} ${"profit"===(l=r.tone)?"text-emerald-700 font-semibold":"loss"===l?"text-red-700 font-semibold":"text-[var(--ink)]"}`,children:r.value},e.key)})},l))})]})})}var f=e.i(843160);let v=[{odds:"2.10",commission:"0"},{odds:"2.05",commission:"0"}];function j(){let e=(0,l.useLocale)(),[s,n]=(0,a.useState)(2),[p,b]=(0,a.useState)(!1),[g,j]=(0,a.useState)("100"),[k,N]=(0,a.useState)("EUR"),[y,w]=(0,a.useState)(v),S=y.slice(0,s),C=(0,a.useMemo)(()=>{let e=Number(g),t=S.map(e=>{let t;return{odds:!Number.isFinite(t=Number(e.odds))||t<=1?null:t,commissionPct:Number(e.commission)}});return t.some(e=>null===e.odds)||t.some(e=>!Number.isFinite(e.commissionPct)||e.commissionPct<0)?null:(0,f.computeSurebetAdvanced)({totalStake:e,applyCommission:p,outcomes:t.map(e=>({odds:e.odds,commissionPct:e.commissionPct}))})},[S,p,g]),L=(e,t)=>{w(a=>a.map((a,l)=>l===e?{...a,...t}:a))},$=C?C.profitMarginPct>0?"profit":C.profitMarginPct<0?"loss":"neutral":"neutral";return(0,t.jsxs)(i,{title:(0,r.t)(e,"calculator.meta.surebet-calculator.title"),description:(0,r.t)(e,"calculator.meta.surebet-calculator.description"),children:[(0,t.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.numberOfOutcomes"),className:"lg:col-span-1",children:(0,t.jsx)(d,{value:String(s),onChange:e=>n(Number(e.target.value)),children:Array.from({length:9},(e,t)=>t+2).map(a=>(0,t.jsx)("option",{value:a,children:(0,r.tf)(e,"calculator.fields.outcomesCount",{n:a})},a))})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.surebet.totalStake"),className:"lg:col-span-1",children:(0,t.jsx)(c,{type:"number",min:"0.01",step:"0.01",value:g,onChange:e=>j(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.surebet.stakeCurrency"),className:"lg:col-span-1",children:(0,t.jsxs)(d,{value:k,onChange:e=>N(e.target.value),children:[(0,t.jsx)("option",{value:"EUR",children:"EUR (â¬)"}),(0,t.jsx)("option",{value:"GBP",children:"GBP (£)"}),(0,t.jsx)("option",{value:"USD",children:"USD ($)"})]})})]}),(0,t.jsx)("p",{className:"mt-3 text-sm leading-6 text-[var(--muted)]",children:(0,r.t)(e,"calculator.surebet.currencyNote")}),(0,t.jsx)("div",{className:"mt-6",children:(0,t.jsx)(m,{label:(0,r.t)(e,"calculator.surebet.includeCommission"),
1checked:p,onChange:b})}),(0,t.jsx)("div",{className:"mt-8 space-y-6",children:S.map((a,l)=>(0,t.jsxs)("div",{className:"rounded-2xl border border-[var(--line)] bg-[var(--soft)]/40 p-5",children:[(0,t.jsx)(u,{children:(0,r.tf)(e,"calculator.fields.outcomeNumbered",{n:l+1})}),(0,t.jsxs)("div",{className:"mt-4 grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.surebet.decimalOdds"),children:(0,t.jsx)(c,{type:"number",min:"1.01",step:"0.01",value:a.odds,onChange:e=>L(l,{odds:e.target.value})})}),p?(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.commissionPct"),children:(0,t.jsx)(c,{type:"number",min:"0",max:"99.9",step:"0.1",value:a.commission,onChange:e=>L(l,{commission:e.target.value})})}):null]})]},l))}),(0,t.jsxs)("div",{"aria-live":"polite","aria-atomic":"true",children:[(0,t.jsxs)("div",{className:"mt-8 grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)(x,{label:(0,r.t)(e,"calculator.surebet.impliedProbabilitySum"),value:C?`${C.impliedProbabilityPct.toFixed(2)}%`:"-",tone:C?.isArb?"profit":"loss"}),(0,t.jsx)(x,{label:(0,r.t)(e,"calculator.surebet.profitMargin"),value:C?`${C.profitMarginPct.toFixed(2)}%`:(0,r.t)(e,"calculator.surebet.enterValid"),tone:$}),(0,t.jsx)(x,{label:(0,r.t)(e,"calculator.surebet.modeledReturn"),value:C?`${f.CURRENCY_SYMBOL[k]}${C.equalReturn.toFixed(2)}`:"-",tone:$}),(0,t.jsx)(x,{label:(0,r.t)(e,"calculator.surebet.modeledProfit"),value:C?`${C.profit<0?"-":""}${f.CURRENCY_SYMBOL[k]}${Math.abs(C.profit).toFixed(2)}`:"-",tone:$})]}),C?(0,t.jsxs)("div",{className:"mt-6 rounded-2xl border border-[var(--line)] bg-white p-5",children:[(0,t.jsx)(u,{children:(0,r.t)(e,"calculator.surebet.recommendedStakes")}),(0,t.jsx)("ul",{className:"mt-4 space-y-3 text-sm leading-7 text-[var(--ink)]",children:C.outcomes.map((a,l)=>(0,t.jsxs)("li",{className:"flex flex-wrap items-baseline justify-between gap-2 border-b border-[var(--line)] pb-3 last:border-0 last:pb-0",children:[(0,t.jsx)("span",{className:"font-semibold",children:(0,r.tf)(e,"calculator.fields.outcomeNumbered",{n:l+1})}),(0,t.jsx)("span",{children:(0,r.tf)(e,"calculator.surebet.betLine",{amount:`${f.CURRENCY_SYMBOL[k]}${a.stake.toFixed(2)}`,odds:a.adjustedOdds.toFixed(2)})})]},l))}),C.isArb?(0,t.jsx)("p",{className:"mt-4 text-sm text-emerald-800",children:(0,r.t)(e,"calculator.surebet.isArb")}):(0,t.jsx)("p",{className:"mt-4 text-sm text-red-800",children:(0,r.t)(e,"calculator.surebet.notArb")})]}):null]}),y.length<10?(0,t.jsx)("div",{className:"mt-6",children:(0,t.jsx)(h,{variant:"secondary",onClick:()=>w(e=>[...e,{odds:"2.00",commission:"0"}]),children:(0,r.t)(e,"calculator.surebet.addOutcome")})}):null]})}function k(){let e=(0,l.useLocale)(),[s,n]=(0,a.useState)("qualifying"),[m,u]=(0,a.useState)("EUR"),[x,h]=(0,a.useState)("10"),[v,j]=(0,a.useState)("2.0"),[k,N]=(0,a.useState)("2.1"),[y,w]=(0,a.useState)("2.5"),S=[{id:"qualifying",label:(0,r.t)(e,"calculator.matched.tabQualifying")},{id:"snr",label:(0,r.t)(e,"calculator.matched.tabSnr")},{id:"sr",label:(0,r.t)(e,"calculator.matched.tabSr")}],C={qualifying:(0,r.t)(e,"calculator.matched.stakeQualifying"),snr:(0,r.t)(e,"calculator.matched.stakeFree"),sr:(0,r.t)(e,"calculator.matched.stakeFree")},L=(0,a.useMemo)(()=>(0,f.computeMatchedBet)({mode:s,stake:Number(x),backOdds:Number(v),layOdds:Number(k),commissionPct:Number(y)}),[s,x,v,k,y]),$=e=>e>.005?"profit":e<-.005?"loss":"neutral";return(0,t.jsxs)(i,{title:(0,r.t)(e,"calculator.meta.matched-betting.title"),description:(0,r.t)(e,"calculator.meta.matched-betting.description"),children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between",children:[(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(p,{tabs:S,active:s,onChange:e=>n(e)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.currency"),className:"sm:w-40",children:(0,t.jsxs)(d,{value:m,onChange:e=>u(e.target.value),children:[(0,t.jsx)("option",{value:"EUR",children:"⬠EUR"}),(0,t.jsx)("option",{value:"GBP",children:"£ GBP"}),(0,t.jsx)("option",{value:"USD",children:"$ USD"})]})})]}),(0,t.jsxs)("div",{className:"mt-6 grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)(o,{label:`${C[s]} (${f.CURRENCY_SYMBOL[m]})`,children:(0,t.jsx)(c,{type:"number",min:"0",step:"0.01",value:x,onChange:e=>h(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.backOddsDecimal"),children:(0,t.jsx)(c,{type:"number",min:"1.01",step:"0.01",value:v,onCh
1ange:e=>j(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.layOddsDecimal"),children:(0,t.jsx)(c,{type:"number",min:"1.01",step:"0.01",value:k,onChange:e=>N(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.matched.exchangeCommission"),children:(0,t.jsx)(c,{type:"number",min:"0",max:"99.9",step:"0.1",value:y,onChange:e=>w(e.target.value)})})]}),(0,t.jsx)("div",{className:"mt-8 space-y-4","aria-live":"polite","aria-atomic":"true",children:L?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b,{label:(0,r.t)(e,"calculator.matched.recommendedLayStake"),value:(0,f.formatMoney)(L.layStake,m)}),(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"rounded-2xl border border-[var(--line)] bg-[var(--soft)] px-4 py-3",children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.12em] text-[var(--muted)]",children:(0,r.t)(e,"calculator.matched.layLiability")}),(0,t.jsx)("p",{className:"mt-1 text-lg font-semibold text-[var(--ink)]",children:(0,f.formatMoney)(L.liability,m)})]}),(0,t.jsxs)("div",{className:"rounded-2xl border border-[var(--line)] bg-[var(--soft)] px-4 py-3",children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.12em] text-[var(--muted)]",children:(0,r.t)(e,"calculator.matched.guaranteedResult")}),(0,t.jsx)("p",{className:`mt-1 text-lg font-semibold ${"profit"===$(L.guaranteed)?"text-emerald-700":"loss"===$(L.guaranteed)?"text-red-700":"text-[var(--ink)]"}`,children:(0,f.formatMoney)(L.guaranteed,m)})]})]}),(0,t.jsx)(g,{columns:[{key:"outcome",label:(0,r.t)(e,"calculator.table.outcome")},{key:"profit",label:(0,r.t)(e,"calculator.matched.profitLoss"),align:"right"}],rows:[{outcome:{value:(0,r.t)(e,"calculator.matched.ifBackWins")},profit:{value:(0,f.formatMoney)(L.backWins,m),tone:$(L.backWins)}},{outcome:{value:(0,r.t)(e,"calculator.matched.ifLayWins")},profit:{value:(0,f.formatMoney)(L.layWins,m),tone:$(L.layWins)}}]})]}):(0,t.jsx)("p",{className:"rounded-2xl border border-[var(--line)] bg-[var(--soft)] px-4 py-4 text-sm text-[var(--muted)]",children:(0,r.t)(e,"calculator.matched.enterValid")})}),(0,t.jsxs)("div",{className:"mt-6 rounded-2xl border border-[var(--line)] bg-[var(--soft)]/40 p-5",children:[(0,t.jsx)("p",{className:"font-mono text-xs font-bold uppercase tracking-[0.14em] text-[var(--accent-dark)]",children:(0,r.t)(e,"calculator.matched.howItWorks")}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-7 text-[var(--muted)]",children:"qualifying"===s?(0,r.t)(e,"calculator.matched.explainQualifying"):"snr"===s?(0,r.t)(e,"calculator.matched.explainSnr"):(0,r.t)(e,"calculator.matched.explainSr")})]})]})}function N(){let e=(0,l.useLocale)(),[s,n]=(0,a.useState)("decimal"),[m,x]=(0,a.useState)(2),[h,p]=(0,a.useState)(["2.00","2.00","","","",""]),v={decimal:(0,r.t)(e,"calculator.vig.placeholderDecimal"),american:(0,r.t)(e,"calculator.vig.placeholderAmerican"),fractional:(0,r.t)(e,"calculator.vig.placeholderFractional")},j=(0,a.useMemo)(()=>{let e=h.slice(0,m).map(e=>(0,f.parseOddsToDecimal)(e,s));return e.some(e=>null===e)?null:(0,f.computeVig)(e)},[h,m,s]);return(0,t.jsxs)(i,{title:(0,r.t)(e,"calculator.meta.vig-calculator.title"),description:(0,r.t)(e,"calculator.meta.vig-calculator.description"),children:[(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.oddsFormat"),children:(0,t.jsxs)(d,{value:s,onChange:e=>n(e.target.value),children:[(0,t.jsx)("option",{value:"decimal",children:(0,r.t)(e,"calculator.fields.decimal")}),(0,t.jsx)("option",{value:"american",children:(0,r.t)(e,"calculator.fields.american")}),(0,t.jsx)("option",{value:"fractional",children:(0,r.t)(e,"calculator.fields.fractional")})]})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.numberOfOutcomes"),children:(0,t.jsx)(d,{value:String(m),onChange:e=>x(Number(e.target.value)),children:[2,3,4,5,6].map(a=>(0,t.jsx)("option",{value:a,children:(0,r.tf)(e,"calculator.fields.outcomesCount",{n:a})},a))})})]}),(0,t.jsx)("div",{className:"mt-6 grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:Array.from({length:m}).map((a,l)=>(0,t.jsx)(o,{label:(0,r.tf)(e,"calculator.vig.outcomeOdds",{n:l+1}),children:(0,t.jsx)(c,{type:"text",inputMode:"decimal",placeholder:v[s],value:h[l],onChange:e=>{let t;return t=e.target.value,p(e=>e.map((e,a)=>a===l?t:e))}})},l))}),(0,t.jsxs)("div",{className:"mt-8 space-y-4","aria-live":"polite",children:[(0,t.jsx)(b,{label:(0,r.t)(e,"calculator.vig.margin"),value:j?`${j.marginPct.toFixed(2)}%`:"-"}),j?(0,t.jsxs)("div",{children:[(0,t.jsx)(u,{children:(0,r.t)(e,"calculator.vig.fairPrices")}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)(g,{columns:[{key:"outcome",label:(0,r.t)(e,"calculator.table.outcome")},{key:"implied",label:(0,r.t)(e,"calculator.vig.colImplied"),align:"right"},{key:"fair",label:(0,r.t)(e,"calculator.vig.colFair"),align:"right"},{key:"odds",label:(0,r.t)(e,"calculator.vig.colFairOdds"),align:"right"}],rows:j.outcomes.map((t,a)=>({outcome:{value:(0,r.tf)(e,"calculator.fields.outcomeNumbered",{n:a+1})},implied:{value:`${t.impliedPct.toFixed(2)}%`},fair:{value:`${t.fairPct.toFixed(2)}%`}
1,odds:{value:(0,f.formatDecimalAs)(t.fairDecimal,s)}}))})})]}):(0,t.jsx)("p",{className:"text-sm text-[var(--muted)]",children:(0,r.t)(e,"calculator.vig.enterValid")})]})]})}function y(){let e=(0,l.useLocale)(),[s,n]=(0,a.useState)("decimal"),[d,m]=(0,a.useState)("2.00"),[u,h]=(0,a.useState)(""),[p,b]=(0,a.useState)(""),[g,v]=(0,a.useState)(""),j=(0,a.useMemo)(()=>{if("decimal"===s){let e=parseFloat(d);return Number.isFinite(e)&&e>1?e:null}if("american"===s){let e=parseFloat(u.replace(/^\+/,""));return(0,f.americanToDecimal)(e)}if("fractional"===s)return(0,f.fractionalToDecimal)(p);let e=parseFloat(g);return!Number.isFinite(e)||e<=0||e>=100?null:100/e},[s,d,u,p,g]),k=null!==j&&j>1,N=(e,t)=>{n(e),"decimal"===e&&m(t),"american"===e&&h(t),"fractional"===e&&b(t),"percent"===e&&v(t)},y=e=>k?"decimal"===e?j.toFixed(3):"american"===e?(0,f.decimalToAmerican)(j):"fractional"===e?(0,f.decimalToFractional)(j):`${(0,f.decimalToImpliedPct)(j).toFixed(2)}%`:"-";return(0,t.jsxs)(i,{title:(0,r.t)(e,"calculator.meta.odds-converter.title"),description:(0,r.t)(e,"calculator.meta.odds-converter.description"),children:[(0,t.jsx)("p",{className:"text-sm leading-7 text-[var(--muted)]",children:(0,r.t)(e,"calculator.oddsConverter.instruction")}),(0,t.jsxs)("div",{className:"mt-6 grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.decimal"),children:(0,t.jsx)(c,{type:"text",inputMode:"decimal",placeholder:"2.00",value:"decimal"===s?d:k?j.toFixed(3):"",onChange:e=>N("decimal",e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.american"),children:(0,t.jsx)(c,{type:"text",placeholder:"+100",value:"american"===s?u:k?(0,f.decimalToAmerican)(j):"",onChange:e=>N("american",e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.fractional"),children:(0,t.jsx)(c,{type:"text",placeholder:"1/1",value:"fractional"===s?p:k?(0,f.decimalToFractional)(j):"",onCh
1ange:e=>N("fractional",e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.oddsConverter.impliedProbability"),children:(0,t.jsx)(c,{type:"text",inputMode:"decimal",placeholder:"50",value:"percent"===s?g:k?(0,f.decimalToImpliedPct)(j).toFixed(2):"",onChange:e=>N("percent",e.target.value)})})]}),(0,t.jsxs)("div",{className:"mt-8 grid gap-3 sm:grid-cols-2 lg:grid-cols-4","aria-live":"polite",children:[(0,t.jsx)(x,{label:(0,r.t)(e,"calculator.fields.decimal"),value:y("decimal")}),(0,t.jsx)(x,{label:(0,r.t)(e,"calculator.fields.american"),value:y("american")}),(0,t.jsx)(x,{label:(0,r.t)(e,"calculator.fields.fractional"),value:y("fractional")}),(0,t.jsx)(x,{label:(0,r.t)(e,"calculator.oddsConverter.impliedShort"),value:y("percent")})]})]})}function w(){let e=(0,l.useLocale)(),[s,n]=(0,a.useState)("decimal"),[m,u]=(0,a.useState)("2"),[h,p]=(0,a.useState)("2.00"),[b,g]=(0,a.useState)("2.00"),{back:v,lay:j}=(0,a.useMemo)(()=>{let e=Number(m),t=(0,f.parseOddsToDecimal)(h,s),a=(0,f.parseOddsToDecimal)(b,s),l=null!==t?(0,f.effectiveBackOdds)(t,e):null,r=null!==a?(0,f.effectiveLayOdds)(a,e):null;return{back:null!==l?(0,f.formatDecimalAs)(l,s):"-",lay:null!==r?(0,f.formatDecimalAs)(r,s):"-"}},[m,h,b,s]);return(0,t.jsxs)(i,{title:(0,r.t)(e,"calculator.meta.betting-exchange-commission.title"),description:(0,r.t)(e,"calculator.meta.betting-exchange-commission.description"),children:[(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-3",children:[(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.oddsFormat"),children:(0,t.jsxs)(d,{value:s,onChange:e=>n(e.target.value),children:[(0,t.jsx)("option",{value:"decimal",children:(0,r.t)(e,"calculator.fields.decimal")}),(0,t.jsx)("option",{value:"american",children:(0,r.t)(e,"calculator.fields.american")}),(0,t.jsx)("option",{value:"fractional",children:(0,r.t)(e,"calculator.fields.fractional")})]})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.commissionPct"),children:(0,t.jsx)(c,{type:"number",min:"0",max:"99",step:"0.1",value:m,onChange:e=>u(e.target.value)})}),(0,t.jsx)("div",{className:"hidden sm:block"}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.backOdds"),children:(0,t.jsx)(c,{type:"text",inputMode:"decimal",value:h,onChange:e=>p(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.layOdds"),children:(0,t.jsx)(c,{type:"text",inputMode:"decimal",value:b,onChange:e=>g(e.target.value)})})]}),(0,t.jsxs)("div",{className:"mt-8 grid gap-3 sm:grid-cols-2","aria-live":"polite","aria-atomic":"true",children:[(0,t.jsx)(x,{label:(0,r.t)(e,"calculator.exchangeCommission.effBack"),value:v}),(0,t.jsx)(x,{label:(0,r.t)(e,"calculator.exchangeCommission.effLay"),value:j})]})]})}function S(){let e=(0,l.useLocale)(),[s,n]=(0,a.useState)("EUR"),[m,u]=(0,a.useState)("decimal"),[h,p]=(0,a.useState)("100"),[b,g]=(0,a.useState)("50"),[v,j]=(0,a.useState)("2.10"),k=(0,a.useMemo)(()=>{let e=(0,f.parseOddsToDecimal)(v,m);return null===e?null:(0,f.computeRoi)(Number(h),Number(b),e)},[h,b,v,m]);return(0,t.jsxs)(i,{title:(0,r.t)(e,"calculator.meta.betting-roi-calculator.title"),description:(0,r.t)(e,"calculator.meta.betting-roi-calculator.description"),children:[(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:[(0,t.jsx)(o,{label:`${(0,r.t)(e,"calculator.roi.stake")} (${f.CURRENCY_SYMBOL[s]})`,children:(0,t.jsx)(c,{type:"number",min:"0.01",step:"0.01",value:h,onChange:e=>p(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.roi.winProbability"),children:(0,t.jsx)(c,{type:"number",min:"0.1",max:"100",step:"0.1",value:b,onChange:e=>g(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.currency"),children:(0,t.jsxs)(d,{value:s,onChange:e=>n(e.target.value),children:[(0,t.jsx)("option",{value:"EUR",children:"⬠EUR"}),(0,t.jsx)("option",{value:"GBP",children:"£ GBP"}),(0,t.jsx)("option",{value:"USD",children:"$ USD"})]})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.roi.odds"),children:(0,t.jsx)(c,{type:"text",inputMode:"decimal",value:v,onChange:e=>j(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.oddsFormat"),children:(0,t.jsxs)(d,{value:m,onChange:e=>u(e.target.value),children:[(0,t.jsx)("option",{value:"decimal",children:(0,r.t)(e,"calculator.fields.decimal")}),(0,t.jsx)("option",{value:"american",children:(0,r.t)(e,"calculator.fields.american")}),(0,t.jsx)("option",{value:"fractional",children:(0,r.t)(e,"calculator.fields.fractional")})]})})]}),(0,t.jsxs)("div",{"aria-live":"polite",children:[(0,t.jsxs)("div",{className:"mt-8 grid gap-3 sm:grid-cols-2 lg:grid-cols-4",children:[(0,t.jsx)(x,{label:(0,r.t)(e,"calculator.fields.impliedProbability"),value:k?`${k.impliedPct.toFixed(2)}%`:"-"}),(0,t.jsx)(x,{label:(0,r.t)(e,"calculator.roi.potentialWinnings"),value:k?(0,f.formatMoney)(k.potentialWin,s):"-"}),(0,t.jsx)(x,{label:(0,r.t)(e,"calculator.roi.expectedReturn"),value:k?(0,f.formatMoney)(k.expectedReturn,s):"-",tone:k?k.expectedReturn>=0?"profit":"loss":"neutral"}),(0,t.jsx)(x,{label:(0,r.t)(e,"calculator.fields.roi"),value:k?`${k.roiPct.toFixed(2)}%`:"-",tone:k?k.roiPct>=0?"profit":"loss":"neutral"})]}),k?(0,t.jsx)("p",{className:"mt-6 text-sm leading-7 text-[var(--muted)]",children:k.expectedReturn>=0?(0,r.t)(e,"calculator.roi.positiveEv"):(0,r.t)(e,"calculator.roi.negativeEv")}):(0,t.jsx)("p",{className:"mt-6 text-sm text-[var(--muted)]",children:(0,r.t)(e,"calculator.roi.enterValid")})]})]})}function C(){let e=(0,l.useLocale)(),[s,n]=(0,a.useState)("EUR"),[m,u]=(0,a.useState)("100"),[p,b]=(0,a.useState)(["3.0","4.0"]),v=(0,a.useMemo)(()=>(0,f.computeDutching)(Number(m),p.map(e=>Number(e))),[m,p]);return(0,t.jsxs)(i,{title:(0,r.t)(e,"calculator.meta.dutching-calculator.title"),description:(0,r.t)(e,"calculator.meta.dutching-calculator.description"),children:[(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)(o,{label:`${(0,r.t)(e,"calculator.dutching.totalStake")} (${f.CURRENCY_SYMBOL[s]})`,children:(0,t.jsx)(c,{type:"number",min:"0.01",step:"0.01",value:m,onChange:e=>u(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.currency"),children:(0,t.jsxs)(d,{value:s,onChange:e=>n(e.target.value),children:[(0,t.jsx)("option",{value:"EUR",children:"⬠EUR"}),(0,t.jsx)("option",{value:"GBP",children:"£ GBP"}),(0,t.jsx)("option",{value:"USD",children:"$ USD"})]})})]}),(0,t.jsx)("div",{className:"mt-6 grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:p.map((a,l)=>(0,t.jsx)(o,{label:(0,r.tf)(e,"calculator.dutching.selectionOdds",{n:l+1}),children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(c,{type:"number",min:"1.01",step:"0.01",value:a,onChange:e=>{let t;return t=e.target.value,b(e=>e.map((e,a)=>a===l?t:e))}}),p.length>2?(0,t.jsx)("button",{type:"button","aria-label":(0,r.tf)(e,"calculator.dutching.removeSelection",{n:l+1}),onClick:()=>b(e=>e.filter((e,t)=>
1t!==l)),className:"mt-2 flex h-11 w-11 shrink-0 items-center justify-center rounded-xl border border-[var(--line)] text-[var(--muted)] transition hover:bg-[var(--soft)]",children:"Ã"}):null]})},l))}),p.length<10?(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsx)(h,{variant:"secondary",onClick:()=>b(e=>[...e,"2.00"]),children:(0,r.t)(e,"calculator.dutching.addSelection")})}):null,(0,t.jsxs)("div",{"aria-live":"polite","aria-atomic":"true",children:[(0,t.jsxs)("div",{className:"mt-8 grid gap-3 sm:grid-cols-3",children:[(0,t.jsx)(x,{label:(0,r.t)(e,"calculator.dutching.colReturn"),value:v?(0,f.formatMoney)(v.totalReturn,s):"N/A"}),(0,t.jsx)(x,{label:(0,r.t)(e,"calculator.dutching.profit"),value:v?(0,f.formatMoney)(v.profit,s):"N/A",tone:v?v.profit>=0?"profit":"loss":"neutral"}),(0,t.jsx)(x,{label:(0,r.t)(e,"calculator.fields.roi"),value:v?`${v.roiPct.toFixed(2)}%`:"N/A",tone:v?v.roiPct>=0?"profit":"loss":"neutral"})]}),v?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mt-6",children:(0,t.jsx)(g,{columns:[{key:"sel",label:(0,r.t)(e,"calculator.table.selection")},{key:"odds",label:(0,r.t)(e,"calculator.table.odds"),align:"right"},{key:"stake",label:(0,r.t)(e,"calculator.table.stake"),align:"right"},{key:"ret",label:(0,r.t)(e,"calculator.dutching.colReturn"),align:"right"}],rows:v.stakes.map((t,a)=>({sel:{value:(0,r.tf)(e,"calculator.fields.selectionNumbered",{n:a+1})},odds:{value:t.odds.toFixed(2)},stake:{value:(0,f.formatMoney)(t.stake,s)},ret:{value:(0,f.formatMoney)(t.returnIfWins,s)}}))})}),v.overround?(0,t.jsx)("p",{className:"mt-4 text-sm text-red-700",children:(0,r.t)(e,"calculator.dutching.overround")}):null]}):(0,t.jsx)("p",{className:"mt-6 text-sm text-[var(--muted)]",children:(0,r.t)(e,"calculator.dutching.enterValid")})]})]})}function L(){let e=(0,l.useLocale)(),[s,n]=(0,a.useState)("EUR"),[m,u]=(0,a.useState)("100"),[x,h]=(0,a.useState)("3.00"),[p,v]=(0,a.useState)("2.00"),j=(0,a.useMemo)(()=>(0,f.computeHedge)(Number(m),Number(x),Number(p)),[m,x,p]),k=e=>e>.005?"profit":e<-.005?"loss":"neutral";return(0,t.jsxs)(i,{title:(0,r.t)(e,"calculator.meta.hedge-calculator.title"),description:(0,r.t)(e,"calculator.meta.hedge-calculator.description"),children:[(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[(0,t.jsx)(o,{label:`${(0,r.t)(e,"calculator.hedge.originalStake")} (${f.CURRENCY_SYMBOL[s]})`,children:(0,t.jsx)(c,{type:"number",min:"0.01",step:"0.01",value:m,onChange:e=>u(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.hedge.originalOdds"),children:(0,t.jsx)(c,{type:"number",min:"1.01",step:"0.01",value:x,onChange:e=>h(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.hedge.hedgeOdds"),children:(0,t.jsx)(c,{type:"number",min:"1.01",step:"0.01",value:p,onChange:e=>v(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.currency"),children:(0,t.jsxs)(d,{value:s,onChange:e=>n(e.target.value),children:[(0,t.jsx)("option",{value:"EUR",children:"⬠EUR"}),(0,t.jsx)("option",{value:"GBP",children:"£ GBP"}),(0,t.jsx)("option",{value:"USD",children:"$ USD"})]})})]}),j?(0,t.jsxs)("div",{className:"mt-8 space-y-4","aria-live":"polite","aria-atomic":"true",children:[(0,t.jsx)(b,{label:(0,r.t)(e,"calculator.hedge.hedgeStake"),value:(0,f.formatMoney)(j.hedgeStake,s)}),(0,t.jsx)(g,{columns:[{key:"outcome",label:(0,r.t)(e,"calculator.table.outcome")},{key:"profit",label:(0,r.t)(e,"calculator.hedge.netProfitLoss"),align:"right"}],rows:[{outcome:{value:(0,r.t)(e,"calculator.hedge.originalWins")},profit:{value:(0,f.formatMoney)(j.originalWins,s),tone:k(j.originalWins)}},{outcome:{value:(0,r.t)(e,"calculator.hedge.hedgeWins")},profit:{value:(0,f.formatMoney)(j.hedgeWins,s),tone:k(j.hedgeWins)}}]}),(0,t.jsx)("p",{className:"text-sm leading-7 text-[var(--muted)]",children:(0,r.t)(e,j.profit>=0?"calculator.hedge.profitMsg":"calculator.hedge.lossMsg")})]}):(0,t.jsx)("p",{className:"mt-6 text-sm text-[var(--muted)]",children:(0,r.t)(e,"calculator.hedge.enterValid")})]})}function $(){let e=(0,l.useLocale)(),[s,n]=(0,a.useState)("2.00"),[d,m]=(0,a.useState)("2"),{backOdds:u,implied:h,isValid:p}=(0,a.useMemo)(()=>{let e=(0,f.layToBackOdds)(Number(s),Number(d));return{backOdds:null!==e?e.toFixed(3):"-",implied:null!==e?`${(0,f.decimalToImpliedPct)(e).toFixed(2)}%`:"-",isValid:null!==e}},[s,d]);return(0,t.jsxs)(i,{title:(0,r.t)(e,"calculator.meta.lay-to-back.title"),description:(0,r.t)(e,"calculator.meta.lay-to-back.description"),children:[(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.layOddsDecimal"),children:(0,t.jsx)(c,{type:"number",min:"1.01",step:"0.01",value:s,onChange:e=>n(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.commissionPct"),children:(0,t.jsx)(c,{type:"number",min:"0",max:"99",step:"0.1",value:d,onChange:e=>m(e.target.value)})})]}),(0,t.jsxs)("div",{className:"mt-8 grid gap-3 sm:grid-cols-2","aria-live":"polite","aria-atomic":"true",children:[(0,t.jsx)(x,{label:(0,r.t)(e,"calculator.layToBack.equivalentBackOdds"),value:p?u:(0,r.t)(e,"calculator.layToBack.enterValid")}),(0,t.jsx)(x,{label:(0,r.t)(e,"calculator.fields.impliedProbability"),value:h})]}),(0,t.jsx)("p",{className:"mt-6 text-sm leading-7 text-[var(--muted)]",children:(0,r.t)(e,"calculator.layToBack.note")})]})}let B=[{layOdds:"2.1",layCommission:"2"},{layOdds:"2.1",layCommission:"2"}];function M(){let e=(0,l.useLocale)(),[s,n]=(0,a.useState)("standard"),[d,m]=(0,a.useState)("10"),[x,b]=(0,a.useState)("2.0"),[v,j]=(0,a.useState)("0"),[k,N]=(0,a.useState)(B),y=[{id:"standard",label:(0,r.t)(e,"calculator.sequentialLay.tabStandard")},{id:"lockIn",label:(0,r.t)(e,"calculator.sequentialLay.tabLockIn")}],w=(e,t)=>N(a=>a.map((a,l)=>l===e?{...a,...t}:a)),S=(0,a.useMemo)(()=>{let e=k.map(e=>({layOdds:Number(e.layOdds),layCommissionPct:Number(e.layCommission)}));return(0,f.computeSequentialLay)(Number(d),Number(x),Number(v),e,s)},[k,d,x,v,s]),C=e=>`\xa3${e.toFixed(2)}`;return(0,t.jsxs)(i,{title:(0,r.t)(e,"calculator.meta.sequential-lay.title"),description:(0,r.t)(e,"calculator.meta.sequential-lay.description"),children:[(0,t.jsx)(p,{tabs:y,active:s,onChange:e=>n(e)}),(0,t.jsxs)("div",{className:"mt-6",children:[(0,t.jsx)(u,{children:(0,r.t)(e,"calculator.sequentialLay.backBet")}),(0,t.jsxs)("div",{className:"mt-4 grid gap-4 sm:grid-cols-3",children:[(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.sequentialLay.backStake"),children:(0,t.jsx)(c,{type:"number",min:"0.01",step:"0.01",value:d,onChange:e=>m(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.sequentialLay.totalBackOdds"),children:(0,t.jsx)(c,{type:"number",min:"1.01",step:"0.01",value:x,onChange:e=>b(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.sequentialLay.backCommission"),
1children:(0,t.jsx)(c,{type:"number",min:"0",max:"99.99",step:"0.1",value:v,onChange:e=>j(e.target.value)})})]})]}),(0,t.jsx)("div",{className:"mt-8 space-y-5",children:k.map((a,l)=>(0,t.jsxs)("div",{className:"rounded-2xl border border-[var(--line)] bg-[var(--soft)]/40 p-5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(u,{children:(0,r.tf)(e,"calculator.sequentialLay.legLayBet",{n:l+1})}),k.length>2?(0,t.jsx)("button",{type:"button","aria-label":`${(0,r.t)(e,"calculator.sequentialLay.remove")} ${l+1}`,onClick:()=>N(e=>e.filter((e,t)=>t!==l)),className:"min-h-[44px] px-2 text-sm font-semibold text-[var(--muted)] transition hover:text-red-700",children:(0,r.t)(e,"calculator.sequentialLay.remove")}):null]}),(0,t.jsxs)("div",{className:"mt-4 grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.layOddsDecimal"),children:(0,t.jsx)(c,{type:"number",min:"1.01",step:"0.01",value:a.layOdds,onChange:e=>w(l,{layOdds:e.target.value})})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.sequentialLay.layCommission"),children:(0,t.jsx)(c,{type:"number",min:"0",max:"99.99",step:"0.1",value:a.layCommission,onChange:e=>w(l,{layCommission:e.target.value})})})]}),S?(0,t.jsxs)("div",{className:"mt-4 flex items-center justify-between rounded-xl border border-[var(--line)] bg-white px-4 py-3",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-[var(--ink)]",children:(0,r.tf)(e,"calculator.sequentialLay.layStakeRequired",{n:l+1})}),(0,t.jsx)("span",{className:"text-lg font-bold text-[var(--accent-dark)]",children:C(S.legs[l]?.layStake??0)})]}):null]},l))}),k.length<8?(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsx)(h,{variant:"secondary",onClick:()=>N(e=>[...e,{layOdds:"2.1",layCommission:"2"}]),children:(0,r.t)(e,"calculator.sequentialLay.addLeg")})}):null,(0,t.jsx)("div",{"aria-live":"polite","aria-atomic":"true",children:S?(0,t.jsxs)("div",{className:"mt-8",children:[(0,t.jsx)(u,{children:(0,r.t)(e,"calculator.sequentialLay.outcomes")}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)(g,{columns:[{key:"scenario",label:(0,r.t)(e,"calculator.table.scenario")},{key:"bookie",label:(0,r.t)(e,"calculator.table.bookmaker"),align:"right"},{key:"exchange",label:(0,r.t)(e,"calculator.table.exchange"),align:"right"},{key:"total",label:(0,r.t)(e,"calculator.table.total"),align:"right"}],rows:S.scenarios.map((t,a)=>{let l;return{scenario:{value:S&&a<S.legs.length?(0,r.tf)(e,"calculator.table.legLoses",{n:a+1}):(0,r.t)(e,"calculator.table.allLegsWin")},bookie:{value:C(t.bookie)},exchange:{value:C(t.exchange)},total:{value:C(t.total),tone:(l=t.total)>.005?"profit":l<-.005?"loss":"neutral"}}})})})]}):(0,t.jsx)("p",{className:"mt-6 text-sm text-[var(--muted)]",children:(0,r.t)(e,"calculator.sequentialLay.enterValid")})})]})}function P(){let e=(0,l.useLocale)(),[s,n]=(0,a.useState)("GBP"),[x,h]=(0,a.useState)("100"),[p,v]=(0,a.useState)("4.0"),[j,k]=(0,a.useState)("4.2"),[N,y]=(0,a.useState)("2"),[w,S]=(0,a.useState)(!1),[C,L]=(0,a.useState)("2.0"),$=(0,a.useMemo)(()=>(0,f.computeEarlyPayout)({backStake:Number(x),backOdds:Number(p),layOdds:Number(j),commissionPct:Number(N),earlyPayout:w,exchangeBackOdds:Number(C)}),[x,p,j,N,w,C]);return(0,t.jsxs)(i,{title:(0,r.t)(e,"calculator.meta.early-payout.title"),description:(0,r.t)(e,"calculator.meta.early-payout.description"),children:[(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:[(0,t.jsx)(o,{label:`${(0,r.t)(e,"calculator.earlyPayout.backStake")} (${f.CURRENCY_SYMBOL[s]})`,children:(0,t.jsx)(c,{type:"number",min:"0.01",step:"0.01",value:x,onChange:e=>h(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.backOddsDecimal"),children:(0,t.jsx)(c,{type:"number",min:"1.01",step:"0.01",value:p,onChange:e=>v(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.layOddsDecimal"),children:(0,t.jsx)(c,{type:"number",min:"1.01",step:"0.01",value:j,onChange:e=>k(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.commissionPct"),children:(0,t.jsx)(c,{type:"number",min:"0",max:"99.99",step:"0.1",value:N,onChange:e=>y(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.currency"),children:(0,t.jsxs)(d,{value:s,onChange:e=>n(e.target.value),children:[(0,t.jsx)("option",{value:"EUR",children:"⬠EUR"}),(0,t.jsx)("option",{value:"GBP",children:"£ GBP"}),(0,t.jsx)("option",{value:"USD",children:"$ USD"})]})})]}),(0,t.jsxs)("div",{className:"mt-6 rounded-2xl border border-[var(--line)] bg-[var(--soft)]/40 p-5",children:[(0,t.jsx)(m,{label:(0,r.t)(e,"calculator.earlyPayout.triggered"),checked:w,onChange:S}),w?(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.earlyPayout.currentExchangeBackOdds"),children:(0,t.jsx)(c,{type:"number",min:"1.01",step:"0.01",value:C,onChange:e=>L(e.target.value)})})}):null]}),$?(0,t.jsxs)("div",{className:"mt-8 space-y-4","aria-live":"polite","aria-atomic":"true",children:[(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,t.jsx)(b,{label:(0,r.t)(e,"calculator.earlyPayout.layStake"),value:(0,f.formatMoney)($.layStake,s)}),(0,t.jsx)(b,{label:(0,r.t)(e,"calculator.earlyPayout.layLiability"),value:(0,f.formatMoney)($.liability,s)})]}),void 0!==$.lockInBackStake?(0,t.jsx)(b,{label:(0,r.t)(e,"calculator.earlyPayout.recommendedBackStake"),value:(0,f.formatMoney)($.lockInBackStake,s)}):null,(0,t.jsxs)("div",{children:[(0,t.jsx)(u,{children:(0,r.t)(e,"calculator.earlyPayout.profitByOutcome")}
1),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)(g,{columns:[{key:"scenario",label:(0,r.t)(e,"calculator.table.scenario")},{key:"bookie",label:(0,r.t)(e,"calculator.table.bookmaker"),align:"right"},{key:"exchange",label:(0,r.t)(e,"calculator.table.exchange"),align:"right"},{key:"total",label:(0,r.t)(e,"calculator.table.total"),align:"right"}],rows:$.scenarios.map((t,a)=>{let l;return{scenario:{value:0===a?(0,r.t)(e,"calculator.table.selectionWins"):(0,r.t)(e,"calculator.table.selectionLoses")},bookie:{value:(0,f.formatMoney)(t.bookie,s)},exchange:{value:(0,f.formatMoney)(t.exchange,s)},total:{value:(0,f.formatMoney)(t.total,s),tone:(l=t.total)>.005?"profit":l<-.005?"loss":"neutral"}}})})})]})]}):(0,t.jsx)("p",{className:"mt-6 text-sm text-[var(--muted)]","aria-live":"polite",children:(0,r.t)(e,"calculator.earlyPayout.enterValid")})]})}let _=["USD","EUR","GBP","INR","BRL","NOK","SEK"];function R(){let e=(0,l.useLocale)(),[s,n]=(0,a.useState)("Non VIP"),[c,m]=(0,a.useState)(0),[u,x]=(0,a.useState)("USD"),h=(0,a.useMemo)(()=>(0,f.computeStakeVipRank)(s,c),[s,c]);return(0,t.jsxs)(i,{title:(0,r.t)(e,"calculator.meta.stake-vip-rank.title"),description:(0,r.t)(e,"calculator.meta.stake-vip-rank.description"),children:[(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.stakeVip.currentRank"),children:(0,t.jsx)(d,{value:s,onChange:e=>n(e.target.value),children:f.STAKE_RANKS.map(e=>(0,t.jsx)("option",{value:e.name,children:e.name},e.name))})}),(0,t.jsx)(o,{label:(0,r.t)(e,"calculator.fields.currency"),children:(0,t.jsx)(d,{value:u,onChange:e=>x(e.target.value),children:_.map(e=>(0,t.jsx)("option",{value:e,children:e},e))})})]}),(0,t.jsxs)("div",{className:"mt-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("label",{htmlFor:"vip-progress",className:"text-sm font-semibold text-[var(--ink)]",children:(0,r.t)(e,"calculator.stakeVip.progress")}),(0,t.jsxs)("span",{className:"text-sm font-bold text-[var(--accent-dark)]",children:[c.toFixed(0),"%"]})]}),(0,t.jsx)("input",{id:"vip-progress",type:"range",min:0,max:100,step:1,value:c,onChange:e=>m(Number(e.target.value)),className:"mt-3 w-full accent-[var(--accent)]"})]}),(0,t.jsxs)("div",{className:"mt-8 overflow-hidden rounded-[1.75rem] border border-[var(--ink)] bg-[var(--ink)] bg-grid-ink px-6 py-7 sm:px-8",children:[(0,t.jsxs)("div",{"aria-live":"polite","aria-atomic":"true",children:[(0,t.jsx)("p",{className:"font-mono text-[0.7rem] font-bold uppercase tracking-[0.18em] text-[#7fe9da]/70",children:h.isMaxRank?(0,r.t)(e,"calculator.stakeVip.atTop"):(0,r.tf)(e,"calculator.stakeVip.remainingTo",{rank:h.nextRank})}),h.isMaxRank?(0,t.jsx)("p",{className:"stake-figure mt-3 font-mono text-2xl font-bold tracking-[-0.02em] text-[#7fe9da] sm:text-3xl",children:(0,r.t)(e,"calculator.stakeVip.atTop")}):(0,t.jsxs)("div",{className:"mt-4 grid grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{className:"rounded-xl border border-[#7fe9da]/15 bg-white/[0.03] px-4 py-3",children:[(0,t.jsx)("p",{className:"font-mono text-[0.65rem] uppercase tracking-[0.12em] text-[#7fe9da]/55",children:(0,r.t)(e,"calculator.stakeVip.sportsRemaining")}),(0,t.jsx)("p",{className:"stake-figure mt-1 font-mono text-2xl font-bold tabular-nums text-[#7fe9da] sm:text-3xl",children:(0,f.fmtStakeCurrency)(h.sportsRemaining,u)},`s-${s}-${c}-${u}`)]}),(0,t.jsxs)("div",{className:"rounded-xl border border-[#7fe9da]/15 bg-white/[0.03] px-4 py-3",children:[(0,t.jsx)("p",{className:"font-mono text-[0.65rem] uppercase tracking-[0.12em] text-[#7fe9da]/55",children:(0,r.t)(e,"calculator.stakeVip.casinoRemaining")}),(0,t.jsx)("p",{className:"stake-figure mt-1 font-mono text-2xl font-bold tabular-nums text-[#7fe9da] sm:text-3xl",children:(0,f.fmtStakeCurrency)(h.casinoRemaining,u)},`c-${s}-${c}-${u}`)]})]})]}),(0,t.jsxs)("a",{href:"https://stake.com/?c=SBXWC26",target:"_blank",rel:"sponsored noopener noreferrer",className:"mt-6 flex min-h-[48px] items-center justify-center gap-2 rounded-full bg-[var(--accent)] px-6 text-sm font-bold uppercase tracking-[0.1em] text-white shadow-sm transition-[transform,background-color] duration-150 ease-[var(--ease-out)] hover:bg-[#13b8a6] active:scale-[0.98] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#7fe9da]",children:[(0,r.t)(e,"calculator.stakeBonus.cta"),(0,t.jsx)("span",{"aria-hidden":"true",children:"â"})]}),(0,t.jsx)("p",{className:"mt-3 text-center text-[0.7rem] leading-5 text-[#7fe9da]/45",children:(0,r.t)(e,"calculator.stakeBonus.ctaNote")})]}),(0,t.jsx)("p",{className:"mt-4 max-w-2xl text-xs leading-6 text-[var(--muted)]",children:(0,r.t)(e,"calculator.stakeVip.note")})]})}let O=["USD","INR","EUR","GBP","BRL","NOK","SEK"];function F({variant:e}){let s=(0,l.useLocale)(),[n,m]=(0,a.useState)("10000"),[u,x]=(0,a.useState)("Bronze"),[h,b]=(0,a.useState)("sports"),[g,v]=(0,a.useState)("loss"),[j,k]=(0,a.useState)("USD"),N=[{id:"sports",label:(0,r.t)(s,"calculator.stakeBonus.tabSports")},{id:"casino",label:(0,r.t)(s,"calculator.stakeBonus.tabCasino")}],y=[{id:"loss",label:(0,r.t)(s,"calculator.stakeBonus.tabNetLoss")},{id:"win",label:(0,r.t)(s,"calculator.stakeBonus.tabNetWin")}],w=(0,a.useMemo)(()=>(0,f.computeStakeBonus)({wager:Number(n),vipLevel:u,product:h,winLoss:g,monthly:"monthly"===e}),[n,u,h,g,e]);return(0,t.jsxs)(i,{title:(0,r.t)(s,`calculator.meta.stake-${e}-bonus.title`),description:(0,r.t)(s,`calculator.meta.stake-${e}-bonus.description`),children:[(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)(o,{label:(0,r.t)(s,"calculator.stakeBonus.wagerAmount"),children:(0,t.jsx)(c,{type:"number",min:"0",step:"100",value:n,onChange:e=>m(e.target.value)})}),(0,t.jsx)(o,{label:(0,r.t)(s,"calculator.stakeBonus.vipLevel"),children:(0,t.jsx)(d,{value:u,onChange:e=>x(e.target.value),children:f.STAKE_BONUS_LEVELS.map(e=>(0,t.jsx)("option",{value:e.name,children:e.name},e.name))})}),(0,t.jsx)(o,{label:(0,r.t)(s,"calculator.fields.currency"),children:(0,t.jsx)(d,{value:j,onChange:e=>k(e.target.value),children:O.map(e=>(0,t.jsx)("option",{value:e,children:e},e))})})]}),(0,t.jsxs)("div",{className:"mt-6 grid gap-5 sm:grid-cols-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-2 text-sm font-semibold text-[var(--ink)]",children:(0,r.t)(s,"calculator.stakeBonus.product")}),(0,t.jsx)(p,{tabs:N,active:h,onChange:e=>b(e)})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-2 text-sm font-semibold text-[var(--ink)]",children:(0,r.t)(s,"calculator.stakeBonus.outcome")}
1),(0,t.jsx)(p,{tabs:y,active:g,onChange:e=>v(e)})]})]}),(0,t.jsxs)("div",{className:"mt-8 overflow-hidden rounded-[1.75rem] border border-[var(--ink)] bg-[var(--ink)] bg-grid-ink px-6 py-7 sm:px-8",children:[(0,t.jsxs)("div",{"aria-live":"polite","aria-atomic":"true",children:[(0,t.jsx)("p",{className:"font-mono text-[0.7rem] font-bold uppercase tracking-[0.18em] text-[#7fe9da]/70",children:"weekly"===e?(0,r.t)(s,"calculator.stakeBonus.expectedWeekly"):(0,r.t)(s,"calculator.stakeBonus.expectedMonthly")}),(0,t.jsx)("p",{className:"stake-figure mt-2 font-mono text-5xl font-bold tabular-nums tracking-[-0.02em] text-[#7fe9da] sm:text-6xl",children:(0,f.fmtStakeCurrency)(w.expected,j)},`${u}-${h}-${g}-${j}`),(0,t.jsxs)("div",{className:"mt-6 grid grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{className:"rounded-xl border border-[#7fe9da]/15 bg-white/[0.03] px-4 py-3",children:[(0,t.jsx)("p",{className:"font-mono text-[0.65rem] uppercase tracking-[0.12em] text-[#7fe9da]/55",children:(0,r.t)(s,"calculator.stakeBonus.min")}),(0,t.jsx)("p",{className:"mt-1 font-mono text-lg font-semibold tabular-nums text-[#7fe9da]/85",children:(0,f.fmtStakeCurrency)(w.min,j)})]}),(0,t.jsxs)("div",{className:"rounded-xl border border-[#7fe9da]/15 bg-white/[0.03] px-4 py-3",children:[(0,t.jsx)("p",{className:"font-mono text-[0.65rem] uppercase tracking-[0.12em] text-[#7fe9da]/55",children:(0,r.t)(s,"calculator.stakeBonus.max")}),(0,t.jsx)("p",{className:"mt-1 font-mono text-lg font-semibold tabular-nums text-[#7fe9da]/85",children:(0,f.fmtStakeCurrency)(w.max,j)})]})]})]}),(0,t.jsxs)("a",{href:"https://stake.com/?c=SBXWC26",target:"_blank",rel:"sponsored noopener noreferrer",className:"mt-6 flex min-h-[48px] items-center justify-center gap-2 rounded-full bg-[var(--accent)] px-6 text-sm font-bold uppercase tracking-[0.1em] text-white shadow-sm transition-[transform,background-color] duration-150 ease-[var(--ease-out)] hover:bg-[#13b8a6] active:scale-[0.98] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#7fe9da]",children:[(0,r.t)(s,"calculator.stakeBonus.cta"),(0,t.jsx)("span",{"aria-hidden":"true",children:"â"})]}),(0,t.jsx)("p",{className:"mt-3 text-center text-[0.7rem] leading-5 text-[#7fe9da]/45",children:(0,r.t)(s,"calculator.stakeBonus.ctaNote")})]}),(0,t.jsx)("p",{className:"mt-4 max-w-2xl text-xs leading-6 text-[var(--muted)]",children:"weekly"===e?(0,r.t)(s,"calculator.stakeBonus.noteWeekly"):(0,r.t)(s,"calculator.stakeBonus.noteMonthly")})]})}function U({config:e}){let a=(0,l.useLocale)(),i=(0,r.t)(a,`calculator.meta.${e.id}.title`),n=(0,r.t)(a,`calculator.meta.${e.id}.description`);return(0,t.jsxs)("section",{className:"my-10 overflow-hidden rounded-[2rem] border border-[var(--line)] bg-white shadow-sm",children:[(0,t.jsxs)("div",{className:"border-b border-[var(--line)] bg-[var(--soft)] px-6 py-5",children:[(0,t.jsx)("p",{className:"font-mono text-xs font-bold uppercase tracking-[0.16em] text-[var(--accent)]",children:(0,r.t)(a,"calculator.eyebrow")}),(0,t.jsx)("h2",{className:"mt-2 text-2xl font-semibold tracking-[-0.04em] text-[var(--ink)]",children:i}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-7 text-[var(--muted)]",children:(0,s.keepFinalWordsTogether)(n)})]}),(0,t.jsx)("iframe",{title:i,src:e.embedPath,className:"w-full border-0 bg-white",style:{minHeight:e.height},loading:"lazy"})]})}var A=e.i(892833),E=e.i(995356);function T({id:e,children:l}){let r=(0,a.useRef)(!1);function s(t){if(r.current)return;let a=t.target;("click"!==t.type||a.closest("button"))&&(r.current=!0,(0,E.trackEvent)("calculator_interaction",{calculator_id:e}))}return(0,t.jsx)("div",{onChangeCapture:s,onClickCapture:s,children:l})}function D({id:e}){switch(e){case"surebet-calculator":return(0,t.jsx)(j,{});case"matched-betting":return(0,t.jsx)(k,{});case"vig-calculator":return(0,t.jsx)(N,{});case"odds-converter":return(0,t.jsx)(y,{});case"betting-exchange-commission":return(0,t.jsx)(w,{});case"betting-roi-calculator":return(0,t.jsx)(S,{});case"dutching-calculator":return(0,t.jsx)(C,{});case"hedge-calculator":return(0,t.jsx)(L,{});case"lay-to-back":return(0,t.jsx)($,{});case"sequential-lay":return(0,t.jsx)(M,{});case"early-payout":return(0,t.jsx)(P,{});case"stake-vip-rank":return(0,t.jsx)(R,{});case"stake-weekly-bonus":return(0,t.jsx)(F,{variant:"weekly"});case"stake-monthly-bonus":return(0,t.jsx)(F,{variant:"monthly"});default:return null}}e.s(["CalculatorPanel",0,function({id:e}){if((0,A.hasNativeCalculator)(e)){let a=(0,t.jsx)(D,{id:e});if(a)return(0,t.jsx)(T,{id:e,children:a})}let a=(0,A.getCalculatorEmbed)(e);return a?(0,t.jsx)(U,{config:a}):null}],197637)},661353,e=>{"use strict";var t=e.i(34464),a=e.i(504561),l=e.i(892833),r=e.i(141587),s=e.i(247094),i=e.i(472654);e.s(["CalculatorsHub",0,function(){let e=(0,r.useLocale)();return(0,t.jsxs)("section",{children:[(0,t.jsx)("p",{className:"font-mono text-xs font-bold uppercase tracking-[0.16em] text-[var(--accent)]",children:(0,s.t)(e,"calculator.hub.eyebrow")}),(0,t.jsx)("h2",{className:"mt-3 text-3xl font-semibold tracking-[-0.05em]",children:(0,s.t)(e,"calculator.hub.heading")}),(0,t.jsx)("p",{className:"mt-3 max-w-2xl text-sm leading-7 text-[var(--muted)]",children:(0,s.t)(e,"calculator.hub.intro")}),(0,t.jsx)("div",{className:"mt-8 grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:l.CALCULATOR_EMBEDS.map(r=>{let n=(0,l.calculatorHref)(r.id);return(0,t.jsxs)("article",{className:"rounded-[1.75rem] border border-[var(--line)] bg-white p-6 shadow-sm transition hover:-translate-y-0.5 hover:shadow-md",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold tracking-tight text-[var(--ink)]",children:(0,s.t)(e,`calculator.meta.${r.id}.title`)}),(0,t.jsx)("p",{className:"mt-3 text-sm leading-6 text-[var(--muted)]",children:(0,s.t)(e,`calculator.meta.${r.id}.description`)}),(0,t.jsx)(a.default,{href:(0,i.localizedHref)(n,e),className:"btn-ink mt-5 inline-flex min-h-[44px] items-center rounded-full px-4 py-2 font-mono text-[0.65rem] font-bold uppercase tracking-[0.12em]",children:(0,s.t)(e,"calculator.hub.open")})]},r.id)})})]})}])},35875,e=>{"use strict";var t=e.i(34464),a=e.i(504561),l=e.i(892833),r=e.i(141587),s=e.i(247094),i=e.i(472654);e.s(["RelatedCalculators",0,function({currentId:e}){let n=(0,r.useLocale)(),o=l.CALCULATOR_EMBEDS.filter(t=>t.id!==e),c="en"===n&&e.startsWith("stake-");return 0===o.length?null:(0,t.jsxs)("section",{className:"mt-12 border-t border-[var(--line)] pt-8",children:[(0,t.jsx)("p",{className:"font-mono text-xs font-bold uppercase tracking-[0.16em] text-[var(--accent)]",children:(0,s.t)(n,"calculator.related.eyebrow")}),(0,t.jsx)("h2",{className:"mt-3 text-2xl font-semibold tracking-[-0.04em]",children:(0,s.t)(n,"calculator.related.heading")}),(0,t.jsxs)("div",{className:"mt-6 grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:[c?(0,t.jsxs)(a.default,{href:l.STAKE_V
1IP_HUB_PATH,className:"rounded-2xl border border-[var(--accent)] bg-[var(--surface)] p-4 text-sm font-medium transition hover:-translate-y-0.5 hover:shadow-md",children:[(0,t.jsx)("span",{className:"block text-pretty text-[var(--ink)]",children:"Compare all three Stake VIP calculators"}),(0,t.jsx)("span",{className:"mt-1 block text-pretty text-xs font-normal leading-5 text-[var(--muted)]",children:"Choose between VIP rank, weekly bonus and monthly bonus estimates."})]}):null,o.map(e=>(0,t.jsxs)(a.default,{href:(0,i.localizedHref)((0,l.calculatorHref)(e.id),n),className:"rounded-2xl border border-[var(--line)] bg-white p-4 text-sm font-medium transition hover:-translate-y-0.5 hover:shadow-md",children:[(0,t.jsx)("span",{className:"block text-[var(--ink)]",children:(0,s.t)(n,`calculator.meta.${e.id}.title`)}),(0,t.jsx)("span",{className:"mt-1 block text-xs font-normal leading-5 text-[var(--muted)]",children:(0,s.t)(n,`calculator.meta.${e.id}.description`)})]},e.id))]}),(0,t.jsx)(a.default,{href:(0,i.localizedHref)(l.CALCULATOR_HUB_PATH,n),className:"mt-6 inline-flex font-mono text-[0.65rem] font-bold uppercase tracking-[0.12em] text-[var(--accent)]",children:(0,s.t)(n,"calculator.related.viewAll")})]})}])}]);
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.