@simple-parlay/components 1.30.6-pre → 1.30.6-pre.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +349 -338
- package/dist/react/components/EntrySubmission.d.ts +1 -1
- package/dist/react/components/GameSelector.d.ts +1 -1
- package/dist/react/components/PlaceEntryProvider.d.ts +2 -2
- package/dist/react/components/SelectionReview.d.ts +1 -1
- package/dist/react/components/SportSelector.d.ts +15 -2
- package/dist/react/index.js +1 -1
- package/dist/react/index.mjs +349 -338
- package/dist/react-native/components/EntrySubmission.d.ts +1 -1
- package/dist/react-native/components/GameSelector.d.ts +1 -1
- package/dist/react-native/components/PlaceEntryProvider.d.ts +2 -2
- package/dist/react-native/components/SelectionReview.d.ts +1 -1
- package/dist/react-native/components/SportSelector.d.ts +6 -1
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.mjs +408 -397
- package/dist/shared/api-client.d.ts +2 -2
- package/dist/shared/game-icons.d.ts +1 -1
- package/dist/shared/hooks.d.ts +2 -2
- package/dist/shared/mirror.d.ts +50 -2
- package/dist/shared/picker-brand.d.ts +0 -6
- package/dist/shared/selection-actions.d.ts +6 -0
- package/dist/shared/selection-caps.d.ts +52 -0
- package/dist/shared/swipe-deck.d.ts +1 -1
- package/dist/shared/types.d.ts +14 -2
- package/dist/shared/utils.d.ts +4 -4
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,r=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;let s=require("react");var a,i;i=null!=(a=s)?e(r(a)):{},s=((e,r,s,a)=>{if(r&&"object"==typeof r||"function"==typeof r)for(var i,c=o(r),d=0,u=c.length;d<u;d++)i=c[d],l.call(e,i)||void 0===i||t(e,i,{get:(e=>r[e]).bind(null,i),enumerable:!(a=n(r,i))||a.enumerable});return e})(t(i,"default",{value:a,enumerable:!0}),a);let c=require("react/jsx-runtime"),d=require("react-dom");var u="#C9CDD2";function m(e){const t=e.trim();if(!t)return null;const n=t.split(/\t+|\s{2,}/).map(e=>e.trim()).filter(Boolean);if(n.length<3)return null;const o=n[n.length-1];return"YES"!==n[n.length-2].toUpperCase()||"NO"!==o.toUpperCase()?null:{question:n.slice(0,-2).join(" ")}}function p(e){return`<table class="props">\n${e.map(e=>{return`<tr><td class="q">${t=e.question,t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}</td><td class="yes">YES</td><td class="no">NO</td></tr>`;var t}).join("\n")}\n</table>`}var h='\n :root {\n --blue: #1F4E79;\n --ink: #1A1A1A;\n --grey: #5A5A5A;\n --green: #166534;\n --red: #991B1B;\n --fill-q: #F9FAFB;\n --fill-yes: #DCFCE7;\n --fill-no: #FEE2E2;\n --rule: #D0D7DE;\n }\n * { box-sizing: border-box; }\n html, body {\n margin: 0;\n padding: 0;\n background: #FFFFFF;\n color: var(--ink);\n font-family: "Aptos", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;\n font-size: 16px;\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n }\n .page {\n max-width: 720px;\n margin: 0 auto;\n padding: 32px 24px 56px;\n }\n p { margin: 0 0 14px; }\n\n .masthead { text-align: center; margin-bottom: 8px; }\n .kicker {\n color: var(--blue);\n font-weight: 700;\n letter-spacing: 0.16em;\n font-size: 15px;\n margin-bottom: 6px;\n }\n .logo {\n display: block;\n width: 280px;\n max-width: 72%;\n height: auto;\n margin: 0 auto 12px;\n }\n .headline {\n color: var(--ink);\n font-weight: 700;\n font-size: 34px;\n line-height: 1.15;\n margin: 0 0 4px;\n }\n .headline.lg { font-size: 44px; }\n .subhead {\n color: var(--grey);\n font-weight: 700;\n letter-spacing: 0.12em;\n font-size: 15px;\n margin-top: 6px;\n }\n .lede {\n color: var(--blue);\n font-style: italic;\n font-size: 20px;\n text-align: center;\n margin: 18px 0 22px;\n }\n .rule {\n border: 0;\n border-bottom: 2.5px solid var(--blue);\n margin: 14px 0 22px;\n }\n\n h2.cap {\n color: var(--blue);\n font-weight: 700;\n letter-spacing: 0.06em;\n font-size: 16px;\n text-transform: uppercase;\n margin: 30px 0 12px;\n }\n h3.sub {\n color: var(--ink);\n font-weight: 700;\n font-size: 18px;\n margin: 26px 0 10px;\n }\n\n .step {\n font-weight: 700;\n font-size: 18px;\n margin: 22px 0 8px;\n }\n .step .num { color: var(--blue); }\n .step .label { color: var(--ink); }\n\n .props {\n width: 100%;\n border-collapse: collapse;\n margin: 8px 0 18px;\n }\n .props td {\n border: 1px solid #C9CDD2;\n padding: 11px 14px;\n font-size: 15px;\n }\n .props .q { background: var(--fill-q); width: 64%; }\n .props .yes {\n background: var(--fill-yes);\n color: var(--green);\n font-weight: 700;\n text-align: center;\n letter-spacing: 0.04em;\n }\n .props .no {\n background: var(--fill-no);\n color: var(--red);\n font-weight: 700;\n text-align: center;\n letter-spacing: 0.04em;\n }\n\n .divider {\n border: 0;\n border-top: 1px solid var(--rule);\n margin: 48px 0;\n }\n\n .footnote {\n color: var(--grey);\n font-style: italic;\n font-size: 13px;\n border-top: 1px solid var(--rule);\n padding-top: 14px;\n margin-top: 30px;\n }\n\n @media (max-width: 480px) {\n .page { padding: 24px 18px 44px; }\n .headline { font-size: 28px; }\n .headline.lg { font-size: 34px; }\n .lede { font-size: 18px; }\n }\n'.trim();function f(e){let t=e.trim();for(;;){const e=t.match(/^<!--[\s\S]*?-->\s*/);if(!e)break;t=t.slice(e[0].length).trimStart()}return t}var x=/^<(main|section|article|div|style|table|h[1-6]|p|ul|ol|hr)\b/i,g=/<(section|article|main|div\s+class=["']masthead|h[12]\s+class=["'](?:cap|headline)|h3\s+class=["']sub|table\s+class=["']props|hr\s+class=["']divider)\b/i;function y(e){const t=e.trim();if(!t)return!1;if(b(t))return!0;const n=f(t);return!!x.test(n)||g.test(t)}function b(e){return/^<!DOCTYPE\s+html/i.test(e)||/^<html[\s>]/i.test(e)}function w(e){const t=e.trim();if(!t)return"";if(b(t))return t;const n=function(e){return/class=["']logo["']/i.test(e)?e:/<div class=["']masthead["']>/i.test(e)?e.replace(/(<div class=["']masthead["']>)/i,'$1\n <img class="logo" src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%202400%20500%22%20width%3D%222400%22%20height%3D%22500%22%3E%0A%20%20%3Ctitle%3EYESNO%20Multi%20Logo%20%E2%80%94%20Horizontal%20Master%3C%2Ftitle%3E%0A%20%20%3Cdesc%3EYESNO%20Multi%20master%20logo.%20Horizontal%20pipe%20lockup%3A%20YESNO%20wordmark%2C%20stacked%20tile%20icon%2C%20pipe%20divider%2C%20Multi%20extension%2C%20TM.%3C%2Fdesc%3E%0A%0A%20%20%3C!--%20YESNO%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAA68AAADMCAYAAACcEJWAAABCUUlEQVR4nO3dd7xcRfnH8U9ooU%2BQDiIdpHcRRbEgII69IQ5SRRCQgPSiCNKlinQBZUQRUJRBwYIiSBWUDqIUKQJCyFBMQkjy%2B2NOfoaQ3Oy9d3efc3a%2F79drXze5udn5brm7%2B5wz88wIREREpOOcDwsDSwALAQ4YVX1dAJhzmstcwAhgYnV5rfo6DngRGDvN1%2BeA53KKU7p2Q0REeojzYQFgJcrr82LVZfFp%2FrwwMDcwcpqvUy9zUV6fJ0xzGT%2FNn8cAz1K9Vk%2Fz52eBf%2BYUX%2BzGbewl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AElFTkSuQmCC%22%20x%3D%2240%22%20y%3D%22148%22%20width%3D%22940%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20Stacked%20tile%20icon%2C%20vector%20%E2%80%94%20proportional%20to%20wordmark%20height%20--%3E%0A%20%20%3Cg%20transform%3D%22translate(1040%2C%20130)%22%3E%0A%20%20%20%20%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%2F%3E%0A%20%20%20%20%3Crect%20x%3D%2240%22%20y%3D%2240%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%20opacity%3D%220.55%22%2F%3E%0A%20%20%20%20%3Crect%20x%3D%2280%22%20y%3D%2280%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%20opacity%3D%220.30%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%0A%20%20%3C!--%20Pipe%20divider%20in%20teal-700%20--%3E%0A%20%20%3Crect%20x%3D%221380%22%20y%3D%22150%22%20width%3D%226%22%20height%3D%22200%22%20fill%3D%22%2314687C%22%2F%3E%0A%0A%20%20%3C!--%20Multi%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAlkAAADMCAYAAABAzLaeAAAcwklEQVR4nO3de7hdVXnv8W8uJECCAwJSJYAgpIpaiNVSK4FWactt6FGb4FEHSdVCLJKICSRIn16O55weTkK4i8q1lYGiqNUyQKwWL9QLpVYLKhYUQUAqtzAEAcMl%2FWNObKC57LX3eueYc67f53nWg8Le4%2Feuy977XWONOcYkRERExsj5sN5y%2FJziJMvxRZo0uXQBIiIiIn00tXQBIiIiIiVYz8xqJktERETEwFTDLu6wnOLVRmPLCHE%2BrAGWWYyt9R8iImLFcibrfYZjy4hwPuwAH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ewx80pfmfYY8pocj7MobrIZR7wKmAOzU%2BsrKU6ZP024Jb6dnP9zztG4c2PmiwR2SznwwuA%2BcChVL%2Bwty5b0a%2FcQnWg7ueAL%2BcUHytcj0hrOR%2B2AV5GtTRgj%2Fo2G9gJmAU4YDowDZhKdeHVOqqLY56%2BraPaVujB%2BrZ2g%2F99P3A38FOqxuou%2FUyqyRKRAdS%2FqF9N9c54f%2BCVwC4NRN8H3EB1deB1wDdzij9rIFdEZNzUZInIhDgfnkP17vhFwO7ArlSN107A9vVtW6p3yFsBU6jeFf%2Byvq0DHgLupdpw8R7gP4BbqT5auDmnuLap%2ByMiMiz%2FCXQ4TDPqI2KNAAAAAElFTkSuQmCC%22%20x%3D%221430%22%20y%3D%22148%22%20width%3D%22601%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20TM%20superscript%20at%20top-right%20of%20Multi%20--%3E%0A%20%20%3Ctext%20x%3D%222045%22%20y%3D%22190%22%20font-family%3D%22Manrope%2C%20Poppins%2C%20sans-serif%22%20font-size%3D%2256%22%20font-weight%3D%22600%22%20fill%3D%22%230F4C5C%22%3ETM%3C%2Ftext%3E%0A%3C%2Fsvg%3E%0A" alt="YESNO Multi" />'):e}(function(e){return/<table\s+class=["']props["']/i.test(e)?e:function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=0;for(;o<t.length;){const e=m(t[o]);if(e){const r=[e];let l=o+1;for(;l<t.length;){const e=m(t[l]);if(!e)break;r.push(e),l+=1}n.push(p(r)),o=l;continue}n.push(t[o]),o+=1}return n.join("\n")}(function(e){const t=/<p(?:\s[^>]*)?>([\s\S]*?)<\/p>/gi;let n,o="",r=0;const l=[],s=()=>{0!==l.length&&(o+=p([...l]),l.length=0)};for(;null!==(n=t.exec(e));){o+=e.slice(r,n.index);const a=n[1].replace(/<br\s*\/?>/gi,"\n").trim().split("\n").map(e=>e.trim()).filter(Boolean).map(e=>m(e));a.length>0&&a.every(e=>null!==e)?l.push(...a):(s(),o+=n[0]),r=t.lastIndex}return s(),o+=e.slice(r),o}(e))}(function(e){const t=f(e),n=t.match(/^<main[^>]*>([\s\S]*)<\/main>$/i);return n?n[1].trim():t}(t)));return`<!DOCTYPE html>\n<html lang="en-AU">\n<head>\n<meta charset="UTF-8">\n<meta name="viewport" content="width=device-width, initial-scale=1.0">\n<title>YES NO - How to Play</title>\n<style>${h}</style>\n</head>\n<body>\n<main class="page">\n${n}\n</main>\n</body>\n</html>`}function k({content:e,className:t=""}){const n=w(e);return n?(0,c.jsx)("iframe",{title:"How to play guide",srcDoc:n,className:`w-full border-0 block ${t}`,style:{minHeight:"60vh",height:"72vh",maxHeight:"calc(88vh - 8rem)"},sandbox:"allow-same-origin",loading:"lazy"}):null}var v=/^(#{1,3})\s+(.+)$/,N=/^[-*]\s+(.+)$/,F=/^-{3,}$/;function C({rows:e,className:t=""}){return 0===e.length?null:(0,c.jsx)("table",{className:`w-full border-collapse my-2 ${t}`,style:{fontSize:15},children:(0,c.jsx)("tbody",{children:e.map((e,t)=>(0,c.jsxs)("tr",{children:[(0,c.jsx)("td",{className:"align-middle",style:{width:"64%",backgroundColor:"#F9FAFB",border:`1px solid ${u}`,padding:"11px 14px"},children:e.question}),(0,c.jsx)("td",{className:"align-middle text-center font-bold tracking-wide",style:{backgroundColor:"#DCFCE7",color:"#166534",border:`1px solid ${u}`,padding:"11px 14px"},children:"YES"}),(0,c.jsx)("td",{className:"align-middle text-center font-bold tracking-wide",style:{backgroundColor:"#FEE2E2",color:"#991B1B",border:`1px solid ${u}`,padding:"11px 14px"},children:"NO"})]},t))})})}function B({text:e,colors:t,bodyFont:n}){const o=function(e){const t=[],n=/\*\*(.+?)\*\*/g;let o,r=0;for(;null!==(o=n.exec(e));)o.index>r&&t.push({text:e.slice(r,o.index),bold:!1}),t.push({text:o[1],bold:!0}),r=o.index+o[0].length;return r<e.length&&t.push({text:e.slice(r),bold:!1}),0===t.length&&t.push({text:e,bold:!1}),t}(e);return(0,c.jsx)(c.Fragment,{children:o.map((e,o)=>(0,c.jsx)("span",{style:{fontWeight:e.bold?700:400,color:e.bold?t.text:t.textMuted,fontFamily:n},children:e.text},o))})}function A({content:e,colors:t,bodyFont:n,headingFont:o,className:r=""}){const l=function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=[],r=[];const l=()=>{const e=o.map(e=>e.trim()).filter(Boolean);if(e.length>0){const t=e.map(e=>m(e));if(t.every(e=>null!==e))return n.push({type:"propsTable",rows:t}),void(o=[])}const t=o.join(" ").trim();t&&n.push({type:"paragraph",text:t}),o=[]},s=()=>{r.length>0&&(n.push({type:"list",items:[...r]}),r=[])};for(const a of t){const e=a.trim();if(!e){s(),l();continue}const t=e.match(v);if(t){s(),l(),n.push({type:"heading",level:Math.min(t[1].length,3),text:t[2].trim()});continue}if(F.test(e)){s(),l(),n.push({type:"hr"});continue}const i=e.match(N);i?(l(),r.push(i[1].trim())):(s(),o.push(e))}return s(),l(),n}(e);return(0,c.jsx)("div",{className:`flex flex-col gap-4 ${r}`,style:{fontFamily:n},children:l.map((e,r)=>"heading"===e.type?(0,c.jsx)("div",{style:{fontSize:{1:"1.35rem",2:"1.15rem",3:"1rem"}[e.level],fontWeight:800,letterSpacing:1===e.level?"0.04em":"0.02em",textTransform:1===e.level?"uppercase":"none",color:t.text,fontFamily:o??n,lineHeight:1.25},children:(0,c.jsx)(B,{text:e.text,colors:t,bodyFont:o??n})},r):"paragraph"===e.type?(0,c.jsx)("p",{className:"text-sm leading-relaxed",style:{color:t.textMuted,margin:0,fontFamily:n},children:(0,c.jsx)(B,{text:e.text,colors:t,bodyFont:n})},r):"list"===e.type?(0,c.jsx)("ul",{className:"text-sm leading-relaxed pl-5",style:{color:t.textMuted,margin:0,fontFamily:n},children:e.items.map((e,o)=>(0,c.jsx)("li",{style:{marginBottom:6},children:(0,c.jsx)(B,{text:e,colors:t,bodyFont:n})},o))},r):"propsTable"===e.type?(0,c.jsx)(C,{rows:e.rows},r):(0,c.jsx)("hr",{style:{border:"none",borderTop:`1px solid ${t.border}`,margin:"4px 0"}},r))})}function M(e,t){if(!e)return e;const n=Math.max(0,Math.min(1,t));if("transparent"===e)return e;if(e.startsWith("#")){const t=e.slice(1);let o=0,r=0,l=0;if(3===t.length)o=parseInt(t[0]+t[0],16),r=parseInt(t[1]+t[1],16),l=parseInt(t[2]+t[2],16);else if(6===t.length)o=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),l=parseInt(t.slice(4,6),16);else{if(8!==t.length)return e;o=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),l=parseInt(t.slice(4,6),16)}return`rgba(${o}, ${r}, ${l}, ${n})`}const o=e.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/i);return o?`rgba(${o[1]}, ${o[2]}, ${o[3]}, ${n})`:e}var S={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:48},z={xs:4,sm:8,md:12,lg:16,xl:24,pill:999},L={xs:11,sm:13,md:14,lg:16,xl:18,xxl:22,display:28},P={min:44};function O(e){const t="dark"===e.colorScheme,n=e.colors;return{space:{...S},radius:{...z},fontSize:{...L},touchTarget:{...P},motion:{durationFast:e.motion?.durationFast??160,durationStd:e.motion?.durationStd??220,easing:e.motion?.easing??"cubic-bezier(0.2, 0, 0, 1)"},surface:{background:n.background,surface:n.selectionCard??n.surface??n.backgroundAlt,surfaceElevated:n.surfaceElevated??n.selectionCard??n.surface??n.backgroundAlt,borderSubtle:n.borderSubtle??M(n.border,t?.6:.5)},isDark:t}}function D(e){return"dark"===e.colorScheme?"0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px -16px rgba(0,0,0,0.6)":"0 1px 0 rgba(255,255,255,0.6) inset, 0 6px 20px -14px rgba(15,23,42,0.18)"}function T(e){return"dark"===e.colorScheme?"0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 60px -28px rgba(0,0,0,0.7)":"0 1px 0 rgba(255,255,255,0.7) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}function E(e,t){const n=t?.offset??0,o=e.colors.borderFocus;return[`0 0 0 ${n}px ${e.colors.background}`,`0 0 0 ${n+2}px ${M(o,.9)}`,`0 0 0 ${n+5}px ${M(o,.18)}`].join(", ")}function j(e){return e.colors.heading??e.colors.text}function Y(e){return e.colors.label??e.colors.text}function H(e){return e.colors.value??e.colors.text}function R(e){return e.colors.productYes??"#00C853"}function G(e){return e.colors.productNo??"#E53935"}function W(e){return e.brand?.accent??e.colors.primary}function I(e,t,n){const o=t?.trim().toLowerCase()===e.trim().toLowerCase();return t&&!o?t:n}function U(e){return e.colors.textAlt??e.colors.text}function $(e){return e.colors.textAltMuted??e.colors.textMuted}function K(e){return e.colors.selectionCard??e.colors.surface??e.colors.backgroundAlt}function Z(e){return e.colors.matchupHeader??e.colors.backgroundAlt}function q(e){return e.colors.selectionProp??e.colors.background}function V(e){return{textMuted:e.colors.textMuted,border:e.colors.border,background:e.colors.background,backgroundAlt:e.colors.backgroundAlt,primary:e.colors.primary,selectionCard:K(e)}}function X(e,t="light"){return e?Q(e)?"dark"===t?e.dark:e.light:e:J}function Q(e){return"light"in e&&"dark"in e&&!("colors"in e)}var J={name:"default",colorScheme:"light",colors:{primary:"#3b82f6",primaryHover:"#2563eb",primaryText:"#ffffff",payoutWinning:"#22c55e",payoutNone:"#e5e7eb",success:"#10b981",successBg:"#dcfce7",successText:"#166534",error:"#ef4444",errorBg:"#fee2e2",errorText:"#991b1b",warning:"#f59e0b",warningBg:"#fef3c7",warningText:"#92400e",info:"#3b82f6",infoBg:"#dbeafe",infoText:"#1e3a8a",border:"#d1d5db",borderFocus:"#3b82f6",background:"#ffffff",backgroundAlt:"#f9fafb",selectionCard:"#f9fafb",matchupHeader:"#eff6ff",selectionProp:"#ffffff",text:"#111827",textAlt:"#111827",textAltMuted:"#9ca3af",textMuted:"#6b7280",buttonPrimary:"#3b82f6",buttonPrimaryHover:"#2563eb",buttonPrimaryText:"#ffffff",buttonSecondary:"#e5e7eb",buttonSecondaryHover:"#d1d5db",buttonSecondaryText:"#374151"}},_={name:"green",colorScheme:"dark",fonts:{body:"Inter",heading:"Inter",mono:"JetBrainsMono"},colors:{primary:"#00E676",primaryHover:"#00C853",primaryText:"#0a0a0a",payoutWinning:"#34d399",payoutNone:"#3f3f46",success:"#00E676",successBg:"#0d2818",successText:"#a7f3d0",error:"#ff5252",errorBg:"#2d1215",errorText:"#fca5a5",warning:"#ffab40",warningBg:"#2d1f0a",warningText:"#fde68a",info:"#40c4ff",infoBg:"#0a1e2d",infoText:"#bae6fd",border:"#2a2a2e",borderFocus:"#00E676",background:"#121214",backgroundAlt:"#1a1a1e",selectionCard:"#1e1e22",matchupHeader:"#0f2419",selectionProp:"#161618",text:"#e4e4e7",textAlt:"#e4e4e7",textAltMuted:"#a1a1aa",textMuted:"#71717a",heading:"#ffffff",label:"#a1a1aa",value:"#00E676",buttonPrimary:"#00E676",buttonPrimaryHover:"#00C853",buttonPrimaryText:"#0a0a0a",buttonSecondary:"#27272a",buttonSecondaryHover:"#3f3f46",buttonSecondaryText:"#e4e4e7"},brand:{accent:"#DFFF1A"}},ee={name:"dark",colorScheme:"dark",colors:{primary:"#60a5fa",primaryHover:"#3b82f6",primaryText:"#ffffff",payoutWinning:"#16a34a",payoutNone:"#374151",success:"#34d399",successBg:"#064e3b",successText:"#d1fae5",error:"#f87171",errorBg:"#7f1d1d",errorText:"#fecaca",warning:"#fbbf24",warningBg:"#78350f",warningText:"#fef3c7",info:"#60a5fa",infoBg:"#1e3a8a",infoText:"#dbeafe",border:"#4b5563",borderFocus:"#60a5fa",background:"#1f2937",backgroundAlt:"#111827",selectionCard:"#374151",matchupHeader:"#1e3a5f",selectionProp:"#1f2937",text:"#f9fafb",textAlt:"#f9fafb",textAltMuted:"#6b7280",textMuted:"#9ca3af",buttonPrimary:"#60a5fa",buttonPrimaryHover:"#3b82f6",buttonPrimaryText:"#ffffff",buttonSecondary:"#374151",buttonSecondaryHover:"#4b5563",buttonSecondaryText:"#f9fafb"}},te={name:"gold",colorScheme:"dark",colors:{primary:"#f59e0b",primaryHover:"#d97706",primaryText:"#000000",payoutWinning:"#facc15",payoutNone:"#1f2937",success:"#eab308",successBg:"#713f12",successText:"#fef08a",error:"#dc2626",errorBg:"#7f1d1d",errorText:"#fecaca",warning:"#f97316",warningBg:"#7c2d12",warningText:"#fed7aa",info:"#f59e0b",infoBg:"#78350f",infoText:"#fef3c7",border:"#d97706",borderFocus:"#f59e0b",background:"#18181b",backgroundAlt:"#09090b",selectionCard:"#27272a",matchupHeader:"#292019",selectionProp:"#1c1917",text:"#fafaf9",textAlt:"#fafaf9",textAltMuted:"#78716c",textMuted:"#a8a29e",buttonPrimary:"#f59e0b",buttonPrimaryHover:"#d97706",buttonPrimaryText:"#000000",buttonSecondary:"#27272a",buttonSecondaryHover:"#3f3f46",buttonSecondaryText:"#fafaf9"}},ne={name:"green-light",colorScheme:"light",fonts:{body:"Inter",heading:"Inter",mono:"JetBrainsMono"},colors:{primary:"#16a34a",primaryHover:"#15803d",primaryText:"#ffffff",payoutWinning:"#22c55e",payoutNone:"#e5e7eb",success:"#16a34a",successBg:"#dcfce7",successText:"#166534",error:"#dc2626",errorBg:"#fee2e2",errorText:"#991b1b",warning:"#f59e0b",warningBg:"#fef3c7",warningText:"#92400e",info:"#0ea5e9",infoBg:"#e0f2fe",infoText:"#0c4a6e",border:"#d1d5db",borderFocus:"#16a34a",background:"#ffffff",backgroundAlt:"#f0fdf4",selectionCard:"#f0fdf4",matchupHeader:"#dcfce7",selectionProp:"#ffffff",text:"#111827",textAlt:"#111827",textAltMuted:"#9ca3af",textMuted:"#6b7280",heading:"#111827",label:"#374151",value:"#16a34a",buttonPrimary:"#16a34a",buttonPrimaryHover:"#15803d",buttonPrimaryText:"#ffffff",buttonSecondary:"#e5e7eb",buttonSecondaryHover:"#d1d5db",buttonSecondaryText:"#374151"},brand:{accent:"#f97316"}},oe={name:"gold-light",colorScheme:"light",colors:{primary:"#d97706",primaryHover:"#b45309",primaryText:"#ffffff",payoutWinning:"#eab308",payoutNone:"#e5e7eb",success:"#eab308",successBg:"#fef9c3",successText:"#713f12",error:"#dc2626",errorBg:"#fee2e2",errorText:"#991b1b",warning:"#f97316",warningBg:"#ffedd5",warningText:"#7c2d12",info:"#d97706",infoBg:"#fef3c7",infoText:"#78350f",border:"#d1d5db",borderFocus:"#d97706",background:"#ffffff",backgroundAlt:"#fffbeb",selectionCard:"#fffbeb",matchupHeader:"#fef3c7",selectionProp:"#ffffff",text:"#111827",textAlt:"#111827",textAltMuted:"#9ca3af",textMuted:"#6b7280",buttonPrimary:"#d97706",buttonPrimaryHover:"#b45309",buttonPrimaryText:"#ffffff",buttonSecondary:"#e5e7eb",buttonSecondaryHover:"#d1d5db",buttonSecondaryText:"#374151"}},re={name:"yesno-light",colorScheme:"light",fonts:{body:"Manrope",heading:"Manrope",mono:"JetBrains Mono"},colors:{primary:"#0F4C5C",primaryHover:"#0C3E4B",primaryText:"#FAFAF7",payoutWinning:"#0F4C5C",payoutNone:"#DDD9D2",success:"#15803D",successBg:"#DCFCE7",successText:"#14532D",error:"#DC2626",errorBg:"#FEE2E2",errorText:"#991B1B",productYes:"#00C853",productNo:"#E53935",warning:"#D97706",warningBg:"#FEF3C7",warningText:"#92400E",info:"#14687C",infoBg:"#E0F0F3",infoText:"#0F4C5C",border:"#DDD9D2",borderFocus:"#0F4C5C",background:"#FAFAF7",backgroundAlt:"#F0EDE6",selectionCard:"#FFFFFF",matchupHeader:"#EAF1F2",selectionProp:"#FFFFFF",text:"#123B45",textAlt:"#123B45",textAltMuted:"#8A9AA0",textMuted:"#647C83",heading:"#0F4C5C",label:"#14687C",value:"#0F4C5C",buttonPrimary:"#0F4C5C",buttonPrimaryHover:"#0C3E4B",buttonPrimaryText:"#DFFF1A",buttonSecondary:"#DDD9D2",buttonSecondaryHover:"#CDC8BF",buttonSecondaryText:"#0F4C5C"},brand:{accent:"#DFFF1A",chip:"#0F4C5C",text:"#0F4C5C",icon:"#FAFAF7"}},le={name:"yesno",colorScheme:"dark",fonts:{body:"Manrope",heading:"Manrope",mono:"JetBrains Mono"},colors:{primary:"#4FB3C9",primaryHover:"#6FC4D6",primaryText:"#06303A",payoutWinning:"#DFFF1A",payoutNone:"#1E5E6E",success:"#4ADE80",successBg:"#0E3A2A",successText:"#BBF7D0",error:"#FB7185",errorBg:"#3A1418",errorText:"#FECDD3",productYes:"#00C853",productNo:"#E53935",warning:"#FBBF24",warningBg:"#3A2A0A",warningText:"#FDE68A",info:"#4FB3C9",infoBg:"#0C3B47",infoText:"#CFF0F6",border:"#1E5E6E",borderFocus:"#4FB3C9",background:"#0C3B47",backgroundAlt:"#0F4C5C",selectionCard:"#124E5E",matchupHeader:"#103F4C",selectionProp:"#0C3B47",text:"#EAF3F4",textAlt:"#EAF3F4",textAltMuted:"#6E959E",textMuted:"#90B4BC",heading:"#FAFAF7",label:"#9FD9E6",value:"#DFFF1A",buttonPrimary:"#4FB3C9",buttonPrimaryHover:"#6FC4D6",buttonPrimaryText:"#06303A",buttonSecondary:"#124E5E",buttonSecondaryHover:"#186072",buttonSecondaryText:"#EAF3F4"},brand:{accent:"#DFFF1A",chip:"#0F4C5C",text:"#FAFAF7",icon:"#FAFAF7"}},se={light:J,dark:ee},ae={light:ne,dark:_},ie={light:oe,dark:te},ce={light:re,dark:le};function de(e){return{default:J,green:_,"green-light":ne,dark:ee,gold:te,"gold-light":oe,yesno:le,"yesno-light":re}[e]||J}var ue={default:J,green:_,"green-light":ne,dark:ee,gold:te,"gold-light":oe,yesno:le,"yesno-light":re},me={default:se,green:ae,gold:ie,yesno:ce};function pe(e,t="light"){return X(e,t)}function he(e){return e.fonts?.body??"inherit"}function fe(e){return e.fonts?.heading??e.fonts?.body??"inherit"}function xe(e,t=document.documentElement){const n=e.colors;e.fonts?.body&&(t.style.setProperty("--blade-font-body",e.fonts.body),t.style.fontFamily=e.fonts.body),e.fonts?.heading&&t.style.setProperty("--blade-font-heading",e.fonts.heading),e.fonts?.mono&&t.style.setProperty("--blade-font-mono",e.fonts.mono),t.style.setProperty("--blade-primary",n.primary),t.style.setProperty("--blade-primary-hover",n.primaryHover),t.style.setProperty("--blade-primary-text",n.primaryText),t.style.setProperty("--blade-success",n.success),t.style.setProperty("--blade-success-bg",n.successBg),t.style.setProperty("--blade-success-text",n.successText),t.style.setProperty("--blade-error",n.error),t.style.setProperty("--blade-error-bg",n.errorBg),t.style.setProperty("--blade-error-text",n.errorText),t.style.setProperty("--blade-warning",n.warning),t.style.setProperty("--blade-warning-bg",n.warningBg),t.style.setProperty("--blade-warning-text",n.warningText),t.style.setProperty("--blade-info",n.info),t.style.setProperty("--blade-info-bg",n.infoBg),t.style.setProperty("--blade-info-text",n.infoText),t.style.setProperty("--blade-border",n.border),t.style.setProperty("--blade-border-focus",n.borderFocus),t.style.setProperty("--blade-background",n.background),t.style.setProperty("--blade-background-alt",n.backgroundAlt),t.style.setProperty("--blade-text",n.text),t.style.setProperty("--blade-text-alt",n.textAlt??n.text),t.style.setProperty("--blade-text-alt-muted",n.textAltMuted??n.textMuted),t.style.setProperty("--blade-text-muted",n.textMuted),t.style.setProperty("--blade-heading",n.heading??n.text),t.style.setProperty("--blade-label",n.label??n.text),t.style.setProperty("--blade-value",n.value??n.text),t.style.setProperty("--blade-accent",n.accent??n.primary),t.style.setProperty("--blade-button-primary",n.buttonPrimary),t.style.setProperty("--blade-button-primary-hover",n.buttonPrimaryHover),t.style.setProperty("--blade-button-primary-text",n.buttonPrimaryText),t.style.setProperty("--blade-button-secondary",n.buttonSecondary),t.style.setProperty("--blade-button-secondary-hover",n.buttonSecondaryHover),t.style.setProperty("--blade-button-secondary-text",n.buttonSecondaryText)}var ge="game-icon:",ye={perfect_pick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Perfect Pick.\n Single-glyph identifier ("100%") on a transparent background.\n\n Themable: the digits use currentColor (primary tone) and the\n trailing % uses the icon-accent CSS variable (default #DFFF1A).\n\n Laid out with geometry, not font metrics: two separate single-chunk <text>\n elements at explicit x, each pinned with textLength, and an explicit baseline\n y instead of dominant-baseline. react-native-svg anchors each <tspan> as its\n own chunk and ignores letter-spacing, so the old one-text/two-tspan version\n drifted off centre on native and pushed the % outside the viewBox. Combined\n extent is 8..92, centred on 50, whatever font actually resolves.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <text x="8" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="56"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">100</text>\n <text x="66" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="26"\n lengthAdjust="spacingAndGlyphs"\n fill="var(--icon-accent, #DFFF1A)">%</text>\n</svg>',head_to_head:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Head to Head.\n Two arrowheads clashing across a citron diamond. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Source design lives in an 80×60 box; centre it in 100×100 by\n shifting (10, 20) so the diamond at (40,30) lands at (50,50). --\x3e\n \x3c!-- Themable: arrowheads use currentColor (primary tone), the\n centre diamond uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(10, 20)">\n <path d="M 6 14 L 32 30 L 6 46 L 18 30 Z" fill="currentColor"/>\n <path d="M 74 14 L 48 30 L 74 46 L 62 30 Z" fill="currentColor"/>\n <polygon points="40,20 50,30 40,40 30,30" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',total_points:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Total Points.\n Sigma glyph with italic X superscript. Transparent background;\n rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Sigma + italic X superscript, centred together in the viewBox.\n Sigma 90×98 × 0.55 = 49.5×53.9. Translating to (15, 22) puts the\n sigma centre at (~40, 49) and leaves room for the X glyph at the\n upper right so the combined mark balances around (50, 50). --\x3e\n \x3c!-- Themable: sigma uses currentColor (primary), X superscript\n uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(15, 22) scale(0.55)">\n <path d="M 0,0 L 90,0 L 90,15 L 25,15 L 58,49 L 25,83 L 90,83 L 90,98 L 0,98 L 49,49 Z"\n fill="currentColor"/>\n </g>\n <text x="75" y="30"\n font-family="Manrope, Poppins, sans-serif"\n font-size="22"\n font-style="italic"\n font-weight="400"\n text-anchor="middle"\n dominant-baseline="central"\n fill="var(--icon-accent, #DFFF1A)">X</text>\n</svg>',quickpick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — QuickPick.\n Lightning bolt glyph. Transparent background; rendered onto the\n programmatic Press-to-Play tile.\n\n Themable: bolt fill uses currentColor (primary tone); edge stroke uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(28, 16) scale(0.55)">\n <path d="M 50 8 L 5 80 L 32 80 L 22 132 L 75 50 L 47 50 L 60 8 Z"\n fill="currentColor"\n stroke="var(--icon-accent, #DFFF1A)"\n stroke-width="3.5"\n stroke-linejoin="round"/>\n </g>\n</svg>',safety_net:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Safety Net.\n The brand basketball rim + curved diamond-mesh net catching a citron ball,\n taken from the YESNO Safety Net lockup / app icon. Transparent background;\n rendered on Press-to-Play tiles and brand lockups.\n\n Themable: net uses currentColor (teal on light, white on teal tile);\n ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(-2, -6.2) scale(1.3)">\n <line x1="9" y1="18" x2="71" y2="18" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>\n <path d="M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/>\n <ellipse cx="40" cy="64" rx="18" ry="4.5" fill="none" stroke="currentColor" stroke-width="2.2"/>\n <circle cx="40" cy="50" r="8" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',ladder:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n The sub-brand staircase: four offset rungs climbing to the top, from the\n YESNO Ladder lockup ("Climb the ladder. Stack the prizes."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: alternating rungs use currentColor (primary tone) and the\n icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="4" y="76" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="20" y="54" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="36" y="32" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="52" y="10" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',game_set:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Game Set Bet.\n The sub-brand tennis ball: citron ball with the S-curve seam, from the\n Game Set Bet lockup / app icon ("Game. Set. Bet."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the seam and the ball\'s rim use currentColor (teal on light, paper\n on the teal app-icon tile); the ball uses the icon-accent CSS variable\n (default #DFFF1A). The rim is what keeps the ball readable on themes whose\n chip colour sits near the accent (e.g. citron on the green theme\'s #00E676).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(4, 4) scale(1.15)">\n <circle cx="40" cy="40" r="34" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4.5"/>\n <path d="M40 8 C12 14 11 40 40 40 C69 40 68 66 40 72" fill="none" stroke="currentColor" stroke-width="4.5" stroke-linecap="round"/>\n </g>\n</svg>',pick_your_dividend:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n Splayed ladder rails and rungs with the citron ball resting at the top —\n the stacked-multi that pays every rung your streak reaches. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n\n Themable: rails/rungs use currentColor (primary tone); the ball uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <line x1="36" y1="16" x2="27" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="64" y1="16" x2="73" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="33.8" y1="34" x2="66.2" y2="34" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n <line x1="31.5" y1="52" x2="68.5" y2="52" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.8"/>\n <line x1="29.3" y1="70" x2="70.7" y2="70" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.6"/>\n <circle cx="50" cy="20" r="9" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Mirror.\n Two offset square-stacks reflected across a central seam, from the YESNO\n Mirror Standard mark ("Get them all right, you win. All wrong, you win.").\n Transparent background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left stack --\x3e\n <rect x="6" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="14" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- right stack — the reflection across x=50 --\x3e\n <rect x="66" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="58" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',same_game_multi:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon - Same Game Multi.\n Three proposition legs contained inside one rounded fixture card: many\n picks, one game. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the fixture and leg marks use currentColor (primary tone); the\n locked lead leg uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="14" y="14" width="72" height="72" rx="13" fill="none" stroke="currentColor" stroke-width="6"/>\n <circle cx="31" cy="35" r="6" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="43" y="31" width="31" height="8" rx="4" fill="currentColor"/>\n <circle cx="31" cy="51" r="6" fill="currentColor" opacity="0.8"/>\n <rect x="43" y="47" width="25" height="8" rx="4" fill="currentColor" opacity="0.8"/>\n <circle cx="31" cy="67" r="6" fill="currentColor" opacity="0.6"/>\n <rect x="43" y="63" width="19" height="8" rx="4" fill="currentColor" opacity="0.6"/>\n</svg>',six_again:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — 6 Again.\n Three stacked cards — the restart, the set again — with the citron six on the\n front of the deck. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the stack uses currentColor (primary tone); the front card carries\n the icon-accent CSS variable (default #DFFF1A) with a currentColor rim, and\n the numeral is knocked out in currentColor. Accent-as-card rather than\n accent-as-numeral because the numeral is small: on themes where the accent\n sits near the icon colour (orange on white in green-light) an accent numeral\n washes out, while an accent card stays legible and its rim keeps the card\n readable when the accent sits near the chip colour instead.\n\n The numeral is laid out with geometry, not font metrics: a single-chunk\n <text> pinned with textLength at an explicit x and baseline y, because\n react-native-svg anchors each chunk itself and ignores text-anchor drift.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="32" y="8" width="60" height="60" rx="13" fill="currentColor" opacity="0.3"/>\n <rect x="24" y="16" width="60" height="60" rx="13" fill="currentColor" opacity="0.55"/>\n <rect x="16" y="24" width="60" height="60" rx="13" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4"/>\n <text x="35" y="68"\n font-family="Manrope, Poppins, sans-serif"\n font-size="40"\n font-weight="800"\n textLength="22"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">6</text>\n</svg>',unknown:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Unknown game fallback.\n Question mark glyph on a transparent background.\n\n Themable: the mark uses currentColor (primary tone) and the dot uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <path\n d="M 28 42 C 28 26 36 16 46 16 C 58 16 66 26 66 38 C 66 48 58 54 50 58 L 50 68"\n fill="none"\n stroke="currentColor"\n stroke-width="8"\n stroke-linecap="round"\n stroke-linejoin="round"\n />\n <circle cx="50" cy="82" r="5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>'},be={perfectpick:"perfect_pick",headtohead:"head_to_head",totalpoints:"total_points",quickpick:"quickpick",safetynet:"safety_net",gameset:"game_set",gamesetbet:"game_set",pickyourdividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",mirrorstandard:"mirror",samegame:"same_game_multi",samegamemulti:"same_game_multi",sixagain:"six_again"},we={safety_net:"safety_net",game_set:"game_set",pick_your_dividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",same_game_multi:"same_game_multi",six_again:"six_again"};function ke(e){if(e.quick_pick_only)return"quickpick";const t=we[e.rule?.trim().toLowerCase()??""];if(t)return t;const n=(e.game_name??"").toLowerCase().replace(/[^a-z0-9]+/g,"");return be[n]??"unknown"}function ve(e){return`${ge}${ke(e)}`}function Ne(e){if(!function(e){return e.startsWith(ge)}(e))return null;const t=e.slice(10);return ye[t]??ye.unknown}var Fe={text:"YES",tone:"yes"},Ce={text:"NO",tone:"no"},Be=[{question:"Will the home side kick the first goal?",outcome:"yes"},{question:"Will the total go over 165 points?",outcome:"no"},{question:"Will the favourite lead at half time?",outcome:"yes"},{question:"Will either side kick five straight goals?",outcome:"yes"},{question:"Will the away side win the first quarter?",outcome:"no"},{question:"Will the top scorer kick three or more?",outcome:"yes"},{question:"Will the margin be under two goals?",outcome:"no"},{question:"Will there be a goal in the first five minutes?",outcome:"yes"}],Ae=["zero","one","two","three","four","five","six","seven","eight"],Me=[{title:"Select your picks",detail:"YES or NO on each call, from {min} up to {max}."},{title:"Continue to review",detail:"Lock in the picks you have made."},{title:"Review your slip",detail:"Add, remove, or change any pick."},{title:"Place your wager",detail:"Set your stake, check the payout, and you are on."}],Se=e=>[{title:`Choose your ${e}`,detail:"Pick how many legs you are taking on and your stake."},{title:"Make your calls",detail:"YES or NO on every leg of the card."},{title:"Check the slip",detail:"Your stake is locked from the setup — review every pick."},{title:"Place your entry",detail:"Confirm and you are on."}],ze={perfect_pick:{summary:["Perfect Pick is the multi you already know, with one big difference. You pick ",Fe," or ",Ce," across your legs, every leg has to land, and one perfect card takes the prize."],steps:Me,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},head_to_head:{summary:["Head to Head is win-or-lose calls only. Pick ",Fe," or ",Ce," on each matchup, land every leg, and the card pays."],steps:Me,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},total_points:{summary:["Total Points is all about the scoreboard. Call ",Fe," or ",Ce," on each total, land every leg, and the card pays."],steps:Me,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},quickpick:{summary:["QuickPick fills the card for you. We generate the ",Fe," and ",Ce," calls, you set the stake, and a perfect card takes the prize."],steps:[{title:"Press to play",detail:"We generate a full card of calls for you."},{title:"Check the slip",detail:"See the picks you have been dealt."},{title:"Place your wager",detail:"Set your stake, check the payout, and you are on."}],demoPrompt:"See how a card settles — call {n} legs yourself, then run it."},safety_net:{summary:["Safety Net is a multi with a miss built in. Pick ",Fe," or ",Ce," across your legs — get them all right for the top prize, and if one slips, the net catches it and the entry still pays."],steps:Se("net"),demoPrompt:"Try a {n}-leg card with a one-miss net — call every leg, then run it."},ladder:{summary:["Ladder pays as you climb. Pick ",Fe," or ",Ce," on every leg — reach the first rung and you start winning, and every rung after that stacks another prize on top."],steps:Se("ladder"),demoPrompt:"Try a {n}-leg ladder — the climb starts at {n1} right."},game_set:{summary:["Game Set Bet is straight sets. Pick ",Fe," or ",Ce," on every leg — each extra leg doubles the prize, and a clean card takes the lot."],steps:Se("ticket"),demoPrompt:"Try a quick {n}-leg ticket — call every leg, then run it."},pick_your_dividend:{summary:["Pick Your Dividend lets you choose the payout you are chasing. Pick ",Fe," or ",Ce," on every leg — land them all and the entry pays the dividend you picked."],steps:Se("dividend"),demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},mirror:{summary:["Mirror pays both ways. Pick ",Fe," or ",Ce," on every leg — get them all right, you win. Get them all wrong, you win the same. Anything in between is a split card and does not pay."],steps:Se("card"),demoPrompt:"Try a {n}-leg mirror — sweep it either way."},six_again:{summary:["6 Again is one six-leg card with boosts riding on it. Pick ",Fe," or ",Ce," on all six calls — land the lot and the card pays. Golden Point doubles a winning card, and the Captain’s Challenge collects even when one call gets away."],steps:[{title:"Set your play",detail:"Choose your stake, then switch on the boosts you want."},{title:"Make your six calls",detail:"YES or NO on every call, {min} of them."},{title:"Check the slip",detail:"Your stake is locked from the setup — review every pick."},{title:"Place your entry",detail:"Confirm and you are on."}],demoPrompt:"Try a {n}-leg card — call every leg, then run it."},same_game_multi:{summary:["Same Game Multi keeps every leg inside one fixture. Pick ",Fe," or ",Ce," across the game — land every leg and the card pays."],steps:Me,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."}};function Le(e){if(!e)return null;const t=ke(e),n=ze[t];if(!n)return null;const{min:o,max:r,demo:l}=function(e){const t=e.allowed_propositions?.filter(e=>e>0)??[],n=t.length>0?Math.min(...t):e.min_propositions??e.num_propositions??0,o=t.length>0?Math.max(...t):e.max_propositions??e.num_propositions??0;let r=3;return n>0&&(r=Math.max(r,n)),o>0&&(r=Math.min(r,o)),{min:n,max:o,demo:Math.min(Math.max(r,2),Be.length)}}(e),s=e=>e.replace(/\{min\}/g,String(o>0?o:2)).replace(/\{max\}/g,String(r>0?r:12));return{id:t,...n,steps:n.steps.map(e=>({...e,detail:s(e.detail)})),demoLegs:Be.slice(0,l),demoPrompt:s(n.demoPrompt).replace(/\{n1\}/g,Ae[l-1]??String(l-1)).replace(/\{n\}/g,Ae[l]??String(l))}}function Pe({theme:e,level:t="flat",padding:n="md",radius:o="md",as:r="div",className:l,style:s,children:a,onClick:i}){const d=O(e),u={none:0,sm:d.space.sm,md:d.space.lg,lg:d.space.xl},m={none:0,sm:d.radius.sm,md:d.radius.md,lg:d.radius.lg,pill:d.radius.pill},p="elevated"===t?d.surface.surfaceElevated:d.surface.surface,h="flat"===t?"none":"raised"===t?D(e):T(e);return(0,c.jsx)(r,{className:l,onClick:i,style:{background:p,border:`1px solid ${e.colors.border}`,borderRadius:m[o],padding:u[n],boxShadow:h,color:e.colors.text,...s},children:a})}var Oe=(0,s.forwardRef)(function({theme:e,variant:t="primary",size:n="md",disabled:o,block:r,radius:l="md",onPress:a,onDoubleClick:i,type:d="button",className:u,style:m,children:p,ariaLabel:h},f){const x=O(e),g=e.colors,[y,b]=s.default.useState(!1),[w,k]=s.default.useState(!1),[v,N]=s.default.useState(!1),F={sm:{h:36,px:x.space.md,fs:x.fontSize.sm},md:{h:x.touchTarget.min,px:x.space.lg,fs:x.fontSize.md},lg:{h:52,px:x.space.xl,fs:x.fontSize.lg}},C={sm:x.radius.sm,md:x.radius.md,lg:x.radius.lg,pill:x.radius.pill},B={primary:{bg:g.buttonPrimary,bgHover:g.buttonPrimaryHover,fg:g.buttonPrimaryText,border:g.buttonPrimary},secondary:{bg:g.buttonSecondary,bgHover:g.buttonSecondaryHover,fg:g.buttonSecondaryText,border:g.border},ghost:{bg:"transparent",bgHover:M(g.text,x.isDark?.08:.05),fg:g.text,border:"transparent"},danger:{bg:g.error,bgHover:M(g.error,.85),fg:(g.errorText&&(g.errorText,g.error),"#ffffff"),border:g.error}}[t];return(0,c.jsx)("button",{ref:f,type:d,disabled:o,"aria-label":h,className:u,onClick:o?void 0:a,onDoubleClick:o?void 0:i,onMouseEnter:()=>b(!0),onMouseLeave:()=>{b(!1),k(!1)},onMouseDown:()=>k(!0),onMouseUp:()=>k(!1),onFocus:e=>{e.target.matches(":focus-visible")&&N(!0)},onBlur:()=>N(!1),style:{appearance:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8,width:r?"100%":void 0,minHeight:F[n].h,padding:`0 ${F[n].px}px`,fontSize:F[n].fs,fontWeight:500,fontFamily:"inherit",lineHeight:1.2,color:B.fg,background:y&&!o?B.bgHover:B.bg,border:`1px solid ${B.border}`,borderRadius:C[l],cursor:o?"not-allowed":"pointer",opacity:o?.5:1,transform:w?"scale(0.985)":"scale(1)",transition:`transform ${x.motion.durationFast}ms ${x.motion.easing}, background-color ${x.motion.durationFast}ms ${x.motion.easing}, box-shadow ${x.motion.durationFast}ms ${x.motion.easing}`,boxShadow:v?E(e):"none",outline:"none",...m},children:p})}),De={xs:{padding:"3px 10px",fontSize:11},sm:{padding:"6px 14px",fontSize:13},md:{padding:"8px 18px",fontSize:14}};function Te(e,t,n,o,r,l){const s=O(e);return{appearance:"none",padding:De[o].padding,borderRadius:s.radius.sm,fontSize:De[o].fontSize,fontWeight:600,fontFamily:"inherit",lineHeight:1.2,cursor:r?"not-allowed":"pointer",color:t?"#ffffff":e.colors.text,background:t?n:"transparent",border:`1px solid ${t?"transparent":e.colors.border}`,transition:`background-color ${s.motion.durationFast}ms ${s.motion.easing}, color ${s.motion.durationFast}ms ${s.motion.easing}, border-color ${s.motion.durationFast}ms ${s.motion.easing}`,opacity:r?.5:1,...l?{flex:1}:null}}function Ee({theme:e,value:t,onYes:n,onNo:o,size:r="md",stretch:l,disabled:s,yesLabel:a="Yes",noLabel:i="No",className:d,style:u}){return(0,c.jsxs)("div",{className:d,style:{display:"flex",gap:8,flexShrink:0,...l?{width:"100%"}:null,...u},children:[(0,c.jsx)("button",{type:"button","aria-pressed":"yes"===t,disabled:s,onClick:s?void 0:n,style:Te(e,"yes"===t,R(e),r,s,l),children:a}),(0,c.jsx)("button",{type:"button","aria-pressed":"no"===t,disabled:s,onClick:s?void 0:o,style:Te(e,"no"===t,G(e),r,s,l),children:i})]})}function je({theme:e,value:t,size:n="md",style:o}){const r=O(e);return(0,c.jsx)("span",{style:{display:"inline-flex",alignItems:"center",padding:"sm"===n?"2px 8px":"3px 10px",borderRadius:r.radius.sm,fontSize:"sm"===n?10:11,fontWeight:700,letterSpacing:"0.04em",textTransform:"uppercase",color:"#ffffff",background:"yes"===t?R(e):G(e),...o},children:"yes"===t?"Yes":"No"})}var Ye=/\b(YES|NO)\b/,He={verticalAlign:"-2px",margin:"0 1px"};function Re(e,t,n){return e.split(Ye).map((e,o)=>"YES"===e||"NO"===e?(0,c.jsx)(je,{theme:t,value:"YES"===e?"yes":"no",size:"sm",style:He},`${n}-${o}`):(0,c.jsx)(s.default.Fragment,{children:e},`${n}-${o}`))}function Ge({segments:e,theme:t}){return(0,c.jsx)("p",{className:"m-0 text-[14px] leading-[1.55]",style:{color:t.colors.text},children:e.map((e,n)=>"string"==typeof e?(0,c.jsx)(s.default.Fragment,{children:Re(e,t,n)},n):(0,c.jsx)(je,{theme:t,value:e.tone,size:"sm",style:He},n))})}function We({panel:e,theme:t,dividends:n,bodyFont:o,headingFont:r,className:l=""}){const a=t.colors,i=t.brand?.accent??a.primaryText,d=K(t),[u,m]=(0,s.useState)("learn"),[p,h]=(0,s.useState)(()=>e.demoLegs.map(()=>null)),[f,x]=(0,s.useState)(!1),g=e.demoLegs.length,y=p.filter(e=>null!=e).length,b=y===g,w=e.demoLegs.filter((e,t)=>p[t]===e.outcome).length,k=function(e,t,n){const o=t===n,r=`${t} of ${n}`;switch(e){case"mirror":return o?{won:!0,message:`All ${n} right — that is the sweep, the card pays.`}:0===t?{won:!0,message:`All ${n} wrong — a full mirror sweep pays the same as perfect.`}:{won:!1,message:`${r} is a split card. Mirror pays all right or all wrong — nothing in between.`};case"ladder":return o?{won:!0,message:`Top rung — all ${n} right stacks every prize on the ladder into one payout.`}:t>=n-1?{won:!0,message:`${r} reaches a rung — it pays, and every extra leg right stacks the next prize on top.`}:{won:!1,message:`${r} does not reach the first rung — the climb starts at ${n-1} right.`};case"safety_net":return o?{won:!0,message:`Clean sweep — all ${n} right takes the full prize.`}:t===n-1?{won:!0,message:"One miss — the net catches it and the entry still pays."}:{won:!1,message:`${r} is more than the net holds — one miss is covered, two is not.`};case"six_again":return o?{won:!0,message:`All ${n} right — the card pays, and Golden Point doubles it.`}:t===n-1?{won:!1,message:`${r} — one call away. The Captain’s Challenge is the boost that collects on this card.`}:{won:!1,message:`${r} — every call has to land. Flip the misses and the card pays.`};case"game_set":return o?{won:!0,message:`Game, set, bet — all ${n} legs landed and the card pays.`}:{won:!1,message:`${r} — every leg has to land. Flip the misses and it is straight sets.`};case"pick_your_dividend":return o?{won:!0,message:`All ${n} right — the entry pays the dividend you picked.`}:{won:!1,message:`${r} — every leg has to land to collect your dividend.`};default:return o?{won:!0,message:`Perfect card — all ${n} legs landed, the prize is yours.`}:{won:!1,message:`${r} — one miss breaks a perfect card. Flip the misses and it pays.`}}}(e.id,w,g),v=(e,t)=>{f||h(n=>n.map((n,o)=>o===e?t:n))},N=f?"Settled":`${y} of ${g} called`,F=!f&&b,C=e=>({fontFamily:r,backgroundColor:e?a.primary:"transparent",color:e?a.primaryText:a.textMuted,cursor:"pointer"});return(0,c.jsxs)("div",{className:l,style:{fontFamily:o},children:[(0,c.jsx)("style",{children:"@keyframes ynhtp-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}"}),(0,c.jsxs)("div",{className:"mb-3.5 grid gap-0.5 rounded-lg border p-0.5",style:{borderColor:a.border,backgroundColor:a.backgroundAlt,gridTemplateColumns:`repeat(${n?3:2}, minmax(0, 1fr))`},role:"tablist",children:[(0,c.jsx)("button",{type:"button",role:"tab","aria-selected":"learn"===u,onClick:()=>m("learn"),className:"rounded-md px-2 py-1.5 text-[11px] font-extrabold uppercase tracking-[0.1em] transition-colors",style:C("learn"===u),children:"How it works"}),(0,c.jsx)("button",{type:"button",role:"tab","aria-selected":"try"===u,onClick:()=>m("try"),className:"rounded-md px-2 py-1.5 text-[11px] font-extrabold uppercase tracking-[0.1em] transition-colors",style:C("try"===u),children:"Quick demo"}),n&&(0,c.jsx)("button",{type:"button",role:"tab","aria-selected":"pay"===u,onClick:()=>m("pay"),className:"rounded-md px-2 py-1.5 text-[11px] font-extrabold uppercase tracking-[0.1em] transition-colors",style:C("pay"===u),children:"Dividends"})]}),"pay"===u&&n,"learn"===u&&(0,c.jsxs)("div",{children:[(0,c.jsx)(Ge,{segments:e.summary,theme:t}),(0,c.jsxs)("ol",{className:"relative m-0 mt-3 list-none p-0",children:[(0,c.jsx)("span",{"aria-hidden":!0,className:"absolute left-[17px] top-4 bottom-4 w-px",style:{backgroundColor:M(a.primary,.25)}}),e.steps.map((e,n)=>(0,c.jsxs)("li",{className:"relative flex flex-col justify-center gap-0.5 py-2 pl-[50px]",children:[(0,c.jsx)("span",{"aria-hidden":!0,className:"absolute left-0 top-1/2 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-[10px] text-[16px] font-extrabold",style:{backgroundColor:a.primary,color:i,fontFamily:r,boxShadow:`0 2px 0 ${M(a.primary,.35)}`},children:n+1}),(0,c.jsx)("b",{className:"block text-[14.5px] font-bold leading-snug",style:{color:a.primary,fontFamily:r},children:e.title}),(0,c.jsx)("span",{className:"text-[13px] leading-snug",style:{color:a.textMuted},children:Re(e.detail,t,n)})]},e.title))]}),(0,c.jsx)("button",{type:"button",onClick:()=>m("try"),className:"mt-1.5 pl-[50px] text-[12.5px] font-bold",style:{color:a.primary,cursor:"pointer",fontFamily:r},children:"Try a quick demo →"})]}),"try"===u&&(0,c.jsxs)("div",{className:"overflow-hidden rounded-xl border",style:{borderColor:a.border,backgroundColor:d,boxShadow:D(t)},children:[(0,c.jsx)("div",{className:"px-3.5 pt-3 sm:px-4",children:(0,c.jsxs)("div",{className:"flex items-start justify-between gap-2.5",children:[(0,c.jsx)("p",{className:"m-0 min-w-0 flex-1 text-[12.5px] leading-snug",style:{color:a.textMuted},children:f?"Here is how it settled.":e.demoPrompt}),(0,c.jsx)("span",{className:"shrink-0 rounded-full border px-2 py-0.5 text-[10px] font-extrabold uppercase tracking-[0.1em] [font-variant-numeric:tabular-nums]",style:{borderColor:F?a.primary:M(a.border,.9),color:F?a.primaryText:a.textMuted,backgroundColor:F?a.primary:"transparent"},children:N})]})}),(0,c.jsx)("div",{className:"mt-1.5 px-3.5 sm:px-4",children:e.demoLegs.map((e,n)=>{const o=p[n]===e.outcome;return(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 py-2.5",style:{borderTop:0===n?"none":`1px solid ${M(a.border,.7)}`},children:[(0,c.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2.5",children:[(0,c.jsx)("span",{className:"mt-0.5 flex h-[18px] w-[18px] shrink-0 items-center justify-center rounded-full text-[10px] font-extrabold",style:f?{backgroundColor:o?a.success:a.error,color:"#fff",animation:"ynhtp-in .28s ease both",animationDelay:100*n+"ms"}:{border:`1.5px solid ${p[n]?a.primary:a.border}`,color:p[n]?a.primary:a.textMuted},children:f?o?"✓":"✗":n+1}),(0,c.jsx)("span",{className:"min-w-0 text-[13px] font-semibold leading-snug",style:{color:a.text},children:e.question})]}),f?(0,c.jsx)("span",{style:{animation:"ynhtp-in .28s ease both",animationDelay:100*n+"ms"},children:(0,c.jsx)(je,{theme:t,size:"sm",value:e.outcome})}):(0,c.jsx)(Ee,{theme:t,size:"sm",value:p[n],onYes:()=>v(n,"yes"),onNo:()=>v(n,"no")})]},e.question)})}),(0,c.jsx)("div",{className:"mx-3.5 sm:mx-4",style:{borderTop:`1.5px dashed ${M(a.border,.9)}`}}),(0,c.jsx)("div",{className:"px-3.5 pb-3.5 pt-3 sm:px-4",children:f?(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{className:"flex items-center gap-3 rounded-lg px-3 py-2.5",style:{backgroundColor:k.won?a.successBg:a.errorBg,animation:"ynhtp-in .3s ease both",animationDelay:100*g+60+"ms"},children:[(0,c.jsx)("span",{className:"shrink-0 -rotate-3 rounded-md border-2 px-1.5 py-0.5 text-[10px] font-extrabold uppercase tracking-[0.14em]",style:{borderColor:k.won?a.successText:a.errorText,color:k.won?a.successText:a.errorText,fontFamily:r},children:k.won?"Winner":"No win"}),(0,c.jsx)("p",{className:"m-0 text-[12.5px] font-semibold leading-snug",style:{color:k.won?a.successText:a.errorText},children:k.message})]}),(0,c.jsx)("button",{type:"button",onClick:()=>{h(e.demoLegs.map(()=>null)),x(!1)},className:"mt-2 text-[11.5px] font-bold",style:{color:a.textMuted,cursor:"pointer"},children:"↺ Try again"})]}):(0,c.jsx)(Oe,{theme:t,size:"sm",block:!0,disabled:!b,onPress:()=>x(!0),children:"Run the demo"})})]})]})}function Ie({open:e,onClose:t,title:n="How to Play",content:o,panel:r,theme:l,extra:a,colors:i,bodyFont:d,headingFont:u}){const m=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(!e)return;const n=e=>{"Escape"===e.key&&t()};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e,t]),(0,s.useEffect)(()=>{if(!e)return;const t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[e]),e?(0,c.jsx)("div",{className:"fixed inset-0 z-50 flex items-end sm:items-center justify-center p-0 sm:p-4",style:{backgroundColor:"rgba(0,0,0,0.55)"},onMouseDown:e=>{e.target===e.currentTarget&&t()},children:(0,c.jsxs)("div",{ref:m,role:"dialog","aria-modal":"true","aria-labelledby":"how-to-play-title",className:"w-full sm:max-w-2xl max-h-[88vh] flex flex-col rounded-t-2xl sm:rounded-2xl border shadow-2xl overflow-hidden",style:{backgroundColor:i.background,borderColor:i.border,fontFamily:d,maxHeight:"88dvh"},children:[(0,c.jsx)("div",{className:"shrink-0 border-b px-4 pb-4 pt-3 text-left sm:px-6 sm:pt-4",style:{borderColor:i.border,backgroundColor:i.backgroundAlt},children:(0,c.jsx)("h2",{id:"how-to-play-title",className:"text-lg font-bold",style:{color:i.text,fontFamily:u??d},children:n})}),(0,c.jsx)("div",{className:"overflow-y-auto flex-1 min-h-0",children:r&&l?(0,c.jsx)("div",{className:"px-4 sm:px-6 py-5",children:(0,c.jsx)(We,{panel:r,theme:l,dividends:a,bodyFont:d,headingFont:u})}):(0,c.jsxs)(c.Fragment,{children:[o&&y(o)?(0,c.jsx)(k,{content:o,className:"min-h-[60vh]"}):(0,c.jsx)("div",{className:"px-4 sm:px-6 py-5",children:(0,c.jsx)(A,{content:o??"",colors:i,bodyFont:d,headingFont:u})}),a&&(0,c.jsx)("div",{className:"px-4 sm:px-6 pb-5",children:a})]})}),(0,c.jsx)("div",{className:"px-4 sm:px-6 py-4 border-t shrink-0",style:{borderColor:i.border,backgroundColor:i.backgroundAlt,paddingBottom:"max(1rem, env(safe-area-inset-bottom))"},children:(0,c.jsx)("button",{type:"button",onClick:t,className:"w-full rounded-full px-5 py-3.5 text-sm font-extrabold uppercase tracking-[0.08em] transition-[opacity,transform] duration-150 hover:opacity-[0.92] active:scale-[0.99] active:opacity-[0.88]",style:{color:i.primaryText,backgroundColor:i.primary,border:"none",cursor:"pointer",fontFamily:d},children:"Got it"})})]})}):null}function Ue({content:e,panel:t,theme:n,extra:o,title:r,label:l="How to Play",variant:a="pill",colors:i,bodyFont:d,headingFont:u,className:m=""}){const[p,h]=s.default.useState(!1);return e?.trim()||t&&n||o?(0,c.jsxs)(c.Fragment,{children:["icon"===a?(0,c.jsx)("button",{type:"button",onClick:()=>h(!0),"aria-label":l,title:l,className:`inline-flex h-[21px] w-[21px] shrink-0 items-center justify-center rounded-full border text-[12px] font-extrabold leading-none transition-colors ${m}`,style:{color:i.primary,borderColor:i.primary,backgroundColor:`${i.primary}14`,cursor:"pointer",fontFamily:d},onMouseEnter:e=>{e.currentTarget.style.color=i.primaryText,e.currentTarget.style.backgroundColor=i.primary},onMouseLeave:e=>{e.currentTarget.style.color=i.primary,e.currentTarget.style.backgroundColor=`${i.primary}14`},children:"?"}):(0,c.jsxs)("button",{type:"button",onClick:()=>h(!0),className:`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full border text-xs font-semibold ${m}`,style:{color:i.primary,borderColor:i.primary,backgroundColor:`${i.primary}10`,cursor:"pointer",fontFamily:d},children:[l,(0,c.jsx)("span",{"aria-hidden":"true",children:"?"})]}),(0,c.jsx)(Ie,{open:p,onClose:()=>h(!1),title:r,content:e??void 0,panel:t,theme:n,extra:o,colors:i,bodyFont:d,headingFont:u})]}):null}function $e({label:e,category:t,icon:n,theme:o,disabled:r=!1}){const l=o.colors,s=fe(o),a=r?l.textMuted:l.textAlt??l.text,i=r?l.border:o.brand?.chip??l.primary,d=r?l.textMuted:o.brand?.icon??l.primaryText??l.buttonPrimaryText;return(0,c.jsxs)("span",{className:"font-display max-w-full text-base min-[400px]:text-lg min-[480px]:text-xl",style:{display:"inline-flex",alignItems:"center",flexWrap:"wrap",gap:"0.25em",lineHeight:1.15,color:a,fontFamily:s},children:[(0,c.jsxs)("span",{className:"shrink-0","aria-label":"YESNO",style:{letterSpacing:-1,whiteSpace:"nowrap"},children:[(0,c.jsx)("span",{style:{fontWeight:900},children:"YES"}),(0,c.jsx)("span",{style:{fontWeight:300},children:"NO"})]}),(0,c.jsx)("span",{role:"img","aria-label":e,className:"shrink-0",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1.6em",height:"0.85em",borderRadius:"0.425em",flexShrink:0,backgroundColor:i,color:d,transform:"translateY(-0.02em)"},children:n??(0,c.jsx)(Ke,{category:t,size:"0.6em",color:d})}),(0,c.jsxs)("span",{className:"min-w-0 break-words font-medium",style:{fontWeight:500},children:[e,(0,c.jsx)("span",{style:{fontSize:"0.3em",fontWeight:600,marginLeft:"0.2em",display:"inline-block",transform:"translateY(-1.8em)"},children:"TM"})]})]})}function Ke({category:e,size:t=14,color:n="currentColor"}){const o={width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0};switch(e){case"casino":return(0,c.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:n,"aria-hidden":!0,children:[(0,c.jsx)("path",{d:"M10.348 3.169l-7.15 3.113a2 2 0 0 0 -1.03 2.608l4.92 11.895a1.96 1.96 0 0 0 2.59 1.063l7.142 -3.11a2.002 2.002 0 0 0 1.036 -2.611l-4.92 -11.894a1.96 1.96 0 0 0 -2.588 -1.064z"}),(0,c.jsx)("path",{d:"M16 3a2 2 0 0 1 1.995 1.85l.005 .15v3.5a1 1 0 0 1 -1.993 .117l-.007 -.117v-3.5h-1a1 1 0 0 1 -.117 -1.993l.117 -.007h1z"}),(0,c.jsx)("path",{d:"M19.08 5.61a1 1 0 0 1 1.31 -.53c.257 .108 .505 .21 .769 .314a2 2 0 0 1 1.114 2.479l-.056 .146l-2.298 5.374a1 1 0 0 1 -1.878 -.676l.04 -.11l2.296 -5.371l-.366 -.148l-.402 -.167a1 1 0 0 1 -.53 -1.312z"})]});case"racing":return(0,c.jsxs)("svg",{...o,children:[(0,c.jsx)("path",{d:"M7 10l-.85 8.507a1.357 1.357 0 0 0 1.35 1.493h.146a2 2 0 0 0 1.857 -1.257l.994 -2.486a2 2 0 0 1 1.857 -1.257h1.292a2 2 0 0 1 1.857 1.257l.994 2.486a2 2 0 0 0 1.857 1.257h.146a1.37 1.37 0 0 0 1.364 -1.494l-.864 -9.506h-8c0 -3 -3 -5 -6 -5l-3 6l2 2l3 -2"}),(0,c.jsx)("path",{d:"M22 14v-2a3 3 0 0 0 -3 -3"})]});case"women":return(0,c.jsxs)("svg",{...o,children:[(0,c.jsx)("path",{d:"M7 9a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"}),(0,c.jsx)("path",{d:"M12 14v7"}),(0,c.jsx)("path",{d:"M9 18h6"})]});default:return(0,c.jsxs)("svg",{...o,children:[(0,c.jsx)("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),(0,c.jsx)("path",{d:"M12 7l4.76 3.45l-1.76 5.55h-6l-1.76 -5.55l4.76 -3.45"}),(0,c.jsx)("path",{d:"M12 7v-4m3 13l2.5 3m-.74 -8.55l3.74 -1.45m-11.44 7.05l-2.56 2.95m.74 -8.55l-3.74 -1.45"})]})}}function Ze({size:e=20,color:t="currentColor",className:n=""}){return(0,c.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round",className:n,"aria-hidden":!0,children:(0,c.jsx)("path",{d:"M21 4H3l7.2 8.5V19l3.6 2v-8.5L21 4z"})})}function qe({size:e=20,color:t="currentColor",className:n=""}){return(0,c.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round",className:n,"aria-hidden":!0,children:(0,c.jsx)("path",{d:"m9 6 6 6-6 6"})})}function Ve({size:e=20,color:t="currentColor",className:n=""}){return(0,c.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round",className:n,"aria-hidden":!0,children:[(0,c.jsx)("path",{d:"M5 11h14a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2z"}),(0,c.jsx)("path",{d:"M8 11V7a4 4 0 1 1 8 0v4"})]})}function Xe({size:e=20,color:t="currentColor",filled:n=!1,className:o=""}){return(0,c.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:n?t:"none",stroke:t,strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round",className:o,"aria-hidden":!0,children:(0,c.jsx)("path",{d:"M12 3.6l2.6 5.28 5.83.85-4.22 4.11.997 5.8L12 16.9l-5.2 2.74.99-5.8L3.57 9.73l5.83-.85L12 3.6z"})})}function Qe({theme:e,itemCount:t=0,contentClassName:n="gap-2 px-0.5 py-0.5",className:o="",children:r}){const l=e.colors,a=(0,s.useRef)(null),[i,d]=(0,s.useState)(!1),[u,m]=(0,s.useState)(!1),[p,h]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if("undefined"==typeof window||!window.matchMedia)return;const e=window.matchMedia("(pointer: coarse)"),t=()=>h(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);const f=(0,s.useCallback)(()=>{const e=a.current;if(!e)return;const t=e.scrollWidth-e.clientWidth;d(e.scrollLeft>2),m(e.scrollLeft<t-2)},[]);(0,s.useEffect)(()=>{f(),window.addEventListener("resize",f);const e=a.current;let t;if(e&&"undefined"!=typeof ResizeObserver){t=new ResizeObserver(f),t.observe(e);for(const n of Array.from(e.children))t.observe(n)}return()=>{window.removeEventListener("resize",f),t?.disconnect()}},[f,t]);const x=e=>{const t=a.current;t&&t.scrollBy({left:e*Math.round(.7*t.clientWidth),behavior:"smooth"})},g=(0,s.useRef)({down:!1,lastX:0,travelled:0}),y=()=>{g.current.down=!1},b=(0,s.useCallback)(()=>g.current.travelled>4,[]),w=l.background??"#fff",k={width:44,height:44,cursor:"pointer",background:"none",border:"none",padding:0},v={width:26,height:26,border:`1px solid ${l.border}`,backgroundColor:w,color:l.primary,boxShadow:"0 4px 10px -4px rgba(15, 76, 92, 0.55)"};return(0,c.jsxs)("div",{className:`relative min-w-0 ${o}`,children:[i&&(0,c.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-y-0 left-0 z-[2] w-10",style:{background:`linear-gradient(to right, ${w}, transparent)`}}),i&&!p&&(0,c.jsx)("button",{type:"button","aria-label":"Scroll left",onClick:()=>x(-1),className:"absolute top-1/2 z-[3] flex -translate-y-1/2 items-center justify-center active:scale-90",style:{...k,left:-11},children:(0,c.jsx)("span",{className:"flex items-center justify-center rounded-full",style:v,children:(0,c.jsx)(qe,{size:14,className:"rotate-180"})})}),u&&(0,c.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-y-0 right-0 z-[2] w-10",style:{background:`linear-gradient(to left, ${w}, transparent)`}}),u&&!p&&(0,c.jsx)("button",{type:"button","aria-label":"Scroll right",onClick:()=>x(1),className:"absolute top-1/2 z-[3] flex -translate-y-1/2 items-center justify-center active:scale-90",style:{...k,right:-11},children:(0,c.jsx)("span",{className:"flex items-center justify-center rounded-full",style:v,children:(0,c.jsx)(qe,{size:14})})}),(0,c.jsx)("div",{ref:a,onScroll:f,onPointerDown:e=>{"touch"!==e.pointerType&&(g.current={down:!0,lastX:e.clientX,travelled:0})},onPointerMove:e=>{const t=g.current;if(!t.down)return;const n=t.lastX-e.clientX;t.lastX=e.clientX,t.travelled+=Math.abs(n),a.current&&(a.current.scrollLeft+=n)},onPointerUp:y,onPointerCancel:y,onPointerLeave:y,className:`flex cursor-grab select-none items-stretch overflow-x-auto [-webkit-overflow-scrolling:touch] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden active:cursor-grabbing ${n}`,children:r(b)})]})}function Je({groups:e,theme:t,bodyFont:n,className:o=""}){const r=t.colors,l=r.background??"#fff";return 0===e.length?null:(0,c.jsx)(Qe,{theme:t,itemCount:e.length,className:o,contentClassName:"items-center gap-2 px-0.5 py-0.5",children:t=>e.map((e,o)=>(0,c.jsxs)(s.default.Fragment,{children:[o>0&&(0,c.jsx)("span",{"aria-hidden":!0,className:"h-5 w-px flex-none self-center",style:{backgroundColor:r.border}}),e.label&&(0,c.jsx)("span",{className:"flex-none self-center text-[10px] font-extrabold uppercase tracking-[0.14em]",style:{color:r.textMuted,fontFamily:n},children:e.label}),e.options.map(o=>{const s=o.value===e.value;return(0,c.jsx)("button",{type:"button",onClick:()=>{t()||e.onChange(o.value)},className:"flex-none self-center whitespace-nowrap rounded-full px-3.5 py-1.5 text-[12px] font-bold tracking-[-0.01em] transition-colors active:translate-y-px",style:{fontFamily:n,border:`1px solid ${s?r.primary:r.border}`,backgroundColor:s?r.primary:l,color:s?r.primaryText:r.primary,cursor:"pointer"},children:o.label},o.value??"__all")})]},e.label??o))})}function _e({label:e,options:t,value:n,onChange:o,theme:r,bodyFont:l,className:s=""}){return(0,c.jsx)(Je,{groups:[{label:e,options:t,value:n,onChange:o}],theme:r,bodyFont:l,className:s})}function et(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function tt(e){return(e.description??e.proposition??"").trim()}var nt={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function ot(e){return"composite_and"===(t=et(e))||"composite_or"===t;var t}function rt(e){const t=e.source_data;if(!t)return[];try{const e=JSON.parse(t)?.composite?.components;return Array.isArray(e)?e.filter(e=>"number"==typeof e&&Number.isFinite(e)):[]}catch{return[]}}function lt(e){const t=e.home_team?.trim(),n=e.away_team?.trim();if(t&&n)return`${t} vs ${n}`;if(t)return t;if(n)return n;const o=e.eventId??e.event_id;return o?.trim()?o.trim():null}function st(e,t){if(!ot(e))return null;const n=function(e){return ot(e)?("composite_and"===(t=et(e))?"AND":"composite_or"===t?"OR":null)||function(e){const t=e.source_data;if(!t)return null;try{const e=JSON.parse(t)?.composite?.operator;if("and"===e)return"AND";if("or"===e)return"OR"}catch{return null}return null}(e):null;var t}(e);if(!n)return null;const o=rt(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:tt(o),eventLabel:lt(o),prop:o})}if(e.length>=2)return{operator:n,legs:e}}const r=function(e,t){const n=e.trim();if(!n)return null;const o=n.split(nt[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(tt(e),n);return r?{operator:n,legs:r.map(e=>({text:e,eventLabel:null,prop:null}))}:null}var at="#0F4C5C",it={aussierules_afl:"AFL",rugbyleague_nrl:"NRL",basketball_nba:"NBA",basketball_ncaab:"CBB",americanfootball_nfl:"NFL",americanfootball_ncaaf:"CFB",soccer_epl:"EPL",soccer_italy_serie_a:"SEA",soccer_spain_la_liga:"LIG",soccer_germany_bundesliga:"BUN",soccer_usa_mls:"MLS",baseball_mlb:"MLB",icehockey_nhl:"NHL",horse_racing_aus:"RLT",roulette:"RLT",dice:"DCE",cointrio:"CT3"},ct={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner"};function dt(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=it[e];if(o)return o;if(t&&e.startsWith(`${t}_`)){const n=e.slice(t.length+1).replace(/_/g," ").split(/\s+/).filter(Boolean).map(e=>e[0]).join("").slice(0,4).toUpperCase();if(n)return n}return e.startsWith("casino_")?e.slice(7,11).toUpperCase()||"CSN":e.slice(0,3).toUpperCase()||"·"}function ut(e,t){return e>0?`${e} today`:t>0?`${t} picks`:"No picks"}function mt(e,t){const n=t>0?Math.floor(t/68):e;return Math.max(2,Math.min(Math.ceil(e/2),n))}function pt(e){return!!e.is_composite_component||!!(t=et(e))&&t.startsWith("co_");var t}function ht(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function ft(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}function xt(e){const t=Number.isInteger(e);return new Intl.NumberFormat("en-AU",{style:"currency",currency:"AUD",minimumFractionDigits:t?0:2,maximumFractionDigits:2}).format(e)}function gt(e){const t="string"==typeof e?new Date(e.endsWith("Z")||/[+-]\d{2}:\d{2}$/.test(e)?e:e+"Z"):e;return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}).format(t)}function yt(e){return e.reduce((t,n)=>{const o=bt(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function bt(e,t){if(e.sport)return e.sport;if(ot(e)&&t)for(const n of rt(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var wt=["sports","casino","racing"];function kt(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=(et(e)??"").toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"sports"}function vt(e){return"racing"===kt(e)}function Nt(e){const t={};for(const n of e){const e=kt(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function Ft(e){const t=Nt(e);return wt.filter(e=>(t[e]?.length??0)>0)}function Ct(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";default:return"Choose a Sport"}}function Bt(e,t,n,o){return o&&o.length>0?o.includes(e):!(void 0!==t&&e<t||void 0!==n&&e>n)}function At(e,t,n){const o=n?.min_propositions??null,r=n?.max_propositions??null,l=(n?.allowed_propositions??e.allowed_propositions)?.filter(e=>(null==o||e>=o)&&(null==r||e<=r));if(l&&l.length>0)return null!=t&&l.includes(t)?{min:t,max:t}:{min:Math.min(...l),max:Math.max(...l)};const s=e.min_propositions??e.num_propositions??0,a=e.max_propositions??e.num_propositions??0;return{min:null!=o?Math.max(s,o):s,max:null!=r&&a>0?Math.min(a,r):r??a}}function Mt(e){const t=e.allocations?.find(e=>"jackpot"===e.allocation_type);return t&&(t.dollar_amount??0)>0?{enabled:!0,amount:t.dollar_amount,limit:e.jackpot_limit??0,progressive:!1}:!0===e.jackpot_enabled&&t&&t.percentage>0?{enabled:!0,amount:e.jackpot_amount??0,limit:e.jackpot_limit??0,progressive:!0}:!0===e.jackpot_enabled&&(e.jackpot_amount??0)>0?{enabled:!0,amount:e.jackpot_amount,limit:e.jackpot_limit??0,progressive:!1}:{enabled:!1,amount:0,limit:0,progressive:!1}}function St(e,t,n){return"racing"===e||!(!t?.length||!t.every(vt))||!!n&&Boolean(t?.some(e=>e.sport===n||(e.sport||"").startsWith(`${n}_`)))}function zt(e,t){const n={basketball_nba:"NBA Basketball",americanfootball_nfl:"NFL Football",icehockey_nhl:"NHL Hockey",baseball_mlb:"MLB Baseball",soccer_epl:"Premier League",soccer_usa_mls:"MLS Soccer",horse_racing_aus:"Horse Racing",casino_blackjack:"Blackjack",casino_roulette:"Roulette",casino_slots:"Slots",aussierules_afl:"AFL",rugbyleague_nrl:"NRL","AUSTRALIAN-RULES":"AFL","RUGBY-LEAGUE":"NRL",cricket_international_t20:"T20 International",cricket_test_match:"Test Cricket"};return e.startsWith("casino_")?n[e]??e.replace(/^casino_/,"").replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):t&&e.startsWith(`${t}_`)?e.slice(t.length+1).replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):n[e]||e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}function Lt(e,t,n){const o=t?.[e];return o||zt(e,n)}function Pt(e,t){const n=t?.[e];return n||function(e){return{sports:"Sports",casino:"Casino",racing:"Racing"}[e]??e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}(e)}function Ot(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function Dt(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function Tt(e,t,n){return!t||!!e&&(Dt(e,t,n)||Dt(t,e,n))}function Et(e,t){return t.find(t=>t.id===e)}function jt(e,t){let n=e;return t?.category&&(n=n.filter(e=>kt(e)===t.category)),t?.sport&&(n=n.filter(n=>ot(n)?function(e,t,n,o){if(Tt(e.sport,t,n))return!0;if(!o)return!1;for(const r of rt(e)){const e=Et(r,o);if(e&&Tt(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):Tt(n.sport,t.sport,t.sportBaseKey))),n}function Yt(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t?t:"sports"}(e)===t}function Ht(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>Dt(t,e,n))}function Rt(e,t,n){return!(n?.category&&!Yt(e,n.category))&&!(n?.sport&&!Ht(e,n.sport,n.sportBaseKey))&&jt(It(t,e),n).length>0}function Gt(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!Yt(e,t.category)||t.sport&&!Ht(e,t.sport,t.sportBaseKey))):e}function Wt(e,t){if(e.sport||!ot(e))return e;const n=bt(e,t);return"Other"===n?e:{...e,sport:n}}function It(e,t,n){const o=t.allowed_sports,r=o&&o.length>0,l=t.allowed_markets&&t.allowed_markets.length>0;return r||l?e.filter(s=>{if(pt(s))return!1;if(r)if(ot(s)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>Dt(e.sport,t,n)))return!0;if(!o)return!1;for(const r of rt(e)){const e=Et(r,o);if(e?.sport&&t.some(t=>Dt(e.sport,t,n)))return!0}return!1}(s,o,n,e))return!1}else if(!s.sport||!o.some(e=>Dt(s.sport,e,n)))return!1;return!(l&&!function(e,t){const n=t.allowed_markets;if(!n||0===n.length)return!0;const o=et(e);return!!o&&n.includes(o)}(s,t))}).map(t=>Wt(t,e)):e.filter(e=>!pt(e)).map(t=>Wt(t,e))}function Ut(e,t){const n=e.available_days;if(!n)return!0;if(0===n.length)return!0;const o=((t??new Date).getDay()+6)%7;return n.includes(o)}var $t=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function Kt(e,t,n){return St(t,e,n)?function(e){return e.reduce((e,t)=>{const n=t.away_team||t.eventId||"Race";return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e):function(e){return e.reduce((e,t)=>{const n=`${t.home_team} vs ${t.away_team}`;return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e)}function Zt(e){const t=[];for(const n of e){const e=n.home_team&&n.away_team&&!vt(n)?`${n.home_team} vs ${n.away_team}`:n.away_team||n.home_team||n.eventId||null,o=t[t.length-1],r=null===e?null:t.find(t=>t.key===e);r?r.props.push(n):null===e&&null===o?.key?o.props.push(n):t.push({key:e,props:[n]})}return t}function qt(e,t){if(e===t)return[e];if(t<e)return[e];const n=[];for(let o=e;o<=t;o++)n.push(o);return n}function Vt(e,t){const n=[...e].sort(()=>Math.random()-.5).slice(0,t),o=[],r=[];for(const l of n)Math.random()<.5?o.push(l):r.push(l);return{yesPicks:o,noPicks:r}}var Xt=new Map,Qt=new Map;function Jt(e,t,n){return`data:image/svg+xml;utf8,${encodeURIComponent(function(e,t,n){let o=e.replace(/<\?xml[^?]*\?>/g,"").replace(/<!--[\s\S]*?-->/g,"");const r=["width:100%","height:100%","display:block"];t&&r.push(`color:${t}`),n&&r.push(`--icon-accent:${n}`);const l=`style="${r.join(";")}"`;return o=o.replace(/<svg\b([^>]*)>/,(e,t)=>`<svg${t.replace(/\s+style\s*=\s*"[^"]*"/i,"")} ${l}>`),o}(e,t,n))}`}function _t({iconUrl:e,width:t,height:n,iconColor:o,accentColor:r,ariaLabel:l,style:a}){const i=Ne(e),[d,u]=s.default.useState(()=>i??Xt.get(e)??null);s.default.useEffect(()=>{const t=Ne(e);if(t)return void u(t);if(Xt.has(e))return void u(Xt.get(e));let n=!1;return function(e){const t=Xt.get(e);if(void 0!==t)return Promise.resolve(t);const n=Qt.get(e);if(n)return n;const o=fetch(e,{credentials:"omit"}).then(e=>{if(!e.ok)throw new Error(`SVG fetch failed: ${e.status}`);return e.text()}).then(t=>(Xt.set(e,t),Qt.delete(e),t)).catch(t=>{throw Qt.delete(e),t});return Qt.set(e,o),o}(e).then(e=>{n||u(e)}).catch(()=>{n||u(null)}),()=>{n=!0}},[e]);const m={display:"inline-block",width:t,height:n,lineHeight:0,...a};return d?(0,c.jsx)("img",{src:Jt(d,o,r),alt:l??"","aria-hidden":!l||void 0,role:l?"img":"presentation","aria-label":l||void 0,style:{...m,objectFit:"contain"}}):(0,c.jsx)("img",{src:e,alt:l??"","aria-hidden":!l||void 0,style:{...m,objectFit:"contain"}})}function en({iconUrl:e,gameName:t,onPress:n,size:o=120,brandColor:r="#0F4C5C",cardColor:l="#DDD9D2",iconColor:s,accentColor:a,captionColor:i="#14687C",className:d,ariaLabel:u}){const m=(t||"").toUpperCase(),p=o/360,h=s??l,f=I(r,a,h),x=n=>(0,c.jsxs)("div",{style:{position:"relative",width:o,height:o},children:[(0,c.jsxs)("svg",{viewBox:"0 0 360 360",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%",role:"img","aria-label":u??`Press to play ${t}`,children:[(0,c.jsx)("rect",{x:"2",y:"2",width:"356",height:"356",rx:"78",fill:l,stroke:r,strokeWidth:"4"}),(0,c.jsx)("g",{style:{transform:n?"translate(0px, 0px)":"translate(50px, 50px)",transformOrigin:"145px 110px",transition:"transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1)"},children:(0,c.jsx)("rect",{x:"40",y:"5",width:"210",height:"210",rx:"42",fill:r,opacity:"0.30"})}),(0,c.jsx)("g",{style:{transform:n?"translate(0px, 0px)":"translate(25px, 25px)",transformOrigin:"145px 110px",transition:"transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1)"},children:(0,c.jsx)("rect",{x:"40",y:"5",width:"210",height:"210",rx:"42",fill:r,opacity:"0.55"})}),(0,c.jsx)("rect",{x:"40",y:"5",width:"210",height:"210",rx:"42",fill:r}),(0,c.jsx)("text",{x:"180",y:"305",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"32",letterSpacing:"1.5",textAnchor:"middle",fontWeight:800,fill:r,children:"PRESS TO PLAY"}),(0,c.jsx)("text",{x:"180",y:"338",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"18",letterSpacing:"2",textAnchor:"middle",fontWeight:500,fill:i,children:m})]}),(0,c.jsx)("div",{style:{position:"absolute",left:60*p,top:25*p,width:170*p,height:170*p,pointerEvents:"none"},children:(0,c.jsx)(_t,{iconUrl:e,width:"100%",height:"100%",iconColor:h,accentColor:f})})]});return n?(0,c.jsx)(tn,{size:o,onPress:n,className:d,ariaLabel:u??`Press to play ${t}`,renderInner:x}):(0,c.jsx)("div",{className:d,style:{width:o,height:o},children:x(!1)})}function tn({size:e,onPress:t,className:n,ariaLabel:o,renderInner:r}){const[l,a]=(0,s.useState)(!1),[i,d]=(0,s.useState)(!1),u=i?"scale(0.96)":"scale(1)";return(0,c.jsx)("button",{type:"button",onClick:t,"aria-label":o,className:n,onMouseEnter:()=>a(!0),onMouseLeave:()=>{a(!1),d(!1)},onMouseDown:()=>d(!0),onMouseUp:()=>d(!1),onTouchStart:()=>d(!0),onTouchEnd:()=>d(!1),onBlur:()=>{d(!1),a(!1)},style:{width:e,height:e,padding:0,background:"transparent",border:0,cursor:"pointer",borderRadius:e/360*78,transform:u,transition:"transform 140ms ease-out"},children:r(l||i)})}function nn(e){return e.selectionCard??e.backgroundAlt}function on({color:e,size:t=20,label:n="Loading"}){return(0,c.jsx)("div",{role:"status","aria-label":n,className:"inline-flex items-center justify-center",children:(0,c.jsxs)("svg",{className:"animate-spin",style:{width:t,height:t,color:e},viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,children:[(0,c.jsx)("circle",{cx:"12",cy:"12",r:"10",strokeOpacity:"0.25"}),(0,c.jsx)("path",{d:"M12 2a10 10 0 0 1 10 10",strokeLinecap:"round"})]})})}function rn({color:e="#ffffff",size:t=18}){return(0,c.jsx)(on,{color:e,size:t,label:"Loading"})}function ln({color:e,className:t="",style:n}){return(0,c.jsx)("span",{className:`inline-block animate-pulse rounded-md ${t}`,style:{backgroundColor:e,opacity:.35,...n},"aria-hidden":!0})}function sn({className:e="",bodyFont:t,children:n}){return(0,c.jsx)("div",{className:`flex flex-col min-h-full w-full min-w-0 ${e}`,style:{fontFamily:t},children:(0,c.jsx)("div",{className:"flex-1 w-full min-w-0",children:n})})}function an({colors:e,count:t=2}){return(0,c.jsx)("div",{className:"grid grid-cols-1 min-[400px]:grid-cols-2 gap-2.5 sm:gap-3 w-full","aria-hidden":!0,children:Array.from({length:t}).map((t,n)=>(0,c.jsxs)("div",{className:"flex flex-col items-start justify-center gap-2 sm:gap-3 rounded-2xl border p-3.5 sm:p-5 w-full min-h-[112px] sm:min-h-[140px]",style:{backgroundColor:nn(e),borderColor:e.border},children:[(0,c.jsx)(ln,{color:e.textMuted,className:"h-5 w-[11rem] max-w-full"}),(0,c.jsx)(ln,{color:e.textMuted,className:"h-3 w-24 max-w-[70%]"})]},n))})}function cn({colors:e,count:t=4}){return(0,c.jsx)("div",{className:"grid grid-cols-2 gap-3 w-full","aria-hidden":!0,children:Array.from({length:t}).map((t,n)=>(0,c.jsxs)("div",{className:"flex flex-col items-center gap-2 rounded-2xl border px-3 py-3 sm:flex-row sm:gap-3.5 sm:px-4 sm:py-4 w-full min-w-0",style:{backgroundColor:nn(e),borderColor:e.border},children:[(0,c.jsx)(ln,{color:e.textMuted,className:"h-10 w-10 sm:h-12 sm:w-12 rounded-xl shrink-0"}),(0,c.jsxs)("div",{className:"flex w-full min-w-0 flex-col items-center gap-1.5 sm:w-auto sm:items-start",children:[(0,c.jsx)(ln,{color:e.textMuted,className:"h-3.5 w-20 max-w-full"}),(0,c.jsx)(ln,{color:e.textMuted,className:"h-2.5 w-12 max-w-[80%]"})]})]},n))})}function dn({colors:e,count:t=3}){return(0,c.jsx)("div",{className:"grid grid-cols-1 gap-2.5 sm:gap-3 w-full","aria-hidden":!0,children:Array.from({length:t}).map((t,n)=>(0,c.jsxs)("div",{className:"flex min-h-16 items-center justify-between gap-3 rounded-2xl border px-3.5 py-3.5 sm:px-5 sm:py-4 w-full",style:{backgroundColor:nn(e),borderColor:e.border},children:[(0,c.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,c.jsx)("div",{className:"rounded-xl px-3 py-2.5",style:{backgroundColor:e.backgroundAlt},children:(0,c.jsx)(ln,{color:e.textMuted,className:"h-4 w-44 max-w-full"})}),(0,c.jsx)(ln,{color:e.textMuted,className:"h-3 w-40 max-w-[80%] mt-2"})]}),(0,c.jsx)(ln,{color:e.textMuted,className:"h-5 w-5 rounded shrink-0"})]},n))})}function un({colors:e,tileSize:t=116}){return(0,c.jsxs)("div",{className:"flex flex-col items-center rounded-3xl border px-5 pt-[22px] pb-5 w-[86%] max-w-[380px] mx-auto",style:{borderColor:e.border,backgroundColor:nn(e)},"aria-hidden":!0,children:[(0,c.jsx)(ln,{color:e.textMuted,className:"rounded-2xl",style:{width:t,height:t}}),(0,c.jsx)(ln,{color:e.textMuted,className:"h-3 w-11 mt-3"}),(0,c.jsx)(ln,{color:e.textMuted,className:"h-5 w-36 max-w-[80%] mt-2"}),(0,c.jsx)(ln,{color:e.textMuted,className:"h-3 w-48 max-w-[90%] mt-3"}),(0,c.jsx)(ln,{color:e.textMuted,className:"h-3 w-40 max-w-[75%] mt-1.5"})]})}function mn({colors:e}){return(0,c.jsx)("div",{className:"grid grid-cols-3 gap-2 mb-3 w-full","aria-hidden":!0,children:[0,1,2].map(t=>(0,c.jsx)(ln,{color:e.textMuted,className:"h-[38px] w-full rounded-full"},t))})}function pn({colors:e,count:t=3,tileSize:n=116,showTierTabs:o=!1}){return(0,c.jsxs)("div",{className:"flex flex-col w-full","aria-hidden":!0,children:[o&&(0,c.jsx)(mn,{colors:e}),(0,c.jsx)(un,{colors:e,tileSize:n}),t>1&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"flex items-center justify-center gap-2.5 pt-4 pb-2",children:Array.from({length:t}).map((t,n)=>(0,c.jsx)(ln,{color:e.textMuted,className:"rounded-full",style:{width:0===n?22:7,height:7}},n))}),(0,c.jsxs)("div",{className:"mt-1 pt-2.5",style:{borderTop:`1px solid ${e.border}`},children:[(0,c.jsx)(ln,{color:e.textMuted,className:"h-2.5 w-16 mb-2"}),(0,c.jsx)("div",{className:"grid gap-1",style:{gridTemplateColumns:"repeat(auto-fit, minmax(84px, 1fr))"},children:Array.from({length:t}).map((t,n)=>(0,c.jsxs)("div",{className:"flex flex-col items-center gap-1.5 px-1 py-1.5",children:[(0,c.jsx)(ln,{color:e.textMuted,className:"h-[52px] w-[52px] rounded-2xl"}),(0,c.jsx)(ln,{color:e.textMuted,className:"h-2.5 w-12"})]},n))})]})]})]})}function hn({colors:e,groups:t=2,rowsPerGroup:n=2}){return(0,c.jsxs)("div",{className:"space-y-4 sm:space-y-6 pb-16 w-full","aria-hidden":!0,children:[(0,c.jsx)(ln,{color:e.textMuted,className:"h-7 w-[4.5rem] rounded-full"}),(0,c.jsx)("div",{className:"space-y-4",children:Array.from({length:t}).map((t,o)=>(0,c.jsxs)("div",{className:"rounded-xl border overflow-hidden w-full",style:{borderColor:e.border,backgroundColor:nn(e)},children:[(0,c.jsxs)("div",{className:"px-4 py-3 flex flex-col gap-1.5",style:{backgroundColor:e.backgroundAlt},children:[(0,c.jsx)(ln,{color:e.textMuted,className:"h-4 w-44 max-w-[80%]"}),(0,c.jsx)(ln,{color:e.textMuted,className:"h-3 w-24"})]}),(0,c.jsx)("div",{className:"divide-y",style:{borderColor:e.border},children:Array.from({length:n}).map((t,n)=>(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 px-4 py-3 sm:py-3.5",style:{borderColor:e.border},children:[(0,c.jsx)(ln,{color:e.textMuted,className:"h-4 flex-1 max-w-[58%]"}),(0,c.jsxs)("div",{className:"flex gap-1.5 shrink-0",children:[(0,c.jsx)(ln,{color:e.textMuted,className:"h-7 w-11 sm:h-8 sm:w-12 rounded-lg"}),(0,c.jsx)(ln,{color:e.textMuted,className:"h-7 w-11 sm:h-8 sm:w-12 rounded-lg"})]})]},n))})]},o))})]})}function fn({colors:e}){return(0,c.jsx)("div",{className:"flex border-b mb-4 w-full",style:{borderColor:e.border},"aria-hidden":!0,children:[0,1].map(t=>(0,c.jsxs)("div",{className:"flex items-center gap-2 px-4 py-2.5 border-b-2 border-transparent",children:[(0,c.jsx)(ln,{color:e.textMuted,className:"h-3.5 w-[4.25rem]"}),(0,c.jsx)(ln,{color:e.textMuted,className:"h-5 min-w-[1.25rem] w-5 rounded-full"})]},t))})}function xn({colors:e}){return(0,c.jsxs)("div",{className:"rounded-lg border overflow-hidden w-full",style:{borderColor:e.border,backgroundColor:nn(e)},"aria-hidden":!0,children:[(0,c.jsxs)("div",{className:"w-full px-4 py-3 flex items-center justify-between gap-3",children:[(0,c.jsxs)("div",{className:"min-w-0 flex-1 flex flex-col gap-1.5",children:[(0,c.jsx)(ln,{color:e.textMuted,className:"h-[18px] w-40 max-w-[75%]"}),(0,c.jsx)(ln,{color:e.textMuted,className:"h-3 w-32 max-w-[65%]"})]}),(0,c.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[(0,c.jsx)(ln,{color:e.textMuted,className:"h-3.5 w-10"}),(0,c.jsx)(ln,{color:e.textMuted,className:"h-6 w-[3.75rem] rounded-full"})]})]}),(0,c.jsx)("div",{className:"border-t divide-y w-full",style:{borderColor:e.border},children:[0,1,2].map(t=>(0,c.jsxs)("div",{className:"px-4 py-2.5 flex items-center justify-between gap-3",children:[(0,c.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col gap-1",children:[(0,c.jsx)(ln,{color:e.textMuted,className:"h-3.5 w-[88%]"}),(0,c.jsx)(ln,{color:e.textMuted,className:"h-3 w-[70%]"})]}),(0,c.jsx)(ln,{color:e.textMuted,className:"h-5 w-10 rounded shrink-0"})]},t))})]})}function gn({colors:e,rows:t=2}){return(0,c.jsxs)("div",{className:"w-full flex flex-col","aria-hidden":!0,children:[(0,c.jsx)(fn,{colors:e}),(0,c.jsx)("div",{className:"space-y-3 w-full",children:Array.from({length:t}).map((t,n)=>(0,c.jsx)(xn,{colors:e},n))})]})}function yn({colors:e,bodyFont:t,message:n,className:o="",variant:r="category",showLogoArea:l=!1,gameCardCount:s=3,categoryCount:a=2,showTierTabs:i=!1}){const d=(()=>{switch(r){case"sport":return(0,c.jsx)(cn,{colors:e,count:Math.max(a,2)});case"event":return(0,c.jsx)(dn,{colors:e});case"games":return(0,c.jsx)(pn,{colors:e,count:s,showTierTabs:i});case"propositions":return(0,c.jsx)(hn,{colors:e});case"entries":return(0,c.jsx)(gn,{colors:e,rows:2});default:return(0,c.jsx)(an,{colors:e,count:a})}})(),u=n?.trim()||"Loading";return(0,c.jsx)(sn,{className:o,bodyFont:t,children:(0,c.jsxs)("div",{role:"status","aria-live":"polite","aria-label":u,className:"w-full min-w-0",children:[n?.trim()?(0,c.jsx)("p",{className:"text-sm text-center mb-4",style:{color:e.textMuted,fontFamily:t,margin:0},children:n}):null,d]})})}function bn(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function wn(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function kn(e){if(!e||e.quick_pick_only)return!1;const t=wn(e.selection_scope);if("samegamemulti"===wn(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(wn);return n.includes("samegame")||n.includes("samegamemulti")}function vn(e){return(e.eventId??e.event_id)?.trim()||null}function Nn(e){const t=new Map;for(const n of e){if(!An(n))continue;const e=vn(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=Fn(o.homeTeam,n.home_team),o.awayTeam=Fn(o.awayTeam,n.away_team),o.sport=Fn(o.sport,n.sport),o.league=Fn(o.league,n.league),o.commenceTime=Bn(o.commenceTime,n.commence_time)):t.set(e,{id:e,homeTeam:n.home_team?.trim()||void 0,awayTeam:n.away_team?.trim()||void 0,commenceTime:n.commence_time?.trim()||void 0,sport:n.sport?.trim()||void 0,league:n.league?.trim()||void 0,propositionCount:1})}return[...t.values()].sort((e,t)=>{const n=Cn(e.commenceTime),o=Cn(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function Fn(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function Cn(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function Bn(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=Cn(e),r=Cn(n);return r!==o?r<o?n:e:e.localeCompare(n)<=0?e:n}function An(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function Mn(e,t){return t?e.filter(e=>An(e)&&vn(e)===t):[]}function Sn(e,t){return!!t&&e.length>0&&e.every(e=>An(e)&&vn(e)===t)}var zn={signature:1,premier:2,exclusive:3},Ln=[{id:"signature",label:"Signature Games",shortLabel:"Signature",level:1},{id:"premier",label:"Premier Games",shortLabel:"Premier",level:2},{id:"exclusive",label:"Exclusive Games",shortLabel:"Exclusive",level:3}];function Pn(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function On(e,t){return e.filter(e=>Pn(e)===t)}function Dn(e){const t=new Set(e.map(Pn));return Ln.filter(e=>t.has(e.level))}function Tn(e){return Dn(e)[0]?.id??"signature"}var En=[4,12],jn=[5,10,20,50];function Yn(e){return!!e&&!e.quick_pick_only&&"safety_net"===(e.rule??"").trim().toLowerCase()}function Hn(e){const t=e.payout_structure;return{margin:e.operator_margin??0,perLegProbability:t?.per_leg_probability??.5,perfectMultiple:t?.perfect_prize?.stake_multiple??25,perfectBaseLegs:t?.perfect_prize?.base_legs??6,nearMissBudgetFraction:t?.near_miss?.budget_fraction??.5,roundTo:t?.round_to??5}}function Rn(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)}function Gn(e,t){if(t<0||t>e)return 0;let n=1;for(let o=0;o<t;o+=1)n=n*(e-o)/(o+1);return Math.round(n)}function Wn(e,t,n,o){const r=Math.max(0,Math.min(n,t)),l=e*o.perfectMultiple*Math.pow(2,t-o.perfectBaseLegs),s=r>0?e*(1-o.margin)*o.nearMissBudgetFraction/r:0,a=Math.pow(1/o.perLegProbability,t),i=[];let c=Gn(t,0);for(let d=1;d<=r;d+=1)c+=Gn(t,d),i.push(Rn(s*a/c,o.roundTo));return{legs:t,stake:e,allowedMisses:r,perfect:l,nearMiss:i,sweep:l+i.reduce((e,t)=>e+t,0)}}function In(e,t){if(t<0||t>e.allowedMisses)return 0;let n=0===t?e.perfect:0;for(let o=Math.max(1,t);o<=e.nearMiss.length;o+=1)n+=e.nearMiss[o-1];return n}function Un(e){return e.includes(8)?8:e[Math.floor(e.length/2)]}function $n(e){return e.toLowerCase().replace(/[^a-z]+/g," ").trim()}function Kn(e,t){const n=$n(t);return e.permitted_rules?.find(e=>$n(e.name??"").includes(n))??null}function Zn(e,t,n){const o=t?.min_propositions??n,r=t?.max_propositions??null;return e.filter(e=>e>=o&&(null==r||e<=r))}function qn(e){if(!Yn(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??En[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??En[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n),r=Kn(e,"Extra Shot"),l=Kn(e,"Double Shot"),s=Zn(o,r,4).filter(e=>e>1),a=Zn(o,l,6).filter(e=>e>2);if(0===s.length)return null;const i=[{id:"extra_shot",label:"Extra Shot",allowedMisses:1,stat:"Bigger payout",explain:"Miss one leg and you win the All but 1 prize. Get every leg right and you win both — the Perfect prize on top.",legOptions:s,defaultLegs:Un(s),ruleId:r?.id??null}],c=!e.permitted_rules?.length||!!l;a.length>0&&c&&i.push({id:"double_shot",label:"Double Shot",allowedMisses:2,stat:"Safer play",explain:"Miss two legs and you win the All but 2 prize. Miss one and you win two prizes. Get every leg right and you win all three — the whole stack.",legOptions:a,defaultLegs:Un(a),ruleId:l?.id??null});const d=Math.max(e.min_bet??5,.01),u=e.max_bet??null,m=jn.filter(e=>null===u||e<=u);return{modes:i,defaultModeId:"extra_shot",defaultStake:Math.min(Math.max(10,d),u??10),minStake:d,maxStake:u,quickAdds:m,tagline:"The wider the safety net, the more misses it catches. The narrower it is, the bigger the top prize.",pricing:Hn(e)}}function Vn(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function Xn(e,t,n){const o=Math.max(0,e-t),r=Wn(20,e,o,n),l=[];for(let s=0;s<=o;s+=1){const t=Math.round(In(r,s));l.push({misses:s,label:`${e-s}/${e}`,multiplier:t/20,payout20:t})}return l}function Qn(e,t){return[{id:"net-1",label:"Extra Shot",stat:"Bigger payout",detail:["One wrong wins a prize","Perfect wins both","Miss twice and the ticket does not pay"],dividends:Xn(e,e-1,t),expectedCorrect:e-1},{id:"net-2",label:"Double Shot",stat:"Safer play",detail:["Two wrong wins a prize","One wrong wins two","Perfect wins all three"],dividends:Xn(e,e-2,t),expectedCorrect:e-2}]}function Jn(e,t){if(!e||e.quick_pick_only)return null;const n=function(e){return(e??"").trim().toLowerCase()}(e.rule),o=t??e.num_propositions??e.min_propositions??e.allowed_propositions?.[0]??0;return"safety_net"===n&&o>0?function(e,t){return{mode:"selection",kind:"safety_net",title:"Choose your safety net",headline:"2 Ways to PLAY, more ways to PAY",heroTagline:"The wider the safety net, the more misses it catches. The narrower it is, the bigger the top prize.",legCount:t,options:Qn(t,Hn(e)),continueLabel:"Continue to picks"}}(e,o):"exact"===n&&o>0?function(e,t){return{mode:"selection",kind:"exact",title:"All or nothing",headline:"Get it PERFECT, take the top PAY",heroTagline:"Every pick has to land. Miss a single one and the ticket is gone — but a clean sweep pays the biggest prize.",legCount:t,options:Vn(t),continueLabel:"Continue to picks"}}(0,o):"pick"===n&&o>0?function(e,t){return{mode:"description",kind:"pick",title:"How it plays",headline:"Every hit PLAYS, every hit PAYS",heroTagline:"No all-or-nothing — your multiplier climbs with every correct pick.",legCount:t,highlights:["Make your yes/no picks across the available markets","Each correct pick pushes your multiplier higher","Land fewer than the full card and you can still cash"],continueLabel:"Continue to picks"}}(0,o):null}function _n(e){return null!=Jn(e)}var eo=[500,1e3,2500,5e3,7500,1e4,12500,15e3],to=[12,11,10,9,8,7,6];function no(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function oo(e){return Math.round(100*e)/100}function ro(e,t,n=.21875){const o=Math.pow(2,t),r=e/(1-n)/o,l=Number.isInteger(r),s=oo(r),a=l?r:oo(.96*r);return{legs:t,exactStake:s,stake:a,margin:1-e/(a*o),multiple:e/a,oddsOneIn:o,discounted:!l}}function lo(e,t=to){return{dividend:e,rungs:t.map(t=>ro(e,t))}}function so(e,t){if(!no(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,r=to.filter(e=>e>=n&&e<=o);if(0===r.length)return null;const l=t?.dividends??eo;return{dividends:l.map(e=>lo(e,r)),defaultDividend:l.includes(1e4)?1e4:l[Math.floor(l.length/2)],defaultLegs:r.includes(9)?9:r[Math.floor(r.length/2)],tagline:"The dividend is set. The win is yours to build."}}function ao(e,t){const n=e.allowed_propositions&&e.allowed_propositions.length>0?e.allowed_propositions.map(Number):[],o=e.min_propositions??e.num_propositions??null,r=e.max_propositions??e.num_propositions??null,l=0===n.length&&null!==o&&null!==r&&r>0,s=n.length>0?n:l?qt(o,r):[],a=new Map;for(const f of t?.top_payouts??[]){const e=Number(f.proposition_count),t=Number(f.net_payout),n=Number(f.bet_amount??20);!Number.isFinite(e)||e<=0||a.set(e,{count:e,payout:Number.isFinite(t)?t:0,betAmount:Number.isFinite(n)&&n>0?n:20})}for(const f of s){const e=Number(f);a.has(e)||a.set(e,{count:e,payout:0,betAmount:20})}const i=Array.from(a.values()).sort((e,t)=>e.count-t.count),c=s.length>0?Math.max(...s.map(Number)):0,d=no(e)?so(e):null,u=d?d.dividends.map(e=>({dividend:e.dividend,stakeFrom:Math.min(...e.rungs.map(e=>e.stake))})):void 0,m=d?[]:i.map(e=>({count:e.count,payout20:e.payout>0&&e.betAmount>0?e.payout/e.betAmount*20:0})),p=Jn(e,c),h="safety_net"===p?.kind?(p.options??[]).flatMap(e=>e.dividends?.length?[{id:e.id,label:e.label,tiers:e.dividends.map(e=>({label:e.label,payout20:e.payout20}))}]:[]):[];return{legOptions:s.map(Number),maxLegCount:c,tiers:m,modes:h,pydDividends:u,hasGenericDividends:(n.length>0||l)&&m.some(e=>e.payout20>0),minBet:Math.max(e.min_bet??1,1),maxBet:e.max_bet??null}}function io({tiers:e,modes:t,pydDividends:n,onPlayCount:o,minBet:r=1,maxBet:l=null,colors:a,bodyFont:i,headingFont:d}){const u=e=>Math.min(Math.max(e,r),l??1/0),[m,p]=(0,s.useState)(()=>String(u(20))),h=parseFloat(m),f=u(Number.isFinite(h)&&h>0?h:20),x=f/20,g=!!(t?.length||n?.length||e.some(e=>e.payout20>0)),y=!!t?.length;if(!g)return null;const b=(0,c.jsxs)("p",{className:"mb-2 flex items-center gap-1 text-[10px] italic",style:{color:a.textMuted,margin:"0 0 8px"},children:["Example values for a",(0,c.jsxs)("span",{className:"inline-flex items-center not-italic",style:{fontWeight:700,fontSize:11},children:["$",(0,c.jsx)("input",{type:"number",min:r,max:l??void 0,value:m,onChange:e=>p(e.target.value),onBlur:()=>p(String(f)),"aria-label":"Example bet amount",style:{width:74,marginLeft:2,padding:"2px 5px",borderRadius:6,border:`1px solid ${a.border}`,backgroundColor:a.background??"#fff",color:a.text,fontSize:11,fontWeight:600,fontStyle:"normal",fontFamily:i}})]}),"bet",null!=l?` (${xt(r)}–${xt(l)})`:` (min ${xt(r)})`,"."]}),w={marginTop:10,borderRadius:14,border:`1px solid ${a.border}`,backgroundColor:a.backgroundAlt??"#FCFBF9",padding:"12px 14px",textAlign:"left",fontFamily:i};return(0,c.jsxs)("div",{className:"w-full",children:[y&&(0,c.jsx)("div",{className:"text-[11px] font-bold uppercase",style:{color:a.textMuted,letterSpacing:"0.14em"},children:"Compare dividends"}),(0,c.jsxs)("div",{style:w,children:[!n?.length&&b,t?.length?t.map((e,t)=>(0,c.jsxs)("div",{style:{borderTop:0===t?"none":`1px solid ${a.border}`,paddingTop:0===t?0:8,marginTop:0===t?0:8},children:[(0,c.jsx)("div",{className:"text-[11px] font-bold mb-1",style:{color:a.text,fontFamily:d},children:e.label}),e.tiers.map(e=>(0,c.jsxs)("div",{className:"flex items-center justify-between py-1",style:{gap:14},children:[(0,c.jsxs)("span",{style:{color:a.textMuted,fontSize:11,flex:1},children:[e.label," correct"]}),(0,c.jsx)("span",{style:{fontWeight:700,color:a.heading??a.text,fontSize:12},children:xt(e.payout20*x)})]},e.label))]},e.id)):n?.length?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"flex items-center justify-between pb-1 mb-1",style:{borderBottom:`1px solid ${a.border}`},children:[(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Dividend"}),(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Stake from"})]}),n.map(e=>(0,c.jsxs)("div",{className:"flex items-center justify-between py-1",children:[(0,c.jsx)("span",{style:{fontWeight:700,color:a.heading??a.text,fontSize:12},children:xt(e.dividend)}),(0,c.jsx)("span",{style:{fontWeight:600,color:a.text,fontSize:12},children:xt(e.stakeFrom)})]},e.dividend)),(0,c.jsx)("p",{className:"mt-2 text-[10px] italic",style:{color:a.textMuted},children:"You set the dividend before kick-off. Longer climbs start from a smaller stake."})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"flex items-center justify-between pb-1 mb-1",style:{borderBottom:`1px solid ${a.border}`},children:[(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Legs played"}),(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Payout"})]}),e.map(e=>{const t=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{style:{fontWeight:600,color:o?a.primary:a.text,fontSize:12},children:[e.count," legs"]}),(0,c.jsx)("span",{style:{fontWeight:600,color:e.payout20>0?a.text:a.textMuted,fontSize:12},children:e.payout20>0?xt(e.payout20*x):"—"})]});return o?(0,c.jsx)("button",{type:"button",onClick:()=>o(e.count),className:"flex w-full items-center justify-between py-1.5 text-left",style:{background:"transparent",border:"none",cursor:"pointer"},children:t},e.count):(0,c.jsx)("div",{className:"flex items-center justify-between py-1",children:t},e.count)})]})]})]})}function co({tabs:e,active:t,onChange:n,colors:o,bodyFont:r}){return e.length<=1?null:(0,c.jsx)("div",{className:"grid gap-2 mb-3",style:{gridTemplateColumns:`repeat(${Math.min(e.length,3)}, minmax(0, 1fr))`},children:e.map(e=>{const l=e.id===t;return(0,c.jsxs)("button",{type:"button",onClick:()=>n(e.id),className:"min-w-0 rounded-full px-1 py-2.5 text-[10px] font-bold whitespace-nowrap transition-transform active:translate-y-1",style:{fontFamily:r,letterSpacing:"-0.01em",border:`1px solid ${l?o.primary:o.border}`,backgroundColor:l?o.primary:o.background??"#fff",color:l?o.primaryText:o.primary,boxShadow:l?`0 4px 0 ${M(o.primary,.55)}, 0 7px 12px -4px ${M(o.primary,.35)}`:`0 4px 0 ${M(o.border,.9)}, 0 6px 10px -4px ${M(o.primary,.18)}`,cursor:"pointer"},children:[(0,c.jsx)("span",{className:"hidden min-[380px]:inline",children:e.label}),(0,c.jsx)("span",{className:"min-[380px]:hidden",children:e.shortLabel})]},e.id)})})}function uo({iconUrl:e,size:t,brandColor:n,iconColor:o,accentColor:r}){return(0,c.jsxs)("div",{style:{position:"relative",width:t,height:t},children:[(0,c.jsxs)("svg",{viewBox:"30 -5 280 280",width:"100%",height:"100%","aria-hidden":"true",style:{display:"block"},children:[(0,c.jsx)("rect",{x:"90",y:"55",width:"210",height:"210",rx:"42",fill:n,opacity:"0.3"}),(0,c.jsx)("rect",{x:"65",y:"30",width:"210",height:"210",rx:"42",fill:n,opacity:"0.55"}),(0,c.jsx)("rect",{x:"40",y:"5",width:"210",height:"210",rx:"42",fill:n})]}),(0,c.jsx)("div",{style:{position:"absolute",left:"10.7%",top:"10.7%",width:"60.7%",height:"60.7%",pointerEvents:"none"},children:(0,c.jsx)(_t,{iconUrl:e,width:"100%",height:"100%",iconColor:o,accentColor:r})})]})}function mo({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:r,iconColor:l,accentColor:a,captionColor:i,bodyFont:u,legOptions:m,onPick:p,colors:h,menuShadow:f}){const[x,g]=(0,s.useState)(!1),[y,b]=(0,s.useState)(null),w=(0,s.useRef)(null),k=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(!x)return void b(null);const e=()=>{const e=w.current;if(!e||"undefined"==typeof window)return;const t=e.getBoundingClientRect(),n=40+40*m.length+12,o=window.innerHeight-t.bottom,r=o<n&&t.top>o;b({top:t.top,bottom:t.bottom,right:t.right,flipUp:r,avail:Math.max((r?t.top:o)-12,132)})};e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0);const t=e=>{const t=e.target;w.current?.contains(t)||k.current?.contains(t)||g(!1)};return document.addEventListener("mousedown",t),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0),document.removeEventListener("mousedown",t)}},[x,m.length]);const v=x&&y&&"undefined"!=typeof document?(0,d.createPortal)((0,c.jsxs)("div",{ref:k,role:"menu",className:"rounded-lg overflow-y-auto overscroll-contain",style:{position:"fixed",maxHeight:y.avail,top:y.flipUp?void 0:y.bottom+6,bottom:y.flipUp?window.innerHeight-y.top+6:void 0,left:y.right,transform:"translateX(-100%)",zIndex:20,backgroundColor:h.background,border:`1px solid ${h.border}`,boxShadow:f,minWidth:180,fontFamily:u},children:[(0,c.jsx)("div",{className:"px-3 py-1.5 text-[10px] font-bold tracking-wider uppercase",style:{color:h.text,opacity:.55,borderBottom:`1px solid ${h.border}`},children:"How many picks?"}),m.map((e,t)=>(0,c.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>{g(!1),p(e)},className:"w-full flex items-center justify-between px-3 py-2",style:{background:"transparent",border:"none",cursor:"pointer",borderTop:0===t?"none":`1px solid ${h.border}`},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=h.backgroundAlt},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},children:[(0,c.jsxs)("span",{className:"text-sm font-semibold",style:{color:h.text},children:[e," picks"]}),(0,c.jsx)("span",{className:"text-[10px] font-bold tracking-wider",style:{background:M(h.primary,.14),color:h.primary,padding:"2px 6px",borderRadius:4},children:"QP"})]},e))]}),document.body):null;return(0,c.jsxs)("div",{ref:w,children:[(0,c.jsx)(en,{iconUrl:e,gameName:t,onPress:()=>g(e=>!e),size:n,brandColor:o,cardColor:r,iconColor:l,accentColor:a,captionColor:i}),v]})}function po({games:e,selectedGame:t,onSelectGame:n,loading:o,error:r,theme:l,colorScheme:a,showTier:i=!1,showCategory:d=!1,showTierFilter:u=!1,onPropositionCountChange:m,onPropositionCountSelected:p,onQuickPickGame:h,maxPayouts:f}){const x=pe(l,a),g=x.colors,y=K(x),b=he(x),w=fe(x),k=j(x),v=T(x),N=D(x),F=W(x),C=(0,s.useMemo)(()=>Dn(e),[e]),[B,A]=(0,s.useState)(()=>Tn(e));(0,s.useEffect)(()=>{0!==C.length&&(C.some(e=>e.id===B)||A(C[0].id))},[C,B]);const S=(0,s.useMemo)(()=>!u||C.length<=1?e:On(e,zn[B]),[e,u,C.length,B]),z=(0,s.useRef)(null),L=(0,s.useRef)(null),[P,O]=(0,s.useState)(0),[E,H]=(0,s.useState)(0),R=(e,t)=>{e.quick_pick_only&&h&&t>0?h(e,t):(t>0&&!kn(e)&&m?.(t),n(e),p?.())},G=e=>{R(e,ao(e,f?.[e.id]).maxLegCount)};(0,s.useEffect)(()=>{const e=z.current;if(!e)return;O(e.getBoundingClientRect().width);const t=new ResizeObserver(e=>{for(const t of e)O(t.contentRect.width)});return t.observe(e),()=>t.disconnect()},[]);const I=(0,s.useRef)(()=>{}),U=(0,s.useCallback)(e=>{L.current?.removeEventListener("scroll",I.current),L.current=e,e&&(I.current=()=>{const t=e.scrollLeft+e.clientWidth/2;let n=0,o=1/0;Array.from(e.children).forEach((e,r)=>{const l=e,s=Math.abs(l.offsetLeft+l.offsetWidth/2-t);s<o&&(o=s,n=r)}),H(n)},e.addEventListener("scroll",I.current,{passive:!0}),I.current())},[]);(0,s.useEffect)(()=>{I.current()},[P,S.length]),(0,s.useEffect)(()=>{L.current?.scrollTo({left:0}),H(0)},[B]);const $=e=>e.allowed_propositions&&e.allowed_propositions.length>0&&e.game_name.replace(/\s+\d+\s*$/,"").trim()||e.game_name,Z=e=>{const t=L.current,n=t?.children[e];t&&n&&t.scrollTo({left:n.offsetLeft-(t.clientWidth-n.offsetWidth)/2,behavior:"smooth"})};if(o)return(0,c.jsx)(yn,{colors:V(x),bodyFont:b,variant:"games",gameCardCount:Math.min(Math.max(e.length,2),4),showTierTabs:u&&C.length>1});if(r)return(0,c.jsx)("div",{className:"flex items-center justify-center p-8",style:{fontFamily:b},children:(0,c.jsx)("div",{style:{color:g.error},children:r})});if(0===e.length)return(0,c.jsx)("div",{className:"flex items-center justify-center p-8",style:{fontFamily:b},children:(0,c.jsx)("div",{style:{color:g.textMuted},children:"No games available"})});const q=P>0&&P<400,X=q?108:124,Q=P>0?Math.min(.86*P,380):0,J=Q>0?Math.max((P-Q)/2,4):4,_=S.length>1,ee=_&&J>=48,te=e=>({position:"absolute",top:"38%",width:44,height:44,borderRadius:"50%",border:`1px solid ${g.border}`,backgroundColor:M(g.background??"#fff",.94),color:g.primary,fontSize:18,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center",cursor:e?"pointer":"default",opacity:e?1:.3,pointerEvents:e?"auto":"none",boxShadow:N,zIndex:1});return(0,c.jsxs)("div",{ref:z,className:"flex flex-col",style:{fontFamily:b},children:[u&&(0,c.jsx)(co,{tabs:C,active:B,onChange:A,colors:g,bodyFont:b}),0===S.length?(0,c.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,c.jsx)("div",{style:{color:g.textMuted},children:"No games in this collection"})}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{style:{position:"relative"},children:[(0,c.jsx)("div",{ref:U,className:"blade-game-track",style:{display:"flex",alignItems:"stretch",gap:14,overflowX:"auto",overflowY:"hidden",scrollSnapType:"x mandatory",scrollbarWidth:"none",paddingLeft:J,paddingRight:J,paddingBottom:8,position:"relative"},children:S.map(e=>{const n=Ut(e),o=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>$t[e]??`Day ${e}`);return 1===n.length?n[0]:n.slice(0,-1).join(", ")+" & "+n[n.length-1]}(e),r=t?.id===e.id,l=String(e.id),s=Mt(e),a=e.description||e.rule,u=e.call_to_action?.trim()||null,{legOptions:m,maxLegCount:p,tiers:N,modes:C,pydDividends:B,hasGenericDividends:A,minBet:S,maxBet:z}=ao(e,f?.[e.id]),L=ve(e),P=!n&&o?`Available ${o}`:null;return(0,c.jsxs)("article",{className:"flex flex-col items-center text-center",style:{flex:Q>0?`0 0 ${Q}px`:"0 0 86%",scrollSnapAlign:"center",borderRadius:24,border:`1px solid ${r?g.primary:g.border}`,backgroundColor:r?g.infoBg:g.background??y,boxShadow:v,padding:"22px 20px 20px",opacity:n?1:.5,pointerEvents:n?"auto":"none"},children:[e.quick_pick_only&&h&&m.length>1?(0,c.jsx)(mo,{iconUrl:L,gameName:$(e),size:X,brandColor:g.primary,cardColor:y,iconColor:g.primaryText,accentColor:F,captionColor:g.textMuted,bodyFont:b,legOptions:m.map(Number),onPick:t=>R(e,t),colors:g,menuShadow:v}):(0,c.jsx)(en,{iconUrl:L,gameName:$(e),onPress:()=>G(e),size:X,brandColor:g.primary,cardColor:y,iconColor:g.primaryText,accentColor:F,captionColor:g.primary}),(0,c.jsxs)("div",{className:"mt-2",style:{fontFamily:w,fontSize:13,letterSpacing:"-0.04em",lineHeight:1},children:[(0,c.jsx)("span",{style:{fontWeight:800,color:g.primary},children:"YES"}),(0,c.jsx)("span",{style:{fontWeight:600,color:M(g.primary,.85)},children:"NO"})]}),(0,c.jsxs)("h3",{className:"flex items-center justify-center gap-1.5 font-semibold leading-tight px-1 mt-0.5",style:{fontFamily:w,fontSize:q?19:21,color:k,letterSpacing:"-0.01em"},children:[$(e),(0,c.jsx)(Ue,{variant:"icon",panel:Le(e),content:a||"Pick outcomes and land the payout for this game.",theme:x,title:$(e),label:`How to play ${$(e)}`,extra:(0,c.jsx)(io,{tiers:A?N:[],modes:C,pydDividends:B,onPlayCount:m.length>1?t=>R(e,t):void 0,minBet:S,maxBet:z,colors:g,bodyFont:b,headingFont:w}),colors:g,bodyFont:b,headingFont:w})]}),u&&(0,c.jsx)("p",{className:"mt-1.5 font-bold leading-snug",style:{fontSize:13,color:g.primary,maxWidth:"30ch"},children:u}),a&&(0,c.jsx)("p",{className:"mt-2 leading-relaxed",style:{fontSize:12.5,color:g.textMuted,maxWidth:"34ch"},children:a}),s.enabled&&(0,c.jsxs)("span",{className:"inline-flex w-fit items-center gap-0.5 px-2 py-0.5 rounded-full mt-2",style:{backgroundColor:`${g.warning}15`,color:g.warning,fontSize:10,fontWeight:700},children:["★ ",s.progressive?s.amount>0?xt(s.amount):s.limit>0?`Up to ${xt(s.limit)}`:"Jackpot":xt(s.amount)]}),(d||i)&&(0,c.jsxs)("div",{className:"flex flex-wrap gap-1 justify-center mt-2",children:[d&&e.category&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:g.backgroundAlt,color:Y(x)},children:e.category}),d&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:g.backgroundAlt,color:Y(x)},children:e.rule}),d&&e.lotto_type&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:g.backgroundAlt,color:Y(x)},children:e.lotto_type}),i&&null!=e.tier&&(0,c.jsxs)("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:g.backgroundAlt,color:Y(x)},children:["Tier ",e.tier]})]}),P&&(0,c.jsx)("div",{style:{marginTop:"auto",width:"100%",paddingTop:12},children:(0,c.jsx)("span",{className:"text-[11px] font-semibold leading-snug",style:{color:g.text},children:P})})]},l)})}),ee&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("button",{type:"button","aria-label":"Previous game",onClick:()=>Z(E-1),style:{...te(E>0),left:2},children:"‹"}),(0,c.jsx)("button",{type:"button","aria-label":"Next game",onClick:()=>Z(E+1),style:{...te(E<S.length-1),right:2},children:"›"})]})]}),_&&(0,c.jsx)("div",{className:"flex justify-center flex-wrap pt-1 pb-2",children:S.map((e,t)=>(0,c.jsx)("button",{type:"button","aria-label":`Go to ${$(e)}`,onClick:()=>Z(t),style:{padding:"18.5px 5px",margin:"-18.5px 0",background:"none",border:"none",cursor:"pointer",display:"flex",alignItems:"center"},children:(0,c.jsx)("span",{style:{display:"block",width:t===E?22:7,height:7,borderRadius:999,backgroundColor:t===E?g.primary:M(g.primary,.25),transition:"width 200ms ease, background-color 200ms ease"}})},e.id))}),_&&(0,c.jsxs)("div",{style:{borderTop:`1px solid ${g.border}`,paddingTop:10,marginTop:2},children:[(0,c.jsx)("div",{className:"text-[10px] font-bold uppercase mb-2",style:{color:g.textMuted,letterSpacing:"0.16em",fontFamily:w},children:"All games"}),(0,c.jsx)("div",{className:"grid gap-1",style:{gridTemplateColumns:`repeat(${mt(S.length,P)}, minmax(0, 1fr))`},children:S.map((e,t)=>{const n=Ut(e);return(0,c.jsxs)("button",{type:"button",onClick:()=>G(e),disabled:!n,"aria-current":t===E,className:"flex flex-col items-center gap-1 px-1 py-1.5 rounded-2xl",style:{border:`1px solid ${t===E?g.primary:"transparent"}`,cursor:n?"pointer":"not-allowed",opacity:n?1:.5,background:"transparent",transition:"border-color 150ms ease"},children:[(0,c.jsx)(uo,{iconUrl:ve(e),size:q?44:52,brandColor:g.primary,iconColor:g.primaryText,accentColor:F}),(0,c.jsx)("span",{className:"text-[11px] font-bold leading-tight",style:{color:t===E?g.primary:k,fontFamily:w,letterSpacing:"-0.01em",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"hidden"},children:$(e)})]},e.id)})})]})]}),(0,c.jsx)("style",{children:".blade-game-track::-webkit-scrollbar{display:none}"})]})}var ho={today:"Today",weekend:"This weekend",next7:"Next 7 days"},fo=["today","weekend","next7"];function xo(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function go(e,t,n){if(!e)return!1;const o=new Date(e);if(Number.isNaN(o.getTime()))return!1;const{start:r,end:l}=function(e,t){const n=function(e){const t=new Date(e);return t.setHours(0,0,0,0),t}(t);switch(e){case"today":return{start:n,end:xo(n,1)};case"weekend":{const e=n.getDay(),t=xo(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:xo(t,2)}}case"next7":return{start:n,end:xo(n,7)}}}(t,n);return o>=r&&o<l}var yo=class{constructor(e){this.inflight=new Map,this.cache=new Map,this.apiUrl=e.apiUrl,this.apiKey=e.apiKey,this.fetchImpl=e.fetchImpl??fetch.bind(globalThis),this.getAuthHeaders=e.getAuthHeaders}invalidateCache(){this.cache.clear()}invalidate(){this.invalidateCache()}async request(e,t,n){const o=`${this.apiUrl}${e}`,r=(t?.method??"GET").toUpperCase(),l="GET"===r,s=l,a=!l&&!n?.idempotent,i=`${r} ${o}`;if(s){const e=this.cache.get(i);if(e&&Date.now()-e.at<5e3)return e.value;const t=this.inflight.get(i);if(t)return t}const c=s?this.cache.get(i):void 0,d=(async()=>{let e;try{const n=this.getAuthHeaders?await this.getAuthHeaders():void 0;e=await this.fetchImpl(o,{...t,headers:{"Content-Type":"application/json",...this.apiKey?{"X-API-Key":this.apiKey}:{},...n??{},...c?.etag?{"If-None-Match":c.etag}:{},...t?.headers}})}catch(r){throw r}if(304===e.status&&c)return s&&this.cache.set(i,{at:Date.now(),value:c.value,etag:c.etag}),c.value;if(!e.ok){let t=`API request failed: ${e.status} ${e.statusText}`;try{const n=await e.json();422===e.status&&n.detail?Array.isArray(n.detail)?t=n.detail.map(e=>`${Array.isArray(e.loc)?e.loc.join("."):"field"}: ${e.msg}`).join("; "):"string"==typeof n.detail?t=n.detail:"object"==typeof n.detail&&(t=JSON.stringify(n.detail)):n.message?t=n.message:n.error&&(t=n.error)}catch{}throw new Error(t)}const n=await e.json();if(s){const t=e.headers.get("ETag")??void 0;this.cache.set(i,{at:Date.now(),value:n,etag:t})}return n})();return s?(this.inflight.set(i,d),d.catch(()=>{}).finally(()=>{this.inflight.delete(i)})):a&&d.finally(()=>this.invalidateCache()).catch(()=>{}),d}async getGames(e){const t=new URLSearchParams;e?.category&&t.append("category",e.category),e?.jurisdiction&&t.append("jurisdiction",e.jurisdiction),e?.sport&&t.append("sport",e.sport);const n=t.toString(),o=n?`/games?${n}`:"/games",r=await this.request(o);return{games:r.payload||[],howToPlayMarkdown:r.how_to_play_markdown??null}}async getGame(e){return(await this.request(`/games/${e}`)).payload}async getPropositions(e){const t=new URLSearchParams;e?.event_id&&t.append("event_id",e.event_id),e?.sport&&t.append("sport",e.sport),e?.category&&t.append("category",e.category);const n=t.toString(),o=n?`/propositions?${n}`:"/propositions";return(await this.request(o)).payload||[]}async getSports(){return(await this.request("/propositions/sports")).sports||[]}async getPropositionsByIds(e){if(0===e.length)return[];const t=new URLSearchParams({ids:e.join(","),include_expired:"true"});return(await this.request(`/propositions?${t.toString()}`)).payload||[]}async getProposition(e){const t=(await this.request(`/propositions/${e}?include_expired=true`)).payload;return Array.isArray(t)?t.find(t=>t.id===e)??t[0]:t}async getGameEntries(e){const t=new URLSearchParams;null!=e?.user_id&&t.append("user_id",String(e.user_id)),null!=e?.pending&&t.append("pending",String(e.pending));const n=t.toString(),o=n?`/game-entries?${n}`:"/game-entries";return((await this.request(o)).payload||[]).map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),null!=t.stake&&null==t.bet_amount&&(t.bet_amount=Number(t.stake)),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t})}async createGameEntry(e){const t=e.proposition_ids.map(t=>({proposition_id:t,user_prediction:e.selections?.[t]??"yes"})),n={game_id:e.game_id,user_id:e.user_id,propositions:t};null!=e.stake&&(n.stake=e.stake),null!=e.rule_id&&(n.rule_id=e.rule_id);const o=(await this.request("/game-entries",{method:"POST",body:JSON.stringify(n)})).payload;return null!=o.stake&&null==o.bet_amount&&(o.bet_amount=Number(o.stake)),o}async getPayoutsDue(e){const t=new URLSearchParams;null!=e?.game_id&&t.set("game_id",String(e.game_id)),null!=e?.limit&&t.set("limit",String(e.limit)),null!=e?.offset&&t.set("offset",String(e.offset));const n=t.toString();return await this.request(n?`/game-entries/payouts/due?${n}`:"/game-entries/payouts/due")}async getEntryPayout(e){return(await this.request(`/game-entries/${e}/payout`)).payload}async markEntryPaidOut(e){const t=await this.request(`/game-entries/${e}/payout/mark-paid-out`,{method:"POST",body:JSON.stringify({})});return this.invalidate(),t.payload}async updateGameEntryResult(e,t){return(await this.request(`/game-entries/${e}/result`,{method:"POST",body:JSON.stringify(t)})).payload}async getGameMaxPayout(e,t){const n=null!=t?`?bet_amount=${encodeURIComponent(String(t))}`:"";return(await this.request(`/games/${e}/max-payout${n}`)).payload}async getGamesMaxPayouts(e,t){if(0===e.length)return{};const n=new URLSearchParams({ids:e.join(",")});null!=t&&n.set("bet_amount",String(t));const o=await this.request(`/games/max-payouts?${n.toString()}`),r={};for(const[l,s]of Object.entries(o.payload||{}))r[Number(l)]=s;return r}async getEntryPreview(e,t){return(await this.request(`/games/${e}/preview`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async evaluateRule(e,t){return(await this.request(`/games/${e}/evaluate-rule`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async calculatePayout(e,t){return(await this.request(`/games/${e}/calculate-payout`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}};function bo(e,t,n){const[o,r]=(0,s.useState)([]),[l,a]=(0,s.useState)(null),[i,c]=(0,s.useState)(!n?.skip),[d,u]=(0,s.useState)(null),m=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",p=(0,s.useRef)(t);p.current=t;const h=n?.skip??!1,f=(0,s.useCallback)(async()=>{if(!h)try{c(!0),u(null);const t=await e.getGames(p.current);r(t.games),a(t.howToPlayMarkdown)}catch(t){u(t instanceof Error?t.message:"Failed to fetch games")}finally{c(!1)}},[e,m,h]);return(0,s.useEffect)(()=>{f()},[f]),{games:o,howToPlayMarkdown:l,loading:i,error:d,refetch:(0,s.useCallback)(async()=>{e.invalidate(),await f()},[e,f])}}function wo(e,t,n){const[o,r]=(0,s.useState)([]),[l,a]=(0,s.useState)(!n?.skip),[i,c]=(0,s.useState)(null),d=n?.skip??!1,u=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",m=(0,s.useRef)(t);m.current=t;const p=(0,s.useCallback)(async()=>{if(!d)try{a(!0),c(null);const t=await e.getPropositions(m.current);r(t)}catch(t){c(t instanceof Error?t.message:"Failed to fetch propositions")}finally{a(!1)}},[e,u,d]);return(0,s.useEffect)(()=>{p()},[p]),{propositions:o,loading:l,error:i,refetch:(0,s.useCallback)(async()=>{e.invalidate(),await p()},[e,p])}}function ko(e,t){const[n,o]=(0,s.useState)([]),[r,l]=(0,s.useState)(!t?.skip),[a,i]=(0,s.useState)(null),c=t?.skip??!1,d=(0,s.useCallback)(async()=>{if(!c)try{l(!0),i(null),o(await e.getSports())}catch(t){i(t instanceof Error?t.message:"Failed to fetch sports")}finally{l(!1)}},[e,c]);return(0,s.useEffect)(()=>{d()},[d]),{sports:n,loading:r,error:a,refetch:(0,s.useCallback)(async()=>{e.invalidate(),await d()},[e,d])}}function vo(e,t,n){const[o,r]=(0,s.useState)([]),[l,a]=(0,s.useState)(!n?.skip),[i,c]=(0,s.useState)(null),d=n?.skip??!1,u=t?`${t.user_id??""}_${t.pending??""}`:"",m=(0,s.useRef)(t);m.current=t;const p=(0,s.useCallback)(async()=>{if(!d)try{a(!0),c(null);const t=await e.getGameEntries(m.current);r(t)}catch(t){c(t instanceof Error?t.message:"Failed to fetch entries")}finally{a(!1)}},[e,u,d]);return(0,s.useEffect)(()=>{p()},[p]),{entries:o,loading:l,error:i,refetch:(0,s.useCallback)(async()=>{e.invalidate(),await p()},[e,p])}}function No(e,t,n){const[o,r]=(0,s.useState)({}),[l,a]=(0,s.useState)(!1),i=n?.skip??!1,c=n?.betAmount,d=(0,s.useRef)(new Set);return(0,s.useEffect)(()=>{if(i||0===t.length)return;const n=t.filter(e=>!(e.id in o)&&!d.current.has(e.id));if(0===n.length)return;for(const e of n)d.current.add(e.id);let l=!1;return a(!0),(async()=>{try{const t=await e.getGamesMaxPayouts(n.map(e=>e.id),c);l||r(e=>({...e,...t}))}catch{}finally{l||a(!1)}})(),()=>{l=!0}},[e,t.map(e=>e.id).join(","),i,c]),{maxPayouts:o,loading:l,refetchGame:(0,s.useCallback)(async(t,n)=>{if(!i)try{const o=await e.getGamesMaxPayouts([t],n??c);o[t]&&r(e=>({...e,[t]:o[t]}))}catch{}},[e,i,c])}}function Fo(e){const[t,n]=(0,s.useState)(!1),[o,r]=(0,s.useState)(null),[l,a]=(0,s.useState)(null);return{createEntry:async t=>{try{n(!0),r(null),await function(e=15e3){return"undefined"==typeof navigator||!1!==navigator.onLine||"undefined"==typeof window||"function"!=typeof window.addEventListener?Promise.resolve():new Promise(t=>{const n=()=>{window.removeEventListener("online",n),clearTimeout(o),t()},o=setTimeout(n,e);window.addEventListener("online",n)})}();const o=await e.createGameEntry(t);return a(o),o}catch(o){const e=o instanceof Error?o.message:"Failed to create entry";throw r(e),new Error(e)}finally{n(!1)}},loading:t,error:o,entry:l,clearSubmitError:(0,s.useCallback)(()=>r(null),[])}}function Co(e){const[t,n]=(0,s.useState)(e?"sport":"game"),[o,r]=(0,s.useState)(null),[l,a]=(0,s.useState)({}),[i,c]=(0,s.useState)(null);return{step:t,selectedGame:o,selections:l,placedEntry:i,setGameOnly:e=>{r(e)},clearSelectedGame:()=>{r(null),a({})},goToSportSelection:e=>{e&&r(e),n("sport")},goToConfirmation:()=>{n("confirm")},goToSuccess:e=>{c(e),n("success")},goBack:()=>{"confirm"===t?n("sport"):"sport"===t&&(n("game"),r(null),a({}))},reset:()=>{n("game"),r(null),a({}),c(null)},toggleSelection:(e,t)=>{a(n=>{const o={...n};return o[e]===t?delete o[e]:o[e]=t,o})}}}function Bo(e){const[t,n]=(0,s.useState)(!1),[o,r]=(0,s.useState)(null),[l,a]=(0,s.useState)(null);return{preview:(0,s.useCallback)(async(t,o)=>{try{n(!0),r(null);const l=await e.getEntryPreview(t,o);return a(l),l}catch(l){const e=l instanceof Error?l.message:"Failed to preview entry";throw r(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:o,result:l}}var Ao=[1,5,10,20,50,100],Mo=[4,12];function So(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function zo(e,t,n){const o=n?.operatorMargin??.2,r=n?.perLegProbability??.5,l=Math.round(Math.pow(1/r,t)),s=(1-o)*Math.pow(1/r,t);return{legs:t,stake:e,prize:Math.round(e*s*100)/100,multiple:s,oddsOneIn:l}}function Lo(e){if(!So(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Mo[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Mo[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n);if(0===o.length)return null;const r=Math.max(e.min_bet??1,.01),l=e.max_bet??null,s=Ao.filter(e=>e>=r&&(null===l||e<=l));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(10,r),l??10),minStake:r,maxStake:l,quickStakes:s,tagline:"Two steps to your multi. Tweak legs and stake — the prize updates as you go.",operatorMargin:e.operator_margin??.2,perLegProbability:e.payout_structure?.per_leg_probability??.5}}var Po=[25,50,75,100],Oo=[{legs:4,firstPayingTier:3,tiers50:[[3,60],[4,340]]},{legs:6,firstPayingTier:4,tiers50:[[4,40],[5,110],[6,850]]},{legs:8,firstPayingTier:5,tiers50:[[5,30],[6,70],[7,300],[8,2100]]},{legs:9,firstPayingTier:5,tiers50:[[5,10],[6,40],[7,100],[8,350],[9,4500]]},{legs:10,firstPayingTier:6,tiers50:[[6,15],[7,45],[8,140],[9,800],[10,1e4]]}];function Do(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function To(e,t){return Math.round(e*t/50*100)/100}function Eo(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:To(o,t),cumulative:To(n,t)}))}function jo(e,t){return To(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function Yo(e){if(!Do(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=Oo.filter(e=>t&&t.length>0?t.includes(e.legs):e.legs>=n&&e.legs<=o);if(0===r.length)return null;const l=e.min_bet??Po[0],s=e.max_bet??Po[Po.length-1],a=Po.filter(e=>e>=l&&e<=s);return{ladders:r,defaultLegs:r.some(e=>8===e.legs)?8:r[Math.floor(r.length/2)].legs,defaultStake:a.includes(50)?50:a[0]??50,stakes:a.length>0?a:Po,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}var Ho=[1,5,10,20,50],Ro=[4,12];function Go(e){return!!e&&!e.quick_pick_only&&"mirror"===(e.rule??"").trim().toLowerCase()}function Wo(e,t,n){const o=n?.operatorMargin??.21875,r=n?.perLegProbability??.5,l=Math.round(Math.pow(2,t)),s=Math.pow(r,t)+Math.pow(1-r,t),a=Math.round(1/s),i=(1-o)*Math.pow(2,t-1);return{legs:t,stake:e,prize:Math.round(e*i*100)/100,multiple:i,totalOutcomes:l,winningOutcomes:2,oddsOneIn:a}}function Io(e){if(!Go(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Ro[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Ro[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n);if(0===o.length)return null;const r=Math.max(e.min_bet??1,.01),l=e.max_bet??null,s=Ho.filter(e=>e>=r&&(null===l||e<=l));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(10,r),l??10),minStake:r,maxStake:l,quickStakes:s,tagline:"Call every leg. Get them all right, you win — all wrong, you win the same.",operatorMargin:e.operator_margin??.21875,perLegProbability:e.payout_structure?.per_leg_probability??.5}}function Uo(e){return!!e&&!e.quick_pick_only&&"six_again"===(e.rule??"").trim().toLowerCase()}var $o={golden_point:!1,captains_challenge:!1};function Ko(e,t,n){const o=1+(t.golden_point?1:0)+(t.captains_challenge?1:0),r=e*n.baseMultiple*(t.golden_point?n.goldenPointFactor:1),l=t.captains_challenge?e*n.challengeMultiple:0;return{legs:n.legs,unit:e,stake:e*o,base:r,challenge:l,perfect:r+l,lowestWinningCount:n.legs-(t.captains_challenge?n.challengeMisses:0),ruleId:Zo(t,n)}}function Zo(e,t){return e.captains_challenge?e.golden_point?t.ruleIds.goldenChallenge:t.ruleIds.challenge:t.ruleIds.base}function qo(e,t){return e.permitted_rules?.find(e=>t((e.name??"").toLowerCase().replace(/[^a-z]+/g," ").trim()))??null}function Vo(e){if(!Uo(e)||!e)return null;const t=e.num_propositions??e.min_propositions??6;if(t<2)return null;const n=e.operator_margin??.21875,o=Math.max(e.min_bet??10,.01),r=null!=e.max_bet?Math.max(o,Math.floor(e.max_bet/3/o)*o):Math.max(o,100),l=qo(e,e=>e.includes("challenge")&&!e.includes("golden")),s=qo(e,e=>e.includes("challenge")&&e.includes("golden")),a=qo(e,e=>!e.includes("challenge"))??null;return{legs:t,unitMin:o,unitStep:o,unitMax:r,defaultUnit:o,baseMultiple:Math.round(Math.pow(2,t)*(1-n)*100)/100,challengeMultiple:5,challengeMisses:1,goldenPointFactor:2,boosts:[{id:"golden_point",label:"Golden Point",costUnits:1},{id:"captains_challenge",label:"Captain's Challenge",costUnits:1}],tagline:"Set your play, then pick your six. Every call a yes or a no.",ruleIds:{base:a?.id??e.default_rule_id??null,challenge:l?.id??null,goldenChallenge:s?.id??null}}}function Xo(e){return e?.quick_pick_only?"quick_pick":So(e)?"game_set":no(e)?"pick_your_dividend":Do(e)?"ladder":Go(e)?"mirror":Yn(e)?"safety_net":Uo(e)?"six_again":kn(e)?"selections":_n(e)?"rule_setup":"selections"}function Qo(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(kn(e))return!1;const t=!!(e.allowed_markets&&e.allowed_markets.length>0),n=!!(e.allowed_sports&&e.allowed_sports.length>0);return t||n}function Jo(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||kn(e)||Qo(e))}function _o(e){switch(Xo(e)){case"ladder":return{belowRequiredHint:(e,t)=>`Drop to Ladder ${e} or add another pick to stay on Ladder ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay on Ladder ${e}.`,switchTierLabel:e=>`Switch to Ladder ${e}`,overloadTitle:"Add more picks to climb higher",tableColumnLabel:"Ladder",tierButtonLabel:e=>`Ladder ${e}`};case"game_set":case"pick_your_dividend":case"mirror":case"safety_net":case"six_again":return{belowRequiredHint:(e,t)=>`Drop to ${e} legs or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e} legs.`,switchTierLabel:e=>`Switch to ${e} legs`,overloadTitle:"Add more legs to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`${e} legs`};default:return{belowRequiredHint:(e,t)=>`Drop to a ${e}-leg multi or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e}.`,switchTierLabel:e=>`Switch to ${e}-leg`,overloadTitle:"Add more picks to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`Multi ${e}`}}}function er(e){const t=Xo(e);return"six_again"===t||"pick_your_dividend"===t}function tr(e){return"six_again"===Xo(e)?"Set by your ticket and boosts.":"Set by your dividend ladder rung."}function nr(e,t,n){if(!e||t<=0||n<=0)return 0;switch(Xo(e)){case"game_set":return zo(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize;case"mirror":return Wo(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize;case"pick_your_dividend":return function(e,t,n=eo){if(!(e>0&&t>0))return 0;for(const o of n)if(Math.abs(ro(o,e).stake-t)<.005)return o;return 0}(t,n);default:return 0}}var or=(0,s.createContext)(null),rr={};function lr(){const e=(0,s.useContext)(or);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function sr({onPress:e,onDoubleClick:t,label:n="QUICKPICK",size:o="md",yesColor:r,noColor:l,theme:a}){const i=(0,s.useContext)(or),d=a??i?.theme??J,u=O(d),m=d.colors,p=r??R(d),h=l??G(d),f="sm"===o,x=f?u.space.xs:u.space.sm,g=f?6:8,y=f?u.fontSize.sm:u.fontSize.md,b=f?8.5:10,[w,k]=s.default.useState(!1),[v,N]=s.default.useState(!1);return(0,c.jsxs)("button",{type:"button",onClick:e,onDoubleClick:t,onMouseDown:()=>k(!0),onMouseUp:()=>k(!1),onMouseLeave:()=>k(!1),onFocus:e=>{e.target.matches(":focus-visible")&&N(!0)},onBlur:()=>N(!1),style:{appearance:"none",display:"inline-flex",flexDirection:"column",width:"100%",minWidth:92,padding:0,margin:0,border:`1px solid ${M(m.border,.6)}`,background:"transparent",borderRadius:u.radius.sm,overflow:"hidden",cursor:"pointer",fontFamily:"inherit",transform:w?"scale(0.985)":"scale(1)",transition:`transform ${u.motion.durationFast}ms ${u.motion.easing}, box-shadow ${u.motion.durationFast}ms ${u.motion.easing}`,boxShadow:v?E(d):"none",outline:"none",minHeight:u.touchTarget.min},children:[(0,c.jsxs)("span",{style:{position:"relative",display:"flex",flex:1},children:[(0,c.jsx)("span",{"aria-hidden":!0,style:{position:"absolute",inset:0,background:p,clipPath:"polygon(0 0, 53% 0, 47% 100%, 0 100%)"}}),(0,c.jsx)("span",{"aria-hidden":!0,style:{position:"absolute",inset:0,background:h,clipPath:"polygon(53% 0, 100% 0, 100% 100%, 47% 100%)"}}),(0,c.jsx)("span",{style:{position:"relative",flex:1,textAlign:"center",padding:`${g}px ${x}px`,color:"#ffffff",fontSize:y,fontWeight:600,letterSpacing:.2,whiteSpace:"nowrap"},children:"Yes"}),(0,c.jsx)("span",{style:{position:"relative",flex:1,textAlign:"center",padding:`${g}px ${x}px`,color:"#ffffff",fontSize:y,fontWeight:600,letterSpacing:.2,whiteSpace:"nowrap"},children:"No"}),(0,c.jsx)("svg",{"aria-hidden":"true",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none"},preserveAspectRatio:"none",children:(0,c.jsx)("line",{x1:"53%",y1:"0",x2:"47%",y2:"100%",stroke:"rgba(255,255,255,0.85)",strokeWidth:"1.5"})})]}),(0,c.jsx)("span",{style:{background:m.buttonSecondary,color:m.buttonSecondaryText,fontSize:b,letterSpacing:"0.14em",padding:"3px 0 4px",textAlign:"center",fontWeight:700,fontFamily:d.fonts?.mono??"inherit"},children:n})]})}function ar(e,t){const n=new Set(t.map(e=>e.eventId??e.event_id).filter(e=>Boolean(e)));if(0===n.size)return e;const o=[],r=[];for(const l of e){const e=l.eventId??l.event_id;(e&&n.has(e)?r:o).push(l)}return[...o,...r]}function ir(e,t,n){const[o,r]=(0,s.useState)([]),[l,a]=(0,s.useState)([]),[i,c]=(0,s.useState)([]),[d,u]=(0,s.useState)([]),[m,p]=(0,s.useState)(null),h=(0,s.useMemo)(()=>{const t=new Map;for(const n of e)t.set(n.id,n);return t},[e]),f=(0,s.useMemo)(()=>e.filter(e=>null!=t[e.id]),[e,t]),x=(0,s.useMemo)(()=>e.map(e=>e.id).join(","),[e]),g=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(g.current===x)return;g.current=x;const n=e.filter(e=>!(e.id in t)),o=e.filter(e=>null!=t[e.id]);r(n.map(e=>e.id)),a(ar(n,o).slice(0,3).map(e=>e.id)),c([]),u([]),p(null)},[x,e,t]);const y=(0,s.useMemo)(()=>{const e=new Set(i);return[...ar(o.map(e=>h.get(e)).filter(e=>Boolean(e)).filter(t=>!e.has(t.id)),f).map(e=>e.id),...i.filter(e=>o.includes(e))]},[o,h,f,i]);(0,s.useEffect)(()=>{a(e=>{const t=new Set(o),n=e.filter(e=>t.has(e));if(0===d.length&&!m){const t=y.slice(0,3);return t.length===n.length&&t.every((e,t)=>e===n[t])?n.length===e.length?e:n:t}if(n.length>=Math.min(3,o.length))return n.length===e.length?e:n;const r=[...n];for(const o of y){if(r.length>=3)break;r.includes(o)||r.push(o)}return r})},[o,y,d,m]);const b=(0,s.useMemo)(()=>l.map(e=>h.get(e)).filter(e=>Boolean(e)),[l,h]),w=(0,s.useCallback)((e,t)=>{p(null),t&&n(e,t),u(n=>[...n,{id:e,answer:t}]),a(t=>t.filter(t=>t!==e)),c(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]}),r(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]})},[n]),k=(0,s.useCallback)(()=>{const e=d[d.length-1];e&&(e.answer&&n(e.id,e.answer),p({id:e.id,from:"yes"===e.answer?"right":"no"===e.answer?"left":"up"}),u(e=>e.slice(0,-1)),c(t=>t.filter(t=>t!==e.id)),r(t=>[e.id,...t.filter(t=>t!==e.id)]),a(t=>[e.id,...t.filter(t=>t!==e.id)].slice(0,3)))},[d,n]);return{visible:b,canSkip:o.length>1,canUndo:d.length>0,restored:m,resolve:w,undo:k}}var cr={stiffness:420,damping:34},dr={stiffness:280,damping:28},ur="#00C853",mr="#E53935";function pr(e){return"up"===e?{x:0,y:-720}:{x:"right"===e?640:-640,y:70}}function hr(e){return e<0?0:e>1?1:e}function fr(e,t,n){return n&&-t>Math.abs(e)}function xr({prop:e,theme:t,depth:n=0,enterFrom:o,canSkip:r=!1,onResolve:l,registerApi:a,onDragStateChange:i,children:d}){const u=(0,s.useContext)(or),m=t??u?.theme??J,p=fe(m),h=m.colors.productYes??ur,f=m.colors.productNo??mr,x=(0,s.useRef)(null),g=(0,s.useRef)(null),y=(0,s.useRef)(null),b=(0,s.useRef)(null),w=0===n,k=(0,s.useRef)(!1),v=(0,s.useRef)({x:0,y:0}),N=(0,s.useRef)({x:0,y:0}),F=(0,s.useRef)(null),C=(0,s.useRef)(0),B=(0,s.useRef)(null),A=(0,s.useRef)(null),M=(0,s.useRef)(r);M.current=r;const S=(0,s.useRef)(i);S.current=i;const z=(0,s.useCallback)(()=>{const e=x.current;if(!e)return;const{x:t,y:n}=v.current,o=Math.max(-16,Math.min(16,t/260*16));e.style.transform=`translate3d(${t}px, ${n}px, 0) rotate(${o}deg)`;const r=(e,t)=>{e&&(e.style.opacity=String(t))},l=fr(t,n,M.current);r(g.current,l?0:hr((t-24)/108)),r(y.current,l?0:hr((-t-24)/108)),r(b.current,l?hr((-n-30)/90):0)},[]),L=(0,s.useCallback)(()=>{for(const e of[x.current,g.current,y.current,b.current])e&&(e.style.transition="none")},[]),P=(0,s.useCallback)(()=>{null!=B.current&&(cancelAnimationFrame(B.current),B.current=null)},[]),O=(0,s.useCallback)(e=>{P(),L();let t=null;const n=o=>{const r=Math.min(null==t?1/60:(o-t)/1e3,1/30);t=o;const l=v.current,s=N.current;if(s.x+=(-e.stiffness*l.x-e.damping*s.x)*r,s.y+=(-e.stiffness*l.y-e.damping*s.y)*r,l.x+=s.x*r,l.y+=s.y*r,Math.abs(l.x)<.5&&Math.abs(l.y)<.5&&Math.abs(s.x)<2&&Math.abs(s.y)<2)return l.x=0,l.y=0,s.x=0,s.y=0,z(),void(B.current=null);z(),B.current=requestAnimationFrame(n)};B.current=requestAnimationFrame(n)},[L,z,P]),D=(0,s.useCallback)(t=>{if(k.current)return;if("up"===t&&!M.current)return;k.current=!0,P();const n="right"===t?"yes":"left"===t?"no":null,o=pr(t),r=x.current;r&&(r.style.transition="transform 260ms cubic-bezier(0.32, 0, 0.67, 0)");for(const e of[g.current,y.current,b.current])e&&(e.style.transition="opacity 260ms linear");v.current={...o},z(),A.current=setTimeout(()=>l(e.id,n),260)},[l,z,e.id,P]);(0,s.useEffect)(()=>()=>{A.current&&clearTimeout(A.current),null!=B.current&&cancelAnimationFrame(B.current),F.current&&S.current?.(!1)},[]),(0,s.useEffect)(()=>{if(!o)return P(),v.current={x:0,y:0},N.current={x:0,y:0},L(),void z();const e=pr(o);v.current={x:e.x,y:e.y},N.current={x:0,y:0},L(),z(),O(dr)},[o,L,z,O,P]),(0,s.useEffect)(()=>{if(w&&a)return a({fly:D}),()=>a(null)},[D,w,a]);const T="pointer-events-none absolute top-5 rounded-xl border-4 px-3 py-1 text-2xl font-extrabold uppercase tracking-widest";return(0,c.jsx)("div",{className:"absolute inset-0 flex items-stretch",style:{zIndex:3-n,transform:`translateY(${12*n}px) scale(${1-.04*n})`,transition:"transform 240ms cubic-bezier(0.22, 1, 0.36, 1)",pointerEvents:w?"auto":"none"},"aria-hidden":!w,children:(0,c.jsxs)("div",{ref:x,className:"relative w-full"+(w?" cursor-grab active:cursor-grabbing":""),style:{touchAction:"pan-y",willChange:"transform",userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none"},onPointerDown:e=>{if(w&&!k.current&&!F.current){P(),L(),F.current={pointerId:e.pointerId,originX:e.clientX,originY:e.clientY,baseX:v.current.x,baseY:v.current.y},N.current={x:0,y:0},C.current=e.timeStamp;try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}S.current?.(!0)}},onPointerMove:e=>{const t=F.current;if(!t||t.pointerId!==e.pointerId||k.current)return;const n=t.baseX+(e.clientX-t.originX),o=Math.min(t.baseY+(e.clientY-t.originY),0),r=e.timeStamp-C.current;if(r>0){const t=1-Math.exp(-r/40);N.current.x+=((n-v.current.x)/r*1e3-N.current.x)*t,N.current.y+=((o-v.current.y)/r*1e3-N.current.y)*t,C.current=e.timeStamp}v.current.x=n,v.current.y=o,z()},onPointerUp:e=>{const t=F.current;if(!t||t.pointerId!==e.pointerId)return;F.current=null,S.current?.(!1);try{e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}catch{}if(k.current)return;e.timeStamp-C.current>90&&(N.current={x:0,y:0});const n=v.current,o=N.current;if(fr(n.x,n.y,M.current)){if(n.y<-110||o.y<-620)return D("up")}else{if(n.x>110||o.x>620)return D("right");if(n.x<-110||o.x<-620)return D("left")}O(cr)},onPointerCancel:e=>{const t=F.current;t&&t.pointerId===e.pointerId&&(F.current=null,N.current={x:0,y:0},S.current?.(!1),k.current||O(cr))},onDragStart:e=>e.preventDefault(),children:[d,w&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{ref:g,className:`${T} left-5`,style:{opacity:0,transform:"rotate(-12deg)",color:h,borderColor:h,fontFamily:p},children:"Yes"}),(0,c.jsx)("div",{ref:y,className:`${T} right-5`,style:{opacity:0,transform:"rotate(12deg)",color:f,borderColor:f,fontFamily:p},children:"No"}),r&&(0,c.jsx)("div",{ref:b,className:"pointer-events-none absolute inset-x-0 bottom-6 flex justify-center",style:{opacity:0},children:(0,c.jsx)("span",{className:"rounded-full px-3 py-1 text-xs font-semibold uppercase tracking-widest",style:{color:m.colors.primary,border:`1px solid ${m.colors.border}`,background:m.colors.background},children:"Skip"})})]})]})})}function gr({prop:e}){const{theme:t,renderTeamLogo:n,renderPropositionSilk:o,displaySportName:r,gameCategory:l,compositeComponentById:s}=lr(),a=t.colors,i=fe(t),d=st(e,s),u=et(e),m=("racing"===l?[e.away_team?.trim()||e.home_team?.trim()]:[e.home_team?.trim(),e.away_team?.trim()]).filter(Boolean),p=(t,r)=>t&&o?.(t,r)||zr(t??e,n,m.join(" vs "))||null;return(0,c.jsxs)("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-3xl border",style:{backgroundColor:K(t),borderColor:a.border,boxShadow:"0 18px 40px -24px rgba(10,20,22,0.45)"},children:[(0,c.jsx)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 px-5 py-3",style:{backgroundColor:Z(t)},children:m.length>0?m.map((e,o)=>(0,c.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-sm font-semibold",style:{color:U(t)},children:[o>0&&(0,c.jsx)("span",{className:"mr-1 text-xs font-normal",style:{color:$(t)},children:"vs"}),n?.(e),e]},`${e}-${o}`)):(0,c.jsx)("span",{className:"text-sm font-semibold",style:{color:U(t)},children:e.league??r(e.sport??"")})}),(0,c.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-3 px-5 py-3 sm:gap-4 sm:py-6",children:[(0,c.jsxs)("div",{className:"flex min-w-0 items-start gap-2",children:[!d&&p(e,32),d?(0,c.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:[(0,c.jsxs)("span",{className:"text-xs font-bold uppercase tracking-widest",style:{color:Y(t)},children:["All ","OR"===d.operator?"or any of these":"of these"]}),(0,c.jsx)("ul",{className:"flex flex-col gap-2",children:d.legs.map((e,n)=>(0,c.jsxs)("li",{className:"flex items-start gap-2",children:[(0,c.jsx)("span",{"aria-hidden":!0,className:"text-base font-bold leading-snug",style:{color:a.primary},children:"OR"===d.operator?"/":"+"}),p(e.prop,24),(0,c.jsxs)("span",{className:"flex min-w-0 flex-col",children:[e.eventLabel&&(0,c.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-wide leading-tight",style:{color:a.textMuted},children:e.eventLabel}),(0,c.jsx)("span",{className:"text-base font-bold leading-snug",style:{color:H(t),fontFamily:i},children:e.text})]})]},n))})]}):(0,c.jsx)("p",{className:"min-w-0 flex-1 text-xl font-extrabold leading-snug tracking-tight sm:text-2xl",style:{color:H(t),fontFamily:i},children:e.description??e.proposition})]}),e.outcome_description&&e.outcome_description!==e.description&&(0,c.jsx)("p",{className:"text-sm leading-snug",style:{color:a.textMuted},children:e.outcome_description})]}),(0,c.jsxs)("div",{className:"flex flex-wrap items-center gap-2 border-t px-5 py-3 text-[11px]",style:{borderColor:a.borderSubtle??a.border,color:a.textMuted},children:[e.sport&&(0,c.jsx)("span",{className:"rounded-full px-2 py-0.5 font-semibold uppercase tracking-wide",style:{backgroundColor:a.infoBg,color:a.infoText},children:r(e.sport)}),u&&(0,c.jsx)("span",{className:"uppercase tracking-wide",children:u.replace(/[_-]+/g," ")}),e.commence_time&&(0,c.jsx)("span",{className:"ml-auto",children:gt(e.commence_time)})]})]})}function yr({onBack:e,onNext:t,viewSwitch:n,onDragStateChange:o,className:r=""}){const{theme:l,propositions:a,selections:i,toggleSelection:d,selectedGame:u,selectedPropositionCount:m,answeredCount:p,selectionValid:h,goToConfirmation:f,goToSportSelection:x,loading:g,error:y,selectedRule:b}=lr(),w=l.colors,k=he(l),v=fe(l),N=w.productYes??ur,F=w.productNo??mr,C=(0,s.useRef)(null);(0,s.useEffect)(()=>{u||(x(),e?.())},[x,e,u]);const{visible:B,canSkip:A,canUndo:M,restored:S,resolve:z,undo:L}=ir(a,i,d),P=u?At(u,m??void 0,b):{min:0,max:0},O=P.max,D=O>0&&p>=O,T=(()=>{if(!u)return null;if(P.min>0&&P.min===P.max)return P.min;const e=Xo(u);return null!=m&&m>0&&("game_set"===e||"pick_your_dividend"===e||Qo(u))?m:O>0?O:null})(),E=(0,s.useRef)(p);(0,s.useEffect)(()=>{const e=E.current;if(E.current=p,null==T||e>=T||p!==T)return;const n=setTimeout(()=>{f(),t?.()},420);return()=>clearTimeout(n)},[p,f,t,T]);const Y=!D&&B.length>0;(0,s.useEffect)(()=>{if(!Y)return;const e=e=>{const t=e.target;if(!t||!/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName)){switch(e.key){case"ArrowRight":C.current?.fly("right");break;case"ArrowLeft":C.current?.fly("left");break;case"ArrowUp":C.current?.fly("up");break;case"ArrowDown":case"Backspace":L();break;default:return}e.preventDefault()}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[Y,L]);const H=(0,s.useCallback)(e=>{C.current=e},[]);if(!u)return null;const R=(e,t,n,o)=>(0,c.jsx)("button",{type:"button",onClick:n,disabled:o,"aria-label":e,className:"flex h-11 w-11 items-center justify-center rounded-full border text-lg transition-transform active:scale-95 disabled:opacity-35",style:{borderColor:w.border,color:w.textMuted,background:w.background},children:(0,c.jsx)("span",{"aria-hidden":!0,children:t})});return(0,c.jsxs)("div",{className:`flex w-full flex-col ${r}`,style:{fontFamily:k},children:[n&&(0,c.jsx)("div",{className:"flex shrink-0 justify-end pb-3",children:n}),g?(0,c.jsx)("p",{className:"py-10 text-center text-sm",style:{color:w.textMuted},children:"Loading…"}):y?(0,c.jsx)("div",{className:"rounded-xl p-4 text-center",style:{background:w.errorBg,border:`1px solid ${w.error}`},children:(0,c.jsx)("p",{className:"text-sm",style:{color:w.errorText??w.error},children:y})}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"flex min-h-0 flex-1 flex-col justify-center pb-3 pt-2 sm:pb-8 sm:pt-3",children:Y?(0,c.jsx)("div",{className:"relative mx-auto w-full",style:{height:"clamp(14rem, 44dvh, 26rem)",maxWidth:384},children:B.map((e,t)=>(0,c.jsx)(xr,{prop:e,depth:t,canSkip:A,enterFrom:S?.id===e.id?S.from:null,onResolve:z,registerApi:0===t?H:void 0,onDragStateChange:0===t?o:void 0,children:(0,c.jsx)(gr,{prop:e})},e.id))}):(0,c.jsxs)("div",{className:"mx-auto flex w-full max-w-sm flex-col items-center gap-3 rounded-3xl px-6 py-10 text-center",style:{background:K(l),border:`1px dashed ${w.border}`},children:[(0,c.jsx)("p",{className:"text-base font-extrabold",style:{color:j(l),fontFamily:v},children:D?"Card full":"That’s the last one"}),(0,c.jsx)("p",{className:"text-sm",style:{color:w.textMuted},children:D?`You've picked all ${O} legs for ${u.game_name}. Undo a swipe to change one, or lock it in.`:h?"You've been through every proposition. Lock your card in, or undo to revisit a pick.":`No propositions left to answer${P.min>0?` — this game needs at least ${P.min}`:""}. Undo a swipe or head back to widen the pool.`}),M&&(0,c.jsx)("button",{type:"button",onClick:L,className:"rounded-full border px-5 py-2 text-sm font-semibold",style:{borderColor:w.border,color:w.text},children:"Undo last swipe"})]})}),(0,c.jsxs)("div",{className:"shrink-0 rounded-2xl border px-3 pb-2.5 pt-3",style:{backgroundColor:K(l),borderColor:w.border},children:[(0,c.jsxs)("div",{className:"mx-auto flex max-w-sm items-center justify-center gap-3",children:[R("Undo last swipe","↺",L,!M),(0,c.jsx)("button",{type:"button",onClick:()=>C.current?.fly("left"),disabled:!Y,className:"flex h-14 flex-1 items-center justify-center rounded-full text-lg font-extrabold uppercase tracking-wider text-white transition-transform active:scale-95 disabled:opacity-35",style:{backgroundColor:F,fontFamily:v},children:"No"}),(0,c.jsx)("button",{type:"button",onClick:()=>C.current?.fly("right"),disabled:!Y,className:"flex h-14 flex-1 items-center justify-center rounded-full text-lg font-extrabold uppercase tracking-wider text-white transition-transform active:scale-95 disabled:opacity-35",style:{backgroundColor:N,fontFamily:v},children:"Yes"}),R("Skip this proposition","↑",()=>C.current?.fly("up"),!Y||!A)]}),(0,c.jsx)("p",{className:"mt-2 text-center text-[11px]",style:{color:w.textMuted},children:A?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})]})]})}function br({propositions:e,title:t,onClose:n}){const{theme:o,selections:r,toggleSelection:l}=lr(),a=o.colors,{visible:i,canSkip:d,canUndo:u,restored:m,resolve:p,undo:h}=ir(e,r,l),f=(0,s.useRef)(null),x=(0,s.useRef)(null),g=(0,s.useCallback)(e=>{x.current=e},[]),y=(0,s.useCallback)(()=>x.current?.fly("up"),[]),b=$(o),w=fe(o),k=i.length>0,v=K(o),N=(0,s.useCallback)(()=>f.current?.close(),[]);(0,s.useEffect)(()=>{f.current?.showModal()},[]),(0,s.useEffect)(()=>{const e=e=>{const t=e.target;if(!t||!/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName)){switch(e.key){case"ArrowRight":x.current?.fly("right");break;case"ArrowLeft":x.current?.fly("left");break;case"ArrowUp":x.current?.fly("up");break;case"ArrowDown":case"Backspace":h();break;default:return}e.preventDefault()}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[h]);const F="flex h-11 w-11 items-center justify-center rounded-full border text-lg transition-transform active:scale-95 disabled:opacity-35",C={borderColor:a.border,color:a.textMuted,background:a.background,cursor:"pointer"},B=(e,t,n)=>(0,c.jsx)("button",{type:"button",onClick:()=>x.current?.fly(e),disabled:!k,className:"flex h-14 flex-1 items-center justify-center rounded-full text-lg font-extrabold uppercase tracking-wider text-white transition-transform active:scale-95 disabled:opacity-35",style:{backgroundColor:n,fontFamily:w,cursor:"pointer"},children:t});return(0,c.jsxs)("dialog",{ref:f,onClose:n,onClick:e=>{e.target===f.current&&N()},className:"m-auto w-[min(100vw-2rem,420px)] overflow-hidden rounded-3xl border p-4 backdrop:bg-black/60",style:{backgroundColor:v,borderColor:a.border,color:U(o)},children:[(0,c.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,c.jsx)("span",{className:"flex-1 min-w-0 truncate text-sm font-bold",style:{fontFamily:w},children:t}),(0,c.jsx)("button",{type:"button",onClick:N,"aria-label":"Close",className:"h-8 w-8 shrink-0 rounded-full border text-base leading-none",style:{borderColor:a.border,color:b,cursor:"pointer"},children:"×"})]}),(0,c.jsx)("div",{className:"flex flex-col justify-center pb-3 pt-1",children:k?(0,c.jsx)("div",{className:"relative mx-auto w-full",style:{height:"clamp(14rem, 44dvh, 26rem)"},children:i.map((e,t)=>(0,c.jsx)(xr,{prop:e,depth:t,canSkip:d,enterFrom:m?.id===e.id?m.from:null,onResolve:p,registerApi:0===t?g:void 0,children:(0,c.jsx)(gr,{prop:e})},e.id))}):(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-col items-center gap-3 rounded-3xl px-6 py-10 text-center",style:{background:v,border:`1px dashed ${a.border}`},children:[(0,c.jsx)("p",{className:"text-base font-extrabold",style:{color:j(o),fontFamily:w},children:"That’s the last one"}),(0,c.jsx)("p",{className:"text-sm",style:{color:a.textMuted},children:"You’ve been through every proposition on this fixture. Close to go back to the card, or undo to revisit a pick."})]})}),(0,c.jsxs)("div",{className:"shrink-0 pt-6",children:[(0,c.jsxs)("div",{className:"mx-auto flex items-center justify-center gap-3",children:[(0,c.jsx)("button",{type:"button",onClick:h,disabled:!u,"aria-label":"Undo last swipe",className:F,style:C,children:(0,c.jsx)("span",{"aria-hidden":!0,children:"↺"})}),B("left","No",G(o)),B("right","Yes",R(o)),(0,c.jsx)("button",{type:"button",onClick:y,disabled:!k||!d,"aria-label":"Skip this proposition",className:F,style:C,children:(0,c.jsx)("span",{"aria-hidden":!0,children:"↑"})})]}),(0,c.jsx)("p",{className:"mt-2 text-center text-[11px]",style:{color:a.textMuted},children:d?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})]})}function wr(e){return new Intl.DateTimeFormat("en-AU",{weekday:"short",day:"numeric",month:"short"}).format(e).replace(",","")}function kr(e){return new Intl.DateTimeFormat("en-AU",{hour:"numeric",minute:"2-digit",hour12:!0}).format(e).replace(/\s/g,"").toLowerCase()}function vr(e){const t=(e??"").trim().split(/\s+/).filter(Boolean);return(t[t.length-1]??"").slice(0,3).toUpperCase()}function Nr(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}function Fr(e){const t=e?.trim();if(t&&"undefined"!==t&&"null"!==t)return t}function Cr(e,t=!1){const n=Object.entries(e).map(([e,n])=>function(e,t,n){const[o,r]=n?[]:e.split(" vs ").map(Fr),l=t.map(Nr).filter(e=>null!==e),s=l.length>0?new Date(Math.min(...l.map(e=>e.getTime()))):null;return{key:e,title:n||!o?n?e:Fr(t[0]?.league??void 0)??"":[o,r].filter(Boolean).join(" vs "),home:o,away:r,racing:n,date:s,props:t}}(e,n,t)),o=n.filter(e=>null!==e.date).sort((e,t)=>e.date.getTime()-t.date.getTime()),r=n.filter(e=>null===e.date),l=new Map;for(const a of o){const e=a.date.toDateString(),t=l.get(e);t?t.events.push(a):l.set(e,{key:e,label:wr(a.date),events:[a]})}const s=[...l.values()];return r.length>0&&s.push({key:"undated",label:"",events:r}),s}var Br={split:"text-[13px] font-bold leading-snug",compact:"text-[11px] font-bold leading-snug"};function Ar({variant:e,groups:t,racing:n,selections:o,onToggleSelection:r,atMax:l,theme:a,renderTeamLogo:i,componentById:d,disableEventSwipe:u=!1}){const m=a.colors,p=K(a),h=Z(a),f=m.borderSubtle??m.border,x=U(a),g=$(a),y=H(a),b=Y(a),w=j(a),k=fe(a),[v,N]=(0,s.useState)(null),[F,C]=(0,s.useState)(new Set),[B,A]=(0,s.useState)(new Set),M=e=>t=>e(e=>{const n=new Set(e);return n.delete(t)||n.add(t),n}),S=M(C),z=M(A),L=s.default.useMemo(()=>Cr(t,n),[t,n]),P=e=>l&&!(e.id in o),O=(e,t)=>{P(e)||r(e.id,t)},D=(e,t)=>e?i?.(e,t)??null:null,T=(e,t,n)=>(0,c.jsx)(Ee,{theme:a,size:t,stretch:n,disabled:P(e),value:o[e.id]??null,onYes:()=>O(e,"yes"),onNo:()=>O(e,"no")}),E=(e,t)=>(0,c.jsxs)("span",{className:"min-w-0 flex-1 flex items-start gap-2",children:[n?zr(e,i,null):null,(0,c.jsx)(Or,{prop:e,colors:m,componentById:d,textClass:Br[t],textColor:y})]}),R=e=>{if(u)return null;const t=e.props.filter(e=>!P(e));return 0===t.length?null:(0,c.jsxs)("button",{type:"button",onClick:()=>N(e),"aria-label":`Swipe ${t.length} proposition${1===t.length?"":"s"}`,className:"group flex h-7 shrink-0 items-center rounded-full border px-1.5 transition-transform active:scale-95",style:{borderColor:f,color:b,cursor:"pointer"},children:[(0,c.jsx)(Mr,{}),(0,c.jsx)("span",{"aria-hidden":!0,className:"max-w-0 overflow-hidden whitespace-nowrap text-[10px] font-bold uppercase tracking-wider opacity-0 transition-all duration-150 group-hover:max-w-16 group-hover:pl-1 group-hover:opacity-100 group-focus-visible:max-w-16 group-focus-visible:pl-1 group-focus-visible:opacity-100",children:"Swipe"})]})},G=(e,t,n)=>(0,c.jsx)("button",{type:"button",onClick:()=>S(e.key),"aria-expanded":t,"aria-controls":n,"aria-label":`${t?"Hide":"Show"} ${e.props.length} proposition${1===e.props.length?"":"s"}`,className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full border transition-transform active:scale-95",style:{borderColor:f,color:b,cursor:"pointer"},children:(0,c.jsx)(Sr,{rotated:!t})}),W=e=>{if(!e.home&&!e.away)return(0,c.jsx)("span",{className:"text-[11.5px] font-bold truncate",style:{color:x},children:e.title});const t=[e.home,e.away].filter(Boolean).join(" v "),n=B.has(e.key);return(0,c.jsx)("button",{type:"button",onClick:()=>z(e.key),title:t,"aria-label":t,"aria-pressed":n,className:"min-w-0 text-[11.5px] font-bold leading-tight",style:{color:x,fontFamily:k,cursor:"pointer"},children:n?(0,c.jsxs)(c.Fragment,{children:[e.home,(0,c.jsx)("span",{className:"text-[9px] font-semibold px-1",style:{color:g},children:"v"}),e.away]}):(0,c.jsxs)(c.Fragment,{children:[vr(e.home),(0,c.jsx)("span",{className:"text-[9px] font-semibold px-0.5",style:{color:g},children:"v"}),vr(e.away)]})})},I=t=>"compact"===e?(e=>(0,c.jsxs)("div",{className:"rounded-2xl border overflow-hidden divide-y mb-2",style:{borderColor:m.border,backgroundColor:p},children:[(0,c.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0 px-3 py-2",style:{borderColor:f,backgroundColor:h},children:[!e.racing&&D(e.home,18),W(e),!e.racing&&D(e.away,18),e.date&&(0,c.jsx)("span",{className:"text-[9px] font-medium whitespace-nowrap ml-0.5",style:{color:g},children:kr(e.date)}),(0,c.jsx)("span",{className:"ml-auto",children:R(e)})]}),e.props.map(e=>(0,c.jsxs)("div",{className:"grid grid-cols-[1fr_auto] gap-2 items-center px-3 py-2.5",style:{borderColor:f,opacity:P(e)?.45:1},children:[(0,c.jsx)("div",{className:"min-w-0 flex",children:E(e,"compact")}),T(e,"xs")]},e.id))]},e.key))(t):((e,t)=>{const n=!F.has(e.key),o=`variant-split-${e.key}`,r=`${e.props.length} proposition${1===e.props.length?"":"s"}`;return n?(0,c.jsxs)("div",{className:"grid grid-cols-[80px_1fr] items-stretch rounded-2xl border overflow-hidden mb-2",style:{borderColor:m.border,backgroundColor:p},children:[(0,c.jsxs)("div",{className:"flex flex-col items-center justify-center gap-1.5 text-center min-w-0 border-r px-2 py-3",style:{borderColor:f,backgroundColor:h},children:[!e.racing&&(0,c.jsxs)("span",{className:"flex items-center gap-0.5",children:[D(e.home,24),D(e.away,24)]}),W(e),e.date&&(0,c.jsx)("span",{className:"text-[9.5px] font-medium",style:{color:g},children:kr(e.date)}),R(e)]}),(0,c.jsxs)("div",{id:o,className:"flex flex-col min-w-0 divide-y",style:{borderColor:f},children:[(0,c.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5",children:[(0,c.jsx)("span",{className:"text-[10px] font-semibold",style:{color:g},children:r}),(0,c.jsx)("span",{className:"ml-auto",children:G(e,n,o)})]}),(0,c.jsx)("div",{className:"flex flex-col justify-center gap-3 px-3 py-2.5",children:e.props.map(e=>(0,c.jsxs)("div",{className:t?"grid grid-cols-[1fr_auto] gap-2.5 items-center":"flex flex-col gap-2.5",style:{opacity:P(e)?.45:1},children:[(0,c.jsx)("span",{className:"min-w-0 flex",children:E(e,"split")}),t?T(e,"xs"):T(e,"sm",!0)]},e.id))})]})]},e.key):(0,c.jsxs)("div",{className:"flex items-center rounded-2xl border overflow-hidden mb-2",style:{borderColor:m.border,backgroundColor:p},children:[(0,c.jsxs)("div",{className:"flex items-center gap-1 self-stretch border-r px-2 py-1.5",style:{borderColor:f,backgroundColor:h},children:[!e.racing&&(0,c.jsxs)(c.Fragment,{children:[D(e.home,16),D(e.away,16)]}),W(e)]}),(0,c.jsx)("span",{id:o,className:"px-3 text-[11px] font-semibold",style:{color:g},children:r}),(0,c.jsx)("span",{className:"ml-auto pr-2",children:G(e,n,o)})]},e.key)})(t,"split-inline"===e);return(0,c.jsxs)("div",{className:"pb-4",children:[L.map(e=>{return(0,c.jsxs)("div",{children:[e.label&&(t=e.label,(0,c.jsxs)("div",{className:"flex items-center gap-2 mt-4 mb-2 first:mt-0",children:[(0,c.jsx)("span",{className:"text-[11px] font-bold tracking-wide",style:{color:w,fontFamily:k},children:t}),(0,c.jsx)("span",{className:"flex-1 h-px",style:{backgroundColor:f}})]})),e.events.map(I)]},e.key);var t}),v&&(0,c.jsx)(br,{propositions:v.props.filter(e=>!P(e)),title:v.title,onClose:()=>N(null)})]})}function Mr(){return(0,c.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,c.jsx)("rect",{x:"3",y:"5",width:"12",height:"16",rx:"2"}),(0,c.jsx)("path",{d:"M8.5 3h7a2 2 0 0 1 2 2v12"})]})}function Sr({rotated:e}){return(0,c.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,style:{transform:e?"rotate(-90deg)":void 0,transition:"transform 0.15s ease"},children:(0,c.jsx)("path",{d:"m6 9 6 6 6-6"})})}function zr(e,t,n){if(!t||(o=n)&&o.split(" vs ").length>1)return null;var o;const r=e.outcome||e.description;return r?t(r):null}function Lr({matchup:e,renderTeamLogo:t,altText:n,mutedColor:o,size:r="sm"}){const[l,s=""]=e.split(" vs "),a="md"===r?"text-sm sm:text-base":"text-sm";if(!(s.length>0))return(0,c.jsx)("span",{className:`font-semibold ${a} leading-snug break-words`,style:{color:n},children:e});const i=(e,n)=>(0,c.jsxs)("span",{className:`inline-flex items-center gap-1 leading-snug min-w-0 max-w-full ${n}`,children:[t?.(e),(0,c.jsx)("span",{className:"break-words min-w-0",children:e})]});return(0,c.jsxs)("span",{className:`font-semibold ${a} grid grid-cols-[auto_1fr] items-center gap-x-1.5 min-w-0 max-w-full sm:flex sm:flex-wrap sm:items-center`,style:{color:n},children:[i(l,"col-start-2 row-start-1"),(0,c.jsx)("span",{className:"text-xs font-normal flex-shrink-0 col-start-1 row-start-1 row-span-2 self-center",style:{color:o},children:"vs"}),i(s,"col-start-2 row-start-2")]})}function Pr({label:e,colors:t}){const n="OR"===e?"If either wins, you win.":"Both must win for Yes.",[o,r]=(0,s.useState)(!1),[l,a]=(0,s.useState)({top:0,left:0}),i=(0,s.useRef)(null),d=(0,s.useCallback)(()=>{const e=i.current;if(!e)return;const t=e.getBoundingClientRect();a({top:t.bottom+4,left:t.left})},[]);return(0,s.useEffect)(()=>{if(!o)return;d();const e=()=>d();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[o,d]),(0,c.jsxs)("span",{className:"relative inline-flex flex-shrink-0",onMouseEnter:()=>{d(),r(!0)},onMouseLeave:()=>r(!1),children:[(0,c.jsx)("button",{ref:i,type:"button",className:"px-2 py-0.5 rounded-md text-[10px] font-bold uppercase tracking-wide leading-none cursor-help",style:{color:t.primary,backgroundColor:M(t.primary,.14),border:`1px solid ${M(t.primary,.45)}`},"aria-label":n,"aria-expanded":o,onClick:e=>{e.stopPropagation(),d(),r(e=>!e)},children:e}),o&&(0,c.jsx)("span",{role:"tooltip",className:"fixed z-[9999] min-w-[12rem] max-w-[22rem] rounded-md px-2.5 py-1.5 text-[11px] leading-snug shadow-lg pointer-events-none",style:{top:l.top,left:l.left,color:t.text,backgroundColor:t.backgroundAlt??"#fff",border:`1px solid ${t.border??M(t.primary,.3)}`},children:n})]})}function Or({prop:e,colors:t,size:n="sm",componentById:o,textClass:r,textColor:l}){const a=st(e,o),i=e.description??e.proposition??"",d=r??("md"===n?"text-sm sm:text-base font-medium":"text-xs sm:text-sm"),u=l??t.text,m=t.textMuted??t.textAltMuted??t.text;if(!a)return(0,c.jsx)("span",{className:d,style:{color:u},children:i});const{operator:p,legs:h}=a;return h.some(e=>e.eventLabel)?(0,c.jsx)("div",{className:"min-w-0 flex-1 flex flex-col gap-2",children:h.map((e,n)=>(0,c.jsxs)("div",{className:"min-w-0",children:[n>0&&(0,c.jsx)("div",{className:"mb-1 flex items-center",children:(0,c.jsx)(Pr,{label:p,colors:t})}),e.eventLabel&&(0,c.jsx)("div",{className:"text-[10px] sm:text-xs font-semibold uppercase tracking-wide leading-tight break-words",style:{color:m},children:e.eventLabel}),(0,c.jsx)("span",{className:d,style:{color:u},children:e.text})]},n))}):(0,c.jsx)("div",{className:"min-w-0 flex-1",children:(0,c.jsx)("div",{className:"flex flex-wrap items-center gap-x-1.5 gap-y-1",children:h.map((e,n)=>(0,c.jsxs)(s.default.Fragment,{children:[n>0&&(0,c.jsx)(Pr,{label:p,colors:t}),(0,c.jsx)("span",{className:d,style:{color:u},children:e.text})]},n))})})}function Dr({game:e,propositions:t,selections:n,onToggleSelection:o,onNext:r,onBack:l,loading:a,error:i,theme:d,colorScheme:u,hideActions:m=!1,initialSport:p,renderTeamLogo:h,disableQuickPick:f=!1,selectedPropositionCount:x,onPropositionCountChange:g,gameCategory:y,headerExtra:b,variant:w,disableEventSwipe:k}){const v=(0,s.useContext)(or),N=v?.sportBaseKey,F=v?.compositeComponentById,C=w??v?.selectionVariant,B=k??v?.disableEventSwipe??!1,A=pe(d,u),S=A.colors,z=K(A),L=q(A),P=S.matchupHeader??(e.color?M(e.color,.14):Z(A)),O=S.textAlt??S.text,T=D(A),E=he(A);fe(A),j(A);const Y=!!(e.allowed_propositions&&e.allowed_propositions.length>0),{min:H,max:R}=At(e,x),G=H,W=R,[I,U]=s.default.useState(()=>new Set(Object.keys(Kt(t,y,N)))),$=G>0&&G===W,X=G||1,Q=W||t.length,J=W||G||t.length,[_,ee]=s.default.useState(J),te=Object.keys(n).length,ne=W>0&&te>=W,oe=Y?null!=x&&te===x:Bt(te,e.min_propositions,e.max_propositions);e.min_bet,W>0?Math.max(2,2*W):Math.max(2,2*te);const re=s.default.useRef(te),le=Y?null!=x&&te===x:W>0&&te===W;(0,s.useEffect)(()=>{le&&te>re.current&&r?.(),re.current=te},[te,le]);const se=(e,t)=>{!(e in n)&&ne||o(e,t)};(0,s.useEffect)(()=>{const e=W||t.length,n=G||1;ee(t=>$?W:Math.max(n,Math.min(t,e)))},[t.length,G,W,$]);const ae=(0,s.useMemo)(()=>new Date,[]),ie=(0,s.useMemo)(()=>function(e,t){const n=e.filter(e=>null!=function(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}(e));if(n.length<2)return[];const o=[];for(const r of fo){let e=0,l=0;for(const o of n)if(go(o.commence_time,r,t)?e+=1:l+=1,e>0&&l>0)break;e>0&&l>0&&o.push({id:r,label:ho[r]})}return o}(t,ae),[t,ae]),[ce,de]=(0,s.useState)(null);(0,s.useEffect)(()=>{ce&&!ie.some(e=>e.id===ce)&&de(null)},[ie,ce]);const ue=(0,s.useMemo)(()=>function(e,t,n){return t?e.filter(e=>go(e.commence_time,t,n)):e.slice()}(t,ce,ae),[t,ce,ae]),me=(0,s.useMemo)(()=>St(y,ue,N),[y,ue,N]),xe=(0,s.useMemo)(()=>Kt(ue,y,N),[ue,y,N]),ge=(0,s.useMemo)(()=>{const e=new Set;for(const t of ue){const n=et(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[ue]),[ye,be]=(0,s.useState)(null),[we,ke]=(0,s.useState)(!1);(0,s.useEffect)(()=>{ye&&!ge.includes(ye)&&be(null)},[ge,ye]);const ve=(0,s.useMemo)(()=>{if(!ye)return xe;const e={};for(const[t,n]of Object.entries(xe)){const o=n.filter(e=>et(e)===ye);o.length>0&&(e[t]=o)}return e},[xe,ye]),Ne=Object.keys(ve);if(s.default.useEffect(()=>{const e=Object.keys(ve);e.length>0&&U(t=>e.every(e=>t.has(e))?t:new Set(e))},[ve]),a)return(0,c.jsx)(yn,{colors:V(A),bodyFont:E,variant:"propositions"});if(i)return(0,c.jsx)("div",{className:"flex items-center justify-center p-8",style:{fontFamily:E},children:(0,c.jsx)("div",{style:{color:S.error},children:i})});const Fe=!f&&t.length>0,Ce=ie.length>0||ge.length>1,Be=(null!=ce?1:0)+(null!=ye?1:0);return(0,c.jsxs)("div",{className:"space-y-4 sm:space-y-6 pb-16",style:{fontFamily:E},children:[(Ce||b)&&(0,c.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,c.jsx)("div",{className:"flex items-center gap-2",children:Ce&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("button",{type:"button",onClick:()=>ke(e=>!e),"aria-expanded":we,className:"inline-flex items-center gap-1.5 rounded-full px-3 py-1.5 text-[11px] font-bold transition-colors",style:{fontFamily:E,border:`1px solid ${Be>0?S.primary:S.border}`,backgroundColor:Be>0?S.primary:S.background??"#fff",color:Be>0?S.primaryText:S.text,cursor:"pointer"},children:[(0,c.jsx)(Ze,{size:13}),"Filter",Be>0&&(0,c.jsxs)("span",{children:["· ",Be]}),(0,c.jsx)("span",{className:"inline-flex transition-transform",style:{transform:`rotate(${we?-90:90}deg)`,opacity:.75},children:(0,c.jsx)(qe,{size:13})})]}),Be>0&&(0,c.jsx)("button",{type:"button",onClick:()=>{de(null),be(null)},className:"text-[11px] font-semibold",style:{color:S.textMuted,cursor:"pointer"},children:"Clear"})]})}),b]}),we&&Ce&&(0,c.jsxs)("div",{className:"space-y-2.5",children:[ie.length>0&&(0,c.jsx)(_e,{label:"When",options:[{value:null,label:"All dates"},...ie.map(e=>({value:e.id,label:e.label}))],value:ce,onChange:e=>de(e),theme:A,bodyFont:E}),ge.length>1&&(0,c.jsx)(_e,{label:"Market",options:[{value:null,label:"All markets"},...ge.map(e=>{return{value:e,label:(t=e,t.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))};var t})],value:ye,onChange:be,theme:A,bodyFont:E})]}),Fe&&(0,c.jsx)("div",{className:"flex flex-wrap items-center justify-end gap-2",children:(0,c.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2 flex-shrink-0",children:[!$&&(0,c.jsxs)("div",{className:"flex items-center gap-1",children:[(0,c.jsx)("input",{type:"number",min:X,max:Q,value:_,onChange:e=>{const t=parseInt(e.target.value,10);isNaN(t)||ee(Math.max(X,Math.min(Q,t)))},className:"w-10 sm:w-14 px-1 sm:px-2 py-1 sm:py-1.5 rounded-lg text-xs sm:text-sm font-semibold text-center",style:{color:O,backgroundColor:S.backgroundAlt,border:`2px solid ${S.border}`}}),(0,c.jsxs)("span",{className:"text-xs whitespace-nowrap",style:{color:S.textMuted},children:["/ ",t.length]})]}),(0,c.jsx)(sr,{onPress:()=>{const e=$?W:_;for(const t of Object.keys(n)){const e=Number(t);o(e,n[e])}const{yesPicks:l,noPicks:s}=Vt(t,e);for(const t of l)o(t.id,"yes");for(const t of s)o(t.id,"no");r?.()}})]})}),t.length>0&&C&&(0,c.jsx)(Ar,{variant:C,groups:ve,racing:me,selections:n,onToggleSelection:se,atMax:ne,theme:A,renderTeamLogo:h,componentById:F,disableEventSwipe:B}),t.length>0&&!C&&(0,c.jsx)("div",{className:"space-y-4",children:Ne.every(e=>1===ve[e].length)?(0,c.jsx)("div",{className:"rounded-xl border overflow-hidden divide-y",style:{borderColor:S.border,backgroundColor:z,boxShadow:T},children:Ne.map(e=>{const t=ve[e][0],o="yes"===n[t.id],r="no"===n[t.id],l=t.id in n,s=ne&&!l;return(0,c.jsxs)("div",{className:"transition-colors divide-y",style:{opacity:s?.45:1,borderColor:S.border},children:[(0,c.jsxs)("div",{className:"px-4 py-2.5 sm:py-3 min-w-0",style:{backgroundColor:P},children:[(0,c.jsx)("div",{className:"min-w-0",children:(0,c.jsx)(Lr,{matchup:e,renderTeamLogo:h,altText:O,mutedColor:S.textAltMuted??S.textMuted??O})}),t.commence_time&&(0,c.jsx)("span",{className:"text-[11px] block mt-0.5",style:{color:S.textAltMuted??S.textMuted,opacity:.7},children:gt(t.commence_time)})]}),(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 px-4 py-3 sm:py-3.5",style:{backgroundColor:L},children:[(0,c.jsxs)("div",{className:"min-w-0 flex-1 flex items-start gap-2",children:[zr(t,h,e),(0,c.jsx)(Or,{prop:t,colors:S,componentById:F})]}),(0,c.jsx)(Ee,{theme:A,size:"sm",value:o?"yes":r?"no":null,onYes:()=>se(t.id,"yes"),onNo:()=>se(t.id,"no"),disabled:s})]})]},t.id)})}):Ne.map(e=>{const t=ve[e],o=I.has(e),r=t.filter(e=>e.id in n).length,l=t[0]?.commence_time;return(0,c.jsxs)("div",{className:"rounded-xl border overflow-hidden",style:{borderColor:S.border,backgroundColor:z,boxShadow:T},children:[(0,c.jsxs)("button",{type:"button",onClick:()=>{return t=e,U(e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n});var t},className:"w-full flex items-center justify-between px-4 py-3.5 transition-colors",style:{backgroundColor:P,cursor:"pointer"},children:[(0,c.jsxs)("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[(0,c.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"flex-shrink-0",style:{color:S.textAltMuted??S.textMuted,transform:o?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.15s ease"},"aria-hidden":!0,children:(0,c.jsx)("path",{d:"m6 9 6 6 6-6"})}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsx)(Lr,{matchup:e,renderTeamLogo:h,altText:O,mutedColor:S.textAltMuted??S.textMuted??O,size:"md"}),l&&(0,c.jsx)("p",{className:"text-xs mt-0.5 text-left",style:{color:S.textAltMuted??S.textMuted,opacity:.7},children:gt(l)})]})]}),(0,c.jsx)("div",{className:"flex items-center gap-2 flex-shrink-0 ml-2",children:r>0&&(0,c.jsxs)("span",{className:"text-xs px-2 py-0.5 rounded-full font-medium",style:{color:r>0?S.successText:S.textMuted,backgroundColor:r>0?S.successBg:S.backgroundAlt},children:[r,"/",t.length]})})]}),o&&(0,c.jsx)("div",{className:"divide-y",style:{borderColor:S.border},children:(0,c.jsx)(c.Fragment,{children:t.map(t=>{const o="yes"===n[t.id],r="no"===n[t.id],l=t.id in n,s=ne&&!l;return(0,c.jsx)("div",{className:"px-4 py-3 sm:py-3.5 transition-colors",style:{backgroundColor:L,opacity:s?.45:1},children:(0,c.jsxs)("div",{className:"flex flex-wrap justify-between items-start gap-x-2 gap-y-2 sm:gap-4",children:[(0,c.jsxs)("div",{className:"flex-1 min-w-0 flex items-start gap-2",style:{minWidth:"8rem"},children:[zr(t,h,e),(0,c.jsx)(Or,{prop:t,colors:S,size:"md",componentById:F})]}),(0,c.jsx)(Ee,{theme:A,size:"sm",value:o?"yes":r?"no":null,onYes:()=>se(t.id,"yes"),onNo:()=>se(t.id,"no"),disabled:s})]})},t.id)})})})]},e)})}),0===t.length&&(0,c.jsx)("div",{className:"text-center p-8",style:{color:S.textMuted},children:"No propositions available at this time"}),!m&&(0,c.jsxs)("div",{className:"sticky bottom-0 z-10 -mx-4 sm:-mx-6 px-4 sm:px-6 py-3 sm:py-4 border-t flex items-center justify-between gap-3",style:{borderColor:S.border,backgroundColor:z},children:[(0,c.jsx)(Oe,{theme:A,variant:"secondary",onPress:l,children:"Back"}),(0,c.jsx)("div",{className:"flex items-center gap-2 sm:gap-3",children:(0,c.jsx)(Oe,{theme:A,variant:"primary",disabled:!oe,onPress:r,children:"Wager"})})]})]})}function Tr({game:e,propositions:t,selections:n,onToggleSelection:o,onRemoveSelection:r,onSubmit:l,onBack:a,loading:i,error:d,expectedCorrect:u,onExpectedCorrectChange:m,betAmount:p,onBetAmountChange:h,theme:f,colorScheme:x,hideActions:g=!1,winningCounts:y,payouts:b,renderTeamLogo:w,showCustomAmount:k=!1,betAmountLocked:v=!1,betAmountLockedNote:N,canSubmit:F,authenticated:C=!0,userBalance:B,onRecharge:A,boostBanner:M}){const S=pe(f,x),z=S.colors,L=K(S),P=he(S),O=fe(S),T=j(S),E=Y(S),R=H(S),G=z.textAlt??z.text,W=t.length,I=e.min_bet??0,U=Math.max(I,.01),$=e.max_bet??null,V=[5,10,20,50,100,200,500].filter(e=>e>=U&&(null===$||e<=$)).slice(0,4),X={};for(let s=0;s<=W;s++)X[s]=p*s;const Q=b??X,J=Q[u]??0,_=Mt(e),ee=_.enabled&&u===W,[te,ne]=(0,s.useState)(null),[oe,re]=(0,s.useState)(!0),le=i||p<U||!1===F,se=null!=B&&p>B,ae=g&&!!l&&C,ie=n?t.filter(e=>e.id in n):t,ce=Zt(ie),de=z.matchupHeader??Z(S),ue=q(S),me=Object.entries(Q).map(([e,t])=>({correct:Number(e),payout:t})).filter(e=>e.correct>0&&e.payout>0).sort((e,t)=>e.correct-t.correct),xe=1===me.length?me[0].correct:null;return s.default.useEffect(()=>{null!==xe&&u!==xe&&m(xe)},[xe]),(0,c.jsxs)("div",{className:"space-y-3 sm:space-y-4 pb-16",style:{fontFamily:P},children:[M,(0,c.jsxs)("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:L,borderColor:z.border,boxShadow:D(S)},children:[(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,c.jsxs)("button",{type:"button",onClick:()=>re(e=>!e),"aria-expanded":oe,"aria-controls":"entry-submission-selections","aria-label":oe?"Hide selections":"Show selections","data-testid":"entry-submission-selections-toggle",className:"flex items-center gap-2 min-w-0 flex-1 text-left",style:{background:"none",border:"none",padding:0,cursor:"pointer",color:"inherit"},children:[(0,c.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{color:z.textMuted,flexShrink:0,transform:oe?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.15s ease"},children:(0,c.jsx)("path",{d:"m6 9 6 6 6-6"})}),(0,c.jsx)("h3",{className:"text-sm sm:text-base font-semibold",style:{color:T,fontFamily:O},children:oe?"Hide Selections":"Review Selections"})]}),(0,c.jsxs)("span",{className:"text-xs font-semibold px-2 py-0.5 rounded-full flex-shrink-0",style:{color:z.primary,backgroundColor:`${z.primary}15`},children:[ie.length," pick",1!==ie.length?"s":""]})]}),!oe&&(0,c.jsx)("p",{className:"text-xs mt-2",style:{color:z.textMuted},children:"Tap to show your picks"}),oe&&(0,c.jsx)("div",{id:"entry-submission-selections",className:"space-y-2 mt-3",children:ce.map(e=>(0,c.jsxs)("div",{className:"rounded-lg overflow-hidden border",style:{borderColor:z.border},children:[e.key&&(0,c.jsxs)("div",{className:"px-3 py-2 min-w-0",style:{backgroundColor:de},children:[(0,c.jsx)(Lr,{matchup:e.key,renderTeamLogo:w,altText:G,mutedColor:z.textAltMuted??z.textMuted??G}),e.props[0].commence_time&&(0,c.jsx)("span",{className:"text-[11px] block mt-0.5",style:{color:z.textAltMuted??z.textMuted,opacity:.7},children:gt(e.props[0].commence_time)})]}),e.props.map((t,l)=>{const s=n?.[t.id],a="yes"===s,i="no"===s,d=!!o;return(0,c.jsxs)("div",{className:"flex items-center justify-between gap-2 px-3 py-2 cursor-default",style:{backgroundColor:ue,borderTop:e.key||l>0?`1px solid ${z.border}`:void 0},children:[(0,c.jsxs)("div",{className:"min-w-0 flex-1 flex items-start gap-2",children:[zr(t,w,e.key),(0,c.jsx)("p",{className:"text-xs sm:text-sm break-words leading-snug",style:{color:G},children:t.description})]}),(0,c.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-1.5",children:[d?(0,c.jsx)(Ee,{theme:S,size:"xs",value:a?"yes":i?"no":null,onYes:()=>o(t.id,"yes"),onNo:()=>o(t.id,"no")}):s?(0,c.jsx)(je,{theme:S,value:"yes"===s?"yes":"no",size:"sm",style:{flexShrink:0}}):null,oe&&r&&(0,c.jsx)("button",{type:"button","aria-label":"Remove selection",onClick:()=>{s&&o?.(t.id,s),r(t.id)},onMouseEnter:()=>ne(t.id),onMouseLeave:()=>ne(null),className:"flex-shrink-0 flex items-center justify-center",style:{width:44,height:44,background:"none",border:"none",padding:0,cursor:"pointer"},children:(0,c.jsx)("span",{className:"flex items-center justify-center rounded-full transition-colors",style:{width:26,height:26,color:te===t.id?"#fff":z.textMuted,backgroundColor:te===t.id?z.error:"transparent"},children:(0,c.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",strokeWidth:"2.5",viewBox:"0 0 24 24",children:(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})})]})]},t.id)})]},e.key??`solo-${e.props[0].id}`))})]}),ae&&(0,c.jsxs)("p",{className:"text-xs sm:text-sm font-medium flex items-center gap-1.5 -mt-1","data-testid":"entry-submission-scroll-hint",style:{color:z.textMuted},children:[(0,c.jsx)("span",{"aria-hidden":!0,children:"↓"}),"Scroll down to set your bet and place your entry"]}),C?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:L,borderColor:z.border,boxShadow:D(S)},children:[(0,c.jsxs)("div",{className:"flex items-center justify-between mb-3 sm:mb-4",children:[(0,c.jsx)("h3",{className:"text-base sm:text-lg font-semibold",style:{color:T,fontFamily:O},children:"How much are you betting?"}),null!=B&&(0,c.jsxs)("span",{className:"text-xs font-semibold",style:{color:z.textMuted},children:["Balance: ",(0,c.jsx)("span",{style:{color:se?z.error:z.success},children:xt(B)})]})]}),se&&(0,c.jsxs)("div",{className:"mb-3 px-3 py-2 rounded-lg flex items-center justify-between gap-3",style:{backgroundColor:z.errorBg??`${z.error}15`,color:z.errorText??z.error},children:[(0,c.jsxs)("span",{className:"text-xs font-medium",children:["Insufficient balance. Your bet of ",xt(p)," exceeds your available ",xt(B),"."]}),A&&(0,c.jsx)("button",{type:"button",onClick:A,className:"text-xs font-semibold px-3 py-1 rounded-md whitespace-nowrap",style:{backgroundColor:z.error,color:z.buttonPrimaryText??"#fff",cursor:"pointer"},children:"Add funds"})]}),v?(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-lg px-3 py-2.5",style:{backgroundColor:z.backgroundAlt,border:`1px solid ${z.border}`},children:[(0,c.jsx)("span",{className:"text-xs",style:{color:z.textMuted},children:N??"Stake is set for this ticket."}),(0,c.jsx)("span",{className:"text-lg font-bold tabular-nums",style:{color:T,fontFamily:O},children:xt(p)})]}):(0,c.jsxs)("div",{className:"space-y-4",children:[k&&(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{className:"text-xs sm:text-sm font-semibold mb-2",style:{color:E},children:"Entry amount"}),(0,c.jsxs)("div",{className:"relative",children:[(0,c.jsx)("span",{className:"absolute left-3 top-1/2 -translate-y-1/2",style:{color:z.textMuted},children:"$"}),(0,c.jsx)("input",{type:"number",inputMode:"decimal",min:U,max:$??void 0,step:"any",placeholder:"Enter amount","aria-label":"Entry amount",value:p||"",onChange:e=>{if(""===e.target.value)return void h(0);const t=Number(e.target.value);if(!Number.isFinite(t))return;const n=Math.max(0,Math.round(100*t)/100);h(null!==$?Math.min(n,$):n)},onFocus:e=>{e.currentTarget.style.borderColor=z.borderFocus??z.primary},onBlur:e=>{e.currentTarget.style.borderColor=z.border},className:"w-full pl-8 pr-4 py-3 border rounded-lg focus:outline-none text-lg font-semibold tabular-nums",style:{borderColor:z.border,color:G,backgroundColor:z.backgroundAlt,fontFamily:P,transition:"border-color .15s ease"}})]}),(0,c.jsxs)("p",{className:"text-xs mt-1.5",style:{color:z.textMuted},children:["Minimum bet: ",xt(U),null!==$&&(0,c.jsxs)(c.Fragment,{children:[" · Maximum: ",xt($)]})]}),p>0&&p<U&&(0,c.jsxs)("p",{className:"text-xs mt-1",style:{color:z.error},children:["Bet amount must be at least ",xt(U)]})]}),(0,c.jsxs)("div",{children:[(k||p>0)&&(0,c.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[k?(0,c.jsx)("p",{className:"text-xs sm:text-sm font-semibold",style:{color:E},children:"Add to bet"}):(0,c.jsx)("span",{}),p>0&&(0,c.jsx)("button",{type:"button",onClick:()=>h(0),className:"text-xs font-semibold px-2.5 py-1 rounded-md transition-colors",style:{color:z.textMuted,backgroundColor:z.backgroundAlt,border:`1.5px solid ${z.border}`,cursor:"pointer"},children:"Clear bet"})]}),(0,c.jsx)("div",{style:{display:"grid",gridTemplateColumns:`repeat(${Math.max(V.length,1)}, minmax(0, 1fr))`,gap:8},children:V.map(e=>{const t=null!==$&&p>=$;return(0,c.jsxs)("button",{type:"button",onClick:()=>{const t=p+e;h(null!==$?Math.min(t,$):t)},disabled:t,className:"px-3 py-2.5 rounded-lg text-sm font-semibold transition-colors min-w-0",style:{color:G,backgroundColor:"transparent",border:`1px solid ${z.border}`,cursor:t?"not-allowed":"pointer",opacity:t?.5:1},children:["+",xt(e)]},e)})})]})]})]}),(0,c.jsx)("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:L,borderColor:z.border,boxShadow:D(S)},children:(()=>{const e=g&&!!l,t=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"flex justify-between items-center text-sm mb-1",children:[(0,c.jsx)("span",{style:{color:E},children:"Bet"}),(0,c.jsx)("span",{className:"font-semibold",style:{color:R},children:xt(p)})]}),J>0&&(0,c.jsxs)("div",{className:"flex flex-wrap gap-x-2 justify-between items-center pt-2 border-t",style:{borderColor:z.border},children:[(0,c.jsx)("span",{className:"font-semibold text-sm",style:{color:E},children:"Potential Payout"}),(0,c.jsxs)("span",{className:"font-bold text-lg",style:{color:T},children:[xt(J),ee&&(0,c.jsx)("span",{className:"text-xs ml-1",style:{color:z.warning},children:"+ Jackpot"})]})]}),_.enabled&&(0,c.jsxs)("div",{className:"flex justify-between items-center mt-2 rounded px-2 py-1.5",style:{backgroundColor:`${z.warning}08`,border:`1px solid ${z.warning}25`},children:[(0,c.jsxs)("span",{className:"text-xs font-semibold",style:{color:z.warning},children:["★ ",_.progressive?"Progressive Jackpot":"Jackpot"]}),(0,c.jsx)("span",{className:"text-sm font-bold",style:{color:z.warning},children:_.progressive?_.amount>0?xt(_.amount):_.limit>0?`Up to ${xt(_.limit)}`:"Progressive":xt(_.amount)})]})]});return e?(0,c.jsxs)("div",{className:"flex items-stretch gap-4",children:[(0,c.jsx)("div",{className:"flex-1 min-w-0",children:t}),(0,c.jsx)("div",{className:"w-px self-stretch",style:{backgroundColor:z.border}}),(0,c.jsx)("button",{type:"button",onClick:l,disabled:le,"aria-busy":i,className:"flex-shrink-0 flex flex-col items-center justify-center px-5 py-3 rounded-lg text-sm font-semibold transition-colors disabled:opacity-50 disabled:cursor-not-allowed",style:{color:z.buttonPrimaryText,backgroundColor:z.buttonPrimary,cursor:le?"not-allowed":"pointer",minWidth:120},children:i?(0,c.jsxs)("span",{className:"flex flex-col items-center gap-2",children:[(0,c.jsx)(rn,{color:z.buttonPrimaryText}),(0,c.jsx)("span",{children:"Placing Entry…"})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"text-base font-bold leading-tight",children:"Place Entry"}),(0,c.jsx)("span",{className:"text-xs opacity-90 leading-tight mt-0.5",children:xt(p)})]})})]}):t})()})]}):(0,c.jsxs)("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:L,borderColor:z.border,boxShadow:D(S)},children:[(0,c.jsx)("h3",{className:"text-base sm:text-lg font-semibold",style:{color:T,fontFamily:O},children:"Log in to place this entry"}),(0,c.jsx)("p",{className:"text-xs sm:text-sm mt-1 mb-4",style:{color:z.textMuted},children:"Your picks are held. Log in to set your bet and confirm."}),(0,c.jsx)("button",{type:"button",onClick:l,className:"w-full px-6 py-3 rounded-lg text-sm font-semibold transition-colors",style:{color:z.buttonPrimaryText,backgroundColor:z.buttonPrimary,cursor:"pointer"},children:"Log in"})]}),d&&(0,c.jsx)("div",{className:"rounded-lg p-3",style:{backgroundColor:z.errorBg,border:`1px solid ${z.error}`},children:(0,c.jsx)("p",{className:"text-sm",style:{color:z.errorText},children:d})}),!g&&(0,c.jsxs)("div",{className:"sticky bottom-0 z-10 -mx-4 sm:-mx-6 px-4 sm:px-6 py-3 sm:py-4 border-t flex items-center justify-between gap-3",style:{borderColor:z.border,backgroundColor:z.background},children:[(0,c.jsx)(Oe,{theme:S,variant:"secondary",disabled:i,onPress:a,children:"Back"}),(0,c.jsx)("button",{type:"button",onClick:l,disabled:le,"aria-busy":i,className:"px-6 py-2.5 rounded-lg text-sm font-semibold transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",style:{color:z.buttonPrimaryText,backgroundColor:z.buttonPrimary,cursor:le?"not-allowed":"pointer"},children:i?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(rn,{color:z.buttonPrimaryText}),(0,c.jsx)("span",{children:"Placing Entry…"})]}):(0,c.jsx)("span",{children:`Place Entry (${xt(p)})`})})]})]})}function Er({iconUrl:e,gameName:t,chipColor:n,textColor:o,iconColor:r,accentColor:l,brandColor:s,height:a=56,showTrademark:i=!0,className:d,compact:u=!1,onPress:m}){const p=n??s??"#0F4C5C",h=.85*a,f=1.8*h,x=h/2,g=.05*h,y=.18*h,b={display:"inline-flex",alignItems:"center",flexWrap:"wrap",gap:.2*a,color:o??p,fontFamily:"Manrope, Poppins, sans-serif",fontSize:a,lineHeight:1.15,maxWidth:"100%",minWidth:0},w=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{"aria-label":"YESNO",style:{letterSpacing:-1,whiteSpace:"nowrap"},children:[(0,c.jsx)("span",{style:{fontWeight:900},children:"YES"}),(0,c.jsx)("span",{style:{fontWeight:300},children:"NO"})]}),(0,c.jsx)("span",{role:"img","aria-label":t,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:f,height:h,borderRadius:x,backgroundColor:p,flexShrink:0,transform:`translateY(${.06*-a}px)`},children:(0,c.jsx)(_t,{iconUrl:e,width:f-2*y,height:h-2*g,iconColor:r,accentColor:l})}),(0,c.jsxs)("span",{style:{fontWeight:500,whiteSpace:"normal",wordBreak:"break-word",minWidth:0,flexShrink:1},children:[t,i&&(0,c.jsx)("span",{style:{fontSize:"0.3em",fontWeight:600,marginLeft:"0.2em",display:"inline-block",transform:"translateY(-1.8em)"},children:"TM"})]})]});return m?(0,c.jsx)("button",{type:"button",onClick:m,className:d,"aria-label":`Play ${t}`,"data-testid":"brand-logo-play",style:{...b,background:"none",border:"none",padding:0,cursor:"pointer",textAlign:"left"},children:w}):(0,c.jsx)("div",{className:d,style:b,children:w})}function jr({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,demoEntries:l,demoGames:a,demoPropositions:i,onSelectEntry:d,theme:u,colorScheme:m,className:p="",renderTeamLogo:h,filterSport:f}){const x=pe(u,m),g=!!(l&&a&&i),y=x.colors,b=he(x),w=fe(x),[k,v]=(0,s.useState)("pending"),[N,F]=(0,s.useState)([]),C=(0,s.useMemo)(()=>new yo({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:B,loading:A,error:M,refetch:S}=vo(C,{user_id:r},{skip:g}),{games:z,loading:L,error:P}=bo(C,void 0,{skip:g}),{propositions:O,loading:D,error:T}=wo(C,void 0,{skip:g}),E=g?l:B,j=g?a:z,Y=g?i:O,H=!g&&(A||L||D),R=g?null:M||P||T,G=(0,s.useMemo)(()=>E.map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t}),[E]),W=(0,s.useMemo)(()=>{const e=new Map;for(const t of j)e.set(t.id,t);return e},[j]),I=(0,s.useMemo)(()=>{const e=new Map;for(const t of Y)e.set(t.id,t);for(const t of G)if(t.propositions)for(const n of t.propositions)e.has(n.id)||e.set(n.id,n);for(const t of N)e.set(t.id,t);return e},[Y,G,N]),U=(0,s.useRef)(new Set);(0,s.useEffect)(()=>{if(H||g)return;const e=[];for(const n of G)for(const t of n.proposition_ids??[])I.has(t)||U.current.has(t)||(e.push(t),U.current.add(t));if(0===e.length)return;let t=!1;return(async()=>{try{const n=await C.getPropositionsByIds(e);!t&&n.length>0&&F(e=>[...e,...n])}catch{}})(),()=>{t=!0}},[G,I,H,g,C]);const $=(0,s.useMemo)(()=>f?G.filter(e=>{const t=e.proposition_ids??[];return 0===t.length||t.some(t=>(I.get(t)??e.propositions?.find(e=>e.id===t))?.sport===f)}):G,[G,f,I]),K=(0,s.useMemo)(()=>$.filter(e=>ft(e.pending)),[$]),Z=(0,s.useMemo)(()=>$.filter(e=>!ft(e.pending)),[$]),q="pending"===k?K:Z,X=["flex-1",p].filter(Boolean).join(" ");return H?(0,c.jsx)("div",{className:X,style:{fontFamily:b},role:"status","aria-label":"Loading entries",children:(0,c.jsx)(gn,{colors:V(x),rows:2})}):R?(0,c.jsx)("div",{className:X,style:{fontFamily:b},children:(0,c.jsxs)("div",{className:"rounded-lg p-4",style:{backgroundColor:y.errorBg,border:`1px solid ${y.error}`},children:[(0,c.jsx)("p",{style:{color:y.errorText},children:R}),(0,c.jsx)("button",{type:"button",onClick:S,className:"mt-2 text-sm font-medium underline",style:{color:y.error,cursor:"pointer"},children:"Try again"})]})}):(0,c.jsxs)("div",{className:X,style:{fontFamily:b},children:[(0,c.jsx)("div",{className:"flex border-b mb-4",style:{borderColor:y.border},role:"tablist",children:["pending","completed"].map(e=>{const t=k===e,n="pending"===e?K.length:Z.length;return(0,c.jsxs)("button",{role:"tab","aria-selected":t,type:"button",onClick:()=>v(e),className:"flex items-center gap-2 px-4 py-2.5 text-sm font-medium transition-colors border-b-2 -mb-px",style:{borderColor:t?y.primary:"transparent",color:t?y.primary:y.textMuted,cursor:"pointer",fontFamily:w},children:["pending"===e?"Pending":"Completed",(0,c.jsx)("span",{className:"inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 rounded-full text-xs font-semibold",style:{backgroundColor:t?`${y.primary}15`:y.backgroundAlt,color:t?y.primary:y.textMuted},children:n})]},e)})}),0===q.length&&(0,c.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 px-4 text-center",children:[(0,c.jsx)("svg",{className:"w-12 h-12 mb-4",fill:"none",stroke:y.textMuted,strokeWidth:"1.5",viewBox:"0 0 24 24",children:"pending"===k?(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6l4 2m6-2a10 10 0 1 1-20 0 10 10 0 0 1 20 0z"}):(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m6 2a10 10 0 1 1-20 0 10 10 0 0 1 20 0z"})}),(0,c.jsx)("p",{className:"text-base font-medium",style:{color:y.text},children:"pending"===k?"No pending entries":"No completed entries"}),(0,c.jsx)("p",{className:"text-sm mt-1",style:{color:y.textMuted},children:"pending"===k?"Entries awaiting results will appear here":"Settled entries will appear here"})]}),(0,c.jsx)("div",{className:"space-y-3",children:q.map(e=>(0,c.jsx)(Yr,{entry:e,game:W.get(e.game_id),propositionsById:I,onSelect:d,theme:x,renderTeamLogo:h},e.id))})]})}function Yr({entry:e,game:t,propositionsById:n,onSelect:o,theme:r,renderTeamLogo:l}){const a=r.colors,i=K(r),d=fe(r),u=e.proposition_ids??[],m=(0,s.useMemo)(()=>u.map(e=>n.get(e)).filter(Boolean),[u,n]),p=u.length,h=(0,s.useMemo)(()=>{const t=new Map;for(const n of e.propositions??[])t.set(n.id,n);return t},[e.propositions]),f=t=>{const o=e.selections?.[t];return null!=o?o:h.get(t)?.user_prediction??n.get(t)?.user_prediction},x=m.filter(e=>null!=e.result&&!e.is_voided).length,g=m.filter(e=>{if(null==e.result||e.is_voided)return!1;const t=f(e.id);return null!=t&&t===e.result}).length,y=null!=e.selections&&Object.keys(e.selections).length>0||(e.propositions??[]).some(e=>null!=e.user_prediction),b=ft(e.pending),w=!b&&ht(e.winning)>0,k=e.payout_status,v="fulfilled"===k&&w,N=b?"Pending":v?"Won — pay due":"paid_out"===k&&w?"Paid":w?"Won":"Lost",F=b||v?a.warningBg:w?a.successBg:a.errorBg,C=b||v?a.warningText:w?a.successText:a.errorText,[B,A]=(0,s.useState)(!1),M=p>0;return(0,c.jsxs)("div",{className:"rounded-xl border overflow-hidden transition-colors",style:{borderColor:a.border,backgroundColor:i,boxShadow:D(r)},children:[(0,c.jsxs)("button",{type:"button","data-testid":"entry-card",onClick:()=>{M&&A(e=>!e),o?.({entry:e,game:t,propositions:m})},"aria-label":`Entry #${e.id}`,"aria-expanded":M?B:void 0,className:"w-full text-left px-4 py-3 flex items-center justify-between gap-3",style:{cursor:M||o?"pointer":"default",background:"none",border:"none"},children:[(0,c.jsxs)("div",{className:"min-w-0",children:[(()=>{const n=t?t.allowed_propositions&&t.allowed_propositions.length>0&&t.game_name.replace(/\s+\d+\s*$/,"").trim()||t.game_name:`Game #${e.game_id}`;return t?(0,c.jsx)(Er,{iconUrl:ve(t),gameName:n,height:18,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:r.brand?.accent}):(0,c.jsx)("h3",{className:"text-base font-semibold truncate",style:{color:a.text,fontFamily:d},children:n})})(),(0,c.jsxs)("div",{className:"flex items-center gap-2 mt-0.5",children:[(e.created_at||e.entry_date)&&(0,c.jsx)("span",{className:"text-xs",style:{color:a.textMuted},children:gt(e.created_at||e.entry_date)}),p>0&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"text-xs",style:{color:a.textMuted},children:"·"}),(0,c.jsx)("span",{className:"text-xs font-medium",style:{color:y&&x>0?g>0?a.success:a.error:a.textMuted},children:y&&x>0?`${g}/${p} correct`:`${p} pick${1!==p?"s":""}`})]})]})]}),(0,c.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[(0,c.jsxs)("div",{className:"text-right",children:[ht(e.bet_amount)>0&&(0,c.jsx)("p",{className:"text-xs",style:{color:a.textMuted},children:xt(ht(e.bet_amount))}),!b&&ht(e.winning)>0&&(0,c.jsxs)("p",{className:"text-sm font-bold",style:{color:a.success},children:[xt(ht(e.winning)),(e.payout_jackpot??0)>0&&(0,c.jsxs)("span",{className:"block text-xs font-normal",style:{color:a.textMuted},children:["incl. ",xt(ht(e.payout_jackpot))," jackpot"]})]})]}),(0,c.jsx)("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-bold uppercase tracking-wide",style:{backgroundColor:F,color:C},children:N}),M&&(0,c.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,style:{color:a.textMuted,transition:"transform .2s ease",transform:B?"rotate(180deg)":"none"},children:(0,c.jsx)("path",{d:"m6 9 6 6 6-6"})})]})]}),B&&p>0&&(0,c.jsx)("div",{className:"border-t divide-y",style:{borderColor:a.border},children:u.map(t=>{const o=(t=>n.get(t)??e.propositions?.find(e=>e.id===t))(t),s=f(t);if(!o)return(0,c.jsxs)("div",{className:"px-4 py-2.5 flex items-center gap-3",style:{borderColor:a.border},children:[(0,c.jsx)("div",{className:"flex-1 min-w-0",children:(0,c.jsxs)("p",{className:"text-sm",style:{color:a.textMuted},children:["Loading proposition #",t,"…"]})}),null!=s&&(0,c.jsx)(je,{theme:r,value:"yes"===s?"yes":"no",size:"sm"})]},t);const i=o.result,d=null!=i,u=!!o.is_voided,m=d&&!u&&null!=s&&s===i;let p,h,x;u?(p="Void",h=`${a.textMuted}20`,x=a.textMuted):d?m?(p="Won",h=a.successBg,x=a.successText):(p="Lost",h=a.errorBg,x=a.errorText):(p="Pending",h=a.warningBg,x=a.warningText);const g=vt(o)?void 0:o.home_team;return(0,c.jsxs)("div",{className:"px-4 py-2.5 flex items-center gap-3",style:{borderColor:a.border},children:[(0,c.jsxs)("div",{className:"flex-1 min-w-0",children:[(o.home_team||o.away_team)&&(0,c.jsxs)("p",{className:"text-sm font-medium leading-snug flex items-center gap-1.5",style:{color:a.text},children:[l&&g&&l(g),g&&(0,c.jsx)("span",{children:g}),g&&o.away_team&&(0,c.jsx)("span",{className:"text-xs font-normal",style:{color:a.textMuted},children:"vs"}),l&&o.away_team&&l(o.away_team),o.away_team&&(0,c.jsx)("span",{children:o.away_team})]}),(o.proposition||o.description)&&(0,c.jsx)("p",{className:"text-xs mt-0.5",style:{color:a.textMuted},children:o.proposition||o.description}),o.commence_time&&(0,c.jsx)("p",{className:"text-xs mt-0.5",style:{color:a.textMuted},children:gt(o.commence_time)})]}),(0,c.jsxs)("div",{className:"flex flex-col items-center gap-0.5 flex-shrink-0",children:[(0,c.jsx)("span",{className:"text-[9px] uppercase tracking-wide font-semibold",style:{color:a.textMuted},children:"Pick"}),null!=s?(0,c.jsx)(je,{theme:r,value:"yes"===s?"yes":"no",size:"sm"}):(0,c.jsx)("span",{className:"text-xs",style:{color:a.textMuted},children:"—"})]}),(0,c.jsxs)("div",{className:"flex flex-col items-center gap-0.5 flex-shrink-0",children:[(0,c.jsx)("span",{className:"text-[9px] uppercase tracking-wide font-semibold",style:{color:a.textMuted},children:"Result"}),(0,c.jsx)("span",{className:"px-2 py-0.5 rounded text-xs font-bold uppercase whitespace-nowrap",style:{backgroundColor:h,color:x},children:p})]})]},t)})})]})}function Hr({className:e=""}){const{theme:t,eventFilterActive:n,eventFilterLabel:o,clearEventFilter:r,gameCategory:l}=lr();if(!n)return null;const s=t.colors,a=o??("racing"===l?"This race":"This event");return(0,c.jsxs)("div",{className:`mb-4 flex flex-col gap-2 rounded-xl border px-3 py-2.5 sm:flex-row sm:items-center sm:justify-between ${e}`,style:{borderColor:`${s.primary}33`,backgroundColor:`${s.surface}`},children:[(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-[0.12em]",style:{color:s.primary},children:"Event filter"}),(0,c.jsx)("p",{className:"truncate text-sm font-semibold",style:{color:s.text},children:a}),(0,c.jsx)("p",{className:"text-xs",style:{color:s.textMuted},children:"Only propositions from this event are shown."})]}),(0,c.jsx)("button",{type:"button",onClick:r,className:"shrink-0 self-start rounded-lg border px-3 py-1.5 text-xs font-semibold transition-opacity hover:opacity-90 sm:self-center",style:{borderColor:`${s.primary}44`,backgroundColor:s.background,color:s.text,cursor:"pointer"},children:"Show all events"})]})}function Rr({onBack:e,title:t="Go back",className:n=""}){const{theme:o}=lr(),r=o.colors;return(0,c.jsx)("button",{type:"button",onClick:e,className:`inline-flex items-center justify-center rounded-full ${n}`,style:{color:r.textMuted,cursor:"pointer",background:"none",border:"none",padding:0,transition:"color .15s ease, transform .15s ease"},title:t,onMouseEnter:e=>{e.currentTarget.style.color=r.text,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=r.textMuted,e.currentTarget.style.transform="translateX(0)"},children:(0,c.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,c.jsx)("path",{d:"M19 12H5"}),(0,c.jsx)("path",{d:"m12 19-7-7 7-7"})]})})}function Gr({onBack:e,label:t="Games"}){const{theme:n}=lr(),o=n.colors;return(0,c.jsxs)("button",{type:"button",onClick:e,className:"mb-3 inline-flex items-center gap-1.5 self-start text-sm font-semibold",style:{color:o.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=o.primary,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=o.textMuted,e.currentTarget.style.transform="translateX(0)"},children:[(0,c.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,c.jsx)("path",{d:"M19 12H5"}),(0,c.jsx)("path",{d:"m12 19-7-7 7-7"})]}),t]})}function Wr({onBack:e,hideActions:t,label:n,children:o,className:r=""}){const{theme:l}=lr(),s=l.colors;return e||null!=n||o?(0,c.jsxs)("div",{className:`flex items-center gap-1.5 mt-0.5 ${r}`,children:[e&&(null!=n?(0,c.jsxs)("button",{type:"button",onClick:e,title:"Go back",className:"inline-flex min-w-0 items-center gap-1.5 text-left",style:{color:s.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=s.text,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=s.textMuted,e.currentTarget.style.transform="translateX(0)"},children:[(0,c.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:"shrink-0",children:[(0,c.jsx)("path",{d:"M19 12H5"}),(0,c.jsx)("path",{d:"m12 19-7-7 7-7"})]}),(0,c.jsx)("span",{className:"text-xs sm:text-sm break-words min-w-0",children:n})]}):(0,c.jsx)(Rr,{onBack:e})),!e&&null!=n&&(0,c.jsx)("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:s.textMuted},children:n}),o]}):null}function Ir({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,bodyFont:l,howToPlayMarkdown:s,selectedCategory:a,displayCategoryName:i}=lr(),d=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,c.jsx)("h1",{className:"text-lg sm:text-xl md:text-2xl font-bold leading-tight break-words min-w-0",style:{color:j(o),fontFamily:r},children:"Choose your game"}),s?.trim()&&(0,c.jsx)(Ue,{content:s,title:"How to Play",colors:{text:d.text,textMuted:d.textMuted,border:d.border,background:d.background,backgroundAlt:d.backgroundAlt,primary:d.primary,primaryText:d.primaryText},bodyFont:l,headingFont:r,className:"shrink-0 mt-0.5"})]}),(0,c.jsx)(Wr,{onBack:t,hideActions:n,label:a?i(a):void 0})]})}function Ur({className:e="",onBack:t,hideActions:n}){const{theme:o}=lr(),r=fe(o),l=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:l.primary,fontFamily:r},children:"Pick a category"}),(0,c.jsx)(Wr,{onBack:t,hideActions:n})]})}function $r({onSelectCategory:e,onCancel:t,hideTitle:n,hideActions:o,renderCategoryIcon:r,getCategoryTagline:l,className:s=""}){const{theme:a,propositionsForCategoryPicker:i,loading:d,setSelectedCategory:u,setSelectedSport:m,clearSelectedGame:p,displayCategoryName:h}=lr(),f=a.colors,x=K(a),g=he(a);Nt(i);const y=Ft(i);return d?(0,c.jsx)(yn,{colors:V(a),bodyFont:g,className:s,variant:"category",categoryCount:y.length>0?y.length:2}):(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${s}`,style:{fontFamily:g},children:[!n&&(0,c.jsx)("div",{className:"mb-2",children:(0,c.jsx)(Ur,{onBack:t,hideActions:o})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)("div",{className:"grid grid-cols-1 min-[400px]:grid-cols-2 gap-2.5 sm:gap-3",children:y.map(t=>{const n=l?.(t)??function(e){return ct[e]??""}(t);return(0,c.jsxs)("button",{type:"button",onClick:()=>{u(t),m(null),p(),e?.(t)},className:"group flex flex-col items-start justify-center gap-2 sm:gap-3 rounded-2xl border p-3.5 sm:p-5 text-left transition-all min-h-[112px] sm:min-h-[140px] min-w-0 w-full hover:shadow-md active:scale-[0.98]",style:{backgroundColor:x,borderColor:f.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=f.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=f.border},children:[(0,c.jsx)($e,{label:h(t),category:t,icon:r?.(t),theme:a}),n?(0,c.jsx)("span",{className:"text-[10px] sm:text-xs font-medium uppercase tracking-[0.08em] sm:tracking-[0.1em] break-words",style:{color:f.primary},children:n}):null]},t)})})})]})}function Kr(e){if(!e)return"Start time to be confirmed";const t=new Date(e);return Number.isNaN(t.getTime())?e:new Intl.DateTimeFormat(void 0,{weekday:"short",day:"numeric",month:"short",hour:"numeric",minute:"2-digit"}).format(t)}function Zr({name:e,renderTeamLogo:t,muted:n}){return e?(0,c.jsxs)("span",{className:"inline-flex min-w-0 max-w-full items-center gap-1.5",children:[t?.(e),(0,c.jsx)("span",{className:"break-words text-sm font-semibold sm:text-base",children:e})]}):(0,c.jsx)("span",{className:"text-sm font-semibold",style:{color:n},children:"TBC"})}function qr({onSelectEvent:e,className:t=""}){const{theme:n,loading:o,sameGameMultiEvents:r,selectSameGameMultiEvent:l,renderTeamLogo:a,displaySportName:i}=lr(),[d,u]=s.default.useState(null),m=n.colors,p=he(n),h=fe(n),f=K(n),x=Z(n);return o?(0,c.jsx)(yn,{colors:V(n),bodyFont:p,className:t,variant:"event"}):(0,c.jsxs)("section",{className:t,"aria-label":"Available fixtures",style:{fontFamily:p},children:[(0,c.jsx)("p",{className:"mb-4 text-sm leading-relaxed",style:{color:m.textMuted},children:"All picks in your multi must come from one game."}),0===r.length?(0,c.jsx)("div",{role:"status",className:"rounded-2xl border p-6 text-center text-sm",style:{borderColor:m.border,backgroundColor:f,color:m.textMuted},children:"No fixtures with available propositions."}):(0,c.jsx)("div",{className:"grid grid-cols-1 gap-2.5 sm:gap-3",children:r.map(t=>(0,c.jsxs)("button",{type:"button","aria-label":`Select ${bn(t)}`,onClick:()=>{l(t.id),e?.(t.id)},className:"group flex min-h-16 w-full min-w-0 items-center justify-between gap-3 rounded-2xl border px-3.5 py-3.5 text-left transition-all hover:shadow-md active:scale-[0.99] sm:px-5 sm:py-4",style:{borderColor:m.border,backgroundColor:f,boxShadow:d===t.id?E(n):"none",color:m.text,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=m.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=m.border},onFocus:e=>{u(t.id),e.currentTarget.style.borderColor=m.primary},onBlur:e=>{u(null),e.currentTarget.style.borderColor=m.border},children:[(0,c.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,c.jsxs)("div",{className:"flex flex-col items-start gap-1 rounded-xl px-3 py-2.5 sm:flex-row sm:flex-wrap sm:items-center sm:gap-x-1.5",style:{backgroundColor:x,color:m.text,fontFamily:h},children:[(0,c.jsx)(Zr,{name:t.homeTeam,renderTeamLogo:a,muted:m.textMuted}),(0,c.jsx)("span",{className:"text-xs font-normal",style:{color:m.textMuted},children:"vs"}),(0,c.jsx)(Zr,{name:t.awayTeam,renderTeamLogo:a,muted:m.textMuted})]}),(0,c.jsxs)("p",{className:"mt-2 text-[11px] font-medium sm:text-xs",style:{color:m.textMuted},children:[Kr(t.commenceTime)," · ",t.propositionCount," proposition",1===t.propositionCount?"":"s",(t.league||t.sport)&&` · ${t.league?.toUpperCase()??i(t.sport)}`]})]}),(0,c.jsx)(qe,{size:22,color:m.textMuted,className:"shrink-0 transition-transform group-hover:translate-x-0.5"})]},t.id))})]})}function Vr({counts:e,onPick:t,onDoubleAction:n,colors:o,align:r="right",direction:l="down",menuShadow:a="0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}){const[i,d]=s.default.useState(!1),[u,m]=s.default.useState(!1),[p,h]=s.default.useState(null),f=s.default.useRef(null),x=s.default.useRef(null),g=s.default.useRef(null),y=36+36*e.length+12,b="up"===l||u?"up":"down";s.default.useEffect(()=>{if(!i)return m(!1),void h(null);const e=f.current,t=()=>{if(!e||"undefined"==typeof window)return;const t=e.getBoundingClientRect(),n=(document.documentElement.clientHeight||window.innerHeight)-t.bottom,o=t.top,r=n<y&&o>n;m(r),h(Math.max((r?o:n)-12,132))};t(),window.addEventListener("resize",t),window.addEventListener("scroll",t,!0);const n=e=>{const t=e.target;f.current?.contains(t)||x.current?.contains(t)||d(!1)};return document.addEventListener("mousedown",n),()=>{window.removeEventListener("resize",t),window.removeEventListener("scroll",t,!0),document.removeEventListener("mousedown",n)}},[i,y]);const w=i?(0,c.jsxs)("div",{ref:x,role:"menu",className:"rounded-lg overflow-y-auto overscroll-contain",style:{position:"absolute",top:"up"===b?void 0:"calc(100% + 6px)",bottom:"up"===b?"calc(100% + 6px)":void 0,left:"left"===r?0:void 0,right:"right"===r?0:void 0,maxHeight:p??void 0,zIndex:20,backgroundColor:o.background,border:`1px solid ${o.border}`,boxShadow:a,minWidth:160},children:[(0,c.jsx)("div",{className:"px-3 py-1.5 text-[10px] font-bold tracking-wider uppercase",style:{color:o.text,opacity:.55,borderBottom:`1px solid ${o.border}`},children:"How many picks?"}),e.map(e=>(0,c.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>{t(e),d(!1)},className:"w-full flex items-center justify-between px-3 py-2 transition-colors",style:{background:"transparent",border:"none",cursor:"pointer",borderTop:`1px solid ${o.border}`},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=o.backgroundAlt},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},children:[(0,c.jsxs)("span",{className:"text-sm font-semibold",style:{color:o.text},children:[e," picks"]}),(0,c.jsx)("span",{className:"text-[10px] font-bold tracking-wider",style:{background:o.backgroundAlt,color:o.text,padding:"2px 6px",borderRadius:4},children:"QP"})]},e))]}):null;return(0,c.jsxs)("div",{ref:f,className:"flex-shrink-0 relative",children:[(0,c.jsx)(sr,{onPress:()=>{n?null==g.current&&(g.current=window.setTimeout(()=>{g.current=null,d(e=>!e)},220)):d(e=>!e)},onDoubleClick:n?()=>{null!=g.current&&(window.clearTimeout(g.current),g.current=null),d(!1),n?.()}:void 0}),w]})}var Xr="Your stake";function Qr(e,t){const n=e?.top_payouts?.find(e=>Number(e.proposition_count)===t);if(!n)return 0;const o=n.bet_amount&&n.bet_amount>0?n.bet_amount:20,r=Number(n.net_payout);return Number.isFinite(r)?r/o*20:0}function Jr({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",className:r,title:l,sportBaseKey:s}){const a=dt(e,s,t),i=function(e){return e.length<=3?92:4===e.length?72:56}(a),d=l??`${a} button`;return(0,c.jsxs)("svg",{viewBox:"0 0 360 360",width:n,height:n,xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",className:r,role:"img","aria-label":d,children:[(0,c.jsx)("title",{children:d}),(0,c.jsx)("rect",{x:"2",y:"2",width:"356",height:"356",rx:"78",fill:"#DDD9D2",stroke:at,strokeWidth:"4"}),(0,c.jsx)("rect",{x:"50",y:"10",width:"260",height:"260",rx:"52",fill:at,opacity:"0.30"}),(0,c.jsx)("rect",{x:"50",y:"35",width:"260",height:"260",rx:"52",fill:at,opacity:"0.55"}),(0,c.jsx)("rect",{x:"50",y:"60",width:"260",height:"260",rx:"52",fill:at}),(0,c.jsx)("text",{x:"180",y:"220",fontFamily:"Manrope, Poppins, sans-serif",fontSize:i,letterSpacing:"-3",textAnchor:"middle",fontWeight:800,fill:"#DFFF1A",children:a}),o&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("text",{x:"180",y:"345",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"24",letterSpacing:"-0.5",textAnchor:"middle",fontWeight:700,fill:at,children:o}),(0,c.jsx)("text",{x:"262",y:"333",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"10",fontWeight:600,fill:at,children:"TM"})]})]})}var _r="yesno:favourite-sport",el=null;function tl(){try{return globalThis.localStorage??null}catch{return null}}function nl({label:e="Pick your sport",sublabel:t,renderSportLogo:n,className:o=""}){const{theme:r,sportOptions:l,sportSummaries:a,selectedSport:i,setSelectedSport:d,sportBaseKey:u,displaySportName:m,selections:p,toggleSelection:h,enableSportFavourites:f}=lr(),x=r.colors,g=K(r),y=he(r),b=fe(r),w=j(r),k=W(r),[v,N]=s.default.useState(null);if(s.default.useEffect(()=>{N(f?function(){try{const e=tl()?.getItem(_r);if(e)return e}catch{}return el}():null)},[f]),l.length<2)return null;const F=v?[...l].sort((e,t)=>Number(t.key===v)-Number(e.key===v)):l,C=void 0===t?f?"Tap to select. Star your favourite to pin it up front.":"Tap to select.":t;return(0,c.jsxs)("div",{className:`min-w-0 ${o}`,style:{fontFamily:y},children:[e&&(0,c.jsx)("div",{className:"pl-0.5 text-sm font-extrabold leading-tight tracking-tight",style:{color:w,fontFamily:b},children:e}),C&&(0,c.jsx)("div",{className:"mb-1.5 pl-0.5 text-[12px] leading-snug",style:{color:x.textMuted},children:C}),(0,c.jsx)(Qe,{theme:r,itemCount:F.length,contentClassName:"gap-2.5 px-0.5 pb-2.5 pt-1",children:e=>F.map(({key:t,count:o})=>{const l=a.find(e=>e.key===t),s=l?.games_today??0,y=i===t,F=v===t,C=l?.label??m(t);return(0,c.jsxs)("div",{className:"relative flex-none",style:{width:88},children:[(0,c.jsxs)("button",{type:"button","aria-pressed":y,onClick:()=>{e()||(e=>{if(e!==i){for(const e of Object.keys(p)){const t=Number(e);h(t,p[t])}d(e)}})(t)},className:"flex w-full flex-col items-center gap-1.5 rounded-2xl border px-1.5 pb-2 text-center transition-transform active:scale-[0.97]",style:{minHeight:44,paddingTop:f?26:12,backgroundColor:g,borderColor:y?x.primary:x.border,boxShadow:y?`inset 0 0 0 2px ${x.primary}, ${D(r)}`:D(r),cursor:"pointer"},children:[(0,c.jsxs)("span",{className:"relative block leading-none",children:[n?n(t):(0,c.jsx)(Jr,{gameKey:t,size:40,footer:null,sportBaseKey:u,title:`${C} button`}),s>0&&(0,c.jsx)("span",{"aria-hidden":!0,className:"absolute -right-0.5 -top-0.5 h-2.5 w-2.5 rounded-full",style:{backgroundColor:x.success,border:`2px solid ${g}`}})]}),(0,c.jsx)("span",{className:"line-clamp-2 max-w-full text-[11px] font-extrabold leading-tight tracking-tight",style:{color:y?w:x.text,fontFamily:b},children:C}),(0,c.jsx)("span",{className:"max-w-full truncate text-[9px] font-bold uppercase tracking-[0.1em]",style:{color:y?x.primary:M(x.textMuted,.9)},children:ut(s,o)})]}),f&&(0,c.jsx)("button",{type:"button","aria-pressed":F,"aria-label":F?`Unpin ${C}`:`Pin ${C} to the front`,onClick:()=>{e()||(e=>{const t=v===e?null:e;N(t),function(e){el=e;try{e?tl()?.setItem(_r,e):tl()?.removeItem(_r)}catch{}}(t)})(t)},className:"absolute left-0 top-0 z-[1] flex h-8 w-8 items-center justify-center active:scale-90",style:{background:"none",border:"none",padding:0,cursor:"pointer"},children:(0,c.jsx)("span",{className:"flex h-5 w-5 items-center justify-center rounded-full border",style:{backgroundColor:F?M(k,.22):g,borderColor:F?k:x.border},children:(0,c.jsx)(Xe,{size:12,filled:F,color:F?w:M(x.textMuted,.6)})})})]},t)})})]})}function ol(e,t){const n=/^#([0-9a-f]{6})$/i.exec(e?.trim()??"");if(!n)return e;const o=parseInt(n[1],16);return`rgba(${o>>16&255}, ${o>>8&255}, ${255&o}, ${t})`}function rl({iconUrl:e,size:t=56}){const{theme:n}=lr(),o=n.colors,r=n.brand?.chip??o.primary,l=n.brand?.icon??o.primaryText,s=I(r,W(n),l);return(0,c.jsx)("span",{"aria-hidden":!0,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:t,height:t,borderRadius:.3*t,backgroundColor:r,border:`1px solid ${ol(l,.16)}`,flexShrink:0,boxShadow:`0 8px 18px -12px ${ol(r,.9)}`},children:(0,c.jsx)(_t,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:l,accentColor:s})})}function ll({eyebrow:e,iconUrl:t,gameName:n,tagline:o,className:r=""}){const{theme:l,screenSize:s}=lr(),a=l.colors,i=fe(l),d="mobile"===s;return(0,c.jsxs)("header",{className:`mb-4 flex flex-col items-center text-center sm:mb-7 ${r}`,children:[e&&(0,c.jsx)("h2",{className:"mb-4 hidden text-center text-xs font-bold uppercase tracking-[0.18em] sm:mb-5 sm:block",style:{color:a.primary,fontFamily:i},children:e}),(0,c.jsx)(Er,{iconUrl:t,gameName:n,height:d?20:32,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:l.brand?.accent,compact:d}),o&&(0,c.jsx)("p",{className:"mt-2 max-w-sm text-[13px] leading-snug sm:mt-3 sm:text-[15px] sm:leading-relaxed",style:{color:a.textMuted},children:o})]})}function sl({className:e=""}){return(0,c.jsx)(nl,{className:`mb-4 ${e}`})}function al({smGridClassName:e,ariaLabel:t,children:n}){return(0,c.jsx)("div",{role:"radiogroup","aria-label":t,className:`blade-gmc-strip -mx-1 flex snap-x snap-mandatory gap-2 overflow-x-auto px-1 pb-1 sm:mx-0 sm:grid sm:overflow-visible sm:px-0 sm:pb-0 ${e}`,children:n})}var il="w-[124px] shrink-0 snap-start sm:w-auto sm:shrink";function cl({legs:e,prizeBall:t=!0}){const{theme:n}=lr(),o=n.colors.primary,r=W(n);return(0,c.jsxs)("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:e}).map((e,t)=>(0,c.jsx)("span",{style:{width:5,height:5,borderRadius:1.5,backgroundColor:o,opacity:.85}},t)),t&&(0,c.jsx)("span",{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}})]})}function dl({tile:e,label:t,stat:n,detail:o,onSelect:r,children:l}){const{theme:s}=lr(),a=s.colors,i=fe(s),d=j(s),u=a.primary,m=a.selectionCard??a.backgroundAlt;return(0,c.jsxs)("div",{className:"blade-gmc-card flex h-full flex-col rounded-3xl border-2 px-3.5 py-3.5 sm:px-5 sm:py-5",style:{backgroundColor:m,borderColor:a.border,boxShadow:`0 10px 24px -20px ${ol(d,.7)}`},onMouseEnter:e=>{e.currentTarget.style.borderColor=u,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${ol(u,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=a.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${ol(d,.7)}`},children:[(0,c.jsxs)("button",{type:"button",onClick:r,className:"group flex w-full flex-1 items-start gap-3.5 text-left sm:gap-4",style:{background:"none",border:"none",padding:0,cursor:"pointer"},children:[e,(0,c.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1 sm:gap-1.5",children:[(0,c.jsxs)("span",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[(0,c.jsx)("span",{className:"text-base font-extrabold leading-tight tracking-tight sm:text-xl",style:{color:d,fontFamily:i},children:t}),n&&(0,c.jsx)("span",{className:"rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em]",style:{backgroundColor:ol(u,.12),color:u},children:n})]}),o&&o.length>0&&(0,c.jsx)("div",{className:"flex flex-col gap-0.5",children:o.map((e,t)=>(0,c.jsx)("span",{className:"text-xs leading-snug sm:text-[13px] "+(0===t?"":"hidden sm:block"),style:{color:a.textMuted},children:e},e))})]}),(0,c.jsx)("span",{className:"shrink-0 self-center transition-transform group-hover:translate-x-0.5",style:{color:u},"aria-hidden":!0,children:(0,c.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,c.jsx)("path",{d:"m9 6 6 6-6 6"})})})]}),l&&(0,c.jsx)("div",{className:"mt-3 border-t pt-3",style:{borderColor:ol(d,.08)},children:l})]})}function ul(){return(0,c.jsx)("style",{id:"blade-gmc-styles",children:"\n.blade-gmc-card{transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s cubic-bezier(.2,.8,.2,1),border-color .18s cubic-bezier(.2,.8,.2,1)}\n.blade-gmc-strip{scrollbar-width:none}\n.blade-gmc-strip::-webkit-scrollbar{display:none}\n.blade-gmc-card:hover{transform:translateY(-2px)}\n.blade-gmc-card:active{transform:translateY(0) scale(.995)}\n@media (prefers-reduced-motion:reduce){.blade-gmc-card{transition:none}}\n"})}function ml({onChange:e}){const{theme:t,selectedGame:n,selectedSport:o,sportSummaries:r,displaySportName:l,headingFont:s}=lr(),a=t.colors;if(!n)return null;const i=o?r.find(e=>e.key===o)?.label??l(o):null;return(0,c.jsxs)(Pe,{theme:t,level:"raised",padding:"sm",radius:"lg",className:"mb-4 flex items-center gap-3",children:[(0,c.jsx)(rl,{iconUrl:ve(n),size:44}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsx)("div",{className:"truncate text-[15px] font-bold leading-tight",style:{color:j(t),fontFamily:s},children:n.game_name}),i&&(0,c.jsx)("div",{className:"truncate text-[13px] leading-tight",style:{color:a.textMuted},children:i})]}),(0,c.jsx)(Oe,{theme:t,variant:"ghost",size:"sm",radius:"pill",className:"ml-auto shrink-0",onPress:e,children:"Change"})]})}function pl({className:e="",onBack:t,onNext:n,hideActions:o}){const{theme:r,headingFont:l,bodyFont:s,selectedGame:a,propositions:i,selections:d,toggleSelection:u,selectedPropositionCount:m,disableQuickPick:p,answeredCount:h,goToConfirmation:f,selectedEventId:x,sameGameMultiEvents:g,selectSameGameMultiEvent:y,selectedRule:b,howToPlayMarkdown:w,maxPayouts:k}=lr(),v=r.colors,N=Le(a),F=ao(a??{},a?k?.[a.id]:void 0),C=kn(a)&&!x,B=g.find(e=>e.id===x),A=a?At(a,m,b):{min:0,max:0},M=A.min,S=kn(a)&&x?Math.min(A.max,i.length):A.max,z=M>0&&M===S,L=!(a?.allowed_propositions&&a.allowed_propositions.length>0)&&M>0&&S>M,P=z?S:S||i.length,O=e=>{const t=Math.max(0,Math.min(e??P,i.length));for(const l of Object.keys(d)){const e=Number(l);u(e,d[e])}const n=[...i].sort(()=>Math.random()-.5).slice(0,t),o=[],r=[];for(const l of n)Math.random()<.5?o.push(l):r.push(l);for(const l of o)u(l.id,"yes");for(const l of r)u(l.id,"no")},D=!p&&i.length>0,E=L?Array.from({length:S-M+1},(e,t)=>M+t).filter(e=>e<=i.length):[],Y=h>0?h:M||P;return(0,c.jsxs)("div",{className:`flex items-center justify-between gap-3 pl-2 ${e}`,children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:j(r),fontFamily:l},children:C?"Choose a Game":"Select Propositions"}),a&&(0,c.jsx)(Wr,{onBack:x?()=>y(null):t,hideActions:o,label:B?bn(B):a.game_name,children:(N||w?.trim())&&(0,c.jsx)(Ue,{variant:"icon",content:w,panel:N,theme:r,title:`${a.game_name} — How to Play`,extra:(0,c.jsx)(io,{tiers:F.hasGenericDividends?F.tiers:[],modes:F.modes,pydDividends:F.pydDividends,minBet:F.minBet,maxBet:F.maxBet,colors:v,bodyFont:s,headingFont:l}),colors:{text:v.text,textMuted:v.textMuted,border:v.border,background:v.background,backgroundAlt:v.backgroundAlt,primary:v.primary,primaryText:v.primaryText},bodyFont:s,headingFont:l})})]}),D&&(E.length>1?(0,c.jsx)(Vr,{counts:E,onPick:e=>{O(e),f(),n?.()},onDoubleAction:()=>{O(Y),f(),n?.()},colors:v,menuShadow:T(r)}):(0,c.jsx)("div",{className:"flex-shrink-0",children:(0,c.jsx)(sr,{onPress:()=>{O(),f(),n?.()}})}))]})}function hl({number:e,color:t,size:n=34,label:o,onSelect:r,onHover:l}){const s=(e,o)=>({position:"absolute",left:e,top:.4*e,width:n,height:n,borderRadius:.26*n,backgroundColor:t,opacity:o});return(0,c.jsxs)("button",{type:"button","aria-label":o,onClick:r,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onFocus:()=>l(!0),onBlur:()=>l(!1),style:{position:"relative",width:n+.2*n,height:1.3*n,flex:"0 0 auto",padding:0,border:"none",background:"none",cursor:"pointer",animation:"blade-slip-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1)"},children:[(0,c.jsx)("span",{style:s(.44*n,.3)}),(0,c.jsx)("span",{style:s(.22*n,.55)}),(0,c.jsx)("span",{style:{position:"absolute",left:0,top:0,width:n,height:n,borderRadius:.26*n,backgroundColor:t,color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontSize:n*(e>9?.42:.5),fontWeight:800,letterSpacing:"-0.02em"},children:e})]})}function fl({onNext:e,onBack:t,hideButtons:n=!1,className:o=""}){const{theme:r,headingFont:l,selectedGame:a,selectedPropositionCount:i,selectedEventId:d,propositions:u,goToConfirmation:m,selectedRule:p,maxPayouts:h,betAmount:f,setBetAmount:x,selections:g,gamePrice:y}=lr(),b=r.colors,w=a?At(a,i,p):{min:0,max:0},k=w.min,v=kn(a)&&d?Math.min(w.max,u.length):w.max,N=s.default.useRef(!1);s.default.useEffect(()=>{N.current=!1},[a?.id]),s.default.useEffect(()=>{f<=0&&!N.current&&x(Math.max(10,y))},[f,y,x]);const F=s.default.useRef([]);F.current=function(e,t){const n=Object.keys(t).map(Number),o=new Set(n),r=e.filter(e=>o.has(e)),l=n.filter(e=>!r.includes(e)).sort((e,t)=>e-t);return 0===l.length&&r.length===e.length?e:[...r,...l]}(F.current,g);const C=function({selections:e,order:t,minReq:n,maxReq:o,stake:r,payout20:l=0}){const s=[];for(const u of t){const t=e[u];t&&s.push({id:u,number:s.length+1,side:t})}const a=s.length,i=a>=n,c=Math.max(0,n-a),d=i?l*(r/20):0;return{legs:s,count:a,dividend:d,dividendText:xt(d),ctaLabel:i?`Continue with ${a} ›`:0===a?`Select at least ${n}`:`Add ${c} more to continue`,ctaDisabled:!i,atMax:o>0&&a>=o}}({selections:g,order:F.current,minReq:k,maxReq:v,stake:f,payout20:a?Qr(h?.[a.id],F.current.length):0}),B=R(r),A=G(r),M=b.primaryText,S=I(b.primary,W(r),b.primaryText),z="text-[10px] font-bold uppercase tracking-[0.08em]",L=er(a),[P,O]=s.default.useState(null),D=C.legs.find(e=>e.id===P)??null,T=D?u.find(e=>e.id===D.id)?.description??u.find(e=>e.id===D.id)?.proposition??"":"",E=s.default.useRef(null),j=C.legs[C.legs.length-1]?.side;return function(e,t,n){const o=s.default.useRef(null),r=s.default.useRef(e);s.default.useEffect(()=>{const e=e=>{o.current={x:e.clientX,y:e.clientY}};return document.addEventListener("pointerdown",e,!0),()=>document.removeEventListener("pointerdown",e,!0)},[]),s.default.useEffect(()=>{const l=e>r.current;r.current=e;const s=o.current,a=t.current?.lastElementChild;if(!l||!s||!a)return;if(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches)return;const i=a.getBoundingClientRect(),c=i.height||44,d=document.createElement("div");d.setAttribute("aria-hidden","true"),Object.assign(d.style,{position:"fixed",left:s.x-c/2+"px",top:s.y-c/2+"px",width:`${c}px`,height:`${c}px`,borderRadius:.26*c+"px",backgroundColor:n,boxShadow:"0 9px 14px rgba(10,49,56,0.4)",pointerEvents:"none",zIndex:"3",transition:"transform 0.42s cubic-bezier(0.34,0.82,0.3,1), opacity 0.42s ease-in"}),document.body.appendChild(d);const u=i.left+i.width/2-s.x,m=i.top+i.height/2-s.y,p=requestAnimationFrame(()=>{d.style.transform=`translate(${u}px, ${m}px) scale(0.5) rotate(-8deg)`,d.style.opacity="0"}),h=()=>d.remove();d.addEventListener("transitionend",h);const f=window.setTimeout(h,700);return()=>{cancelAnimationFrame(p),window.clearTimeout(f),h()}},[e])}(C.count,E,"no"===j?A:B),(0,c.jsxs)("div",{className:o,style:{fontFamily:l},children:[(0,c.jsx)("style",{children:"@keyframes blade-slip-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}"}),(0,c.jsx)("div",{ref:E,className:"flex items-center overflow-x-auto min-h-[44px] pb-1.5",style:{scrollbarWidth:"none"},children:0===C.legs.length?(0,c.jsx)("span",{className:"text-[13px]",style:{color:b.textMuted},children:"Tap Yes or No to start building your multi."}):C.legs.map(e=>(0,c.jsx)(hl,{number:e.number,color:"yes"===e.side?B:A,label:`Leg ${e.number}, answered ${e.side}`,onSelect:()=>O(t=>t===e.id?null:e.id),onHover:t=>O(n=>t?e.id:n===e.id?null:n)},e.id))}),D&&(0,c.jsxs)("div",{className:"flex items-center gap-2 mb-2 text-[12px]",style:{color:b.text},children:[(0,c.jsx)("span",{className:"px-1.5 py-0.5 rounded font-bold text-[10px] uppercase",style:{backgroundColor:"yes"===D.side?B:A,color:"#fff"},children:D.side}),(0,c.jsx)("span",{className:"truncate",children:T})]}),(0,c.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5 mb-2",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2 flex-none",children:[(0,c.jsx)("span",{className:z,style:{color:b.textMuted},children:Xr}),L?(0,c.jsxs)("div",{className:"flex items-center gap-2 rounded-[10px] px-3 py-2",style:{border:`1px solid ${b.border}`,backgroundColor:b.backgroundAlt},title:tr(a),children:[(0,c.jsx)("span",{className:"text-[15px] font-extrabold",style:{color:b.text},children:xt(f)}),(0,c.jsx)("span",{className:"text-[10px]",style:{color:b.textMuted},children:"locked"})]}):(0,c.jsxs)("div",{className:"flex items-center rounded-[10px] overflow-hidden w-[108px]",style:{border:`1px solid ${b.border}`,backgroundColor:b.background},children:[(0,c.jsx)("span",{className:"pl-3 text-base font-extrabold",style:{color:b.text},children:"$"}),(0,c.jsx)("input",{type:"number",min:1,step:1,inputMode:"decimal","aria-label":Xr,value:f>0?String(f):"",onChange:e=>{N.current=!0,x(Math.max(0,parseFloat(e.target.value)||0))},className:"flex-1 min-w-0 bg-transparent outline-none border-0 py-2 pl-1 pr-2 text-[15px] font-extrabold",style:{color:b.text,fontFamily:l}})]})]}),(0,c.jsxs)("div",{className:"flex items-baseline justify-end gap-2 rounded-[10px] px-3 py-1.5",style:{backgroundColor:b.primary,flex:"1 1 150px",minWidth:0},children:[(0,c.jsx)("span",{className:z,style:{color:M,opacity:.7},children:"Potential dividend"}),(0,c.jsx)("span",{className:"text-xl font-extrabold leading-none",style:{color:S},children:C.dividendText})]})]}),!n&&(0,c.jsx)(Oe,{theme:r,block:!0,size:"md",radius:"lg",disabled:C.ctaDisabled,onPress:()=>{m(),e?.()},children:C.ctaLabel})]})}function xl({view:e,onChange:t}){const{theme:n}=lr(),o=n.colors,r=(n,r)=>{const l=e===n;return(0,c.jsx)("button",{type:"button",onClick:()=>t(n),"aria-pressed":l,className:"px-2.5 py-1 rounded-md text-xs font-semibold transition-colors",style:{background:l?o.primary:"transparent",color:l?o.primaryText:o.textMuted},children:r},n)};return(0,c.jsxs)("div",{className:"flex items-center gap-1 rounded-lg p-0.5 shrink-0",style:{background:o.backgroundAlt,border:`1px solid ${o.border}`},children:[r("list","List"),r("swipe","Swipe")]})}function gl({count:e,payout20:t,selected:n,onSelect:o,colors:r,bodyFont:l,extraBetAmount:s,buttonLabel:a,hidePayouts:i}){const d=null!=s&&20!==s,u=null!=t&&t>0&&d?t*(s/20):null;return(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:[(0,c.jsx)("button",{type:"button",onClick:o,"aria-pressed":n,className:"px-3 py-1.5 rounded-lg border text-sm font-semibold transition-colors",style:{borderColor:n?r.buttonPrimary??r.primary:r.border??r.primary,color:n?r.buttonPrimaryText??"#ffffff":r.buttonSecondaryText??r.text,backgroundColor:n?r.buttonPrimary??r.primary:r.buttonSecondary??r.background,cursor:"pointer",fontFamily:l,whiteSpace:"nowrap",alignSelf:"stretch"},children:a?a(e):`Multi ${e}`}),!i&&null!=t&&t>0&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${r.success}15`,color:r.success,alignSelf:"stretch",textAlign:"center"},children:[e,"/",e]}),d?null!=u&&(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${r.primary}12`,color:r.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:xt(u)}):(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${r.primary}12`,color:r.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:xt(t)})]})]})}function yl({tiers:e,selectedCount:t,onSelect:n,colors:o,bodyFont:r,extraBetAmount:l,buttonLabel:a,columnLabel:i="Legs",buildYourOwn:d,quickPickOnly:u,onQuickPick:m,collapsible:p,expanded:h,onExpandedChange:f,summaryTiers:x}){const[g,y]=(0,s.useState)(!1),b=h??g,w=e.some(e=>e.payout20>0),k=null!=l&&20!==l,v=k?`$${Math.round(l)} returns`:"$20 returns",N=!!p&&!b,F=w&&!N,C=(x??e).reduce((e,t)=>t.payout20>e?t.payout20:e,0),B=k&&C>0?C*(l/20):C,A=e.length>0?82*e.length+8*Math.max(0,e.length-1):82;return(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"stretch"},children:[(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"row",gap:8,overflowX:u?"visible":"auto",overflowY:"visible",alignItems:"flex-start",paddingBottom:6},children:[(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,flexShrink:0,width:70},children:[(0,c.jsx)("div",{className:"py-1.5 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:u?"Quick Pick":i}),F&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"py-1 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:"Dividend"}),(0,c.jsx)("div",{className:"py-1 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:v})]})]}),u?(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"flex-start",width:A},children:[(0,c.jsx)(Vr,{counts:(x??e).map(e=>e.count),onPick:e=>m?m(e):n(e),align:"left",direction:"up",colors:{background:o.background??"#ffffff",backgroundAlt:o.backgroundAlt??"#f3f4f6",border:o.border??"#e5e7eb",text:o.text??"#111827"}}),w&&!N&&(0,c.jsx)("div",{style:{display:"flex",flexDirection:"row",gap:8},children:e.map(e=>(0,c.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:null!=e.payout20&&e.payout20>0?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.success}15`,color:o.success,alignSelf:"stretch",textAlign:"center"},children:[e.count,"/",e.count]}),(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:xt(k?e.payout20*(l/20):e.payout20)})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.success}15`,color:o.success,alignSelf:"stretch",textAlign:"center"},children:[e.count,"/",e.count]}),(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:"—"})]})},e.count))})]}):d?(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"flex-start",width:A},children:[(0,c.jsx)("button",{type:"button",onClick:()=>n(e[0]?.count??0),className:"w-full py-1.5 rounded-lg border text-sm font-semibold transition-colors",style:{borderColor:o.buttonPrimary??o.primary,color:o.buttonPrimaryText??"#ffffff",backgroundColor:o.buttonPrimary??o.primary,cursor:"pointer",fontFamily:r},children:"Make Your Selections"}),w&&!N&&(0,c.jsx)("div",{style:{display:"flex",flexDirection:"row",gap:8},children:e.map(e=>(0,c.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:null!=e.payout20&&e.payout20>0?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.success}15`,color:o.success,alignSelf:"stretch",textAlign:"center"},children:[e.count,"/",e.count]}),k?(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:xt(e.payout20*(l/20))}):(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:xt(e.payout20)})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.success}15`,color:o.success,alignSelf:"stretch",textAlign:"center"},children:[e.count,"/",e.count]}),(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:"—"})]})},e.count))})]}):e.map(e=>(0,c.jsx)(gl,{count:e.count,payout20:e.payout20>0?e.payout20:null,selected:t===e.count,onSelect:()=>n(e.count),colors:o,bodyFont:r,extraBetAmount:l,buttonLabel:a,hidePayouts:N},e.count))]}),p&&(w?(0,c.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 self-start max-w-full",style:{fontFamily:r},children:[(0,c.jsxs)("span",{className:"text-xs font-semibold leading-snug",style:{color:o.text},children:["Win up to ",(0,c.jsx)("span",{style:{color:o.heading??o.text??o.primary},children:xt(B)}),(0,c.jsx)("span",{style:{color:o.textMuted},children:` for $${k?Math.round(l):20}`})]}),(0,c.jsx)("button",{type:"button",onClick:()=>{return e=!b,void 0===h&&y(e),void f?.(e);var e},"aria-expanded":b,className:"text-xs font-semibold rounded-md transition-colors shrink-0",style:{background:b?o.buttonSecondary:o.background??"#ffffff",border:`1px solid ${b?o.primary??o.border:o.border}`,padding:"4px 10px",cursor:"pointer",color:o.text,fontFamily:r,lineHeight:1.35},children:b?"Hide dividends":"Show dividends"})]}):(0,c.jsx)("div",{"aria-hidden":"true",className:"text-xs font-semibold self-start",style:{padding:"2px 0",visibility:"hidden",fontFamily:r},children:"Show dividends"}))]})}function bl(e){return{game_id:e.selectedGame.id,rule_id:e.selectedRule?.id??null,proposition_ids:e.selectedPropositionIds,selections:e.selections,stake:e.betAmount}}function wl({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,selectedGame:l,selectedEventId:s,propositions:a,selections:i,toggleSelection:d,upgradePropositionCount:u,selectedPropositionCount:m,disableQuickPick:p,answeredCount:h,selectedRule:f}=lr(),x=o.colors,g=l?At(l,m,f):{min:0,max:0},y=g.min,b=kn(l)&&s?Math.min(g.max,a.length):g.max,w=y>0&&y===b,k=!(l?.allowed_propositions&&l.allowed_propositions.length>0)&&y>0&&b>y,v=w?b:b||a.length,N=e=>{const t=Math.max(0,Math.min(e??v,a.length));for(const r of Object.keys(i)){const e=Number(r);d(e,i[e])}const{yesPicks:n,noPicks:o}=Vt(a,t);for(const r of n)d(r.id,"yes");for(const r of o)d(r.id,"no");u(t)},F=!p&&a.length>0,C=k?Array.from({length:b-y+1},(e,t)=>y+t):[],B=h>0?h:y||v;return(0,c.jsxs)("div",{className:`flex items-center justify-between gap-3 pl-2 ${e}`,children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:j(o),fontFamily:r},children:"Place Your Wager"}),l&&(0,c.jsx)(Wr,{onBack:t,hideActions:n,label:l.game_name})]}),F&&(C.length>1?(0,c.jsx)(Vr,{counts:C,onPick:e=>N(e),onDoubleAction:()=>N(B),colors:x,menuShadow:T(o)}):(0,c.jsx)("div",{className:"flex-shrink-0",children:(0,c.jsx)(sr,{onPress:()=>N()})}))]})}function kl({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,placedEntry:l}=lr(),s=o.colors;return(0,c.jsxs)("div",{className:`flex items-center justify-between gap-3 pl-2 ${e}`,children:[(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsx)("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:j(o),fontFamily:r},children:"Entry Placed!"}),(0,c.jsx)(Wr,{onBack:t,hideActions:n,children:(0,c.jsx)("p",{className:"text-sm",style:{color:s.textMuted},children:l?(0,c.jsxs)(c.Fragment,{children:["Entry"," ",(0,c.jsxs)("span",{className:"font-mono font-semibold",style:{color:s.primary},children:["#",l.id]})," ","successfully submitted"]}):"Your entry has been successfully submitted"})})]}),(0,c.jsx)("div",{className:"w-12 h-12 sm:w-14 sm:h-14 rounded-full flex items-center justify-center flex-shrink-0",style:{backgroundColor:`${s.success}20`},children:(0,c.jsx)("svg",{className:"w-6 h-6 sm:w-7 sm:h-7",fill:"none",stroke:s.success,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24",children:(0,c.jsx)("path",{d:"M5 13l4 4L19 7"})})})]})}function vl({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r}=lr();return(0,c.jsxs)("div",{className:`pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:j(o),fontFamily:r},children:"Your Entries"}),(0,c.jsx)(Wr,{onBack:t,hideActions:n})]})}function Nl({className:e="",onBack:t,hideActions:n,backLabel:o="Category"}){const{theme:r,selectedCategory:l}=lr(),s=r.colors,a=fe(r);return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:a},children:Ct(l)}),(0,c.jsx)(Wr,{onBack:t,hideActions:n,label:t?o:void 0})]})}function Fl(e,t){const n=/^#([0-9a-f]{6})$/i.exec(e?.trim()??"");if(!n)return e;const o=parseInt(n[1],16);return`rgba(${o>>16&255}, ${o>>8&255}, ${255&o}, ${t})`}function Cl(){return(0,c.jsx)("style",{id:"blade-rulepage-styles",children:"\n.blade-rp{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-rp-in{opacity:0;animation:blade-rp-in .5s var(--e) both}\n@keyframes blade-rp-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n.blade-rp-card{transition:transform .18s var(--e),box-shadow .18s var(--e),border-color .18s var(--e)}\n.blade-rp-card:hover{transform:translateY(-2px)}\n.blade-rp-card:active{transform:translateY(0) scale(.995)}\n@media (prefers-reduced-motion:reduce){.blade-rp *{animation:none!important}.blade-rp-in{opacity:1!important}}\n"})}function Bl({ink:e,ball:t,size:n,balls:o=1}){return(0,c.jsxs)("svg",{width:n,height:n,viewBox:"2 12 76 62",fill:"none","aria-hidden":!0,children:[(0,c.jsx)("line",{x1:"9",y1:"18",x2:"71",y2:"18",stroke:e,strokeWidth:"2.5",strokeLinecap:"round"}),(0,c.jsx)("path",{d:"M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64",fill:"none",stroke:e,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.9"}),(0,c.jsx)("path",{d:"M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64",fill:"none",stroke:e,strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)("ellipse",{cx:"40",cy:"64",rx:"18",ry:"4.5",fill:"none",stroke:e,strokeWidth:"2.2"}),(o>=2?[{cx:33,cy:52,r:6.6},{cx:48,cy:49,r:6.6}]:[{cx:40,cy:50,r:8}]).map((e,n)=>(0,c.jsx)("circle",{cx:e.cx,cy:e.cy,r:e.r,fill:t},n))]})}function Al({ink:e,ball:t,size:n}){return(0,c.jsxs)("svg",{width:n,height:n,viewBox:"0 0 100 100",fill:"none","aria-hidden":!0,children:[(0,c.jsx)("circle",{cx:"50",cy:"50",r:"34",stroke:e,strokeWidth:3,opacity:.9}),(0,c.jsx)("circle",{cx:"50",cy:"50",r:"23",stroke:e,strokeWidth:3,opacity:.65}),(0,c.jsx)("circle",{cx:"50",cy:"50",r:"8",fill:t}),(0,c.jsx)("line",{x1:"80",y1:"20",x2:"55",y2:"45",stroke:e,strokeWidth:4,strokeLinecap:"round"}),(0,c.jsx)("path",{d:"M50 50 l8 -3 -3 8 z",fill:e})]})}function Ml({ink:e,ball:t,size:n}){const o=[{x:16,h:22},{x:40,h:40},{x:64,h:60}];return(0,c.jsxs)("svg",{width:n,height:n,viewBox:"0 0 100 100",fill:"none","aria-hidden":!0,children:[(0,c.jsx)("line",{x1:"10",y1:"84",x2:"90",y2:"84",stroke:e,strokeWidth:"2",opacity:"0.5"}),o.map((n,r)=>(0,c.jsx)("rect",{x:n.x,y:84-n.h,width:"16",height:n.h,rx:"3.5",fill:r===o.length-1?t:e,opacity:r===o.length-1?1:.5+.22*r},n.x)),(0,c.jsx)("path",{d:"M14 60 L38 48 L62 30 L86 14",stroke:e,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),(0,c.jsx)("path",{d:"M86 14 l-9 1 M86 14 l1 9",stroke:e,strokeWidth:"3",strokeLinecap:"round"})]})}function Sl({kind:e,balls:t,...n}){return"safety_net"===e?(0,c.jsx)(Bl,{...n,balls:t}):"pick"===e?(0,c.jsx)(Ml,{...n}):(0,c.jsx)(Al,{...n})}function zl({kind:e,size:t=56,balls:n}){const{theme:o}=lr(),r=o.colors,l=o.brand?.chip??r.primary,s=o.brand?.icon??r.primaryText,a=W(o);return(0,c.jsx)("span",{"aria-hidden":!0,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:t,height:t,borderRadius:.3*t,backgroundColor:l,border:`1px solid ${Fl(s,.16)}`,flexShrink:0,boxShadow:`0 8px 18px -12px ${Fl(l,.9)}`},children:(0,c.jsx)(Sl,{kind:e,ink:s,ball:a,balls:n,size:Math.round(.68*t)})})}function Ll({option:e,renderDividends:t}){const{theme:n}=lr(),o=n.colors,r=fe(n),l=o.primary,s=W(n),a=e.dividends??[];return t?(0,c.jsx)(c.Fragment,{children:t(e)}):(0,c.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,c.jsxs)("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:o.textMuted},children:[(0,c.jsx)("span",{children:"If you land"}),(0,c.jsxs)("span",{children:["$",20," returns"]})]}),a.map((t,n)=>{const a=e.tierLegs?.[n];return(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,c.jsxs)("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[(0,c.jsx)("span",{className:"text-xs sm:text-[13px]",style:{color:o.text},children:t.label}),null!=a&&a>0&&(0,c.jsxs)("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:a}).map((e,t)=>(0,c.jsx)("span",{style:{width:5,height:5,borderRadius:1.5,backgroundColor:l,opacity:.85}},t)),0===t.misses&&(0,c.jsx)("span",{style:{width:7,height:7,borderRadius:999,backgroundColor:s,marginLeft:2}})]})]}),(0,c.jsx)("span",{className:"text-sm font-extrabold tabular-nums sm:text-base",style:{color:l,fontFamily:r},children:xt(t.payout20)})]},t.misses)})]})}function Pl({option:e,renderDividends:t}){const{theme:n}=lr(),o=n.colors,r=he(n),l=T(n),a=e.dividends??[],i=a.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[u,m]=(0,s.useState)(!1),p=(0,s.useRef)(null),h=(0,s.useRef)(null),[f,x]=(0,s.useState)(null),g=40+36*Math.max(a.length,1)+12,y=(0,s.useCallback)(()=>{const e=p.current;if(!e||"undefined"==typeof window)return;const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom,o=t.top,r=n<g&&o>n;x({left:t.left,top:r?t.top-6:t.bottom+6,flipUp:r})},[g]);(0,s.useLayoutEffect)(()=>{if(!u)return void x(null);y();const e=()=>m(!1),t=()=>y();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[u,y]),(0,s.useEffect)(()=>{if(!u)return;const e=e=>{const t=e.target;p.current?.contains(t)||h.current?.contains(t)||m(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[u]);const b=u&&f&&"undefined"!=typeof document?(0,d.createPortal)((0,c.jsx)("div",{ref:h,role:"listbox",className:"rounded-lg overflow-hidden",style:{position:"fixed",left:f.left,top:f.top,transform:f.flipUp?"translateY(-100%)":void 0,zIndex:9999,backgroundColor:o.background,border:`1px solid ${o.border}`,boxShadow:l,minWidth:220,fontFamily:r},children:t?(0,c.jsx)("div",{className:"px-3 py-2",children:t(e)}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"px-3 py-1.5 text-[10px] font-bold tracking-wider uppercase",style:{color:o.text,opacity:.55,borderBottom:`1px solid ${o.border}`},children:["Dividends for $",20]}),a.map((e,t)=>(0,c.jsxs)("div",{className:"flex items-center justify-between px-3 py-2",style:{borderTop:0===t?"none":`1px solid ${o.border}`,gap:14},children:[(0,c.jsx)("span",{style:{fontWeight:700,color:o.text,fontSize:13},children:e.label}),(0,c.jsx)("span",{style:{fontWeight:700,color:e.payout20>0?o.heading??o.text:o.textMuted,fontSize:13,textAlign:"right"},children:e.payout20>0?xt(e.payout20):"—"})]},e.misses))]})}),document.body):null;return(0,c.jsxs)("div",{className:"flex w-full justify-center",children:[(0,c.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-x-2 gap-y-1 max-w-full",style:{fontFamily:r},children:[i>0&&(0,c.jsxs)("span",{className:"text-xs font-semibold leading-snug",style:{color:o.text},children:["Win up to ",(0,c.jsx)("span",{style:{color:o.heading??o.text},children:xt(i)}),(0,c.jsxs)("span",{style:{color:o.textMuted},children:[" for $",20]})]}),(0,c.jsx)("button",{ref:p,type:"button",onClick:()=>m(e=>!e),"aria-expanded":u,"aria-haspopup":"listbox",className:"text-xs font-semibold rounded-md transition-colors shrink-0",style:{background:u?o.buttonSecondary:o.background??"#ffffff",border:`1px solid ${u?o.primary??o.border:o.border}`,padding:"4px 10px",cursor:"pointer",color:o.text,fontFamily:r,lineHeight:1.35},children:u?"Hide dividends":"Show dividends"})]}),b]})}function Ol({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=lr(),l=r.colors,s=fe(r),a=j(r),i=l.primary,d=l.selectionCard??l.backgroundAlt,u="safety_net"===e?Math.max(1,(t.detail?.length??2)-1):void 0,m=!!o||(t.dividends?.length??0)>0,p=m&&!!t.dividendsInline;return(0,c.jsxs)("div",{className:"blade-rp-card flex h-full flex-col rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:d,borderColor:l.border,boxShadow:`0 10px 24px -20px ${Fl(a,.7)}`},onMouseEnter:e=>{e.currentTarget.style.borderColor=i,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${Fl(i,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=l.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${Fl(a,.7)}`},children:[(0,c.jsxs)("button",{type:"button",onClick:n,className:"group flex w-full flex-1 items-start gap-3.5 text-left sm:gap-4",style:{background:"none",border:"none",padding:0,cursor:"pointer"},children:[(0,c.jsx)(zl,{kind:e,balls:u,size:60}),(0,c.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[(0,c.jsx)("span",{className:"text-lg font-extrabold leading-none tracking-tight sm:text-xl",style:{color:a,fontFamily:s},children:t.label}),t.stat&&(0,c.jsx)("span",{className:"w-fit rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em]",style:{backgroundColor:Fl(i,.12),color:i},children:t.stat}),t.detail&&t.detail.length>0&&(0,c.jsx)("div",{className:"flex flex-col gap-0.5",style:{minHeight:"3.75rem"},children:t.detail.map(e=>(0,c.jsx)("span",{className:"text-xs leading-snug sm:text-[13px]",style:{color:l.textMuted},children:e},e))})]}),(0,c.jsx)("span",{className:"shrink-0 self-center transition-transform group-hover:translate-x-0.5",style:{color:i},"aria-hidden":!0,children:(0,c.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,c.jsx)("path",{d:"m9 6 6 6-6 6"})})})]}),m&&(0,c.jsx)("div",{className:"mt-3 border-t pt-3",style:{borderColor:Fl(a,.08)},children:p?(0,c.jsx)(Ll,{option:t,renderDividends:o}):(0,c.jsx)(Pl,{option:t,renderDividends:o})})]})}function Dl({onContinue:e,onBack:t,hideTitle:n,config:o,renderDividends:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,setExpectedCorrect:m,handlePropositionCountChange:p,screenSize:h}=lr(),f=i.colors,x="mobile"===h,g=he(i),y=fe(i),b=j(i),w=W(i),k=(0,s.useMemo)(()=>o??Jn(d,u),[o,d,u]),v=k?.options??[],N=t=>{null!=t?.expectedCorrect&&m(t.expectedCorrect),null!=t?.propositionCount&&p(t.propositionCount),e?.()};if(!d||!k)return(0,c.jsx)("div",{className:a,style:{color:f.textMuted,fontFamily:g},children:"No rule setup required."});const F=k.kind,C=k.headline??k.heroTitle,B=k.continueLabel??"Continue";return(0,c.jsxs)("div",{className:`blade-rp flex min-h-full w-full flex-col ${a}`,style:{fontFamily:g},children:[(0,c.jsx)(Cl,{}),t&&(0,c.jsx)(Gr,{onBack:t,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full max-w-3xl flex-1 flex-col",children:[!n&&(0,c.jsx)("h2",{className:"blade-rp-in mb-4 text-center text-[10px] font-bold uppercase tracking-[0.14em] sm:mb-5 sm:text-xs sm:tracking-[0.18em]",style:{color:f.primary,fontFamily:y},children:k.title}),(0,c.jsxs)("header",{className:"blade-rp-in mb-6 flex flex-col items-center text-center sm:mb-7",children:[(0,c.jsx)(Er,{iconUrl:ve(d),gameName:d.game_name,height:x?24:32,chipColor:f.primary,textColor:f.text,iconColor:f.primaryText,accentColor:i.brand?.accent,compact:x}),k.subtitle&&(0,c.jsx)("p",{className:"mt-2 text-xs sm:text-sm",style:{color:f.textMuted},children:k.subtitle}),(C||k.heroTagline)&&(0,c.jsx)("p",{className:"mt-3 max-w-sm text-sm leading-relaxed sm:text-[15px]",style:{color:f.textMuted},children:k.heroTagline??C})]}),(0,c.jsx)(sl,{className:"blade-rp-in"}),v.length>0?(0,c.jsx)("div",{className:v.length>1?"mx-auto grid w-full items-stretch gap-3 sm:grid-cols-2":"mx-auto flex w-full flex-col gap-3",children:v.map((e,t)=>(0,c.jsx)("div",{className:"blade-rp-in flex h-full min-h-0",style:{animationDelay:.06+.07*t+"s"},children:(0,c.jsx)(Ol,{kind:F,option:e,onSelect:()=>N(e),renderDividends:r})},e.id))}):k.highlights&&k.highlights.length>0&&(0,c.jsx)("div",{className:"blade-rp-in blade-rp-card flex flex-col rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:f.selectionCard??f.backgroundAlt,borderColor:f.border,boxShadow:`0 10px 24px -20px ${Fl(b,.7)}`,animationDelay:".06s"},onMouseEnter:e=>{e.currentTarget.style.borderColor=f.primary,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${Fl(f.primary,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=f.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${Fl(b,.7)}`},children:(0,c.jsxs)("button",{type:"button",onClick:()=>N(),"aria-label":B,className:"group flex w-full flex-1 items-start gap-3.5 text-left sm:gap-4",style:{background:"none",border:"none",padding:0,cursor:"pointer"},children:[(0,c.jsx)(zl,{kind:F,size:60}),(0,c.jsx)("span",{className:"flex min-w-0 flex-1 flex-col gap-2",children:k.highlights.map(e=>(0,c.jsxs)("span",{className:"flex items-start gap-3",children:[(0,c.jsx)("span",{className:"mt-[7px] h-1.5 w-1.5 shrink-0 rounded-full",style:{backgroundColor:w},"aria-hidden":!0}),(0,c.jsx)("span",{className:"text-sm leading-snug sm:text-[15px]",style:{color:b},children:e})]},e))}),(0,c.jsx)("span",{className:"shrink-0 self-center transition-transform group-hover:translate-x-0.5",style:{color:f.primary},"aria-hidden":!0,children:(0,c.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,c.jsx)("path",{d:"m9 6 6 6-6 6"})})})]})})]})]})}function Tl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,quickPickGame:f,goToSportSelection:x}=lr(),g=i.colors,y=he(i),b=fe(i),w=j(i),k=K(i),v=(0,s.useMemo)(()=>r??Lo(d),[r,d]),[N,F]=(0,s.useState)(()=>v?null!=u&&v.legOptions.includes(u)?u:v.defaultLegs:8),[C,B]=(0,s.useState)(()=>v?.defaultStake??20);if(!d||!So(d)||!v)return(0,c.jsx)("div",{className:a,style:{color:g.textMuted,fontFamily:y},children:"No game set available."});const A=zo(C,N,{operatorMargin:v.operatorMargin,perLegProbability:v.perLegProbability}),M=C>=v.minStake,S=(e,t)=>(0,c.jsxs)("div",{className:"mb-2 flex items-baseline justify-between",children:[(0,c.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:g.textMuted},children:e}),(0,c.jsx)("span",{className:"text-xs font-semibold tabular-nums",style:{color:w},children:t})]});return(0,c.jsxs)("div",{className:`blade-gsb flex min-h-full w-full flex-col ${a}`,style:{fontFamily:y},children:[(0,c.jsx)("style",{id:"blade-gsb-styles",children:"\n.blade-gsb{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-gsb-in{opacity:0;animation:blade-gsb-in .5s var(--e) both}\n@keyframes blade-gsb-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-gsb *{animation:none!important}.blade-gsb-in{opacity:1!important}}\n"}),(0,c.jsx)(ul,{}),n&&(0,c.jsx)(Gr,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(ll,{className:"blade-gsb-in",eyebrow:o?null:"The fastest multi",iconUrl:ve(d),gameName:d.game_name,tagline:v.tagline}),(0,c.jsx)(sl,{}),(0,c.jsxs)("div",{className:"blade-gsb-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:k,borderColor:g.border,boxShadow:`0 10px 24px -20px ${ol(w,.7)}`,animationDelay:".06s"},children:[S("Legs",`${N} legs`),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Number of legs",children:v.legOptions.map(e=>{const t=e===N;return(0,c.jsx)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>F(e),className:"min-w-[40px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?g.primary:"transparent",borderColor:t?g.primary:g.border,color:t?g.primaryText:g.textMuted,cursor:"pointer"},children:e},e)})}),(0,c.jsxs)("div",{className:"mt-2 flex items-baseline justify-between text-[11px] italic",style:{color:g.textMuted},children:[(0,c.jsx)("span",{children:"Easier to land"}),(0,c.jsx)("span",{children:"Bigger prize"})]}),(0,c.jsxs)("div",{className:"mt-4",children:[S("Stake",xt(C)),(0,c.jsxs)("div",{className:"relative",children:[(0,c.jsx)("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 font-bold",style:{color:g.textMuted},children:"$"}),(0,c.jsx)("input",{type:"number",inputMode:"decimal",min:v.minStake,max:v.maxStake??void 0,step:"any",placeholder:"Enter stake","aria-label":"Stake amount",value:C||"",onChange:e=>{if(""===e.target.value)return void B(0);const t=Number(e.target.value);Number.isFinite(t)&&B((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==v.maxStake?Math.min(t,v.maxStake):t})(t))},onFocus:e=>{e.currentTarget.style.borderColor=g.borderFocus??g.primary},onBlur:e=>{e.currentTarget.style.borderColor=g.border},className:"w-full rounded-lg border py-3 pl-8 pr-4 text-lg font-semibold tabular-nums focus:outline-none",style:{borderColor:g.border,color:g.textAlt??g.text,backgroundColor:g.backgroundAlt,fontFamily:y,transition:"border-color .15s ease"}})]}),(0,c.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:v.quickStakes.map(e=>{const t=e===C;return(0,c.jsxs)("button",{type:"button",onClick:()=>B(e),className:"min-w-[48px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?g.primary:"transparent",borderColor:t?g.primary:g.border,color:t?g.primaryText:g.textMuted,cursor:"pointer"},children:["$",e]},e)})}),!M&&C>0&&(0,c.jsxs)("p",{className:"mt-2 text-xs",style:{color:g.error},children:["Minimum stake is ",xt(v.minStake),"."]})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:ol(w,.08)},children:[(0,c.jsxs)("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:g.textMuted},children:[(0,c.jsxs)("span",{children:["If all ",N," land"]}),(0,c.jsxs)("span",{children:[xt(C)," returns"]})]}),(0,c.jsxs)("div",{className:"mt-1.5 flex items-center justify-between gap-3",children:[(0,c.jsxs)("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[(0,c.jsx)("span",{className:"text-xs sm:text-[13px]",style:{color:g.text},children:"Perfect ticket"}),(0,c.jsx)(cl,{legs:N})]}),(0,c.jsx)("span",{className:"text-xl font-extrabold tabular-nums sm:text-2xl",style:{color:g.primary,fontFamily:b},children:xt(A.prize)})]}),(0,c.jsxs)("p",{className:"mt-1.5 text-[11px] tabular-nums",style:{color:g.textMuted},children:[(z=A.multiple,`×${(Math.round(10*z)/10).toLocaleString("en-US",{maximumFractionDigits:1})}`)," your stake · total return, stake included"]}),(0,c.jsx)("p",{className:"mt-1 text-[11px] italic",style:{color:g.textMuted},children:"All or nothing. Miss a single leg and the ticket does not pay."})]})]}),(0,c.jsxs)("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[(0,c.jsx)("div",{className:"blade-gsb-in",style:{animationDelay:".13s"},children:(0,c.jsx)(dl,{tile:(0,c.jsx)(rl,{iconUrl:ve(d),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{M&&(m(N),p(N),h(C),x(),t?.())}})}),(0,c.jsx)("div",{className:"blade-gsb-in",style:{animationDelay:".2s"},children:(0,c.jsx)(dl,{tile:(0,c.jsx)(rl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{M&&(p(N),h(C),f(d,N,C),e?.())}})})]})]})]});var z}function El({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,quickPickGame:f,goToSportSelection:x}=lr(),g=i.colors,y=he(i),b=fe(i),w=j(i),k=K(i),v=(0,s.useMemo)(()=>r??so(d),[r,d]),[N,F]=(0,s.useState)(()=>v?.defaultDividend??1e4),[C,B]=(0,s.useState)(()=>{const e=v?.dividends[0]?.rungs.map(e=>e.legs)??[];return null!=u&&e.includes(u)?u:v?.defaultLegs??9});if(!d||!no(d)||!v)return(0,c.jsx)("div",{className:a,style:{color:g.textMuted,fontFamily:y},children:"No dividend series available."});const A=v.dividends.find(e=>e.dividend===N)??v.dividends[0],M=A.rungs.find(e=>e.legs===C)??A.rungs[0],S=Math.max(...A.rungs.map(e=>e.legs)),z=Math.min(...A.rungs.map(e=>e.legs));return(0,c.jsxs)("div",{className:`blade-pyd flex min-h-full w-full flex-col ${a}`,style:{fontFamily:y},children:[(0,c.jsx)("style",{id:"blade-pyd-styles",children:"\n.blade-pyd{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-pyd-in{opacity:0;animation:blade-pyd-in .5s var(--e) both}\n@keyframes blade-pyd-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-pyd *{animation:none!important}.blade-pyd-in{opacity:1!important}}\n"}),(0,c.jsx)(ul,{}),n&&(0,c.jsx)(Gr,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(ll,{className:"blade-pyd-in",eyebrow:o?null:"Pick your dividend",iconUrl:ve(d),gameName:d.game_name,tagline:v.tagline}),(0,c.jsx)(sl,{}),(0,c.jsxs)("div",{className:"blade-pyd-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:k,borderColor:g.border,boxShadow:`0 10px 24px -20px ${ol(w,.7)}`,animationDelay:".06s"},children:[(L=xt(A.dividend),(0,c.jsxs)("div",{className:"mb-2 flex items-baseline justify-between",children:[(0,c.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:g.textMuted},children:"Set dividend"}),L&&(0,c.jsx)("span",{className:"text-xs font-semibold tabular-nums",style:{color:w},children:L})]})),(0,c.jsx)(al,{smGridClassName:"sm:grid-cols-4",ariaLabel:"Set dividend",children:v.dividends.map(e=>{const t=e.dividend===N;return(0,c.jsxs)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>F(e.dividend),className:`rounded-xl border px-2 py-3 text-center transition-colors ${il}`,style:{backgroundColor:t?ol(g.primary,.08):"transparent",borderColor:t?g.primary:g.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=g.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=t?g.primary:g.border},children:[(0,c.jsx)("span",{className:"block text-base font-extrabold leading-none tracking-tight tabular-nums sm:text-xl",style:{color:w,fontFamily:b},children:xt(e.dividend)}),(0,c.jsxs)("span",{className:"mt-1 block text-[10px]",style:{color:g.textMuted},children:["from ",xt(e.rungs[0]?.stake??0)]})]},e.dividend)})}),(0,c.jsx)("p",{className:"mt-2 text-[11px] italic",style:{color:g.textMuted},children:"One set amount — it does not move, whatever you spend."}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:ol(w,.08)},children:[(0,c.jsxs)("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:g.textMuted},children:[(0,c.jsx)("span",{children:"Legs to land"}),(0,c.jsx)("span",{children:"Your stake"})]}),(0,c.jsx)("div",{className:"mt-1.5 flex flex-col gap-1.5",role:"radiogroup","aria-label":"Stake ladder",children:A.rungs.map(e=>{const t=e.legs===C;return(0,c.jsxs)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>B(e.legs),className:"flex items-center justify-between gap-3 rounded-xl border px-3 py-1.5 text-left transition-colors sm:py-2",style:{backgroundColor:t?ol(g.primary,.08):"transparent",borderColor:t?g.primary:g.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=g.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=t?g.primary:g.border},children:[(0,c.jsxs)("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[(0,c.jsxs)("span",{className:"text-xs sm:text-[13px]",style:{color:g.text},children:[e.legs," legs",(0,c.jsx)("span",{className:"hidden sm:inline",children:e.legs===S?" · the long climb":e.legs===z?" · the sprint":""})]}),(0,c.jsx)(cl,{legs:e.legs})]}),(0,c.jsx)("span",{className:"shrink-0 text-sm font-extrabold tabular-nums sm:text-base",style:{color:g.primary,fontFamily:b},children:xt(e.stake)})]},e.legs)})}),(0,c.jsx)("p",{className:"mt-2 text-[11px] italic",style:{color:g.textMuted},children:"Same dividend on every rung — a little for the long climb, more for the short one."})]})]}),(0,c.jsxs)("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[(0,c.jsx)("div",{className:"blade-pyd-in",style:{animationDelay:".13s"},children:(0,c.jsx)(dl,{tile:(0,c.jsx)(rl,{iconUrl:ve(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${M.legs} legs`,`${xt(M.stake)} chasing the ${xt(A.dividend)}`],onSelect:()=>{var e;m((e=M).legs),p(e.legs),h(e.stake),x(),t?.()}})}),(0,c.jsx)("div",{className:"blade-pyd-in",style:{animationDelay:".2s"},children:(0,c.jsx)(dl,{tile:(0,c.jsx)(rl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${M.legs} legs at ${xt(M.stake)}`,"Straight to the bet slip"],onSelect:()=>{p(M.legs),h(M.stake),f(d,M.legs,M.stake),e?.()}})})]})]})]});var L}function jl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,quickPickGame:f,goToSportSelection:x,screenSize:g}=lr(),y=i.colors,b="mobile"===g,w=he(i),k=fe(i),v=j(i),N=W(i),F=K(i),C=(0,s.useMemo)(()=>r??Yo(d),[r,d]),[B,A]=(0,s.useState)(()=>C?null!=u&&C.ladders.some(e=>e.legs===u)?u:C.defaultLegs:8),[M,S]=(0,s.useState)(()=>C?.defaultStake??50),[z,L]=(0,s.useState)(!1);if(!d||!Do(d)||!C)return(0,c.jsx)("div",{className:a,style:{color:y.textMuted,fontFamily:w},children:"No ladders available."});const P=C.ladders.find(e=>e.legs===B)??C.ladders[0],O=Eo(P,M),D=jo(P,M),T=[...O].reverse(),E=b&&T.length>4,Y=E&&!z?T.slice(0,3):T,H=(e,t)=>(0,c.jsxs)("div",{className:"mb-2 flex items-baseline justify-between",children:[(0,c.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:y.textMuted},children:e}),t&&(0,c.jsx)("span",{className:"text-xs font-semibold tabular-nums",style:{color:v},children:t})]});return(0,c.jsxs)("div",{className:`blade-lad flex min-h-full w-full flex-col ${a}`,style:{fontFamily:w},children:[(0,c.jsx)("style",{id:"blade-lad-styles",children:"\n.blade-lad{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-lad-in{opacity:0;animation:blade-lad-in .5s var(--e) both}\n@keyframes blade-lad-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-lad *{animation:none!important}.blade-lad-in{opacity:1!important}}\n"}),(0,c.jsx)(ul,{}),n&&(0,c.jsx)(Gr,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(ll,{className:"blade-lad-in",eyebrow:o?null:"Climb the ladder. Stack the prizes.",iconUrl:ve(d),gameName:d.game_name,tagline:C.tagline}),(0,c.jsx)(sl,{}),(0,c.jsxs)("div",{className:"blade-lad-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:F,borderColor:y.border,boxShadow:`0 10px 24px -20px ${ol(v,.7)}`,animationDelay:".06s"},children:[H("Your bet",xt(M)),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Bet size",children:C.stakes.map(e=>{const t=e===M;return(0,c.jsxs)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>S(e),className:"min-w-[52px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border,color:t?y.primaryText:y.textMuted,cursor:"pointer"},children:["$",e]},e)})}),(0,c.jsx)("p",{className:"mt-2 text-[11px] italic",style:{color:y.textMuted},children:"Every prize scales with your bet."}),(0,c.jsxs)("div",{className:"mt-4",children:[H(`${C.ladders.length} ladders to choose from`),(0,c.jsx)(al,{smGridClassName:"sm:grid-cols-5",ariaLabel:"Ladder",children:C.ladders.map(e=>{const t=e.legs===B;return(0,c.jsxs)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>A(e.legs),className:`rounded-xl border px-2 py-3 text-center transition-colors ${il}`,style:{backgroundColor:t?ol(y.primary,.08):"transparent",borderColor:t?y.primary:y.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=y.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=t?y.primary:y.border},children:[(0,c.jsxs)("span",{className:"block text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:y.primary},children:["Ladder ",e.legs]}),(0,c.jsx)("span",{className:"mt-1 block text-lg font-extrabold leading-none tracking-tight tabular-nums sm:text-xl",style:{color:v,fontFamily:k},children:xt(jo(e,M))}),(0,c.jsxs)("span",{className:"mt-1 block text-[10px]",style:{color:y.textMuted},children:["Win from ",e.firstPayingTier," right"]})]},e.legs)})})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:ol(v,.08)},children:[(0,c.jsxs)("p",{className:"mb-2 text-xs",style:{color:y.text},children:["Ladder ",P.legs," wins from ",P.firstPayingTier," right — every tier stacks into the"," ",(0,c.jsx)("span",{style:{fontWeight:700,color:v},children:xt(D)})," Full Stack Prize."]}),(0,c.jsxs)("div",{className:"grid items-center gap-x-3 gap-y-1.5 sm:gap-x-4",style:{gridTemplateColumns:"minmax(0,1fr) auto auto"},children:[(0,c.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:y.textMuted},children:"Get right"}),(0,c.jsx)("span",{className:"text-right text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:y.textMuted},children:"Tier pays"}),(0,c.jsx)("span",{className:"text-right text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:y.textMuted},children:"You collect"}),Y.map(e=>{const t=e.atLeast===P.legs;return(0,c.jsxs)(s.default.Fragment,{children:[(0,c.jsxs)("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[(0,c.jsxs)("span",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs sm:text-[13px]",style:{color:y.text},children:[e.atLeast," of ",P.legs,t&&(0,c.jsx)("span",{className:"hidden rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em] sm:inline",style:{backgroundColor:ol(N,.35),color:v},children:"Full stack"})]}),(0,c.jsx)(cl,{legs:e.atLeast,prizeBall:t})]}),(0,c.jsx)("span",{className:"text-right text-[11px] tabular-nums",style:{color:y.textMuted},children:xt(e.prize)}),(0,c.jsx)("span",{className:"text-right text-sm font-extrabold tabular-nums sm:text-base",style:{color:y.primary,fontFamily:k},children:xt(e.cumulative)})]},e.atLeast)})]}),E&&(0,c.jsx)("button",{type:"button",onClick:()=>L(e=>!e),"aria-expanded":z,className:"mt-2 w-full rounded-lg border py-2 text-[11px] font-bold",style:{borderColor:y.border,color:y.primary,background:"transparent",cursor:"pointer"},children:z?"Show fewer tiers":`Show all ${T.length} tiers`}),(0,c.jsxs)("p",{className:"mt-2 text-[11px] italic",style:{color:y.textMuted},children:["Land below ",P.firstPayingTier," right and the ticket does not pay."]})]})]}),(0,c.jsxs)("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[(0,c.jsx)("div",{className:"blade-lad-in",style:{animationDelay:".13s"},children:(0,c.jsx)(dl,{tile:(0,c.jsx)(rl,{iconUrl:ve(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${P.legs} outcomes`,`Win from ${P.firstPayingTier} right — every tier stacks`],onSelect:()=>{m(P.legs),p(P.legs),h(M),x(),t?.()}})}),(0,c.jsx)("div",{className:"blade-lad-in",style:{animationDelay:".2s"},children:(0,c.jsx)(dl,{tile:(0,c.jsx)(rl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${P.legs} legs at ${xt(M)}`,"Straight to the bet slip"],onSelect:()=>{p(P.legs),h(M),f(d,P.legs,M),e?.()}})})]})]})]})}function Yl({legs:e,right:t}){const{theme:n}=lr(),o=n.colors.primary,r=W(n);return(0,c.jsxs)("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:e}).map((e,n)=>(0,c.jsx)("span",{style:{width:5,height:5,borderRadius:1.5,backgroundColor:t?o:"transparent",border:t?"none":`1px solid ${ol(o,.45)}`,opacity:t?.85:1}},n)),(0,c.jsx)("span",{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}})]})}function Hl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,quickPickGame:f,goToSportSelection:x}=lr(),g=i.colors,y=he(i),b=fe(i),w=j(i),k=K(i),v=(0,s.useMemo)(()=>r??Io(d),[r,d]),[N,F]=(0,s.useState)(()=>v?null!=u&&v.legOptions.includes(u)?u:v.defaultLegs:8),[C,B]=(0,s.useState)(()=>v?.defaultStake??20);if(!d||!Go(d)||!v)return(0,c.jsx)("div",{className:a,style:{color:g.textMuted,fontFamily:y},children:"No mirror available."});const A=Wo(C,N,{operatorMargin:v.operatorMargin,perLegProbability:v.perLegProbability}),M=C>=v.minStake,S=(e,t)=>(0,c.jsxs)("div",{className:"mb-2 flex items-baseline justify-between",children:[(0,c.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:g.textMuted},children:e}),(0,c.jsx)("span",{className:"text-xs font-semibold tabular-nums",style:{color:w},children:t})]}),z=e=>(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,c.jsxs)("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[(0,c.jsx)("span",{className:"text-xs sm:text-[13px]",style:{color:g.text},children:e?`All ${N} right`:`All ${N} wrong`}),(0,c.jsx)(Yl,{legs:N,right:e})]}),(0,c.jsx)("span",{className:"text-lg font-extrabold tabular-nums sm:text-xl",style:{color:g.primary,fontFamily:b},children:xt(A.prize)})]});return(0,c.jsxs)("div",{className:`blade-mir flex min-h-full w-full flex-col ${a}`,style:{fontFamily:y},children:[(0,c.jsx)("style",{id:"blade-mir-styles",children:"\n.blade-mir{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-mir-in{opacity:0;animation:blade-mir-in .5s var(--e) both}\n@keyframes blade-mir-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-mir *{animation:none!important}.blade-mir-in{opacity:1!important}}\n"}),(0,c.jsx)(ul,{}),n&&(0,c.jsx)(Gr,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(ll,{className:"blade-mir-in",eyebrow:o?null:"All right, or all wrong",iconUrl:ve(d),gameName:d.game_name,tagline:v.tagline}),(0,c.jsx)(sl,{}),(0,c.jsxs)("div",{className:"blade-mir-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:k,borderColor:g.border,boxShadow:`0 10px 24px -20px ${ol(w,.7)}`,animationDelay:".06s"},children:[S("Legs",`${N} legs`),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Number of legs",children:v.legOptions.map(e=>{const t=e===N;return(0,c.jsx)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>F(e),className:"min-w-[40px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?g.primary:"transparent",borderColor:t?g.primary:g.border,color:t?g.primaryText:g.textMuted,cursor:"pointer"},children:e},e)})}),(0,c.jsxs)("div",{className:"mt-2 flex items-baseline justify-between text-[11px] italic",style:{color:g.textMuted},children:[(0,c.jsx)("span",{children:"Easier to sweep"}),(0,c.jsx)("span",{children:"Bigger prize"})]}),(0,c.jsxs)("div",{className:"mt-4",children:[S("Stake",xt(C)),(0,c.jsxs)("div",{className:"relative",children:[(0,c.jsx)("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 font-bold",style:{color:g.textMuted},children:"$"}),(0,c.jsx)("input",{type:"number",inputMode:"decimal",min:v.minStake,max:v.maxStake??void 0,step:"any",placeholder:"Enter stake","aria-label":"Stake amount",value:C||"",onChange:e=>{if(""===e.target.value)return void B(0);const t=Number(e.target.value);Number.isFinite(t)&&B((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==v.maxStake?Math.min(t,v.maxStake):t})(t))},onFocus:e=>{e.currentTarget.style.borderColor=g.borderFocus??g.primary},onBlur:e=>{e.currentTarget.style.borderColor=g.border},className:"w-full rounded-lg border py-3 pl-8 pr-4 text-lg font-semibold tabular-nums focus:outline-none",style:{borderColor:g.border,color:g.textAlt??g.text,backgroundColor:g.backgroundAlt,fontFamily:y,transition:"border-color .15s ease"}})]}),(0,c.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:v.quickStakes.map(e=>{const t=e===C;return(0,c.jsxs)("button",{type:"button",onClick:()=>B(e),className:"min-w-[48px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?g.primary:"transparent",borderColor:t?g.primary:g.border,color:t?g.primaryText:g.textMuted,cursor:"pointer"},children:["$",e]},e)})}),!M&&C>0&&(0,c.jsxs)("p",{className:"mt-2 text-xs",style:{color:g.error},children:["Minimum stake is ",xt(v.minStake),"."]})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:ol(w,.08)},children:[(0,c.jsxs)("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:g.textMuted},children:[(0,c.jsx)("span",{children:"Two ways to win"}),(0,c.jsxs)("span",{children:[xt(C)," pays each"]})]}),(0,c.jsxs)("div",{className:"mt-1.5 flex flex-col gap-2",children:[z(!0),z(!1)]}),(0,c.jsx)("p",{className:"mt-2 text-[11px] italic",style:{color:g.textMuted},children:"Anything in between — a split card — does not pay."})]})]}),(0,c.jsxs)("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[(0,c.jsx)("div",{className:"blade-mir-in",style:{animationDelay:".13s"},children:(0,c.jsx)(dl,{tile:(0,c.jsx)(rl,{iconUrl:ve(d),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","Aim for the sweep — either direction pays"],onSelect:()=>{M&&(m(N),p(N),h(C),x(),t?.())}})}),(0,c.jsx)("div",{className:"blade-mir-in",style:{animationDelay:".2s"},children:(0,c.jsx)(dl,{tile:(0,c.jsx)(rl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{M&&(p(N),h(C),f(d,N,C),e?.())}})})]})]})]})}function Rl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,setSelectedRuleId:f,quickPickGame:x,goToSportSelection:g}=lr(),y=i.colors,b=he(i),w=fe(i),k=j(i),v=K(i),N=(0,s.useMemo)(()=>r??qn(d),[r,d]),[F,C]=(0,s.useState)(()=>N?.defaultModeId??"extra_shot"),[B,A]=(0,s.useState)(()=>{const e=N?.modes.find(e=>e.id===(N?.defaultModeId??"extra_shot"));return e?null!=u&&e.legOptions.includes(u)?u:e.defaultLegs:8}),[M,S]=(0,s.useState)(()=>N?.defaultStake??20);if(!d||!Yn(d)||!N)return(0,c.jsx)("div",{className:a,style:{color:y.textMuted,fontFamily:b},children:"No safety net available."});const z=N.modes.find(e=>e.id===F)??N.modes[0],L=Wn(M,B,z.allowedMisses,N.pricing),P=e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==N.maxStake?Math.min(t,N.maxStake):t},O=M>=N.minStake,D=(e,t)=>(0,c.jsxs)("div",{className:"mb-2 flex items-baseline justify-between",children:[(0,c.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:y.textMuted},children:e}),(0,c.jsx)("span",{className:"text-xs font-semibold tabular-nums",style:{color:k},children:t})]}),T=(e,t,n,o)=>(0,c.jsx)("button",{type:"button",role:"radio","aria-checked":n,onClick:o,className:"min-w-[40px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:n?y.primary:"transparent",borderColor:n?y.primary:y.border,color:n?y.primaryText:y.textMuted,cursor:"pointer"},children:t},e),E=[{label:"Perfect",amount:L.perfect},...L.nearMiss.map((e,t)=>({label:`All but ${t+1}`,amount:e}))];return(0,c.jsxs)("div",{className:`blade-sn flex min-h-full w-full flex-col ${a}`,style:{fontFamily:b},children:[(0,c.jsx)("style",{id:"blade-sn-styles",children:"\n.blade-sn{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-sn-in{opacity:0;animation:blade-sn-in .5s var(--e) both}\n@keyframes blade-sn-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-sn *{animation:none!important}.blade-sn-in{opacity:1!important}}\n"}),(0,c.jsx)(ul,{}),n&&(0,c.jsx)(Gr,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(ll,{className:"blade-sn-in",eyebrow:o?null:"Choose your safety net",iconUrl:ve(d),gameName:d.game_name,tagline:N.tagline}),(0,c.jsx)(sl,{}),(0,c.jsxs)("div",{className:"blade-sn-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:v,borderColor:y.border,boxShadow:`0 10px 24px -20px ${ol(k,.7)}`,animationDelay:".06s"},children:[D("Safety net",z.label),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Safety net mode",children:N.modes.map(e=>T(e.id,e.label,e.id===z.id,()=>(e=>{const t=N.modes.find(t=>t.id===e);t&&(C(e),f(t.ruleId),t.legOptions.includes(B)||A(t.legOptions.reduce((e,t)=>Math.abs(t-B)<Math.abs(e-B)?t:e,t.legOptions[0])))})(e.id)))}),(0,c.jsx)("p",{className:"mt-2 text-xs leading-snug sm:text-[13px]",style:{color:y.textMuted},children:z.explain}),(0,c.jsxs)("div",{className:"mt-4",children:[D("Legs",`${B} legs`),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Number of legs",children:z.legOptions.map(e=>T(e,String(e),e===B,()=>A(e)))}),(0,c.jsxs)("div",{className:"mt-2 flex items-baseline justify-between text-[11px] italic",style:{color:y.textMuted},children:[(0,c.jsx)("span",{children:"Easier to land"}),(0,c.jsx)("span",{children:"Bigger prizes"})]})]}),(0,c.jsxs)("div",{className:"mt-4",children:[D("Stake",xt(M)),(0,c.jsxs)("div",{className:"relative",children:[(0,c.jsx)("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 font-bold",style:{color:y.textMuted},children:"$"}),(0,c.jsx)("input",{type:"number",inputMode:"decimal",min:N.minStake,max:N.maxStake??void 0,step:"any",placeholder:"Enter stake","aria-label":"Stake amount",value:M||"",onChange:e=>{if(""===e.target.value)return void S(0);const t=Number(e.target.value);Number.isFinite(t)&&S(P(t))},onFocus:e=>{e.currentTarget.style.borderColor=y.borderFocus??y.primary},onBlur:e=>{e.currentTarget.style.borderColor=y.border},className:"w-full rounded-lg border py-3 pl-8 pr-4 text-lg font-semibold tabular-nums focus:outline-none",style:{borderColor:y.border,color:y.textAlt??y.text,backgroundColor:y.backgroundAlt,fontFamily:b,transition:"border-color .15s ease"}})]}),(0,c.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:N.quickAdds.map(e=>(0,c.jsxs)("button",{type:"button",onClick:()=>S(P((M||0)+e)),className:"min-w-[48px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:"transparent",borderColor:y.border,color:y.textMuted,cursor:"pointer"},children:["+$",e]},e))}),!O&&M>0&&(0,c.jsxs)("p",{className:"mt-2 text-xs",style:{color:y.error},children:["Minimum stake is ",xt(N.minStake),"."]})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:ol(k,.08)},children:[(0,c.jsxs)("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:y.textMuted},children:[(0,c.jsx)("span",{children:"What you can win"}),(0,c.jsxs)("span",{children:[xt(M)," returns"]})]}),(0,c.jsxs)("div",{className:"mt-1.5 flex flex-col gap-1.5",children:[E.map(e=>(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,c.jsx)("span",{className:"text-xs sm:text-[13px]",style:{color:y.text},children:e.label}),(0,c.jsx)("span",{className:"text-sm font-extrabold tabular-nums sm:text-base",style:{color:y.primary,fontFamily:w},children:xt(Math.round(e.amount))})]},e.label)),(0,c.jsxs)("div",{className:"mt-1 flex items-center justify-between gap-3 rounded-xl px-3 py-2.5",style:{backgroundColor:y.primary},children:[(0,c.jsxs)("span",{className:"flex min-w-0 flex-col gap-[2px]",children:[(0,c.jsx)("span",{className:"text-sm font-extrabold sm:text-[15px]",style:{color:y.primaryText,fontFamily:w},children:"Clean sweep"}),(0,c.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-[0.06em]",style:{color:y.primaryText,opacity:.75},children:"every leg right — all prizes"})]}),(0,c.jsx)("span",{className:"text-xl font-extrabold tabular-nums sm:text-2xl",style:{color:y.primaryText,fontFamily:w},children:xt(Math.round(L.sweep))})]})]}),(0,c.jsx)("p",{className:"mt-1.5 text-[11px]",style:{color:y.textMuted},children:"Total returns, stake included."}),(0,c.jsxs)("p",{className:"mt-1 text-[11px] italic",style:{color:y.textMuted},children:["Miss ",1===z.allowedMisses?"two":"three"," or more and the ticket does not pay."]})]})]}),(0,c.jsxs)("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[(0,c.jsx)("div",{className:"blade-sn-in",style:{animationDelay:".13s"},children:(0,c.jsx)(dl,{tile:(0,c.jsx)(rl,{iconUrl:ve(d),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{O&&(f(z.ruleId),m(B),p(B-z.allowedMisses),h(M),g(),t?.())}})}),(0,c.jsx)("div",{className:"blade-sn-in",style:{animationDelay:".2s"},children:(0,c.jsx)(dl,{tile:(0,c.jsx)(rl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{O&&(f(z.ruleId),p(B-z.allowedMisses),h(M),x(d,B,M),e?.())}})})]})]})]})}function Gl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,handlePropositionCountChange:u,setExpectedCorrect:m,setBetAmount:p,setSelectedRuleId:h,quickPickGame:f,goToSportSelection:x}=lr(),g=i.colors,y=he(i),b=fe(i),w=j(i),k=K(i),v=(0,s.useMemo)(()=>r??Vo(d),[r,d]),[N,F]=(0,s.useState)(()=>v?.defaultUnit??10),[C,B]=(0,s.useState)($o);if(!d||!Uo(d)||!v)return(0,c.jsx)("div",{className:a,style:{color:g.textMuted,fontFamily:y},children:"No card available."});const A=Ko(N,C,v),M=1*N,S=N>v.unitMin,z=N<v.unitMax,L=e=>F(t=>Math.min(v.unitMax,Math.max(v.unitMin,t+e*v.unitStep))),P=()=>{h(A.ruleId),m(A.lowestWinningCount),p(A.stake)},O=(e,t)=>(0,c.jsxs)("div",{className:"mb-2 flex items-baseline justify-between",children:[(0,c.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:g.textMuted},children:e}),(0,c.jsx)("span",{className:"text-xs font-semibold tabular-nums",style:{color:w},children:t})]}),D=(e,t,n,o)=>(0,c.jsx)("button",{type:"button",onClick:n,disabled:!t,"aria-label":o,className:"h-11 w-11 shrink-0 rounded-xl text-2xl font-extrabold leading-none transition-opacity",style:{backgroundColor:g.primary,color:g.primaryText,border:"none",opacity:t?1:.35,cursor:t?"pointer":"default"},children:e}),T={golden_point:{sub:`Go for the decider. Doubles a winning card to ${xt(N*v.baseMultiple*v.goldenPointFactor)}.`},captains_challenge:{sub:`Collect ${xt(N*v.challengeMultiple)} whenever you land ${v.legs-v.challengeMisses} or ${v.legs} of ${v.legs}. Stacks on a winning card.`}};return(0,c.jsxs)("div",{className:`blade-sx flex min-h-full w-full flex-col ${a}`,style:{fontFamily:y},children:[(0,c.jsx)("style",{id:"blade-sx-styles",children:"\n.blade-sx{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-sx-in{opacity:0;animation:blade-sx-in .5s var(--e) both}\n@keyframes blade-sx-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-sx *{animation:none!important}.blade-sx-in{opacity:1!important}}\n"}),(0,c.jsx)(ul,{}),n&&(0,c.jsx)(Gr,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(ll,{className:"blade-sx-in",eyebrow:o?null:"Set your play",iconUrl:ve(d),gameName:d.game_name,tagline:v.tagline}),(0,c.jsx)(sl,{}),(0,c.jsxs)("div",{className:"blade-sx-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:k,borderColor:g.border,boxShadow:`0 10px 24px -20px ${ol(w,.7)}`,animationDelay:".06s"},children:[O("Your play",`steps of ${xt(v.unitStep)}`),(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[D("−",S,()=>L(-1),"Lower stake"),(0,c.jsxs)("div",{className:"flex-1 text-center",children:[(0,c.jsx)("div",{className:"text-2xl font-extrabold tabular-nums",style:{color:w,fontFamily:b},children:xt(N)}),(0,c.jsx)("div",{className:"text-[10px] font-bold uppercase tracking-[0.08em]",style:{color:g.textMuted},children:"per play"})]}),D("+",z,()=>L(1),"Raise stake")]}),(0,c.jsxs)("div",{className:"mt-4",children:[O("Boost your card",`${xt(M)} each`),(0,c.jsx)("div",{className:"flex flex-col gap-2",children:v.boosts.map(e=>{const t=C[e.id];return(0,c.jsxs)("button",{type:"button",role:"switch","aria-checked":t,onClick:()=>{return t=e.id,B(e=>({...e,[t]:!e[t]}));var t},className:"flex w-full items-center gap-3 rounded-2xl border px-3 py-3 text-left transition-colors",style:{backgroundColor:t?ol(g.primary,.08):"transparent",borderColor:t?g.primary:g.border,cursor:"pointer"},children:[(0,c.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,c.jsxs)("span",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"text-sm font-extrabold sm:text-[15px]",style:{color:w,fontFamily:b},children:e.label}),(0,c.jsxs)("span",{className:"rounded-md px-1.5 py-0.5 text-[10px] font-extrabold tabular-nums",style:{backgroundColor:ol(g.primary,.12),color:g.primary},children:["+",xt(M*e.costUnits)]})]}),(0,c.jsx)("span",{className:"mt-1 block text-[11px] leading-snug sm:text-xs",style:{color:g.textMuted},children:T[e.id].sub})]}),(0,c.jsx)("span",{className:"relative h-7 w-12 shrink-0 rounded-full transition-colors",style:{backgroundColor:t?g.primary:g.border},"aria-hidden":!0,children:(0,c.jsx)("span",{className:"absolute top-[3px] h-[22px] w-[22px] rounded-full transition-transform",style:{left:3,backgroundColor:g.background,transform:t?"translateX(20px)":"none"}})})]},e.id)})})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:ol(w,.08)},children:[(0,c.jsxs)("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:g.textMuted},children:[(0,c.jsx)("span",{children:"What you can win"}),(0,c.jsxs)("span",{children:[xt(A.stake)," total wager"]})]}),A.challenge>0&&(0,c.jsxs)("div",{className:"mt-1.5 flex items-center justify-between gap-3",children:[(0,c.jsxs)("span",{className:"text-xs sm:text-[13px]",style:{color:g.text},children:[v.legs-v.challengeMisses," of ",v.legs]}),(0,c.jsx)("span",{className:"text-sm font-extrabold tabular-nums sm:text-base",style:{color:g.primary,fontFamily:b},children:xt(A.challenge)})]}),(0,c.jsxs)("div",{className:"mt-1.5 flex items-center justify-between gap-3 rounded-xl px-3 py-2.5",style:{backgroundColor:g.primary},children:[(0,c.jsxs)("span",{className:"flex min-w-0 flex-col gap-[2px]",children:[(0,c.jsxs)("span",{className:"text-sm font-extrabold sm:text-[15px]",style:{color:g.primaryText,fontFamily:b},children:[v.legs," of ",v.legs]}),(0,c.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-[0.06em]",style:{color:g.primaryText,opacity:.75},children:A.challenge>0?"every call right — both prizes":"every call right"})]}),(0,c.jsx)("span",{className:"text-xl font-extrabold tabular-nums sm:text-2xl",style:{color:g.primaryText,fontFamily:b},children:xt(A.perfect)})]}),(0,c.jsx)("p",{className:"mt-1.5 text-[11px] italic",style:{color:g.textMuted},children:A.challenge>0?`Fewer than ${v.legs-v.challengeMisses} right and the card does not pay.`:"Every call has to land — one miss and the card does not pay."})]})]}),(0,c.jsxs)("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[(0,c.jsx)("div",{className:"blade-sx-in",style:{animationDelay:".13s"},children:(0,c.jsx)(dl,{tile:(0,c.jsx)(rl,{iconUrl:ve(d),size:60}),label:`Pick my ${v.legs}`,stat:"Your calls",detail:["A clean yes or no on every call","You read the games, you make the calls"],onSelect:()=>{P(),u(v.legs),x(),t?.()}})}),(0,c.jsx)("div",{className:"blade-sx-in",style:{animationDelay:".2s"},children:(0,c.jsx)(dl,{tile:(0,c.jsx)(rl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${v.legs} calls for you`,"Straight to the bet slip"],onSelect:()=>{P(),f(d,v.legs,A.stake),e?.()}})})]})]})]})}function Wl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,backLabel:r="Games",className:l=""}){const{theme:a,selectedGame:i,selectedPropositionCount:d,handlePropositionCountChange:u,setExpectedCorrect:m,quickPickGame:p,goToSportSelection:h}=lr(),f=a.colors,x=he(a);fe(a);const g=(0,s.useMemo)(()=>{if(!i)return[];if(i.allowed_propositions&&i.allowed_propositions.length>0)return[...i.allowed_propositions].sort((e,t)=>e-t);const{min:e,max:t}=At(i);return qt(e,t)},[i]),y=Jo(i),b=g[0]??0,w=g[g.length-1]??0,[k]=(0,s.useState)(()=>null!=d&&g.includes(d)?d:w),v=(0,s.useMemo)(()=>Jn(i,k||void 0),[i,k]);if(!i||0===g.length||"exact"!==v?.kind)return(0,c.jsx)("div",{className:l,style:{color:f.textMuted,fontFamily:x},children:"No setup available."});const N=y?["Any yes/no props in the pool",`Pick ${b}–${w} legs — all must land`]:["A clean yes or no on every leg",`All ${k} have to land`],F=y?[`We fill ${k} legs across any markets`,"Straight to the bet slip"]:[`We fill all ${k} legs for you`,"Straight to the bet slip"];return(0,c.jsxs)("div",{className:`blade-pp flex min-h-full w-full flex-col ${l}`,style:{fontFamily:x},children:[(0,c.jsx)("style",{id:"blade-pp-styles",children:"\n.blade-pp{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-pp-in{opacity:0;animation:blade-pp-in .5s var(--e) both}\n@keyframes blade-pp-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-pp *{animation:none!important}.blade-pp-in{opacity:1!important}}\n"}),(0,c.jsx)(ul,{}),n&&(0,c.jsx)(Gr,{onBack:n,label:r}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(ll,{className:"blade-pp-in",eyebrow:o?null:v.title,iconUrl:ve(i),gameName:i.game_name,tagline:v.heroTagline}),(0,c.jsx)(sl,{}),(0,c.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,c.jsx)("div",{className:"blade-pp-in",style:{animationDelay:".13s"},children:(0,c.jsx)(dl,{tile:(0,c.jsx)(rl,{iconUrl:ve(i),size:60}),label:"Pick my own",stat:"Your calls",detail:N,onSelect:()=>{y||(u(k),m(k)),h(),t?.()}})}),(0,c.jsx)("div",{className:"blade-pp-in",style:{animationDelay:".2s"},children:(0,c.jsx)(dl,{tile:(0,c.jsx)(rl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:F,onSelect:()=>{m(k),p(i,k),e?.()}})})]})]})]})}exports.BladeApiClient=yo,exports.BrandLockup=function({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0,className:l}){const{theme:s}=lr(),a=j(s),i=W(s),d=s.colors.primaryHover??function(e){const t=/^#([0-9a-f]{6})$/i.exec(e?.trim()??"");if(!t)return e;const n=parseInt(t[1],16);return`rgba(${n>>16&255}, ${n>>8&255}, ${255&n}, 0.7)`}(a),u=fe(s)??"Manrope, Poppins, sans-serif",m=n&&n.length>0?n:t.split(/\s+/),p=.72*o,h=.5*o,f=Math.min(.62*o/m.length,.3*o);return(0,c.jsxs)("span",{role:"img","aria-label":`YESNO ${t}`,className:l,style:{display:"inline-flex",alignItems:"center",gap:.22*o,fontFamily:u,color:a},children:[(0,c.jsx)(_t,{iconUrl:e,width:p,height:p,iconColor:a,accentColor:i,ariaLabel:""}),(0,c.jsxs)("span",{"aria-hidden":!0,style:{fontSize:h,letterSpacing:.045*-h,lineHeight:1,whiteSpace:"nowrap"},children:[(0,c.jsx)("span",{style:{fontWeight:800},children:"YES"}),(0,c.jsx)("span",{style:{fontWeight:600},children:"NO"})]}),(0,c.jsx)("span",{"aria-hidden":!0,style:{width:Math.max(2,Math.round(.045*o)),height:.78*o,backgroundColor:d,flexShrink:0}}),(0,c.jsx)("span",{"aria-hidden":!0,style:{display:"inline-flex",flexDirection:"column",fontSize:f,fontWeight:500,letterSpacing:.012*-f,lineHeight:1.14,textAlign:"left"},children:m.map((e,t)=>(0,c.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[e,r&&t===m.length-1&&(0,c.jsx)("sup",{style:{fontSize:.36*f,fontWeight:500,marginLeft:1},children:"™"})]},`${e}-${t}`))})]})},exports.CHALLENGE_MISSES=1,exports.CHALLENGE_MULTIPLE=5,exports.CategoryIcon=Ke,exports.CategoryPickerPage=$r,exports.CategoryPickerPageActions=function({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=lr(),r=n.colors;return e&&"mobile"!==o?(0,c.jsx)("div",{className:`flex items-center pt-4 ${t}`,children:(0,c.jsx)("button",{type:"button",onClick:e,className:"px-5 py-2.5 rounded-lg text-sm font-medium transition-colors",style:{color:r.buttonSecondaryText,backgroundColor:r.buttonSecondary,cursor:"pointer"},children:"Cancel"})}):null},exports.CategoryPickerPageTitle=Ur,exports.ChevronRightIcon=qe,exports.ConfirmPage=function({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,hideTitle:r,hideActions:l,className:a=""}){const i=lr(),{theme:d,bodyFont:u,selectedGame:m,selectedPropositions:p,selections:h,propositions:f,disableQuickPick:x,selectedPropositionCount:g,selectedEventId:y,expectedCorrect:b,setExpectedCorrect:w,betAmount:k,setBetAmount:v,submitting:N,submitError:F,canSubmit:C,winningCounts:B,payouts:A,overloadPayouts:M,renderTeamLogo:S,userBalance:z,onRecharge:L,goBack:P,toggleSelection:O,upgradePropositionCount:D,goToSportSelection:T,selectedRule:E}=i,Y=d.colors;if((0,s.useEffect)(()=>{m||(T(),e?.())},[m,T,e]),!m)return null;const H=!!(m.allowed_propositions&&m.allowed_propositions.length>0),R=At(m,g,E),G=R.min,W=kn(m)&&y?Math.min(R.max,f.length):R.max,I=Object.keys(h).length,U=G>0&&I<G,$=!H&&G>0&&W>G&&I>=G&&I<W,K=H?[...m.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(g??0)):[],Z=H&&K.length>0&&!U,q=$||Z,V=W-I;Y.textAlt??Y.text,G>0&&G===W||W||f.length;const X=()=>{P(),e?.()},Q=(H?[...m.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===I&&e<(g??1/0)),J=H&&I<Math.min(...m.allowed_propositions??[1/0]),_=H&&U&&!J,ee=_o(m),te=function(e,t,n,o){const r=e?.description?.trim();if(r)return r;const l=(t??[]).filter(e=>Number.isFinite(e)).sort((e,t)=>e-t);if(0===l.length||n<=0)return null;const s=l[0];if(s>=n)return"Get every pick right to win.";if(!l.every((e,t)=>e===s+t)||l[l.length-1]!==n)return 2===l.length&&0===l[0]&&l[1]===n?`Get all ${n} picks right — or all ${n} wrong — to win.`:`Get exactly ${l.join(" or ")} of your ${n} picks right to win.`;const a=l.map(e=>o?.[e]).filter(e=>Number.isFinite(e));if(a.length===l.length&&a.length>1&&a.every((e,t)=>0===t||e>a[t-1]))return`Get ${s} of your ${n} picks right to start winning — every pick after that grows the prize.`;const i=n-s;return`Get ${s} of your ${n} picks right to win — up to ${1===i?"one miss":`${i} misses`} still pays.`}(E,B,I,A),ne=A[I]||nr(m,I,k),oe=(B??[]).length>1?"Top prize":"That pays",re=null!=Q?ee.belowRequiredHint(Q,g??G):ee.belowRequiredAddOnlyHint(g??G);return(0,s.useEffect)(()=>{!U||H&&!J||X()},[U,H,J]),(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${a}`,style:{fontFamily:u},children:[!r&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(wl,{onBack:e,hideActions:l})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)(Tr,{game:m,propositions:p,selections:h,onToggleSelection:O,onRemoveSelection:()=>{},onSubmit:async()=>{n?(await i.handleSubmit(),t?.()):o?.(bl(i))},onBack:X,loading:N,error:F,expectedCorrect:b,onExpectedCorrectChange:w,betAmount:k,onBetAmountChange:v,theme:d,showCustomAmount:!0,betAmountLocked:er(m),betAmountLockedNote:tr(m),hideActions:!0,winningCounts:B,payouts:A,renderTeamLogo:S,canSubmit:C,authenticated:n,userBalance:z,onRecharge:L,boostBanner:(0,c.jsxs)(c.Fragment,{children:[(te||ne>0)&&(0,c.jsxs)("div",{className:"p-3 rounded-lg border mb-2",style:{backgroundColor:`${Y.primary}08`,borderColor:`${Y.primary}30`},children:[(0,c.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-[0.1em] mb-1",style:{color:Y.textMuted},children:"How you win"}),te&&(0,c.jsx)("p",{className:"text-xs sm:text-sm",style:{color:Y.text},children:te}),ne>0&&(0,c.jsxs)("p",{className:"text-xs sm:text-sm mt-1.5",style:{color:Y.textMuted},children:[oe," ",(0,c.jsx)("span",{className:"font-bold",style:{color:j(d)},children:xt(ne)})]})]}),_&&(0,c.jsxs)("div",{className:"p-3 rounded-lg border flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3",style:{backgroundColor:`${Y.warning}10`,borderColor:`${Y.warning}40`},children:[(0,c.jsxs)("p",{className:"text-xs sm:text-sm",style:{color:Y.text},children:["You have ",(0,c.jsxs)("span",{style:{fontWeight:700},children:[I," pick",1!==I?"s":""]}),"."," ",re]}),(0,c.jsxs)("div",{className:"flex gap-2 flex-shrink-0",children:[(0,c.jsx)("button",{type:"button",onClick:X,className:"px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:Y.buttonSecondaryText,backgroundColor:Y.buttonSecondary,cursor:"pointer"},children:"Add a pick"}),null!=Q&&(0,c.jsx)("button",{type:"button",onClick:()=>D(Q),className:"px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:Y.buttonPrimaryText,backgroundColor:Y.buttonPrimary,cursor:"pointer"},children:ee.switchTierLabel(Q)})]})]}),q&&(0,c.jsx)("div",{className:"p-3 rounded-lg border",style:{backgroundColor:`${Y.primary}08`,borderColor:`${Y.primary}30`},children:Z?(()=>{const e=g??I,t=M[e],n=k>0?k:20,o=null!=t&&t>0?t*(n/20):null;return(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{className:"text-sm font-semibold mb-1",style:{color:Y.primary},children:ee.overloadTitle}),null!=o&&(0,c.jsxs)("p",{className:"text-xs mb-2",style:{color:Y.textMuted},children:["Currently winning up to"," ",(0,c.jsx)("span",{style:{color:Y.heading??Y.text,fontWeight:700},children:xt(o)})," ","with ",e," picks"]}),(0,c.jsx)(yl,{tiers:K.map(e=>({count:e,payout20:M[e]??0})),selectedCount:void 0,onSelect:e=>{D(e),X()},colors:Y,bodyFont:i.bodyFont,extraBetAmount:20!==n?n:void 0,columnLabel:ee.tableColumnLabel,buttonLabel:ee.tierButtonLabel})]})})():(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,c.jsxs)("p",{className:"text-xs",style:{color:Y.textMuted},children:[1===V?"Add ":"Add up to ",(0,c.jsxs)("span",{style:{color:Y.primary,fontWeight:700},children:[V," more pick",1!==V?"s":""]})]}),(0,c.jsx)("button",{type:"button",onClick:X,className:"flex-shrink-0 px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:Y.buttonPrimaryText,backgroundColor:Y.buttonPrimary,cursor:"pointer"},children:"Add picks"})]})})]})})}),l&&F&&(0,c.jsx)("div",{className:"mt-3 flex justify-end",children:(0,c.jsx)("span",{className:"text-xs",style:{color:Y.error},children:F})})]})},exports.ConfirmPageActions=function({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,className:r=""}){const l=lr(),{theme:s,selectedGame:a,expectedCorrect:i,betAmount:d,submitting:u,submitError:m,canSubmit:p,payouts:h,selectedPropositionIds:f,screenSize:x}=l,g=s.colors;if(!a)return null;const y=h[i]??0,b=Mt(a),w=i===f.length,k=b?.enabled&&w,v=e&&"mobile"!==x;return(0,c.jsxs)("div",{className:`flex items-center justify-between pt-4 ${r}`,children:[v&&(0,c.jsx)(Oe,{theme:s,variant:"secondary",onPress:e,children:"Back"}),(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[m&&(0,c.jsx)("span",{className:"text-xs",style:{color:g.error},children:m}),(y>0||k)&&(0,c.jsxs)("div",{className:"text-right leading-tight hidden sm:block",children:[(0,c.jsx)("span",{className:"text-[10px] uppercase tracking-wide block",style:{color:g.textMuted},children:"Potential winnings"}),(0,c.jsxs)("span",{className:"text-sm font-bold",style:{color:g.heading??g.text},children:[xt(y),k&&(0,c.jsx)("span",{style:{color:g.warning},children:" + Jackpot"})]})]}),(0,c.jsx)(Oe,{theme:s,variant:"primary",disabled:!p,onPress:async()=>{n?(await l.handleSubmit(),t?.()):o?.(bl(l))},children:n?u?"Placing…":`Place Entry (${xt(d)})`:"Log in to place entry"})]})]})},exports.ConfirmPageTitle=wl,exports.DOUBLE_SHOT_MIN_LEGS=6,exports.EXTRA_SHOT_MIN_LEGS=4,exports.EntriesPage=function({className:e="",onSelectEntry:t,onBack:n,hideTitle:o,hideActions:r}){const{theme:l,bodyFont:s,apiUrl:a,apiKey:i,fetchImpl:d,getAuthHeaders:u,userId:m,demoEntries:p,demoGames:h,demoPropositions:f,renderTeamLogo:x,filterSport:g}=lr();return(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${e}`,style:{fontFamily:s},children:[!o&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(vl,{onBack:n,hideActions:r})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)(jr,{apiUrl:a,apiKey:i,fetchImpl:d,getAuthHeaders:u,userId:m,demoEntries:p,demoGames:h,demoPropositions:f,onSelectEntry:t,theme:l,renderTeamLogo:x,filterSport:g})})]})},exports.EntriesPageTitle=vl,exports.EntrySubmission=Tr,exports.EventFilterBanner=Hr,exports.EventPickerPage=qr,exports.EventSwipeModal=br,exports.FilterChipCarousel=Je,exports.FilterChipRow=_e,exports.GAME_TIER_LEVEL=zn,exports.GAME_TIER_TABS=Ln,exports.GOLDEN_POINT_FACTOR=2,exports.GameEntries=jr,exports.GameLogo=Jr,exports.GamePage=function({onSelectGame:e,onGameSetup:t,onRuleSetup:n,onGameSetBet:o,onPickYourDividend:r,onLadder:l,onMirror:a,onSafetyNet:i,onQuickPick:d,onCancel:u,hideTitle:m,hideActions:p,showPerfectPickSetup:h=!1,showTierFilter:f=!1,className:x=""}){const g=lr(),{theme:y,games:b,loading:w,error:k,selectedGame:v,selectedPropositionCount:N,handlePropositionCountChange:F,maxPayouts:C}=g;y.colors;const B=s.default.useRef(v);return B.current=v,(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${x}`,style:{fontFamily:g.bodyFont},children:[!m&&(0,c.jsx)("div",{className:"mb-4 sm:mb-6",children:(0,c.jsx)(Ir,{onBack:u,hideActions:p})}),(0,c.jsx)(Hr,{}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)(po,{games:b,selectedGame:v,onSelectGame:e=>{B.current=e,g.selectGame(e)},loading:w,error:k,theme:y,showTierFilter:f,selectedPropositionCount:N,onPropositionCountChange:F,onPropositionCountSelected:()=>{const s=B.current;if("rule_setup"===Xo(s)&&Jo(s)&&!h)return g.goToSportSelection(),void e?.();const c=Xo(s);if("quick_pick"===c||"selections"===c)return g.goToSportSelection(),void e?.();t?t(c):({game_set:o,pick_your_dividend:r,ladder:l,mirror:a,safety_net:i,rule_setup:n}[c]??n)?.()},onQuickPickGame:(e,t)=>{g.quickPickGame(e,t),d?.()},maxPayouts:C})})]})},exports.GamePageActions=function({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=lr(),r=n.colors;return e&&"mobile"!==o?(0,c.jsx)("div",{className:`flex items-center pt-4 ${t}`,children:(0,c.jsx)("button",{type:"button",onClick:e,className:"px-5 py-2.5 rounded-lg text-sm font-medium transition-colors",style:{color:r.buttonSecondaryText,backgroundColor:r.buttonSecondary,cursor:"pointer"},children:"Cancel"})}):null},exports.GamePageTitle=Ir,exports.GameSelector=po,exports.GameSetBetPage=Tl,exports.GameSetBetPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=lr(),l=fe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"The fastest multi"}),(0,c.jsx)(Wr,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.GameSetupPage=function({onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r="Games",className:l=""}){const{theme:s,selectedGame:a,goToSportSelection:i,bodyFont:d}=lr(),u={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r,className:l};switch(Xo(a)){case"game_set":return(0,c.jsx)(Tl,{...u});case"pick_your_dividend":return(0,c.jsx)(El,{...u});case"ladder":return(0,c.jsx)(jl,{...u});case"mirror":return(0,c.jsx)(Hl,{...u});case"safety_net":return(0,c.jsx)(Rl,{...u});case"six_again":return(0,c.jsx)(Gl,{...u});case"rule_setup":return"exact"===Jn(a)?.kind?(0,c.jsx)(Wl,{...u}):(0,c.jsx)(Dl,{onBack:n,hideTitle:o,backLabel:r,className:l,onContinue:()=>{i(),e?.()}});default:return(0,c.jsx)("div",{className:l,style:{color:s.colors.textMuted,fontFamily:d},children:"No setup required — this game goes straight to picks."})}},exports.HowToPlayButton=Ue,exports.HowToPlayModal=Ie,exports.HowToPlayPanel=We,exports.LADDER_FAMILY=Oo,exports.LADDER_REFERENCE_BET=50,exports.LADDER_STAKES=Po,exports.LadderPage=jl,exports.LadderPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=lr(),l=fe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"Every step pays"}),(0,c.jsx)(Wr,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.LockIcon=Ve,exports.MIRROR_STANDARD_MARGIN=.21875,exports.MarkdownContent=A,exports.MirrorPage=Hl,exports.MirrorPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=lr(),l=fe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"All right, or all wrong"}),(0,c.jsx)(Wr,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.NO_BOOSTS=$o,exports.PYD_LEG_RUNGS=to,exports.PYD_RETAIL_DIVIDENDS=eo,exports.PayoutCircles=function({game:e,totalSelections:t,expectedCorrect:n,className:o="",onExpectedCorrectChange:r,theme:l=J,colorWinning:s,colorNone:a,winningCounts:i,payouts:d}){const u=l.colors,m=s??u.payoutWinning,p=a??u.payoutNone,h=Mt(e);return(0,c.jsxs)("div",{className:`space-y-4 ${o}`,children:[(0,c.jsx)("h4",{className:"text-sm font-semibold text-center",style:{color:u.textMuted},children:"Payout Visualization"}),h.enabled&&(0,c.jsxs)("div",{className:"flex items-center justify-center gap-2 py-2.5 px-4 rounded-lg text-sm font-semibold",style:{background:`linear-gradient(135deg, ${u.warning}18, ${u.warning}08)`,color:u.warning,border:`1px solid ${u.warning}30`},children:[(0,c.jsx)("svg",{className:"w-4 h-4 flex-shrink-0",viewBox:"0 0 24 24",fill:"currentColor",children:(0,c.jsx)("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.27 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z"})}),(0,c.jsx)("span",{children:h.progressive?h.amount>0?`Progressive Jackpot: ${xt(h.amount)}${h.limit>0?` (up to ${xt(h.limit)})`:""} for a perfect pick!`:h.limit>0?`Progressive Jackpot — up to ${xt(h.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${xt(h.amount)} for a perfect pick!`})]}),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5 sm:gap-2 justify-center",children:Array.from({length:t+1},(e,o)=>{const l=i.includes(o),s=d[o]??0,a=s>0,f=o===t,x=h.enabled&&f,g=x?u.warning:l?m:p,y=o===n;return(0,c.jsxs)("button",{type:"button",onClick:()=>r?.(o),className:`relative flex flex-col items-center justify-center w-10 h-10 sm:w-12 sm:h-12 rounded-full border-2 font-semibold transition-all text-xs sm:text-sm ${x?"shadow-lg scale-110 ring-2 ring-offset-1":l?"shadow-lg scale-110":""} ${r?"cursor-pointer hover:scale-[1.12] hover:shadow-xl":""}`,style:{backgroundColor:g,borderColor:x?u.warning:l?g:void 0,color:l||x?"#ffffff":u.textMuted,zIndex:y?10:x?6:l?5:1,...x?{"--tw-ring-color":`${u.warning}80`}:{},...y?{outline:`3px solid ${u.primary}`,outlineOffset:"3px"}:{}},title:x?h.progressive?`${o} correct wins PROGRESSIVE JACKPOT${h.amount>0?` (currently ${xt(h.amount)})`:""}${h.limit>0?` — up to ${xt(h.limit)}`:""} + ${xt(s)}\nClick to select`:`${o} correct wins JACKPOT ${xt(h.amount)} + ${xt(s)}\nClick to select`:l?`${o} correct wins ${xt(s)}\nClick to select`:a?`${o} correct pays ${xt(s)} but does not win\nClick to select`:`${o} correct - no payout\nClick to select`,children:[x&&(0,c.jsx)("div",{className:"absolute -top-1.5 -right-1.5",children:(0,c.jsx)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:u.warning,stroke:u.warning,strokeWidth:"1",children:(0,c.jsx)("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.27 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z"})})}),(0,c.jsx)("div",{className:"text-sm sm:text-base leading-none",children:o}),s>0?(0,c.jsx)("div",{className:"text-[7px] sm:text-[8px] font-normal leading-none",children:xt(s)}):null]},o)})}),(0,c.jsx)("div",{className:"text-xs text-center",style:{color:u.textMuted},children:(0,c.jsxs)("p",{children:["Your expected: ",(0,c.jsxs)("span",{className:"font-semibold",children:[n," correct"]})]})})]})},exports.PerfectPickPage=Wl,exports.PerfectPickPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=lr(),l=fe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"All or nothing"}),(0,c.jsx)(Wr,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.PickYourDividendPage=El,exports.PickYourDividendPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=lr(),l=fe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"The dividend is set"}),(0,c.jsx)(Wr,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.PlaceEntryProvider=function({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,getUserBalance:l,children:a,theme:i,colorScheme:d,demoGames:u,demoPropositions:m,demoEntries:p,demoMaxPayouts:h,gameCategory:f,jurisdiction:x,initialGameId:g,filterSport:y,initialSport:b,initialEventId:w,initialEventLabel:k,sportBaseKey:v,disableQuickPick:N=!1,renderTeamLogo:F,renderPropositionSilk:C,selectionVariant:B,disableEventSwipe:A,enableSportFavourites:M,onEntryPlaced:S,onBeforeSubmit:z,onCancel:L,onShare:P,onRecharge:O,onClearEventFilter:D,screenSize:T="desktop",howToPlayMarkdown:E,sportDisplayNames:j,categoryDisplayNames:Y}){const H=pe(i,d),R=he(H),G=fe(H),W=!(!u||!m),I=(0,s.useMemo)(()=>new yo({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),[U,$]=(0,s.useState)(0),K=(0,s.useRef)(0),[Z,q]=(0,s.useState)(0),[V,X]=(0,s.useState)([]),[Q,J]=(0,s.useState)({}),[_,ee]=(0,s.useState)({}),[te,ne]=(0,s.useState)(void 0),[oe,re]=(0,s.useState)(null),[le,se]=(0,s.useState)(void 0),ae=s.default.useCallback(async()=>{if(l)try{const e=await l();"number"==typeof e&&Number.isFinite(e)&&se(e)}catch(e){}},[l]);(0,s.useEffect)(()=>{l?ae():se(void 0)},[l,ae]);const ie=(0,s.useRef)(null),ce=(0,s.useRef)(null),[de,ue]=(0,s.useState)(null),[me,xe]=(0,s.useState)(b??null),[ge,ye]=(0,s.useState)(w??null);(0,s.useEffect)(()=>{b&&xe(b)},[b]),(0,s.useEffect)(()=>{ye(w??null)},[w]);const[be,we]=(0,s.useState)(w),ke=(0,s.useRef)(!1);(0,s.useEffect)(()=>{if(!w)return we(void 0),void(ke.current=!1);ke.current||we(w)},[w]);const ve=f??de??void 0,Ne=y??b??void 0,Fe=Ot(me??Ne,v),Ce=Ot(Ne,v)??Ne,Be=me??void 0,{games:Ae,howToPlayMarkdown:Me,loading:Se,error:ze}=bo(I,{category:ve,jurisdiction:x,sport:Fe},{skip:W}),{propositions:Le,loading:Pe,error:Oe}=wo(I,{category:ve,sport:Ce,event_id:be},{skip:W}),{sports:De,loading:Te}=ko(I,{skip:W}),{createEntry:Ee,loading:je,error:Ye,clearSubmitError:He}=Fo(I),{preview:Re}=Bo(I),Ge=(0,s.useMemo)(()=>Gt((W?u:Ae)??[],{category:ve,sport:Fe??Be,sportBaseKey:v}),[W,u,Ae,ve,Fe,Be,v]),We=E??Me??null,{maxPayouts:Ie,refetchGame:Ue}=No(I,Ge??[],{skip:W,betAmount:20}),$e=W?h??rr:Ie,Ke=W?m:Le,Ze=y?(Ke??[]).filter(e=>e.sport===y):Ke,qe=(0,s.useMemo)(()=>Ft(Ze??[]),[Ze]),Ve=(0,s.useMemo)(()=>ve||(1===qe.length?qe[0]:void 0),[ve,qe]),Xe=(0,s.useMemo)(()=>{const e=Ze??[];return Ve?jt(e,{category:Ve,sportBaseKey:v}):e},[Ze,Ve,v]),Qe=(0,s.useMemo)(()=>Be?jt(Xe,{sport:Be,sportBaseKey:v}):Xe,[Xe,Be,v]),Je=(0,s.useMemo)(()=>({category:Ve,sport:Be,sportBaseKey:v}),[Ve,Be,v]),_e=(0,s.useMemo)(()=>{const e=(Ge??[]).filter(e=>e.active);if(!Ve&&qe.length>1)return[];const t=Ve?Gt(e,Je):e;return Ve||Be?function(e,t,n){return n?.category||n?.sport?e.filter(e=>Rt(e,t,n)):e}(t,Qe,Je):t},[Ge,Qe,Je,Ve,Be,qe.length]),{step:et,selectedGame:tt,selections:nt,placedEntry:lt,setGameOnly:st,clearSelectedGame:at,goToSportSelection:it,goToConfirmation:ct,goToSuccess:dt,goBack:ut,reset:mt,toggleSelection:pt}=Co(g),ht=s.default.useCallback(()=>{ke.current=!0,we(void 0),mt(),D?.()},[mt,D]),ft=!!be,xt=ft?k:void 0,gt=!W&&(Se||Pe||!!tt&&Te),yt=W?null:tt?ze||Oe:ze,wt=(0,s.useMemo)(()=>tt?It(Qe,tt,v):Qe,[tt,Qe,v]),vt=(0,s.useMemo)(()=>{const e=tt?It(Xe,tt,v):Xe,t=tt?.allowed_sports,n=new Map;for(const o of e){const r=bt(o,e);"Other"!==r&&(t?.length&&!t.includes(r)||n.set(r,(n.get(r)??0)+1))}return Array.from(n.entries()).sort((e,t)=>t[1]-e[1]).map(([e,t])=>({key:e,count:t}))},[tt,Xe,v]),Nt=(0,s.useMemo)(()=>vt.map(e=>e.key),[vt]),Ct=(0,s.useMemo)(()=>tt?wt:Xe,[tt,wt,Xe]),Mt=(0,s.useMemo)(()=>jt(tt?wt:Xe,{category:Ve}),[tt,wt,Xe,Ve]),St=(0,s.useMemo)(()=>{const e=new Set(Nt);return De.filter(t=>e.has(t.key))},[De,Nt]),zt=(0,s.useMemo)(()=>jt(wt,{category:Ve,sport:me}),[wt,Ve,me]),Tt=(0,s.useMemo)(()=>{if(!tt||!kn(tt))return[];const{min:e}=At(tt,te),t=te??e;return Nn(zt).filter(e=>e.propositionCount>=t)},[tt,te,zt]),Et=(0,s.useMemo)(()=>kn(tt)?Mn(zt,ge):zt,[tt,zt,ge]),Ht=function(e,t){const[n,o]=(0,s.useState)([]),r=(0,s.useRef)(new Set),l=(0,s.useMemo)(()=>{const e=new Map;for(const n of t)e.set(n.id,n);for(const t of n)e.set(t.id,t);return e},[t,n]),a=(0,s.useMemo)(()=>e?function(e){const t=new Set;for(const n of e)if(ot(n))for(const e of rt(n))t.add(e);return[...t]}(t).filter(e=>!l.has(e)):[],[e,t,l]);return(0,s.useEffect)(()=>{if(!e||0===a.length)return;const t=a.filter(e=>!r.current.has(e));if(0===t.length)return;for(const e of t)r.current.add(e);let n=!1;return e.getPropositionsByIds(t).then(e=>{!n&&e.length>0&&o(t=>[...t,...e])}).catch(()=>{}),()=>{n=!0}},[e,a]),l}(W?null:I,Et),Wt=Object.keys(nt).map(Number),Ut=Wt.length,$t=(0,s.useMemo)(()=>zt.filter(e=>Wt.includes(e.id)),[zt,Wt]);(0,s.useEffect)(()=>{f||de||1===qe.length&&ue(qe[0])},[f,de,qe]),(0,s.useEffect)(()=>{if(!tt)return;const e=wt,t=new Set(e.map(kt));let n=de;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==de&&ue(n));const o=n?e.filter(e=>kt(e)===n):e,r=new Set(function(e){const t=new Set;for(const n of e){const o=bt(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),l=tt.allowed_sports;xe(e=>e&&r.has(e)&&(!l?.length||l.includes(e))?e:1===l?.length&&r.has(l[0])?l[0]:1===r.size?Array.from(r)[0]:(()=>{const e=new Map;for(const r of o){const t=bt(r,o);"Other"!==t&&(l?.length&&!l.includes(t)||e.set(t,(e.get(t)??0)+1))}let t=null,n=0;for(const[o,r]of e)r>n&&(t=o,n=r);return t})())},[tt?.id,wt,de]),(0,s.useEffect)(()=>{He()},[tt?.id,et,He]),(0,s.useEffect)(()=>{tt&&Ve&&(Yt(tt,Ve)||at())},[tt,Ve,at]),(0,s.useEffect)(()=>{tt&&(Rt(tt,Qe,{category:Ve,sport:me,sportBaseKey:v})||at())},[tt,Ve,me,v,Qe,at]),(0,s.useEffect)(()=>{if(tt){const e=ie.current,t=ce.current!==tt.id;if(ce.current=tt.id,null!=e?.stake&&e.stake>0?q(e.stake):t&&q(0),e){const{count:t}=e;return ie.current=null,ne(t),void $(t)}if(tt.allowed_propositions&&tt.allowed_propositions.length>0){const e=te;null!=e&&tt.allowed_propositions.includes(e)?$(e):(ne(void 0),$(0))}else ne(void 0),$(tt.num_propositions||tt.max_propositions||0)}},[tt]);const Kt=(e,t,n)=>{const o=($e[e]?.top_payouts??[]).find(e=>e.proposition_count===t),r=o&&o.bet_amount&&o.bet_amount>0?o.bet_amount:20,l=o&&r>0?o.net_payout/r*n:0;return l>0?l:nr((Ge??[]).find(t=>t.id===e)??(tt?.id===e?tt:null),t,n)};(0,s.useEffect)(()=>{if("sport"!==et&&"confirm"!==et||!tt||W)return;const e=kn(tt)&&ge?Et.length:Number.MAX_SAFE_INTEGER;let t;if(tt.allowed_propositions&&tt.allowed_propositions.length>0){const n=tt.allowed_propositions?[...tt.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void ee({});const o=te??n[0],r=n.filter(e=>e>o);if(0===r.length)return void ee({});t=[o,...r]}else{const{min:n,max:o}=At(tt),r=Math.min(o,e);if(n<=0||r<=n)return void ee({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=Kt(tt.id,o,20);ee(n)},[et,tt,te,ge,Et.length,W,$e]),(0,s.useEffect)(()=>{if("confirm"!==et||!tt)return;const e=Wt.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=Kt(tt.id,r,Z);J(n),e!==K.current?(K.current=e,$(e)):(U>e||U<=0&&e>0)&&$(e);const o=Z>0?Z:Math.max(tt.min_bet??20,.01);return(async()=>{try{const n=await Re(tt.id,{actual:U,predicted:U,total:e,bet_amount:o,rule_id:oe});if(t)return;if(X(n.winning_counts),Z>0&&n.payouts){const e={};for(const[t,o]of Object.entries(n.payouts)){const n=Number(t);e[n]=o>0?o:Kt(tt.id,n,Z)}J(e)}}catch{t||X([])}})(),()=>{t=!0}},[et,tt,Wt.length,U,Z,Re,$e,oe]);const Zt=(0,s.useMemo)(()=>{return t=oe,(e=tt)&&null!=t?e.permitted_rules?.find(e=>e.id===t)??null:null;var e,t},[tt,oe]),qt=!kn(tt)||Sn($t,ge),Vt=tt?At(tt,void 0,Zt):null,Xt=!(!tt||!qt)&&(tt.allowed_propositions&&tt.allowed_propositions.length>0?null!=te&&Ut===te&&Bt(Ut,Vt?.min,Vt?.max):Bt(Ut,Vt?.min,Vt?.max)),Qt=tt?.min_bet??0,Jt=Math.max(Qt,.01),_t=null==le||Z<=le,en=!je&&Z>=Jt&&Xt&&_t,tn=e=>{ne(e),$(e);for(const t of Object.keys(nt))pt(Number(t),nt[Number(t)])},nn=e=>{ne(e),$(e)},on=e=>{ye(kn(e)?w??null:null),st(e)},rn=e=>{if(e!==ge){for(const e of Object.keys(nt)){const t=Number(e);pt(t,nt[t])}ye(e)}},ln=(e,t,n)=>{ie.current={count:t,stake:n},st(e),Ue(e.id);const o=e.allowed_sports??[];let r=null;me&&o.some(e=>Dt(me,e,v))?r=me:1===o.length&&(r=o[0]),xe(r);for(const i of Object.keys(nt)){const e=Number(i);pt(e,nt[e])}let l=jt(It(Ze??[],e,v),{category:Ve,sport:r,sportBaseKey:v});const s=Math.max(0,Math.min(t,l.length)),a=[...l].sort(()=>Math.random()-.5).slice(0,s);for(const i of a)pt(i.id,Math.random()<.5?"yes":"no");ct()},sn=(0,s.useRef)(!1),an=async()=>{if(tt&&Xt&&!sn.current){if(W){const e={id:Math.floor(1e4*Math.random()),game_id:tt.id,user_id:r,proposition_ids:Wt,selections:nt,pending:!0,expected_correct:U,bet_amount:Z};return S?.(e),dt(e),void ae()}sn.current=!0;try{z&&await z(Z);const e=await Ee({game_id:tt.id,user_id:r,proposition_ids:Wt,selections:nt,stake:Z,rule_id:Zt?.id??null});S?.(e),dt(e),ae()}catch(e){}finally{sn.current=!1}}},cn=(0,s.useCallback)(e=>j?.[e]??St.find(t=>t.key===e)?.label??Lt(e,void 0,v),[j,St,v]),dn=(0,s.useCallback)(e=>Pt(e,Y),[Y]),un=(0,s.useMemo)(()=>({theme:H,bodyFont:R,headingFont:G,games:_e,propositions:Et,compositeComponentById:Ht,propositionsForCategoryPicker:Ct,sportsForSelectedGame:Nt,sportOptions:vt,propositionsForSportPicker:Mt,sportSummaries:St,loading:gt,error:yt,step:et,selectedGame:tt,selections:nt,placedEntry:lt,selectedPropositionIds:Wt,selectedPropositions:$t,selectionValid:Xt,selectedRuleId:oe,setSelectedRuleId:re,selectedRule:Zt,answeredCount:Ut,betAmount:Z,setBetAmount:q,expectedCorrect:U,setExpectedCorrect:$,selectedPropositionCount:te,handlePropositionCountChange:tn,upgradePropositionCount:nn,winningCounts:V,payouts:Q,overloadPayouts:_,submitting:je,submitError:Ye,canSubmit:en,gamePrice:Qt,userBalance:le,hasSufficientBalance:_t,refreshUserBalance:ae,handleSubmit:an,selectGame:on,goToSportSelection:()=>it(),goToConfirmation:ct,goBack:ut,reset:mt,clearSelectedGame:at,toggleSelection:pt,quickPickGame:ln,selectedCategory:de,setSelectedCategory:ue,selectedSport:me,setSelectedSport:xe,selectedEventId:ge,sameGameMultiEvents:Tt,selectSameGameMultiEvent:rn,apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,disableQuickPick:N,renderTeamLogo:F,renderPropositionSilk:C,selectionVariant:B,disableEventSwipe:A,enableSportFavourites:M,filterSport:y,initialSport:b,initialEventId:w,sportBaseKey:v,gameCategory:f,eventFilterActive:ft,eventFilterLabel:xt,clearEventFilter:ht,screenSize:T,displaySportName:cn,displayCategoryName:dn,maxPayouts:$e??{},howToPlayMarkdown:We,onEntryPlaced:S,onCancel:L,onShare:P,onRecharge:O,demoEntries:p,demoGames:u,demoPropositions:m}),[H,R,G,_e,Et,Ht,Ct,Mt,Nt,vt,St,gt,yt,et,tt,nt,lt,Wt,$t,Xt,Ut,Z,U,te,oe,Zt,V,Q,_,je,Ye,en,Qt,e,t,r,le,n,o,N,F,C,B,A,M,y,b,w,v,f,T,ft,xt,ht,de,me,ge,Tt,$e,We,S,L,P,O,D,p,u,m,cn,dn]);return(0,c.jsx)(or.Provider,{value:un,children:a})},exports.QuickPickButton=sr,exports.RuleSetupPage=Dl,exports.RuleSetupPageActions=function({onContinue:e,canContinue:t,continueLabel:n="Continue",className:o=""}){const{theme:r,screenSize:l}=lr(),s=r.colors;return e&&"mobile"!==l?(0,c.jsx)("div",{className:`flex items-center justify-end pt-4 ${o}`,children:(0,c.jsx)("button",{type:"button",onClick:e,disabled:!t,className:"px-5 py-2.5 rounded-lg text-sm font-semibold transition-colors disabled:opacity-45",style:{color:s.buttonPrimaryText,backgroundColor:s.buttonPrimary,cursor:t?"pointer":"not-allowed"},children:n})}):null},exports.RuleSetupPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r,selectedPropositionCount:l}=lr(),s=fe(o),a=o.colors,i=Jn(r,l);return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:a.primary,fontFamily:s},children:i?.title??"About this game"}),(0,c.jsx)(Wr,{onBack:t,hideActions:n,label:r?`${r.game_name}${i?.subtitle?` · ${i.subtitle}`:""}`:void 0})]})},exports.SELECTION_VARIANTS=["split","split-inline","compact"],exports.SIX_AGAIN_LEGS=6,exports.SIX_AGAIN_MARGIN=.21875,exports.SafetyNetPage=Rl,exports.SafetyNetPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=lr(),l=fe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"Choose your safety net"}),(0,c.jsx)(Wr,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.ScrollShelf=Qe,exports.SelectionReview=function({propositions:e,selections:t,onToggleSelection:n,onNext:o,onBack:r,theme:l,colorScheme:a,hideActions:i=!1,renderTeamLogo:d,allowAnswerToggle:u=!0,gameName:m,potentialPayout:p,defaultExpanded:h=!1,addMorePicks:f}){const x=pe(l,a),g=x.colors,y=K(x),b=he(x),w=fe(x),k=j(x),v=g.textAlt??g.text,N=g.matchupHeader??Z(x),F=q(x),[C,B]=(0,s.useState)(null),[A,M]=(0,s.useState)(h),S=e.filter(e=>e.id in t),z=S.length,L=Zt(S);return(0,c.jsxs)("div",{className:"space-y-4 sm:space-y-6 pb-16",style:{fontFamily:b},children:[(0,c.jsxs)("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:y,borderColor:g.border,boxShadow:D(x)},children:[(0,c.jsxs)("button",{type:"button",onClick:()=>M(e=>!e),"aria-expanded":A,"aria-controls":"selection-review-list",className:"w-full flex items-center justify-between gap-3 text-left",style:{background:"none",border:"none",padding:0,cursor:"pointer",color:"inherit"},children:[(0,c.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,c.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{color:g.textMuted,flexShrink:0,transform:A?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.15s ease"},children:(0,c.jsx)("path",{d:"m6 9 6 6 6-6"})}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsxs)("h3",{className:"text-base sm:text-lg font-semibold flex items-center gap-2",style:{color:k,fontFamily:w},children:[(0,c.jsx)("span",{children:"Your Selections"}),(0,c.jsx)("span",{className:"text-xs font-semibold px-1.5 py-0.5 rounded-full",style:{color:g.primaryText,backgroundColor:g.primary},children:z})]}),m&&(0,c.jsx)("p",{className:"text-sm mt-0.5 truncate",style:{color:g.textMuted},children:m})]})]}),null!=p&&p>0&&(0,c.jsxs)("div",{className:"text-right flex-shrink-0",children:[(0,c.jsx)("span",{className:"text-[10px] uppercase tracking-wide block",style:{color:g.textMuted},children:"Potential Payout"}),(0,c.jsx)("span",{className:"text-sm font-bold",style:{color:k},children:xt(p)})]})]}),f&&f.remaining>0&&(0,c.jsxs)("div",{className:"mt-3 sm:mt-4 p-3 rounded-lg border flex items-center justify-between gap-3",style:{backgroundColor:`${g.primary}08`,borderColor:`${g.primary}30`},children:[(0,c.jsxs)("p",{className:"text-xs",style:{color:g.textMuted},children:[1===f.remaining?"Add ":"Add up to ",(0,c.jsxs)("span",{style:{color:g.primary,fontWeight:700},children:[f.remaining," more pick",1!==f.remaining?"s":""]}),null!=f.potentialPayout&&f.potentialPayout>0&&(0,c.jsxs)(c.Fragment,{children:[" ","to win up to"," ",(0,c.jsx)("span",{style:{color:k,fontWeight:700},children:xt(f.potentialPayout)})," ","with ",f.max," picks"]})]}),(0,c.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),f.onAdd()},className:"flex-shrink-0 px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:g.buttonPrimaryText,backgroundColor:g.buttonPrimary,cursor:"pointer"},children:"Add picks"})]}),A&&(0===S.length?(0,c.jsx)("div",{className:"text-center py-8 mt-3 sm:mt-4",style:{color:g.textMuted},children:"No selections made yet"}):(0,c.jsx)("div",{id:"selection-review-list",className:"space-y-2 sm:space-y-3 mt-3 sm:mt-4",children:L.map(e=>(0,c.jsxs)("div",{className:"rounded-lg overflow-hidden border",style:{borderColor:g.border},children:[e.key&&(0,c.jsxs)("div",{className:"px-3 py-2 sm:px-3.5 sm:py-2.5 min-w-0",style:{backgroundColor:N},children:[(0,c.jsx)(Lr,{matchup:e.key,renderTeamLogo:d,altText:v,mutedColor:g.textAltMuted??g.textMuted??v}),e.props[0].commence_time&&(0,c.jsx)("span",{className:"text-[11px] block mt-0.5",style:{color:g.textAltMuted??g.textMuted,opacity:.7},children:gt(e.props[0].commence_time)})]}),e.props.map((o,l)=>{const s=t[o.id],a="yes"===s,i="no"===s;return(0,c.jsxs)("div",{className:"flex items-center justify-between gap-2 px-3 py-2.5 sm:gap-3 sm:px-3.5 sm:py-3",style:{backgroundColor:F,borderTop:e.key||l>0?`1px solid ${g.border}`:void 0},children:[(0,c.jsxs)("div",{className:"min-w-0 flex-1 flex items-start gap-2",children:[zr(o,d,e.key),(0,c.jsx)("p",{className:"text-sm leading-snug break-words",style:{color:v},children:o.description})]}),(0,c.jsxs)("div",{className:"flex items-center gap-1.5 flex-shrink-0 sm:gap-2",children:[u?(0,c.jsx)(Ee,{theme:x,size:"sm",value:a?"yes":i?"no":null,onYes:e=>{e.stopPropagation(),n(o.id,"yes")},onNo:e=>{e.stopPropagation(),n(o.id,"no")}}):s&&(0,c.jsx)(je,{theme:x,value:"yes"===s?"yes":"no",size:"sm"}),(0,c.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),n(o.id,t[o.id]),r()},onMouseEnter:()=>B(o.id),onMouseLeave:()=>B(null),className:"w-6 h-6 flex-shrink-0 flex items-center justify-center rounded-full transition-colors",style:{color:C===o.id?g.error:g.textAltMuted??g.textMuted,cursor:"pointer",backgroundColor:"transparent"},title:"Remove selection","aria-label":"Remove selection",children:(0,c.jsx)("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",strokeWidth:"2.5",viewBox:"0 0 24 24",children:(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})]},o.id)})]},e.key??`solo-${e.props[0].id}`))}))]}),(0,c.jsx)("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:y,borderColor:g.border,boxShadow:D(x)},children:(0,c.jsxs)("div",{className:"flex justify-between text-sm",children:[(0,c.jsx)("span",{style:{color:g.textMuted},children:"Total Selections"}),(0,c.jsx)("span",{className:"font-semibold",style:{color:g.text},children:S.length})]})}),!i&&(0,c.jsxs)("div",{className:"sticky bottom-0 z-10 -mx-4 sm:-mx-6 px-4 sm:px-6 py-3 sm:py-4 border-t flex items-center justify-between gap-3",style:{borderColor:g.border,backgroundColor:g.background},children:[(0,c.jsx)(Oe,{theme:x,variant:"secondary",onPress:r,children:"Back"}),(0,c.jsx)(Oe,{theme:x,variant:"primary",disabled:0===S.length,onPress:o,children:"Place bet"})]})]})},exports.SelectionVariantList=Ar,exports.SelectionsPage=function({onNext:e,onBack:t,hideTitle:n,hideActions:o,defaultView:r="list",view:l,onViewChange:a,hideViewSwitch:i,onSwipeDragStateChange:d,className:u=""}){const m=lr(),{selectedRule:p}=m,{theme:h,bodyFont:f,selectedGame:x,propositions:g,selections:y,toggleSelection:b,loading:w,error:k,renderTeamLogo:v,filterSport:N,initialSport:F,gameCategory:C,selectedPropositionCount:B,handlePropositionCountChange:A,goToConfirmation:M,goBack:S,selectedCategory:z,setSelectedCategory:L,selectedSport:P,selectedEventId:O,propositionsForCategoryPicker:D,answeredCount:T}=m;h.colors;const[E,j]=s.default.useState(r),Y=l??E,H=s.default.useCallback(e=>{void 0===l&&j(e),a?.(e)},[l,a]);s.default.useEffect(()=>{x||(m.goToSportSelection(),t?.())},[x,m,t]);const R=s.default.useMemo(()=>{if(!x)return null;const{min:e,max:t}=At(x,B??void 0,p);if(e>0&&e===t)return e;const n=Xo(x);return null!=B&&B>0&&("game_set"===n||"pick_your_dividend"===n||"safety_net"===n||Qo(x))?B:null},[x,B]),G=s.default.useRef(T);s.default.useEffect(()=>{const t=G.current;G.current=T,null!=R&&t<R&&T===R&&(M(),e?.())},[T,R]);const W=s.default.useMemo(()=>Ft(D??[]),[D]);if(s.default.useEffect(()=>{x&&1===W.length&&z!==W[0]&&L(W[0])},[x,W,z,L]),!x)return null;const I=W.length>1&&!z,U=!I&&kn(x)&&!O,$=(()=>{if(!kn(x)||!O)return x;const e=Math.min(x.max_propositions??g.length,g.length);return{...x,max_propositions:e,allowed_propositions:x.allowed_propositions?.filter(t=>t<=e)}})(),K=()=>{S(),t?.()};return(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${u}`,style:{fontFamily:f},children:[!n&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(pl,{onBack:o?K:void 0,onNext:o?e:void 0,hideActions:o})}),!kn(x)&&(0,c.jsx)(Hr,{}),(0,c.jsx)("div",{className:"flex-1",children:I?(0,c.jsx)($r,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>L(e)}):U?(0,c.jsx)(qr,{}):"swipe"===Y?(0,c.jsx)(yr,{onBack:K,onNext:e,viewSwitch:i?void 0:(0,c.jsx)(xl,{view:Y,onChange:H}),onDragStateChange:d}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(ml,{onChange:K}),(0,c.jsx)(Dr,{game:$,propositions:g,selections:y,onToggleSelection:b,onNext:()=>{M(),e?.()},onBack:K,loading:w,error:k,theme:h,hideActions:!0,initialSport:N??F,renderTeamLogo:v,disableQuickPick:!0,selectedPropositionCount:B,onPropositionCountChange:A,gameCategory:C,headerExtra:i?void 0:(0,c.jsx)(xl,{view:Y,onChange:H})})]})}),!o&&!I&&!U&&(0,c.jsx)("div",{className:"mt-6",children:(0,c.jsx)(fl,{onNext:e,onBack:t})})]})},exports.SelectionsPageActions=fl,exports.SelectionsPageTitle=pl,exports.SixAgainPage=Gl,exports.SixAgainPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=lr(),l=fe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"Set your play"}),(0,c.jsx)(Wr,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.SportPickerPage=function({onSelectSport:e,onCancel:t,hideTitle:n,hideActions:o,renderSportLogo:r,renderSportTagline:l,backLabel:a,comingSoonSports:i,className:d=""}){const{theme:u,propositionsForSportPicker:m,sportSummaries:p,loading:h,setSelectedSport:f,clearSelectedGame:x,selectedCategory:g,sportBaseKey:y,displaySportName:b}=lr(),w=u.colors,k=K(u),v=he(u),N=fe(u),F=j(u),C=yt(m),B=Object.keys(C),[A,S]=s.default.useState(!1),z=s.default.useRef(null),L=s.default.useCallback(e=>{if(z.current?.disconnect(),z.current=null,!e)return;const t=()=>S(e.clientWidth<440);t(),"undefined"!=typeof ResizeObserver&&(z.current=new ResizeObserver(t),z.current.observe(e))},[]);return h?(0,c.jsx)(yn,{colors:V(u),bodyFont:v,className:d,variant:"sport",categoryCount:B.length>0?B.length:2}):(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${d}`,style:{fontFamily:v},children:[!n&&(0,c.jsx)("div",{className:"mb-2",children:(0,c.jsx)(Nl,{onBack:t,hideActions:o,backLabel:a})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsxs)("div",{ref:L,className:"grid gap-3 "+(A?"grid-cols-1":"grid-cols-2"),children:[B.map(t=>{const n=p.find(e=>e.key===t),o=n?.active_props??C[t].length,s=l?.(t,o)??(n?`${a=n.games_today} game${1===a?"":"s"} today · ${i=n.active_props} pick${1===i?"":"s"} available`:function(e,t){return 0===e?"racing"===t?"No races today":"casino"===t?"No games today":"No picks available":"racing"===t?`${e} race${1===e?"":"s"} today`:"casino"===t?`${e} game${1===e?"":"s"} available`:`${e} pick${1===e?"":"s"} available`}(o,g));var a,i;const d=b(t),m=n?n.games_today>0:o>0;return(0,c.jsxs)("button",{type:"button",onClick:()=>{f(t),x(),e?.(t)},className:"group flex w-full min-w-0 items-center gap-3 rounded-2xl border px-3 py-3 text-left transition-all hover:-translate-y-0.5 active:translate-y-0 sm:gap-3.5 sm:px-4 sm:py-4",style:{backgroundColor:k,borderColor:w.border,boxShadow:D(u),cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=w.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=w.border},children:[r?(0,c.jsx)("span",{className:"shrink-0",children:r(t)}):(0,c.jsx)(Jr,{gameKey:t,size:48,footer:null,sportBaseKey:y,title:`${d} button`,className:"h-10 w-10 shrink-0 sm:h-12 sm:w-12"}),(0,c.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,c.jsx)("span",{className:"max-w-full truncate text-sm font-extrabold leading-tight tracking-tight sm:text-base",style:{color:F,fontFamily:N},children:d}),(0,c.jsxs)("span",{className:"mt-1 flex max-w-full items-center gap-1.5 text-[0.58rem] font-bold uppercase tracking-[0.12em]",style:{color:w.primary},children:[m&&(0,c.jsx)("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full",style:{backgroundColor:w.success}}),(0,c.jsx)("span",{className:"truncate",children:s})]})]}),(0,c.jsx)(qe,{size:20,color:w.textMuted,className:"shrink-0 transition-transform group-hover:translate-x-0.5"})]},t)}),i?.map(e=>{const{game:t,league:n}=function(e,t){const n=e.match(/^(.*?)\s*\(([^)]+)\)\s*$/);return n?{game:n[1].trim(),league:n[2].trim()}:{game:e,league:t}}(e.label,e.short??dt(e.key,y));return(0,c.jsxs)("div",{className:"flex w-full min-w-0 items-center gap-3 rounded-2xl border px-3 py-3 text-left sm:gap-3.5 sm:px-4 sm:py-4",style:{backgroundColor:M(w.backgroundAlt,.4),borderColor:M(w.border,.7)},children:[(0,c.jsx)("div",{className:"shrink-0",style:{opacity:.6,filter:"grayscale(1)"},children:r?r(e.key):(0,c.jsx)(Jr,{gameKey:e.key,short:e.short,size:48,footer:null,sportBaseKey:y,title:`${e.label} button`,className:"h-10 w-10 shrink-0 sm:h-12 sm:w-12"})}),(0,c.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,c.jsxs)("span",{className:"max-w-full truncate text-sm font-extrabold leading-tight tracking-tight sm:text-base",style:{color:w.textMuted,fontFamily:N},children:[t,n&&n!==t?(0,c.jsxs)("span",{className:"font-bold",children:[" · ",n]}):null]}),(0,c.jsx)("span",{className:"mt-1 max-w-full truncate text-[0.58rem] font-bold uppercase tracking-[0.12em]",style:{color:w.textMuted},children:(o=e.seasonStart,o?`Starts ${o}`:"Coming soon")})]}),(0,c.jsxs)("span",{className:"inline-flex shrink-0 items-center gap-1 rounded-full px-2 py-1 text-[10px] font-semibold uppercase tracking-[0.1em]",style:{backgroundColor:w.backgroundAlt,color:w.textMuted},children:[(0,c.jsx)(Ve,{size:12,color:w.textMuted}),"Soon"]})]},e.key);var o})]})})]})},exports.SportPickerPageActions=function({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=lr(),r=n.colors;return e&&"mobile"!==o?(0,c.jsx)("div",{className:`flex items-center pt-4 ${t}`,children:(0,c.jsx)("button",{type:"button",onClick:e,className:"px-5 py-2.5 rounded-lg text-sm font-medium transition-colors",style:{color:r.buttonSecondaryText,backgroundColor:r.buttonSecondary,cursor:"pointer"},children:"Cancel"})}):null},exports.SportPickerPageTitle=Nl,exports.SportRail=nl,exports.StarIcon=Xe,exports.SuccessPage=function({onPlayAgain:e,onDone:t,onBack:n,onShare:o,hideTitle:r,hideActions:l,className:a=""}){const i=lr(),{theme:d,bodyFont:u,headingFont:m,selectedGame:p,placedEntry:h,betAmount:f,selectedPropositionIds:x,selectedPropositions:g,selections:y,payouts:b,onShare:w}=i,k=d.colors,v=K(d),N=k.textAlt??k.text,F=h?.proposition_ids?h.proposition_ids.length:x.length,C=b[F]??null,B=s.default.useRef(!1);return s.default.useEffect(()=>{h&&p?B.current=!1:(i.goToSportSelection(),B.current||(B.current=!0,e?e():t?.()))},[h,p,i,e,t]),h?(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${a}`,style:{fontFamily:u},children:[!r&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(kl,{onBack:n,hideActions:l})}),(0,c.jsxs)("div",{className:"flex-1 space-y-3 sm:space-y-4",children:[(0,c.jsxs)("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:v,borderColor:k.border,boxShadow:D(d)},children:[(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 mb-3",children:[(()=>{const e=p?p.allowed_propositions&&p.allowed_propositions.length>0&&p.game_name.replace(/\s+\d+\s*$/,"").trim()||p.game_name:"Entry summary";return p?(0,c.jsx)("div",{className:"min-w-0 flex-1",children:(0,c.jsx)(Er,{iconUrl:ve(p),gameName:e,height:18,chipColor:k.primary,textColor:k.text,iconColor:k.primaryText,accentColor:d.brand?.accent})}):(0,c.jsx)("h3",{className:"text-sm sm:text-base font-semibold min-w-0 flex-1 truncate",style:{color:j(d),fontFamily:m},children:e})})(),(0,c.jsxs)("span",{className:"text-xs font-semibold px-2 py-0.5 rounded-full flex-shrink-0",style:{color:k.primary,backgroundColor:`${k.primary}15`},children:[F," pick",1!==F?"s":""]})]}),(0,c.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"text-[10px] uppercase tracking-wide font-semibold",style:{color:k.textMuted},children:"Selections"}),(0,c.jsx)("div",{className:"text-sm font-semibold mt-0.5",style:{color:N},children:F})]}),f>0&&(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"text-[10px] uppercase tracking-wide font-semibold",style:{color:k.textMuted},children:"Wager"}),(0,c.jsx)("div",{className:"text-sm font-semibold mt-0.5",style:{color:N},children:xt(f)})]}),null!=C&&C>0&&(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"text-[10px] uppercase tracking-wide font-semibold",style:{color:k.textMuted},children:"Potential win"}),(0,c.jsx)("div",{className:"text-sm font-bold mt-0.5",style:{color:k.heading??k.text},children:xt(C)})]})]})]}),g.length>0&&(0,c.jsxs)("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:v,borderColor:k.border,boxShadow:D(d)},children:[(0,c.jsx)("h4",{className:"text-sm sm:text-base font-semibold mb-2",style:{color:j(d),fontFamily:m},children:"Your picks"}),(0,c.jsx)("div",{className:"space-y-1.5",children:g.map((e,t)=>{const n=y?.[e.id],o="yes"===n;return(0,c.jsxs)("div",{className:"flex items-center gap-2 py-2 px-3 rounded",style:{backgroundColor:k.backgroundAlt},children:[(0,c.jsx)("span",{className:"flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-[10px] font-bold",style:{backgroundColor:k.primary,color:k.primaryText},children:t+1}),(0,c.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,c.jsxs)("p",{className:"text-xs sm:text-sm font-medium truncate",style:{color:N},children:[!vt(e)&&(0,c.jsxs)(c.Fragment,{children:[e.home_team," ",(0,c.jsx)("span",{style:{color:k.textMuted},children:"vs"})," "]}),e.away_team]}),(0,c.jsx)("p",{className:"text-[11px] truncate",style:{color:k.textMuted},children:e.description})]}),null!=n&&(0,c.jsx)(je,{theme:d,value:o?"yes":"no",size:"sm",style:{flexShrink:0}})]},e.id)})})]})]})]}):null},exports.SuccessPageActions=function({onPlayAgain:e,onDone:t,onShare:n,className:o=""}){const{theme:r,reset:l,placedEntry:s,selectedGame:a,selectedPropositions:i,selections:d,betAmount:u}=lr();return r.colors,(0,c.jsxs)("div",{className:`flex items-center justify-between pt-4 ${o}`,children:[(0,c.jsx)(Oe,{theme:r,variant:"secondary",onPress:()=>{l(),e?.()},children:"Place Another"}),t&&(0,c.jsx)(Oe,{theme:r,variant:"primary",onPress:t,children:"Done"})]})},exports.SuccessPageTitle=kl,exports.SwipeCard=xr,exports.SwipeCardFace=gr,exports.SwipeDeck=yr,exports.VISIBLE_DEPTH=3,exports.YesNoCategoryLabel=$e,exports.applyTheme=xe,exports.availableGameTierTabs=Dn,exports.contrastTextColour=function(e,t="#ffffff",n="#1a1a1a"){if(!e)return n;const o=function(e){const t=e.trim().toLowerCase(),n=t.match(/^#([0-9a-f]{3,8})$/);if(n){let e=n[1];return 3!==e.length&&4!==e.length||(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}const o=t.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);return o?[Number(o[1]),Number(o[2]),Number(o[3])]:null}(e);if(!o)return n;const[r,l,s]=o.map(e=>{const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)});return.2126*r+.7152*l+.0722*s>.4?n:t},exports.darkTheme=ee,exports.defaultGameTierId=Tn,exports.defaultTheme=J,exports.defaultThemeSet=se,exports.filterGamesByTierLevel=On,exports.filterPropositionsToEvent=Mn,exports.formatCurrency=xt,exports.formatDate=gt,exports.formatSameGameMultiEventLabel=bn,exports.fullStackPrize=jo,exports.gameNeedsRuleSetup=_n,exports.gameSetPrize=zo,exports.getConfirmBoostCopy=_o,exports.getGameFlow=Xo,exports.getGameSetBetConfig=Lo,exports.getJackpotInfo=Mt,exports.getLadderConfig=Yo,exports.getMirrorConfig=Io,exports.getPickYourDividendConfig=so,exports.getPropositionEventId=vn,exports.getRuleSetupConfig=Jn,exports.getSafetyNetConfig=qn,exports.getSafetyNetPricing=Hn,exports.getSixAgainConfig=Vo,exports.getSportDisplayName=zt,exports.getTheme=de,exports.getThemeSet=function(e){return{default:se,green:ae,gold:ie,yesno:ce}[e]||se},exports.goldLightTheme=oe,exports.goldTheme=te,exports.goldThemeSet=ie,exports.greenLightTheme=ne,exports.greenTheme=_,exports.greenThemeSet=ae,exports.groupPropositionsBySport=yt,exports.groupSameGameMultiEvents=Nn,exports.groupSelectionDays=Cr,exports.isFixedCardExactGame=Qo,exports.isGameSetBetGame=So,exports.isLadderGame=Do,exports.isMirrorGame=Go,exports.isOpenExactMultiGame=Jo,exports.isPickYourDividendGame=no,exports.isSafetyNetGame=Yn,exports.isSameGameMultiGame=kn,exports.isSelectableSameGameMultiProposition=An,exports.isSixAgainGame=Uo,exports.isThemeSet=Q,exports.isValidSelectionCount=Bt,exports.ladderCollectAt=function(e,t,n){return To(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)},exports.ladderTiers=Eo,exports.mirrorPrize=Wo,exports.propositionsBelongToEvent=Sn,exports.pydLadder=lo,exports.pydRung=ro,exports.resolveCategoryDisplayName=Pt,exports.resolveGameTierLevel=Pn,exports.resolvePrice=function(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0},exports.resolveSportDisplayName=Lt,exports.resolveTheme=X,exports.roundDividendAmount=Rn,exports.safetyNetCollect=In,exports.safetyNetTicket=Wn,exports.sixAgainRuleId=Zo,exports.sixAgainStakeMultiples=function(e,t){const n=Ko(1,e,t);return{perfect:n.perfect/n.stake,challenge:n.challenge/n.stake}},exports.sixAgainTicket=Ko,exports.themeAccent=W,exports.themeBodyFont=he,exports.themeHeading=j,exports.themeHeadingFont=fe,exports.themeLabel=Y,exports.themeSets=me,exports.themeTextAlt=U,exports.themeTextAltMuted=$,exports.themeValue=H,exports.themes=ue,exports.useBladeTheme=function(e="default"){const t=de(e);return(0,s.useEffect)(()=>{xe(t)},[t]),t},exports.useCalculatePayout=function(e){const[t,n]=(0,s.useState)(!1),[o,r]=(0,s.useState)(null),[l,a]=(0,s.useState)(null);return{calculate:(0,s.useCallback)(async(t,o)=>{try{n(!0),r(null);const l=await e.calculatePayout(t,o);return a(l),l}catch(l){const e=l instanceof Error?l.message:"Failed to calculate payout";throw r(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:o,result:l}},exports.useCreateGameEntry=Fo,exports.useEntryPreview=Bo,exports.useEvaluateRule=function(e){const[t,n]=(0,s.useState)(!1),[o,r]=(0,s.useState)(null),[l,a]=(0,s.useState)(null);return{evaluate:(0,s.useCallback)(async(t,o)=>{try{n(!0),r(null);const l=await e.evaluateRule(t,o);return a(l),l}catch(l){const e=l instanceof Error?l.message:"Failed to evaluate rule";throw r(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:o,result:l}},exports.useGameEntries=vo,exports.useGameMaxPayouts=No,exports.useGames=bo,exports.usePlaceEntry=lr,exports.usePlaceEntryFlow=Co,exports.usePropositions=wo,exports.useResolvedTheme=pe,exports.useSports=ko,exports.useSwipeDeck=ir;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,r=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;let s=require("react");var a,i;i=null!=(a=s)?e(r(a)):{},s=((e,r,s,a)=>{if(r&&"object"==typeof r||"function"==typeof r)for(var i,c=o(r),d=0,u=c.length;d<u;d++)i=c[d],l.call(e,i)||void 0===i||t(e,i,{get:(e=>r[e]).bind(null,i),enumerable:!(a=n(r,i))||a.enumerable});return e})(t(i,"default",{value:a,enumerable:!0}),a);let c=require("react/jsx-runtime"),d=require("react-dom");var u="#C9CDD2";function m(e){const t=e.trim();if(!t)return null;const n=t.split(/\t+|\s{2,}/).map(e=>e.trim()).filter(Boolean);if(n.length<3)return null;const o=n[n.length-1];return"YES"!==n[n.length-2].toUpperCase()||"NO"!==o.toUpperCase()?null:{question:n.slice(0,-2).join(" ")}}function p(e){return`<table class="props">\n${e.map(e=>{return`<tr><td class="q">${t=e.question,t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}</td><td class="yes">YES</td><td class="no">NO</td></tr>`;var t}).join("\n")}\n</table>`}var h='\n :root {\n --blue: #1F4E79;\n --ink: #1A1A1A;\n --grey: #5A5A5A;\n --green: #166534;\n --red: #991B1B;\n --fill-q: #F9FAFB;\n --fill-yes: #DCFCE7;\n --fill-no: #FEE2E2;\n --rule: #D0D7DE;\n }\n * { box-sizing: border-box; }\n html, body {\n margin: 0;\n padding: 0;\n background: #FFFFFF;\n color: var(--ink);\n font-family: "Aptos", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;\n font-size: 16px;\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n }\n .page {\n max-width: 720px;\n margin: 0 auto;\n padding: 32px 24px 56px;\n }\n p { margin: 0 0 14px; }\n\n .masthead { text-align: center; margin-bottom: 8px; }\n .kicker {\n color: var(--blue);\n font-weight: 700;\n letter-spacing: 0.16em;\n font-size: 15px;\n margin-bottom: 6px;\n }\n .logo {\n display: block;\n width: 280px;\n max-width: 72%;\n height: auto;\n margin: 0 auto 12px;\n }\n .headline {\n color: var(--ink);\n font-weight: 700;\n font-size: 34px;\n line-height: 1.15;\n margin: 0 0 4px;\n }\n .headline.lg { font-size: 44px; }\n .subhead {\n color: var(--grey);\n font-weight: 700;\n letter-spacing: 0.12em;\n font-size: 15px;\n margin-top: 6px;\n }\n .lede {\n color: var(--blue);\n font-style: italic;\n font-size: 20px;\n text-align: center;\n margin: 18px 0 22px;\n }\n .rule {\n border: 0;\n border-bottom: 2.5px solid var(--blue);\n margin: 14px 0 22px;\n }\n\n h2.cap {\n color: var(--blue);\n font-weight: 700;\n letter-spacing: 0.06em;\n font-size: 16px;\n text-transform: uppercase;\n margin: 30px 0 12px;\n }\n h3.sub {\n color: var(--ink);\n font-weight: 700;\n font-size: 18px;\n margin: 26px 0 10px;\n }\n\n .step {\n font-weight: 700;\n font-size: 18px;\n margin: 22px 0 8px;\n }\n .step .num { color: var(--blue); }\n .step .label { color: var(--ink); }\n\n .props {\n width: 100%;\n border-collapse: collapse;\n margin: 8px 0 18px;\n }\n .props td {\n border: 1px solid #C9CDD2;\n padding: 11px 14px;\n font-size: 15px;\n }\n .props .q { background: var(--fill-q); width: 64%; }\n .props .yes {\n background: var(--fill-yes);\n color: var(--green);\n font-weight: 700;\n text-align: center;\n letter-spacing: 0.04em;\n }\n .props .no {\n background: var(--fill-no);\n color: var(--red);\n font-weight: 700;\n text-align: center;\n letter-spacing: 0.04em;\n }\n\n .divider {\n border: 0;\n border-top: 1px solid var(--rule);\n margin: 48px 0;\n }\n\n .footnote {\n color: var(--grey);\n font-style: italic;\n font-size: 13px;\n border-top: 1px solid var(--rule);\n padding-top: 14px;\n margin-top: 30px;\n }\n\n @media (max-width: 480px) {\n .page { padding: 24px 18px 44px; }\n .headline { font-size: 28px; }\n .headline.lg { font-size: 34px; }\n .lede { font-size: 18px; }\n }\n'.trim();function f(e){let t=e.trim();for(;;){const e=t.match(/^<!--[\s\S]*?-->\s*/);if(!e)break;t=t.slice(e[0].length).trimStart()}return t}var x=/^<(main|section|article|div|style|table|h[1-6]|p|ul|ol|hr)\b/i,g=/<(section|article|main|div\s+class=["']masthead|h[12]\s+class=["'](?:cap|headline)|h3\s+class=["']sub|table\s+class=["']props|hr\s+class=["']divider)\b/i;function y(e){const t=e.trim();if(!t)return!1;if(b(t))return!0;const n=f(t);return!!x.test(n)||g.test(t)}function b(e){return/^<!DOCTYPE\s+html/i.test(e)||/^<html[\s>]/i.test(e)}function w(e){const t=e.trim();if(!t)return"";if(b(t))return t;const n=function(e){return/class=["']logo["']/i.test(e)?e:/<div class=["']masthead["']>/i.test(e)?e.replace(/(<div class=["']masthead["']>)/i,'$1\n <img class="logo" src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%202400%20500%22%20width%3D%222400%22%20height%3D%22500%22%3E%0A%20%20%3Ctitle%3EYESNO%20Multi%20Logo%20%E2%80%94%20Horizontal%20Master%3C%2Ftitle%3E%0A%20%20%3Cdesc%3EYESNO%20Multi%20master%20logo.%20Horizontal%20pipe%20lockup%3A%20YESNO%20wordmark%2C%20stacked%20tile%20icon%2C%20pipe%20divider%2C%20Multi%20extension%2C%20TM.%3C%2Fdesc%3E%0A%0A%20%20%3C!--%20YESNO%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAA68AAADMCAYAAACcEJWAAABCUUlEQVR4nO3dd7xcRfnH8U9ooU%2BQDiIdpHcRRbEgII69IQ5SRRCQgPSiCNKlinQBZUQRUJRBwYIiSBWUDqIUKQJCyFBMQkjy%2B2NOfoaQ3Oy9d3efc3a%2F79drXze5udn5brm7%2B5wz88wIREREpOOcDwsDSwALAQ4YVX1dAJhzmstcwAhgYnV5rfo6DngRGDvN1%2BeA53KKU7p2Q0REeojzYQFgJcrr82LVZfFp%2FrwwMDcwcpqvUy9zUV6fJ0xzGT%2FNn8cAz1K9Vk%2Fz52eBf%2BYUX%2BzGbewlI6wDiIiI9ALnw4LAKtNcVgaWAZYGlqJ86OmE14CngCeBJ4CHgQeAB4GHcorjOzSuiEhjOB%2BWA9YEVqW8Rk%2F9uqRhrP8AD1WXv1df78sp%2FsMwU62peBURERkk58NiwAbTXNYH3mYaasYmA%2F8Ebgduqy5%2FVUErIr3M%2BTAfsCGwCfDO6rK4aajBeR64FbgFuBm4Laf4sm2kelDxKiIiMgvOh6WBzarL%2ByhH65tqIuVD0e%2Bqy605xddtI4mIDJ3zYTZgY8ADWwHrALObhmqvycC9wLVAAv6cU5xkG8lG3xevzocLgR2sc7TohznF7a1D9BLnw8VAsM7Rogtyiju344qcD1of18dyin3%2F2j8r1QehTYCPVpfVbRN11MvAb4ErgJRTfMk4T9cYvRZ%2BNqd4ucG4gs1jrtfcznA%2BOGBLSsH6YWAR20Rd9SL%2FK2R%2FnVMcY5yna%2Fr%2Bl8n5sARljvkC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UREKlVxdj5wvvNhMeAzlGJ2U2Auy2xd9BxwFfAL4Lc5xfHGeUSGLaf4gvNhD%2BAy6ywydFWToZ8DP3c%2BLARsRSlmtwLeYpmty8YCv6HslfvrqqdDXxhhHUBERKTunA%2FzU87EbkVp%2FrKibaK2egG4CbgR%2BBNwW05xsm0kEZHWOR9mBzYBPkJ5nV6L3po5M5nSa%2BBaSsF6Y07xddtINlS8ioiIDJLzYRnKB6Wpl%2FVoxpnZKcAj%2FK9YvRF4IKc4xTSViEgbVQccN6K8Pr8T2JhmTRkfA9wK3ALcDNxadWPueypeRUREhsn5MBJYHVijuqxZfX0bNkf%2FJwGPUo7UT3t5IKf4X4M8IiKmnA8rUF6bV6V0Mp76dXHDWC8AD1WXv1df78sp%2Ft0wU62peBUREekQ58McwNKUIvZtwDLAEpS1WQtN83UBYCQwJ%2BUM7pyUvhQTgfHTXcZVl7HAv2dyebrXm3aIiLSD88FRloIsSTk7uxiloJ3654UpXehHzuAyF%2FA65bV5wnSX8ZTuv89Segk8N82fnwH%2BmVMc043b2Ev%2BD9aR9w7mNio3AAAAAElFTkSuQmCC%22%20x%3D%2240%22%20y%3D%22148%22%20width%3D%22940%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20Stacked%20tile%20icon%2C%20vector%20%E2%80%94%20proportional%20to%20wordmark%20height%20--%3E%0A%20%20%3Cg%20transform%3D%22translate(1040%2C%20130)%22%3E%0A%20%20%20%20%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%2F%3E%0A%20%20%20%20%3Crect%20x%3D%2240%22%20y%3D%2240%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%20opacity%3D%220.55%22%2F%3E%0A%20%20%20%20%3Crect%20x%3D%2280%22%20y%3D%2280%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%20opacity%3D%220.30%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%0A%20%20%3C!--%20Pipe%20divider%20in%20teal-700%20--%3E%0A%20%20%3Crect%20x%3D%221380%22%20y%3D%22150%22%20width%3D%226%22%20height%3D%22200%22%20fill%3D%22%2314687C%22%2F%3E%0A%0A%20%20%3C!--%20Multi%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAlkAAADMCAYAAABAzLaeAAAcwklEQVR4nO3de7hdVXnv8W8uJECCAwJSJYAgpIpaiNVSK4FWactt6FGb4FEHSdVCLJKICSRIn16O55weTkK4i8q1lYGiqNUyQKwWL9QLpVYLKhYUQUAqtzAEAcMl%2FWNObKC57LX3eueYc67f53nWg8Le4%2Feuy977XWONOcYkRERExsj5sN5y%2FJziJMvxRZo0uXQBIiIiIn00tXQBIiIiIiVYz8xqJktERETEwFTDLu6wnOLVRmPLCHE%2BrAGWWYyt9R8iImLFcibrfYZjy4hwPuwAHFO6DhERkUFZNlkHOR9ebTi%2BjIYlwMzSRYiIiAzKek3WycbjS485H7alarJEREQ6x7rJOsL5sK9xhvTX0cBOpYsQEREZjyauLjypgQzpGefDVsDy0nWIiIiMVxNN1pHOh70ayJF%2BeRuwW%2BkiRERExquJJmsKsKKBHOkJ58MkYGXpOkRERCaiqR3fFzkf%2FiqneHdDedJtbwReXLoIEZFh0rmPo6epHd%2BnY7SZpPSSZrFERKTzmjxW5131xpIim%2BR8OBjYv3QdIiIiE9VkkzUT7XkkW6aTAkREpBeaPiB6qfNhRsOZ0hHOh1cCB5euQ0REZBiabrJ2pNpgUmRjNIslIiK90XSTBbDc%2BTCtQK60mPPhRcAbStchIiIyLCWarF2BowrkSrutpMzrUURExESpP2ornQ%2F6gyoAOB92BULpOkRERIapVKMzB5hfKFvaZzmwVekiREREhqnkbJIOjhacD7oYQkREeqlkk%2FVy58OhBfO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6osl9gduKl1LS10LvDyneEXpQkSeVn90%2BIdos9JOU5Nl52xgGI3RLxhuwyYjqD4n7beB82j2CKg2%2BznV4e6%2Fm1O0WEcpMiE5xXU5xeOBNwD3lK1GxkNNlpGc4v1UHxtO1AX1WCITklN8KKe4GPhd4Ael6ynsM8BLcorn6pgcabuc4meBF1P9TdHrtUPUZNlaA0xkfccTwGlDqkUEgJzitcBc4H8zekfxXAf8Xk7xjfW6F5FOyCmuzSkeDfwW1RWw0gFqsgzVH0F8bAJDfFQfY4iFnOIvc4p%2FAbwE%2BAjwZOGSrN0EHJlTfFVOUYuJpbNyit%2FKKR4GHAB8mv7%2F7Haamix7qxjf9O56YPWQaxF5hpziD3OKi4B9gEj%2FfmF%2FCfDAS3OKl5cuRmRYcopfzyn%2BEbAX8NdUeylKy6jJMpZT%2FC5w1Ti%2B9cr6e0XM5RRvySkeRTWzdSHDuWijlAeAD1FdMfjanOKVWnclfZVTvD2n%2BGfAnsBBVFcj%2FrBsVWPyGNXPaq9NKl2AiLSP88EBC4FAtf1D2z0KfB64BEg5xXWWYfXjs%2Bewx80pfmfYY8pocj7MobrIZR7wKmAOzU%2BsrKU6ZP024Jb6dnP9zztG4c2PmiwR2SznwwuA%2BcChVL%2Bwty5b0a%2FcQnWg7ueAL%2BcUHytcj0hrOR%2B2AV5GtTRgj%2Fo2G9gJmAU4YDowDZhKdeHVOqqLY56%2BraPaVujB%2BrZ2g%2F99P3A38FOqxuou%2FUyqyRKRAdS%2FqF9N9c54f%2BCVwC4NRN8H3EB1deB1wDdzij9rIFdEZNzUZInIhDgfnkP17vhFwO7ArlSN107A9vVtW6p3yFsBU6jeFf%2Byvq0DHgLupdpw8R7gP4BbqT5auDmnuLap%2ByMiMiz%2FCXQ4TDPqI2KNAAAAAElFTkSuQmCC%22%20x%3D%221430%22%20y%3D%22148%22%20width%3D%22601%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20TM%20superscript%20at%20top-right%20of%20Multi%20--%3E%0A%20%20%3Ctext%20x%3D%222045%22%20y%3D%22190%22%20font-family%3D%22Manrope%2C%20Poppins%2C%20sans-serif%22%20font-size%3D%2256%22%20font-weight%3D%22600%22%20fill%3D%22%230F4C5C%22%3ETM%3C%2Ftext%3E%0A%3C%2Fsvg%3E%0A" alt="YESNO Multi" />'):e}(function(e){return/<table\s+class=["']props["']/i.test(e)?e:function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=0;for(;o<t.length;){const e=m(t[o]);if(e){const r=[e];let l=o+1;for(;l<t.length;){const e=m(t[l]);if(!e)break;r.push(e),l+=1}n.push(p(r)),o=l;continue}n.push(t[o]),o+=1}return n.join("\n")}(function(e){const t=/<p(?:\s[^>]*)?>([\s\S]*?)<\/p>/gi;let n,o="",r=0;const l=[],s=()=>{0!==l.length&&(o+=p([...l]),l.length=0)};for(;null!==(n=t.exec(e));){o+=e.slice(r,n.index);const a=n[1].replace(/<br\s*\/?>/gi,"\n").trim().split("\n").map(e=>e.trim()).filter(Boolean).map(e=>m(e));a.length>0&&a.every(e=>null!==e)?l.push(...a):(s(),o+=n[0]),r=t.lastIndex}return s(),o+=e.slice(r),o}(e))}(function(e){const t=f(e),n=t.match(/^<main[^>]*>([\s\S]*)<\/main>$/i);return n?n[1].trim():t}(t)));return`<!DOCTYPE html>\n<html lang="en-AU">\n<head>\n<meta charset="UTF-8">\n<meta name="viewport" content="width=device-width, initial-scale=1.0">\n<title>YES NO - How to Play</title>\n<style>${h}</style>\n</head>\n<body>\n<main class="page">\n${n}\n</main>\n</body>\n</html>`}function k({content:e,className:t=""}){const n=w(e);return n?(0,c.jsx)("iframe",{title:"How to play guide",srcDoc:n,className:`w-full border-0 block ${t}`,style:{minHeight:"60vh",height:"72vh",maxHeight:"calc(88vh - 8rem)"},sandbox:"allow-same-origin",loading:"lazy"}):null}var v=/^(#{1,3})\s+(.+)$/,N=/^[-*]\s+(.+)$/,C=/^-{3,}$/;function F({rows:e,className:t=""}){return 0===e.length?null:(0,c.jsx)("table",{className:`w-full border-collapse my-2 ${t}`,style:{fontSize:15},children:(0,c.jsx)("tbody",{children:e.map((e,t)=>(0,c.jsxs)("tr",{children:[(0,c.jsx)("td",{className:"align-middle",style:{width:"64%",backgroundColor:"#F9FAFB",border:`1px solid ${u}`,padding:"11px 14px"},children:e.question}),(0,c.jsx)("td",{className:"align-middle text-center font-bold tracking-wide",style:{backgroundColor:"#DCFCE7",color:"#166534",border:`1px solid ${u}`,padding:"11px 14px"},children:"YES"}),(0,c.jsx)("td",{className:"align-middle text-center font-bold tracking-wide",style:{backgroundColor:"#FEE2E2",color:"#991B1B",border:`1px solid ${u}`,padding:"11px 14px"},children:"NO"})]},t))})})}function B({text:e,colors:t,bodyFont:n}){const o=function(e){const t=[],n=/\*\*(.+?)\*\*/g;let o,r=0;for(;null!==(o=n.exec(e));)o.index>r&&t.push({text:e.slice(r,o.index),bold:!1}),t.push({text:o[1],bold:!0}),r=o.index+o[0].length;return r<e.length&&t.push({text:e.slice(r),bold:!1}),0===t.length&&t.push({text:e,bold:!1}),t}(e);return(0,c.jsx)(c.Fragment,{children:o.map((e,o)=>(0,c.jsx)("span",{style:{fontWeight:e.bold?700:400,color:e.bold?t.text:t.textMuted,fontFamily:n},children:e.text},o))})}function A({content:e,colors:t,bodyFont:n,headingFont:o,className:r=""}){const l=function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=[],r=[];const l=()=>{const e=o.map(e=>e.trim()).filter(Boolean);if(e.length>0){const t=e.map(e=>m(e));if(t.every(e=>null!==e))return n.push({type:"propsTable",rows:t}),void(o=[])}const t=o.join(" ").trim();t&&n.push({type:"paragraph",text:t}),o=[]},s=()=>{r.length>0&&(n.push({type:"list",items:[...r]}),r=[])};for(const a of t){const e=a.trim();if(!e){s(),l();continue}const t=e.match(v);if(t){s(),l(),n.push({type:"heading",level:Math.min(t[1].length,3),text:t[2].trim()});continue}if(C.test(e)){s(),l(),n.push({type:"hr"});continue}const i=e.match(N);i?(l(),r.push(i[1].trim())):(s(),o.push(e))}return s(),l(),n}(e);return(0,c.jsx)("div",{className:`flex flex-col gap-4 ${r}`,style:{fontFamily:n},children:l.map((e,r)=>"heading"===e.type?(0,c.jsx)("div",{style:{fontSize:{1:"1.35rem",2:"1.15rem",3:"1rem"}[e.level],fontWeight:800,letterSpacing:1===e.level?"0.04em":"0.02em",textTransform:1===e.level?"uppercase":"none",color:t.text,fontFamily:o??n,lineHeight:1.25},children:(0,c.jsx)(B,{text:e.text,colors:t,bodyFont:o??n})},r):"paragraph"===e.type?(0,c.jsx)("p",{className:"text-sm leading-relaxed",style:{color:t.textMuted,margin:0,fontFamily:n},children:(0,c.jsx)(B,{text:e.text,colors:t,bodyFont:n})},r):"list"===e.type?(0,c.jsx)("ul",{className:"text-sm leading-relaxed pl-5",style:{color:t.textMuted,margin:0,fontFamily:n},children:e.items.map((e,o)=>(0,c.jsx)("li",{style:{marginBottom:6},children:(0,c.jsx)(B,{text:e,colors:t,bodyFont:n})},o))},r):"propsTable"===e.type?(0,c.jsx)(F,{rows:e.rows},r):(0,c.jsx)("hr",{style:{border:"none",borderTop:`1px solid ${t.border}`,margin:"4px 0"}},r))})}function M(e,t){if(!e)return e;const n=Math.max(0,Math.min(1,t));if("transparent"===e)return e;if(e.startsWith("#")){const t=e.slice(1);let o=0,r=0,l=0;if(3===t.length)o=parseInt(t[0]+t[0],16),r=parseInt(t[1]+t[1],16),l=parseInt(t[2]+t[2],16);else if(6===t.length)o=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),l=parseInt(t.slice(4,6),16);else{if(8!==t.length)return e;o=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),l=parseInt(t.slice(4,6),16)}return`rgba(${o}, ${r}, ${l}, ${n})`}const o=e.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/i);return o?`rgba(${o[1]}, ${o[2]}, ${o[3]}, ${n})`:e}var S={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:48},L={xs:4,sm:8,md:12,lg:16,xl:24,pill:999},z={xs:11,sm:13,md:14,lg:16,xl:18,xxl:22,display:28},P={min:44};function T(e){const t="dark"===e.colorScheme,n=e.colors;return{space:{...S},radius:{...L},fontSize:{...z},touchTarget:{...P},motion:{durationFast:e.motion?.durationFast??160,durationStd:e.motion?.durationStd??220,easing:e.motion?.easing??"cubic-bezier(0.2, 0, 0, 1)"},surface:{background:n.background,surface:n.selectionCard??n.surface??n.backgroundAlt,surfaceElevated:n.surfaceElevated??n.selectionCard??n.surface??n.backgroundAlt,borderSubtle:n.borderSubtle??M(n.border,t?.6:.5)},isDark:t}}function O(e){return"dark"===e.colorScheme?"0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px -16px rgba(0,0,0,0.6)":"0 1px 0 rgba(255,255,255,0.6) inset, 0 6px 20px -14px rgba(15,23,42,0.18)"}function D(e){return"dark"===e.colorScheme?"0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 60px -28px rgba(0,0,0,0.7)":"0 1px 0 rgba(255,255,255,0.7) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}function E(e,t){const n=t?.offset??0,o=e.colors.borderFocus;return[`0 0 0 ${n}px ${e.colors.background}`,`0 0 0 ${n+2}px ${M(o,.9)}`,`0 0 0 ${n+5}px ${M(o,.18)}`].join(", ")}function j(e){return e.colors.heading??e.colors.text}function Y(e){return e.colors.label??e.colors.text}function H(e){return e.colors.value??e.colors.text}function R(e){return e.colors.productYes??"#00C853"}function G(e){return e.colors.productNo??"#E53935"}function W(e){return e.brand?.accent??e.colors.primary}function I(e,t,n){const o=t?.trim().toLowerCase()===e.trim().toLowerCase();return t&&!o?t:n}function U(e){return e.colors.textAlt??e.colors.text}function $(e){return e.colors.textAltMuted??e.colors.textMuted}function K(e){return e.colors.selectionCard??e.colors.surface??e.colors.backgroundAlt}function Z(e){return e.colors.matchupHeader??e.colors.backgroundAlt}function q(e){return e.colors.selectionProp??e.colors.background}function V(e){return{textMuted:e.colors.textMuted,border:e.colors.border,background:e.colors.background,backgroundAlt:e.colors.backgroundAlt,primary:e.colors.primary,selectionCard:K(e)}}function X(e,t="light"){return e?Q(e)?"dark"===t?e.dark:e.light:e:J}function Q(e){return"light"in e&&"dark"in e&&!("colors"in e)}var J={name:"default",colorScheme:"light",colors:{primary:"#3b82f6",primaryHover:"#2563eb",primaryText:"#ffffff",payoutWinning:"#22c55e",payoutNone:"#e5e7eb",success:"#10b981",successBg:"#dcfce7",successText:"#166534",error:"#ef4444",errorBg:"#fee2e2",errorText:"#991b1b",warning:"#f59e0b",warningBg:"#fef3c7",warningText:"#92400e",info:"#3b82f6",infoBg:"#dbeafe",infoText:"#1e3a8a",border:"#d1d5db",borderFocus:"#3b82f6",background:"#ffffff",backgroundAlt:"#f9fafb",selectionCard:"#f9fafb",matchupHeader:"#eff6ff",selectionProp:"#ffffff",text:"#111827",textAlt:"#111827",textAltMuted:"#9ca3af",textMuted:"#6b7280",buttonPrimary:"#3b82f6",buttonPrimaryHover:"#2563eb",buttonPrimaryText:"#ffffff",buttonSecondary:"#e5e7eb",buttonSecondaryHover:"#d1d5db",buttonSecondaryText:"#374151"}},_={name:"green",colorScheme:"dark",fonts:{body:"Inter",heading:"Inter",mono:"JetBrainsMono"},colors:{primary:"#00E676",primaryHover:"#00C853",primaryText:"#0a0a0a",payoutWinning:"#34d399",payoutNone:"#3f3f46",success:"#00E676",successBg:"#0d2818",successText:"#a7f3d0",error:"#ff5252",errorBg:"#2d1215",errorText:"#fca5a5",warning:"#ffab40",warningBg:"#2d1f0a",warningText:"#fde68a",info:"#40c4ff",infoBg:"#0a1e2d",infoText:"#bae6fd",border:"#2a2a2e",borderFocus:"#00E676",background:"#121214",backgroundAlt:"#1a1a1e",selectionCard:"#1e1e22",matchupHeader:"#0f2419",selectionProp:"#161618",text:"#e4e4e7",textAlt:"#e4e4e7",textAltMuted:"#a1a1aa",textMuted:"#71717a",heading:"#ffffff",label:"#a1a1aa",value:"#00E676",buttonPrimary:"#00E676",buttonPrimaryHover:"#00C853",buttonPrimaryText:"#0a0a0a",buttonSecondary:"#27272a",buttonSecondaryHover:"#3f3f46",buttonSecondaryText:"#e4e4e7"},brand:{accent:"#DFFF1A"}},ee={name:"dark",colorScheme:"dark",colors:{primary:"#60a5fa",primaryHover:"#3b82f6",primaryText:"#ffffff",payoutWinning:"#16a34a",payoutNone:"#374151",success:"#34d399",successBg:"#064e3b",successText:"#d1fae5",error:"#f87171",errorBg:"#7f1d1d",errorText:"#fecaca",warning:"#fbbf24",warningBg:"#78350f",warningText:"#fef3c7",info:"#60a5fa",infoBg:"#1e3a8a",infoText:"#dbeafe",border:"#4b5563",borderFocus:"#60a5fa",background:"#1f2937",backgroundAlt:"#111827",selectionCard:"#374151",matchupHeader:"#1e3a5f",selectionProp:"#1f2937",text:"#f9fafb",textAlt:"#f9fafb",textAltMuted:"#6b7280",textMuted:"#9ca3af",buttonPrimary:"#60a5fa",buttonPrimaryHover:"#3b82f6",buttonPrimaryText:"#ffffff",buttonSecondary:"#374151",buttonSecondaryHover:"#4b5563",buttonSecondaryText:"#f9fafb"}},te={name:"gold",colorScheme:"dark",colors:{primary:"#f59e0b",primaryHover:"#d97706",primaryText:"#000000",payoutWinning:"#facc15",payoutNone:"#1f2937",success:"#eab308",successBg:"#713f12",successText:"#fef08a",error:"#dc2626",errorBg:"#7f1d1d",errorText:"#fecaca",warning:"#f97316",warningBg:"#7c2d12",warningText:"#fed7aa",info:"#f59e0b",infoBg:"#78350f",infoText:"#fef3c7",border:"#d97706",borderFocus:"#f59e0b",background:"#18181b",backgroundAlt:"#09090b",selectionCard:"#27272a",matchupHeader:"#292019",selectionProp:"#1c1917",text:"#fafaf9",textAlt:"#fafaf9",textAltMuted:"#78716c",textMuted:"#a8a29e",buttonPrimary:"#f59e0b",buttonPrimaryHover:"#d97706",buttonPrimaryText:"#000000",buttonSecondary:"#27272a",buttonSecondaryHover:"#3f3f46",buttonSecondaryText:"#fafaf9"}},ne={name:"green-light",colorScheme:"light",fonts:{body:"Inter",heading:"Inter",mono:"JetBrainsMono"},colors:{primary:"#16a34a",primaryHover:"#15803d",primaryText:"#ffffff",payoutWinning:"#22c55e",payoutNone:"#e5e7eb",success:"#16a34a",successBg:"#dcfce7",successText:"#166534",error:"#dc2626",errorBg:"#fee2e2",errorText:"#991b1b",warning:"#f59e0b",warningBg:"#fef3c7",warningText:"#92400e",info:"#0ea5e9",infoBg:"#e0f2fe",infoText:"#0c4a6e",border:"#d1d5db",borderFocus:"#16a34a",background:"#ffffff",backgroundAlt:"#f0fdf4",selectionCard:"#f0fdf4",matchupHeader:"#dcfce7",selectionProp:"#ffffff",text:"#111827",textAlt:"#111827",textAltMuted:"#9ca3af",textMuted:"#6b7280",heading:"#111827",label:"#374151",value:"#16a34a",buttonPrimary:"#16a34a",buttonPrimaryHover:"#15803d",buttonPrimaryText:"#ffffff",buttonSecondary:"#e5e7eb",buttonSecondaryHover:"#d1d5db",buttonSecondaryText:"#374151"},brand:{accent:"#f97316"}},oe={name:"gold-light",colorScheme:"light",colors:{primary:"#d97706",primaryHover:"#b45309",primaryText:"#ffffff",payoutWinning:"#eab308",payoutNone:"#e5e7eb",success:"#eab308",successBg:"#fef9c3",successText:"#713f12",error:"#dc2626",errorBg:"#fee2e2",errorText:"#991b1b",warning:"#f97316",warningBg:"#ffedd5",warningText:"#7c2d12",info:"#d97706",infoBg:"#fef3c7",infoText:"#78350f",border:"#d1d5db",borderFocus:"#d97706",background:"#ffffff",backgroundAlt:"#fffbeb",selectionCard:"#fffbeb",matchupHeader:"#fef3c7",selectionProp:"#ffffff",text:"#111827",textAlt:"#111827",textAltMuted:"#9ca3af",textMuted:"#6b7280",buttonPrimary:"#d97706",buttonPrimaryHover:"#b45309",buttonPrimaryText:"#ffffff",buttonSecondary:"#e5e7eb",buttonSecondaryHover:"#d1d5db",buttonSecondaryText:"#374151"}},re={name:"yesno-light",colorScheme:"light",fonts:{body:"Manrope",heading:"Manrope",mono:"JetBrains Mono"},colors:{primary:"#0F4C5C",primaryHover:"#0C3E4B",primaryText:"#FAFAF7",payoutWinning:"#0F4C5C",payoutNone:"#DDD9D2",success:"#15803D",successBg:"#DCFCE7",successText:"#14532D",error:"#DC2626",errorBg:"#FEE2E2",errorText:"#991B1B",productYes:"#00C853",productNo:"#E53935",warning:"#D97706",warningBg:"#FEF3C7",warningText:"#92400E",info:"#14687C",infoBg:"#E0F0F3",infoText:"#0F4C5C",border:"#DDD9D2",borderFocus:"#0F4C5C",background:"#FAFAF7",backgroundAlt:"#F0EDE6",selectionCard:"#FFFFFF",matchupHeader:"#EAF1F2",selectionProp:"#FFFFFF",text:"#123B45",textAlt:"#123B45",textAltMuted:"#8A9AA0",textMuted:"#647C83",heading:"#0F4C5C",label:"#14687C",value:"#0F4C5C",buttonPrimary:"#0F4C5C",buttonPrimaryHover:"#0C3E4B",buttonPrimaryText:"#DFFF1A",buttonSecondary:"#DDD9D2",buttonSecondaryHover:"#CDC8BF",buttonSecondaryText:"#0F4C5C"},brand:{accent:"#DFFF1A",chip:"#0F4C5C",text:"#0F4C5C",icon:"#FAFAF7"}},le={name:"yesno",colorScheme:"dark",fonts:{body:"Manrope",heading:"Manrope",mono:"JetBrains Mono"},colors:{primary:"#4FB3C9",primaryHover:"#6FC4D6",primaryText:"#06303A",payoutWinning:"#DFFF1A",payoutNone:"#1E5E6E",success:"#4ADE80",successBg:"#0E3A2A",successText:"#BBF7D0",error:"#FB7185",errorBg:"#3A1418",errorText:"#FECDD3",productYes:"#00C853",productNo:"#E53935",warning:"#FBBF24",warningBg:"#3A2A0A",warningText:"#FDE68A",info:"#4FB3C9",infoBg:"#0C3B47",infoText:"#CFF0F6",border:"#1E5E6E",borderFocus:"#4FB3C9",background:"#0C3B47",backgroundAlt:"#0F4C5C",selectionCard:"#124E5E",matchupHeader:"#103F4C",selectionProp:"#0C3B47",text:"#EAF3F4",textAlt:"#EAF3F4",textAltMuted:"#6E959E",textMuted:"#90B4BC",heading:"#FAFAF7",label:"#9FD9E6",value:"#DFFF1A",buttonPrimary:"#4FB3C9",buttonPrimaryHover:"#6FC4D6",buttonPrimaryText:"#06303A",buttonSecondary:"#124E5E",buttonSecondaryHover:"#186072",buttonSecondaryText:"#EAF3F4"},brand:{accent:"#DFFF1A",chip:"#0F4C5C",text:"#FAFAF7",icon:"#FAFAF7"}},se={light:J,dark:ee},ae={light:ne,dark:_},ie={light:oe,dark:te},ce={light:re,dark:le};function de(e){return{default:J,green:_,"green-light":ne,dark:ee,gold:te,"gold-light":oe,yesno:le,"yesno-light":re}[e]||J}var ue={default:J,green:_,"green-light":ne,dark:ee,gold:te,"gold-light":oe,yesno:le,"yesno-light":re},me={default:se,green:ae,gold:ie,yesno:ce};function pe(e,t="light"){return X(e,t)}function he(e){return e.fonts?.body??"inherit"}function fe(e){return e.fonts?.heading??e.fonts?.body??"inherit"}function xe(e,t=document.documentElement){const n=e.colors;e.fonts?.body&&(t.style.setProperty("--blade-font-body",e.fonts.body),t.style.fontFamily=e.fonts.body),e.fonts?.heading&&t.style.setProperty("--blade-font-heading",e.fonts.heading),e.fonts?.mono&&t.style.setProperty("--blade-font-mono",e.fonts.mono),t.style.setProperty("--blade-primary",n.primary),t.style.setProperty("--blade-primary-hover",n.primaryHover),t.style.setProperty("--blade-primary-text",n.primaryText),t.style.setProperty("--blade-success",n.success),t.style.setProperty("--blade-success-bg",n.successBg),t.style.setProperty("--blade-success-text",n.successText),t.style.setProperty("--blade-error",n.error),t.style.setProperty("--blade-error-bg",n.errorBg),t.style.setProperty("--blade-error-text",n.errorText),t.style.setProperty("--blade-warning",n.warning),t.style.setProperty("--blade-warning-bg",n.warningBg),t.style.setProperty("--blade-warning-text",n.warningText),t.style.setProperty("--blade-info",n.info),t.style.setProperty("--blade-info-bg",n.infoBg),t.style.setProperty("--blade-info-text",n.infoText),t.style.setProperty("--blade-border",n.border),t.style.setProperty("--blade-border-focus",n.borderFocus),t.style.setProperty("--blade-background",n.background),t.style.setProperty("--blade-background-alt",n.backgroundAlt),t.style.setProperty("--blade-text",n.text),t.style.setProperty("--blade-text-alt",n.textAlt??n.text),t.style.setProperty("--blade-text-alt-muted",n.textAltMuted??n.textMuted),t.style.setProperty("--blade-text-muted",n.textMuted),t.style.setProperty("--blade-heading",n.heading??n.text),t.style.setProperty("--blade-label",n.label??n.text),t.style.setProperty("--blade-value",n.value??n.text),t.style.setProperty("--blade-accent",n.accent??n.primary),t.style.setProperty("--blade-button-primary",n.buttonPrimary),t.style.setProperty("--blade-button-primary-hover",n.buttonPrimaryHover),t.style.setProperty("--blade-button-primary-text",n.buttonPrimaryText),t.style.setProperty("--blade-button-secondary",n.buttonSecondary),t.style.setProperty("--blade-button-secondary-hover",n.buttonSecondaryHover),t.style.setProperty("--blade-button-secondary-text",n.buttonSecondaryText)}var ge="game-icon:",ye={perfect_pick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Perfect Pick.\n Single-glyph identifier ("100%") on a transparent background.\n\n Themable: the digits use currentColor (primary tone) and the\n trailing % uses the icon-accent CSS variable (default #DFFF1A).\n\n Laid out with geometry, not font metrics: two separate single-chunk <text>\n elements at explicit x, each pinned with textLength, and an explicit baseline\n y instead of dominant-baseline. react-native-svg anchors each <tspan> as its\n own chunk and ignores letter-spacing, so the old one-text/two-tspan version\n drifted off centre on native and pushed the % outside the viewBox. Combined\n extent is 8..92, centred on 50, whatever font actually resolves.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <text x="8" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="56"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">100</text>\n <text x="66" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="26"\n lengthAdjust="spacingAndGlyphs"\n fill="var(--icon-accent, #DFFF1A)">%</text>\n</svg>',head_to_head:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Head to Head.\n Two arrowheads clashing across a citron diamond. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Source design lives in an 80×60 box; centre it in 100×100 by\n shifting (10, 20) so the diamond at (40,30) lands at (50,50). --\x3e\n \x3c!-- Themable: arrowheads use currentColor (primary tone), the\n centre diamond uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(10, 20)">\n <path d="M 6 14 L 32 30 L 6 46 L 18 30 Z" fill="currentColor"/>\n <path d="M 74 14 L 48 30 L 74 46 L 62 30 Z" fill="currentColor"/>\n <polygon points="40,20 50,30 40,40 30,30" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',total_points:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Total Points.\n Sigma glyph with italic X superscript. Transparent background;\n rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Sigma + italic X superscript, centred together in the viewBox.\n Sigma 90×98 × 0.55 = 49.5×53.9. Translating to (15, 22) puts the\n sigma centre at (~40, 49) and leaves room for the X glyph at the\n upper right so the combined mark balances around (50, 50). --\x3e\n \x3c!-- Themable: sigma uses currentColor (primary), X superscript\n uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(15, 22) scale(0.55)">\n <path d="M 0,0 L 90,0 L 90,15 L 25,15 L 58,49 L 25,83 L 90,83 L 90,98 L 0,98 L 49,49 Z"\n fill="currentColor"/>\n </g>\n <text x="75" y="30"\n font-family="Manrope, Poppins, sans-serif"\n font-size="22"\n font-style="italic"\n font-weight="400"\n text-anchor="middle"\n dominant-baseline="central"\n fill="var(--icon-accent, #DFFF1A)">X</text>\n</svg>',quickpick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — QuickPick.\n Lightning bolt glyph. Transparent background; rendered onto the\n programmatic Press-to-Play tile.\n\n Themable: bolt fill uses currentColor (primary tone); edge stroke uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(28, 16) scale(0.55)">\n <path d="M 50 8 L 5 80 L 32 80 L 22 132 L 75 50 L 47 50 L 60 8 Z"\n fill="currentColor"\n stroke="var(--icon-accent, #DFFF1A)"\n stroke-width="3.5"\n stroke-linejoin="round"/>\n </g>\n</svg>',safety_net:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Safety Net.\n The brand basketball rim + curved diamond-mesh net catching a citron ball,\n taken from the YESNO Safety Net lockup / app icon. Transparent background;\n rendered on Press-to-Play tiles and brand lockups.\n\n Themable: net uses currentColor (teal on light, white on teal tile);\n ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(-2, -6.2) scale(1.3)">\n <line x1="9" y1="18" x2="71" y2="18" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>\n <path d="M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/>\n <ellipse cx="40" cy="64" rx="18" ry="4.5" fill="none" stroke="currentColor" stroke-width="2.2"/>\n <circle cx="40" cy="50" r="8" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',ladder:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n The sub-brand staircase: four offset rungs climbing to the top, from the\n YESNO Ladder lockup ("Climb the ladder. Stack the prizes."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: alternating rungs use currentColor (primary tone) and the\n icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="4" y="76" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="20" y="54" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="36" y="32" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="52" y="10" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',game_set:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Game Set Bet.\n The sub-brand tennis ball: citron ball with the S-curve seam, from the\n Game Set Bet lockup / app icon ("Game. Set. Bet."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the seam and the ball\'s rim use currentColor (teal on light, paper\n on the teal app-icon tile); the ball uses the icon-accent CSS variable\n (default #DFFF1A). The rim is what keeps the ball readable on themes whose\n chip colour sits near the accent (e.g. citron on the green theme\'s #00E676).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(4, 4) scale(1.15)">\n <circle cx="40" cy="40" r="34" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4.5"/>\n <path d="M40 8 C12 14 11 40 40 40 C69 40 68 66 40 72" fill="none" stroke="currentColor" stroke-width="4.5" stroke-linecap="round"/>\n </g>\n</svg>',pick_your_dividend:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n Splayed ladder rails and rungs with the citron ball resting at the top —\n the stacked-multi that pays every rung your streak reaches. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n\n Themable: rails/rungs use currentColor (primary tone); the ball uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <line x1="36" y1="16" x2="27" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="64" y1="16" x2="73" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="33.8" y1="34" x2="66.2" y2="34" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n <line x1="31.5" y1="52" x2="68.5" y2="52" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.8"/>\n <line x1="29.3" y1="70" x2="70.7" y2="70" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.6"/>\n <circle cx="50" cy="20" r="9" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Mirror.\n Two offset square-stacks reflected across a central seam, from the YESNO\n Mirror Standard mark ("Get them all right, you win. All wrong, you win.").\n Transparent background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left stack --\x3e\n <rect x="6" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="14" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- right stack — the reflection across x=50 --\x3e\n <rect x="66" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="58" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror_double:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Double Mirror.\n The Mirror mark reaching one slot further in: two reflected squares per side\n stepping toward the seam, the deeper pair dimmed because the near-miss tier\n pays less than the clean sweep.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left side — the all-wrong edge, stepping in --\x3e\n <rect x="4" y="26" width="26" height="26" rx="6.5" fill="currentColor"/>\n <rect x="20" y="44" width="26" height="26" rx="6.5" fill="currentColor" opacity="0.55"/>\n \x3c!-- right side — the reflection across x=50 --\x3e\n <rect x="70" y="26" width="26" height="26" rx="6.5" fill="currentColor"/>\n <rect x="54" y="44" width="26" height="26" rx="6.5" fill="currentColor" opacity="0.55"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror_triple:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Triple Mirror.\n The Mirror mark reaching two slots in: three reflected squares per side\n stepping toward the seam, each dimmer than the last because each tier\n further from the edge pays less.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left side — the all-wrong edge, stepping in --\x3e\n <rect x="2" y="22" width="22" height="22" rx="5.5" fill="currentColor"/>\n <rect x="13" y="39" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.7"/>\n <rect x="24" y="56" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.45"/>\n \x3c!-- right side — the reflection across x=50 --\x3e\n <rect x="76" y="22" width="22" height="22" rx="5.5" fill="currentColor"/>\n <rect x="65" y="39" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.7"/>\n <rect x="54" y="56" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.45"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',same_game_multi:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon - Same Game Multi.\n Three proposition legs contained inside one rounded fixture card: many\n picks, one game. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the fixture and leg marks use currentColor (primary tone); the\n locked lead leg uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="14" y="14" width="72" height="72" rx="13" fill="none" stroke="currentColor" stroke-width="6"/>\n <circle cx="31" cy="35" r="6" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="43" y="31" width="31" height="8" rx="4" fill="currentColor"/>\n <circle cx="31" cy="51" r="6" fill="currentColor" opacity="0.8"/>\n <rect x="43" y="47" width="25" height="8" rx="4" fill="currentColor" opacity="0.8"/>\n <circle cx="31" cy="67" r="6" fill="currentColor" opacity="0.6"/>\n <rect x="43" y="63" width="19" height="8" rx="4" fill="currentColor" opacity="0.6"/>\n</svg>',six_again:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — 6 Again.\n Three stacked cards — the restart, the set again — with the citron six on the\n front of the deck. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the stack uses currentColor (primary tone); the front card carries\n the icon-accent CSS variable (default #DFFF1A) with a currentColor rim, and\n the numeral is knocked out in currentColor. Accent-as-card rather than\n accent-as-numeral because the numeral is small: on themes where the accent\n sits near the icon colour (orange on white in green-light) an accent numeral\n washes out, while an accent card stays legible and its rim keeps the card\n readable when the accent sits near the chip colour instead.\n\n The numeral is laid out with geometry, not font metrics: a single-chunk\n <text> pinned with textLength at an explicit x and baseline y, because\n react-native-svg anchors each chunk itself and ignores text-anchor drift.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="32" y="8" width="60" height="60" rx="13" fill="currentColor" opacity="0.3"/>\n <rect x="24" y="16" width="60" height="60" rx="13" fill="currentColor" opacity="0.55"/>\n <rect x="16" y="24" width="60" height="60" rx="13" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4"/>\n <text x="35" y="68"\n font-family="Manrope, Poppins, sans-serif"\n font-size="40"\n font-weight="800"\n textLength="22"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">6</text>\n</svg>',unknown:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Unknown game fallback.\n Question mark glyph on a transparent background.\n\n Themable: the mark uses currentColor (primary tone) and the dot uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <path\n d="M 28 42 C 28 26 36 16 46 16 C 58 16 66 26 66 38 C 66 48 58 54 50 58 L 50 68"\n fill="none"\n stroke="currentColor"\n stroke-width="8"\n stroke-linecap="round"\n stroke-linejoin="round"\n />\n <circle cx="50" cy="82" r="5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>'},be={perfectpick:"perfect_pick",headtohead:"head_to_head",totalpoints:"total_points",quickpick:"quickpick",safetynet:"safety_net",gameset:"game_set",gamesetbet:"game_set",pickyourdividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",mirrorstandard:"mirror",straightmirror:"mirror",doublemirror:"mirror_double",triplemirror:"mirror_triple",samegame:"same_game_multi",samegamemulti:"same_game_multi",sixagain:"six_again"},we={safety_net:"safety_net",game_set:"game_set",pick_your_dividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",double_mirror:"mirror_double",triple_mirror:"mirror_triple",same_game_multi:"same_game_multi",six_again:"six_again"};function ke(e){if(e.quick_pick_only)return"quickpick";const t=we[e.rule?.trim().toLowerCase()??""];if(t)return t;const n=(e.game_name??"").toLowerCase().replace(/[^a-z0-9]+/g,"");return be[n]??"unknown"}function ve(e){return`${ge}${ke(e)}`}function Ne(e){if(!function(e){return e.startsWith(ge)}(e))return null;const t=e.slice(10);return ye[t]??ye.unknown}var Ce={text:"YES",tone:"yes"},Fe={text:"NO",tone:"no"},Be=[{question:"Will the home side kick the first goal?",outcome:"yes"},{question:"Will the total go over 165 points?",outcome:"no"},{question:"Will the favourite lead at half time?",outcome:"yes"},{question:"Will either side kick five straight goals?",outcome:"yes"},{question:"Will the away side win the first quarter?",outcome:"no"},{question:"Will the top scorer kick three or more?",outcome:"yes"},{question:"Will the margin be under two goals?",outcome:"no"},{question:"Will there be a goal in the first five minutes?",outcome:"yes"}],Ae=["zero","one","two","three","four","five","six","seven","eight"],Me=[{title:"Select your picks",detail:"YES or NO on each call, from {min} up to {max}."},{title:"Continue to review",detail:"Lock in the picks you have made."},{title:"Review your slip",detail:"Add, remove, or change any pick."},{title:"Place your wager",detail:"Set your stake, check the payout, and you are on."}],Se=e=>[{title:`Choose your ${e}`,detail:"Pick how many legs you are taking on and your stake."},{title:"Make your calls",detail:"YES or NO on every leg of the card."},{title:"Check the slip",detail:"Your stake is locked from the setup — review every pick."},{title:"Place your entry",detail:"Confirm and you are on."}],Le={perfect_pick:{summary:["Perfect Pick is the multi you already know, with one big difference. You pick ",Ce," or ",Fe," across your legs, every leg has to land, and one perfect card takes the prize."],steps:Me,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},head_to_head:{summary:["Head to Head is win-or-lose calls only. Pick ",Ce," or ",Fe," on each matchup, land every leg, and the card pays."],steps:Me,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},total_points:{summary:["Total Points is all about the scoreboard. Call ",Ce," or ",Fe," on each total, land every leg, and the card pays."],steps:Me,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},quickpick:{summary:["QuickPick fills the card for you. We generate the ",Ce," and ",Fe," calls, you set the stake, and a perfect card takes the prize."],steps:[{title:"Press to play",detail:"We generate a full card of calls for you."},{title:"Check the slip",detail:"See the picks you have been dealt."},{title:"Place your wager",detail:"Set your stake, check the payout, and you are on."}],demoPrompt:"See how a card settles — call {n} legs yourself, then run it."},safety_net:{summary:["Safety Net is a multi with a miss built in. Pick ",Ce," or ",Fe," across your legs — get them all right for the top prize, and if one slips, the net catches it and the entry still pays."],steps:Se("net"),demoPrompt:"Try a {n}-leg card with a one-miss net — call every leg, then run it."},ladder:{summary:["Ladder pays as you climb. Pick ",Ce," or ",Fe," on every leg — reach the first rung and you start winning, and every rung after that stacks another prize on top."],steps:Se("ladder"),demoPrompt:"Try a {n}-leg ladder — the climb starts at {n1} right."},game_set:{summary:["Game Set Bet is straight sets. Pick ",Ce," or ",Fe," on every leg — each extra leg doubles the prize, and a clean card takes the lot."],steps:Se("ticket"),demoPrompt:"Try a quick {n}-leg ticket — call every leg, then run it."},pick_your_dividend:{summary:["Pick Your Dividend lets you choose the payout you are chasing. Pick ",Ce," or ",Fe," on every leg — land them all and the entry pays the dividend you picked."],steps:Se("dividend"),demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},mirror:{summary:["Mirror pays both ways. Pick ",Ce," or ",Fe," on every leg — get them all right, you win. Get them all wrong, you win the same. Anything in between is a split card and does not pay."],steps:Se("card"),demoPrompt:"Try a {n}-leg mirror — sweep it either way."},six_again:{summary:["6 Again is one six-leg card with boosts riding on it. Pick ",Ce," or ",Fe," on all six calls — land the lot and the card pays. Golden Point doubles a winning card, and the Captain’s Challenge collects even when one call gets away."],steps:[{title:"Set your play",detail:"Choose your stake, then switch on the boosts you want."},{title:"Make your six calls",detail:"YES or NO on every call, {min} of them."},{title:"Check the slip",detail:"Your stake is locked from the setup — review every pick."},{title:"Place your entry",detail:"Confirm and you are on."}],demoPrompt:"Try a {n}-leg card — call every leg, then run it."},same_game_multi:{summary:["Same Game Multi keeps every leg inside one fixture. Pick ",Ce," or ",Fe," across the game — land every leg and the card pays."],steps:Me,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."}};function ze(e){if(!e)return null;const t=ke(e),n=Le[t];if(!n)return null;const{min:o,max:r,demo:l}=function(e){const t=e.allowed_propositions?.filter(e=>e>0)??[],n=t.length>0?Math.min(...t):e.min_propositions??e.num_propositions??0,o=t.length>0?Math.max(...t):e.max_propositions??e.num_propositions??0;let r=3;return n>0&&(r=Math.max(r,n)),o>0&&(r=Math.min(r,o)),{min:n,max:o,demo:Math.min(Math.max(r,2),Be.length)}}(e),s=e=>e.replace(/\{min\}/g,String(o>0?o:2)).replace(/\{max\}/g,String(r>0?r:12));return{id:t,...n,steps:n.steps.map(e=>({...e,detail:s(e.detail)})),demoLegs:Be.slice(0,l),demoPrompt:s(n.demoPrompt).replace(/\{n1\}/g,Ae[l-1]??String(l-1)).replace(/\{n\}/g,Ae[l]??String(l))}}var Pe=(0,s.forwardRef)(function({theme:e,variant:t="primary",size:n="md",disabled:o,block:r,radius:l="md",onPress:a,onDoubleClick:i,type:d="button",className:u,style:m,children:p,ariaLabel:h},f){const x=T(e),g=e.colors,[y,b]=s.default.useState(!1),[w,k]=s.default.useState(!1),[v,N]=s.default.useState(!1),C={sm:{h:36,px:x.space.md,fs:x.fontSize.sm},md:{h:x.touchTarget.min,px:x.space.lg,fs:x.fontSize.md},lg:{h:52,px:x.space.xl,fs:x.fontSize.lg}},F={sm:x.radius.sm,md:x.radius.md,lg:x.radius.lg,pill:x.radius.pill},B={primary:{bg:g.buttonPrimary,bgHover:g.buttonPrimaryHover,fg:g.buttonPrimaryText,border:g.buttonPrimary},secondary:{bg:g.buttonSecondary,bgHover:g.buttonSecondaryHover,fg:g.buttonSecondaryText,border:g.border},ghost:{bg:"transparent",bgHover:M(g.text,x.isDark?.08:.05),fg:g.text,border:"transparent"},danger:{bg:g.error,bgHover:M(g.error,.85),fg:(g.errorText&&(g.errorText,g.error),"#ffffff"),border:g.error}}[t];return(0,c.jsx)("button",{ref:f,type:d,disabled:o,"aria-label":h,className:u,onClick:o?void 0:a,onDoubleClick:o?void 0:i,onMouseEnter:()=>b(!0),onMouseLeave:()=>{b(!1),k(!1)},onMouseDown:()=>k(!0),onMouseUp:()=>k(!1),onFocus:e=>{e.target.matches(":focus-visible")&&N(!0)},onBlur:()=>N(!1),style:{appearance:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8,width:r?"100%":void 0,minHeight:C[n].h,padding:`0 ${C[n].px}px`,fontSize:C[n].fs,fontWeight:500,fontFamily:"inherit",lineHeight:1.2,color:B.fg,background:y&&!o?B.bgHover:B.bg,border:`1px solid ${B.border}`,borderRadius:F[l],cursor:o?"not-allowed":"pointer",opacity:o?.5:1,transform:w?"scale(0.985)":"scale(1)",transition:`transform ${x.motion.durationFast}ms ${x.motion.easing}, background-color ${x.motion.durationFast}ms ${x.motion.easing}, box-shadow ${x.motion.durationFast}ms ${x.motion.easing}`,boxShadow:v?E(e):"none",outline:"none",...m},children:p})}),Te={xs:{padding:"3px 10px",fontSize:11},sm:{padding:"6px 14px",fontSize:13},md:{padding:"8px 18px",fontSize:14}};function Oe(e,t,n,o,r,l){const s=T(e);return{appearance:"none",padding:Te[o].padding,borderRadius:s.radius.sm,fontSize:Te[o].fontSize,fontWeight:600,fontFamily:"inherit",lineHeight:1.2,cursor:r?"not-allowed":"pointer",color:t?"#ffffff":e.colors.text,background:t?n:"transparent",border:`1px solid ${t?"transparent":e.colors.border}`,transition:`background-color ${s.motion.durationFast}ms ${s.motion.easing}, color ${s.motion.durationFast}ms ${s.motion.easing}, border-color ${s.motion.durationFast}ms ${s.motion.easing}`,opacity:r?.5:1,...l?{flex:1}:null}}function De({theme:e,value:t,onYes:n,onNo:o,size:r="md",stretch:l,disabled:s,yesLabel:a="Yes",noLabel:i="No",className:d,style:u}){return(0,c.jsxs)("div",{className:d,style:{display:"flex",gap:8,flexShrink:0,...l?{width:"100%"}:null,...u},children:[(0,c.jsx)("button",{type:"button","aria-pressed":"yes"===t,disabled:s,onClick:s?void 0:n,style:Oe(e,"yes"===t,R(e),r,s,l),children:a}),(0,c.jsx)("button",{type:"button","aria-pressed":"no"===t,disabled:s,onClick:s?void 0:o,style:Oe(e,"no"===t,G(e),r,s,l),children:i})]})}function Ee({theme:e,value:t,size:n="md",style:o}){const r=T(e);return(0,c.jsx)("span",{style:{display:"inline-flex",alignItems:"center",padding:"sm"===n?"2px 8px":"3px 10px",borderRadius:r.radius.sm,fontSize:"sm"===n?10:11,fontWeight:700,letterSpacing:"0.04em",textTransform:"uppercase",color:"#ffffff",background:"yes"===t?R(e):G(e),...o},children:"yes"===t?"Yes":"No"})}var je=/\b(YES|NO)\b/,Ye={verticalAlign:"-2px",margin:"0 1px"};function He(e,t,n){return e.split(je).map((e,o)=>"YES"===e||"NO"===e?(0,c.jsx)(Ee,{theme:t,value:"YES"===e?"yes":"no",size:"sm",style:Ye},`${n}-${o}`):(0,c.jsx)(s.default.Fragment,{children:e},`${n}-${o}`))}function Re({segments:e,theme:t}){return(0,c.jsx)("p",{className:"m-0 text-[14px] leading-[1.55]",style:{color:t.colors.text},children:e.map((e,n)=>"string"==typeof e?(0,c.jsx)(s.default.Fragment,{children:He(e,t,n)},n):(0,c.jsx)(Ee,{theme:t,value:e.tone,size:"sm",style:Ye},n))})}function Ge({panel:e,theme:t,dividends:n,bodyFont:o,headingFont:r,className:l=""}){const a=t.colors,i=t.brand?.accent??a.primaryText,d=K(t),[u,m]=(0,s.useState)("learn"),[p,h]=(0,s.useState)(()=>e.demoLegs.map(()=>null)),[f,x]=(0,s.useState)(!1),g=e.demoLegs.length,y=p.filter(e=>null!=e).length,b=y===g,w=e.demoLegs.filter((e,t)=>p[t]===e.outcome).length,k=function(e,t,n){const o=t===n,r=`${t} of ${n}`;switch(e){case"mirror":return o?{won:!0,message:`All ${n} right — that is the sweep, the card pays.`}:0===t?{won:!0,message:`All ${n} wrong — a full mirror sweep pays the same as perfect.`}:{won:!1,message:`${r} is a split card. Mirror pays all right or all wrong — nothing in between.`};case"ladder":return o?{won:!0,message:`Top rung — all ${n} right stacks every prize on the ladder into one payout.`}:t>=n-1?{won:!0,message:`${r} reaches a rung — it pays, and every extra leg right stacks the next prize on top.`}:{won:!1,message:`${r} does not reach the first rung — the climb starts at ${n-1} right.`};case"safety_net":return o?{won:!0,message:`Clean sweep — all ${n} right takes the full prize.`}:t===n-1?{won:!0,message:"One miss — the net catches it and the entry still pays."}:{won:!1,message:`${r} is more than the net holds — one miss is covered, two is not.`};case"six_again":return o?{won:!0,message:`All ${n} right — the card pays, and Golden Point doubles it.`}:t===n-1?{won:!1,message:`${r} — one call away. The Captain’s Challenge is the boost that collects on this card.`}:{won:!1,message:`${r} — every call has to land. Flip the misses and the card pays.`};case"game_set":return o?{won:!0,message:`Game, set, bet — all ${n} legs landed and the card pays.`}:{won:!1,message:`${r} — every leg has to land. Flip the misses and it is straight sets.`};case"pick_your_dividend":return o?{won:!0,message:`All ${n} right — the entry pays the dividend you picked.`}:{won:!1,message:`${r} — every leg has to land to collect your dividend.`};default:return o?{won:!0,message:`Perfect card — all ${n} legs landed, the prize is yours.`}:{won:!1,message:`${r} — one miss breaks a perfect card. Flip the misses and it pays.`}}}(e.id,w,g),v=(e,t)=>{f||h(n=>n.map((n,o)=>o===e?t:n))},N=f?"Settled":`${y} of ${g} called`,C=!f&&b,F=e=>({fontFamily:r,backgroundColor:e?a.primary:"transparent",color:e?a.primaryText:a.textMuted,cursor:"pointer"});return(0,c.jsxs)("div",{className:l,style:{fontFamily:o},children:[(0,c.jsx)("style",{children:"@keyframes ynhtp-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}"}),(0,c.jsxs)("div",{className:"mb-3.5 grid gap-0.5 rounded-lg border p-0.5",style:{borderColor:a.border,backgroundColor:a.backgroundAlt,gridTemplateColumns:`repeat(${n?3:2}, minmax(0, 1fr))`},role:"tablist",children:[(0,c.jsx)("button",{type:"button",role:"tab","aria-selected":"learn"===u,onClick:()=>m("learn"),className:"rounded-md px-2 py-1.5 text-[11px] font-extrabold uppercase tracking-[0.1em] transition-colors",style:F("learn"===u),children:"How it works"}),(0,c.jsx)("button",{type:"button",role:"tab","aria-selected":"try"===u,onClick:()=>m("try"),className:"rounded-md px-2 py-1.5 text-[11px] font-extrabold uppercase tracking-[0.1em] transition-colors",style:F("try"===u),children:"Quick demo"}),n&&(0,c.jsx)("button",{type:"button",role:"tab","aria-selected":"pay"===u,onClick:()=>m("pay"),className:"rounded-md px-2 py-1.5 text-[11px] font-extrabold uppercase tracking-[0.1em] transition-colors",style:F("pay"===u),children:"Dividends"})]}),"pay"===u&&n,"learn"===u&&(0,c.jsxs)("div",{children:[(0,c.jsx)(Re,{segments:e.summary,theme:t}),(0,c.jsxs)("ol",{className:"relative m-0 mt-3 list-none p-0",children:[(0,c.jsx)("span",{"aria-hidden":!0,className:"absolute left-[17px] top-4 bottom-4 w-px",style:{backgroundColor:M(a.primary,.25)}}),e.steps.map((e,n)=>(0,c.jsxs)("li",{className:"relative flex flex-col justify-center gap-0.5 py-2 pl-[50px]",children:[(0,c.jsx)("span",{"aria-hidden":!0,className:"absolute left-0 top-1/2 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-[10px] text-[16px] font-extrabold",style:{backgroundColor:a.primary,color:i,fontFamily:r,boxShadow:`0 2px 0 ${M(a.primary,.35)}`},children:n+1}),(0,c.jsx)("b",{className:"block text-[14.5px] font-bold leading-snug",style:{color:a.primary,fontFamily:r},children:e.title}),(0,c.jsx)("span",{className:"text-[13px] leading-snug",style:{color:a.textMuted},children:He(e.detail,t,n)})]},e.title))]}),(0,c.jsx)("button",{type:"button",onClick:()=>m("try"),className:"mt-1.5 pl-[50px] text-[12.5px] font-bold",style:{color:a.primary,cursor:"pointer",fontFamily:r},children:"Try a quick demo →"})]}),"try"===u&&(0,c.jsxs)("div",{className:"overflow-hidden rounded-xl border",style:{borderColor:a.border,backgroundColor:d,boxShadow:O(t)},children:[(0,c.jsx)("div",{className:"px-3.5 pt-3 sm:px-4",children:(0,c.jsxs)("div",{className:"flex items-start justify-between gap-2.5",children:[(0,c.jsx)("p",{className:"m-0 min-w-0 flex-1 text-[12.5px] leading-snug",style:{color:a.textMuted},children:f?"Here is how it settled.":e.demoPrompt}),(0,c.jsx)("span",{className:"shrink-0 rounded-full border px-2 py-0.5 text-[10px] font-extrabold uppercase tracking-[0.1em] [font-variant-numeric:tabular-nums]",style:{borderColor:C?a.primary:M(a.border,.9),color:C?a.primaryText:a.textMuted,backgroundColor:C?a.primary:"transparent"},children:N})]})}),(0,c.jsx)("div",{className:"mt-1.5 px-3.5 sm:px-4",children:e.demoLegs.map((e,n)=>{const o=p[n]===e.outcome;return(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 py-2.5",style:{borderTop:0===n?"none":`1px solid ${M(a.border,.7)}`},children:[(0,c.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2.5",children:[(0,c.jsx)("span",{className:"mt-0.5 flex h-[18px] w-[18px] shrink-0 items-center justify-center rounded-full text-[10px] font-extrabold",style:f?{backgroundColor:o?a.success:a.error,color:"#fff",animation:"ynhtp-in .28s ease both",animationDelay:100*n+"ms"}:{border:`1.5px solid ${p[n]?a.primary:a.border}`,color:p[n]?a.primary:a.textMuted},children:f?o?"✓":"✗":n+1}),(0,c.jsx)("span",{className:"min-w-0 text-[13px] font-semibold leading-snug",style:{color:a.text},children:e.question})]}),f?(0,c.jsx)("span",{style:{animation:"ynhtp-in .28s ease both",animationDelay:100*n+"ms"},children:(0,c.jsx)(Ee,{theme:t,size:"sm",value:e.outcome})}):(0,c.jsx)(De,{theme:t,size:"sm",value:p[n],onYes:()=>v(n,"yes"),onNo:()=>v(n,"no")})]},e.question)})}),(0,c.jsx)("div",{className:"mx-3.5 sm:mx-4",style:{borderTop:`1.5px dashed ${M(a.border,.9)}`}}),(0,c.jsx)("div",{className:"px-3.5 pb-3.5 pt-3 sm:px-4",children:f?(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{className:"flex items-center gap-3 rounded-lg px-3 py-2.5",style:{backgroundColor:k.won?a.successBg:a.errorBg,animation:"ynhtp-in .3s ease both",animationDelay:100*g+60+"ms"},children:[(0,c.jsx)("span",{className:"shrink-0 -rotate-3 rounded-md border-2 px-1.5 py-0.5 text-[10px] font-extrabold uppercase tracking-[0.14em]",style:{borderColor:k.won?a.successText:a.errorText,color:k.won?a.successText:a.errorText,fontFamily:r},children:k.won?"Winner":"No win"}),(0,c.jsx)("p",{className:"m-0 text-[12.5px] font-semibold leading-snug",style:{color:k.won?a.successText:a.errorText},children:k.message})]}),(0,c.jsx)("button",{type:"button",onClick:()=>{h(e.demoLegs.map(()=>null)),x(!1)},className:"mt-2 text-[11.5px] font-bold",style:{color:a.textMuted,cursor:"pointer"},children:"↺ Try again"})]}):(0,c.jsx)(Pe,{theme:t,size:"sm",block:!0,disabled:!b,onPress:()=>x(!0),children:"Run the demo"})})]})]})}function We({open:e,onClose:t,title:n="How to Play",content:o,panel:r,theme:l,extra:a,colors:i,bodyFont:d,headingFont:u}){const m=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(!e)return;const n=e=>{"Escape"===e.key&&t()};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e,t]),(0,s.useEffect)(()=>{if(!e)return;const t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[e]),e?(0,c.jsx)("div",{className:"fixed inset-0 z-50 flex items-end sm:items-center justify-center p-0 sm:p-4",style:{backgroundColor:"rgba(0,0,0,0.55)"},onMouseDown:e=>{e.target===e.currentTarget&&t()},children:(0,c.jsxs)("div",{ref:m,role:"dialog","aria-modal":"true","aria-labelledby":"how-to-play-title",className:"w-full sm:max-w-2xl max-h-[88vh] flex flex-col rounded-t-2xl sm:rounded-2xl border shadow-2xl overflow-hidden",style:{backgroundColor:i.background,borderColor:i.border,fontFamily:d,maxHeight:"88dvh"},children:[(0,c.jsx)("div",{className:"shrink-0 border-b px-4 pb-4 pt-3 text-left sm:px-6 sm:pt-4",style:{borderColor:i.border,backgroundColor:i.backgroundAlt},children:(0,c.jsx)("h2",{id:"how-to-play-title",className:"text-lg font-bold",style:{color:i.text,fontFamily:u??d},children:n})}),(0,c.jsx)("div",{className:"overflow-y-auto flex-1 min-h-0",children:r&&l?(0,c.jsx)("div",{className:"px-4 sm:px-6 py-5",children:(0,c.jsx)(Ge,{panel:r,theme:l,dividends:a,bodyFont:d,headingFont:u})}):(0,c.jsxs)(c.Fragment,{children:[o&&y(o)?(0,c.jsx)(k,{content:o,className:"min-h-[60vh]"}):(0,c.jsx)("div",{className:"px-4 sm:px-6 py-5",children:(0,c.jsx)(A,{content:o??"",colors:i,bodyFont:d,headingFont:u})}),a&&(0,c.jsx)("div",{className:"px-4 sm:px-6 pb-5",children:a})]})}),(0,c.jsx)("div",{className:"px-4 sm:px-6 py-4 border-t shrink-0",style:{borderColor:i.border,backgroundColor:i.backgroundAlt,paddingBottom:"max(1rem, env(safe-area-inset-bottom))"},children:(0,c.jsx)("button",{type:"button",onClick:t,className:"w-full rounded-full px-5 py-3.5 text-sm font-extrabold uppercase tracking-[0.08em] transition-[opacity,transform] duration-150 hover:opacity-[0.92] active:scale-[0.99] active:opacity-[0.88]",style:{color:i.primaryText,backgroundColor:i.primary,border:"none",cursor:"pointer",fontFamily:d},children:"Got it"})})]})}):null}function Ie({content:e,panel:t,theme:n,extra:o,title:r,label:l="How to Play",variant:a="pill",colors:i,bodyFont:d,headingFont:u,className:m=""}){const[p,h]=s.default.useState(!1);return e?.trim()||t&&n||o?(0,c.jsxs)(c.Fragment,{children:["icon"===a?(0,c.jsx)("button",{type:"button",onClick:()=>h(!0),"aria-label":l,title:l,className:`inline-flex h-[21px] w-[21px] shrink-0 items-center justify-center rounded-full border text-[12px] font-extrabold leading-none transition-colors ${m}`,style:{color:i.primary,borderColor:i.primary,backgroundColor:`${i.primary}14`,cursor:"pointer",fontFamily:d},onMouseEnter:e=>{e.currentTarget.style.color=i.primaryText,e.currentTarget.style.backgroundColor=i.primary},onMouseLeave:e=>{e.currentTarget.style.color=i.primary,e.currentTarget.style.backgroundColor=`${i.primary}14`},children:"?"}):(0,c.jsxs)("button",{type:"button",onClick:()=>h(!0),className:`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full border text-xs font-semibold ${m}`,style:{color:i.primary,borderColor:i.primary,backgroundColor:`${i.primary}10`,cursor:"pointer",fontFamily:d},children:[l,(0,c.jsx)("span",{"aria-hidden":"true",children:"?"})]}),(0,c.jsx)(We,{open:p,onClose:()=>h(!1),title:r,content:e??void 0,panel:t,theme:n,extra:o,colors:i,bodyFont:d,headingFont:u})]}):null}function Ue({label:e,category:t,icon:n,theme:o,disabled:r=!1}){const l=o.colors,s=fe(o),a=r?l.textMuted:l.textAlt??l.text,i=r?l.border:o.brand?.chip??l.primary,d=r?l.textMuted:o.brand?.icon??l.primaryText??l.buttonPrimaryText;return(0,c.jsxs)("span",{className:"font-display max-w-full text-base min-[400px]:text-lg min-[480px]:text-xl",style:{display:"inline-flex",alignItems:"center",flexWrap:"wrap",gap:"0.25em",lineHeight:1.15,color:a,fontFamily:s},children:[(0,c.jsxs)("span",{className:"shrink-0","aria-label":"YESNO",style:{letterSpacing:-1,whiteSpace:"nowrap"},children:[(0,c.jsx)("span",{style:{fontWeight:900},children:"YES"}),(0,c.jsx)("span",{style:{fontWeight:300},children:"NO"})]}),(0,c.jsx)("span",{role:"img","aria-label":e,className:"shrink-0",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1.6em",height:"0.85em",borderRadius:"0.425em",flexShrink:0,backgroundColor:i,color:d,transform:"translateY(-0.02em)"},children:n??(0,c.jsx)($e,{category:t,size:"0.6em",color:d})}),(0,c.jsxs)("span",{className:"min-w-0 break-words font-medium",style:{fontWeight:500},children:[e,(0,c.jsx)("span",{style:{fontSize:"0.3em",fontWeight:600,marginLeft:"0.2em",display:"inline-block",transform:"translateY(-1.8em)"},children:"TM"})]})]})}function $e({category:e,size:t=14,color:n="currentColor"}){const o={width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0};switch(e){case"casino":return(0,c.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:n,"aria-hidden":!0,children:[(0,c.jsx)("path",{d:"M10.348 3.169l-7.15 3.113a2 2 0 0 0 -1.03 2.608l4.92 11.895a1.96 1.96 0 0 0 2.59 1.063l7.142 -3.11a2.002 2.002 0 0 0 1.036 -2.611l-4.92 -11.894a1.96 1.96 0 0 0 -2.588 -1.064z"}),(0,c.jsx)("path",{d:"M16 3a2 2 0 0 1 1.995 1.85l.005 .15v3.5a1 1 0 0 1 -1.993 .117l-.007 -.117v-3.5h-1a1 1 0 0 1 -.117 -1.993l.117 -.007h1z"}),(0,c.jsx)("path",{d:"M19.08 5.61a1 1 0 0 1 1.31 -.53c.257 .108 .505 .21 .769 .314a2 2 0 0 1 1.114 2.479l-.056 .146l-2.298 5.374a1 1 0 0 1 -1.878 -.676l.04 -.11l2.296 -5.371l-.366 -.148l-.402 -.167a1 1 0 0 1 -.53 -1.312z"})]});case"racing":return(0,c.jsxs)("svg",{...o,children:[(0,c.jsx)("path",{d:"M7 10l-.85 8.507a1.357 1.357 0 0 0 1.35 1.493h.146a2 2 0 0 0 1.857 -1.257l.994 -2.486a2 2 0 0 1 1.857 -1.257h1.292a2 2 0 0 1 1.857 1.257l.994 2.486a2 2 0 0 0 1.857 1.257h.146a1.37 1.37 0 0 0 1.364 -1.494l-.864 -9.506h-8c0 -3 -3 -5 -6 -5l-3 6l2 2l3 -2"}),(0,c.jsx)("path",{d:"M22 14v-2a3 3 0 0 0 -3 -3"})]});case"women":return(0,c.jsxs)("svg",{...o,children:[(0,c.jsx)("path",{d:"M7 9a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"}),(0,c.jsx)("path",{d:"M12 14v7"}),(0,c.jsx)("path",{d:"M9 18h6"})]});default:return(0,c.jsxs)("svg",{...o,children:[(0,c.jsx)("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),(0,c.jsx)("path",{d:"M12 7l4.76 3.45l-1.76 5.55h-6l-1.76 -5.55l4.76 -3.45"}),(0,c.jsx)("path",{d:"M12 7v-4m3 13l2.5 3m-.74 -8.55l3.74 -1.45m-11.44 7.05l-2.56 2.95m.74 -8.55l-3.74 -1.45"})]})}}function Ke({size:e=20,color:t="currentColor",className:n=""}){return(0,c.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round",className:n,"aria-hidden":!0,children:(0,c.jsx)("path",{d:"M21 4H3l7.2 8.5V19l3.6 2v-8.5L21 4z"})})}function Ze({size:e=20,color:t="currentColor",className:n=""}){return(0,c.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round",className:n,"aria-hidden":!0,children:(0,c.jsx)("path",{d:"m9 6 6 6-6 6"})})}function qe({size:e=20,color:t="currentColor",className:n=""}){return(0,c.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round",className:n,"aria-hidden":!0,children:[(0,c.jsx)("path",{d:"M5 11h14a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2z"}),(0,c.jsx)("path",{d:"M8 11V7a4 4 0 1 1 8 0v4"})]})}function Ve({size:e=20,color:t="currentColor",filled:n=!1,className:o=""}){return(0,c.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:n?t:"none",stroke:t,strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round",className:o,"aria-hidden":!0,children:(0,c.jsx)("path",{d:"M12 3.6l2.6 5.28 5.83.85-4.22 4.11.997 5.8L12 16.9l-5.2 2.74.99-5.8L3.57 9.73l5.83-.85L12 3.6z"})})}function Xe({theme:e,itemCount:t=0,contentClassName:n="gap-2 px-0.5 py-0.5",className:o="",children:r}){const l=e.colors,a=(0,s.useRef)(null),[i,d]=(0,s.useState)(!1),[u,m]=(0,s.useState)(!1),[p,h]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if("undefined"==typeof window||!window.matchMedia)return;const e=window.matchMedia("(pointer: coarse)"),t=()=>h(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);const f=(0,s.useCallback)(()=>{const e=a.current;if(!e)return;const t=e.scrollWidth-e.clientWidth;d(e.scrollLeft>2),m(e.scrollLeft<t-2)},[]);(0,s.useEffect)(()=>{f(),window.addEventListener("resize",f);const e=a.current;let t;if(e&&"undefined"!=typeof ResizeObserver){t=new ResizeObserver(f),t.observe(e);for(const n of Array.from(e.children))t.observe(n)}return()=>{window.removeEventListener("resize",f),t?.disconnect()}},[f,t]);const x=e=>{const t=a.current;t&&t.scrollBy({left:e*Math.round(.7*t.clientWidth),behavior:"smooth"})},g=(0,s.useRef)({down:!1,lastX:0,travelled:0}),y=()=>{g.current.down=!1},b=(0,s.useCallback)(()=>g.current.travelled>4,[]),w=l.background??"#fff",k={width:44,height:44,cursor:"pointer",background:"none",border:"none",padding:0},v={width:26,height:26,border:`1px solid ${l.border}`,backgroundColor:w,color:l.primary,boxShadow:"0 4px 10px -4px rgba(15, 76, 92, 0.55)"};return(0,c.jsxs)("div",{className:`relative min-w-0 ${o}`,children:[i&&(0,c.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-y-0 left-0 z-[2] w-10",style:{background:`linear-gradient(to right, ${w}, transparent)`}}),i&&!p&&(0,c.jsx)("button",{type:"button","aria-label":"Scroll left",onClick:()=>x(-1),className:"absolute top-1/2 z-[3] flex -translate-y-1/2 items-center justify-center active:scale-90",style:{...k,left:-11},children:(0,c.jsx)("span",{className:"flex items-center justify-center rounded-full",style:v,children:(0,c.jsx)(Ze,{size:14,className:"rotate-180"})})}),u&&(0,c.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-y-0 right-0 z-[2] w-10",style:{background:`linear-gradient(to left, ${w}, transparent)`}}),u&&!p&&(0,c.jsx)("button",{type:"button","aria-label":"Scroll right",onClick:()=>x(1),className:"absolute top-1/2 z-[3] flex -translate-y-1/2 items-center justify-center active:scale-90",style:{...k,right:-11},children:(0,c.jsx)("span",{className:"flex items-center justify-center rounded-full",style:v,children:(0,c.jsx)(Ze,{size:14})})}),(0,c.jsx)("div",{ref:a,onScroll:f,onPointerDown:e=>{"touch"!==e.pointerType&&(g.current={down:!0,lastX:e.clientX,travelled:0})},onPointerMove:e=>{const t=g.current;if(!t.down)return;const n=t.lastX-e.clientX;t.lastX=e.clientX,t.travelled+=Math.abs(n),a.current&&(a.current.scrollLeft+=n)},onPointerUp:y,onPointerCancel:y,onPointerLeave:y,className:`flex cursor-grab select-none items-stretch overflow-x-auto [-webkit-overflow-scrolling:touch] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden active:cursor-grabbing ${n}`,children:r(b)})]})}function Qe({groups:e,theme:t,bodyFont:n,className:o=""}){const r=t.colors,l=r.background??"#fff";return 0===e.length?null:(0,c.jsx)(Xe,{theme:t,itemCount:e.length,className:o,contentClassName:"items-center gap-2 px-0.5 py-0.5",children:t=>e.map((e,o)=>(0,c.jsxs)(s.default.Fragment,{children:[o>0&&(0,c.jsx)("span",{"aria-hidden":!0,className:"h-5 w-px flex-none self-center",style:{backgroundColor:r.border}}),e.label&&(0,c.jsx)("span",{className:"flex-none self-center text-[10px] font-extrabold uppercase tracking-[0.14em]",style:{color:r.textMuted,fontFamily:n},children:e.label}),e.options.map(o=>{const s=o.value===e.value;return(0,c.jsx)("button",{type:"button",onClick:()=>{t()||e.onChange(o.value)},className:"flex-none self-center whitespace-nowrap rounded-full px-3.5 py-1.5 text-[12px] font-bold tracking-[-0.01em] transition-colors active:translate-y-px",style:{fontFamily:n,border:`1px solid ${s?r.primary:r.border}`,backgroundColor:s?r.primary:l,color:s?r.primaryText:r.primary,cursor:"pointer"},children:o.label},o.value??"__all")})]},e.label??o))})}function Je({label:e,options:t,value:n,onChange:o,theme:r,bodyFont:l,className:s=""}){return(0,c.jsx)(Qe,{groups:[{label:e,options:t,value:n,onChange:o}],theme:r,bodyFont:l,className:s})}function _e(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function et(e){return(e.description??e.proposition??"").trim()}var tt={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function nt(e){return"composite_and"===(t=_e(e))||"composite_or"===t;var t}function ot(e){const t=e.source_data;if(!t)return[];try{const e=JSON.parse(t)?.composite?.components;return Array.isArray(e)?e.filter(e=>"number"==typeof e&&Number.isFinite(e)):[]}catch{return[]}}function rt(e){const t=e.home_team?.trim(),n=e.away_team?.trim();if(t&&n)return`${t} vs ${n}`;if(t)return t;if(n)return n;const o=e.eventId??e.event_id;return o?.trim()?o.trim():null}function lt(e,t){if(!nt(e))return null;const n=function(e){return nt(e)?("composite_and"===(t=_e(e))?"AND":"composite_or"===t?"OR":null)||function(e){const t=e.source_data;if(!t)return null;try{const e=JSON.parse(t)?.composite?.operator;if("and"===e)return"AND";if("or"===e)return"OR"}catch{return null}return null}(e):null;var t}(e);if(!n)return null;const o=ot(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:et(o),eventLabel:rt(o),prop:o})}if(e.length>=2)return{operator:n,legs:e}}const r=function(e,t){const n=e.trim();if(!n)return null;const o=n.split(tt[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(et(e),n);return r?{operator:n,legs:r.map(e=>({text:e,eventLabel:null,prop:null}))}:null}var st="#0F4C5C",at={aussierules_afl:"AFL",rugbyleague_nrl:"NRL",basketball_nba:"NBA",basketball_ncaab:"CBB",americanfootball_nfl:"NFL",americanfootball_ncaaf:"CFB",soccer_epl:"EPL",soccer_italy_serie_a:"SEA",soccer_spain_la_liga:"LIG",soccer_germany_bundesliga:"BUN",soccer_usa_mls:"MLS",baseball_mlb:"MLB",icehockey_nhl:"NHL",horse_racing_aus:"RLT",roulette:"RLT",dice:"DCE",cointrio:"CT3"},it={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner"};function ct(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=at[e];if(o)return o;if(t&&e.startsWith(`${t}_`)){const n=e.slice(t.length+1).replace(/_/g," ").split(/\s+/).filter(Boolean).map(e=>e[0]).join("").slice(0,4).toUpperCase();if(n)return n}return e.startsWith("casino_")?e.slice(7,11).toUpperCase()||"CSN":e.slice(0,3).toUpperCase()||"·"}function dt(e,t){const n=t>0?Math.floor(t/68):e;return Math.max(2,Math.min(Math.ceil(e/2),n))}function ut(e){return!!e.is_composite_component||!!(t=_e(e))&&t.startsWith("co_");var t}function mt(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function pt(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}function ht(e){const t=Number.isInteger(e);return new Intl.NumberFormat("en-AU",{style:"currency",currency:"AUD",minimumFractionDigits:t?0:2,maximumFractionDigits:2}).format(e)}function ft(e){const t="string"==typeof e?new Date(e.endsWith("Z")||/[+-]\d{2}:\d{2}$/.test(e)?e:e+"Z"):e;return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}).format(t)}function xt(e){return e.reduce((t,n)=>{const o=gt(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function gt(e,t){if(e.sport)return e.sport;if(nt(e)&&t)for(const n of ot(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var yt=["sports","casino","racing","prediction"];function bt(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=(_e(e)??"").toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"sports"}function wt(e){return"racing"===bt(e)}function kt(e){const t={};for(const n of e){const e=bt(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function vt(e){const t=kt(e);return yt.filter(e=>(t[e]?.length??0)>0)}function Nt(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";default:return"Choose a Sport"}}function Ct(e,t,n,o){return o&&o.length>0?o.includes(e):!(void 0!==t&&e<t||void 0!==n&&e>n)}function Ft(e,t,n){const o=n?.min_propositions??null,r=n?.max_propositions??null,l=(n?.allowed_propositions??e.allowed_propositions)?.filter(e=>(null==o||e>=o)&&(null==r||e<=r));if(l&&l.length>0)return null!=t&&l.includes(t)?{min:t,max:t}:{min:Math.min(...l),max:Math.max(...l)};const s=e.min_propositions??e.num_propositions??0,a=e.max_propositions??e.num_propositions??0;return{min:null!=o?Math.max(s,o):s,max:null!=r&&a>0?Math.min(a,r):r??a}}function Bt(e){const t=e.allocations?.find(e=>"jackpot"===e.allocation_type);return t&&(t.dollar_amount??0)>0?{enabled:!0,amount:t.dollar_amount,limit:e.jackpot_limit??0,progressive:!1}:!0===e.jackpot_enabled&&t&&t.percentage>0?{enabled:!0,amount:e.jackpot_amount??0,limit:e.jackpot_limit??0,progressive:!0}:!0===e.jackpot_enabled&&(e.jackpot_amount??0)>0?{enabled:!0,amount:e.jackpot_amount,limit:e.jackpot_limit??0,progressive:!1}:{enabled:!1,amount:0,limit:0,progressive:!1}}function At(e,t,n){return"racing"===e||!(!t?.length||!t.every(wt))||!!n&&Boolean(t?.some(e=>e.sport===n||(e.sport||"").startsWith(`${n}_`)))}function Mt(e,t){const n={basketball_nba:"NBA",americanfootball_nfl:"NFL",icehockey_nhl:"NHL",baseball_mlb:"MLB",soccer_epl:"Premier League",soccer_usa_mls:"MLS",horse_racing_aus:"Horse Racing",casino_blackjack:"Blackjack",casino_roulette:"Roulette",casino_slots:"Slots",aussierules_afl:"AFL",rugbyleague_nrl:"NRL",aussierules_aflw:"AFLW",rugbyleague_nrlw:"NRLW","AUSTRALIAN-RULES":"AFL","RUGBY-LEAGUE":"NRL",cricket_international_t20:"T20 International",cricket_test_match:"Test Cricket"};return e.startsWith("casino_")?n[e]??e.replace(/^casino_/,"").replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):t&&e.startsWith(`${t}_`)?e.slice(t.length+1).replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):n[e]||e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}function St(e,t,n){const o=t?.[e];return o||Mt(e,n)}function Lt(e,t){const n=t?.[e];return n||function(e){return{sports:"Sports",casino:"Casino",racing:"Racing"}[e]??e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}(e)}function zt(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function Pt(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function Tt(e,t,n){return!t||!!e&&(Pt(e,t,n)||Pt(t,e,n))}function Ot(e,t){return t.find(t=>t.id===e)}function Dt(e,t){let n=e;return t?.category&&(n=n.filter(e=>bt(e)===t.category)),t?.sport&&(n=n.filter(n=>nt(n)?function(e,t,n,o){if(Tt(e.sport,t,n))return!0;if(!o)return!1;for(const r of ot(e)){const e=Ot(r,o);if(e&&Tt(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):Tt(n.sport,t.sport,t.sportBaseKey))),n}function Et(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t?t:"sports"}(e)===t}function jt(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>Pt(t,e,n))}function Yt(e,t,n){return!(n?.category&&!Et(e,n.category))&&!(n?.sport&&!jt(e,n.sport,n.sportBaseKey))&&Dt(Gt(t,e),n).length>0}function Ht(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!Et(e,t.category)||t.sport&&!jt(e,t.sport,t.sportBaseKey))):e}function Rt(e,t){if(e.sport||!nt(e))return e;const n=gt(e,t);return"Other"===n?e:{...e,sport:n}}function Gt(e,t,n){const o=t.allowed_sports,r=o&&o.length>0,l=t.allowed_markets&&t.allowed_markets.length>0;return r||l?e.filter(s=>{if(ut(s))return!1;if(r)if(nt(s)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>Pt(e.sport,t,n)))return!0;if(!o)return!1;for(const r of ot(e)){const e=Ot(r,o);if(e?.sport&&t.some(t=>Pt(e.sport,t,n)))return!0}return!1}(s,o,n,e))return!1}else if(!s.sport||!o.some(e=>Pt(s.sport,e,n)))return!1;return!(l&&!function(e,t){const n=t.allowed_markets;if(!n||0===n.length)return!0;const o=_e(e);return!!o&&n.includes(o)}(s,t))}).map(t=>Rt(t,e)):e.filter(e=>!ut(e)).map(t=>Rt(t,e))}function Wt(e,t){const n=e.available_days;if(!n)return!0;if(0===n.length)return!0;const o=((t??new Date).getDay()+6)%7;return n.includes(o)}var It=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function Ut(e,t,n){return At(t,e,n)?function(e){return e.reduce((e,t)=>{const n=t.away_team||t.eventId||"Race";return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e):function(e){return e.reduce((e,t)=>{const n=`${t.home_team} vs ${t.away_team}`;return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e)}function $t(e){const t=[];for(const n of e){const e=n.home_team&&n.away_team&&!wt(n)?`${n.home_team} vs ${n.away_team}`:n.away_team||n.home_team||n.eventId||null,o=t[t.length-1],r=null===e?null:t.find(t=>t.key===e);r?r.props.push(n):null===e&&null===o?.key?o.props.push(n):t.push({key:e,props:[n]})}return t}function Kt(e,t){if(e===t)return[e];if(t<e)return[e];const n=[];for(let o=e;o<=t;o++)n.push(o);return n}function Zt(e,t){const n=[...e].sort(()=>Math.random()-.5).slice(0,t),o=[],r=[];for(const l of n)Math.random()<.5?o.push(l):r.push(l);return{yesPicks:o,noPicks:r}}var qt=new Map,Vt=new Map;function Xt(e,t,n){return`data:image/svg+xml;utf8,${encodeURIComponent(function(e,t,n){let o=e.replace(/<\?xml[^?]*\?>/g,"").replace(/<!--[\s\S]*?-->/g,"");const r=["width:100%","height:100%","display:block"];t&&r.push(`color:${t}`),n&&r.push(`--icon-accent:${n}`);const l=`style="${r.join(";")}"`;return o=o.replace(/<svg\b([^>]*)>/,(e,t)=>`<svg${t.replace(/\s+style\s*=\s*"[^"]*"/i,"")} ${l}>`),o}(e,t,n))}`}function Qt({iconUrl:e,width:t,height:n,iconColor:o,accentColor:r,ariaLabel:l,style:a}){const i=Ne(e),[d,u]=s.default.useState(()=>i??qt.get(e)??null);s.default.useEffect(()=>{const t=Ne(e);if(t)return void u(t);if(qt.has(e))return void u(qt.get(e));let n=!1;return function(e){const t=qt.get(e);if(void 0!==t)return Promise.resolve(t);const n=Vt.get(e);if(n)return n;const o=fetch(e,{credentials:"omit"}).then(e=>{if(!e.ok)throw new Error(`SVG fetch failed: ${e.status}`);return e.text()}).then(t=>(qt.set(e,t),Vt.delete(e),t)).catch(t=>{throw Vt.delete(e),t});return Vt.set(e,o),o}(e).then(e=>{n||u(e)}).catch(()=>{n||u(null)}),()=>{n=!0}},[e]);const m={display:"inline-block",width:t,height:n,lineHeight:0,...a};return d?(0,c.jsx)("img",{src:Xt(d,o,r),alt:l??"","aria-hidden":!l||void 0,role:l?"img":"presentation","aria-label":l||void 0,style:{...m,objectFit:"contain"}}):(0,c.jsx)("img",{src:e,alt:l??"","aria-hidden":!l||void 0,style:{...m,objectFit:"contain"}})}function Jt({iconUrl:e,gameName:t,onPress:n,size:o=120,brandColor:r="#0F4C5C",cardColor:l="#DDD9D2",iconColor:s,accentColor:a,captionColor:i="#14687C",className:d,ariaLabel:u}){const m=(t||"").toUpperCase(),p=o/360,h=s??l,f=I(r,a,h),x=n=>(0,c.jsxs)("div",{style:{position:"relative",width:o,height:o},children:[(0,c.jsxs)("svg",{viewBox:"0 0 360 360",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%",role:"img","aria-label":u??`Press to play ${t}`,children:[(0,c.jsx)("rect",{x:"2",y:"2",width:"356",height:"356",rx:"78",fill:l,stroke:r,strokeWidth:"4"}),(0,c.jsx)("g",{style:{transform:n?"translate(0px, 0px)":"translate(50px, 50px)",transformOrigin:"145px 110px",transition:"transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1)"},children:(0,c.jsx)("rect",{x:"40",y:"5",width:"210",height:"210",rx:"42",fill:r,opacity:"0.30"})}),(0,c.jsx)("g",{style:{transform:n?"translate(0px, 0px)":"translate(25px, 25px)",transformOrigin:"145px 110px",transition:"transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1)"},children:(0,c.jsx)("rect",{x:"40",y:"5",width:"210",height:"210",rx:"42",fill:r,opacity:"0.55"})}),(0,c.jsx)("rect",{x:"40",y:"5",width:"210",height:"210",rx:"42",fill:r}),(0,c.jsx)("text",{x:"180",y:"305",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"32",letterSpacing:"1.5",textAnchor:"middle",fontWeight:800,fill:r,children:"PRESS TO PLAY"}),(0,c.jsx)("text",{x:"180",y:"338",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"18",letterSpacing:"2",textAnchor:"middle",fontWeight:500,fill:i,children:m})]}),(0,c.jsx)("div",{style:{position:"absolute",left:60*p,top:25*p,width:170*p,height:170*p,pointerEvents:"none"},children:(0,c.jsx)(Qt,{iconUrl:e,width:"100%",height:"100%",iconColor:h,accentColor:f})})]});return n?(0,c.jsx)(_t,{size:o,onPress:n,className:d,ariaLabel:u??`Press to play ${t}`,renderInner:x}):(0,c.jsx)("div",{className:d,style:{width:o,height:o},children:x(!1)})}function _t({size:e,onPress:t,className:n,ariaLabel:o,renderInner:r}){const[l,a]=(0,s.useState)(!1),[i,d]=(0,s.useState)(!1),u=i?"scale(0.96)":"scale(1)";return(0,c.jsx)("button",{type:"button",onClick:t,"aria-label":o,className:n,onMouseEnter:()=>a(!0),onMouseLeave:()=>{a(!1),d(!1)},onMouseDown:()=>d(!0),onMouseUp:()=>d(!1),onTouchStart:()=>d(!0),onTouchEnd:()=>d(!1),onBlur:()=>{d(!1),a(!1)},style:{width:e,height:e,padding:0,background:"transparent",border:0,cursor:"pointer",borderRadius:e/360*78,transform:u,transition:"transform 140ms ease-out"},children:r(l||i)})}function en(e){return e.selectionCard??e.backgroundAlt}function tn({color:e,size:t=20,label:n="Loading"}){return(0,c.jsx)("div",{role:"status","aria-label":n,className:"inline-flex items-center justify-center",children:(0,c.jsxs)("svg",{className:"animate-spin",style:{width:t,height:t,color:e},viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,children:[(0,c.jsx)("circle",{cx:"12",cy:"12",r:"10",strokeOpacity:"0.25"}),(0,c.jsx)("path",{d:"M12 2a10 10 0 0 1 10 10",strokeLinecap:"round"})]})})}function nn({color:e="#ffffff",size:t=18}){return(0,c.jsx)(tn,{color:e,size:t,label:"Loading"})}function on({color:e,className:t="",style:n}){return(0,c.jsx)("span",{className:`inline-block animate-pulse rounded-md ${t}`,style:{backgroundColor:e,opacity:.35,...n},"aria-hidden":!0})}function rn({className:e="",bodyFont:t,children:n}){return(0,c.jsx)("div",{className:`flex flex-col min-h-full w-full min-w-0 ${e}`,style:{fontFamily:t},children:(0,c.jsx)("div",{className:"flex-1 w-full min-w-0",children:n})})}function ln({colors:e,count:t=2}){return(0,c.jsx)("div",{className:"grid grid-cols-1 min-[400px]:grid-cols-2 gap-2.5 sm:gap-3 w-full","aria-hidden":!0,children:Array.from({length:t}).map((t,n)=>(0,c.jsxs)("div",{className:"flex flex-col items-start justify-center gap-2 sm:gap-3 rounded-2xl border p-3.5 sm:p-5 w-full min-h-[112px] sm:min-h-[140px]",style:{backgroundColor:en(e),borderColor:e.border},children:[(0,c.jsx)(on,{color:e.textMuted,className:"h-5 w-[11rem] max-w-full"}),(0,c.jsx)(on,{color:e.textMuted,className:"h-3 w-24 max-w-[70%]"})]},n))})}function sn({colors:e,count:t=4}){return(0,c.jsx)("div",{className:"grid grid-cols-2 gap-3 w-full","aria-hidden":!0,children:Array.from({length:t}).map((t,n)=>(0,c.jsxs)("div",{className:"flex flex-col items-center gap-2 rounded-2xl border px-3 py-3 sm:flex-row sm:gap-3.5 sm:px-4 sm:py-4 w-full min-w-0",style:{backgroundColor:en(e),borderColor:e.border},children:[(0,c.jsx)(on,{color:e.textMuted,className:"h-10 w-10 sm:h-12 sm:w-12 rounded-xl shrink-0"}),(0,c.jsxs)("div",{className:"flex w-full min-w-0 flex-col items-center gap-1.5 sm:w-auto sm:items-start",children:[(0,c.jsx)(on,{color:e.textMuted,className:"h-3.5 w-20 max-w-full"}),(0,c.jsx)(on,{color:e.textMuted,className:"h-2.5 w-12 max-w-[80%]"})]})]},n))})}function an({colors:e,count:t=3}){return(0,c.jsx)("div",{className:"grid grid-cols-1 gap-2.5 sm:gap-3 w-full","aria-hidden":!0,children:Array.from({length:t}).map((t,n)=>(0,c.jsxs)("div",{className:"flex min-h-16 items-center justify-between gap-3 rounded-2xl border px-3.5 py-3.5 sm:px-5 sm:py-4 w-full",style:{backgroundColor:en(e),borderColor:e.border},children:[(0,c.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,c.jsx)("div",{className:"rounded-xl px-3 py-2.5",style:{backgroundColor:e.backgroundAlt},children:(0,c.jsx)(on,{color:e.textMuted,className:"h-4 w-44 max-w-full"})}),(0,c.jsx)(on,{color:e.textMuted,className:"h-3 w-40 max-w-[80%] mt-2"})]}),(0,c.jsx)(on,{color:e.textMuted,className:"h-5 w-5 rounded shrink-0"})]},n))})}function cn({colors:e,tileSize:t=116}){return(0,c.jsxs)("div",{className:"flex flex-col items-center rounded-3xl border px-5 pt-[22px] pb-5 w-[86%] max-w-[380px] mx-auto",style:{borderColor:e.border,backgroundColor:en(e)},"aria-hidden":!0,children:[(0,c.jsx)(on,{color:e.textMuted,className:"rounded-2xl",style:{width:t,height:t}}),(0,c.jsx)(on,{color:e.textMuted,className:"h-3 w-11 mt-3"}),(0,c.jsx)(on,{color:e.textMuted,className:"h-5 w-36 max-w-[80%] mt-2"}),(0,c.jsx)(on,{color:e.textMuted,className:"h-3 w-48 max-w-[90%] mt-3"}),(0,c.jsx)(on,{color:e.textMuted,className:"h-3 w-40 max-w-[75%] mt-1.5"})]})}function dn({colors:e}){return(0,c.jsx)("div",{className:"grid grid-cols-3 gap-2 mb-3 w-full","aria-hidden":!0,children:[0,1,2].map(t=>(0,c.jsx)(on,{color:e.textMuted,className:"h-[38px] w-full rounded-full"},t))})}function un({colors:e,count:t=3,tileSize:n=116,showTierTabs:o=!1}){return(0,c.jsxs)("div",{className:"flex flex-col w-full","aria-hidden":!0,children:[o&&(0,c.jsx)(dn,{colors:e}),(0,c.jsx)(cn,{colors:e,tileSize:n}),t>1&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"flex items-center justify-center gap-2.5 pt-4 pb-2",children:Array.from({length:t}).map((t,n)=>(0,c.jsx)(on,{color:e.textMuted,className:"rounded-full",style:{width:0===n?22:7,height:7}},n))}),(0,c.jsxs)("div",{className:"mt-1 pt-2.5",style:{borderTop:`1px solid ${e.border}`},children:[(0,c.jsx)(on,{color:e.textMuted,className:"h-2.5 w-16 mb-2"}),(0,c.jsx)("div",{className:"grid gap-1",style:{gridTemplateColumns:"repeat(auto-fit, minmax(84px, 1fr))"},children:Array.from({length:t}).map((t,n)=>(0,c.jsxs)("div",{className:"flex flex-col items-center gap-1.5 px-1 py-1.5",children:[(0,c.jsx)(on,{color:e.textMuted,className:"h-[52px] w-[52px] rounded-2xl"}),(0,c.jsx)(on,{color:e.textMuted,className:"h-2.5 w-12"})]},n))})]})]})]})}function mn({colors:e,groups:t=2,rowsPerGroup:n=2}){return(0,c.jsxs)("div",{className:"space-y-4 sm:space-y-6 pb-16 w-full","aria-hidden":!0,children:[(0,c.jsx)(on,{color:e.textMuted,className:"h-7 w-[4.5rem] rounded-full"}),(0,c.jsx)("div",{className:"space-y-4",children:Array.from({length:t}).map((t,o)=>(0,c.jsxs)("div",{className:"rounded-xl border overflow-hidden w-full",style:{borderColor:e.border,backgroundColor:en(e)},children:[(0,c.jsxs)("div",{className:"px-4 py-3 flex flex-col gap-1.5",style:{backgroundColor:e.backgroundAlt},children:[(0,c.jsx)(on,{color:e.textMuted,className:"h-4 w-44 max-w-[80%]"}),(0,c.jsx)(on,{color:e.textMuted,className:"h-3 w-24"})]}),(0,c.jsx)("div",{className:"divide-y",style:{borderColor:e.border},children:Array.from({length:n}).map((t,n)=>(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 px-4 py-3 sm:py-3.5",style:{borderColor:e.border},children:[(0,c.jsx)(on,{color:e.textMuted,className:"h-4 flex-1 max-w-[58%]"}),(0,c.jsxs)("div",{className:"flex gap-1.5 shrink-0",children:[(0,c.jsx)(on,{color:e.textMuted,className:"h-7 w-11 sm:h-8 sm:w-12 rounded-lg"}),(0,c.jsx)(on,{color:e.textMuted,className:"h-7 w-11 sm:h-8 sm:w-12 rounded-lg"})]})]},n))})]},o))})]})}function pn({colors:e}){return(0,c.jsx)("div",{className:"flex border-b mb-4 w-full",style:{borderColor:e.border},"aria-hidden":!0,children:[0,1].map(t=>(0,c.jsxs)("div",{className:"flex items-center gap-2 px-4 py-2.5 border-b-2 border-transparent",children:[(0,c.jsx)(on,{color:e.textMuted,className:"h-3.5 w-[4.25rem]"}),(0,c.jsx)(on,{color:e.textMuted,className:"h-5 min-w-[1.25rem] w-5 rounded-full"})]},t))})}function hn({colors:e}){return(0,c.jsxs)("div",{className:"rounded-lg border overflow-hidden w-full",style:{borderColor:e.border,backgroundColor:en(e)},"aria-hidden":!0,children:[(0,c.jsxs)("div",{className:"w-full px-4 py-3 flex items-center justify-between gap-3",children:[(0,c.jsxs)("div",{className:"min-w-0 flex-1 flex flex-col gap-1.5",children:[(0,c.jsx)(on,{color:e.textMuted,className:"h-[18px] w-40 max-w-[75%]"}),(0,c.jsx)(on,{color:e.textMuted,className:"h-3 w-32 max-w-[65%]"})]}),(0,c.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[(0,c.jsx)(on,{color:e.textMuted,className:"h-3.5 w-10"}),(0,c.jsx)(on,{color:e.textMuted,className:"h-6 w-[3.75rem] rounded-full"})]})]}),(0,c.jsx)("div",{className:"border-t divide-y w-full",style:{borderColor:e.border},children:[0,1,2].map(t=>(0,c.jsxs)("div",{className:"px-4 py-2.5 flex items-center justify-between gap-3",children:[(0,c.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col gap-1",children:[(0,c.jsx)(on,{color:e.textMuted,className:"h-3.5 w-[88%]"}),(0,c.jsx)(on,{color:e.textMuted,className:"h-3 w-[70%]"})]}),(0,c.jsx)(on,{color:e.textMuted,className:"h-5 w-10 rounded shrink-0"})]},t))})]})}function fn({colors:e,rows:t=2}){return(0,c.jsxs)("div",{className:"w-full flex flex-col","aria-hidden":!0,children:[(0,c.jsx)(pn,{colors:e}),(0,c.jsx)("div",{className:"space-y-3 w-full",children:Array.from({length:t}).map((t,n)=>(0,c.jsx)(hn,{colors:e},n))})]})}function xn({colors:e,bodyFont:t,message:n,className:o="",variant:r="category",showLogoArea:l=!1,gameCardCount:s=3,categoryCount:a=2,showTierTabs:i=!1}){const d=(()=>{switch(r){case"sport":return(0,c.jsx)(sn,{colors:e,count:Math.max(a,2)});case"event":return(0,c.jsx)(an,{colors:e});case"games":return(0,c.jsx)(un,{colors:e,count:s,showTierTabs:i});case"propositions":return(0,c.jsx)(mn,{colors:e});case"entries":return(0,c.jsx)(fn,{colors:e,rows:2});default:return(0,c.jsx)(ln,{colors:e,count:a})}})(),u=n?.trim()||"Loading";return(0,c.jsx)(rn,{className:o,bodyFont:t,children:(0,c.jsxs)("div",{role:"status","aria-live":"polite","aria-label":u,className:"w-full min-w-0",children:[n?.trim()?(0,c.jsx)("p",{className:"text-sm text-center mb-4",style:{color:e.textMuted,fontFamily:t,margin:0},children:n}):null,d]})})}function gn(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function yn(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function bn(e){if(!e||e.quick_pick_only)return!1;const t=yn(e.selection_scope);if("samegamemulti"===yn(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(yn);return n.includes("samegame")||n.includes("samegamemulti")}function wn(e){return(e.eventId??e.event_id)?.trim()||null}function kn(e){const t=new Map;for(const n of e){if(!Fn(n))continue;const e=wn(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=vn(o.homeTeam,n.home_team),o.awayTeam=vn(o.awayTeam,n.away_team),o.sport=vn(o.sport,n.sport),o.league=vn(o.league,n.league),o.commenceTime=Cn(o.commenceTime,n.commence_time)):t.set(e,{id:e,homeTeam:n.home_team?.trim()||void 0,awayTeam:n.away_team?.trim()||void 0,commenceTime:n.commence_time?.trim()||void 0,sport:n.sport?.trim()||void 0,league:n.league?.trim()||void 0,propositionCount:1})}return[...t.values()].sort((e,t)=>{const n=Nn(e.commenceTime),o=Nn(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function vn(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function Nn(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function Cn(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=Nn(e),r=Nn(n);return r!==o?r<o?n:e:e.localeCompare(n)<=0?e:n}function Fn(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function Bn(e,t){return t?e.filter(e=>Fn(e)&&wn(e)===t):[]}function An(e,t){return!!t&&e.length>0&&e.every(e=>Fn(e)&&wn(e)===t)}var Mn={signature:1,premier:2,exclusive:3},Sn=[{id:"signature",label:"Signature Games",shortLabel:"Signature",level:1},{id:"premier",label:"Premier Games",shortLabel:"Premier",level:2},{id:"exclusive",label:"Exclusive Games",shortLabel:"Exclusive",level:3}];function Ln(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function zn(e,t){return e.filter(e=>Ln(e)===t)}function Pn(e){const t=new Set(e.map(Ln));return Sn.filter(e=>t.has(e.level))}function Tn(e){return Pn(e)[0]?.id??"signature"}var On=[1,5,10,20,50],Dn=[4,12];function En(e){return(e??"").trim().toLowerCase()}var jn={straight:"mirror",double:"double_mirror",triple:"triple_mirror"};function Yn(e){if(!e||e.quick_pick_only)return!1;const t=En(e.rule);return Object.values(jn).includes(t)}function Hn(e,t,n){const o=n?.operatorMargin??.21875,r=n?.perLegProbability??.5,l=Math.round(Math.pow(2,t)),s=Math.pow(r,t)+Math.pow(1-r,t),a=Math.round(1/s),i=(1-o)*Math.pow(2,t-1);return{legs:t,stake:e,prize:Math.round(e*i*100)/100,multiple:i,totalOutcomes:l,winningOutcomes:2,oddsOneIn:a}}function Rn(e){if(!Yn(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Dn[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Dn[1],o=Wn(function(e){const t=En(e?.rule);return Object.keys(jn).find(e=>jn[e]===t)??"straight"}(e)),r=(e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n)).filter(e=>e>=o.minLegs);if(0===r.length)return null;const l=Math.max(e.min_bet??1,.01),s=e.max_bet??null,a=On.filter(e=>e>=l&&(null===s||e<=s));return{variant:o,legOptions:r,defaultLegs:r.includes(8)?8:r[Math.floor(r.length/2)],defaultStake:Math.min(Math.max(20,l),s??20),minStake:l,maxStake:s,quickStakes:a,tagline:o.tagline,operatorMargin:e.operator_margin??.21875,perLegProbability:e.payout_structure?.per_leg_probability??.5}}var Gn=[{id:"straight",name:"Straight Mirror",depth:1,minLegs:4,waysToWin:"2 ways to win",description:"All or nothing. Get every call right, or every call wrong. Both pay the same.",tagline:"Call every leg. Get them all right, you win — all wrong, you win the same.",tierNames:["Perfect"]},{id:"double",name:"Double Mirror",depth:2,minLegs:6,waysToWin:"4 ways to win",description:"Perfect, or one off, at either edge. All right or all wrong, plus the near miss on each side.",tagline:"Perfect, or one off, at either edge — four ways to land a win.",tierNames:["Perfect","Near"]},{id:"triple",name:"Triple Mirror",depth:3,minLegs:9,waysToWin:"6 ways to win",description:"Within two of a clean sweep, either way. Longer legs only, so you still miss the middle.",tagline:"Within two of a clean sweep, either way — six ways to land a win.",tierNames:["Perfect","Near","Third"]}];function Wn(e){return Gn.find(t=>t.id===e)??Gn[0]}function In(e,t){if(t<0||t>e)return 0;const n=Math.min(t,e-t);let o=1;for(let r=0;r<n;r++)o=o*(e-r)/(r+1);return Math.round(o)}var Un=[4,12],$n=[5,10,20,50];function Kn(e){return!!e&&!e.quick_pick_only&&"safety_net"===(e.rule??"").trim().toLowerCase()}function Zn(e){const t=e.payout_structure;return{margin:e.operator_margin??0,perLegProbability:t?.per_leg_probability??.5,perfectMultiple:t?.perfect_prize?.stake_multiple??25,perfectBaseLegs:t?.perfect_prize?.base_legs??6,nearMissBudgetFraction:t?.near_miss?.budget_fraction??.5,roundTo:t?.round_to??5}}function qn(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)}function Vn(e,t){if(t<0||t>e)return 0;let n=1;for(let o=0;o<t;o+=1)n=n*(e-o)/(o+1);return Math.round(n)}function Xn(e,t,n,o){const r=Math.max(0,Math.min(n,t)),l=e*o.perfectMultiple*Math.pow(2,t-o.perfectBaseLegs),s=r>0?e*(1-o.margin)*o.nearMissBudgetFraction/r:0,a=Math.pow(1/o.perLegProbability,t),i=[];let c=Vn(t,0);for(let d=1;d<=r;d+=1)c+=Vn(t,d),i.push(qn(s*a/c,o.roundTo));return{legs:t,stake:e,allowedMisses:r,perfect:l,nearMiss:i,sweep:l+i.reduce((e,t)=>e+t,0)}}function Qn(e,t){if(t<0||t>e.allowedMisses)return 0;let n=0===t?e.perfect:0;for(let o=Math.max(1,t);o<=e.nearMiss.length;o+=1)n+=e.nearMiss[o-1];return n}function Jn(e){return e.includes(8)?8:e[Math.floor(e.length/2)]}function _n(e){return e.toLowerCase().replace(/[^a-z]+/g," ").trim()}function eo(e,t){const n=_n(t);return e.permitted_rules?.find(e=>_n(e.name??"").includes(n))??null}function to(e,t,n){const o=t?.min_propositions??n,r=t?.max_propositions??null;return e.filter(e=>e>=o&&(null==r||e<=r))}function no(e){if(!Kn(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Un[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Un[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n),r=eo(e,"Extra Shot"),l=eo(e,"Double Shot"),s=to(o,r,4).filter(e=>e>1),a=to(o,l,6).filter(e=>e>2);if(0===s.length)return null;const i=[{id:"extra_shot",label:"Extra Shot",allowedMisses:1,stat:"Bigger payout",explain:"Miss one leg and you win the All but 1 prize. Get every leg right and you win both — the Perfect prize on top.",legOptions:s,defaultLegs:Jn(s),ruleId:r?.id??null}],c=!e.permitted_rules?.length||!!l;a.length>0&&c&&i.push({id:"double_shot",label:"Double Shot",allowedMisses:2,stat:"Safer play",explain:"Miss two legs and you win the All but 2 prize. Miss one and you win two prizes. Get every leg right and you win all three — the whole stack.",legOptions:a,defaultLegs:Jn(a),ruleId:l?.id??null});const d=Math.max(e.min_bet??5,.01),u=e.max_bet??null,m=$n.filter(e=>null===u||e<=u);return{modes:i,defaultModeId:"extra_shot",defaultStake:Math.min(Math.max(20,d),u??20),minStake:d,maxStake:u,quickAdds:m,tagline:"The wider the safety net, the more misses it catches. The narrower it is, the bigger the top prize.",pricing:Zn(e)}}function oo(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function ro(e,t,n){const o=Math.max(0,e-t),r=Xn(20,e,o,n),l=[];for(let s=0;s<=o;s+=1){const t=Math.round(Qn(r,s));l.push({misses:s,label:`${e-s}/${e}`,multiplier:t/20,payout20:t})}return l}function lo(e,t){return[{id:"net-1",label:"Extra Shot",stat:"Bigger payout",detail:["One wrong wins a prize","Perfect wins both","Miss twice and the ticket does not pay"],dividends:ro(e,e-1,t),expectedCorrect:e-1},{id:"net-2",label:"Double Shot",stat:"Safer play",detail:["Two wrong wins a prize","One wrong wins two","Perfect wins all three"],dividends:ro(e,e-2,t),expectedCorrect:e-2}]}function so(e,t){if(!e||e.quick_pick_only)return null;const n=function(e){return(e??"").trim().toLowerCase()}(e.rule),o=t??e.num_propositions??e.min_propositions??e.allowed_propositions?.[0]??0;return"safety_net"===n&&o>0?function(e,t){return{mode:"selection",kind:"safety_net",title:"Choose your safety net",headline:"2 Ways to PLAY, more ways to PAY",heroTagline:"The wider the safety net, the more misses it catches. The narrower it is, the bigger the top prize.",legCount:t,options:lo(t,Zn(e)),continueLabel:"Continue to picks"}}(e,o):"exact"===n&&o>0?function(e,t){return{mode:"selection",kind:"exact",title:"All or nothing",headline:"Get it PERFECT, take the top PAY",heroTagline:"Every pick has to land. Miss a single one and the ticket is gone — but a clean sweep pays the biggest prize.",legCount:t,options:oo(t),continueLabel:"Continue to picks"}}(0,o):"pick"===n&&o>0?function(e,t){return{mode:"description",kind:"pick",title:"How it plays",headline:"Every hit PLAYS, every hit PAYS",heroTagline:"No all-or-nothing — your multiplier climbs with every correct pick.",legCount:t,highlights:["Make your yes/no picks across the available markets","Each correct pick pushes your multiplier higher","Land fewer than the full card and you can still cash"],continueLabel:"Continue to picks"}}(0,o):null}function ao(e){return null!=so(e)}var io=[500,1e3,2500,5e3,7500,1e4,12500,15e3],co=[12,11,10,9,8,7,6];function uo(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function mo(e){return Math.round(100*e)/100}function po(e,t,n=.21875){const o=Math.pow(2,t),r=e/(1-n)/o,l=Number.isInteger(r),s=mo(r),a=l?r:mo(.96*r);return{legs:t,exactStake:s,stake:a,margin:1-e/(a*o),multiple:e/a,oddsOneIn:o,discounted:!l}}function ho(e,t=co){return{dividend:e,rungs:t.map(t=>po(e,t))}}function fo(e,t){if(!uo(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,r=co.filter(e=>e>=n&&e<=o);if(0===r.length)return null;const l=t?.dividends??io;return{dividends:l.map(e=>ho(e,r)),defaultDividend:l.includes(1e4)?1e4:l[Math.floor(l.length/2)],defaultLegs:r.includes(9)?9:r[Math.floor(r.length/2)],tagline:"The dividend is set. The win is yours to build."}}function xo(e,t){const n=e.allowed_propositions&&e.allowed_propositions.length>0?e.allowed_propositions.map(Number):[],o=e.min_propositions??e.num_propositions??null,r=e.max_propositions??e.num_propositions??null,l=0===n.length&&null!==o&&null!==r&&r>0,s=n.length>0?n:l?Kt(o,r):[],a=new Map;for(const f of t?.top_payouts??[]){const e=Number(f.proposition_count),t=Number(f.net_payout),n=Number(f.bet_amount??20);!Number.isFinite(e)||e<=0||a.set(e,{count:e,payout:Number.isFinite(t)?t:0,betAmount:Number.isFinite(n)&&n>0?n:20})}for(const f of s){const e=Number(f);a.has(e)||a.set(e,{count:e,payout:0,betAmount:20})}const i=Array.from(a.values()).sort((e,t)=>e.count-t.count),c=s.length>0?Math.max(...s.map(Number)):0,d=uo(e)?fo(e):null,u=d?d.dividends.map(e=>({dividend:e.dividend,stakeFrom:Math.min(...e.rungs.map(e=>e.stake))})):void 0,m=d?[]:i.map(e=>({count:e.count,payout20:e.payout>0&&e.betAmount>0?e.payout/e.betAmount*20:0})),p=so(e,c),h="safety_net"===p?.kind?(p.options??[]).flatMap(e=>e.dividends?.length?[{id:e.id,label:e.label,tiers:e.dividends.map(e=>({label:e.label,payout20:e.payout20}))}]:[]):[];return{legOptions:s.map(Number),maxLegCount:c,tiers:m,modes:h,pydDividends:u,hasGenericDividends:(n.length>0||l)&&m.some(e=>e.payout20>0),minBet:Math.max(e.min_bet??1,1),maxBet:e.max_bet??null}}function go({tiers:e,modes:t,pydDividends:n,onPlayCount:o,minBet:r=1,maxBet:l=null,colors:a,bodyFont:i,headingFont:d}){const u=e=>Math.min(Math.max(e,r),l??1/0),[m,p]=(0,s.useState)(()=>String(u(20))),h=parseFloat(m),f=u(Number.isFinite(h)&&h>0?h:20),x=f/20,g=!!(t?.length||n?.length||e.some(e=>e.payout20>0)),y=!!t?.length;if(!g)return null;const b=(0,c.jsxs)("p",{className:"mb-2 flex items-center gap-1 text-[10px] italic",style:{color:a.textMuted,margin:"0 0 8px"},children:["Example values for a",(0,c.jsxs)("span",{className:"inline-flex items-center not-italic",style:{fontWeight:700,fontSize:11},children:["$",(0,c.jsx)("input",{type:"number",min:r,max:l??void 0,value:m,onChange:e=>p(e.target.value),onBlur:()=>p(String(f)),"aria-label":"Example bet amount",style:{width:74,marginLeft:2,padding:"2px 5px",borderRadius:6,border:`1px solid ${a.border}`,backgroundColor:a.background??"#fff",color:a.text,fontSize:11,fontWeight:600,fontStyle:"normal",fontFamily:i}})]}),"bet",null!=l?` (${ht(r)}–${ht(l)})`:` (min ${ht(r)})`,"."]}),w={marginTop:10,borderRadius:14,border:`1px solid ${a.border}`,backgroundColor:a.backgroundAlt??"#FCFBF9",padding:"12px 14px",textAlign:"left",fontFamily:i};return(0,c.jsxs)("div",{className:"w-full",children:[y&&(0,c.jsx)("div",{className:"text-[11px] font-bold uppercase",style:{color:a.textMuted,letterSpacing:"0.14em"},children:"Compare dividends"}),(0,c.jsxs)("div",{style:w,children:[!n?.length&&b,t?.length?t.map((e,t)=>(0,c.jsxs)("div",{style:{borderTop:0===t?"none":`1px solid ${a.border}`,paddingTop:0===t?0:8,marginTop:0===t?0:8},children:[(0,c.jsx)("div",{className:"text-[11px] font-bold mb-1",style:{color:a.text,fontFamily:d},children:e.label}),e.tiers.map(e=>(0,c.jsxs)("div",{className:"flex items-center justify-between py-1",style:{gap:14},children:[(0,c.jsxs)("span",{style:{color:a.textMuted,fontSize:11,flex:1},children:[e.label," correct"]}),(0,c.jsx)("span",{style:{fontWeight:700,color:a.heading??a.text,fontSize:12},children:ht(e.payout20*x)})]},e.label))]},e.id)):n?.length?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"flex items-center justify-between pb-1 mb-1",style:{borderBottom:`1px solid ${a.border}`},children:[(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Dividend"}),(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Stake from"})]}),n.map(e=>(0,c.jsxs)("div",{className:"flex items-center justify-between py-1",children:[(0,c.jsx)("span",{style:{fontWeight:700,color:a.heading??a.text,fontSize:12},children:ht(e.dividend)}),(0,c.jsx)("span",{style:{fontWeight:600,color:a.text,fontSize:12},children:ht(e.stakeFrom)})]},e.dividend)),(0,c.jsx)("p",{className:"mt-2 text-[10px] italic",style:{color:a.textMuted},children:"You set the dividend before kick-off. Longer climbs start from a smaller stake."})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"flex items-center justify-between pb-1 mb-1",style:{borderBottom:`1px solid ${a.border}`},children:[(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Legs played"}),(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Payout"})]}),e.map(e=>{const t=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{style:{fontWeight:600,color:o?a.primary:a.text,fontSize:12},children:[e.count," legs"]}),(0,c.jsx)("span",{style:{fontWeight:600,color:e.payout20>0?a.text:a.textMuted,fontSize:12},children:e.payout20>0?ht(e.payout20*x):"—"})]});return o?(0,c.jsx)("button",{type:"button",onClick:()=>o(e.count),className:"flex w-full items-center justify-between py-1.5 text-left",style:{background:"transparent",border:"none",cursor:"pointer"},children:t},e.count):(0,c.jsx)("div",{className:"flex items-center justify-between py-1",children:t},e.count)})]})]})]})}function yo({tabs:e,active:t,onChange:n,colors:o,bodyFont:r}){return e.length<=1?null:(0,c.jsx)("div",{className:"grid gap-2 mb-3",style:{gridTemplateColumns:`repeat(${Math.min(e.length,3)}, minmax(0, 1fr))`},children:e.map(e=>{const l=e.id===t;return(0,c.jsxs)("button",{type:"button",onClick:()=>n(e.id),className:"min-w-0 rounded-full px-1 py-2.5 text-[10px] font-bold whitespace-nowrap transition-transform active:translate-y-1",style:{fontFamily:r,letterSpacing:"-0.01em",border:`1px solid ${l?o.primary:o.border}`,backgroundColor:l?o.primary:o.background??"#fff",color:l?o.primaryText:o.primary,boxShadow:l?`0 4px 0 ${M(o.primary,.55)}, 0 7px 12px -4px ${M(o.primary,.35)}`:`0 4px 0 ${M(o.border,.9)}, 0 6px 10px -4px ${M(o.primary,.18)}`,cursor:"pointer"},children:[(0,c.jsx)("span",{className:"hidden min-[380px]:inline",children:e.label}),(0,c.jsx)("span",{className:"min-[380px]:hidden",children:e.shortLabel})]},e.id)})})}function bo({iconUrl:e,size:t,brandColor:n,iconColor:o,accentColor:r}){return(0,c.jsxs)("div",{style:{position:"relative",width:t,height:t},children:[(0,c.jsxs)("svg",{viewBox:"30 -5 280 280",width:"100%",height:"100%","aria-hidden":"true",style:{display:"block"},children:[(0,c.jsx)("rect",{x:"90",y:"55",width:"210",height:"210",rx:"42",fill:n,opacity:"0.3"}),(0,c.jsx)("rect",{x:"65",y:"30",width:"210",height:"210",rx:"42",fill:n,opacity:"0.55"}),(0,c.jsx)("rect",{x:"40",y:"5",width:"210",height:"210",rx:"42",fill:n})]}),(0,c.jsx)("div",{style:{position:"absolute",left:"10.7%",top:"10.7%",width:"60.7%",height:"60.7%",pointerEvents:"none"},children:(0,c.jsx)(Qt,{iconUrl:e,width:"100%",height:"100%",iconColor:o,accentColor:r})})]})}function wo({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:r,iconColor:l,accentColor:a,captionColor:i,bodyFont:u,legOptions:m,onPick:p,colors:h,menuShadow:f}){const[x,g]=(0,s.useState)(!1),[y,b]=(0,s.useState)(null),w=(0,s.useRef)(null),k=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(!x)return void b(null);const e=()=>{const e=w.current;if(!e||"undefined"==typeof window)return;const t=e.getBoundingClientRect(),n=40+40*m.length+12,o=window.innerHeight-t.bottom,r=o<n&&t.top>o;b({top:t.top,bottom:t.bottom,right:t.right,flipUp:r,avail:Math.max((r?t.top:o)-12,132)})};e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0);const t=e=>{const t=e.target;w.current?.contains(t)||k.current?.contains(t)||g(!1)};return document.addEventListener("mousedown",t),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0),document.removeEventListener("mousedown",t)}},[x,m.length]);const v=x&&y&&"undefined"!=typeof document?(0,d.createPortal)((0,c.jsxs)("div",{ref:k,role:"menu",className:"rounded-lg overflow-y-auto overscroll-contain",style:{position:"fixed",maxHeight:y.avail,top:y.flipUp?void 0:y.bottom+6,bottom:y.flipUp?window.innerHeight-y.top+6:void 0,left:y.right,transform:"translateX(-100%)",zIndex:20,backgroundColor:h.background,border:`1px solid ${h.border}`,boxShadow:f,minWidth:180,fontFamily:u},children:[(0,c.jsx)("div",{className:"px-3 py-1.5 text-[10px] font-bold tracking-wider uppercase",style:{color:h.text,opacity:.55,borderBottom:`1px solid ${h.border}`},children:"How many picks?"}),m.map((e,t)=>(0,c.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>{g(!1),p(e)},className:"w-full flex items-center justify-between px-3 py-2",style:{background:"transparent",border:"none",cursor:"pointer",borderTop:0===t?"none":`1px solid ${h.border}`},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=h.backgroundAlt},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},children:[(0,c.jsxs)("span",{className:"text-sm font-semibold",style:{color:h.text},children:[e," picks"]}),(0,c.jsx)("span",{className:"text-[10px] font-bold tracking-wider",style:{background:M(h.primary,.14),color:h.primary,padding:"2px 6px",borderRadius:4},children:"QP"})]},e))]}),document.body):null;return(0,c.jsxs)("div",{ref:w,children:[(0,c.jsx)(Jt,{iconUrl:e,gameName:t,onPress:()=>g(e=>!e),size:n,brandColor:o,cardColor:r,iconColor:l,accentColor:a,captionColor:i}),v]})}function ko({games:e,selectedGame:t,onSelectGame:n,loading:o,error:r,theme:l,colorScheme:a,showTier:i=!1,showCategory:d=!1,showTierFilter:u=!1,onPropositionCountChange:m,onPropositionCountSelected:p,onQuickPickGame:h,maxPayouts:f}){const x=pe(l,a),g=x.colors,y=K(x),b=he(x),w=fe(x),k=j(x),v=D(x),N=O(x),C=W(x),F=(0,s.useMemo)(()=>function(e){const t=new Set(e.filter(e=>Yn(e)&&En(e.rule)===jn.straight).map(Ln));return e.filter(e=>!(Yn(e)&&En(e.rule)!==jn.straight&&t.has(Ln(e))))}(e),[e]),B=(0,s.useMemo)(()=>Pn(F),[F]),[A,S]=(0,s.useState)(()=>Tn(F));(0,s.useEffect)(()=>{0!==B.length&&(B.some(e=>e.id===A)||S(B[0].id))},[B,A]);const L=(0,s.useMemo)(()=>!u||B.length<=1?F:zn(F,Mn[A]),[F,u,B.length,A]),z=(0,s.useRef)(null),P=(0,s.useRef)(null),[T,E]=(0,s.useState)(0),[H,R]=(0,s.useState)(0),G=(e,t)=>{e.quick_pick_only&&h&&t>0?h(e,t):(t>0&&!bn(e)&&m?.(t),n(e),p?.())},I=e=>{G(e,xo(e,f?.[e.id]).maxLegCount)};(0,s.useEffect)(()=>{const e=z.current;if(!e)return;E(e.getBoundingClientRect().width);const t=new ResizeObserver(e=>{for(const t of e)E(t.contentRect.width)});return t.observe(e),()=>t.disconnect()},[]);const U=(0,s.useRef)(()=>{}),$=(0,s.useCallback)(e=>{P.current?.removeEventListener("scroll",U.current),P.current=e,e&&(U.current=()=>{const t=e.scrollLeft+e.clientWidth/2;let n=0,o=1/0;Array.from(e.children).forEach((e,r)=>{const l=e,s=Math.abs(l.offsetLeft+l.offsetWidth/2-t);s<o&&(o=s,n=r)}),R(n)},e.addEventListener("scroll",U.current,{passive:!0}),U.current())},[]);(0,s.useEffect)(()=>{U.current()},[T,L.length]),(0,s.useEffect)(()=>{P.current?.scrollTo({left:0}),R(0)},[A]);const Z=e=>e.allowed_propositions&&e.allowed_propositions.length>0&&e.game_name.replace(/\s+\d+\s*$/,"").trim()||e.game_name,q=e=>{const t=P.current,n=t?.children[e];t&&n&&t.scrollTo({left:n.offsetLeft-(t.clientWidth-n.offsetWidth)/2,behavior:"smooth"})};if(o)return(0,c.jsx)(xn,{colors:V(x),bodyFont:b,variant:"games",gameCardCount:Math.min(Math.max(F.length,2),4),showTierTabs:u&&B.length>1});if(r)return(0,c.jsx)("div",{className:"flex items-center justify-center p-8",style:{fontFamily:b},children:(0,c.jsx)("div",{style:{color:g.error},children:r})});if(0===F.length)return(0,c.jsx)("div",{className:"flex items-center justify-center p-8",style:{fontFamily:b},children:(0,c.jsx)("div",{style:{color:g.textMuted},children:"No games available"})});const X=T>0&&T<400,Q=X?108:124,J=T>0?Math.min(.86*T,380):0,_=J>0?Math.max((T-J)/2,4):4,ee=L.length>1,te=ee&&_>=48,ne=e=>({position:"absolute",top:"38%",width:44,height:44,borderRadius:"50%",border:`1px solid ${g.border}`,backgroundColor:M(g.background??"#fff",.94),color:g.primary,fontSize:18,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center",cursor:e?"pointer":"default",opacity:e?1:.3,pointerEvents:e?"auto":"none",boxShadow:N,zIndex:1});return(0,c.jsxs)("div",{ref:z,className:"flex flex-col",style:{fontFamily:b},children:[u&&(0,c.jsx)(yo,{tabs:B,active:A,onChange:S,colors:g,bodyFont:b}),0===L.length?(0,c.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,c.jsx)("div",{style:{color:g.textMuted},children:"No games in this collection"})}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{style:{position:"relative"},children:[(0,c.jsx)("div",{ref:$,className:"blade-game-track",style:{display:"flex",alignItems:"stretch",gap:14,overflowX:"auto",overflowY:"hidden",scrollSnapType:"x mandatory",scrollbarWidth:"none",paddingLeft:_,paddingRight:_,paddingBottom:8,position:"relative"},children:L.map(e=>{const n=Wt(e),o=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>It[e]??`Day ${e}`);return 1===n.length?n[0]:n.slice(0,-1).join(", ")+" & "+n[n.length-1]}(e),r=t?.id===e.id,l=String(e.id),s=Bt(e),a=e.description||e.rule,u=e.call_to_action?.trim()||null,{legOptions:m,maxLegCount:p,tiers:N,modes:F,pydDividends:B,hasGenericDividends:A,minBet:S,maxBet:L}=xo(e,f?.[e.id]),z=ve(e),P=!n&&o?`Available ${o}`:null;return(0,c.jsxs)("article",{className:"flex flex-col items-center text-center",style:{flex:J>0?`0 0 ${J}px`:"0 0 86%",scrollSnapAlign:"center",borderRadius:24,border:`1px solid ${r?g.primary:g.border}`,backgroundColor:r?g.infoBg:g.background??y,boxShadow:v,padding:"22px 20px 20px",opacity:n?1:.5,pointerEvents:n?"auto":"none"},children:[e.quick_pick_only&&h&&m.length>1?(0,c.jsx)(wo,{iconUrl:z,gameName:Z(e),size:Q,brandColor:g.primary,cardColor:y,iconColor:g.primaryText,accentColor:C,captionColor:g.textMuted,bodyFont:b,legOptions:m.map(Number),onPick:t=>G(e,t),colors:g,menuShadow:v}):(0,c.jsx)(Jt,{iconUrl:z,gameName:Z(e),onPress:()=>I(e),size:Q,brandColor:g.primary,cardColor:y,iconColor:g.primaryText,accentColor:C,captionColor:g.primary}),(0,c.jsxs)("div",{className:"mt-2",style:{fontFamily:w,fontSize:13,letterSpacing:"-0.04em",lineHeight:1},children:[(0,c.jsx)("span",{style:{fontWeight:800,color:g.primary},children:"YES"}),(0,c.jsx)("span",{style:{fontWeight:600,color:M(g.primary,.85)},children:"NO"})]}),(0,c.jsxs)("h3",{className:"flex items-center justify-center gap-1.5 font-semibold leading-tight px-1 mt-0.5",style:{fontFamily:w,fontSize:X?19:21,color:k,letterSpacing:"-0.01em"},children:[Z(e),(0,c.jsx)(Ie,{variant:"icon",panel:ze(e),content:a||"Pick outcomes and land the payout for this game.",theme:x,title:Z(e),label:`How to play ${Z(e)}`,extra:(0,c.jsx)(go,{tiers:A?N:[],modes:F,pydDividends:B,onPlayCount:m.length>1?t=>G(e,t):void 0,minBet:S,maxBet:L,colors:g,bodyFont:b,headingFont:w}),colors:g,bodyFont:b,headingFont:w})]}),u&&(0,c.jsx)("p",{className:"mt-1.5 font-bold leading-snug",style:{fontSize:13,color:g.primary,maxWidth:"30ch"},children:u}),a&&(0,c.jsx)("p",{className:"mt-2 leading-relaxed",style:{fontSize:12.5,color:g.textMuted,maxWidth:"34ch"},children:a}),s.enabled&&(0,c.jsxs)("span",{className:"inline-flex w-fit items-center gap-0.5 px-2 py-0.5 rounded-full mt-2",style:{backgroundColor:`${g.warning}15`,color:g.warning,fontSize:10,fontWeight:700},children:["★ ",s.progressive?s.amount>0?ht(s.amount):s.limit>0?`Up to ${ht(s.limit)}`:"Jackpot":ht(s.amount)]}),(d||i)&&(0,c.jsxs)("div",{className:"flex flex-wrap gap-1 justify-center mt-2",children:[d&&e.category&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:g.backgroundAlt,color:Y(x)},children:e.category}),d&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:g.backgroundAlt,color:Y(x)},children:e.rule}),d&&e.lotto_type&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:g.backgroundAlt,color:Y(x)},children:e.lotto_type}),i&&null!=e.tier&&(0,c.jsxs)("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:g.backgroundAlt,color:Y(x)},children:["Tier ",e.tier]})]}),P&&(0,c.jsx)("div",{style:{marginTop:"auto",width:"100%",paddingTop:12},children:(0,c.jsx)("span",{className:"text-[11px] font-semibold leading-snug",style:{color:g.text},children:P})})]},l)})}),te&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("button",{type:"button","aria-label":"Previous game",onClick:()=>q(H-1),style:{...ne(H>0),left:2},children:"‹"}),(0,c.jsx)("button",{type:"button","aria-label":"Next game",onClick:()=>q(H+1),style:{...ne(H<L.length-1),right:2},children:"›"})]})]}),ee&&(0,c.jsx)("div",{className:"flex justify-center flex-wrap pt-1 pb-2",children:L.map((e,t)=>(0,c.jsx)("button",{type:"button","aria-label":`Go to ${Z(e)}`,onClick:()=>q(t),style:{padding:"18.5px 5px",margin:"-18.5px 0",background:"none",border:"none",cursor:"pointer",display:"flex",alignItems:"center"},children:(0,c.jsx)("span",{style:{display:"block",width:t===H?22:7,height:7,borderRadius:999,backgroundColor:t===H?g.primary:M(g.primary,.25),transition:"width 200ms ease, background-color 200ms ease"}})},e.id))}),ee&&(0,c.jsxs)("div",{style:{borderTop:`1px solid ${g.border}`,paddingTop:10,marginTop:2},children:[(0,c.jsx)("div",{className:"text-[10px] font-bold uppercase mb-2",style:{color:g.textMuted,letterSpacing:"0.16em",fontFamily:w},children:"All games"}),(0,c.jsx)("div",{className:"grid gap-1",style:{gridTemplateColumns:`repeat(${dt(L.length,T)}, minmax(0, 1fr))`},children:L.map((e,t)=>{const n=Wt(e);return(0,c.jsxs)("button",{type:"button",onClick:()=>I(e),disabled:!n,"aria-current":t===H,className:"flex flex-col items-center gap-1 px-1 py-1.5 rounded-2xl",style:{border:`1px solid ${t===H?g.primary:"transparent"}`,cursor:n?"pointer":"not-allowed",opacity:n?1:.5,background:"transparent",transition:"border-color 150ms ease"},children:[(0,c.jsx)(bo,{iconUrl:ve(e),size:X?44:52,brandColor:g.primary,iconColor:g.primaryText,accentColor:C}),(0,c.jsx)("span",{className:"text-[11px] font-bold leading-tight",style:{color:t===H?g.primary:k,fontFamily:w,letterSpacing:"-0.01em",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"hidden"},children:Z(e)})]},e.id)})})]})]}),(0,c.jsx)("style",{children:".blade-game-track::-webkit-scrollbar{display:none}"})]})}var vo={today:"Today",weekend:"This weekend",next7:"Next 7 days"},No=["today","weekend","next7"];function Co(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function Fo(e,t,n){if(!e)return!1;const o=new Date(e);if(Number.isNaN(o.getTime()))return!1;const{start:r,end:l}=function(e,t){const n=function(e){const t=new Date(e);return t.setHours(0,0,0,0),t}(t);switch(e){case"today":return{start:n,end:Co(n,1)};case"weekend":{const e=n.getDay(),t=Co(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:Co(t,2)}}case"next7":return{start:n,end:Co(n,7)}}}(t,n);return o>=r&&o<l}var Bo=["totals","spread","player"],Ao={totals:"Total",spread:"Spread",player:"Player"},Mo={totals:"One total per match — the match total, a quarter or a half all count",spread:"One result per match — the line, the margin or the head-to-head all count",player:"One player prop per match"};function So(e,t){return t?`${Mo[e]} (taken)`:Mo[e]}var Lo=/racing|greyhound|harness|trots/,zo=["spread","handicap","margin","line","h2h","head_to_head","moneyline","winner","result"];function Po(e,t,n=""){const o=e.toLowerCase(),r=t.toLowerCase();return Lo.test(o)||Lo.test(n.toLowerCase())?null:o.includes("player")?"player":o.includes("total")||o.includes("over_under")?"totals":zo.some(e=>o.includes(e))||/\bwin(s)?\b/.test(r)?"spread":/\btotal\b/.test(r)?"totals":null}function To(e){return Po(_e(e)??"",et(e),e.sport??"")}function Oo(e,t){if(nt(e)){const n=lt(e,t),o=new Set;for(const t of n?.legs??[]){const n=t.prop?To(t.prop):Po("",t.text,e.sport??"");n&&o.add(n)}return[...o]}const n=To(e);return n?[n]:[]}function Do(e){return wn(e)||[e.home_team,e.away_team].filter(Boolean).join(" vs ").trim()||null}var Eo=new Set;function jo(e,t,n){const o=new Map;for(const l of e){if(!(l.id in t))continue;const e=Do(l);if(e)for(const t of Oo(l,n)){const n=o.get(e)??new Map;n.has(t)||n.set(t,l.id),o.set(e,n)}}const r=e=>{const t=e?o.get(e):void 0;return t?new Set(t.keys()):Eo};return{isCapped:e=>{const t=Do(e);if(!t)return!1;const r=o.get(t);return!!r&&Oo(e,n).some(t=>{const n=r.get(t);return void 0!==n&&n!==e.id})},filledFor:r,slotsFor:e=>{const t=r(e);return Bo.map(e=>({family:e,label:Ao[e],filled:t.has(e)}))}}}var Yo=class{constructor(e){this.inflight=new Map,this.cache=new Map,this.apiUrl=e.apiUrl,this.apiKey=e.apiKey,this.fetchImpl=e.fetchImpl??fetch.bind(globalThis),this.getAuthHeaders=e.getAuthHeaders}invalidateCache(){this.cache.clear()}invalidate(){this.invalidateCache()}async request(e,t,n){const o=`${this.apiUrl}${e}`,r=(t?.method??"GET").toUpperCase(),l="GET"===r,s=l,a=!l&&!n?.idempotent,i=`${r} ${o}`;if(s){const e=this.cache.get(i);if(e&&Date.now()-e.at<5e3)return e.value;const t=this.inflight.get(i);if(t)return t}const c=s?this.cache.get(i):void 0,d=(async()=>{let e;try{const n=this.getAuthHeaders?await this.getAuthHeaders():void 0;e=await this.fetchImpl(o,{...t,headers:{"Content-Type":"application/json",...this.apiKey?{"X-API-Key":this.apiKey}:{},...n??{},...c?.etag?{"If-None-Match":c.etag}:{},...t?.headers}})}catch(r){throw r}if(304===e.status&&c)return s&&this.cache.set(i,{at:Date.now(),value:c.value,etag:c.etag}),c.value;if(!e.ok){let t=`API request failed: ${e.status} ${e.statusText}`;try{const n=await e.json();422===e.status&&n.detail?Array.isArray(n.detail)?t=n.detail.map(e=>`${Array.isArray(e.loc)?e.loc.join("."):"field"}: ${e.msg}`).join("; "):"string"==typeof n.detail?t=n.detail:"object"==typeof n.detail&&(t=JSON.stringify(n.detail)):n.message?t=n.message:n.error&&(t=n.error)}catch{}throw new Error(t)}const n=await e.json();if(s){const t=e.headers.get("ETag")??void 0;this.cache.set(i,{at:Date.now(),value:n,etag:t})}return n})();return s?(this.inflight.set(i,d),d.catch(()=>{}).finally(()=>{this.inflight.delete(i)})):a&&d.finally(()=>this.invalidateCache()).catch(()=>{}),d}async getGames(e){const t=new URLSearchParams;e?.category&&t.append("category",e.category),e?.jurisdiction&&t.append("jurisdiction",e.jurisdiction),e?.sport&&t.append("sport",e.sport);const n=t.toString(),o=n?`/games?${n}`:"/games",r=await this.request(o);return{games:r.payload||[],howToPlayMarkdown:r.how_to_play_markdown??null}}async getGame(e){return(await this.request(`/games/${e}`)).payload}async getPropositions(e){const t=new URLSearchParams;e?.event_id&&t.append("event_id",e.event_id),e?.sport&&t.append("sport",e.sport),e?.category&&t.append("category",e.category);const n=t.toString(),o=n?`/propositions?${n}`:"/propositions";return(await this.request(o)).payload||[]}async getSports(){return(await this.request("/propositions/sports")).sports||[]}async getPropositionsByIds(e){if(0===e.length)return[];const t=new URLSearchParams({ids:e.join(","),include_expired:"true"});return(await this.request(`/propositions?${t.toString()}`)).payload||[]}async getProposition(e){const t=(await this.request(`/propositions/${e}?include_expired=true`)).payload;return Array.isArray(t)?t.find(t=>t.id===e)??t[0]:t}async getGameEntries(e){const t=new URLSearchParams;null!=e?.user_id&&t.append("user_id",String(e.user_id)),null!=e?.pending&&t.append("pending",String(e.pending));const n=t.toString(),o=n?`/game-entries?${n}`:"/game-entries";return((await this.request(o)).payload||[]).map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),null!=t.stake&&null==t.bet_amount&&(t.bet_amount=Number(t.stake)),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t})}async createGameEntry(e){const t=e.proposition_ids.map(t=>({proposition_id:t,user_prediction:e.selections?.[t]??"yes"})),n={game_id:e.game_id,user_id:e.user_id,propositions:t};null!=e.stake&&(n.stake=e.stake),null!=e.rule_id&&(n.rule_id=e.rule_id);const o=(await this.request("/game-entries",{method:"POST",body:JSON.stringify(n)})).payload;return null!=o.stake&&null==o.bet_amount&&(o.bet_amount=Number(o.stake)),o}async getPayoutsDue(e){const t=new URLSearchParams;null!=e?.game_id&&t.set("game_id",String(e.game_id)),null!=e?.limit&&t.set("limit",String(e.limit)),null!=e?.offset&&t.set("offset",String(e.offset));const n=t.toString();return await this.request(n?`/game-entries/payouts/due?${n}`:"/game-entries/payouts/due")}async getEntryPayout(e){return(await this.request(`/game-entries/${e}/payout`)).payload}async markEntryPaidOut(e){const t=await this.request(`/game-entries/${e}/payout/mark-paid-out`,{method:"POST",body:JSON.stringify({})});return this.invalidate(),t.payload}async updateGameEntryResult(e,t){return(await this.request(`/game-entries/${e}/result`,{method:"POST",body:JSON.stringify(t)})).payload}async getGameMaxPayout(e,t){const n=null!=t?`?bet_amount=${encodeURIComponent(String(t))}`:"";return(await this.request(`/games/${e}/max-payout${n}`)).payload}async getGamesMaxPayouts(e,t){if(0===e.length)return{};const n=new URLSearchParams({ids:e.join(",")});null!=t&&n.set("bet_amount",String(t));const o=await this.request(`/games/max-payouts?${n.toString()}`),r={};for(const[l,s]of Object.entries(o.payload||{}))r[Number(l)]=s;return r}async getEntryPreview(e,t){return(await this.request(`/games/${e}/preview`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async evaluateRule(e,t){return(await this.request(`/games/${e}/evaluate-rule`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async calculatePayout(e,t){return(await this.request(`/games/${e}/calculate-payout`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}};function Ho(e,t,n){const[o,r]=(0,s.useState)([]),[l,a]=(0,s.useState)(null),[i,c]=(0,s.useState)(!n?.skip),[d,u]=(0,s.useState)(null),m=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",p=(0,s.useRef)(t);p.current=t;const h=n?.skip??!1,f=(0,s.useCallback)(async()=>{if(!h)try{c(!0),u(null);const t=await e.getGames(p.current);r(t.games),a(t.howToPlayMarkdown)}catch(t){u(t instanceof Error?t.message:"Failed to fetch games")}finally{c(!1)}},[e,m,h]);return(0,s.useEffect)(()=>{f()},[f]),{games:o,howToPlayMarkdown:l,loading:i,error:d,refetch:(0,s.useCallback)(async()=>{e.invalidate(),await f()},[e,f])}}function Ro(e,t,n){const[o,r]=(0,s.useState)([]),[l,a]=(0,s.useState)(!n?.skip),[i,c]=(0,s.useState)(null),d=n?.skip??!1,u=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",m=(0,s.useRef)(t);m.current=t;const p=(0,s.useCallback)(async()=>{if(!d)try{a(!0),c(null);const t=await e.getPropositions(m.current);r(t)}catch(t){c(t instanceof Error?t.message:"Failed to fetch propositions")}finally{a(!1)}},[e,u,d]);return(0,s.useEffect)(()=>{p()},[p]),{propositions:o,loading:l,error:i,refetch:(0,s.useCallback)(async()=>{e.invalidate(),await p()},[e,p])}}function Go(e,t){const[n,o]=(0,s.useState)([]),[r,l]=(0,s.useState)(!t?.skip),[a,i]=(0,s.useState)(null),c=t?.skip??!1,d=(0,s.useCallback)(async()=>{if(!c)try{l(!0),i(null),o(await e.getSports())}catch(t){i(t instanceof Error?t.message:"Failed to fetch sports")}finally{l(!1)}},[e,c]);return(0,s.useEffect)(()=>{d()},[d]),{sports:n,loading:r,error:a,refetch:(0,s.useCallback)(async()=>{e.invalidate(),await d()},[e,d])}}function Wo(e,t,n){const[o,r]=(0,s.useState)([]),[l,a]=(0,s.useState)(!n?.skip),[i,c]=(0,s.useState)(null),d=n?.skip??!1,u=t?`${t.user_id??""}_${t.pending??""}`:"",m=(0,s.useRef)(t);m.current=t;const p=(0,s.useCallback)(async()=>{if(!d)try{a(!0),c(null);const t=await e.getGameEntries(m.current);r(t)}catch(t){c(t instanceof Error?t.message:"Failed to fetch entries")}finally{a(!1)}},[e,u,d]);return(0,s.useEffect)(()=>{p()},[p]),{entries:o,loading:l,error:i,refetch:(0,s.useCallback)(async()=>{e.invalidate(),await p()},[e,p])}}function Io(e,t,n){const[o,r]=(0,s.useState)({}),[l,a]=(0,s.useState)(!1),i=n?.skip??!1,c=n?.betAmount,d=(0,s.useRef)(new Set);return(0,s.useEffect)(()=>{if(i||0===t.length)return;const n=t.filter(e=>!(e.id in o)&&!d.current.has(e.id));if(0===n.length)return;for(const e of n)d.current.add(e.id);let l=!1;return a(!0),(async()=>{try{const t=await e.getGamesMaxPayouts(n.map(e=>e.id),c);l||r(e=>({...e,...t}))}catch{}finally{l||a(!1)}})(),()=>{l=!0}},[e,t.map(e=>e.id).join(","),i,c]),{maxPayouts:o,loading:l,refetchGame:(0,s.useCallback)(async(t,n)=>{if(!i)try{const o=await e.getGamesMaxPayouts([t],n??c);o[t]&&r(e=>({...e,[t]:o[t]}))}catch{}},[e,i,c])}}function Uo(e){const[t,n]=(0,s.useState)(!1),[o,r]=(0,s.useState)(null),[l,a]=(0,s.useState)(null);return{createEntry:async t=>{try{n(!0),r(null),await function(e=15e3){return"undefined"==typeof navigator||!1!==navigator.onLine||"undefined"==typeof window||"function"!=typeof window.addEventListener?Promise.resolve():new Promise(t=>{const n=()=>{window.removeEventListener("online",n),clearTimeout(o),t()},o=setTimeout(n,e);window.addEventListener("online",n)})}();const o=await e.createGameEntry(t);return a(o),o}catch(o){const e=o instanceof Error?o.message:"Failed to create entry";throw r(e),new Error(e)}finally{n(!1)}},loading:t,error:o,entry:l,clearSubmitError:(0,s.useCallback)(()=>r(null),[])}}function $o(e){const[t,n]=(0,s.useState)(e?"sport":"game"),[o,r]=(0,s.useState)(null),[l,a]=(0,s.useState)({}),[i,c]=(0,s.useState)(null);return{step:t,selectedGame:o,selections:l,placedEntry:i,setGameOnly:e=>{r(e)},clearSelectedGame:()=>{r(null),a({})},goToSportSelection:e=>{e&&r(e),n("sport")},goToConfirmation:()=>{n("confirm")},goToSuccess:e=>{c(e),n("success")},goBack:()=>{"confirm"===t?n("sport"):"sport"===t&&(n("game"),r(null),a({}))},reset:()=>{n("game"),r(null),a({}),c(null)},toggleSelection:(e,t)=>{a(n=>{const o={...n};return o[e]===t?delete o[e]:o[e]=t,o})}}}function Ko(e){const[t,n]=(0,s.useState)(!1),[o,r]=(0,s.useState)(null),[l,a]=(0,s.useState)(null);return{preview:(0,s.useCallback)(async(t,o)=>{try{n(!0),r(null);const l=await e.getEntryPreview(t,o);return a(l),l}catch(l){const e=l instanceof Error?l.message:"Failed to preview entry";throw r(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:o,result:l}}var Zo=[1,5,10,20,50,100],qo=[4,12];function Vo(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function Xo(e,t,n){const o=n?.operatorMargin??.2,r=n?.perLegProbability??.5,l=Math.round(Math.pow(1/r,t)),s=(1-o)*Math.pow(1/r,t);return{legs:t,stake:e,prize:Math.round(e*s*100)/100,multiple:s,oddsOneIn:l}}function Qo(e){if(!Vo(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??qo[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??qo[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n);if(0===o.length)return null;const r=Math.max(e.min_bet??1,.01),l=e.max_bet??null,s=Zo.filter(e=>e>=r&&(null===l||e<=l));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(20,r),l??20),minStake:r,maxStake:l,quickStakes:s,tagline:"Two steps to your multi. Tweak legs and stake — the prize updates as you go.",operatorMargin:e.operator_margin??.2,perLegProbability:e.payout_structure?.per_leg_probability??.5}}var Jo=[25,50,75,100],_o=[{legs:4,firstPayingTier:3,tiers50:[[3,60],[4,340]]},{legs:6,firstPayingTier:4,tiers50:[[4,40],[5,110],[6,850]]},{legs:8,firstPayingTier:5,tiers50:[[5,30],[6,70],[7,300],[8,2100]]},{legs:9,firstPayingTier:5,tiers50:[[5,10],[6,40],[7,100],[8,350],[9,4500]]},{legs:10,firstPayingTier:6,tiers50:[[6,15],[7,45],[8,140],[9,800],[10,1e4]]}];function er(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function tr(e,t){return Math.round(e*t/50*100)/100}function nr(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:tr(o,t),cumulative:tr(n,t)}))}function or(e,t){return tr(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function rr(e){if(!er(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=_o.filter(e=>t&&t.length>0?t.includes(e.legs):e.legs>=n&&e.legs<=o);if(0===r.length)return null;const l=e.min_bet??Jo[0],s=e.max_bet??Jo[Jo.length-1],a=Jo.filter(e=>e>=l&&e<=s);return{ladders:r,defaultLegs:r.some(e=>8===e.legs)?8:r[Math.floor(r.length/2)].legs,defaultStake:a.includes(50)?50:a[0]??50,stakes:a.length>0?a:Jo,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}function lr(e){return!!e&&!e.quick_pick_only&&"six_again"===(e.rule??"").trim().toLowerCase()}var sr={golden_point:!1,captains_challenge:!1};function ar(e,t,n){const o=1+(t.golden_point?1:0)+(t.captains_challenge?1:0),r=e*n.baseMultiple*(t.golden_point?n.goldenPointFactor:1),l=t.captains_challenge?e*n.challengeMultiple:0;return{legs:n.legs,unit:e,stake:e*o,base:r,challenge:l,perfect:r+l,lowestWinningCount:n.legs-(t.captains_challenge?n.challengeMisses:0),ruleId:ir(t,n)}}function ir(e,t){return e.captains_challenge?e.golden_point?t.ruleIds.goldenChallenge:t.ruleIds.challenge:t.ruleIds.base}function cr(e,t){return e.permitted_rules?.find(e=>t((e.name??"").toLowerCase().replace(/[^a-z]+/g," ").trim()))??null}function dr(e){if(!lr(e)||!e)return null;const t=e.num_propositions??e.min_propositions??6;if(t<2)return null;const n=e.operator_margin??.21875,o=Math.max(e.min_bet??10,.01),r=null!=e.max_bet?Math.max(o,Math.floor(e.max_bet/3/o)*o):Math.max(o,100),l=cr(e,e=>e.includes("challenge")&&!e.includes("golden")),s=cr(e,e=>e.includes("challenge")&&e.includes("golden")),a=cr(e,e=>!e.includes("challenge"))??null;return{legs:t,unitMin:o,unitStep:o,unitMax:r,defaultUnit:o,baseMultiple:Math.round(Math.pow(2,t)*(1-n)*100)/100,challengeMultiple:5,challengeMisses:1,goldenPointFactor:2,boosts:[{id:"golden_point",label:"Golden Point",costUnits:1},{id:"captains_challenge",label:"Captain's Challenge",costUnits:1}],tagline:"Set your play, then pick your six. Every call a yes or a no.",ruleIds:{base:a?.id??e.default_rule_id??null,challenge:l?.id??null,goldenChallenge:s?.id??null}}}function ur(e){return e?.quick_pick_only?"quick_pick":Vo(e)?"game_set":uo(e)?"pick_your_dividend":er(e)?"ladder":Yn(e)?"mirror":Kn(e)?"safety_net":lr(e)?"six_again":bn(e)?"selections":ao(e)?"rule_setup":"selections"}function mr(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(bn(e))return!1;const t=!!(e.allowed_markets&&e.allowed_markets.length>0),n=!!(e.allowed_sports&&e.allowed_sports.length>0);return t||n}function pr(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||bn(e)||mr(e))}function hr(e){switch(ur(e)){case"ladder":return{belowRequiredHint:(e,t)=>`Drop to Ladder ${e} or add another pick to stay on Ladder ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay on Ladder ${e}.`,switchTierLabel:e=>`Switch to Ladder ${e}`,overloadTitle:"Add more picks to climb higher",tableColumnLabel:"Ladder",tierButtonLabel:e=>`Ladder ${e}`};case"game_set":case"pick_your_dividend":case"mirror":case"safety_net":case"six_again":return{belowRequiredHint:(e,t)=>`Drop to ${e} legs or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e} legs.`,switchTierLabel:e=>`Switch to ${e} legs`,overloadTitle:"Add more legs to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`${e} legs`};default:return{belowRequiredHint:(e,t)=>`Drop to a ${e}-leg multi or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e}.`,switchTierLabel:e=>`Switch to ${e}-leg`,overloadTitle:"Add more picks to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`Multi ${e}`}}}function fr(e){const t=ur(e);return"six_again"===t||"pick_your_dividend"===t}function xr(e){return"six_again"===ur(e)?"Set by your ticket and boosts.":"Set by your dividend ladder rung."}function gr(e,t,n){if(!e||t<=0||n<=0)return 0;switch(ur(e)){case"game_set":return Xo(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize;case"mirror":return Hn(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize;case"pick_your_dividend":return function(e,t,n=io){if(!(e>0&&t>0))return 0;for(const o of n)if(Math.abs(po(o,e).stake-t)<.005)return o;return 0}(t,n);default:return 0}}var yr=(0,s.createContext)(null),br={};function wr(){const e=(0,s.useContext)(yr);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function kr({onPress:e,onDoubleClick:t,label:n="QUICKPICK",size:o="md",yesColor:r,noColor:l,theme:a}){const i=(0,s.useContext)(yr),d=a??i?.theme??J,u=T(d),m=d.colors,p=r??R(d),h=l??G(d),f="sm"===o,x=f?u.space.xs:u.space.sm,g=f?6:8,y=f?u.fontSize.sm:u.fontSize.md,b=f?8.5:10,[w,k]=s.default.useState(!1),[v,N]=s.default.useState(!1);return(0,c.jsxs)("button",{type:"button",onClick:e,onDoubleClick:t,onMouseDown:()=>k(!0),onMouseUp:()=>k(!1),onMouseLeave:()=>k(!1),onFocus:e=>{e.target.matches(":focus-visible")&&N(!0)},onBlur:()=>N(!1),style:{appearance:"none",display:"inline-flex",flexDirection:"column",width:"100%",minWidth:92,padding:0,margin:0,border:`1px solid ${M(m.border,.6)}`,background:"transparent",borderRadius:u.radius.sm,overflow:"hidden",cursor:"pointer",fontFamily:"inherit",transform:w?"scale(0.985)":"scale(1)",transition:`transform ${u.motion.durationFast}ms ${u.motion.easing}, box-shadow ${u.motion.durationFast}ms ${u.motion.easing}`,boxShadow:v?E(d):"none",outline:"none",minHeight:u.touchTarget.min},children:[(0,c.jsxs)("span",{style:{position:"relative",display:"flex",flex:1},children:[(0,c.jsx)("span",{"aria-hidden":!0,style:{position:"absolute",inset:0,background:p,clipPath:"polygon(0 0, 53% 0, 47% 100%, 0 100%)"}}),(0,c.jsx)("span",{"aria-hidden":!0,style:{position:"absolute",inset:0,background:h,clipPath:"polygon(53% 0, 100% 0, 100% 100%, 47% 100%)"}}),(0,c.jsx)("span",{style:{position:"relative",flex:1,textAlign:"center",padding:`${g}px ${x}px`,color:"#ffffff",fontSize:y,fontWeight:600,letterSpacing:.2,whiteSpace:"nowrap"},children:"Yes"}),(0,c.jsx)("span",{style:{position:"relative",flex:1,textAlign:"center",padding:`${g}px ${x}px`,color:"#ffffff",fontSize:y,fontWeight:600,letterSpacing:.2,whiteSpace:"nowrap"},children:"No"}),(0,c.jsx)("svg",{"aria-hidden":"true",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none"},preserveAspectRatio:"none",children:(0,c.jsx)("line",{x1:"53%",y1:"0",x2:"47%",y2:"100%",stroke:"rgba(255,255,255,0.85)",strokeWidth:"1.5"})})]}),(0,c.jsx)("span",{style:{background:m.buttonSecondary,color:m.buttonSecondaryText,fontSize:b,letterSpacing:"0.14em",padding:"3px 0 4px",textAlign:"center",fontWeight:700,fontFamily:d.fonts?.mono??"inherit"},children:n})]})}function vr(e,t){const n=new Set(t.map(e=>e.eventId??e.event_id).filter(e=>Boolean(e)));if(0===n.size)return e;const o=[],r=[];for(const l of e){const e=l.eventId??l.event_id;(e&&n.has(e)?r:o).push(l)}return[...o,...r]}function Nr(e,t,n,o){const[r,l]=(0,s.useState)([]),[a,i]=(0,s.useState)([]),[c,d]=(0,s.useState)([]),[u,m]=(0,s.useState)([]),[p,h]=(0,s.useState)(null),f=(0,s.useMemo)(()=>{const t=new Map;for(const n of e)t.set(n.id,n);return t},[e]),x=(0,s.useMemo)(()=>e.filter(e=>null!=t[e.id]),[e,t]),g=(0,s.useMemo)(()=>e.map(e=>e.id).join(","),[e]),y=(0,s.useRef)(null);(0,s.useEffect)(()=>()=>{y.current=null},[]),(0,s.useEffect)(()=>{if(y.current===g)return;y.current=g;const n=e.filter(e=>!(e.id in t)),o=e.filter(e=>null!=t[e.id]);l(n.map(e=>e.id)),i(vr(n,o).slice(0,3).map(e=>e.id)),d([]),m([]),h(null)},[g,e,t]);const b=(0,s.useMemo)(()=>o?new Set(e.filter(e=>o(e)).map(e=>e.id)):new Set,[e,o]),w=(0,s.useMemo)(()=>{const e=new Set(c);return[...vr(r.map(e=>f.get(e)).filter(e=>!!e&&!b.has(e.id)).filter(t=>!e.has(t.id)),x).map(e=>e.id),...c.filter(e=>r.includes(e)&&!b.has(e))]},[r,f,x,c,b]);(0,s.useEffect)(()=>{i(e=>{const t=new Set(r),n=e.filter(e=>t.has(e)&&!b.has(e));if(0===u.length&&!p){const t=w.slice(0,3);return t.length===n.length&&t.every((e,t)=>e===n[t])?n.length===e.length?e:n:t}if(n.length>=Math.min(3,r.length))return n.length===e.length?e:n;const o=[...n];for(const r of w){if(o.length>=3)break;o.includes(r)||o.push(r)}return o})},[r,w,u,p,b]);const k=(0,s.useMemo)(()=>a.map(e=>f.get(e)).filter(e=>Boolean(e)),[a,f]),v=(0,s.useCallback)((e,t)=>{h(null),t&&n(e,t),m(n=>[...n,{id:e,answer:t}]),i(t=>t.filter(t=>t!==e)),d(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]}),l(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]})},[n]),N=(0,s.useCallback)(()=>{const e=u[u.length-1];e&&(e.answer&&n(e.id,e.answer),h({id:e.id,from:"yes"===e.answer?"right":"no"===e.answer?"left":"up"}),m(e=>e.slice(0,-1)),d(t=>t.filter(t=>t!==e.id)),l(t=>[e.id,...t.filter(t=>t!==e.id)]),i(t=>[e.id,...t.filter(t=>t!==e.id)].slice(0,3)))},[u,n]);return{visible:k,canSkip:r.filter(e=>!b.has(e)).length>1,canUndo:u.length>0,restored:p,resolve:v,undo:N}}var Cr={stiffness:420,damping:34},Fr={stiffness:280,damping:28},Br="#00C853",Ar="#E53935";function Mr(e){return"up"===e?{x:0,y:-720}:{x:"right"===e?640:-640,y:70}}function Sr(e){return e<0?0:e>1?1:e}function Lr(e,t,n){return n&&-t>Math.abs(e)}function zr({prop:e,theme:t,depth:n=0,enterFrom:o,canSkip:r=!1,onResolve:l,registerApi:a,onDragStateChange:i,children:d}){const u=(0,s.useContext)(yr),m=t??u?.theme??J,p=fe(m),h=m.colors.productYes??Br,f=m.colors.productNo??Ar,x=(0,s.useRef)(null),g=(0,s.useRef)(null),y=(0,s.useRef)(null),b=(0,s.useRef)(null),w=0===n,k=(0,s.useRef)(!1),v=(0,s.useRef)({x:0,y:0}),N=(0,s.useRef)({x:0,y:0}),C=(0,s.useRef)(null),F=(0,s.useRef)(0),B=(0,s.useRef)(null),A=(0,s.useRef)(null),M=(0,s.useRef)(r);M.current=r;const S=(0,s.useRef)(i);S.current=i;const L=(0,s.useCallback)(()=>{const e=x.current;if(!e)return;const{x:t,y:n}=v.current,o=Math.max(-16,Math.min(16,t/260*16));e.style.transform=`translate3d(${t}px, ${n}px, 0) rotate(${o}deg)`;const r=(e,t)=>{e&&(e.style.opacity=String(t))},l=Lr(t,n,M.current);r(g.current,l?0:Sr((t-24)/108)),r(y.current,l?0:Sr((-t-24)/108)),r(b.current,l?Sr((-n-30)/90):0)},[]),z=(0,s.useCallback)(()=>{for(const e of[x.current,g.current,y.current,b.current])e&&(e.style.transition="none")},[]),P=(0,s.useCallback)(()=>{null!=B.current&&(cancelAnimationFrame(B.current),B.current=null)},[]),T=(0,s.useCallback)(e=>{P(),z();let t=null;const n=o=>{const r=Math.min(null==t?1/60:(o-t)/1e3,1/30);t=o;const l=v.current,s=N.current;if(s.x+=(-e.stiffness*l.x-e.damping*s.x)*r,s.y+=(-e.stiffness*l.y-e.damping*s.y)*r,l.x+=s.x*r,l.y+=s.y*r,Math.abs(l.x)<.5&&Math.abs(l.y)<.5&&Math.abs(s.x)<2&&Math.abs(s.y)<2)return l.x=0,l.y=0,s.x=0,s.y=0,L(),void(B.current=null);L(),B.current=requestAnimationFrame(n)};B.current=requestAnimationFrame(n)},[z,L,P]),O=(0,s.useCallback)(t=>{if(k.current)return;if("up"===t&&!M.current)return;k.current=!0,P();const n="right"===t?"yes":"left"===t?"no":null,o=Mr(t),r=x.current;r&&(r.style.transition="transform 260ms cubic-bezier(0.32, 0, 0.67, 0)");for(const e of[g.current,y.current,b.current])e&&(e.style.transition="opacity 260ms linear");v.current={...o},L(),A.current=setTimeout(()=>l(e.id,n),260)},[l,L,e.id,P]);(0,s.useEffect)(()=>()=>{A.current&&clearTimeout(A.current),null!=B.current&&cancelAnimationFrame(B.current),C.current&&S.current?.(!1)},[]),(0,s.useEffect)(()=>{if(!o)return P(),v.current={x:0,y:0},N.current={x:0,y:0},z(),void L();const e=Mr(o);v.current={x:e.x,y:e.y},N.current={x:0,y:0},z(),L(),T(Fr)},[o,z,L,T,P]),(0,s.useEffect)(()=>{if(w&&a)return a({fly:O}),()=>a(null)},[O,w,a]);const D="pointer-events-none absolute top-5 rounded-xl border-4 px-3 py-1 text-2xl font-extrabold uppercase tracking-widest";return(0,c.jsx)("div",{className:"absolute inset-0 flex items-stretch",style:{zIndex:3-n,transform:`translateY(${12*n}px) scale(${1-.04*n})`,transition:"transform 240ms cubic-bezier(0.22, 1, 0.36, 1)",pointerEvents:w?"auto":"none"},"aria-hidden":!w,children:(0,c.jsxs)("div",{ref:x,className:"relative w-full"+(w?" cursor-grab active:cursor-grabbing":""),style:{touchAction:"pan-y",willChange:"transform",userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none"},onPointerDown:e=>{if(w&&!k.current&&!C.current){P(),z(),C.current={pointerId:e.pointerId,originX:e.clientX,originY:e.clientY,baseX:v.current.x,baseY:v.current.y},N.current={x:0,y:0},F.current=e.timeStamp;try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}S.current?.(!0)}},onPointerMove:e=>{const t=C.current;if(!t||t.pointerId!==e.pointerId||k.current)return;const n=t.baseX+(e.clientX-t.originX),o=Math.min(t.baseY+(e.clientY-t.originY),0),r=e.timeStamp-F.current;if(r>0){const t=1-Math.exp(-r/40);N.current.x+=((n-v.current.x)/r*1e3-N.current.x)*t,N.current.y+=((o-v.current.y)/r*1e3-N.current.y)*t,F.current=e.timeStamp}v.current.x=n,v.current.y=o,L()},onPointerUp:e=>{const t=C.current;if(!t||t.pointerId!==e.pointerId)return;C.current=null,S.current?.(!1);try{e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}catch{}if(k.current)return;e.timeStamp-F.current>90&&(N.current={x:0,y:0});const n=v.current,o=N.current;if(Lr(n.x,n.y,M.current)){if(n.y<-110||o.y<-620)return O("up")}else{if(n.x>110||o.x>620)return O("right");if(n.x<-110||o.x<-620)return O("left")}T(Cr)},onPointerCancel:e=>{const t=C.current;t&&t.pointerId===e.pointerId&&(C.current=null,N.current={x:0,y:0},S.current?.(!1),k.current||T(Cr))},onDragStart:e=>e.preventDefault(),children:[d,w&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{ref:g,className:`${D} left-5`,style:{opacity:0,transform:"rotate(-12deg)",color:h,borderColor:h,fontFamily:p},children:"Yes"}),(0,c.jsx)("div",{ref:y,className:`${D} right-5`,style:{opacity:0,transform:"rotate(12deg)",color:f,borderColor:f,fontFamily:p},children:"No"}),r&&(0,c.jsx)("div",{ref:b,className:"pointer-events-none absolute inset-x-0 bottom-6 flex justify-center",style:{opacity:0},children:(0,c.jsx)("span",{className:"rounded-full px-3 py-1 text-xs font-semibold uppercase tracking-widest",style:{color:m.colors.primary,border:`1px solid ${m.colors.border}`,background:m.colors.background},children:"Skip"})})]})]})})}function Pr({prop:e}){const{theme:t,renderTeamLogo:n,renderPropositionSilk:o,displaySportName:r,gameCategory:l,compositeComponentById:s}=wr(),a=t.colors,i=fe(t),d=lt(e,s),u=_e(e),m=("racing"===l?[e.away_team?.trim()||e.home_team?.trim()]:[e.home_team?.trim(),e.away_team?.trim()]).filter(Boolean),p=(t,r)=>t&&o?.(t,r)||$r(t??e,n,m.join(" vs "))||null;return(0,c.jsxs)("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-3xl border",style:{backgroundColor:K(t),borderColor:a.border,boxShadow:"0 18px 40px -24px rgba(10,20,22,0.45)"},children:[(0,c.jsx)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 px-5 py-3",style:{backgroundColor:Z(t)},children:m.length>0?m.map((e,o)=>(0,c.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-sm font-semibold",style:{color:U(t)},children:[o>0&&(0,c.jsx)("span",{className:"mr-1 text-xs font-normal",style:{color:$(t)},children:"vs"}),n?.(e),e]},`${e}-${o}`)):(0,c.jsx)("span",{className:"text-sm font-semibold",style:{color:U(t)},children:e.league??r(e.sport??"")})}),(0,c.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-3 px-5 py-3 sm:gap-4 sm:py-6",children:[(0,c.jsxs)("div",{className:"flex min-w-0 items-start gap-2",children:[!d&&p(e,32),d?(0,c.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:[(0,c.jsxs)("span",{className:"text-xs font-bold uppercase tracking-widest",style:{color:Y(t)},children:["All ","OR"===d.operator?"or any of these":"of these"]}),(0,c.jsx)("ul",{className:"flex flex-col gap-2",children:d.legs.map((e,n)=>(0,c.jsxs)("li",{className:"flex items-start gap-2",children:[(0,c.jsx)("span",{"aria-hidden":!0,className:"text-base font-bold leading-snug",style:{color:a.primary},children:"OR"===d.operator?"/":"+"}),p(e.prop,24),(0,c.jsxs)("span",{className:"flex min-w-0 flex-col",children:[e.eventLabel&&(0,c.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-wide leading-tight",style:{color:a.textMuted},children:e.eventLabel}),(0,c.jsx)("span",{className:"text-base font-bold leading-snug",style:{color:H(t),fontFamily:i},children:e.text})]})]},n))})]}):(0,c.jsx)("p",{className:"min-w-0 flex-1 text-xl font-extrabold leading-snug tracking-tight sm:text-2xl",style:{color:H(t),fontFamily:i},children:e.description??e.proposition})]}),e.outcome_description&&e.outcome_description!==e.description&&(0,c.jsx)("p",{className:"text-sm leading-snug",style:{color:a.textMuted},children:e.outcome_description})]}),(0,c.jsxs)("div",{className:"flex flex-wrap items-center gap-2 border-t px-5 py-3 text-[11px]",style:{borderColor:a.borderSubtle??a.border,color:a.textMuted},children:[e.sport&&(0,c.jsx)("span",{className:"rounded-full px-2 py-0.5 font-semibold uppercase tracking-wide",style:{backgroundColor:a.infoBg,color:a.infoText},children:r(e.sport)}),u&&(0,c.jsx)("span",{className:"uppercase tracking-wide",children:u.replace(/[_-]+/g," ")}),e.commence_time&&(0,c.jsx)("span",{className:"ml-auto",children:ft(e.commence_time)})]})]})}function Tr({onBack:e,onNext:t,viewSwitch:n,onDragStateChange:o,className:r=""}){const{theme:l,propositions:a,selections:i,toggleSelection:d,selectedGame:u,selectedPropositionCount:m,answeredCount:p,selectionValid:h,goToConfirmation:f,goToSportSelection:x,loading:g,error:y,selectedRule:b,compositeComponentById:w}=wr(),k=l.colors,v=he(l),N=fe(l),C=k.productYes??Br,F=k.productNo??Ar,B=(0,s.useRef)(null);(0,s.useEffect)(()=>{u||(x(),e?.())},[x,e,u]);const A=(0,s.useMemo)(()=>jo(a,i,w),[a,i,w]),M=(0,s.useCallback)(e=>A.isCapped(e),[A]),{visible:S,canSkip:L,canUndo:z,restored:P,resolve:T,undo:O}=Nr(a,i,d,M),D=u?Ft(u,m??void 0,b):{min:0,max:0},E=D.max,Y=E>0&&p>=E,H=(()=>{if(!u)return null;if(D.min>0&&D.min===D.max)return D.min;const e=ur(u);return null!=m&&m>0&&("game_set"===e||"pick_your_dividend"===e||mr(u))?m:E>0?E:null})(),R=(0,s.useRef)(p);(0,s.useEffect)(()=>{const e=R.current;if(R.current=p,null==H||e>=H||p!==H)return;const n=setTimeout(()=>{f(),t?.()},420);return()=>clearTimeout(n)},[p,f,t,H]);const G=!Y&&S.length>0;(0,s.useEffect)(()=>{if(!G)return;const e=e=>{const t=e.target;if(!t||!/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName)){switch(e.key){case"ArrowRight":B.current?.fly("right");break;case"ArrowLeft":B.current?.fly("left");break;case"ArrowUp":B.current?.fly("up");break;case"ArrowDown":case"Backspace":O();break;default:return}e.preventDefault()}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[G,O]);const W=(0,s.useCallback)(e=>{B.current=e},[]);if(!u)return null;const I=(e,t,n,o)=>(0,c.jsx)("button",{type:"button",onClick:n,disabled:o,"aria-label":e,className:"flex h-11 w-11 items-center justify-center rounded-full border text-lg transition-transform active:scale-95 disabled:opacity-35",style:{borderColor:k.border,color:k.textMuted,background:k.background},children:(0,c.jsx)("span",{"aria-hidden":!0,children:t})});return(0,c.jsxs)("div",{className:`flex w-full flex-col ${r}`,style:{fontFamily:v},children:[n&&(0,c.jsx)("div",{className:"flex shrink-0 justify-end pb-3",children:n}),g?(0,c.jsx)("p",{className:"py-10 text-center text-sm",style:{color:k.textMuted},children:"Loading…"}):y?(0,c.jsx)("div",{className:"rounded-xl p-4 text-center",style:{background:k.errorBg,border:`1px solid ${k.error}`},children:(0,c.jsx)("p",{className:"text-sm",style:{color:k.errorText??k.error},children:y})}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"flex min-h-0 flex-1 flex-col justify-center pb-3 pt-2 sm:pb-8 sm:pt-3",children:G?(0,c.jsx)("div",{className:"relative mx-auto w-full",style:{height:"clamp(14rem, 44dvh, 26rem)",maxWidth:384},children:S.map((e,t)=>(0,c.jsx)(zr,{prop:e,depth:t,canSkip:L,enterFrom:P?.id===e.id?P.from:null,onResolve:T,registerApi:0===t?W:void 0,onDragStateChange:0===t?o:void 0,children:(0,c.jsx)(Pr,{prop:e})},e.id))}):(0,c.jsxs)("div",{className:"mx-auto flex w-full max-w-sm flex-col items-center gap-3 rounded-3xl px-6 py-10 text-center",style:{background:K(l),border:`1px dashed ${k.border}`},children:[(0,c.jsx)("p",{className:"text-base font-extrabold",style:{color:j(l),fontFamily:N},children:Y?"Card full":"That’s the last one"}),(0,c.jsx)("p",{className:"text-sm",style:{color:k.textMuted},children:Y?`You've picked all ${E} legs for ${u.game_name}. Undo a swipe to change one, or lock it in.`:h?"You've been through every proposition. Lock your card in, or undo to revisit a pick.":`No propositions left to answer${D.min>0?` — this game needs at least ${D.min}`:""}. Undo a swipe or head back to widen the pool.`}),z&&(0,c.jsx)("button",{type:"button",onClick:O,className:"rounded-full border px-5 py-2 text-sm font-semibold",style:{borderColor:k.border,color:k.text},children:"Undo last swipe"})]})}),(0,c.jsxs)("div",{className:"shrink-0 rounded-2xl border px-3 pb-2.5 pt-3",style:{backgroundColor:K(l),borderColor:k.border},children:[(0,c.jsxs)("div",{className:"mx-auto flex max-w-sm items-center justify-center gap-3",children:[I("Undo last swipe","↺",O,!z),(0,c.jsx)("button",{type:"button",onClick:()=>B.current?.fly("left"),disabled:!G,className:"flex h-14 flex-1 items-center justify-center rounded-full text-lg font-extrabold uppercase tracking-wider text-white transition-transform active:scale-95 disabled:opacity-35",style:{backgroundColor:F,fontFamily:N},children:"No"}),(0,c.jsx)("button",{type:"button",onClick:()=>B.current?.fly("right"),disabled:!G,className:"flex h-14 flex-1 items-center justify-center rounded-full text-lg font-extrabold uppercase tracking-wider text-white transition-transform active:scale-95 disabled:opacity-35",style:{backgroundColor:C,fontFamily:N},children:"Yes"}),I("Skip this proposition","↑",()=>B.current?.fly("up"),!G||!L)]}),(0,c.jsx)("p",{className:"mt-2 text-center text-[11px]",style:{color:k.textMuted},children:L?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})]})]})}function Or({propositions:e,title:t,onClose:n}){const{theme:o,selections:r,toggleSelection:l,compositeComponentById:a}=wr(),i=o.colors,d=(0,s.useMemo)(()=>jo(e,r,a),[e,r,a]),u=(0,s.useCallback)(e=>d.isCapped(e),[d]),{visible:m,canSkip:p,canUndo:h,restored:f,resolve:x,undo:g}=Nr(e,r,l,u),y=(0,s.useRef)(null),b=(0,s.useRef)(null),w=(0,s.useCallback)(e=>{b.current=e},[]),k=(0,s.useCallback)(()=>b.current?.fly("up"),[]),v=$(o),N=fe(o),C=m.length>0,F=K(o),B=(0,s.useCallback)(()=>y.current?.close(),[]);(0,s.useEffect)(()=>{y.current?.showModal()},[]),(0,s.useEffect)(()=>{const e=e=>{const t=e.target;if(!t||!/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName)){switch(e.key){case"ArrowRight":b.current?.fly("right");break;case"ArrowLeft":b.current?.fly("left");break;case"ArrowUp":b.current?.fly("up");break;case"ArrowDown":case"Backspace":g();break;default:return}e.preventDefault()}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[g]);const A="flex h-11 w-11 items-center justify-center rounded-full border text-lg transition-transform active:scale-95 disabled:opacity-35",M={borderColor:i.border,color:i.textMuted,background:i.background,cursor:"pointer"},S=(e,t,n)=>(0,c.jsx)("button",{type:"button",onClick:()=>b.current?.fly(e),disabled:!C,className:"flex h-14 flex-1 items-center justify-center rounded-full text-lg font-extrabold uppercase tracking-wider text-white transition-transform active:scale-95 disabled:opacity-35",style:{backgroundColor:n,fontFamily:N,cursor:"pointer"},children:t});return(0,c.jsxs)("dialog",{ref:y,onClose:n,onClick:e=>{e.target===y.current&&B()},className:"m-auto w-[min(100vw-2rem,420px)] overflow-hidden rounded-3xl border p-4 backdrop:bg-black/60",style:{backgroundColor:F,borderColor:i.border,color:U(o)},children:[(0,c.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,c.jsx)("span",{className:"flex-1 min-w-0 truncate text-sm font-bold",style:{fontFamily:N},children:t}),(0,c.jsx)("button",{type:"button",onClick:B,"aria-label":"Close",className:"h-8 w-8 shrink-0 rounded-full border text-base leading-none",style:{borderColor:i.border,color:v,cursor:"pointer"},children:"×"})]}),(0,c.jsx)("div",{className:"flex flex-col justify-center pb-3 pt-1",children:C?(0,c.jsx)("div",{className:"relative mx-auto w-full",style:{height:"clamp(14rem, 44dvh, 26rem)"},children:m.map((e,t)=>(0,c.jsx)(zr,{prop:e,depth:t,canSkip:p,enterFrom:f?.id===e.id?f.from:null,onResolve:x,registerApi:0===t?w:void 0,children:(0,c.jsx)(Pr,{prop:e})},e.id))}):(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-col items-center gap-3 rounded-3xl px-6 py-10 text-center",style:{background:F,border:`1px dashed ${i.border}`},children:[(0,c.jsx)("p",{className:"text-base font-extrabold",style:{color:j(o),fontFamily:N},children:"That’s the last one"}),(0,c.jsx)("p",{className:"text-sm",style:{color:i.textMuted},children:"You’ve been through every proposition on this fixture. Close to go back to the card, or undo to revisit a pick."})]})}),(0,c.jsxs)("div",{className:"shrink-0 pt-6",children:[(0,c.jsxs)("div",{className:"mx-auto flex items-center justify-center gap-3",children:[(0,c.jsx)("button",{type:"button",onClick:g,disabled:!h,"aria-label":"Undo last swipe",className:A,style:M,children:(0,c.jsx)("span",{"aria-hidden":!0,children:"↺"})}),S("left","No",G(o)),S("right","Yes",R(o)),(0,c.jsx)("button",{type:"button",onClick:k,disabled:!C||!p,"aria-label":"Skip this proposition",className:A,style:M,children:(0,c.jsx)("span",{"aria-hidden":!0,children:"↑"})})]}),(0,c.jsx)("p",{className:"mt-2 text-center text-[11px]",style:{color:i.textMuted},children:p?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})]})}function Dr(e){return new Intl.DateTimeFormat("en-AU",{weekday:"short",day:"numeric",month:"short"}).format(e).replace(",","")}function Er(e){return new Intl.DateTimeFormat("en-AU",{hour:"numeric",minute:"2-digit",hour12:!0}).format(e).replace(/\s/g,"").toLowerCase()}function jr(e){const t=(e??"").trim().split(/\s+/).filter(Boolean);return(t[t.length-1]??"").slice(0,3).toUpperCase()}function Yr(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}function Hr(e){const t=e?.trim();if(t&&"undefined"!==t&&"null"!==t)return t}function Rr(e,t=!1){const n=Object.entries(e).map(([e,n])=>function(e,t,n){const[o,r]=n?[]:e.split(" vs ").map(Hr),l=t.map(Yr).filter(e=>null!==e),s=l.length>0?new Date(Math.min(...l.map(e=>e.getTime()))):null;return{key:e,title:n||!o?n?e:Hr(t[0]?.league??void 0)??"":[o,r].filter(Boolean).join(" vs "),home:o,away:r,racing:n,date:s,props:t}}(e,n,t)),o=n.filter(e=>null!==e.date).sort((e,t)=>e.date.getTime()-t.date.getTime()),r=n.filter(e=>null===e.date),l=new Map;for(const a of o){const e=a.date.toDateString(),t=l.get(e);t?t.events.push(a):l.set(e,{key:e,label:Dr(a.date),events:[a]})}const s=[...l.values()];return r.length>0&&s.push({key:"undated",label:"",events:r}),s}var Gr={split:"text-[13px] leading-snug",compact:"text-[11px] leading-snug"};function Wr({variant:e,groups:t,racing:n,selections:o,onToggleSelection:r,atMax:l,theme:a,renderTeamLogo:i,componentById:d,disableEventSwipe:u=!1}){const m=a.colors,p=K(a),h=Z(a),f=m.borderSubtle??m.border,x=U(a),g=$(a),y=H(a),b=Y(a),w=j(a),k=fe(a),[v,N]=(0,s.useState)(null),[C,F]=(0,s.useState)(new Set),[B,A]=(0,s.useState)(new Set),M=e=>t=>e(e=>{const n=new Set(e);return n.delete(t)||n.add(t),n}),S=M(F),L=M(A),z=s.default.useMemo(()=>Rr(t,n),[t,n]),P=s.default.useMemo(()=>jo(Object.values(t).flat(),o,d),[t,o,d]),T=e=>l&&!(e.id in o)||P.isCapped(e),O=e=>{if(!P.isCapped(e))return;const t=To(e);return t?function(e){return`${Ao[e]} already picked for this match`}(t):void 0},D=(e,t)=>{T(e)||r(e.id,t)},E=e=>(0,c.jsx)("span",{className:"hidden shrink-0 items-center gap-1 sm:flex",children:P.slotsFor(Do(e.props[0])).map(({family:e,label:t,filled:n})=>(0,c.jsx)("span",{title:So(e,n),"aria-label":So(e,n),className:"rounded-full border px-1.5 text-[8.5px] font-bold uppercase leading-[15px] tracking-wide "+(n?"":"border-dashed"),style:{borderColor:n?x:f,color:n?x:g,cursor:"help"},children:t},e))}),R=(e,t)=>e?i?.(e,t)??null:null,G=(e,t,n)=>(0,c.jsx)(De,{theme:a,size:t,stretch:n,disabled:T(e),value:o[e.id]??null,onYes:()=>D(e,"yes"),onNo:()=>D(e,"no")}),W=(e,t)=>(0,c.jsxs)("span",{className:"min-w-0 flex-1 flex items-start gap-2",children:[n?$r(e,i,null):null,(0,c.jsx)(qr,{prop:e,colors:m,componentById:d,renderTeamLogo:i,textClass:Gr[t],textColor:y})]}),I=e=>{if(u)return null;const t=e.props.filter(e=>!T(e));return 0===t.length?null:(0,c.jsxs)("button",{type:"button",onClick:()=>N(e),"aria-label":`Swipe ${t.length} proposition${1===t.length?"":"s"}`,className:"flex h-7 shrink-0 items-center gap-1 rounded-full border px-1 transition-all duration-150 hover:-translate-y-px hover:border-current focus-visible:border-current active:scale-95",style:{borderColor:f,color:x,cursor:"pointer"},children:[(0,c.jsx)(Ir,{}),(0,c.jsx)("span",{"aria-hidden":!0,className:"whitespace-nowrap text-[9px] font-bold uppercase tracking-wide",children:"Swipe"})]})},q=(e,t,n)=>(0,c.jsx)("button",{type:"button",onClick:()=>S(e.key),"aria-expanded":t,"aria-controls":n,"aria-label":`${t?"Hide":"Show"} ${e.props.length} proposition${1===e.props.length?"":"s"}`,className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full border transition-transform active:scale-95",style:{borderColor:f,color:b,cursor:"pointer"},children:(0,c.jsx)(Ur,{rotated:!t})}),V=e=>{if(!e.home&&!e.away)return(0,c.jsx)("span",{className:"text-[11.5px] font-bold truncate",style:{color:x},children:e.title});const t=[e.home,e.away].filter(Boolean).join(" v "),n=B.has(e.key);return(0,c.jsx)("button",{type:"button",onClick:()=>L(e.key),title:t,"aria-label":t,"aria-pressed":n,className:"min-w-0 max-w-full truncate text-[11.5px] font-bold leading-tight",style:{color:x,fontFamily:k,cursor:"pointer"},children:n?(0,c.jsxs)(c.Fragment,{children:[e.home,(0,c.jsx)("span",{className:"text-[9px] font-semibold px-1",style:{color:g},children:"v"}),e.away]}):(0,c.jsxs)(c.Fragment,{children:[jr(e.home),(0,c.jsx)("span",{className:"text-[9px] font-semibold px-0.5",style:{color:g},children:"v"}),jr(e.away)]})})},X=e=>(0,c.jsx)("span",{className:"max-w-full truncate text-[11.5px] font-bold leading-tight",style:{color:x,fontFamily:k},children:e.racing||!e.home?e.title:(0,c.jsxs)(c.Fragment,{children:[jr(e.home),(0,c.jsx)("span",{className:"text-[9px] font-semibold px-0.5",style:{color:g},children:"v"}),jr(e.away)]})}),Q=t=>"compact"===e?(e=>(0,c.jsxs)("div",{className:"rounded-2xl border overflow-hidden divide-y mb-2",style:{borderColor:m.border,backgroundColor:p},children:[(0,c.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0 px-3 py-2",style:{borderColor:f,backgroundColor:h},children:[!e.racing&&R(e.home,18),V(e),!e.racing&&R(e.away,18),e.date&&(0,c.jsx)("span",{className:"text-[9px] font-medium whitespace-nowrap ml-0.5",style:{color:g},children:Er(e.date)}),(0,c.jsx)("span",{className:"ml-auto",children:I(e)})]}),e.props.map(e=>(0,c.jsxs)("div",{title:O(e),className:"grid grid-cols-[1fr_auto] gap-2 items-center px-3 py-2.5",style:{borderColor:f,opacity:T(e)?.45:1},children:[(0,c.jsx)("div",{className:"min-w-0 flex",children:W(e,"compact")}),G(e,"xs")]},e.id))]},e.key))(t):((e,t)=>{const n=!C.has(e.key),o=`variant-split-${e.key}`,r=`${e.props.length} proposition${1===e.props.length?"":"s"}`;return n?(0,c.jsxs)("div",{className:"grid grid-cols-[80px_1fr] items-stretch rounded-2xl border overflow-hidden mb-2",style:{borderColor:m.border,backgroundColor:p},children:[(0,c.jsxs)("div",{className:"flex flex-col items-center justify-center gap-1.5 text-center min-w-0 border-r px-2 py-3",style:{borderColor:f,backgroundColor:h},children:[!e.racing&&(0,c.jsxs)("span",{className:"flex items-center gap-0.5",children:[R(e.home,24),R(e.away,24)]}),X(e),e.date&&(0,c.jsx)("span",{className:"text-[9.5px] font-medium",style:{color:g},children:Er(e.date)}),I(e)]}),(0,c.jsxs)("div",{id:o,className:"flex flex-col min-w-0 divide-y",style:{borderColor:f},children:[(0,c.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5",children:[(0,c.jsx)("span",{className:"min-w-0 truncate text-[11px] font-bold",style:{color:x,fontFamily:k},children:e.title}),(0,c.jsxs)("span",{className:"ml-auto flex items-center gap-2",children:[E(e),q(e,n,o)]})]}),(0,c.jsx)("div",{className:"flex flex-col justify-center gap-3 px-3 py-2.5",children:e.props.map(e=>(0,c.jsxs)("div",{title:O(e),className:t?"grid grid-cols-[1fr_auto] gap-2.5 items-center":"flex flex-col gap-2.5",style:{opacity:T(e)?.45:1},children:[(0,c.jsx)("span",{className:"min-w-0 flex",children:W(e,"split")}),t?G(e,"xs"):G(e,"sm",!0)]},e.id))})]})]},e.key):(0,c.jsxs)("div",{className:"flex items-center rounded-2xl border overflow-hidden mb-2",style:{borderColor:m.border,backgroundColor:p},children:[(0,c.jsxs)("div",{className:"flex items-center gap-1 self-stretch border-r px-2 py-1.5",style:{borderColor:f,backgroundColor:h},children:[!e.racing&&(0,c.jsxs)(c.Fragment,{children:[R(e.home,16),R(e.away,16)]}),V(e)]}),(0,c.jsx)("span",{id:o,className:"px-3 text-[11px] font-semibold",style:{color:g},children:r}),(0,c.jsx)("span",{className:"ml-auto pr-2",children:q(e,n,o)})]},e.key)})(t,"split-inline"===e);return(0,c.jsxs)("div",{className:"pb-4",children:[z.map(e=>{return(0,c.jsxs)("div",{children:[e.label&&(t=e.label,(0,c.jsxs)("div",{className:"flex items-center gap-2 mt-4 mb-2 first:mt-0",children:[(0,c.jsx)("span",{className:"text-[11px] font-bold tracking-wide",style:{color:w,fontFamily:k},children:t}),(0,c.jsx)("span",{className:"flex-1 h-px",style:{backgroundColor:f}})]})),e.events.map(Q)]},e.key);var t}),v&&(0,c.jsx)(Or,{propositions:v.props.filter(e=>!T(e)),title:v.title,onClose:()=>N(null)})]})}function Ir(){return(0,c.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,c.jsx)("rect",{x:"3",y:"5",width:"12",height:"16",rx:"2"}),(0,c.jsx)("path",{d:"M8.5 3h7a2 2 0 0 1 2 2v12"})]})}function Ur({rotated:e}){return(0,c.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,style:{transform:e?"rotate(-90deg)":void 0,transition:"transform 0.15s ease"},children:(0,c.jsx)("path",{d:"m6 9 6 6 6-6"})})}function $r(e,t,n){if(!t||(o=n)&&o.split(" vs ").length>1)return null;var o;const r=e.outcome||e.description;return r?t(r):null}function Kr({matchup:e,renderTeamLogo:t,altText:n,mutedColor:o,size:r="sm"}){const[l,s=""]=e.split(" vs "),a="md"===r?"text-sm sm:text-base":"text-sm";if(!(s.length>0))return(0,c.jsx)("span",{className:`font-semibold ${a} leading-snug break-words`,style:{color:n},children:e});const i=(e,n)=>(0,c.jsxs)("span",{className:`inline-flex items-center gap-1 leading-snug min-w-0 max-w-full ${n}`,children:[t?.(e),(0,c.jsx)("span",{className:"break-words min-w-0",children:e})]});return(0,c.jsxs)("span",{className:`font-semibold ${a} grid grid-cols-[auto_1fr] items-center gap-x-1.5 min-w-0 max-w-full sm:flex sm:flex-wrap sm:items-center`,style:{color:n},children:[i(l,"col-start-2 row-start-1"),(0,c.jsx)("span",{className:"text-xs font-normal flex-shrink-0 col-start-1 row-start-1 row-span-2 self-center",style:{color:o},children:"vs"}),i(s,"col-start-2 row-start-2")]})}function Zr({label:e,colors:t}){const n="OR"===e?"If either wins, you win.":"Both must win for Yes.",[o,r]=(0,s.useState)(!1),[l,a]=(0,s.useState)({top:0,left:0}),i=(0,s.useRef)(null),d=(0,s.useCallback)(()=>{const e=i.current;if(!e)return;const t=e.getBoundingClientRect();a({top:t.bottom+4,left:t.left})},[]);return(0,s.useEffect)(()=>{if(!o)return;d();const e=()=>d();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[o,d]),(0,c.jsxs)("span",{className:"relative inline-flex flex-shrink-0",onMouseEnter:()=>{d(),r(!0)},onMouseLeave:()=>r(!1),children:[(0,c.jsx)("button",{ref:i,type:"button",className:"px-2 py-0.5 rounded-md text-[10px] font-bold uppercase tracking-wide leading-none cursor-help",style:{color:t.primary,backgroundColor:M(t.primary,.14),border:`1px solid ${M(t.primary,.45)}`},"aria-label":n,"aria-expanded":o,onClick:e=>{e.stopPropagation(),d(),r(e=>!e)},children:e}),o&&(0,c.jsx)("span",{role:"tooltip",className:"fixed z-[9999] min-w-[12rem] max-w-[22rem] rounded-md px-2.5 py-1.5 text-[11px] leading-snug shadow-lg pointer-events-none",style:{top:l.top,left:l.left,color:t.text,backgroundColor:t.backgroundAlt??"#fff",border:`1px solid ${t.border??M(t.primary,.3)}`},children:n})]})}function qr({prop:e,colors:t,size:n="sm",componentById:o,textClass:r,textColor:l,eventLabels:a="show",renderTeamLogo:i}){const d=lt(e,o),u=e.description??e.proposition??"",m=r??("md"===n?"text-sm sm:text-base font-medium":"text-xs sm:text-sm"),p=l??t.text,h=t.textMuted??t.textAltMuted??t.text;if(!d)return(0,c.jsx)("span",{className:m,style:{color:p},children:u});const{operator:f,legs:x}=d;if("show"===a&&x.some(e=>e.eventLabel)){const e=t.backgroundAlt??"transparent";return(0,c.jsx)("div",{className:"min-w-0 flex-1",children:x.map((n,o)=>{const r=n.prop?.home_team?.trim(),l=n.prop?.away_team?.trim(),a=i&&(r||l)?(0,c.jsxs)("span",{className:"mr-1 inline-flex shrink-0 items-center gap-0.5 whitespace-nowrap rounded-full border px-1 py-0.5 align-middle",style:{backgroundColor:e,borderColor:t.border??"transparent"},title:n.eventLabel??void 0,"aria-label":n.eventLabel??void 0,children:[r?i(r,16):null,r&&l?(0,c.jsx)("span",{className:"text-[9px] font-semibold uppercase",style:{color:h},children:"vs"}):null,l?i(l,16):null]}):null;return(0,c.jsxs)(s.default.Fragment,{children:[o>0&&(0,c.jsx)("span",{className:"mx-1 align-middle",children:(0,c.jsx)(Zr,{label:f,colors:t})}),a,!a&&n.eventLabel&&(0,c.jsx)("span",{className:"mr-1 inline-block rounded px-1 align-middle text-[9px] font-bold uppercase leading-[14px] tracking-wide",style:{backgroundColor:e,color:h},children:n.eventLabel}),(0,c.jsx)("span",{className:m,style:{color:p},title:n.eventLabel??void 0,children:n.text})]},o)})})}return(0,c.jsx)("div",{className:"min-w-0 flex-1",children:(0,c.jsx)("div",{className:"flex flex-wrap items-center gap-x-1.5 gap-y-1",children:x.map((e,n)=>(0,c.jsxs)(s.default.Fragment,{children:[n>0&&(0,c.jsx)(Zr,{label:f,colors:t}),(0,c.jsx)("span",{className:m,style:{color:p,textDecoration:e.eventLabel?"underline dotted":void 0,textUnderlineOffset:e.eventLabel?3:void 0,cursor:e.eventLabel?"help":void 0},title:e.eventLabel??void 0,children:e.text})]},n))})})}function Vr({game:e,propositions:t,selections:n,onToggleSelection:o,onNext:r,onBack:l,loading:a,error:i,theme:d,colorScheme:u,hideActions:m=!1,initialSport:p,renderTeamLogo:h,disableQuickPick:f=!1,selectedPropositionCount:x,onPropositionCountChange:g,gameCategory:y,headerExtra:b,variant:w,disableEventSwipe:k}){const v=(0,s.useContext)(yr),N=v?.sportBaseKey,C=v?.compositeComponentById,F=w??v?.selectionVariant,B=k??v?.disableEventSwipe??!1,A=pe(d,u),S=A.colors,L=K(A),z=q(A),P=S.matchupHeader??(e.color?M(e.color,.14):Z(A)),T=S.textAlt??S.text,D=O(A),E=he(A);fe(A),j(A);const Y=!!(e.allowed_propositions&&e.allowed_propositions.length>0),{min:H,max:R}=Ft(e,x),G=H,W=R,[I,U]=s.default.useState(()=>new Set(Object.keys(Ut(t,y,N)))),$=G>0&&G===W,X=G||1,Q=W||t.length,J=W||G||t.length,[_,ee]=s.default.useState(J),te=Object.keys(n).length,ne=W>0&&te>=W,oe=Y?null!=x&&te===x:Ct(te,e.min_propositions,e.max_propositions);e.min_bet,W>0?Math.max(2,2*W):Math.max(2,2*te);const re=s.default.useRef(te),le=Y?null!=x&&te===x:W>0&&te===W;(0,s.useEffect)(()=>{le&&te>re.current&&r?.(),re.current=te},[te,le]);const se=(0,s.useMemo)(()=>jo(t,n,C),[t,n,C]),ae=(0,s.useMemo)(()=>t.some(e=>null!==To(e)),[t]),ie=(e,r)=>{if(e in n)return void o(e,r);if(ne)return;const l=t.find(t=>t.id===e);l&&se.isCapped(l)||o(e,r)},ce=e=>ae&&0!==e.length?(0,c.jsx)("span",{className:"flex shrink-0 items-center gap-1",children:se.slotsFor(Do(e[0])).map(({family:e,label:t,filled:n})=>(0,c.jsx)("span",{title:So(e,n),"aria-label":So(e,n),className:"rounded-full border px-1.5 text-[9px] font-bold uppercase leading-[16px] tracking-wide "+(n?"":"border-dashed"),style:{borderColor:n?T:S.border,color:n?T:S.textMuted,cursor:"help"},children:t},e))}):null;(0,s.useEffect)(()=>{const e=W||t.length,n=G||1;ee(t=>$?W:Math.max(n,Math.min(t,e)))},[t.length,G,W,$]);const de=(0,s.useMemo)(()=>new Date,[]),ue=(0,s.useMemo)(()=>function(e,t){const n=e.filter(e=>null!=function(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}(e));if(n.length<2)return[];const o=[];for(const r of No){let e=0,l=0;for(const o of n)if(Fo(o.commence_time,r,t)?e+=1:l+=1,e>0&&l>0)break;e>0&&l>0&&o.push({id:r,label:vo[r]})}return o}(t,de),[t,de]),[me,xe]=(0,s.useState)(null);(0,s.useEffect)(()=>{me&&!ue.some(e=>e.id===me)&&xe(null)},[ue,me]);const ge=(0,s.useMemo)(()=>function(e,t,n){return t?e.filter(e=>Fo(e.commence_time,t,n)):e.slice()}(t,me,de),[t,me,de]),ye=(0,s.useMemo)(()=>At(y,ge,N),[y,ge,N]),be=(0,s.useMemo)(()=>Ut(ge,y,N),[ge,y,N]),we=(0,s.useMemo)(()=>{const e=new Set;for(const t of ge){const n=_e(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[ge]),[ke,ve]=(0,s.useState)(null),[Ne,Ce]=(0,s.useState)(!1);(0,s.useEffect)(()=>{ke&&!we.includes(ke)&&ve(null)},[we,ke]);const Fe=(0,s.useMemo)(()=>{if(!ke)return be;const e={};for(const[t,n]of Object.entries(be)){const o=n.filter(e=>_e(e)===ke);o.length>0&&(e[t]=o)}return e},[be,ke]),Be=Object.keys(Fe);if(s.default.useEffect(()=>{const e=Object.keys(Fe);e.length>0&&U(t=>e.every(e=>t.has(e))?t:new Set(e))},[Fe]),a)return(0,c.jsx)(xn,{colors:V(A),bodyFont:E,variant:"propositions"});if(i)return(0,c.jsx)("div",{className:"flex items-center justify-center p-8",style:{fontFamily:E},children:(0,c.jsx)("div",{style:{color:S.error},children:i})});const Ae=!f&&t.length>0,Me=ue.length>0||we.length>1,Se=(null!=me?1:0)+(null!=ke?1:0);return(0,c.jsxs)("div",{className:"space-y-4 sm:space-y-6 pb-16",style:{fontFamily:E},children:[(Me||b)&&(0,c.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,c.jsx)("div",{className:"flex items-center gap-2",children:Me&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("button",{type:"button",onClick:()=>Ce(e=>!e),"aria-expanded":Ne,className:"inline-flex items-center gap-1.5 rounded-full px-3 py-1.5 text-[11px] font-bold transition-colors",style:{fontFamily:E,border:`1px solid ${Se>0?S.primary:S.border}`,backgroundColor:Se>0?S.primary:S.background??"#fff",color:Se>0?S.primaryText:S.text,cursor:"pointer"},children:[(0,c.jsx)(Ke,{size:13}),"Filter",Se>0&&(0,c.jsxs)("span",{children:["· ",Se]}),(0,c.jsx)("span",{className:"inline-flex transition-transform",style:{transform:`rotate(${Ne?-90:90}deg)`,opacity:.75},children:(0,c.jsx)(Ze,{size:13})})]}),Se>0&&(0,c.jsx)("button",{type:"button",onClick:()=>{xe(null),ve(null)},className:"text-[11px] font-semibold",style:{color:S.textMuted,cursor:"pointer"},children:"Clear"})]})}),b]}),Ne&&Me&&(0,c.jsxs)("div",{className:"space-y-2.5",children:[ue.length>0&&(0,c.jsx)(Je,{label:"When",options:[{value:null,label:"All dates"},...ue.map(e=>({value:e.id,label:e.label}))],value:me,onChange:e=>xe(e),theme:A,bodyFont:E}),we.length>1&&(0,c.jsx)(Je,{label:"Market",options:[{value:null,label:"All markets"},...we.map(e=>{return{value:e,label:(t=e,t.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))};var t})],value:ke,onChange:ve,theme:A,bodyFont:E})]}),Ae&&(0,c.jsx)("div",{className:"flex flex-wrap items-center justify-end gap-2",children:(0,c.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2 flex-shrink-0",children:[!$&&(0,c.jsxs)("div",{className:"flex items-center gap-1",children:[(0,c.jsx)("input",{type:"number",min:X,max:Q,value:_,onChange:e=>{const t=parseInt(e.target.value,10);isNaN(t)||ee(Math.max(X,Math.min(Q,t)))},className:"w-10 sm:w-14 px-1 sm:px-2 py-1 sm:py-1.5 rounded-lg text-xs sm:text-sm font-semibold text-center",style:{color:T,backgroundColor:S.backgroundAlt,border:`2px solid ${S.border}`}}),(0,c.jsxs)("span",{className:"text-xs whitespace-nowrap",style:{color:S.textMuted},children:["/ ",t.length]})]}),(0,c.jsx)(kr,{onPress:()=>{const e=$?W:_;for(const t of Object.keys(n)){const e=Number(t);o(e,n[e])}const{yesPicks:l,noPicks:s}=Zt(t,e);for(const t of l)o(t.id,"yes");for(const t of s)o(t.id,"no");r?.()}})]})}),t.length>0&&F&&(0,c.jsx)(Wr,{variant:F,groups:Fe,racing:ye,selections:n,onToggleSelection:ie,atMax:ne,theme:A,renderTeamLogo:h,componentById:C,disableEventSwipe:B}),t.length>0&&!F&&(0,c.jsx)("div",{className:"space-y-4",children:Be.every(e=>1===Fe[e].length)?(0,c.jsx)("div",{className:"rounded-xl border overflow-hidden divide-y",style:{borderColor:S.border,backgroundColor:L,boxShadow:D},children:Be.map(e=>{const t=Fe[e][0],o="yes"===n[t.id],r="no"===n[t.id],l=t.id in n,s=ne&&!l||se.isCapped(t);return(0,c.jsxs)("div",{className:"transition-colors divide-y",style:{opacity:s?.45:1,borderColor:S.border},children:[(0,c.jsxs)("div",{className:"px-4 py-2.5 sm:py-3 min-w-0",style:{backgroundColor:P},children:[(0,c.jsx)("div",{className:"min-w-0",children:(0,c.jsx)(Kr,{matchup:e,renderTeamLogo:h,altText:T,mutedColor:S.textAltMuted??S.textMuted??T})}),(0,c.jsxs)("div",{className:"flex items-center gap-2 mt-0.5 min-w-0",children:[t.commence_time&&(0,c.jsx)("span",{className:"text-[11px]",style:{color:S.textAltMuted??S.textMuted,opacity:.7},children:ft(t.commence_time)}),ce([t])]})]}),(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 px-4 py-3 sm:py-3.5",style:{backgroundColor:z},children:[(0,c.jsxs)("div",{className:"min-w-0 flex-1 flex items-start gap-2",children:[$r(t,h,e),(0,c.jsx)(qr,{prop:t,colors:S,componentById:C,renderTeamLogo:h})]}),(0,c.jsx)(De,{theme:A,size:"sm",value:o?"yes":r?"no":null,onYes:()=>ie(t.id,"yes"),onNo:()=>ie(t.id,"no"),disabled:s})]})]},t.id)})}):Be.map(e=>{const t=Fe[e],o=I.has(e),r=t.filter(e=>e.id in n).length,l=t[0]?.commence_time;return(0,c.jsxs)("div",{className:"rounded-xl border overflow-hidden",style:{borderColor:S.border,backgroundColor:L,boxShadow:D},children:[(0,c.jsxs)("button",{type:"button",onClick:()=>{return t=e,U(e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n});var t},className:"w-full flex items-center justify-between px-4 py-3.5 transition-colors",style:{backgroundColor:P,cursor:"pointer"},children:[(0,c.jsxs)("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[(0,c.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"flex-shrink-0",style:{color:S.textAltMuted??S.textMuted,transform:o?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.15s ease"},"aria-hidden":!0,children:(0,c.jsx)("path",{d:"m6 9 6 6 6-6"})}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsx)(Kr,{matchup:e,renderTeamLogo:h,altText:T,mutedColor:S.textAltMuted??S.textMuted??T,size:"md"}),(0,c.jsxs)("div",{className:"flex items-center gap-2 mt-0.5 min-w-0",children:[l&&(0,c.jsx)("span",{className:"text-xs text-left",style:{color:S.textAltMuted??S.textMuted,opacity:.7},children:ft(l)}),ce(t)]})]})]}),(0,c.jsx)("div",{className:"flex items-center gap-2 flex-shrink-0 ml-2",children:r>0&&(0,c.jsxs)("span",{className:"text-xs px-2 py-0.5 rounded-full font-medium",style:{color:r>0?S.successText:S.textMuted,backgroundColor:r>0?S.successBg:S.backgroundAlt},children:[r,"/",t.length]})})]}),o&&(0,c.jsx)("div",{className:"divide-y",style:{borderColor:S.border},children:(0,c.jsx)(c.Fragment,{children:t.map(t=>{const o="yes"===n[t.id],r="no"===n[t.id],l=t.id in n,s=ne&&!l||se.isCapped(t);return(0,c.jsx)("div",{className:"px-4 py-3 sm:py-3.5 transition-colors",style:{backgroundColor:z,opacity:s?.45:1},children:(0,c.jsxs)("div",{className:"flex flex-wrap justify-between items-start gap-x-2 gap-y-2 sm:gap-4",children:[(0,c.jsxs)("div",{className:"flex-1 min-w-0 flex items-start gap-2",style:{minWidth:"8rem"},children:[$r(t,h,e),(0,c.jsx)(qr,{prop:t,colors:S,size:"md",componentById:C,renderTeamLogo:h})]}),(0,c.jsx)(De,{theme:A,size:"sm",value:o?"yes":r?"no":null,onYes:()=>ie(t.id,"yes"),onNo:()=>ie(t.id,"no"),disabled:s})]})},t.id)})})})]},e)})}),0===t.length&&(0,c.jsx)("div",{className:"text-center p-8",style:{color:S.textMuted},children:"No propositions available at this time"}),!m&&(0,c.jsxs)("div",{className:"sticky bottom-0 z-10 -mx-4 sm:-mx-6 px-4 sm:px-6 py-3 sm:py-4 border-t flex items-center justify-between gap-3",style:{borderColor:S.border,backgroundColor:L},children:[(0,c.jsx)(Pe,{theme:A,variant:"secondary",onPress:l,children:"Back"}),(0,c.jsx)("div",{className:"flex items-center gap-2 sm:gap-3",children:(0,c.jsx)(Pe,{theme:A,variant:"primary",disabled:!oe,onPress:r,children:"Wager"})})]})]})}function Xr({game:e,propositions:t,selections:n,onToggleSelection:o,onRemoveSelection:r,onSubmit:l,onBack:a,loading:i,error:d,expectedCorrect:u,onExpectedCorrectChange:m,betAmount:p,onBetAmountChange:h,theme:f,colorScheme:x,hideActions:g=!1,winningCounts:y,payouts:b,renderTeamLogo:w,componentById:k,showCustomAmount:v=!1,betAmountLocked:N=!1,betAmountLockedNote:C,canSubmit:F,authenticated:B=!0,userBalance:A,onRecharge:M,boostBanner:S}){const L=pe(f,x),z=L.colors,P=K(L),T=he(L),D=fe(L),E=j(L),R=Y(L),G=H(L),W=z.textAlt??z.text,I=t.length,U=e.min_bet??0,$=Math.max(U,.01),V=e.max_bet??null,X=[5,10,20,50,100,200,500].filter(e=>e>=$&&(null===V||e<=V)).slice(0,4),Q={};for(let s=0;s<=I;s++)Q[s]=p*s;const J=b??Q,_=J[u]??0,ee=Bt(e),te=ee.enabled&&u===I,[ne,oe]=(0,s.useState)(null),[re,le]=(0,s.useState)(!0),se=i||p<$||!1===F,ae=null!=A&&p>A,ie=g&&!!l&&B,ce=n?t.filter(e=>e.id in n):t,de=$t(ce),ue=z.matchupHeader??Z(L),me=q(L),xe=Object.entries(J).map(([e,t])=>({correct:Number(e),payout:t})).filter(e=>e.correct>0&&e.payout>0).sort((e,t)=>e.correct-t.correct),ge=1===xe.length?xe[0].correct:null;return s.default.useEffect(()=>{null!==ge&&u!==ge&&m(ge)},[ge]),(0,c.jsxs)("div",{className:"space-y-3 sm:space-y-4 pb-16",style:{fontFamily:T},children:[S,(0,c.jsxs)("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:P,borderColor:z.border,boxShadow:O(L)},children:[(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,c.jsxs)("button",{type:"button",onClick:()=>le(e=>!e),"aria-expanded":re,"aria-controls":"entry-submission-selections","aria-label":re?"Hide selections":"Show selections","data-testid":"entry-submission-selections-toggle",className:"flex items-center gap-2 min-w-0 flex-1 text-left",style:{background:"none",border:"none",padding:0,cursor:"pointer",color:"inherit"},children:[(0,c.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{color:z.textMuted,flexShrink:0,transform:re?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.15s ease"},children:(0,c.jsx)("path",{d:"m6 9 6 6 6-6"})}),(0,c.jsx)("h3",{className:"text-sm sm:text-base font-semibold",style:{color:E,fontFamily:D},children:re?"Hide Selections":"Review Selections"})]}),(0,c.jsxs)("span",{className:"text-xs font-semibold px-2 py-0.5 rounded-full flex-shrink-0",style:{color:z.primary,backgroundColor:`${z.primary}15`},children:[ce.length," pick",1!==ce.length?"s":""]})]}),!re&&(0,c.jsx)("p",{className:"text-xs mt-2",style:{color:z.textMuted},children:"Tap to show your picks"}),re&&(0,c.jsx)("div",{id:"entry-submission-selections",className:"space-y-2 mt-3",children:de.map(e=>(0,c.jsxs)("div",{className:"rounded-lg overflow-hidden border",style:{borderColor:z.border},children:[e.key&&(0,c.jsxs)("div",{className:"px-3 py-2 min-w-0",style:{backgroundColor:ue},children:[(0,c.jsx)(Kr,{matchup:e.key,renderTeamLogo:w,altText:W,mutedColor:z.textAltMuted??z.textMuted??W}),e.props[0].commence_time&&(0,c.jsx)("span",{className:"text-[11px] block mt-0.5",style:{color:z.textAltMuted??z.textMuted,opacity:.7},children:ft(e.props[0].commence_time)})]}),e.props.map((t,l)=>{const s=n?.[t.id],a="yes"===s,i="no"===s,d=!!o;return(0,c.jsxs)("div",{className:"flex items-center justify-between gap-2 px-3 py-2 cursor-default",style:{backgroundColor:me,borderTop:e.key||l>0?`1px solid ${z.border}`:void 0},children:[(0,c.jsxs)("div",{className:"min-w-0 flex-1 flex items-start gap-2",children:[$r(t,w,e.key),(0,c.jsx)(qr,{prop:t,colors:z,componentById:k??void 0,renderTeamLogo:w,textClass:"text-xs sm:text-sm break-words leading-snug",textColor:W})]}),(0,c.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-1.5",children:[d?(0,c.jsx)(De,{theme:L,size:"xs",value:a?"yes":i?"no":null,onYes:()=>o(t.id,"yes"),onNo:()=>o(t.id,"no")}):s?(0,c.jsx)(Ee,{theme:L,value:"yes"===s?"yes":"no",size:"sm",style:{flexShrink:0}}):null,re&&r&&(0,c.jsx)("button",{type:"button","aria-label":"Remove selection",onClick:()=>{s&&o?.(t.id,s),r(t.id)},onMouseEnter:()=>oe(t.id),onMouseLeave:()=>oe(null),className:"flex-shrink-0 flex items-center justify-center",style:{width:44,height:44,background:"none",border:"none",padding:0,cursor:"pointer"},children:(0,c.jsx)("span",{className:"flex items-center justify-center rounded-full transition-colors",style:{width:26,height:26,color:ne===t.id?"#fff":z.textMuted,backgroundColor:ne===t.id?z.error:"transparent"},children:(0,c.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",strokeWidth:"2.5",viewBox:"0 0 24 24",children:(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})})]})]},t.id)})]},e.key??`solo-${e.props[0].id}`))})]}),ie&&(0,c.jsxs)("p",{className:"text-xs sm:text-sm font-medium flex items-center gap-1.5 -mt-1","data-testid":"entry-submission-scroll-hint",style:{color:z.textMuted},children:[(0,c.jsx)("span",{"aria-hidden":!0,children:"↓"}),"Scroll down to set your bet and place your entry"]}),B?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:P,borderColor:z.border,boxShadow:O(L)},children:[(0,c.jsxs)("div",{className:"flex items-center justify-between mb-3 sm:mb-4",children:[(0,c.jsx)("h3",{className:"text-base sm:text-lg font-semibold",style:{color:E,fontFamily:D},children:"How much are you betting?"}),null!=A&&(0,c.jsxs)("span",{className:"text-xs font-semibold",style:{color:z.textMuted},children:["Balance: ",(0,c.jsx)("span",{style:{color:ae?z.error:z.success},children:ht(A)})]})]}),ae&&(0,c.jsxs)("div",{className:"mb-3 px-3 py-2 rounded-lg flex items-center justify-between gap-3",style:{backgroundColor:z.errorBg??`${z.error}15`,color:z.errorText??z.error},children:[(0,c.jsxs)("span",{className:"text-xs font-medium",children:["Insufficient balance. Your bet of ",ht(p)," exceeds your available ",ht(A),"."]}),M&&(0,c.jsx)("button",{type:"button",onClick:M,className:"text-xs font-semibold px-3 py-1 rounded-md whitespace-nowrap",style:{backgroundColor:z.error,color:z.buttonPrimaryText??"#fff",cursor:"pointer"},children:"Add funds"})]}),N?(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-lg px-3 py-2.5",style:{backgroundColor:z.backgroundAlt,border:`1px solid ${z.border}`},children:[(0,c.jsx)("span",{className:"text-xs",style:{color:z.textMuted},children:C??"Stake is set for this ticket."}),(0,c.jsx)("span",{className:"text-lg font-bold tabular-nums",style:{color:E,fontFamily:D},children:ht(p)})]}):(0,c.jsxs)("div",{className:"space-y-4",children:[v&&(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{className:"text-xs sm:text-sm font-semibold mb-2",style:{color:R},children:"Entry amount"}),(0,c.jsxs)("div",{className:"relative",children:[(0,c.jsx)("span",{className:"absolute left-3 top-1/2 -translate-y-1/2",style:{color:z.textMuted},children:"$"}),(0,c.jsx)("input",{type:"number",inputMode:"decimal",min:$,max:V??void 0,step:"any",placeholder:"Enter amount","aria-label":"Entry amount",value:p||"",onChange:e=>{if(""===e.target.value)return void h(0);const t=Number(e.target.value);if(!Number.isFinite(t))return;const n=Math.max(0,Math.round(100*t)/100);h(null!==V?Math.min(n,V):n)},onFocus:e=>{e.currentTarget.style.borderColor=z.borderFocus??z.primary},onBlur:e=>{e.currentTarget.style.borderColor=z.border},className:"w-full pl-8 pr-4 py-3 border rounded-lg focus:outline-none text-lg font-semibold tabular-nums",style:{borderColor:z.border,color:W,backgroundColor:z.backgroundAlt,fontFamily:T,transition:"border-color .15s ease"}})]}),(0,c.jsxs)("p",{className:"text-xs mt-1.5",style:{color:z.textMuted},children:["Minimum bet: ",ht($),null!==V&&(0,c.jsxs)(c.Fragment,{children:[" · Maximum: ",ht(V)]})]}),p>0&&p<$&&(0,c.jsxs)("p",{className:"text-xs mt-1",style:{color:z.error},children:["Bet amount must be at least ",ht($)]})]}),(0,c.jsxs)("div",{children:[(v||p>0)&&(0,c.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[v?(0,c.jsx)("p",{className:"text-xs sm:text-sm font-semibold",style:{color:R},children:"Add to bet"}):(0,c.jsx)("span",{}),p>0&&(0,c.jsx)("button",{type:"button",onClick:()=>h(0),className:"text-xs font-semibold px-2.5 py-1 rounded-md transition-colors",style:{color:z.textMuted,backgroundColor:z.backgroundAlt,border:`1.5px solid ${z.border}`,cursor:"pointer"},children:"Clear bet"})]}),(0,c.jsx)("div",{style:{display:"grid",gridTemplateColumns:`repeat(${Math.max(X.length,1)}, minmax(0, 1fr))`,gap:8},children:X.map(e=>{const t=null!==V&&p>=V;return(0,c.jsxs)("button",{type:"button",onClick:()=>{const t=p+e;h(null!==V?Math.min(t,V):t)},disabled:t,className:"px-3 py-2.5 rounded-lg text-sm font-semibold transition-colors min-w-0",style:{color:W,backgroundColor:"transparent",border:`1px solid ${z.border}`,cursor:t?"not-allowed":"pointer",opacity:t?.5:1},children:["+",ht(e)]},e)})})]})]})]}),(0,c.jsx)("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:P,borderColor:z.border,boxShadow:O(L)},children:(()=>{const e=g&&!!l,t=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"flex justify-between items-center text-sm mb-1",children:[(0,c.jsx)("span",{style:{color:R},children:"Bet"}),(0,c.jsx)("span",{className:"font-semibold",style:{color:G},children:ht(p)})]}),_>0&&(0,c.jsxs)("div",{className:"flex flex-wrap gap-x-2 justify-between items-center pt-2 border-t",style:{borderColor:z.border},children:[(0,c.jsx)("span",{className:"font-semibold text-sm",style:{color:R},children:"Potential Payout"}),(0,c.jsxs)("span",{className:"font-bold text-lg",style:{color:E},children:[ht(_),te&&(0,c.jsx)("span",{className:"text-xs ml-1",style:{color:z.warning},children:"+ Jackpot"})]})]}),ee.enabled&&(0,c.jsxs)("div",{className:"flex justify-between items-center mt-2 rounded px-2 py-1.5",style:{backgroundColor:`${z.warning}08`,border:`1px solid ${z.warning}25`},children:[(0,c.jsxs)("span",{className:"text-xs font-semibold",style:{color:z.warning},children:["★ ",ee.progressive?"Progressive Jackpot":"Jackpot"]}),(0,c.jsx)("span",{className:"text-sm font-bold",style:{color:z.warning},children:ee.progressive?ee.amount>0?ht(ee.amount):ee.limit>0?`Up to ${ht(ee.limit)}`:"Progressive":ht(ee.amount)})]})]});return e?(0,c.jsxs)("div",{className:"flex items-stretch gap-4",children:[(0,c.jsx)("div",{className:"flex-1 min-w-0",children:t}),(0,c.jsx)("div",{className:"w-px self-stretch",style:{backgroundColor:z.border}}),(0,c.jsx)("button",{type:"button",onClick:l,disabled:se,"aria-busy":i,className:"flex-shrink-0 flex flex-col items-center justify-center px-5 py-3 rounded-lg text-sm font-semibold transition-colors disabled:opacity-50 disabled:cursor-not-allowed",style:{color:z.buttonPrimaryText,backgroundColor:z.buttonPrimary,cursor:se?"not-allowed":"pointer",minWidth:120},children:i?(0,c.jsxs)("span",{className:"flex flex-col items-center gap-2",children:[(0,c.jsx)(nn,{color:z.buttonPrimaryText}),(0,c.jsx)("span",{children:"Placing Entry…"})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"text-base font-bold leading-tight",children:"Place Entry"}),(0,c.jsx)("span",{className:"text-xs opacity-90 leading-tight mt-0.5",children:ht(p)})]})})]}):t})()})]}):(0,c.jsxs)("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:P,borderColor:z.border,boxShadow:O(L)},children:[(0,c.jsx)("h3",{className:"text-base sm:text-lg font-semibold",style:{color:E,fontFamily:D},children:"Log in to place this entry"}),(0,c.jsx)("p",{className:"text-xs sm:text-sm mt-1 mb-4",style:{color:z.textMuted},children:"Your picks are held. Log in to set your bet and confirm."}),(0,c.jsx)("button",{type:"button",onClick:l,className:"w-full px-6 py-3 rounded-lg text-sm font-semibold transition-colors",style:{color:z.buttonPrimaryText,backgroundColor:z.buttonPrimary,cursor:"pointer"},children:"Log in"})]}),d&&(0,c.jsx)("div",{className:"rounded-lg p-3",style:{backgroundColor:z.errorBg,border:`1px solid ${z.error}`},children:(0,c.jsx)("p",{className:"text-sm",style:{color:z.errorText},children:d})}),!g&&(0,c.jsxs)("div",{className:"sticky bottom-0 z-10 -mx-4 sm:-mx-6 px-4 sm:px-6 py-3 sm:py-4 border-t flex items-center justify-between gap-3",style:{borderColor:z.border,backgroundColor:z.background},children:[(0,c.jsx)(Pe,{theme:L,variant:"secondary",disabled:i,onPress:a,children:"Back"}),(0,c.jsx)("button",{type:"button",onClick:l,disabled:se,"aria-busy":i,className:"px-6 py-2.5 rounded-lg text-sm font-semibold transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",style:{color:z.buttonPrimaryText,backgroundColor:z.buttonPrimary,cursor:se?"not-allowed":"pointer"},children:i?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(nn,{color:z.buttonPrimaryText}),(0,c.jsx)("span",{children:"Placing Entry…"})]}):(0,c.jsx)("span",{children:`Place Entry (${ht(p)})`})})]})]})}function Qr({iconUrl:e,gameName:t,chipColor:n,textColor:o,iconColor:r,accentColor:l,brandColor:s,height:a=56,showTrademark:i=!0,className:d,compact:u=!1,onPress:m}){const p=n??s??"#0F4C5C",h=.85*a,f=1.8*h,x=h/2,g=.05*h,y=.18*h,b={display:"inline-flex",alignItems:"center",flexWrap:"wrap",gap:.2*a,color:o??p,fontFamily:"Manrope, Poppins, sans-serif",fontSize:a,lineHeight:1.15,maxWidth:"100%",minWidth:0},w=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{"aria-label":"YESNO",style:{letterSpacing:-1,whiteSpace:"nowrap"},children:[(0,c.jsx)("span",{style:{fontWeight:900},children:"YES"}),(0,c.jsx)("span",{style:{fontWeight:300},children:"NO"})]}),(0,c.jsx)("span",{role:"img","aria-label":t,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:f,height:h,borderRadius:x,backgroundColor:p,flexShrink:0,transform:`translateY(${.06*-a}px)`},children:(0,c.jsx)(Qt,{iconUrl:e,width:f-2*y,height:h-2*g,iconColor:r,accentColor:l})}),(0,c.jsxs)("span",{style:{fontWeight:500,whiteSpace:"normal",wordBreak:"break-word",minWidth:0,flexShrink:1},children:[t,i&&(0,c.jsx)("span",{style:{fontSize:"0.3em",fontWeight:600,marginLeft:"0.2em",display:"inline-block",transform:"translateY(-1.8em)"},children:"TM"})]})]});return m?(0,c.jsx)("button",{type:"button",onClick:m,className:d,"aria-label":`Play ${t}`,"data-testid":"brand-logo-play",style:{...b,background:"none",border:"none",padding:0,cursor:"pointer",textAlign:"left"},children:w}):(0,c.jsx)("div",{className:d,style:b,children:w})}function Jr({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,demoEntries:l,demoGames:a,demoPropositions:i,onSelectEntry:d,theme:u,colorScheme:m,className:p="",renderTeamLogo:h,filterSport:f}){const x=pe(u,m),g=!!(l&&a&&i),y=x.colors,b=he(x),w=fe(x),[k,v]=(0,s.useState)("pending"),[N,C]=(0,s.useState)([]),F=(0,s.useMemo)(()=>new Yo({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:B,loading:A,error:M,refetch:S}=Wo(F,{user_id:r},{skip:g}),{games:L,loading:z,error:P}=Ho(F,void 0,{skip:g}),{propositions:T,loading:O,error:D}=Ro(F,void 0,{skip:g}),E=g?l:B,j=g?a:L,Y=g?i:T,H=!g&&(A||z||O),R=g?null:M||P||D,G=(0,s.useMemo)(()=>E.map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t}),[E]),W=(0,s.useMemo)(()=>{const e=new Map;for(const t of j)e.set(t.id,t);return e},[j]),I=(0,s.useMemo)(()=>{const e=new Map;for(const t of Y)e.set(t.id,t);for(const t of G)if(t.propositions)for(const n of t.propositions)e.has(n.id)||e.set(n.id,n);for(const t of N)e.set(t.id,t);return e},[Y,G,N]),U=(0,s.useRef)(new Set);(0,s.useEffect)(()=>{if(H||g)return;const e=[];for(const n of G)for(const t of n.proposition_ids??[])I.has(t)||U.current.has(t)||(e.push(t),U.current.add(t));if(0===e.length)return;let t=!1;return(async()=>{try{const n=await F.getPropositionsByIds(e);!t&&n.length>0&&C(e=>[...e,...n])}catch{}})(),()=>{t=!0}},[G,I,H,g,F]);const $=(0,s.useMemo)(()=>f?G.filter(e=>{const t=e.proposition_ids??[];return 0===t.length||t.some(t=>(I.get(t)??e.propositions?.find(e=>e.id===t))?.sport===f)}):G,[G,f,I]),K=(0,s.useMemo)(()=>$.filter(e=>pt(e.pending)),[$]),Z=(0,s.useMemo)(()=>$.filter(e=>!pt(e.pending)),[$]),q="pending"===k?K:Z,X=["flex-1",p].filter(Boolean).join(" ");return H?(0,c.jsx)("div",{className:X,style:{fontFamily:b},role:"status","aria-label":"Loading entries",children:(0,c.jsx)(fn,{colors:V(x),rows:2})}):R?(0,c.jsx)("div",{className:X,style:{fontFamily:b},children:(0,c.jsxs)("div",{className:"rounded-lg p-4",style:{backgroundColor:y.errorBg,border:`1px solid ${y.error}`},children:[(0,c.jsx)("p",{style:{color:y.errorText},children:R}),(0,c.jsx)("button",{type:"button",onClick:S,className:"mt-2 text-sm font-medium underline",style:{color:y.error,cursor:"pointer"},children:"Try again"})]})}):(0,c.jsxs)("div",{className:X,style:{fontFamily:b},children:[(0,c.jsx)("div",{className:"flex border-b mb-4",style:{borderColor:y.border},role:"tablist",children:["pending","completed"].map(e=>{const t=k===e,n="pending"===e?K.length:Z.length;return(0,c.jsxs)("button",{role:"tab","aria-selected":t,type:"button",onClick:()=>v(e),className:"flex items-center gap-2 px-4 py-2.5 text-sm font-medium transition-colors border-b-2 -mb-px",style:{borderColor:t?y.primary:"transparent",color:t?y.primary:y.textMuted,cursor:"pointer",fontFamily:w},children:["pending"===e?"Pending":"Completed",(0,c.jsx)("span",{className:"inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 rounded-full text-xs font-semibold",style:{backgroundColor:t?`${y.primary}15`:y.backgroundAlt,color:t?y.primary:y.textMuted},children:n})]},e)})}),0===q.length&&(0,c.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 px-4 text-center",children:[(0,c.jsx)("svg",{className:"w-12 h-12 mb-4",fill:"none",stroke:y.textMuted,strokeWidth:"1.5",viewBox:"0 0 24 24",children:"pending"===k?(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6l4 2m6-2a10 10 0 1 1-20 0 10 10 0 0 1 20 0z"}):(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m6 2a10 10 0 1 1-20 0 10 10 0 0 1 20 0z"})}),(0,c.jsx)("p",{className:"text-base font-medium",style:{color:y.text},children:"pending"===k?"No pending entries":"No completed entries"}),(0,c.jsx)("p",{className:"text-sm mt-1",style:{color:y.textMuted},children:"pending"===k?"Entries awaiting results will appear here":"Settled entries will appear here"})]}),(0,c.jsx)("div",{className:"space-y-3",children:q.map(e=>(0,c.jsx)(_r,{entry:e,game:W.get(e.game_id),propositionsById:I,onSelect:d,theme:x,renderTeamLogo:h},e.id))})]})}function _r({entry:e,game:t,propositionsById:n,onSelect:o,theme:r,renderTeamLogo:l}){const a=r.colors,i=K(r),d=fe(r),u=e.proposition_ids??[],m=(0,s.useMemo)(()=>u.map(e=>n.get(e)).filter(Boolean),[u,n]),p=u.length,h=(0,s.useMemo)(()=>{const t=new Map;for(const n of e.propositions??[])t.set(n.id,n);return t},[e.propositions]),f=t=>{const o=e.selections?.[t];return null!=o?o:h.get(t)?.user_prediction??n.get(t)?.user_prediction},x=m.filter(e=>null!=e.result&&!e.is_voided).length,g=m.filter(e=>{if(null==e.result||e.is_voided)return!1;const t=f(e.id);return null!=t&&t===e.result}).length,y=null!=e.selections&&Object.keys(e.selections).length>0||(e.propositions??[]).some(e=>null!=e.user_prediction),b=pt(e.pending),w=!b&&mt(e.winning)>0,k=e.payout_status,v="fulfilled"===k&&w,N=b?"Pending":v?"Won — pay due":"paid_out"===k&&w?"Paid":w?"Won":"Lost",C=b||v?a.warningBg:w?a.successBg:a.errorBg,F=b||v?a.warningText:w?a.successText:a.errorText,[B,A]=(0,s.useState)(!1),M=p>0;return(0,c.jsxs)("div",{className:"rounded-xl border overflow-hidden transition-colors",style:{borderColor:a.border,backgroundColor:i,boxShadow:O(r)},children:[(0,c.jsxs)("button",{type:"button","data-testid":"entry-card",onClick:()=>{M&&A(e=>!e),o?.({entry:e,game:t,propositions:m})},"aria-label":`Entry #${e.id}`,"aria-expanded":M?B:void 0,className:"w-full text-left px-4 py-3 flex items-center justify-between gap-3",style:{cursor:M||o?"pointer":"default",background:"none",border:"none"},children:[(0,c.jsxs)("div",{className:"min-w-0",children:[(()=>{const n=t?t.allowed_propositions&&t.allowed_propositions.length>0&&t.game_name.replace(/\s+\d+\s*$/,"").trim()||t.game_name:`Game #${e.game_id}`;return t?(0,c.jsx)(Qr,{iconUrl:ve(t),gameName:n,height:18,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:r.brand?.accent}):(0,c.jsx)("h3",{className:"text-base font-semibold truncate",style:{color:a.text,fontFamily:d},children:n})})(),(0,c.jsxs)("div",{className:"flex items-center gap-2 mt-0.5",children:[(e.created_at||e.entry_date)&&(0,c.jsx)("span",{className:"text-xs",style:{color:a.textMuted},children:ft(e.created_at||e.entry_date)}),p>0&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"text-xs",style:{color:a.textMuted},children:"·"}),(0,c.jsx)("span",{className:"text-xs font-medium",style:{color:y&&x>0?g>0?a.success:a.error:a.textMuted},children:y&&x>0?`${g}/${p} correct`:`${p} pick${1!==p?"s":""}`})]})]})]}),(0,c.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[(0,c.jsxs)("div",{className:"text-right",children:[mt(e.bet_amount)>0&&(0,c.jsx)("p",{className:"text-xs",style:{color:a.textMuted},children:ht(mt(e.bet_amount))}),!b&&mt(e.winning)>0&&(0,c.jsxs)("p",{className:"text-sm font-bold",style:{color:a.success},children:[ht(mt(e.winning)),(e.payout_jackpot??0)>0&&(0,c.jsxs)("span",{className:"block text-xs font-normal",style:{color:a.textMuted},children:["incl. ",ht(mt(e.payout_jackpot))," jackpot"]})]})]}),(0,c.jsx)("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-bold uppercase tracking-wide",style:{backgroundColor:C,color:F},children:N}),M&&(0,c.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,style:{color:a.textMuted,transition:"transform .2s ease",transform:B?"rotate(180deg)":"none"},children:(0,c.jsx)("path",{d:"m6 9 6 6 6-6"})})]})]}),B&&p>0&&(0,c.jsx)("div",{className:"border-t divide-y",style:{borderColor:a.border},children:u.map(t=>{const o=(t=>n.get(t)??e.propositions?.find(e=>e.id===t))(t),s=f(t);if(!o)return(0,c.jsxs)("div",{className:"px-4 py-2.5 flex items-center gap-3",style:{borderColor:a.border},children:[(0,c.jsx)("div",{className:"flex-1 min-w-0",children:(0,c.jsxs)("p",{className:"text-sm",style:{color:a.textMuted},children:["Loading proposition #",t,"…"]})}),null!=s&&(0,c.jsx)(Ee,{theme:r,value:"yes"===s?"yes":"no",size:"sm"})]},t);const i=o.result,d=null!=i,u=!!o.is_voided,m=d&&!u&&null!=s&&s===i;let p,h,x;u?(p="Void",h=`${a.textMuted}20`,x=a.textMuted):d?m?(p="Won",h=a.successBg,x=a.successText):(p="Lost",h=a.errorBg,x=a.errorText):(p="Pending",h=a.warningBg,x=a.warningText);const g=wt(o)?void 0:o.home_team;return(0,c.jsxs)("div",{className:"px-4 py-2.5 flex items-center gap-3",style:{borderColor:a.border},children:[(0,c.jsxs)("div",{className:"flex-1 min-w-0",children:[(o.home_team||o.away_team)&&(0,c.jsxs)("p",{className:"text-sm font-medium leading-snug flex items-center gap-1.5",style:{color:a.text},children:[l&&g&&l(g),g&&(0,c.jsx)("span",{children:g}),g&&o.away_team&&(0,c.jsx)("span",{className:"text-xs font-normal",style:{color:a.textMuted},children:"vs"}),l&&o.away_team&&l(o.away_team),o.away_team&&(0,c.jsx)("span",{children:o.away_team})]}),(o.proposition||o.description)&&(0,c.jsx)("p",{className:"text-xs mt-0.5",style:{color:a.textMuted},children:o.proposition||o.description}),o.commence_time&&(0,c.jsx)("p",{className:"text-xs mt-0.5",style:{color:a.textMuted},children:ft(o.commence_time)})]}),(0,c.jsxs)("div",{className:"flex flex-col items-center gap-0.5 flex-shrink-0",children:[(0,c.jsx)("span",{className:"text-[9px] uppercase tracking-wide font-semibold",style:{color:a.textMuted},children:"Pick"}),null!=s?(0,c.jsx)(Ee,{theme:r,value:"yes"===s?"yes":"no",size:"sm"}):(0,c.jsx)("span",{className:"text-xs",style:{color:a.textMuted},children:"—"})]}),(0,c.jsxs)("div",{className:"flex flex-col items-center gap-0.5 flex-shrink-0",children:[(0,c.jsx)("span",{className:"text-[9px] uppercase tracking-wide font-semibold",style:{color:a.textMuted},children:"Result"}),(0,c.jsx)("span",{className:"px-2 py-0.5 rounded text-xs font-bold uppercase whitespace-nowrap",style:{backgroundColor:h,color:x},children:p})]})]},t)})})]})}function el({className:e=""}){const{theme:t,eventFilterActive:n,eventFilterLabel:o,clearEventFilter:r,gameCategory:l}=wr();if(!n)return null;const s=t.colors,a=o??("racing"===l?"This race":"This event");return(0,c.jsxs)("div",{className:`mb-4 flex flex-col gap-2 rounded-xl border px-3 py-2.5 sm:flex-row sm:items-center sm:justify-between ${e}`,style:{borderColor:`${s.primary}33`,backgroundColor:`${s.surface}`},children:[(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-[0.12em]",style:{color:s.primary},children:"Event filter"}),(0,c.jsx)("p",{className:"truncate text-sm font-semibold",style:{color:s.text},children:a}),(0,c.jsx)("p",{className:"text-xs",style:{color:s.textMuted},children:"Only propositions from this event are shown."})]}),(0,c.jsx)("button",{type:"button",onClick:r,className:"shrink-0 self-start rounded-lg border px-3 py-1.5 text-xs font-semibold transition-opacity hover:opacity-90 sm:self-center",style:{borderColor:`${s.primary}44`,backgroundColor:s.background,color:s.text,cursor:"pointer"},children:"Show all events"})]})}function tl({onBack:e,title:t="Go back",className:n=""}){const{theme:o}=wr(),r=o.colors;return(0,c.jsx)("button",{type:"button",onClick:e,className:`inline-flex items-center justify-center rounded-full ${n}`,style:{color:r.textMuted,cursor:"pointer",background:"none",border:"none",padding:0,transition:"color .15s ease, transform .15s ease"},title:t,onMouseEnter:e=>{e.currentTarget.style.color=r.text,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=r.textMuted,e.currentTarget.style.transform="translateX(0)"},children:(0,c.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,c.jsx)("path",{d:"M19 12H5"}),(0,c.jsx)("path",{d:"m12 19-7-7 7-7"})]})})}function nl({onBack:e,label:t="Games"}){const{theme:n}=wr(),o=n.colors;return(0,c.jsxs)("button",{type:"button",onClick:e,className:"mb-3 inline-flex items-center gap-1.5 self-start text-sm font-semibold",style:{color:o.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=o.primary,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=o.textMuted,e.currentTarget.style.transform="translateX(0)"},children:[(0,c.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,c.jsx)("path",{d:"M19 12H5"}),(0,c.jsx)("path",{d:"m12 19-7-7 7-7"})]}),t]})}function ol({onBack:e,hideActions:t,label:n,children:o,className:r=""}){const{theme:l}=wr(),s=l.colors;return e||null!=n||o?(0,c.jsxs)("div",{className:`flex items-center gap-1.5 mt-0.5 ${r}`,children:[e&&(null!=n?(0,c.jsxs)("button",{type:"button",onClick:e,title:"Go back",className:"inline-flex min-w-0 items-center gap-1.5 text-left",style:{color:s.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=s.text,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=s.textMuted,e.currentTarget.style.transform="translateX(0)"},children:[(0,c.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:"shrink-0",children:[(0,c.jsx)("path",{d:"M19 12H5"}),(0,c.jsx)("path",{d:"m12 19-7-7 7-7"})]}),(0,c.jsx)("span",{className:"text-xs sm:text-sm break-words min-w-0",children:n})]}):(0,c.jsx)(tl,{onBack:e})),!e&&null!=n&&(0,c.jsx)("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:s.textMuted},children:n}),o]}):null}function rl({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,bodyFont:l,howToPlayMarkdown:s,selectedCategory:a,displayCategoryName:i}=wr(),d=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,c.jsx)("h1",{className:"text-lg sm:text-xl md:text-2xl font-bold leading-tight break-words min-w-0",style:{color:j(o),fontFamily:r},children:"Choose your game"}),s?.trim()&&(0,c.jsx)(Ie,{content:s,title:"How to Play",colors:{text:d.text,textMuted:d.textMuted,border:d.border,background:d.background,backgroundAlt:d.backgroundAlt,primary:d.primary,primaryText:d.primaryText},bodyFont:l,headingFont:r,className:"shrink-0 mt-0.5"})]}),(0,c.jsx)(ol,{onBack:t,hideActions:n,label:a?i(a):void 0})]})}function ll({className:e="",onBack:t,hideActions:n}){const{theme:o}=wr(),r=fe(o),l=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:l.primary,fontFamily:r},children:"Pick a category"}),(0,c.jsx)(ol,{onBack:t,hideActions:n})]})}function sl({onSelectCategory:e,onCancel:t,hideTitle:n,hideActions:o,renderCategoryIcon:r,getCategoryTagline:l,className:s=""}){const{theme:a,propositionsForCategoryPicker:i,loading:d,setSelectedCategory:u,setSelectedSport:m,clearSelectedGame:p,displayCategoryName:h}=wr(),f=a.colors,x=K(a),g=he(a);kt(i);const y=vt(i);return d?(0,c.jsx)(xn,{colors:V(a),bodyFont:g,className:s,variant:"category",categoryCount:y.length>0?y.length:2}):(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${s}`,style:{fontFamily:g},children:[!n&&(0,c.jsx)("div",{className:"mb-2",children:(0,c.jsx)(ll,{onBack:t,hideActions:o})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)("div",{className:"grid grid-cols-1 min-[400px]:grid-cols-2 gap-2.5 sm:gap-3",children:y.map(t=>{const n=l?.(t)??function(e){return it[e]??""}(t);return(0,c.jsxs)("button",{type:"button",onClick:()=>{u(t),m(null),p(),e?.(t)},className:"group flex flex-col items-start justify-center gap-2 sm:gap-3 rounded-2xl border p-3.5 sm:p-5 text-left transition-all min-h-[112px] sm:min-h-[140px] min-w-0 w-full hover:shadow-md active:scale-[0.98]",style:{backgroundColor:x,borderColor:f.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=f.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=f.border},children:[(0,c.jsx)(Ue,{label:h(t),category:t,icon:r?.(t),theme:a}),n?(0,c.jsx)("span",{className:"text-[10px] sm:text-xs font-medium uppercase tracking-[0.08em] sm:tracking-[0.1em] break-words",style:{color:f.primary},children:n}):null]},t)})})})]})}function al(e){if(!e)return"Start time to be confirmed";const t=new Date(e);return Number.isNaN(t.getTime())?e:new Intl.DateTimeFormat(void 0,{weekday:"short",day:"numeric",month:"short",hour:"numeric",minute:"2-digit"}).format(t)}function il({name:e,renderTeamLogo:t,muted:n}){return e?(0,c.jsxs)("span",{className:"inline-flex min-w-0 max-w-full items-center gap-1.5",children:[t?.(e),(0,c.jsx)("span",{className:"break-words text-sm font-semibold sm:text-base",children:e})]}):(0,c.jsx)("span",{className:"text-sm font-semibold",style:{color:n},children:"TBC"})}function cl({onSelectEvent:e,className:t=""}){const{theme:n,loading:o,sameGameMultiEvents:r,selectSameGameMultiEvent:l,renderTeamLogo:a,displaySportName:i}=wr(),[d,u]=s.default.useState(null),m=n.colors,p=he(n),h=fe(n),f=K(n),x=Z(n);return o?(0,c.jsx)(xn,{colors:V(n),bodyFont:p,className:t,variant:"event"}):(0,c.jsxs)("section",{className:t,"aria-label":"Available fixtures",style:{fontFamily:p},children:[(0,c.jsx)("p",{className:"mb-4 text-sm leading-relaxed",style:{color:m.textMuted},children:"All picks in your multi must come from one game."}),0===r.length?(0,c.jsx)("div",{role:"status",className:"rounded-2xl border p-6 text-center text-sm",style:{borderColor:m.border,backgroundColor:f,color:m.textMuted},children:"No fixtures with available propositions."}):(0,c.jsx)("div",{className:"grid grid-cols-1 gap-2.5 sm:gap-3",children:r.map(t=>(0,c.jsxs)("button",{type:"button","aria-label":`Select ${gn(t)}`,onClick:()=>{l(t.id),e?.(t.id)},className:"group flex min-h-16 w-full min-w-0 items-center justify-between gap-3 rounded-2xl border px-3.5 py-3.5 text-left transition-all hover:shadow-md active:scale-[0.99] sm:px-5 sm:py-4",style:{borderColor:m.border,backgroundColor:f,boxShadow:d===t.id?E(n):"none",color:m.text,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=m.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=m.border},onFocus:e=>{u(t.id),e.currentTarget.style.borderColor=m.primary},onBlur:e=>{u(null),e.currentTarget.style.borderColor=m.border},children:[(0,c.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,c.jsxs)("div",{className:"flex flex-col items-start gap-1 rounded-xl px-3 py-2.5 sm:flex-row sm:flex-wrap sm:items-center sm:gap-x-1.5",style:{backgroundColor:x,color:m.text,fontFamily:h},children:[(0,c.jsx)(il,{name:t.homeTeam,renderTeamLogo:a,muted:m.textMuted}),(0,c.jsx)("span",{className:"text-xs font-normal",style:{color:m.textMuted},children:"vs"}),(0,c.jsx)(il,{name:t.awayTeam,renderTeamLogo:a,muted:m.textMuted})]}),(0,c.jsxs)("p",{className:"mt-2 text-[11px] font-medium sm:text-xs",style:{color:m.textMuted},children:[al(t.commenceTime)," · ",t.propositionCount," proposition",1===t.propositionCount?"":"s",(t.league||t.sport)&&` · ${t.league?.toUpperCase()??i(t.sport)}`]})]}),(0,c.jsx)(Ze,{size:22,color:m.textMuted,className:"shrink-0 transition-transform group-hover:translate-x-0.5"})]},t.id))})]})}function dl({counts:e,onPick:t,onDoubleAction:n,colors:o,align:r="right",direction:l="down",menuShadow:a="0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}){const[i,d]=s.default.useState(!1),[u,m]=s.default.useState(!1),[p,h]=s.default.useState(null),f=s.default.useRef(null),x=s.default.useRef(null),g=s.default.useRef(null),y=36+36*e.length+12,b="up"===l||u?"up":"down";s.default.useEffect(()=>{if(!i)return m(!1),void h(null);const e=f.current,t=()=>{if(!e||"undefined"==typeof window)return;const t=e.getBoundingClientRect(),n=(document.documentElement.clientHeight||window.innerHeight)-t.bottom,o=t.top,r=n<y&&o>n;m(r),h(Math.max((r?o:n)-12,132))};t(),window.addEventListener("resize",t),window.addEventListener("scroll",t,!0);const n=e=>{const t=e.target;f.current?.contains(t)||x.current?.contains(t)||d(!1)};return document.addEventListener("mousedown",n),()=>{window.removeEventListener("resize",t),window.removeEventListener("scroll",t,!0),document.removeEventListener("mousedown",n)}},[i,y]);const w=i?(0,c.jsxs)("div",{ref:x,role:"menu",className:"rounded-lg overflow-y-auto overscroll-contain",style:{position:"absolute",top:"up"===b?void 0:"calc(100% + 6px)",bottom:"up"===b?"calc(100% + 6px)":void 0,left:"left"===r?0:void 0,right:"right"===r?0:void 0,maxHeight:p??void 0,zIndex:20,backgroundColor:o.background,border:`1px solid ${o.border}`,boxShadow:a,minWidth:160},children:[(0,c.jsx)("div",{className:"px-3 py-1.5 text-[10px] font-bold tracking-wider uppercase",style:{color:o.text,opacity:.55,borderBottom:`1px solid ${o.border}`},children:"How many picks?"}),e.map(e=>(0,c.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>{t(e),d(!1)},className:"w-full flex items-center justify-between px-3 py-2 transition-colors",style:{background:"transparent",border:"none",cursor:"pointer",borderTop:`1px solid ${o.border}`},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=o.backgroundAlt},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},children:[(0,c.jsxs)("span",{className:"text-sm font-semibold",style:{color:o.text},children:[e," picks"]}),(0,c.jsx)("span",{className:"text-[10px] font-bold tracking-wider",style:{background:o.backgroundAlt,color:o.text,padding:"2px 6px",borderRadius:4},children:"QP"})]},e))]}):null;return(0,c.jsxs)("div",{ref:f,className:"flex-shrink-0 relative",children:[(0,c.jsx)(kr,{onPress:()=>{n?null==g.current&&(g.current=window.setTimeout(()=>{g.current=null,d(e=>!e)},220)):d(e=>!e)},onDoubleClick:n?()=>{null!=g.current&&(window.clearTimeout(g.current),g.current=null),d(!1),n?.()}:void 0}),w]})}var ul="Your stake",ml="Remove";function pl(e,t){const n=e?.top_payouts?.find(e=>Number(e.proposition_count)===t);if(!n)return 0;const o=n.bet_amount&&n.bet_amount>0?n.bet_amount:20,r=Number(n.net_payout);return Number.isFinite(r)?r/o*20:0}function hl({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",className:r,title:l,sportBaseKey:s}){const a=ct(e,s,t),i=function(e){return e.length<=3?92:4===e.length?72:56}(a),d=l??`${a} button`;return(0,c.jsxs)("svg",{viewBox:"0 0 360 360",width:n,height:n,xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",className:r,role:"img","aria-label":d,children:[(0,c.jsx)("title",{children:d}),(0,c.jsx)("rect",{x:"2",y:"2",width:"356",height:"356",rx:"78",fill:"#DDD9D2",stroke:st,strokeWidth:"4"}),(0,c.jsx)("rect",{x:"50",y:"10",width:"260",height:"260",rx:"52",fill:st,opacity:"0.30"}),(0,c.jsx)("rect",{x:"50",y:"35",width:"260",height:"260",rx:"52",fill:st,opacity:"0.55"}),(0,c.jsx)("rect",{x:"50",y:"60",width:"260",height:"260",rx:"52",fill:st}),(0,c.jsx)("text",{x:"180",y:"220",fontFamily:"Manrope, Poppins, sans-serif",fontSize:i,letterSpacing:"-3",textAnchor:"middle",fontWeight:800,fill:"#DFFF1A",children:a}),o&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("text",{x:"180",y:"345",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"24",letterSpacing:"-0.5",textAnchor:"middle",fontWeight:700,fill:st,children:o}),(0,c.jsx)("text",{x:"262",y:"333",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"10",fontWeight:600,fill:st,children:"TM"})]})]})}var fl="yesno:favourite-sport",xl=null;function gl(){try{return globalThis.localStorage??null}catch{return null}}function yl({label:e="Pick your sport",sublabel:t,renderSportLogo:n,className:o=""}){const{theme:r,sportOptions:l,sportSummaries:a,selectedSport:i,setSelectedSport:d,sportBaseKey:u,displaySportName:m,selections:p,toggleSelection:h,enableSportFavourites:f}=wr(),x=r.colors,g=K(r),y=he(r),b=fe(r),w=j(r),k=W(r),[v,N]=s.default.useState(null);if(s.default.useEffect(()=>{N(f?function(){try{const e=gl()?.getItem(fl);if(e)return e}catch{}return xl}():null)},[f]),l.length<2)return null;const C=v?[...l].sort((e,t)=>Number(t.key===v)-Number(e.key===v)):l,F=void 0===t?f?"Tap to select. Star your favourite to pin it up front.":"Tap to select.":t;return(0,c.jsxs)("div",{className:`min-w-0 ${o}`,style:{fontFamily:y},children:[e&&(0,c.jsx)("div",{className:"pl-0.5 text-sm font-extrabold leading-tight tracking-tight",style:{color:w,fontFamily:b},children:e}),F&&(0,c.jsx)("div",{className:"mb-1.5 pl-0.5 text-[12px] leading-snug",style:{color:x.textMuted},children:F}),(0,c.jsx)(Xe,{theme:r,itemCount:C.length,contentClassName:"gap-2.5 px-0.5 pb-2.5 pt-1",children:e=>C.map(({key:t})=>{const o=a.find(e=>e.key===t),l=o?.games_today??0,s=i===t,y=v===t,C=o?.label??m(t);return(0,c.jsxs)("div",{className:"relative flex-none",style:{width:88},children:[(0,c.jsxs)("button",{type:"button","aria-pressed":s,onClick:()=>{e()||(e=>{if(e!==i){for(const e of Object.keys(p)){const t=Number(e);h(t,p[t])}d(e)}})(t)},className:"flex w-full flex-col items-center gap-1.5 rounded-2xl border px-1.5 pb-2 text-center transition-transform active:scale-[0.97]",style:{minHeight:44,paddingTop:f?26:12,backgroundColor:g,borderColor:s?x.primary:x.border,boxShadow:s?`inset 0 0 0 2px ${x.primary}, ${O(r)}`:O(r),cursor:"pointer"},children:[(0,c.jsxs)("span",{className:"relative block leading-none",children:[n?n(t):(0,c.jsx)(hl,{gameKey:t,size:40,footer:null,sportBaseKey:u,title:`${C} button`}),l>0&&(0,c.jsx)("span",{"aria-hidden":!0,className:"absolute -right-0.5 -top-0.5 h-2.5 w-2.5 rounded-full",style:{backgroundColor:x.success,border:`2px solid ${g}`}})]}),(0,c.jsx)("span",{className:"line-clamp-2 max-w-full text-[11px] font-extrabold leading-tight tracking-tight",style:{color:s?w:x.text,fontFamily:b},children:C})]}),f&&(0,c.jsx)("button",{type:"button","aria-pressed":y,"aria-label":y?`Unpin ${C}`:`Pin ${C} to the front`,onClick:()=>{e()||(e=>{const t=v===e?null:e;N(t),function(e){xl=e;try{e?gl()?.setItem(fl,e):gl()?.removeItem(fl)}catch{}}(t)})(t)},className:"absolute left-0 top-0 z-[1] flex h-8 w-8 items-center justify-center active:scale-90",style:{background:"none",border:"none",padding:0,cursor:"pointer"},children:(0,c.jsx)("span",{className:"flex h-5 w-5 items-center justify-center rounded-full border",style:{backgroundColor:y?M(k,.22):g,borderColor:y?k:x.border},children:(0,c.jsx)(Ve,{size:12,filled:y,color:y?w:M(x.textMuted,.6)})})})]},t)})})]})}function bl(e,t){const n=/^#([0-9a-f]{6})$/i.exec(e?.trim()??"");if(!n)return e;const o=parseInt(n[1],16);return`rgba(${o>>16&255}, ${o>>8&255}, ${255&o}, ${t})`}function wl({iconUrl:e,size:t=56}){const{theme:n}=wr(),o=n.colors,r=n.brand?.chip??o.primary,l=n.brand?.icon??o.primaryText,s=I(r,W(n),l);return(0,c.jsx)("span",{"aria-hidden":!0,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:t,height:t,borderRadius:.3*t,backgroundColor:r,border:`1px solid ${bl(l,.16)}`,flexShrink:0,boxShadow:`0 8px 18px -12px ${bl(r,.9)}`},children:(0,c.jsx)(Qt,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:l,accentColor:s})})}function kl({eyebrow:e,iconUrl:t,gameName:n,tagline:o,className:r=""}){const{theme:l,screenSize:s}=wr(),a=l.colors,i=fe(l),d="mobile"===s;return(0,c.jsxs)("header",{className:`mb-4 flex flex-col items-center text-center sm:mb-7 ${r}`,children:[e&&(0,c.jsx)("h2",{className:"mb-4 hidden text-center text-xs font-bold uppercase tracking-[0.18em] sm:mb-5 sm:block",style:{color:a.primary,fontFamily:i},children:e}),(0,c.jsx)(Qr,{iconUrl:t,gameName:n,height:d?20:32,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:l.brand?.accent,compact:d}),o&&(0,c.jsx)("p",{className:"mt-2 max-w-sm text-[13px] leading-snug sm:mt-3 sm:text-[15px] sm:leading-relaxed",style:{color:a.textMuted},children:o})]})}function vl({className:e=""}){return(0,c.jsx)(yl,{className:`mb-4 ${e}`})}function Nl({smGridClassName:e,ariaLabel:t,children:n}){return(0,c.jsx)("div",{role:"radiogroup","aria-label":t,className:`blade-gmc-strip -mx-1 flex snap-x snap-mandatory gap-2 overflow-x-auto px-1 pb-1 sm:mx-0 sm:grid sm:overflow-visible sm:px-0 sm:pb-0 ${e}`,children:n})}var Cl="w-[124px] shrink-0 snap-start sm:w-auto sm:shrink";function Fl({legs:e,prizeBall:t=!0}){const{theme:n}=wr(),o=n.colors.primary,r=W(n);return(0,c.jsxs)("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:e}).map((e,t)=>(0,c.jsx)("span",{style:{width:5,height:5,borderRadius:1.5,backgroundColor:o,opacity:.85}},t)),t&&(0,c.jsx)("span",{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}})]})}function Bl({tile:e,label:t,stat:n,detail:o,onSelect:r,children:l}){const{theme:s}=wr(),a=s.colors,i=fe(s),d=j(s),u=a.primary,m=a.selectionCard??a.backgroundAlt;return(0,c.jsxs)("div",{className:"blade-gmc-card flex h-full flex-col rounded-3xl border-2 px-3.5 py-3.5 sm:px-5 sm:py-5",style:{backgroundColor:m,borderColor:a.border,boxShadow:`0 10px 24px -20px ${bl(d,.7)}`},onMouseEnter:e=>{e.currentTarget.style.borderColor=u,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${bl(u,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=a.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${bl(d,.7)}`},children:[(0,c.jsxs)("button",{type:"button",onClick:r,className:"group flex w-full flex-1 items-start gap-3.5 text-left sm:gap-4",style:{background:"none",border:"none",padding:0,cursor:"pointer"},children:[e,(0,c.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1 sm:gap-1.5",children:[(0,c.jsxs)("span",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[(0,c.jsx)("span",{className:"text-base font-extrabold leading-tight tracking-tight sm:text-xl",style:{color:d,fontFamily:i},children:t}),n&&(0,c.jsx)("span",{className:"rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em]",style:{backgroundColor:bl(u,.12),color:u},children:n})]}),o&&o.length>0&&(0,c.jsx)("div",{className:"flex flex-col gap-0.5",children:o.map((e,t)=>(0,c.jsx)("span",{className:"text-xs leading-snug sm:text-[13px] "+(0===t?"":"hidden sm:block"),style:{color:a.textMuted},children:e},e))})]}),(0,c.jsx)("span",{className:"shrink-0 self-center transition-transform group-hover:translate-x-0.5",style:{color:u},"aria-hidden":!0,children:(0,c.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,c.jsx)("path",{d:"m9 6 6 6-6 6"})})})]}),l&&(0,c.jsx)("div",{className:"mt-3 border-t pt-3",style:{borderColor:bl(d,.08)},children:l})]})}function Al(){return(0,c.jsx)("style",{id:"blade-gmc-styles",children:"\n.blade-gmc-card{transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s cubic-bezier(.2,.8,.2,1),border-color .18s cubic-bezier(.2,.8,.2,1)}\n.blade-gmc-strip{scrollbar-width:none}\n.blade-gmc-strip::-webkit-scrollbar{display:none}\n.blade-gmc-card:hover{transform:translateY(-2px)}\n.blade-gmc-card:active{transform:translateY(0) scale(.995)}\n@media (prefers-reduced-motion:reduce){.blade-gmc-card{transition:none}}\n"})}function Ml({className:e="",onBack:t,onNext:n,hideActions:o}){const{theme:r,headingFont:l,bodyFont:s,selectedGame:a,propositions:i,selections:d,toggleSelection:u,selectedPropositionCount:m,disableQuickPick:p,answeredCount:h,goToConfirmation:f,selectedEventId:x,sameGameMultiEvents:g,selectSameGameMultiEvent:y,selectedRule:b,howToPlayMarkdown:w,maxPayouts:k}=wr(),v=r.colors,N=ze(a),C=xo(a??{},a?k?.[a.id]:void 0),F=bn(a)&&!x,B=g.find(e=>e.id===x),A=a?Ft(a,m,b):{min:0,max:0},M=A.min,S=bn(a)&&x?Math.min(A.max,i.length):A.max,L=M>0&&M===S,z=!(a?.allowed_propositions&&a.allowed_propositions.length>0)&&M>0&&S>M,P=L?S:S||i.length,T=e=>{const t=Math.max(0,Math.min(e??P,i.length));for(const l of Object.keys(d)){const e=Number(l);u(e,d[e])}const n=[...i].sort(()=>Math.random()-.5).slice(0,t),o=[],r=[];for(const l of n)Math.random()<.5?o.push(l):r.push(l);for(const l of o)u(l.id,"yes");for(const l of r)u(l.id,"no")},O=!p&&i.length>0,E=z?Array.from({length:S-M+1},(e,t)=>M+t).filter(e=>e<=i.length):[],Y=h>0?h:M||P;return(0,c.jsxs)("div",{className:`flex items-center justify-between gap-3 pl-2 ${e}`,children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:j(r),fontFamily:l},children:F?"Choose a Game":"Select Propositions"}),a&&(0,c.jsx)(ol,{onBack:x?()=>y(null):t,hideActions:o,label:B?gn(B):a.game_name,children:(N||w?.trim())&&(0,c.jsx)(Ie,{variant:"icon",content:w,panel:N,theme:r,title:`${a.game_name} — How to Play`,extra:(0,c.jsx)(go,{tiers:C.hasGenericDividends?C.tiers:[],modes:C.modes,pydDividends:C.pydDividends,minBet:C.minBet,maxBet:C.maxBet,colors:v,bodyFont:s,headingFont:l}),colors:{text:v.text,textMuted:v.textMuted,border:v.border,background:v.background,backgroundAlt:v.backgroundAlt,primary:v.primary,primaryText:v.primaryText},bodyFont:s,headingFont:l})})]}),O&&(E.length>1?(0,c.jsx)(dl,{counts:E,onPick:e=>{T(e),f(),n?.()},onDoubleAction:()=>{T(Y),f(),n?.()},colors:v,menuShadow:D(r)}):(0,c.jsx)("div",{className:"flex-shrink-0",children:(0,c.jsx)(kr,{onPress:()=>{T(),f(),n?.()}})}))]})}function Sl({number:e,color:t,size:n=34,label:o,selected:r,onSelect:l}){const s=(e,o)=>({position:"absolute",left:e,top:.4*e,width:n,height:n,borderRadius:.26*n,backgroundColor:t,opacity:o});return(0,c.jsxs)("button",{type:"button","aria-label":o,"aria-pressed":r,onClick:l,style:{position:"relative",width:n+.2*n,height:1.3*n,flex:"0 0 auto",padding:0,border:"none",background:"none",cursor:"pointer",animation:"blade-slip-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1)"},children:[(0,c.jsx)("span",{style:s(.44*n,.3)}),(0,c.jsx)("span",{style:s(.22*n,.55)}),(0,c.jsx)("span",{style:{position:"absolute",left:0,top:0,width:n,height:n,borderRadius:.26*n,backgroundColor:t,color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontSize:n*(e>9?.42:.5),fontWeight:800,letterSpacing:"-0.02em",boxShadow:r?"inset 0 0 0 2px #fff":"none"},children:e})]})}function Ll({onNext:e,onBack:t,hideButtons:n=!1,className:o=""}){const{theme:r,headingFont:l,selectedGame:a,selectedPropositionCount:i,selectedEventId:d,propositions:u,goToConfirmation:m,selectedRule:p,maxPayouts:h,betAmount:f,setBetAmount:x,selections:g,gamePrice:y,toggleSelection:b}=wr(),w=r.colors,k=a?Ft(a,i,p):{min:0,max:0},v=k.min,N=bn(a)&&d?Math.min(k.max,u.length):k.max,C=s.default.useRef(!1);s.default.useEffect(()=>{C.current=!1},[a?.id]),s.default.useEffect(()=>{f<=0&&!C.current&&x(Math.max(20,y))},[f,y,x]);const F=s.default.useRef([]);F.current=function(e,t){const n=Object.keys(t).map(Number),o=new Set(n),r=e.filter(e=>o.has(e)),l=n.filter(e=>!r.includes(e)).sort((e,t)=>e-t);return 0===l.length&&r.length===e.length?e:[...r,...l]}(F.current,g);const B=function({selections:e,order:t,minReq:n,maxReq:o,stake:r,payout20:l=0}){const s=[];for(const u of t){const t=e[u];t&&s.push({id:u,number:s.length+1,side:t})}const a=s.length,i=a>=n,c=Math.max(0,n-a),d=i?l*(r/20):0;return{legs:s,count:a,dividend:d,dividendText:ht(d),ctaLabel:i?`Continue with ${a} ›`:0===a?`Select at least ${n}`:`Add ${c} more to continue`,ctaDisabled:!i,atMax:o>0&&a>=o}}({selections:g,order:F.current,minReq:v,maxReq:N,stake:f,payout20:a?pl(h?.[a.id],F.current.length):0}),A=R(r),M=G(r),S=w.primaryText,L=I(w.primary,W(r),w.primaryText),z="text-[10px] font-bold uppercase tracking-[0.08em]",P=fr(a),[T,O]=s.default.useState(null),D=B.legs.find(e=>e.id===T)??null,E=D?u.find(e=>e.id===D.id)?.description??u.find(e=>e.id===D.id)?.proposition??"":"",j=s.default.useRef(null),Y=B.legs[B.legs.length-1]?.side;return function(e,t,n){const o=s.default.useRef(null),r=s.default.useRef(e);s.default.useEffect(()=>{const e=e=>{o.current={x:e.clientX,y:e.clientY}};return document.addEventListener("pointerdown",e,!0),()=>document.removeEventListener("pointerdown",e,!0)},[]),s.default.useEffect(()=>{const l=e>r.current;r.current=e;const s=o.current,a=t.current?.lastElementChild;if(!l||!s||!a)return;if(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches)return;const i=a.getBoundingClientRect(),c=i.height||44,d=document.createElement("div");d.setAttribute("aria-hidden","true"),Object.assign(d.style,{position:"fixed",left:s.x-c/2+"px",top:s.y-c/2+"px",width:`${c}px`,height:`${c}px`,borderRadius:.26*c+"px",backgroundColor:n,boxShadow:"0 9px 14px rgba(10,49,56,0.4)",pointerEvents:"none",zIndex:"3",transition:"transform 0.42s cubic-bezier(0.34,0.82,0.3,1), opacity 0.42s ease-in"}),document.body.appendChild(d);const u=i.left+i.width/2-s.x,m=i.top+i.height/2-s.y,p=requestAnimationFrame(()=>{d.style.transform=`translate(${u}px, ${m}px) scale(0.5) rotate(-8deg)`,d.style.opacity="0"}),h=()=>d.remove();d.addEventListener("transitionend",h);const f=window.setTimeout(h,700);return()=>{cancelAnimationFrame(p),window.clearTimeout(f),h()}},[e])}(B.count,j,"no"===Y?M:A),(0,c.jsxs)("div",{className:o,style:{fontFamily:l},children:[(0,c.jsx)("style",{children:"@keyframes blade-slip-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}"}),(0,c.jsx)("div",{ref:j,className:"flex items-center overflow-x-auto min-h-[44px] pb-1.5",style:{scrollbarWidth:"none"},children:0===B.legs.length?(0,c.jsx)("span",{className:"text-[13px]",style:{color:w.textMuted},children:"Tap Yes or No to start building your multi."}):B.legs.map(e=>(0,c.jsx)(Sl,{number:e.number,color:"yes"===e.side?A:M,label:`Leg ${e.number}, answered ${e.side}`,selected:e.id===T,onSelect:()=>O(t=>t===e.id?null:e.id)},e.id))}),D?(0,c.jsxs)("div",{className:"flex items-center gap-2 mb-2 text-[12px]",style:{color:w.text},children:[(0,c.jsx)("span",{className:"px-1.5 py-0.5 rounded font-bold text-[10px] uppercase shrink-0",style:{backgroundColor:"yes"===D.side?A:M,color:"#fff"},children:D.side}),(0,c.jsx)("span",{className:"line-clamp-2",children:E}),(0,c.jsx)("div",{className:"ml-auto shrink-0",children:(0,c.jsx)(Pe,{theme:r,variant:"ghost",size:"sm",radius:"pill",onPress:()=>{O(null),b(D.id,D.side)},ariaLabel:`${ml} leg ${D.number}`,children:ml})})]}):B.legs.length>0&&(0,c.jsx)("div",{className:"mb-2 text-[12px]",style:{color:w.textMuted},children:"Tap a leg to read it."}),(0,c.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5 mb-2",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2 flex-none",children:[(0,c.jsx)("span",{className:z,style:{color:w.textMuted},children:ul}),P?(0,c.jsxs)("div",{className:"flex items-center gap-2 rounded-[10px] px-3 py-2",style:{border:`1px solid ${w.border}`,backgroundColor:w.backgroundAlt},title:xr(a),children:[(0,c.jsx)("span",{className:"text-[15px] font-extrabold",style:{color:w.text},children:ht(f)}),(0,c.jsx)("span",{className:"text-[10px]",style:{color:w.textMuted},children:"locked"})]}):(0,c.jsxs)("div",{className:"flex items-center rounded-[10px] overflow-hidden w-[108px]",style:{border:`1px solid ${w.border}`,backgroundColor:w.background},children:[(0,c.jsx)("span",{className:"pl-3 text-base font-extrabold",style:{color:w.text},children:"$"}),(0,c.jsx)("input",{type:"number",min:1,step:1,inputMode:"decimal","aria-label":ul,value:f>0?String(f):"",onChange:e=>{C.current=!0,x(Math.max(0,parseFloat(e.target.value)||0))},className:"flex-1 min-w-0 bg-transparent outline-none border-0 py-2 pl-1 pr-2 text-[15px] font-extrabold",style:{color:w.text,fontFamily:l}})]})]}),(0,c.jsxs)("div",{className:"flex items-baseline justify-end gap-2 rounded-[10px] px-3 py-1.5",style:{backgroundColor:w.primary,flex:"1 1 150px",minWidth:0},children:[(0,c.jsx)("span",{className:z,style:{color:S,opacity:.7},children:"Potential dividend"}),(0,c.jsx)("span",{className:"text-xl font-extrabold leading-none",style:{color:L},children:B.dividendText})]})]}),!n&&(0,c.jsx)(Pe,{theme:r,block:!0,size:"md",radius:"lg",disabled:B.ctaDisabled,onPress:()=>{m(),e?.()},children:B.ctaLabel})]})}function zl({view:e,onChange:t}){const{theme:n}=wr(),o=n.colors,r="list"===e?"swipe":"list",l="swipe"===r;return(0,c.jsxs)("button",{type:"button",onClick:()=>t(r),className:"inline-flex shrink-0 items-center gap-1.5 rounded-full px-3 py-1.5 text-[11px] font-bold transition-colors",style:{border:`1px solid ${o.primary}`,backgroundColor:bl(o.primary,.1),color:o.primary,cursor:"pointer"},children:[(0,c.jsx)("span",{"aria-hidden":!0,style:{fontSize:13,lineHeight:1},children:l?"⇆":"☰"}),l?"Swipe cards":"List view"]})}function Pl({count:e,payout20:t,selected:n,onSelect:o,colors:r,bodyFont:l,extraBetAmount:s,buttonLabel:a,hidePayouts:i}){const d=null!=s&&20!==s,u=null!=t&&t>0&&d?t*(s/20):null;return(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:[(0,c.jsx)("button",{type:"button",onClick:o,"aria-pressed":n,className:"px-3 py-1.5 rounded-lg border text-sm font-semibold transition-colors",style:{borderColor:n?r.buttonPrimary??r.primary:r.border??r.primary,color:n?r.buttonPrimaryText??"#ffffff":r.buttonSecondaryText??r.text,backgroundColor:n?r.buttonPrimary??r.primary:r.buttonSecondary??r.background,cursor:"pointer",fontFamily:l,whiteSpace:"nowrap",alignSelf:"stretch"},children:a?a(e):`Multi ${e}`}),!i&&null!=t&&t>0&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${r.success}15`,color:r.success,alignSelf:"stretch",textAlign:"center"},children:[e,"/",e]}),d?null!=u&&(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${r.primary}12`,color:r.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:ht(u)}):(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${r.primary}12`,color:r.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:ht(t)})]})]})}function Tl({tiers:e,selectedCount:t,onSelect:n,colors:o,bodyFont:r,extraBetAmount:l,buttonLabel:a,columnLabel:i="Legs",buildYourOwn:d,quickPickOnly:u,onQuickPick:m,collapsible:p,expanded:h,onExpandedChange:f,summaryTiers:x}){const[g,y]=(0,s.useState)(!1),b=h??g,w=e.some(e=>e.payout20>0),k=null!=l&&20!==l,v=k?`$${Math.round(l)} returns`:"$20 returns",N=!!p&&!b,C=w&&!N,F=(x??e).reduce((e,t)=>t.payout20>e?t.payout20:e,0),B=k&&F>0?F*(l/20):F,A=e.length>0?82*e.length+8*Math.max(0,e.length-1):82;return(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"stretch"},children:[(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"row",gap:8,overflowX:u?"visible":"auto",overflowY:"visible",alignItems:"flex-start",paddingBottom:6},children:[(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,flexShrink:0,width:70},children:[(0,c.jsx)("div",{className:"py-1.5 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:u?"Quick Pick":i}),C&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"py-1 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:"Dividend"}),(0,c.jsx)("div",{className:"py-1 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:v})]})]}),u?(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"flex-start",width:A},children:[(0,c.jsx)(dl,{counts:(x??e).map(e=>e.count),onPick:e=>m?m(e):n(e),align:"left",direction:"up",colors:{background:o.background??"#ffffff",backgroundAlt:o.backgroundAlt??"#f3f4f6",border:o.border??"#e5e7eb",text:o.text??"#111827"}}),w&&!N&&(0,c.jsx)("div",{style:{display:"flex",flexDirection:"row",gap:8},children:e.map(e=>(0,c.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:null!=e.payout20&&e.payout20>0?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.success}15`,color:o.success,alignSelf:"stretch",textAlign:"center"},children:[e.count,"/",e.count]}),(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:ht(k?e.payout20*(l/20):e.payout20)})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.success}15`,color:o.success,alignSelf:"stretch",textAlign:"center"},children:[e.count,"/",e.count]}),(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:"—"})]})},e.count))})]}):d?(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"flex-start",width:A},children:[(0,c.jsx)("button",{type:"button",onClick:()=>n(e[0]?.count??0),className:"w-full py-1.5 rounded-lg border text-sm font-semibold transition-colors",style:{borderColor:o.buttonPrimary??o.primary,color:o.buttonPrimaryText??"#ffffff",backgroundColor:o.buttonPrimary??o.primary,cursor:"pointer",fontFamily:r},children:"Make Your Selections"}),w&&!N&&(0,c.jsx)("div",{style:{display:"flex",flexDirection:"row",gap:8},children:e.map(e=>(0,c.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:null!=e.payout20&&e.payout20>0?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.success}15`,color:o.success,alignSelf:"stretch",textAlign:"center"},children:[e.count,"/",e.count]}),k?(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:ht(e.payout20*(l/20))}):(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:ht(e.payout20)})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.success}15`,color:o.success,alignSelf:"stretch",textAlign:"center"},children:[e.count,"/",e.count]}),(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:"—"})]})},e.count))})]}):e.map(e=>(0,c.jsx)(Pl,{count:e.count,payout20:e.payout20>0?e.payout20:null,selected:t===e.count,onSelect:()=>n(e.count),colors:o,bodyFont:r,extraBetAmount:l,buttonLabel:a,hidePayouts:N},e.count))]}),p&&(w?(0,c.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 self-start max-w-full",style:{fontFamily:r},children:[(0,c.jsxs)("span",{className:"text-xs font-semibold leading-snug",style:{color:o.text},children:["Win up to ",(0,c.jsx)("span",{style:{color:o.heading??o.text??o.primary},children:ht(B)}),(0,c.jsx)("span",{style:{color:o.textMuted},children:` for $${k?Math.round(l):20}`})]}),(0,c.jsx)("button",{type:"button",onClick:()=>{return e=!b,void 0===h&&y(e),void f?.(e);var e},"aria-expanded":b,className:"text-xs font-semibold rounded-md transition-colors shrink-0",style:{background:b?o.buttonSecondary:o.background??"#ffffff",border:`1px solid ${b?o.primary??o.border:o.border}`,padding:"4px 10px",cursor:"pointer",color:o.text,fontFamily:r,lineHeight:1.35},children:b?"Hide dividends":"Show dividends"})]}):(0,c.jsx)("div",{"aria-hidden":"true",className:"text-xs font-semibold self-start",style:{padding:"2px 0",visibility:"hidden",fontFamily:r},children:"Show dividends"}))]})}function Ol(e){return{game_id:e.selectedGame.id,rule_id:e.selectedRule?.id??null,proposition_ids:e.selectedPropositionIds,selections:e.selections,stake:e.betAmount}}function Dl({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,selectedGame:l,selectedEventId:s,propositions:a,selections:i,toggleSelection:d,upgradePropositionCount:u,selectedPropositionCount:m,disableQuickPick:p,answeredCount:h,selectedRule:f}=wr(),x=o.colors,g=l?Ft(l,m,f):{min:0,max:0},y=g.min,b=bn(l)&&s?Math.min(g.max,a.length):g.max,w=y>0&&y===b,k=!(l?.allowed_propositions&&l.allowed_propositions.length>0)&&y>0&&b>y,v=w?b:b||a.length,N=e=>{const t=Math.max(0,Math.min(e??v,a.length));for(const r of Object.keys(i)){const e=Number(r);d(e,i[e])}const{yesPicks:n,noPicks:o}=Zt(a,t);for(const r of n)d(r.id,"yes");for(const r of o)d(r.id,"no");u(t)},C=!p&&a.length>0,F=k?Array.from({length:b-y+1},(e,t)=>y+t):[],B=h>0?h:y||v;return(0,c.jsxs)("div",{className:`flex items-center justify-between gap-3 pl-2 ${e}`,children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:j(o),fontFamily:r},children:"Place Your Wager"}),l&&(0,c.jsx)(ol,{onBack:t,hideActions:n,label:l.game_name})]}),C&&(F.length>1?(0,c.jsx)(dl,{counts:F,onPick:e=>N(e),onDoubleAction:()=>N(B),colors:x,menuShadow:D(o)}):(0,c.jsx)("div",{className:"flex-shrink-0",children:(0,c.jsx)(kr,{onPress:()=>N()})}))]})}function El({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,placedEntry:l}=wr(),s=o.colors;return(0,c.jsxs)("div",{className:`flex items-center justify-between gap-3 pl-2 ${e}`,children:[(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsx)("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:j(o),fontFamily:r},children:"Entry Placed!"}),(0,c.jsx)(ol,{onBack:t,hideActions:n,children:(0,c.jsx)("p",{className:"text-sm",style:{color:s.textMuted},children:l?(0,c.jsxs)(c.Fragment,{children:["Entry"," ",(0,c.jsxs)("span",{className:"font-mono font-semibold",style:{color:s.primary},children:["#",l.id]})," ","successfully submitted"]}):"Your entry has been successfully submitted"})})]}),(0,c.jsx)("div",{className:"w-12 h-12 sm:w-14 sm:h-14 rounded-full flex items-center justify-center flex-shrink-0",style:{backgroundColor:`${s.success}20`},children:(0,c.jsx)("svg",{className:"w-6 h-6 sm:w-7 sm:h-7",fill:"none",stroke:s.success,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24",children:(0,c.jsx)("path",{d:"M5 13l4 4L19 7"})})})]})}function jl({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r}=wr();return(0,c.jsxs)("div",{className:`pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:j(o),fontFamily:r},children:"Your Entries"}),(0,c.jsx)(ol,{onBack:t,hideActions:n})]})}function Yl({className:e="",onBack:t,hideActions:n,backLabel:o="Category"}){const{theme:r,selectedCategory:l}=wr(),s=r.colors,a=fe(r);return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:a},children:Nt(l)}),(0,c.jsx)(ol,{onBack:t,hideActions:n,label:t?o:void 0})]})}function Hl(e,t){const n=/^#([0-9a-f]{6})$/i.exec(e?.trim()??"");if(!n)return e;const o=parseInt(n[1],16);return`rgba(${o>>16&255}, ${o>>8&255}, ${255&o}, ${t})`}function Rl(){return(0,c.jsx)("style",{id:"blade-rulepage-styles",children:"\n.blade-rp{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-rp-in{opacity:0;animation:blade-rp-in .5s var(--e) both}\n@keyframes blade-rp-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n.blade-rp-card{transition:transform .18s var(--e),box-shadow .18s var(--e),border-color .18s var(--e)}\n.blade-rp-card:hover{transform:translateY(-2px)}\n.blade-rp-card:active{transform:translateY(0) scale(.995)}\n@media (prefers-reduced-motion:reduce){.blade-rp *{animation:none!important}.blade-rp-in{opacity:1!important}}\n"})}function Gl({ink:e,ball:t,size:n,balls:o=1}){return(0,c.jsxs)("svg",{width:n,height:n,viewBox:"2 12 76 62",fill:"none","aria-hidden":!0,children:[(0,c.jsx)("line",{x1:"9",y1:"18",x2:"71",y2:"18",stroke:e,strokeWidth:"2.5",strokeLinecap:"round"}),(0,c.jsx)("path",{d:"M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64",fill:"none",stroke:e,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.9"}),(0,c.jsx)("path",{d:"M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64",fill:"none",stroke:e,strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)("ellipse",{cx:"40",cy:"64",rx:"18",ry:"4.5",fill:"none",stroke:e,strokeWidth:"2.2"}),(o>=2?[{cx:33,cy:52,r:6.6},{cx:48,cy:49,r:6.6}]:[{cx:40,cy:50,r:8}]).map((e,n)=>(0,c.jsx)("circle",{cx:e.cx,cy:e.cy,r:e.r,fill:t},n))]})}function Wl({ink:e,ball:t,size:n}){return(0,c.jsxs)("svg",{width:n,height:n,viewBox:"0 0 100 100",fill:"none","aria-hidden":!0,children:[(0,c.jsx)("circle",{cx:"50",cy:"50",r:"34",stroke:e,strokeWidth:3,opacity:.9}),(0,c.jsx)("circle",{cx:"50",cy:"50",r:"23",stroke:e,strokeWidth:3,opacity:.65}),(0,c.jsx)("circle",{cx:"50",cy:"50",r:"8",fill:t}),(0,c.jsx)("line",{x1:"80",y1:"20",x2:"55",y2:"45",stroke:e,strokeWidth:4,strokeLinecap:"round"}),(0,c.jsx)("path",{d:"M50 50 l8 -3 -3 8 z",fill:e})]})}function Il({ink:e,ball:t,size:n}){const o=[{x:16,h:22},{x:40,h:40},{x:64,h:60}];return(0,c.jsxs)("svg",{width:n,height:n,viewBox:"0 0 100 100",fill:"none","aria-hidden":!0,children:[(0,c.jsx)("line",{x1:"10",y1:"84",x2:"90",y2:"84",stroke:e,strokeWidth:"2",opacity:"0.5"}),o.map((n,r)=>(0,c.jsx)("rect",{x:n.x,y:84-n.h,width:"16",height:n.h,rx:"3.5",fill:r===o.length-1?t:e,opacity:r===o.length-1?1:.5+.22*r},n.x)),(0,c.jsx)("path",{d:"M14 60 L38 48 L62 30 L86 14",stroke:e,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),(0,c.jsx)("path",{d:"M86 14 l-9 1 M86 14 l1 9",stroke:e,strokeWidth:"3",strokeLinecap:"round"})]})}function Ul({kind:e,balls:t,...n}){return"safety_net"===e?(0,c.jsx)(Gl,{...n,balls:t}):"pick"===e?(0,c.jsx)(Il,{...n}):(0,c.jsx)(Wl,{...n})}function $l({kind:e,size:t=56,balls:n}){const{theme:o}=wr(),r=o.colors,l=o.brand?.chip??r.primary,s=o.brand?.icon??r.primaryText,a=W(o);return(0,c.jsx)("span",{"aria-hidden":!0,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:t,height:t,borderRadius:.3*t,backgroundColor:l,border:`1px solid ${Hl(s,.16)}`,flexShrink:0,boxShadow:`0 8px 18px -12px ${Hl(l,.9)}`},children:(0,c.jsx)(Ul,{kind:e,ink:s,ball:a,balls:n,size:Math.round(.68*t)})})}function Kl({option:e,renderDividends:t}){const{theme:n}=wr(),o=n.colors,r=fe(n),l=o.primary,s=W(n),a=e.dividends??[];return t?(0,c.jsx)(c.Fragment,{children:t(e)}):(0,c.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,c.jsxs)("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:o.textMuted},children:[(0,c.jsx)("span",{children:"If you land"}),(0,c.jsxs)("span",{children:["$",20," returns"]})]}),a.map((t,n)=>{const a=e.tierLegs?.[n];return(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,c.jsxs)("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[(0,c.jsx)("span",{className:"text-xs sm:text-[13px]",style:{color:o.text},children:t.label}),null!=a&&a>0&&(0,c.jsxs)("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:a}).map((e,t)=>(0,c.jsx)("span",{style:{width:5,height:5,borderRadius:1.5,backgroundColor:l,opacity:.85}},t)),0===t.misses&&(0,c.jsx)("span",{style:{width:7,height:7,borderRadius:999,backgroundColor:s,marginLeft:2}})]})]}),(0,c.jsx)("span",{className:"text-sm font-extrabold tabular-nums sm:text-base",style:{color:l,fontFamily:r},children:ht(t.payout20)})]},t.misses)})]})}function Zl({option:e,renderDividends:t}){const{theme:n}=wr(),o=n.colors,r=he(n),l=D(n),a=e.dividends??[],i=a.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[u,m]=(0,s.useState)(!1),p=(0,s.useRef)(null),h=(0,s.useRef)(null),[f,x]=(0,s.useState)(null),g=40+36*Math.max(a.length,1)+12,y=(0,s.useCallback)(()=>{const e=p.current;if(!e||"undefined"==typeof window)return;const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom,o=t.top,r=n<g&&o>n;x({left:t.left,top:r?t.top-6:t.bottom+6,flipUp:r})},[g]);(0,s.useLayoutEffect)(()=>{if(!u)return void x(null);y();const e=()=>m(!1),t=()=>y();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[u,y]),(0,s.useEffect)(()=>{if(!u)return;const e=e=>{const t=e.target;p.current?.contains(t)||h.current?.contains(t)||m(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[u]);const b=u&&f&&"undefined"!=typeof document?(0,d.createPortal)((0,c.jsx)("div",{ref:h,role:"listbox",className:"rounded-lg overflow-hidden",style:{position:"fixed",left:f.left,top:f.top,transform:f.flipUp?"translateY(-100%)":void 0,zIndex:9999,backgroundColor:o.background,border:`1px solid ${o.border}`,boxShadow:l,minWidth:220,fontFamily:r},children:t?(0,c.jsx)("div",{className:"px-3 py-2",children:t(e)}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"px-3 py-1.5 text-[10px] font-bold tracking-wider uppercase",style:{color:o.text,opacity:.55,borderBottom:`1px solid ${o.border}`},children:["Dividends for $",20]}),a.map((e,t)=>(0,c.jsxs)("div",{className:"flex items-center justify-between px-3 py-2",style:{borderTop:0===t?"none":`1px solid ${o.border}`,gap:14},children:[(0,c.jsx)("span",{style:{fontWeight:700,color:o.text,fontSize:13},children:e.label}),(0,c.jsx)("span",{style:{fontWeight:700,color:e.payout20>0?o.heading??o.text:o.textMuted,fontSize:13,textAlign:"right"},children:e.payout20>0?ht(e.payout20):"—"})]},e.misses))]})}),document.body):null;return(0,c.jsxs)("div",{className:"flex w-full justify-center",children:[(0,c.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-x-2 gap-y-1 max-w-full",style:{fontFamily:r},children:[i>0&&(0,c.jsxs)("span",{className:"text-xs font-semibold leading-snug",style:{color:o.text},children:["Win up to ",(0,c.jsx)("span",{style:{color:o.heading??o.text},children:ht(i)}),(0,c.jsxs)("span",{style:{color:o.textMuted},children:[" for $",20]})]}),(0,c.jsx)("button",{ref:p,type:"button",onClick:()=>m(e=>!e),"aria-expanded":u,"aria-haspopup":"listbox",className:"text-xs font-semibold rounded-md transition-colors shrink-0",style:{background:u?o.buttonSecondary:o.background??"#ffffff",border:`1px solid ${u?o.primary??o.border:o.border}`,padding:"4px 10px",cursor:"pointer",color:o.text,fontFamily:r,lineHeight:1.35},children:u?"Hide dividends":"Show dividends"})]}),b]})}function ql({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=wr(),l=r.colors,s=fe(r),a=j(r),i=l.primary,d=l.selectionCard??l.backgroundAlt,u="safety_net"===e?Math.max(1,(t.detail?.length??2)-1):void 0,m=!!o||(t.dividends?.length??0)>0,p=m&&!!t.dividendsInline;return(0,c.jsxs)("div",{className:"blade-rp-card flex h-full flex-col rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:d,borderColor:l.border,boxShadow:`0 10px 24px -20px ${Hl(a,.7)}`},onMouseEnter:e=>{e.currentTarget.style.borderColor=i,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${Hl(i,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=l.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${Hl(a,.7)}`},children:[(0,c.jsxs)("button",{type:"button",onClick:n,className:"group flex w-full flex-1 items-start gap-3.5 text-left sm:gap-4",style:{background:"none",border:"none",padding:0,cursor:"pointer"},children:[(0,c.jsx)($l,{kind:e,balls:u,size:60}),(0,c.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[(0,c.jsx)("span",{className:"text-lg font-extrabold leading-none tracking-tight sm:text-xl",style:{color:a,fontFamily:s},children:t.label}),t.stat&&(0,c.jsx)("span",{className:"w-fit rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em]",style:{backgroundColor:Hl(i,.12),color:i},children:t.stat}),t.detail&&t.detail.length>0&&(0,c.jsx)("div",{className:"flex flex-col gap-0.5",style:{minHeight:"3.75rem"},children:t.detail.map(e=>(0,c.jsx)("span",{className:"text-xs leading-snug sm:text-[13px]",style:{color:l.textMuted},children:e},e))})]}),(0,c.jsx)("span",{className:"shrink-0 self-center transition-transform group-hover:translate-x-0.5",style:{color:i},"aria-hidden":!0,children:(0,c.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,c.jsx)("path",{d:"m9 6 6 6-6 6"})})})]}),m&&(0,c.jsx)("div",{className:"mt-3 border-t pt-3",style:{borderColor:Hl(a,.08)},children:p?(0,c.jsx)(Kl,{option:t,renderDividends:o}):(0,c.jsx)(Zl,{option:t,renderDividends:o})})]})}function Vl({onContinue:e,onBack:t,hideTitle:n,config:o,renderDividends:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,setExpectedCorrect:m,handlePropositionCountChange:p,screenSize:h}=wr(),f=i.colors,x="mobile"===h,g=he(i),y=fe(i),b=j(i),w=W(i),k=(0,s.useMemo)(()=>o??so(d,u),[o,d,u]),v=k?.options??[],N=t=>{null!=t?.expectedCorrect&&m(t.expectedCorrect),null!=t?.propositionCount&&p(t.propositionCount),e?.()};if(!d||!k)return(0,c.jsx)("div",{className:a,style:{color:f.textMuted,fontFamily:g},children:"No rule setup required."});const C=k.kind,F=k.headline??k.heroTitle,B=k.continueLabel??"Continue";return(0,c.jsxs)("div",{className:`blade-rp flex min-h-full w-full flex-col ${a}`,style:{fontFamily:g},children:[(0,c.jsx)(Rl,{}),t&&(0,c.jsx)(nl,{onBack:t,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full max-w-3xl flex-1 flex-col",children:[!n&&(0,c.jsx)("h2",{className:"blade-rp-in mb-4 text-center text-[10px] font-bold uppercase tracking-[0.14em] sm:mb-5 sm:text-xs sm:tracking-[0.18em]",style:{color:f.primary,fontFamily:y},children:k.title}),(0,c.jsxs)("header",{className:"blade-rp-in mb-6 flex flex-col items-center text-center sm:mb-7",children:[(0,c.jsx)(Qr,{iconUrl:ve(d),gameName:d.game_name,height:x?24:32,chipColor:f.primary,textColor:f.text,iconColor:f.primaryText,accentColor:i.brand?.accent,compact:x}),k.subtitle&&(0,c.jsx)("p",{className:"mt-2 text-xs sm:text-sm",style:{color:f.textMuted},children:k.subtitle}),(F||k.heroTagline)&&(0,c.jsx)("p",{className:"mt-3 max-w-sm text-sm leading-relaxed sm:text-[15px]",style:{color:f.textMuted},children:k.heroTagline??F})]}),(0,c.jsx)(vl,{className:"blade-rp-in"}),v.length>0?(0,c.jsx)("div",{className:v.length>1?"mx-auto grid w-full items-stretch gap-3 sm:grid-cols-2":"mx-auto flex w-full flex-col gap-3",children:v.map((e,t)=>(0,c.jsx)("div",{className:"blade-rp-in flex h-full min-h-0",style:{animationDelay:.06+.07*t+"s"},children:(0,c.jsx)(ql,{kind:C,option:e,onSelect:()=>N(e),renderDividends:r})},e.id))}):k.highlights&&k.highlights.length>0&&(0,c.jsx)("div",{className:"blade-rp-in blade-rp-card flex flex-col rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:f.selectionCard??f.backgroundAlt,borderColor:f.border,boxShadow:`0 10px 24px -20px ${Hl(b,.7)}`,animationDelay:".06s"},onMouseEnter:e=>{e.currentTarget.style.borderColor=f.primary,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${Hl(f.primary,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=f.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${Hl(b,.7)}`},children:(0,c.jsxs)("button",{type:"button",onClick:()=>N(),"aria-label":B,className:"group flex w-full flex-1 items-start gap-3.5 text-left sm:gap-4",style:{background:"none",border:"none",padding:0,cursor:"pointer"},children:[(0,c.jsx)($l,{kind:C,size:60}),(0,c.jsx)("span",{className:"flex min-w-0 flex-1 flex-col gap-2",children:k.highlights.map(e=>(0,c.jsxs)("span",{className:"flex items-start gap-3",children:[(0,c.jsx)("span",{className:"mt-[7px] h-1.5 w-1.5 shrink-0 rounded-full",style:{backgroundColor:w},"aria-hidden":!0}),(0,c.jsx)("span",{className:"text-sm leading-snug sm:text-[15px]",style:{color:b},children:e})]},e))}),(0,c.jsx)("span",{className:"shrink-0 self-center transition-transform group-hover:translate-x-0.5",style:{color:f.primary},"aria-hidden":!0,children:(0,c.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,c.jsx)("path",{d:"m9 6 6 6-6 6"})})})]})})]})]})}function Xl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,quickPickGame:f,goToSportSelection:x}=wr(),g=i.colors,y=he(i),b=fe(i),w=j(i),k=K(i),v=(0,s.useMemo)(()=>r??Qo(d),[r,d]),[N,C]=(0,s.useState)(()=>v?null!=u&&v.legOptions.includes(u)?u:v.defaultLegs:8),[F,B]=(0,s.useState)(()=>v?.defaultStake??20);if(!d||!Vo(d)||!v)return(0,c.jsx)("div",{className:a,style:{color:g.textMuted,fontFamily:y},children:"No game set available."});const A=Xo(F,N,{operatorMargin:v.operatorMargin,perLegProbability:v.perLegProbability}),M=F>=v.minStake,S=(e,t)=>(0,c.jsxs)("div",{className:"mb-2 flex items-baseline justify-between",children:[(0,c.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:g.textMuted},children:e}),(0,c.jsx)("span",{className:"text-xs font-semibold tabular-nums",style:{color:w},children:t})]});return(0,c.jsxs)("div",{className:`blade-gsb flex min-h-full w-full flex-col ${a}`,style:{fontFamily:y},children:[(0,c.jsx)("style",{id:"blade-gsb-styles",children:"\n.blade-gsb{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-gsb-in{opacity:0;animation:blade-gsb-in .5s var(--e) both}\n@keyframes blade-gsb-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-gsb *{animation:none!important}.blade-gsb-in{opacity:1!important}}\n"}),(0,c.jsx)(Al,{}),n&&(0,c.jsx)(nl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(kl,{className:"blade-gsb-in",eyebrow:o?null:"The fastest multi",iconUrl:ve(d),gameName:d.game_name,tagline:v.tagline}),(0,c.jsx)(vl,{}),(0,c.jsxs)("div",{className:"blade-gsb-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:k,borderColor:g.border,boxShadow:`0 10px 24px -20px ${bl(w,.7)}`,animationDelay:".06s"},children:[S("Legs",`${N} legs`),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Number of legs",children:v.legOptions.map(e=>{const t=e===N;return(0,c.jsx)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>C(e),className:"min-w-[40px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?g.primary:"transparent",borderColor:t?g.primary:g.border,color:t?g.primaryText:g.textMuted,cursor:"pointer"},children:e},e)})}),(0,c.jsxs)("div",{className:"mt-2 flex items-baseline justify-between text-[11px] italic",style:{color:g.textMuted},children:[(0,c.jsx)("span",{children:"Easier to land"}),(0,c.jsx)("span",{children:"Bigger prize"})]}),(0,c.jsxs)("div",{className:"mt-4",children:[S("Stake",ht(F)),(0,c.jsxs)("div",{className:"relative",children:[(0,c.jsx)("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 font-bold",style:{color:g.textMuted},children:"$"}),(0,c.jsx)("input",{type:"number",inputMode:"decimal",min:v.minStake,max:v.maxStake??void 0,step:"any",placeholder:"Enter stake","aria-label":"Stake amount",value:F||"",onChange:e=>{if(""===e.target.value)return void B(0);const t=Number(e.target.value);Number.isFinite(t)&&B((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==v.maxStake?Math.min(t,v.maxStake):t})(t))},onFocus:e=>{e.currentTarget.style.borderColor=g.borderFocus??g.primary},onBlur:e=>{e.currentTarget.style.borderColor=g.border},className:"w-full rounded-lg border py-3 pl-8 pr-4 text-lg font-semibold tabular-nums focus:outline-none",style:{borderColor:g.border,color:g.textAlt??g.text,backgroundColor:g.backgroundAlt,fontFamily:y,transition:"border-color .15s ease"}})]}),(0,c.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:v.quickStakes.map(e=>{const t=e===F;return(0,c.jsxs)("button",{type:"button",onClick:()=>B(e),className:"min-w-[48px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?g.primary:"transparent",borderColor:t?g.primary:g.border,color:t?g.primaryText:g.textMuted,cursor:"pointer"},children:["$",e]},e)})}),!M&&F>0&&(0,c.jsxs)("p",{className:"mt-2 text-xs",style:{color:g.error},children:["Minimum stake is ",ht(v.minStake),"."]})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:bl(w,.08)},children:[(0,c.jsxs)("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:g.textMuted},children:[(0,c.jsxs)("span",{children:["If all ",N," land"]}),(0,c.jsxs)("span",{children:[ht(F)," returns"]})]}),(0,c.jsxs)("div",{className:"mt-1.5 flex items-center justify-between gap-3",children:[(0,c.jsxs)("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[(0,c.jsx)("span",{className:"text-xs sm:text-[13px]",style:{color:g.text},children:"Perfect ticket"}),(0,c.jsx)(Fl,{legs:N})]}),(0,c.jsx)("span",{className:"text-xl font-extrabold tabular-nums sm:text-2xl",style:{color:g.primary,fontFamily:b},children:ht(A.prize)})]}),(0,c.jsx)("p",{className:"mt-1 text-[11px] italic",style:{color:g.textMuted},children:"All or nothing. Miss a single leg and the ticket does not pay."})]})]}),(0,c.jsxs)("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[(0,c.jsx)("div",{className:"blade-gsb-in",style:{animationDelay:".13s"},children:(0,c.jsx)(Bl,{tile:(0,c.jsx)(wl,{iconUrl:ve(d),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{M&&(m(N),p(N),h(F),x(),t?.())}})}),(0,c.jsx)("div",{className:"blade-gsb-in",style:{animationDelay:".2s"},children:(0,c.jsx)(Bl,{tile:(0,c.jsx)(wl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{M&&(p(N),h(F),f(d,N,F),e?.())}})})]})]})]})}function Ql({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,quickPickGame:f,goToSportSelection:x}=wr(),g=i.colors,y=he(i),b=fe(i),w=j(i),k=K(i),v=(0,s.useMemo)(()=>r??fo(d),[r,d]),[N,C]=(0,s.useState)(()=>v?.defaultDividend??1e4),[F,B]=(0,s.useState)(()=>{const e=v?.dividends[0]?.rungs.map(e=>e.legs)??[];return null!=u&&e.includes(u)?u:v?.defaultLegs??9});if(!d||!uo(d)||!v)return(0,c.jsx)("div",{className:a,style:{color:g.textMuted,fontFamily:y},children:"No dividend series available."});const A=v.dividends.find(e=>e.dividend===N)??v.dividends[0],M=A.rungs.find(e=>e.legs===F)??A.rungs[0],S=Math.max(...A.rungs.map(e=>e.legs)),L=Math.min(...A.rungs.map(e=>e.legs));return(0,c.jsxs)("div",{className:`blade-pyd flex min-h-full w-full flex-col ${a}`,style:{fontFamily:y},children:[(0,c.jsx)("style",{id:"blade-pyd-styles",children:"\n.blade-pyd{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-pyd-in{opacity:0;animation:blade-pyd-in .5s var(--e) both}\n@keyframes blade-pyd-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-pyd *{animation:none!important}.blade-pyd-in{opacity:1!important}}\n"}),(0,c.jsx)(Al,{}),n&&(0,c.jsx)(nl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(kl,{className:"blade-pyd-in",eyebrow:o?null:"Pick your dividend",iconUrl:ve(d),gameName:d.game_name,tagline:v.tagline}),(0,c.jsx)(vl,{}),(0,c.jsxs)("div",{className:"blade-pyd-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:k,borderColor:g.border,boxShadow:`0 10px 24px -20px ${bl(w,.7)}`,animationDelay:".06s"},children:[(z=ht(A.dividend),(0,c.jsxs)("div",{className:"mb-2 flex items-baseline justify-between",children:[(0,c.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:g.textMuted},children:"Set dividend"}),z&&(0,c.jsx)("span",{className:"text-xs font-semibold tabular-nums",style:{color:w},children:z})]})),(0,c.jsx)(Nl,{smGridClassName:"sm:grid-cols-4",ariaLabel:"Set dividend",children:v.dividends.map(e=>{const t=e.dividend===N;return(0,c.jsxs)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>C(e.dividend),className:`rounded-xl border px-2 py-3 text-center transition-colors ${Cl}`,style:{backgroundColor:t?bl(g.primary,.08):"transparent",borderColor:t?g.primary:g.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=g.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=t?g.primary:g.border},children:[(0,c.jsx)("span",{className:"block text-base font-extrabold leading-none tracking-tight tabular-nums sm:text-xl",style:{color:w,fontFamily:b},children:ht(e.dividend)}),(0,c.jsxs)("span",{className:"mt-1 block text-[10px]",style:{color:g.textMuted},children:["from ",ht(e.rungs[0]?.stake??0)]})]},e.dividend)})}),(0,c.jsx)("p",{className:"mt-2 text-[11px] italic",style:{color:g.textMuted},children:"One set amount — it does not move, whatever you spend."}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:bl(w,.08)},children:[(0,c.jsxs)("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:g.textMuted},children:[(0,c.jsx)("span",{children:"Legs to land"}),(0,c.jsx)("span",{children:"Your stake"})]}),(0,c.jsx)("div",{className:"mt-1.5 flex flex-col gap-1.5",role:"radiogroup","aria-label":"Stake ladder",children:A.rungs.map(e=>{const t=e.legs===F;return(0,c.jsxs)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>B(e.legs),className:"flex items-center justify-between gap-3 rounded-xl border px-3 py-1.5 text-left transition-colors sm:py-2",style:{backgroundColor:t?bl(g.primary,.08):"transparent",borderColor:t?g.primary:g.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=g.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=t?g.primary:g.border},children:[(0,c.jsxs)("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[(0,c.jsxs)("span",{className:"text-xs sm:text-[13px]",style:{color:g.text},children:[e.legs," legs",(0,c.jsx)("span",{className:"hidden sm:inline",children:e.legs===S?" · the long climb":e.legs===L?" · the sprint":""})]}),(0,c.jsx)(Fl,{legs:e.legs})]}),(0,c.jsx)("span",{className:"shrink-0 text-sm font-extrabold tabular-nums sm:text-base",style:{color:g.primary,fontFamily:b},children:ht(e.stake)})]},e.legs)})}),(0,c.jsx)("p",{className:"mt-2 text-[11px] italic",style:{color:g.textMuted},children:"Same dividend on every rung — a little for the long climb, more for the short one."})]})]}),(0,c.jsxs)("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[(0,c.jsx)("div",{className:"blade-pyd-in",style:{animationDelay:".13s"},children:(0,c.jsx)(Bl,{tile:(0,c.jsx)(wl,{iconUrl:ve(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${M.legs} legs`,`${ht(M.stake)} chasing the ${ht(A.dividend)}`],onSelect:()=>{var e;m((e=M).legs),p(e.legs),h(e.stake),x(),t?.()}})}),(0,c.jsx)("div",{className:"blade-pyd-in",style:{animationDelay:".2s"},children:(0,c.jsx)(Bl,{tile:(0,c.jsx)(wl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${M.legs} legs at ${ht(M.stake)}`,"Straight to the bet slip"],onSelect:()=>{p(M.legs),h(M.stake),f(d,M.legs,M.stake),e?.()}})})]})]})]});var z}function Jl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,quickPickGame:f,goToSportSelection:x,screenSize:g}=wr(),y=i.colors,b="mobile"===g,w=he(i),k=fe(i),v=j(i),N=W(i),C=K(i),F=(0,s.useMemo)(()=>r??rr(d),[r,d]),[B,A]=(0,s.useState)(()=>F?null!=u&&F.ladders.some(e=>e.legs===u)?u:F.defaultLegs:8),[M,S]=(0,s.useState)(()=>F?.defaultStake??50),[L,z]=(0,s.useState)(!1);if(!d||!er(d)||!F)return(0,c.jsx)("div",{className:a,style:{color:y.textMuted,fontFamily:w},children:"No ladders available."});const P=F.ladders.find(e=>e.legs===B)??F.ladders[0],T=nr(P,M),O=or(P,M),D=[...T].reverse(),E=b&&D.length>4,Y=E&&!L?D.slice(0,3):D,H=(e,t)=>(0,c.jsxs)("div",{className:"mb-2 flex items-baseline justify-between",children:[(0,c.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:y.textMuted},children:e}),t&&(0,c.jsx)("span",{className:"text-xs font-semibold tabular-nums",style:{color:v},children:t})]});return(0,c.jsxs)("div",{className:`blade-lad flex min-h-full w-full flex-col ${a}`,style:{fontFamily:w},children:[(0,c.jsx)("style",{id:"blade-lad-styles",children:"\n.blade-lad{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-lad-in{opacity:0;animation:blade-lad-in .5s var(--e) both}\n@keyframes blade-lad-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-lad *{animation:none!important}.blade-lad-in{opacity:1!important}}\n"}),(0,c.jsx)(Al,{}),n&&(0,c.jsx)(nl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(kl,{className:"blade-lad-in",eyebrow:o?null:"Climb the ladder. Stack the prizes.",iconUrl:ve(d),gameName:d.game_name,tagline:F.tagline}),(0,c.jsx)(vl,{}),(0,c.jsxs)("div",{className:"blade-lad-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:C,borderColor:y.border,boxShadow:`0 10px 24px -20px ${bl(v,.7)}`,animationDelay:".06s"},children:[H("Your bet",ht(M)),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Bet size",children:F.stakes.map(e=>{const t=e===M;return(0,c.jsxs)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>S(e),className:"min-w-[52px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border,color:t?y.primaryText:y.textMuted,cursor:"pointer"},children:["$",e]},e)})}),(0,c.jsx)("p",{className:"mt-2 text-[11px] italic",style:{color:y.textMuted},children:"Every prize scales with your bet."}),(0,c.jsxs)("div",{className:"mt-4",children:[H(`${F.ladders.length} ladders to choose from`),(0,c.jsx)(Nl,{smGridClassName:"sm:grid-cols-5",ariaLabel:"Ladder",children:F.ladders.map(e=>{const t=e.legs===B;return(0,c.jsxs)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>A(e.legs),className:`rounded-xl border px-2 py-3 text-center transition-colors ${Cl}`,style:{backgroundColor:t?bl(y.primary,.08):"transparent",borderColor:t?y.primary:y.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=y.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=t?y.primary:y.border},children:[(0,c.jsxs)("span",{className:"block text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:y.primary},children:["Ladder ",e.legs]}),(0,c.jsx)("span",{className:"mt-1 block text-lg font-extrabold leading-none tracking-tight tabular-nums sm:text-xl",style:{color:v,fontFamily:k},children:ht(or(e,M))}),(0,c.jsxs)("span",{className:"mt-1 block text-[10px]",style:{color:y.textMuted},children:["Win from ",e.firstPayingTier," right"]})]},e.legs)})})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:bl(v,.08)},children:[(0,c.jsxs)("p",{className:"mb-2 text-xs",style:{color:y.text},children:["Ladder ",P.legs," wins from ",P.firstPayingTier," right — every tier stacks into the"," ",(0,c.jsx)("span",{style:{fontWeight:700,color:v},children:ht(O)})," Full Stack Prize."]}),(0,c.jsxs)("div",{className:"grid items-center gap-x-3 gap-y-1.5 sm:gap-x-4",style:{gridTemplateColumns:"minmax(0,1fr) auto auto"},children:[(0,c.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:y.textMuted},children:"Get right"}),(0,c.jsx)("span",{className:"text-right text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:y.textMuted},children:"Tier pays"}),(0,c.jsx)("span",{className:"text-right text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:y.textMuted},children:"You collect"}),Y.map(e=>{const t=e.atLeast===P.legs;return(0,c.jsxs)(s.default.Fragment,{children:[(0,c.jsxs)("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[(0,c.jsxs)("span",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs sm:text-[13px]",style:{color:y.text},children:[e.atLeast," of ",P.legs,t&&(0,c.jsx)("span",{className:"hidden rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em] sm:inline",style:{backgroundColor:bl(N,.35),color:v},children:"Full stack"})]}),(0,c.jsx)(Fl,{legs:e.atLeast,prizeBall:t})]}),(0,c.jsx)("span",{className:"text-right text-[11px] tabular-nums",style:{color:y.textMuted},children:ht(e.prize)}),(0,c.jsx)("span",{className:"text-right text-sm font-extrabold tabular-nums sm:text-base",style:{color:y.primary,fontFamily:k},children:ht(e.cumulative)})]},e.atLeast)})]}),E&&(0,c.jsx)("button",{type:"button",onClick:()=>z(e=>!e),"aria-expanded":L,className:"mt-2 w-full rounded-lg border py-2 text-[11px] font-bold",style:{borderColor:y.border,color:y.primary,background:"transparent",cursor:"pointer"},children:L?"Show fewer tiers":`Show all ${D.length} tiers`}),(0,c.jsxs)("p",{className:"mt-2 text-[11px] italic",style:{color:y.textMuted},children:["Land below ",P.firstPayingTier," right and the ticket does not pay."]})]})]}),(0,c.jsxs)("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[(0,c.jsx)("div",{className:"blade-lad-in",style:{animationDelay:".13s"},children:(0,c.jsx)(Bl,{tile:(0,c.jsx)(wl,{iconUrl:ve(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${P.legs} outcomes`,`Win from ${P.firstPayingTier} right — every tier stacks`],onSelect:()=>{m(P.legs),p(P.legs),h(M),x(),t?.()}})}),(0,c.jsx)("div",{className:"blade-lad-in",style:{animationDelay:".2s"},children:(0,c.jsx)(Bl,{tile:(0,c.jsx)(wl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${P.legs} legs at ${ht(M)}`,"Straight to the bet slip"],onSelect:()=>{p(P.legs),h(M),f(d,P.legs,M),e?.()}})})]})]})]})}var _l="blade-mir-styles",es="\n.blade-mir{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-mir-in{opacity:0;animation:blade-mir-in .5s var(--e) both}\n@keyframes blade-mir-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-mir *{animation:none!important}.blade-mir-in{opacity:1!important}}\n";function ts({depth:e,theme:t}){const n=t.colors,o=W(t);return(0,c.jsx)("span",{className:"mt-2 flex gap-[3px]","aria-hidden":!0,children:Array.from({length:9}).map((t,r)=>{const l=Math.min(r,8-r)<e;return(0,c.jsx)("span",{className:"h-3.5 flex-1 rounded",style:{backgroundColor:l?r<4.5?n.primary:o:"transparent",border:l?"none":`1px solid ${n.border}`}},r)})})}function ns({legs:e,correct:t}){const{theme:n}=wr(),o=n.colors.primary;return(0,c.jsx)("span",{className:"flex items-center gap-[2px]","aria-hidden":!0,children:Array.from({length:e}).map((e,n)=>{const r=n<t;return(0,c.jsx)("span",{className:"inline-flex justify-center",style:{width:14,fontSize:14,lineHeight:1,fontWeight:700,color:r?o:bl(o,.45)},children:r?"✓":"✕"},n)})})}function os({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,quickPickGame:f,goToSportSelection:x,games:g,selectGame:y}=wr(),b=i.colors,w=he(i),k=fe(i),v=j(i),N=K(i),C=(0,s.useMemo)(()=>r??Rn(d),[r,d]),[F,B]=(0,s.useState)(()=>C?null!=u&&C.legOptions.includes(u)?u:C.defaultLegs:8),[A,M]=(0,s.useState)(()=>C?.defaultStake??20),[S,L]=(0,s.useState)(!1);if(!d||!Yn(d)||!C)return(0,c.jsx)("div",{className:a,style:{color:b.textMuted,fontFamily:w},children:"No mirror available."});const z=C.variant,P=C.legOptions,T=P.includes(F)?F:P[0],O=function(e,t,n,o){const r=Wn(e),l=t*(1-(o?.operatorMargin??.21875)),s=Math.round(Math.pow(2,n)),a=[];let i=0;for(let c=0;c<r.depth;c++){const e=In(n,c),t=n-c===c?e:2*e;i+=t,a.push({distance:c,label:r.tierNames[c]??`Tier ${c+1}`,correctCounts:n-c===c?[c]:[n-c,c],prize:Math.round(l/r.depth*s/(2*e)*100)/100,outcomes:t})}return{variant:r.id,legs:n,stake:t,tiers:a,totalOutcomes:s,winningOutcomes:i,oddsOneIn:Math.round(s/i*1e4)/1e4}}(z.id,A,T,{operatorMargin:C.operatorMargin}),D=function(e){const{legs:t}=e;return e.tiers.flatMap(e=>e.correctCounts.map(n=>({correct:n,label:n===t?`All ${t} right`:0===n?`All ${t} wrong`:`${n} of ${t} right`,prize:e.prize})))}(O),E=function(e,t){if(!t)return[];const n=Ln(t);return n<Mn.premier?[]:Gn.flatMap(t=>{const o=e.find(e=>Yn(e)&&En(e.rule)===jn[t.id]&&Ln(e)===n);return o?[{variant:t,game:o}]:[]})}(g,d),Y=T-(z.depth-1);if(E.length>1&&!S)return(0,c.jsxs)("div",{className:`blade-mir flex min-h-full w-full flex-col ${a}`,style:{fontFamily:w},children:[(0,c.jsx)("style",{id:_l,children:es}),(0,c.jsx)(Al,{}),n&&(0,c.jsx)(nl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(kl,{className:"blade-mir-in",eyebrow:o?null:"All right, or all wrong",iconUrl:ve(d),gameName:"Mirror",tagline:"Land near an edge. How wide the edge is, is the mirror you pick."}),(0,c.jsx)(vl,{}),(0,c.jsx)("div",{className:"grid gap-3 sm:grid-cols-3",children:E.map(({variant:e,game:t},n)=>{const o=Rn(t)?.legOptions??[];return(0,c.jsx)("div",{className:"blade-mir-in",style:{animationDelay:.06+.05*n+"s"},children:(0,c.jsxs)(Bl,{tile:(0,c.jsx)(wl,{iconUrl:ve(t),size:60}),label:e.name,stat:e.waysToWin,detail:[e.description,...o.length>0?[`${o[0]}–${o[o.length-1]} legs`]:[]],onSelect:()=>{y(t),L(!0)},children:[(0,c.jsx)(ts,{depth:e.depth,theme:i}),(0,c.jsxs)("div",{className:"mt-1 flex items-baseline justify-between text-[9px] font-bold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:[(0,c.jsx)("span",{children:"All wrong"}),(0,c.jsx)("span",{children:"All right"})]})]})},t.id)})})]})]});const H=A>=C.minStake,R=(e,t)=>(0,c.jsxs)("div",{className:"mb-2 flex items-baseline justify-between",children:[(0,c.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:e}),(0,c.jsx)("span",{className:"text-xs font-semibold tabular-nums",style:{color:v},children:t})]});return(0,c.jsxs)("div",{className:`blade-mir flex min-h-full w-full flex-col ${a}`,style:{fontFamily:w},children:[(0,c.jsx)("style",{id:_l,children:es}),(0,c.jsx)(Al,{}),E.length>1?(0,c.jsx)(nl,{onBack:()=>L(!1),label:"Mirrors"}):n&&(0,c.jsx)(nl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(kl,{className:"blade-mir-in",eyebrow:o?null:"All right, or all wrong",iconUrl:ve(d),gameName:d.game_name,tagline:C.tagline}),(0,c.jsx)(vl,{}),(0,c.jsxs)("div",{className:"blade-mir-in mb-3",style:{animationDelay:".03s"},children:[R(z.name,z.waysToWin),(0,c.jsx)(ts,{depth:z.depth,theme:i}),(0,c.jsxs)("div",{className:"mt-1 flex items-baseline justify-between text-[9px] font-bold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:[(0,c.jsx)("span",{children:"All wrong"}),(0,c.jsxs)("span",{children:[P[0],"–",P[P.length-1]," legs"]}),(0,c.jsx)("span",{children:"All right"})]})]}),(0,c.jsxs)("div",{className:"blade-mir-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:N,borderColor:b.border,boxShadow:`0 10px 24px -20px ${bl(v,.7)}`,animationDelay:".06s"},children:[R("Legs",`${T} legs`),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Number of legs",children:P.map(e=>{const t=e===T;return(0,c.jsx)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>B(e),className:"min-w-[40px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border,color:t?b.primaryText:b.textMuted,cursor:"pointer"},children:e},e)})}),(0,c.jsxs)("div",{className:"mt-2 flex items-baseline justify-between text-[11px] italic",style:{color:b.textMuted},children:[(0,c.jsx)("span",{children:"Easier to sweep"}),(0,c.jsx)("span",{children:"Bigger prize"})]}),(0,c.jsxs)("div",{className:"mt-4",children:[R("Stake",ht(A)),(0,c.jsxs)("div",{className:"relative",children:[(0,c.jsx)("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 font-bold",style:{color:b.textMuted},children:"$"}),(0,c.jsx)("input",{type:"number",inputMode:"decimal",min:C.minStake,max:C.maxStake??void 0,step:"any",placeholder:"Enter stake","aria-label":"Stake amount",value:A||"",onChange:e=>{if(""===e.target.value)return void M(0);const t=Number(e.target.value);Number.isFinite(t)&&M((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==C.maxStake?Math.min(t,C.maxStake):t})(t))},onFocus:e=>{e.currentTarget.style.borderColor=b.borderFocus??b.primary},onBlur:e=>{e.currentTarget.style.borderColor=b.border},className:"w-full rounded-lg border py-3 pl-8 pr-4 text-lg font-semibold tabular-nums focus:outline-none",style:{borderColor:b.border,color:b.textAlt??b.text,backgroundColor:b.backgroundAlt,fontFamily:w,transition:"border-color .15s ease"}})]}),(0,c.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:C.quickStakes.map(e=>{const t=e===A;return(0,c.jsxs)("button",{type:"button",onClick:()=>M(e),className:"min-w-[48px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border,color:t?b.primaryText:b.textMuted,cursor:"pointer"},children:["$",e]},e)})}),!H&&A>0&&(0,c.jsxs)("p",{className:"mt-2 text-xs",style:{color:b.error},children:["Minimum stake is ",ht(C.minStake),"."]})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:bl(v,.08)},children:[(0,c.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,c.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:"What it pays"}),(0,c.jsx)("span",{className:"rounded-full px-2 py-0.5 text-[11px] font-extrabold",style:{backgroundColor:bl(b.primary,.12),color:b.primary},children:z.waysToWin})]}),(0,c.jsx)("div",{className:"mt-1.5 flex flex-col gap-2",children:D.map(e=>(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,c.jsxs)("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[(0,c.jsx)("span",{className:"text-xs font-semibold sm:text-[13px]",style:{color:b.text},children:e.label}),(0,c.jsx)(ns,{legs:T,correct:e.correct})]}),(0,c.jsx)("span",{className:"text-lg font-extrabold tabular-nums sm:text-xl",style:{color:b.primary,fontFamily:k},children:ht(e.prize)})]},e.correct))}),(0,c.jsx)("p",{className:"mt-2 text-[11px] italic",style:{color:b.textMuted},children:"Anything in between — a split card — does not pay."})]})]}),(0,c.jsxs)("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[(0,c.jsx)("div",{className:"blade-mir-in",style:{animationDelay:".13s"},children:(0,c.jsx)(Bl,{tile:(0,c.jsx)(wl,{iconUrl:ve(d),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","Aim for the sweep — either direction pays"],onSelect:()=>{H&&(m(T),p(Y),h(A),x(),t?.())}})}),(0,c.jsx)("div",{className:"blade-mir-in",style:{animationDelay:".2s"},children:(0,c.jsx)(Bl,{tile:(0,c.jsx)(wl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{H&&(p(Y),h(A),f(d,T,A),e?.())}})})]})]})]})}function rs({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,setSelectedRuleId:f,quickPickGame:x,goToSportSelection:g}=wr(),y=i.colors,b=he(i),w=fe(i),k=j(i),v=K(i),N=(0,s.useMemo)(()=>r??no(d),[r,d]),[C,F]=(0,s.useState)(()=>N?.defaultModeId??"extra_shot"),[B,A]=(0,s.useState)(()=>{const e=N?.modes.find(e=>e.id===(N?.defaultModeId??"extra_shot"));return e?null!=u&&e.legOptions.includes(u)?u:e.defaultLegs:8}),[M,S]=(0,s.useState)(()=>N?.defaultStake??20);if(!d||!Kn(d)||!N)return(0,c.jsx)("div",{className:a,style:{color:y.textMuted,fontFamily:b},children:"No safety net available."});const L=N.modes.find(e=>e.id===C)??N.modes[0],z=Xn(M,B,L.allowedMisses,N.pricing),P=e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==N.maxStake?Math.min(t,N.maxStake):t},T=M>=N.minStake,O=(e,t)=>(0,c.jsxs)("div",{className:"mb-2 flex items-baseline justify-between",children:[(0,c.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:y.textMuted},children:e}),(0,c.jsx)("span",{className:"text-xs font-semibold tabular-nums",style:{color:k},children:t})]}),D=(e,t,n,o)=>(0,c.jsx)("button",{type:"button",role:"radio","aria-checked":n,onClick:o,className:"min-w-[40px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:n?y.primary:"transparent",borderColor:n?y.primary:y.border,color:n?y.primaryText:y.textMuted,cursor:"pointer"},children:t},e),E=[{label:"Perfect",amount:z.perfect},...z.nearMiss.map((e,t)=>({label:`All but ${t+1}`,amount:e}))];return(0,c.jsxs)("div",{className:`blade-sn flex min-h-full w-full flex-col ${a}`,style:{fontFamily:b},children:[(0,c.jsx)("style",{id:"blade-sn-styles",children:"\n.blade-sn{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-sn-in{opacity:0;animation:blade-sn-in .5s var(--e) both}\n@keyframes blade-sn-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-sn *{animation:none!important}.blade-sn-in{opacity:1!important}}\n"}),(0,c.jsx)(Al,{}),n&&(0,c.jsx)(nl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(kl,{className:"blade-sn-in",eyebrow:o?null:"Choose your safety net",iconUrl:ve(d),gameName:d.game_name,tagline:N.tagline}),(0,c.jsx)(vl,{}),(0,c.jsxs)("div",{className:"blade-sn-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:v,borderColor:y.border,boxShadow:`0 10px 24px -20px ${bl(k,.7)}`,animationDelay:".06s"},children:[O("Safety net",L.label),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Safety net mode",children:N.modes.map(e=>D(e.id,e.label,e.id===L.id,()=>(e=>{const t=N.modes.find(t=>t.id===e);t&&(F(e),f(t.ruleId),t.legOptions.includes(B)||A(t.legOptions.reduce((e,t)=>Math.abs(t-B)<Math.abs(e-B)?t:e,t.legOptions[0])))})(e.id)))}),(0,c.jsx)("p",{className:"mt-2 text-xs leading-snug sm:text-[13px]",style:{color:y.textMuted},children:L.explain}),(0,c.jsxs)("div",{className:"mt-4",children:[O("Legs",`${B} legs`),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Number of legs",children:L.legOptions.map(e=>D(e,String(e),e===B,()=>A(e)))}),(0,c.jsxs)("div",{className:"mt-2 flex items-baseline justify-between text-[11px] italic",style:{color:y.textMuted},children:[(0,c.jsx)("span",{children:"Easier to land"}),(0,c.jsx)("span",{children:"Bigger prizes"})]})]}),(0,c.jsxs)("div",{className:"mt-4",children:[O("Stake",ht(M)),(0,c.jsxs)("div",{className:"relative",children:[(0,c.jsx)("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 font-bold",style:{color:y.textMuted},children:"$"}),(0,c.jsx)("input",{type:"number",inputMode:"decimal",min:N.minStake,max:N.maxStake??void 0,step:"any",placeholder:"Enter stake","aria-label":"Stake amount",value:M||"",onChange:e=>{if(""===e.target.value)return void S(0);const t=Number(e.target.value);Number.isFinite(t)&&S(P(t))},onFocus:e=>{e.currentTarget.style.borderColor=y.borderFocus??y.primary},onBlur:e=>{e.currentTarget.style.borderColor=y.border},className:"w-full rounded-lg border py-3 pl-8 pr-4 text-lg font-semibold tabular-nums focus:outline-none",style:{borderColor:y.border,color:y.textAlt??y.text,backgroundColor:y.backgroundAlt,fontFamily:b,transition:"border-color .15s ease"}})]}),(0,c.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:N.quickAdds.map(e=>(0,c.jsxs)("button",{type:"button",onClick:()=>S(P((M||0)+e)),className:"min-w-[48px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:"transparent",borderColor:y.border,color:y.textMuted,cursor:"pointer"},children:["+$",e]},e))}),!T&&M>0&&(0,c.jsxs)("p",{className:"mt-2 text-xs",style:{color:y.error},children:["Minimum stake is ",ht(N.minStake),"."]})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:bl(k,.08)},children:[(0,c.jsxs)("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:y.textMuted},children:[(0,c.jsx)("span",{children:"What you can win"}),(0,c.jsxs)("span",{children:[ht(M)," returns"]})]}),(0,c.jsxs)("div",{className:"mt-1.5 flex flex-col gap-1.5",children:[E.map(e=>(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,c.jsx)("span",{className:"text-xs sm:text-[13px]",style:{color:y.text},children:e.label}),(0,c.jsx)("span",{className:"text-sm font-extrabold tabular-nums sm:text-base",style:{color:y.primary,fontFamily:w},children:ht(Math.round(e.amount))})]},e.label)),(0,c.jsxs)("div",{className:"mt-1 flex items-center justify-between gap-3 rounded-xl px-3 py-2.5",style:{backgroundColor:y.primary},children:[(0,c.jsxs)("span",{className:"flex min-w-0 flex-col gap-[2px]",children:[(0,c.jsx)("span",{className:"text-sm font-extrabold sm:text-[15px]",style:{color:y.primaryText,fontFamily:w},children:"Clean sweep"}),(0,c.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-[0.06em]",style:{color:y.primaryText,opacity:.75},children:"every leg right — all prizes"})]}),(0,c.jsx)("span",{className:"text-xl font-extrabold tabular-nums sm:text-2xl",style:{color:y.primaryText,fontFamily:w},children:ht(Math.round(z.sweep))})]})]}),(0,c.jsx)("p",{className:"mt-1.5 text-[11px]",style:{color:y.textMuted},children:"Total returns, stake included."}),(0,c.jsxs)("p",{className:"mt-1 text-[11px] italic",style:{color:y.textMuted},children:["Miss ",1===L.allowedMisses?"two":"three"," or more and the ticket does not pay."]})]})]}),(0,c.jsxs)("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[(0,c.jsx)("div",{className:"blade-sn-in",style:{animationDelay:".13s"},children:(0,c.jsx)(Bl,{tile:(0,c.jsx)(wl,{iconUrl:ve(d),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{T&&(f(L.ruleId),m(B),p(B-L.allowedMisses),h(M),g(),t?.())}})}),(0,c.jsx)("div",{className:"blade-sn-in",style:{animationDelay:".2s"},children:(0,c.jsx)(Bl,{tile:(0,c.jsx)(wl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{T&&(f(L.ruleId),p(B-L.allowedMisses),h(M),x(d,B,M),e?.())}})})]})]})]})}function ls({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,handlePropositionCountChange:u,setExpectedCorrect:m,setBetAmount:p,setSelectedRuleId:h,quickPickGame:f,goToSportSelection:x}=wr(),g=i.colors,y=he(i),b=fe(i),w=j(i),k=K(i),v=I(g.primary,W(i),g.primaryText),N=(0,s.useMemo)(()=>r??dr(d),[r,d]),[C,F]=(0,s.useState)(()=>N?.defaultUnit??10),[B,A]=(0,s.useState)(sr);if(!d||!lr(d)||!N)return(0,c.jsx)("div",{className:a,style:{color:g.textMuted,fontFamily:y},children:"No card available."});const M=ar(C,B,N),S=1*C,L=C>N.unitMin,z=C<N.unitMax,P=e=>F(t=>Math.min(N.unitMax,Math.max(N.unitMin,t+e*N.unitStep))),T=()=>{h(M.ruleId),m(M.lowestWinningCount),p(M.stake)},O=(e,t)=>(0,c.jsxs)("div",{className:"mb-2 flex items-baseline justify-between",children:[(0,c.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:g.textMuted},children:e}),(0,c.jsx)("span",{className:"text-xs font-semibold tabular-nums",style:{color:w},children:t})]}),D=(e,t,n,o)=>(0,c.jsx)("button",{type:"button",onClick:n,disabled:!t,"aria-label":o,className:"h-11 w-11 shrink-0 rounded-xl text-2xl font-extrabold leading-none transition-opacity",style:{backgroundColor:g.primary,color:g.primaryText,border:"none",opacity:t?1:.35,cursor:t?"pointer":"default"},children:e}),E={golden_point:{sub:`Go for the decider. Double your win to ${ht(C*N.baseMultiple*N.goldenPointFactor)}.`},captains_challenge:{sub:`Collect ${ht(C*N.challengeMultiple)} whenever you land ${N.legs-N.challengeMisses} or ${N.legs} of ${N.legs}. Stacks on a winning slip.`}};return(0,c.jsxs)("div",{className:`blade-sx flex min-h-full w-full flex-col ${a}`,style:{fontFamily:y},children:[(0,c.jsx)("style",{id:"blade-sx-styles",children:"\n.blade-sx{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-sx-in{opacity:0;animation:blade-sx-in .5s var(--e) both}\n@keyframes blade-sx-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-sx *{animation:none!important}.blade-sx-in{opacity:1!important}}\n"}),(0,c.jsx)(Al,{}),n&&(0,c.jsx)(nl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(kl,{className:"blade-sx-in",eyebrow:o?null:"Set your play",iconUrl:ve(d),gameName:d.game_name,tagline:N.tagline}),(0,c.jsx)(vl,{}),(0,c.jsxs)("div",{className:"blade-sx-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:k,borderColor:g.border,boxShadow:`0 10px 24px -20px ${bl(w,.7)}`,animationDelay:".06s"},children:[(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-2xl px-4 py-3.5",style:{backgroundColor:g.primary},children:[(0,c.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,c.jsx)("span",{className:"text-[11px] font-semibold",style:{color:g.primaryText,opacity:.72},children:"Total stake"}),(0,c.jsx)("span",{className:"text-2xl font-extrabold tabular-nums",style:{color:g.primaryText,fontFamily:b},children:ht(M.stake)})]}),(0,c.jsxs)("span",{className:"flex min-w-0 flex-col items-end",children:[(0,c.jsx)("span",{className:"text-[11px] font-semibold",style:{color:g.primaryText,opacity:.72},children:"To win"}),(0,c.jsxs)("span",{className:"flex items-baseline gap-1.5",children:[(0,c.jsx)("span",{className:"text-[26px] font-extrabold leading-none tabular-nums",style:{color:v,fontFamily:b},children:ht(M.base)}),M.challenge>0&&(0,c.jsxs)("span",{className:"rounded-md px-1.5 py-0.5 text-[11px] font-extrabold tabular-nums",style:{backgroundColor:v,color:w},children:["+",ht(M.challenge)]})]})]})]}),(0,c.jsxs)("div",{className:"mt-3",children:[O("Your stake",`steps of ${ht(N.unitStep)}`),(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[D("−",L,()=>P(-1),"Lower stake"),(0,c.jsxs)("div",{className:"flex-1 text-center",children:[(0,c.jsx)("div",{className:"text-2xl font-extrabold tabular-nums",style:{color:w,fontFamily:b},children:ht(C)}),(0,c.jsx)("div",{className:"text-[10px] font-bold uppercase tracking-[0.08em]",style:{color:g.textMuted},children:"per play"})]}),D("+",z,()=>P(1),"Raise stake")]})]}),(0,c.jsx)("p",{className:"mt-2 min-h-[16px] text-center text-[11px] font-bold",style:{color:g.primary},children:M.challenge>0?`Captain's Challenge pays ${ht(M.challenge)} on ${N.legs-N.challengeMisses} or ${N.legs} of ${N.legs}.`:""}),(0,c.jsxs)("div",{className:"mt-4",children:[O("Boost your card",`${ht(S)} each`),(0,c.jsx)("div",{className:"flex flex-col gap-2",children:N.boosts.map(e=>{const t=B[e.id];return(0,c.jsxs)("button",{type:"button",role:"switch","aria-checked":t,onClick:()=>{return t=e.id,A(e=>({...e,[t]:!e[t]}));var t},className:"flex w-full items-center gap-3 rounded-2xl border px-3 py-3 text-left transition-colors",style:{backgroundColor:t?bl(g.primary,.08):"transparent",borderColor:t?g.primary:g.border,cursor:"pointer"},children:[(0,c.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,c.jsxs)("span",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"text-sm font-extrabold sm:text-[15px]",style:{color:w,fontFamily:b},children:e.label}),(0,c.jsxs)("span",{className:"rounded-md px-1.5 py-0.5 text-[10px] font-extrabold tabular-nums",style:{backgroundColor:bl(g.primary,.12),color:g.primary},children:["+",ht(S*e.costUnits)]})]}),(0,c.jsx)("span",{className:"mt-1 block text-[11px] leading-snug sm:text-xs",style:{color:g.textMuted},children:E[e.id].sub})]}),(0,c.jsx)("span",{className:"relative h-7 w-12 shrink-0 rounded-full transition-colors",style:{backgroundColor:t?g.primary:g.border},"aria-hidden":!0,children:(0,c.jsx)("span",{className:"absolute top-[3px] h-[22px] w-[22px] rounded-full transition-transform",style:{left:3,backgroundColor:g.background,transform:t?"translateX(20px)":"none"}})})]},e.id)})})]})]}),(0,c.jsxs)("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[(0,c.jsx)("div",{className:"blade-sx-in",style:{animationDelay:".13s"},children:(0,c.jsx)(Bl,{tile:(0,c.jsx)(wl,{iconUrl:ve(d),size:60}),label:`Pick my ${N.legs}`,stat:"Your calls",detail:["A clean yes or no on every call","You read the games, you make the calls"],onSelect:()=>{T(),u(N.legs),x(),t?.()}})}),(0,c.jsx)("div",{className:"blade-sx-in",style:{animationDelay:".2s"},children:(0,c.jsx)(Bl,{tile:(0,c.jsx)(wl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${N.legs} calls for you`,"Straight to the bet slip"],onSelect:()=>{T(),f(d,N.legs,M.stake),e?.()}})})]})]})]})}function ss({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,backLabel:r="Games",className:l=""}){const{theme:a,selectedGame:i,selectedPropositionCount:d,handlePropositionCountChange:u,setExpectedCorrect:m,quickPickGame:p,goToSportSelection:h}=wr(),f=a.colors,x=he(a);fe(a);const g=(0,s.useMemo)(()=>{if(!i)return[];if(i.allowed_propositions&&i.allowed_propositions.length>0)return[...i.allowed_propositions].sort((e,t)=>e-t);const{min:e,max:t}=Ft(i);return Kt(e,t)},[i]),y=pr(i),b=g[0]??0,w=g[g.length-1]??0,[k]=(0,s.useState)(()=>null!=d&&g.includes(d)?d:w),v=(0,s.useMemo)(()=>so(i,k||void 0),[i,k]);if(!i||0===g.length||"exact"!==v?.kind)return(0,c.jsx)("div",{className:l,style:{color:f.textMuted,fontFamily:x},children:"No setup available."});const N=y?["Any yes/no props in the pool",`Pick ${b}–${w} legs — all must land`]:["A clean yes or no on every leg",`All ${k} have to land`],C=y?[`We fill ${k} legs across any markets`,"Straight to the bet slip"]:[`We fill all ${k} legs for you`,"Straight to the bet slip"];return(0,c.jsxs)("div",{className:`blade-pp flex min-h-full w-full flex-col ${l}`,style:{fontFamily:x},children:[(0,c.jsx)("style",{id:"blade-pp-styles",children:"\n.blade-pp{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-pp-in{opacity:0;animation:blade-pp-in .5s var(--e) both}\n@keyframes blade-pp-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-pp *{animation:none!important}.blade-pp-in{opacity:1!important}}\n"}),(0,c.jsx)(Al,{}),n&&(0,c.jsx)(nl,{onBack:n,label:r}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(kl,{className:"blade-pp-in",eyebrow:o?null:v.title,iconUrl:ve(i),gameName:i.game_name,tagline:v.heroTagline}),(0,c.jsx)(vl,{}),(0,c.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,c.jsx)("div",{className:"blade-pp-in",style:{animationDelay:".13s"},children:(0,c.jsx)(Bl,{tile:(0,c.jsx)(wl,{iconUrl:ve(i),size:60}),label:"Pick my own",stat:"Your calls",detail:N,onSelect:()=>{y||(u(k),m(k)),h(),t?.()}})}),(0,c.jsx)("div",{className:"blade-pp-in",style:{animationDelay:".2s"},children:(0,c.jsx)(Bl,{tile:(0,c.jsx)(wl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:C,onSelect:()=>{m(k),p(i,k),e?.()}})})]})]})]})}exports.BladeApiClient=Yo,exports.BrandLockup=function({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0,className:l}){const{theme:s}=wr(),a=j(s),i=W(s),d=s.colors.primaryHover??function(e){const t=/^#([0-9a-f]{6})$/i.exec(e?.trim()??"");if(!t)return e;const n=parseInt(t[1],16);return`rgba(${n>>16&255}, ${n>>8&255}, ${255&n}, 0.7)`}(a),u=fe(s)??"Manrope, Poppins, sans-serif",m=n&&n.length>0?n:t.split(/\s+/),p=.72*o,h=.5*o,f=Math.min(.62*o/m.length,.3*o);return(0,c.jsxs)("span",{role:"img","aria-label":`YESNO ${t}`,className:l,style:{display:"inline-flex",alignItems:"center",gap:.22*o,fontFamily:u,color:a},children:[(0,c.jsx)(Qt,{iconUrl:e,width:p,height:p,iconColor:a,accentColor:i,ariaLabel:""}),(0,c.jsxs)("span",{"aria-hidden":!0,style:{fontSize:h,letterSpacing:.045*-h,lineHeight:1,whiteSpace:"nowrap"},children:[(0,c.jsx)("span",{style:{fontWeight:800},children:"YES"}),(0,c.jsx)("span",{style:{fontWeight:600},children:"NO"})]}),(0,c.jsx)("span",{"aria-hidden":!0,style:{width:Math.max(2,Math.round(.045*o)),height:.78*o,backgroundColor:d,flexShrink:0}}),(0,c.jsx)("span",{"aria-hidden":!0,style:{display:"inline-flex",flexDirection:"column",fontSize:f,fontWeight:500,letterSpacing:.012*-f,lineHeight:1.14,textAlign:"left"},children:m.map((e,t)=>(0,c.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[e,r&&t===m.length-1&&(0,c.jsx)("sup",{style:{fontSize:.36*f,fontWeight:500,marginLeft:1},children:"™"})]},`${e}-${t}`))})]})},exports.CHALLENGE_MISSES=1,exports.CHALLENGE_MULTIPLE=5,exports.CategoryIcon=$e,exports.CategoryPickerPage=sl,exports.CategoryPickerPageActions=function({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=wr(),r=n.colors;return e&&"mobile"!==o?(0,c.jsx)("div",{className:`flex items-center pt-4 ${t}`,children:(0,c.jsx)("button",{type:"button",onClick:e,className:"px-5 py-2.5 rounded-lg text-sm font-medium transition-colors",style:{color:r.buttonSecondaryText,backgroundColor:r.buttonSecondary,cursor:"pointer"},children:"Cancel"})}):null},exports.CategoryPickerPageTitle=ll,exports.ChevronRightIcon=Ze,exports.ConfirmPage=function({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,hideTitle:r,hideActions:l,className:a=""}){const i=wr(),{theme:d,bodyFont:u,selectedGame:m,selectedPropositions:p,selections:h,compositeComponentById:f,propositions:x,disableQuickPick:g,selectedPropositionCount:y,selectedEventId:b,expectedCorrect:w,setExpectedCorrect:k,betAmount:v,setBetAmount:N,submitting:C,submitError:F,canSubmit:B,winningCounts:A,payouts:M,overloadPayouts:S,renderTeamLogo:L,userBalance:z,onRecharge:P,goBack:T,toggleSelection:O,upgradePropositionCount:D,goToSportSelection:E,selectedRule:Y}=i,H=d.colors;if((0,s.useEffect)(()=>{m||(E(),e?.())},[m,E,e]),!m)return null;const R=!!(m.allowed_propositions&&m.allowed_propositions.length>0),G=Ft(m,y,Y),W=G.min,I=bn(m)&&b?Math.min(G.max,x.length):G.max,U=Object.keys(h).length,$=W>0&&U<W,K=!R&&W>0&&I>W&&U>=W&&U<I,Z=R?[...m.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(y??0)):[],q=R&&Z.length>0&&!$,V=K||q,X=I-U;H.textAlt??H.text,W>0&&W===I||I||x.length;const Q=()=>{T(),e?.()},J=(R?[...m.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===U&&e<(y??1/0)),_=R&&U<Math.min(...m.allowed_propositions??[1/0]),ee=R&&$&&!_,te=hr(m),ne=function(e,t,n,o){const r=e?.description?.trim();if(r)return r;const l=(t??[]).filter(e=>Number.isFinite(e)).sort((e,t)=>e-t);if(0===l.length||n<=0)return null;const s=l[0];if(s>=n)return"Get every pick right to win.";if(!l.every((e,t)=>e===s+t)||l[l.length-1]!==n)return 2===l.length&&0===l[0]&&l[1]===n?`Get all ${n} picks right — or all ${n} wrong — to win.`:`Get exactly ${l.join(" or ")} of your ${n} picks right to win.`;const a=l.map(e=>o?.[e]).filter(e=>Number.isFinite(e));if(a.length===l.length&&a.length>1&&a.every((e,t)=>0===t||e>a[t-1]))return`Get ${s} of your ${n} picks right to start winning — every pick after that grows the prize.`;const i=n-s;return`Get ${s} of your ${n} picks right to win — up to ${1===i?"one miss":`${i} misses`} still pays.`}(Y,A,U,M),oe=M[U]||gr(m,U,v),re=(A??[]).length>1?"Top prize":"That pays",le=null!=J?te.belowRequiredHint(J,y??W):te.belowRequiredAddOnlyHint(y??W);return(0,s.useEffect)(()=>{!$||R&&!_||Q()},[$,R,_]),(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${a}`,style:{fontFamily:u},children:[!r&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(Dl,{onBack:e,hideActions:l})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)(Xr,{componentById:f,game:m,propositions:p,selections:h,onToggleSelection:O,onRemoveSelection:()=>{},onSubmit:async()=>{n?(await i.handleSubmit(),t?.()):o?.(Ol(i))},onBack:Q,loading:C,error:F,expectedCorrect:w,onExpectedCorrectChange:k,betAmount:v,onBetAmountChange:N,theme:d,showCustomAmount:!0,betAmountLocked:fr(m),betAmountLockedNote:xr(m),hideActions:!0,winningCounts:A,payouts:M,renderTeamLogo:L,canSubmit:B,authenticated:n,userBalance:z,onRecharge:P,boostBanner:(0,c.jsxs)(c.Fragment,{children:[(ne||oe>0)&&(0,c.jsxs)("div",{className:"p-3 rounded-lg border mb-2",style:{backgroundColor:`${H.primary}08`,borderColor:`${H.primary}30`},children:[(0,c.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-[0.1em] mb-1",style:{color:H.textMuted},children:"How you win"}),ne&&(0,c.jsx)("p",{className:"text-xs sm:text-sm",style:{color:H.text},children:ne}),oe>0&&(0,c.jsxs)("p",{className:"text-xs sm:text-sm mt-1.5",style:{color:H.textMuted},children:[re," ",(0,c.jsx)("span",{className:"font-bold",style:{color:j(d)},children:ht(oe)})]})]}),ee&&(0,c.jsxs)("div",{className:"p-3 rounded-lg border flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3",style:{backgroundColor:`${H.warning}10`,borderColor:`${H.warning}40`},children:[(0,c.jsxs)("p",{className:"text-xs sm:text-sm",style:{color:H.text},children:["You have ",(0,c.jsxs)("span",{style:{fontWeight:700},children:[U," pick",1!==U?"s":""]}),"."," ",le]}),(0,c.jsxs)("div",{className:"flex gap-2 flex-shrink-0",children:[(0,c.jsx)("button",{type:"button",onClick:Q,className:"px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:H.buttonSecondaryText,backgroundColor:H.buttonSecondary,cursor:"pointer"},children:"Add a pick"}),null!=J&&(0,c.jsx)("button",{type:"button",onClick:()=>D(J),className:"px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:H.buttonPrimaryText,backgroundColor:H.buttonPrimary,cursor:"pointer"},children:te.switchTierLabel(J)})]})]}),V&&(0,c.jsx)("div",{className:"p-3 rounded-lg border",style:{backgroundColor:`${H.primary}08`,borderColor:`${H.primary}30`},children:q?(()=>{const e=y??U,t=S[e],n=v>0?v:20,o=null!=t&&t>0?t*(n/20):null;return(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{className:"text-sm font-semibold mb-1",style:{color:H.primary},children:te.overloadTitle}),null!=o&&(0,c.jsxs)("p",{className:"text-xs mb-2",style:{color:H.textMuted},children:["Currently winning up to"," ",(0,c.jsx)("span",{style:{color:H.heading??H.text,fontWeight:700},children:ht(o)})," ","with ",e," picks"]}),(0,c.jsx)(Tl,{tiers:Z.map(e=>({count:e,payout20:S[e]??0})),selectedCount:void 0,onSelect:e=>{D(e),Q()},colors:H,bodyFont:i.bodyFont,extraBetAmount:20!==n?n:void 0,columnLabel:te.tableColumnLabel,buttonLabel:te.tierButtonLabel})]})})():(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,c.jsxs)("p",{className:"text-xs",style:{color:H.textMuted},children:[1===X?"Add ":"Add up to ",(0,c.jsxs)("span",{style:{color:H.primary,fontWeight:700},children:[X," more pick",1!==X?"s":""]})]}),(0,c.jsx)("button",{type:"button",onClick:Q,className:"flex-shrink-0 px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:H.buttonPrimaryText,backgroundColor:H.buttonPrimary,cursor:"pointer"},children:"Add picks"})]})})]})})}),l&&F&&(0,c.jsx)("div",{className:"mt-3 flex justify-end",children:(0,c.jsx)("span",{className:"text-xs",style:{color:H.error},children:F})})]})},exports.ConfirmPageActions=function({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,className:r=""}){const l=wr(),{theme:s,selectedGame:a,expectedCorrect:i,betAmount:d,submitting:u,submitError:m,canSubmit:p,payouts:h,selectedPropositionIds:f,screenSize:x}=l,g=s.colors;if(!a)return null;const y=h[i]??0,b=Bt(a),w=i===f.length,k=b?.enabled&&w,v=e&&"mobile"!==x;return(0,c.jsxs)("div",{className:`flex items-center justify-between pt-4 ${r}`,children:[v&&(0,c.jsx)(Pe,{theme:s,variant:"secondary",onPress:e,children:"Back"}),(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[m&&(0,c.jsx)("span",{className:"text-xs",style:{color:g.error},children:m}),(y>0||k)&&(0,c.jsxs)("div",{className:"text-right leading-tight hidden sm:block",children:[(0,c.jsx)("span",{className:"text-[10px] uppercase tracking-wide block",style:{color:g.textMuted},children:"Potential winnings"}),(0,c.jsxs)("span",{className:"text-sm font-bold",style:{color:g.heading??g.text},children:[ht(y),k&&(0,c.jsx)("span",{style:{color:g.warning},children:" + Jackpot"})]})]}),(0,c.jsx)(Pe,{theme:s,variant:"primary",disabled:!p,onPress:async()=>{n?(await l.handleSubmit(),t?.()):o?.(Ol(l))},children:n?u?"Placing…":`Place Entry (${ht(d)})`:"Log in to place entry"})]})]})},exports.ConfirmPageTitle=Dl,exports.DOUBLE_SHOT_MIN_LEGS=6,exports.EXTRA_SHOT_MIN_LEGS=4,exports.EntriesPage=function({className:e="",onSelectEntry:t,onBack:n,hideTitle:o,hideActions:r}){const{theme:l,bodyFont:s,apiUrl:a,apiKey:i,fetchImpl:d,getAuthHeaders:u,userId:m,demoEntries:p,demoGames:h,demoPropositions:f,renderTeamLogo:x,filterSport:g}=wr();return(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${e}`,style:{fontFamily:s},children:[!o&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(jl,{onBack:n,hideActions:r})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)(Jr,{apiUrl:a,apiKey:i,fetchImpl:d,getAuthHeaders:u,userId:m,demoEntries:p,demoGames:h,demoPropositions:f,onSelectEntry:t,theme:l,renderTeamLogo:x,filterSport:g})})]})},exports.EntriesPageTitle=jl,exports.EntrySubmission=Xr,exports.EventFilterBanner=el,exports.EventPickerPage=cl,exports.EventSwipeModal=Or,exports.FilterChipCarousel=Qe,exports.FilterChipRow=Je,exports.GAME_TIER_LEVEL=Mn,exports.GAME_TIER_TABS=Sn,exports.GOLDEN_POINT_FACTOR=2,exports.GameEntries=Jr,exports.GameLogo=hl,exports.GamePage=function({onSelectGame:e,onGameSetup:t,onRuleSetup:n,onGameSetBet:o,onPickYourDividend:r,onLadder:l,onMirror:a,onSafetyNet:i,onQuickPick:d,onCancel:u,hideTitle:m,hideActions:p,showPerfectPickSetup:h=!1,showTierFilter:f=!1,className:x=""}){const g=wr(),{theme:y,games:b,loading:w,error:k,selectedGame:v,selectedPropositionCount:N,handlePropositionCountChange:C,maxPayouts:F}=g;y.colors;const B=s.default.useRef(v);return B.current=v,(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${x}`,style:{fontFamily:g.bodyFont},children:[!m&&(0,c.jsx)("div",{className:"mb-4 sm:mb-6",children:(0,c.jsx)(rl,{onBack:u,hideActions:p})}),(0,c.jsx)(el,{}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)(ko,{games:b,selectedGame:v,onSelectGame:e=>{B.current=e,g.selectGame(e)},loading:w,error:k,theme:y,showTierFilter:f,selectedPropositionCount:N,onPropositionCountChange:C,onPropositionCountSelected:()=>{const s=B.current;if("rule_setup"===ur(s)&&pr(s)&&!h)return g.goToSportSelection(),void e?.();const c=ur(s);if("quick_pick"===c||"selections"===c)return g.goToSportSelection(),void e?.();t?t(c):({game_set:o,pick_your_dividend:r,ladder:l,mirror:a,safety_net:i,rule_setup:n}[c]??n)?.()},onQuickPickGame:(e,t)=>{g.quickPickGame(e,t),d?.()},maxPayouts:F})})]})},exports.GamePageActions=function({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=wr(),r=n.colors;return e&&"mobile"!==o?(0,c.jsx)("div",{className:`flex items-center pt-4 ${t}`,children:(0,c.jsx)("button",{type:"button",onClick:e,className:"px-5 py-2.5 rounded-lg text-sm font-medium transition-colors",style:{color:r.buttonSecondaryText,backgroundColor:r.buttonSecondary,cursor:"pointer"},children:"Cancel"})}):null},exports.GamePageTitle=rl,exports.GameSelector=ko,exports.GameSetBetPage=Xl,exports.GameSetBetPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=wr(),l=fe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"The fastest multi"}),(0,c.jsx)(ol,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.GameSetupPage=function({onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r="Games",className:l=""}){const{theme:s,selectedGame:a,goToSportSelection:i,bodyFont:d}=wr(),u={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r,className:l};switch(ur(a)){case"game_set":return(0,c.jsx)(Xl,{...u});case"pick_your_dividend":return(0,c.jsx)(Ql,{...u});case"ladder":return(0,c.jsx)(Jl,{...u});case"mirror":return(0,c.jsx)(os,{...u});case"safety_net":return(0,c.jsx)(rs,{...u});case"six_again":return(0,c.jsx)(ls,{...u});case"rule_setup":return"exact"===so(a)?.kind?(0,c.jsx)(ss,{...u}):(0,c.jsx)(Vl,{onBack:n,hideTitle:o,backLabel:r,className:l,onContinue:()=>{i(),e?.()}});default:return(0,c.jsx)("div",{className:l,style:{color:s.colors.textMuted,fontFamily:d},children:"No setup required — this game goes straight to picks."})}},exports.HowToPlayButton=Ie,exports.HowToPlayModal=We,exports.HowToPlayPanel=Ge,exports.LADDER_FAMILY=_o,exports.LADDER_REFERENCE_BET=50,exports.LADDER_STAKES=Jo,exports.LadderPage=Jl,exports.LadderPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=wr(),l=fe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"Every step pays"}),(0,c.jsx)(ol,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.LockIcon=qe,exports.MIRROR_STANDARD_MARGIN=.21875,exports.MarkdownContent=A,exports.MirrorPage=os,exports.MirrorPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=wr(),l=fe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"All right, or all wrong"}),(0,c.jsx)(ol,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.NO_BOOSTS=sr,exports.PYD_LEG_RUNGS=co,exports.PYD_RETAIL_DIVIDENDS=io,exports.PayoutCircles=function({game:e,totalSelections:t,expectedCorrect:n,className:o="",onExpectedCorrectChange:r,theme:l=J,colorWinning:s,colorNone:a,winningCounts:i,payouts:d}){const u=l.colors,m=s??u.payoutWinning,p=a??u.payoutNone,h=Bt(e);return(0,c.jsxs)("div",{className:`space-y-4 ${o}`,children:[(0,c.jsx)("h4",{className:"text-sm font-semibold text-center",style:{color:u.textMuted},children:"Payout Visualization"}),h.enabled&&(0,c.jsxs)("div",{className:"flex items-center justify-center gap-2 py-2.5 px-4 rounded-lg text-sm font-semibold",style:{background:`linear-gradient(135deg, ${u.warning}18, ${u.warning}08)`,color:u.warning,border:`1px solid ${u.warning}30`},children:[(0,c.jsx)("svg",{className:"w-4 h-4 flex-shrink-0",viewBox:"0 0 24 24",fill:"currentColor",children:(0,c.jsx)("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.27 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z"})}),(0,c.jsx)("span",{children:h.progressive?h.amount>0?`Progressive Jackpot: ${ht(h.amount)}${h.limit>0?` (up to ${ht(h.limit)})`:""} for a perfect pick!`:h.limit>0?`Progressive Jackpot — up to ${ht(h.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${ht(h.amount)} for a perfect pick!`})]}),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5 sm:gap-2 justify-center",children:Array.from({length:t+1},(e,o)=>{const l=i.includes(o),s=d[o]??0,a=s>0,f=o===t,x=h.enabled&&f,g=x?u.warning:l?m:p,y=o===n;return(0,c.jsxs)("button",{type:"button",onClick:()=>r?.(o),className:`relative flex flex-col items-center justify-center w-10 h-10 sm:w-12 sm:h-12 rounded-full border-2 font-semibold transition-all text-xs sm:text-sm ${x?"shadow-lg scale-110 ring-2 ring-offset-1":l?"shadow-lg scale-110":""} ${r?"cursor-pointer hover:scale-[1.12] hover:shadow-xl":""}`,style:{backgroundColor:g,borderColor:x?u.warning:l?g:void 0,color:l||x?"#ffffff":u.textMuted,zIndex:y?10:x?6:l?5:1,...x?{"--tw-ring-color":`${u.warning}80`}:{},...y?{outline:`3px solid ${u.primary}`,outlineOffset:"3px"}:{}},title:x?h.progressive?`${o} correct wins PROGRESSIVE JACKPOT${h.amount>0?` (currently ${ht(h.amount)})`:""}${h.limit>0?` — up to ${ht(h.limit)}`:""} + ${ht(s)}\nClick to select`:`${o} correct wins JACKPOT ${ht(h.amount)} + ${ht(s)}\nClick to select`:l?`${o} correct wins ${ht(s)}\nClick to select`:a?`${o} correct pays ${ht(s)} but does not win\nClick to select`:`${o} correct - no payout\nClick to select`,children:[x&&(0,c.jsx)("div",{className:"absolute -top-1.5 -right-1.5",children:(0,c.jsx)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:u.warning,stroke:u.warning,strokeWidth:"1",children:(0,c.jsx)("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.27 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z"})})}),(0,c.jsx)("div",{className:"text-sm sm:text-base leading-none",children:o}),s>0?(0,c.jsx)("div",{className:"text-[7px] sm:text-[8px] font-normal leading-none",children:ht(s)}):null]},o)})}),(0,c.jsx)("div",{className:"text-xs text-center",style:{color:u.textMuted},children:(0,c.jsxs)("p",{children:["Your expected: ",(0,c.jsxs)("span",{className:"font-semibold",children:[n," correct"]})]})})]})},exports.PerfectPickPage=ss,exports.PerfectPickPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=wr(),l=fe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"All or nothing"}),(0,c.jsx)(ol,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.PickYourDividendPage=Ql,exports.PickYourDividendPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=wr(),l=fe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"The dividend is set"}),(0,c.jsx)(ol,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.PlaceEntryProvider=function({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,getUserBalance:l,children:a,theme:i,colorScheme:d,demoGames:u,demoPropositions:m,demoEntries:p,demoMaxPayouts:h,gameCategory:f,jurisdiction:x,initialGameId:g,filterSport:y,initialSport:b,initialEventId:w,initialEventLabel:k,sportBaseKey:v,disableQuickPick:N=!1,renderTeamLogo:C,renderPropositionSilk:F,selectionVariant:B,disableEventSwipe:A,enableSportFavourites:M,onEntryPlaced:S,onBeforeSubmit:L,onCancel:z,onShare:P,onRecharge:T,onClearEventFilter:O,screenSize:D="desktop",howToPlayMarkdown:E,sportDisplayNames:j,categoryDisplayNames:Y}){const H=pe(i,d),R=he(H),G=fe(H),W=!(!u||!m),I=(0,s.useMemo)(()=>new Yo({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),[U,$]=(0,s.useState)(0),K=(0,s.useRef)(0),[Z,q]=(0,s.useState)(0),[V,X]=(0,s.useState)([]),[Q,J]=(0,s.useState)({}),[_,ee]=(0,s.useState)({}),[te,ne]=(0,s.useState)(void 0),[oe,re]=(0,s.useState)(null),[le,se]=(0,s.useState)(void 0),ae=s.default.useCallback(async()=>{if(l)try{const e=await l();"number"==typeof e&&Number.isFinite(e)&&se(e)}catch(e){}},[l]);(0,s.useEffect)(()=>{l?ae():se(void 0)},[l,ae]);const ie=(0,s.useRef)(null),ce=(0,s.useRef)(null),[de,ue]=(0,s.useState)(null),[me,xe]=(0,s.useState)(b??null),[ge,ye]=(0,s.useState)(w??null);(0,s.useEffect)(()=>{b&&xe(b)},[b]),(0,s.useEffect)(()=>{ye(w??null)},[w]);const[be,we]=(0,s.useState)(w),ke=(0,s.useRef)(!1);(0,s.useEffect)(()=>{if(!w)return we(void 0),void(ke.current=!1);ke.current||we(w)},[w]);const ve=f??de??void 0,Ne=zt(me??y??b??void 0,v),Ce=zt(y,v)??y,Fe=me??void 0,{games:Be,howToPlayMarkdown:Ae,loading:Me,error:Se}=Ho(I,{category:ve,jurisdiction:x,sport:Ne},{skip:W}),{propositions:Le,loading:ze,error:Pe}=Ro(I,{category:ve,sport:Ce,event_id:be},{skip:W}),{sports:Te,loading:Oe}=Go(I,{skip:W}),{createEntry:De,loading:Ee,error:je,clearSubmitError:Ye}=Uo(I),{preview:He}=Ko(I),Re=(0,s.useMemo)(()=>Ht((W?u:Be)??[],{category:ve,sport:Ne??Fe,sportBaseKey:v}),[W,u,Be,ve,Ne,Fe,v]),Ge=E??Ae??null,{maxPayouts:We,refetchGame:Ie}=Io(I,Re??[],{skip:W,betAmount:20}),Ue=W?h??br:We,$e=W?m:Le,Ke=y?($e??[]).filter(e=>e.sport===y):$e,Ze=(0,s.useMemo)(()=>vt(Ke??[]),[Ke]),qe=(0,s.useMemo)(()=>ve||(1===Ze.length?Ze[0]:void 0),[ve,Ze]),Ve=(0,s.useMemo)(()=>{const e=Ke??[];return qe?Dt(e,{category:qe,sportBaseKey:v}):e},[Ke,qe,v]),Xe=(0,s.useMemo)(()=>Fe?Dt(Ve,{sport:Fe,sportBaseKey:v}):Ve,[Ve,Fe,v]),Qe=(0,s.useMemo)(()=>({category:qe,sport:Fe,sportBaseKey:v}),[qe,Fe,v]),Je=(0,s.useMemo)(()=>{const e=(Re??[]).filter(e=>e.active);if(!qe&&Ze.length>1)return[];const t=qe?Ht(e,Qe):e;return qe||Fe?function(e,t,n){return n?.category||n?.sport?e.filter(e=>Yt(e,t,n)):e}(t,Xe,Qe):t},[Re,Xe,Qe,qe,Fe,Ze.length]),{step:_e,selectedGame:et,selections:tt,placedEntry:rt,setGameOnly:lt,clearSelectedGame:st,goToSportSelection:at,goToConfirmation:it,goToSuccess:ct,goBack:dt,reset:ut,toggleSelection:mt}=$o(g),pt=s.default.useCallback(()=>{ke.current=!0,we(void 0),ut(),O?.()},[ut,O]),ht=!!be,ft=ht?k:void 0,xt=!W&&(Me||ze||!!et&&Oe),yt=W?null:et?Se||Pe:Se,wt=(0,s.useMemo)(()=>et?Gt(Xe,et,v):Xe,[et,Xe,v]),kt=(0,s.useMemo)(()=>{const e=et?Gt(Ve,et,v):Ve,t=et?.allowed_sports,n=new Map;for(const o of e){const r=gt(o,e);"Other"!==r&&(t?.length&&!t.includes(r)||n.set(r,(n.get(r)??0)+1))}return Array.from(n.entries()).sort((e,t)=>t[1]-e[1]).map(([e,t])=>({key:e,count:t}))},[et,Ve,v]),Nt=(0,s.useMemo)(()=>kt.map(e=>e.key),[kt]),Bt=(0,s.useMemo)(()=>et?wt:Ve,[et,wt,Ve]),At=(0,s.useMemo)(()=>Dt(et?wt:Ve,{category:qe}),[et,wt,Ve,qe]),Mt=(0,s.useMemo)(()=>{const e=new Set(Nt);return Te.filter(t=>e.has(t.key))},[Te,Nt]),Tt=(0,s.useMemo)(()=>Dt(wt,{category:qe,sport:me}),[wt,qe,me]),Ot=(0,s.useMemo)(()=>{if(!et||!bn(et))return[];const{min:e}=Ft(et,te),t=te??e;return kn(Tt).filter(e=>e.propositionCount>=t)},[et,te,Tt]),jt=(0,s.useMemo)(()=>bn(et)?Bn(Tt,ge):Tt,[et,Tt,ge]),Rt=function(e,t){const[n,o]=(0,s.useState)([]),r=(0,s.useRef)(new Set),l=(0,s.useMemo)(()=>{const e=new Map;for(const n of t)e.set(n.id,n);for(const t of n)e.set(t.id,t);return e},[t,n]),a=(0,s.useMemo)(()=>e?function(e){const t=new Set;for(const n of e)if(nt(n))for(const e of ot(n))t.add(e);return[...t]}(t).filter(e=>!l.has(e)):[],[e,t,l]);return(0,s.useEffect)(()=>{if(!e||0===a.length)return;const t=a.filter(e=>!r.current.has(e));if(0===t.length)return;for(const e of t)r.current.add(e);let n=!1;return e.getPropositionsByIds(t).then(e=>{!n&&e.length>0&&o(t=>[...t,...e])}).catch(()=>{}),()=>{n=!0}},[e,a]),l}(W?null:I,(0,s.useMemo)(()=>[...Ke??[],...jt],[Ke,jt])),Wt=(0,s.useMemo)(()=>jo(wt,tt,Rt),[wt,tt,Rt]),It=(0,s.useCallback)((e,t)=>{if(!(e in tt)){const t=wt.find(t=>t.id===e);if(t&&Wt.isCapped(t))return}mt(e,t)},[tt,wt,Wt,mt]),Ut=Object.keys(tt).map(Number),$t=Ut.length,Kt=(0,s.useMemo)(()=>Tt.filter(e=>Ut.includes(e.id)),[Tt,Ut]);(0,s.useEffect)(()=>{f||de||1===Ze.length&&ue(Ze[0])},[f,de,Ze]),(0,s.useEffect)(()=>{if(!et)return;const e=wt,t=new Set(e.map(bt));let n=de;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==de&&ue(n));const o=n?e.filter(e=>bt(e)===n):e,r=new Set(function(e){const t=new Set;for(const n of e){const o=gt(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),l=et.allowed_sports;xe(e=>e&&r.has(e)&&(!l?.length||l.includes(e))?e:1===l?.length&&r.has(l[0])?l[0]:1===r.size?Array.from(r)[0]:(()=>{const e=new Map;for(const r of o){const t=gt(r,o);"Other"!==t&&(l?.length&&!l.includes(t)||e.set(t,(e.get(t)??0)+1))}let t=null,n=0;for(const[o,r]of e)r>n&&(t=o,n=r);return t})())},[et?.id,wt,de]),(0,s.useEffect)(()=>{Ye()},[et?.id,_e,Ye]),(0,s.useEffect)(()=>{et&&qe&&(Et(et,qe)||st())},[et,qe,st]),(0,s.useEffect)(()=>{et&&(Yt(et,Xe,{category:qe,sport:me,sportBaseKey:v})||st())},[et,qe,me,v,Xe,st]),(0,s.useEffect)(()=>{if(et){const e=ie.current,t=ce.current!==et.id;if(ce.current=et.id,null!=e?.stake&&e.stake>0?q(e.stake):t&&q(Math.max(20,et.min_bet??0)),e){const{count:t}=e;return ie.current=null,ne(t),void $(t)}if(et.allowed_propositions&&et.allowed_propositions.length>0){const e=te;null!=e&&et.allowed_propositions.includes(e)?$(e):(ne(void 0),$(0))}else ne(void 0),$(et.num_propositions||et.max_propositions||0)}},[et]);const Zt=(e,t,n)=>{const o=(Ue[e]?.top_payouts??[]).find(e=>e.proposition_count===t),r=o&&o.bet_amount&&o.bet_amount>0?o.bet_amount:20,l=o&&r>0?o.net_payout/r*n:0;return l>0?l:gr((Re??[]).find(t=>t.id===e)??(et?.id===e?et:null),t,n)};(0,s.useEffect)(()=>{if("sport"!==_e&&"confirm"!==_e||!et||W)return;const e=bn(et)&&ge?jt.length:Number.MAX_SAFE_INTEGER;let t;if(et.allowed_propositions&&et.allowed_propositions.length>0){const n=et.allowed_propositions?[...et.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void ee({});const o=te??n[0],r=n.filter(e=>e>o);if(0===r.length)return void ee({});t=[o,...r]}else{const{min:n,max:o}=Ft(et),r=Math.min(o,e);if(n<=0||r<=n)return void ee({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=Zt(et.id,o,20);ee(n)},[_e,et,te,ge,jt.length,W,Ue]),(0,s.useEffect)(()=>{if("confirm"!==_e||!et)return;const e=Ut.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=Zt(et.id,r,Z);J(n),e!==K.current?(K.current=e,$(e)):(U>e||U<=0&&e>0)&&$(e);const o=Z>0?Z:Math.max(et.min_bet??20,.01);return(async()=>{try{const n=await He(et.id,{actual:U,predicted:U,total:e,bet_amount:o,rule_id:oe});if(t)return;if(X(n.winning_counts),Z>0&&n.payouts){const e={};for(const[t,o]of Object.entries(n.payouts)){const n=Number(t);e[n]=o>0?o:Zt(et.id,n,Z)}J(e)}}catch{t||X([])}})(),()=>{t=!0}},[_e,et,Ut.length,U,Z,He,Ue,oe]);const qt=(0,s.useMemo)(()=>{return t=oe,(e=et)&&null!=t?e.permitted_rules?.find(e=>e.id===t)??null:null;var e,t},[et,oe]),Vt=!bn(et)||An(Kt,ge),Xt=et?Ft(et,void 0,qt):null,Qt=!(!et||!Vt)&&(et.allowed_propositions&&et.allowed_propositions.length>0?null!=te&&$t===te&&Ct($t,Xt?.min,Xt?.max):Ct($t,Xt?.min,Xt?.max)),Jt=et?.min_bet??0,_t=Math.max(Jt,.01),en=null==le||Z<=le,tn=!Ee&&Z>=_t&&Qt&&en,nn=e=>{ne(e),$(e);for(const t of Object.keys(tt))mt(Number(t),tt[Number(t)])},on=e=>{ne(e),$(e)},rn=e=>{ye(bn(e)?w??null:null),lt(e)},ln=e=>{if(e!==ge){for(const e of Object.keys(tt)){const t=Number(e);mt(t,tt[t])}ye(e)}},sn=(e,t,n)=>{ie.current={count:t,stake:n},lt(e),Ie(e.id);const o=e.allowed_sports??[];let r=null;me&&o.some(e=>Pt(me,e,v))?r=me:1===o.length&&(r=o[0]),xe(r);for(const i of Object.keys(tt)){const e=Number(i);mt(e,tt[e])}let l=Dt(Gt(Ke??[],e,v),{category:qe,sport:r,sportBaseKey:v});const s=Math.max(0,Math.min(t,l.length)),a=function(e,t,n){const o=[],r=new Map;for(const l of e){if(o.length>=t)break;const e=Do(l),s=e?Oo(l,n):[];if(e&&s.length>0){const t=r.get(e)??new Set;if(s.some(e=>t.has(e)))continue;for(const e of s)t.add(e);r.set(e,t)}o.push(l)}return o}([...l].sort(()=>Math.random()-.5),s,Rt);for(const i of a)mt(i.id,Math.random()<.5?"yes":"no");it()},an=(0,s.useRef)(!1),cn=async()=>{if(et&&Qt&&!an.current){if(W){const e={id:Math.floor(1e4*Math.random()),game_id:et.id,user_id:r,proposition_ids:Ut,selections:tt,pending:!0,expected_correct:U,bet_amount:Z};return S?.(e),ct(e),void ae()}an.current=!0;try{L&&await L(Z);const e=await De({game_id:et.id,user_id:r,proposition_ids:Ut,selections:tt,stake:Z,rule_id:qt?.id??null});S?.(e),ct(e),ae()}catch(e){}finally{an.current=!1}}},dn=(0,s.useCallback)(e=>j?.[e]??Mt.find(t=>t.key===e)?.label??St(e,void 0,v),[j,Mt,v]),un=(0,s.useCallback)(e=>Lt(e,Y),[Y]),mn=(0,s.useMemo)(()=>({theme:H,bodyFont:R,headingFont:G,games:Je,propositions:jt,compositeComponentById:Rt,propositionsForCategoryPicker:Bt,sportsForSelectedGame:Nt,sportOptions:kt,propositionsForSportPicker:At,sportSummaries:Mt,loading:xt,error:yt,step:_e,selectedGame:et,selections:tt,placedEntry:rt,selectedPropositionIds:Ut,selectedPropositions:Kt,selectionValid:Qt,selectedRuleId:oe,setSelectedRuleId:re,selectedRule:qt,answeredCount:$t,betAmount:Z,setBetAmount:q,expectedCorrect:U,setExpectedCorrect:$,selectedPropositionCount:te,handlePropositionCountChange:nn,upgradePropositionCount:on,winningCounts:V,payouts:Q,overloadPayouts:_,submitting:Ee,submitError:je,canSubmit:tn,gamePrice:Jt,userBalance:le,hasSufficientBalance:en,refreshUserBalance:ae,handleSubmit:cn,selectGame:rn,goToSportSelection:()=>at(),goToConfirmation:it,goBack:dt,reset:ut,clearSelectedGame:st,toggleSelection:It,quickPickGame:sn,selectedCategory:de,setSelectedCategory:ue,selectedSport:me,setSelectedSport:xe,selectedEventId:ge,sameGameMultiEvents:Ot,selectSameGameMultiEvent:ln,apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,disableQuickPick:N,renderTeamLogo:C,renderPropositionSilk:F,selectionVariant:B,disableEventSwipe:A,enableSportFavourites:M,filterSport:y,initialSport:b,initialEventId:w,sportBaseKey:v,gameCategory:f,eventFilterActive:ht,eventFilterLabel:ft,clearEventFilter:pt,screenSize:D,displaySportName:dn,displayCategoryName:un,maxPayouts:Ue??{},howToPlayMarkdown:Ge,onEntryPlaced:S,onCancel:z,onShare:P,onRecharge:T,demoEntries:p,demoGames:u,demoPropositions:m}),[H,R,G,Je,jt,Rt,Bt,At,Nt,kt,Mt,xt,yt,_e,et,tt,rt,Ut,Kt,Qt,$t,Z,U,te,oe,qt,V,Q,_,Ee,je,tn,Jt,e,t,r,le,n,o,N,C,F,B,A,M,y,b,w,v,f,D,ht,ft,pt,de,me,ge,Ot,Ue,Ge,S,z,P,T,O,p,u,m,dn,un]);return(0,c.jsx)(yr.Provider,{value:mn,children:a})},exports.QuickPickButton=kr,exports.RuleSetupPage=Vl,exports.RuleSetupPageActions=function({onContinue:e,canContinue:t,continueLabel:n="Continue",className:o=""}){const{theme:r,screenSize:l}=wr(),s=r.colors;return e&&"mobile"!==l?(0,c.jsx)("div",{className:`flex items-center justify-end pt-4 ${o}`,children:(0,c.jsx)("button",{type:"button",onClick:e,disabled:!t,className:"px-5 py-2.5 rounded-lg text-sm font-semibold transition-colors disabled:opacity-45",style:{color:s.buttonPrimaryText,backgroundColor:s.buttonPrimary,cursor:t?"pointer":"not-allowed"},children:n})}):null},exports.RuleSetupPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r,selectedPropositionCount:l}=wr(),s=fe(o),a=o.colors,i=so(r,l);return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:a.primary,fontFamily:s},children:i?.title??"About this game"}),(0,c.jsx)(ol,{onBack:t,hideActions:n,label:r?`${r.game_name}${i?.subtitle?` · ${i.subtitle}`:""}`:void 0})]})},exports.SELECTION_VARIANTS=["split","split-inline","compact"],exports.SIX_AGAIN_LEGS=6,exports.SIX_AGAIN_MARGIN=.21875,exports.SafetyNetPage=rs,exports.SafetyNetPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=wr(),l=fe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"Choose your safety net"}),(0,c.jsx)(ol,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.ScrollShelf=Xe,exports.SelectionReview=function({propositions:e,selections:t,onToggleSelection:n,onNext:o,onBack:r,theme:l,colorScheme:a,hideActions:i=!1,renderTeamLogo:d,allowAnswerToggle:u=!0,gameName:m,potentialPayout:p,defaultExpanded:h=!1,componentById:f,addMorePicks:x}){const g=pe(l,a),y=g.colors,b=K(g),w=he(g),k=fe(g),v=j(g),N=y.textAlt??y.text,C=y.matchupHeader??Z(g),F=q(g),[B,A]=(0,s.useState)(null),[M,S]=(0,s.useState)(h),L=e.filter(e=>e.id in t),z=L.length,P=$t(L);return(0,c.jsxs)("div",{className:"space-y-4 sm:space-y-6 pb-16",style:{fontFamily:w},children:[(0,c.jsxs)("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:b,borderColor:y.border,boxShadow:O(g)},children:[(0,c.jsxs)("button",{type:"button",onClick:()=>S(e=>!e),"aria-expanded":M,"aria-controls":"selection-review-list",className:"w-full flex items-center justify-between gap-3 text-left",style:{background:"none",border:"none",padding:0,cursor:"pointer",color:"inherit"},children:[(0,c.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,c.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{color:y.textMuted,flexShrink:0,transform:M?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.15s ease"},children:(0,c.jsx)("path",{d:"m6 9 6 6 6-6"})}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsxs)("h3",{className:"text-base sm:text-lg font-semibold flex items-center gap-2",style:{color:v,fontFamily:k},children:[(0,c.jsx)("span",{children:"Your Selections"}),(0,c.jsx)("span",{className:"text-xs font-semibold px-1.5 py-0.5 rounded-full",style:{color:y.primaryText,backgroundColor:y.primary},children:z})]}),m&&(0,c.jsx)("p",{className:"text-sm mt-0.5 truncate",style:{color:y.textMuted},children:m})]})]}),null!=p&&p>0&&(0,c.jsxs)("div",{className:"text-right flex-shrink-0",children:[(0,c.jsx)("span",{className:"text-[10px] uppercase tracking-wide block",style:{color:y.textMuted},children:"Potential Payout"}),(0,c.jsx)("span",{className:"text-sm font-bold",style:{color:v},children:ht(p)})]})]}),x&&x.remaining>0&&(0,c.jsxs)("div",{className:"mt-3 sm:mt-4 p-3 rounded-lg border flex items-center justify-between gap-3",style:{backgroundColor:`${y.primary}08`,borderColor:`${y.primary}30`},children:[(0,c.jsxs)("p",{className:"text-xs",style:{color:y.textMuted},children:[1===x.remaining?"Add ":"Add up to ",(0,c.jsxs)("span",{style:{color:y.primary,fontWeight:700},children:[x.remaining," more pick",1!==x.remaining?"s":""]}),null!=x.potentialPayout&&x.potentialPayout>0&&(0,c.jsxs)(c.Fragment,{children:[" ","to win up to"," ",(0,c.jsx)("span",{style:{color:v,fontWeight:700},children:ht(x.potentialPayout)})," ","with ",x.max," picks"]})]}),(0,c.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),x.onAdd()},className:"flex-shrink-0 px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:y.buttonPrimaryText,backgroundColor:y.buttonPrimary,cursor:"pointer"},children:"Add picks"})]}),M&&(0===L.length?(0,c.jsx)("div",{className:"text-center py-8 mt-3 sm:mt-4",style:{color:y.textMuted},children:"No selections made yet"}):(0,c.jsx)("div",{id:"selection-review-list",className:"space-y-2 sm:space-y-3 mt-3 sm:mt-4",children:P.map(e=>(0,c.jsxs)("div",{className:"rounded-lg overflow-hidden border",style:{borderColor:y.border},children:[e.key&&(0,c.jsxs)("div",{className:"px-3 py-2 sm:px-3.5 sm:py-2.5 min-w-0",style:{backgroundColor:C},children:[(0,c.jsx)(Kr,{matchup:e.key,renderTeamLogo:d,altText:N,mutedColor:y.textAltMuted??y.textMuted??N}),e.props[0].commence_time&&(0,c.jsx)("span",{className:"text-[11px] block mt-0.5",style:{color:y.textAltMuted??y.textMuted,opacity:.7},children:ft(e.props[0].commence_time)})]}),e.props.map((o,l)=>{const s=t[o.id],a="yes"===s,i="no"===s;return(0,c.jsxs)("div",{className:"flex items-center justify-between gap-2 px-3 py-2.5 sm:gap-3 sm:px-3.5 sm:py-3",style:{backgroundColor:F,borderTop:e.key||l>0?`1px solid ${y.border}`:void 0},children:[(0,c.jsxs)("div",{className:"min-w-0 flex-1 flex items-start gap-2",children:[$r(o,d,e.key),(0,c.jsx)(qr,{prop:o,colors:y,componentById:f??void 0,renderTeamLogo:d,textClass:"text-sm leading-snug break-words",textColor:N})]}),(0,c.jsxs)("div",{className:"flex items-center gap-1.5 flex-shrink-0 sm:gap-2",children:[u?(0,c.jsx)(De,{theme:g,size:"sm",value:a?"yes":i?"no":null,onYes:e=>{e.stopPropagation(),n(o.id,"yes")},onNo:e=>{e.stopPropagation(),n(o.id,"no")}}):s&&(0,c.jsx)(Ee,{theme:g,value:"yes"===s?"yes":"no",size:"sm"}),(0,c.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),n(o.id,t[o.id]),r()},onMouseEnter:()=>A(o.id),onMouseLeave:()=>A(null),className:"w-6 h-6 flex-shrink-0 flex items-center justify-center rounded-full transition-colors",style:{color:B===o.id?y.error:y.textAltMuted??y.textMuted,cursor:"pointer",backgroundColor:"transparent"},title:"Remove selection","aria-label":"Remove selection",children:(0,c.jsx)("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",strokeWidth:"2.5",viewBox:"0 0 24 24",children:(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})]},o.id)})]},e.key??`solo-${e.props[0].id}`))}))]}),(0,c.jsx)("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:b,borderColor:y.border,boxShadow:O(g)},children:(0,c.jsxs)("div",{className:"flex justify-between text-sm",children:[(0,c.jsx)("span",{style:{color:y.textMuted},children:"Total Selections"}),(0,c.jsx)("span",{className:"font-semibold",style:{color:y.text},children:L.length})]})}),!i&&(0,c.jsxs)("div",{className:"sticky bottom-0 z-10 -mx-4 sm:-mx-6 px-4 sm:px-6 py-3 sm:py-4 border-t flex items-center justify-between gap-3",style:{borderColor:y.border,backgroundColor:y.background},children:[(0,c.jsx)(Pe,{theme:g,variant:"secondary",onPress:r,children:"Back"}),(0,c.jsx)(Pe,{theme:g,variant:"primary",disabled:0===L.length,onPress:o,children:"Place bet"})]})]})},exports.SelectionVariantList=Wr,exports.SelectionsPage=function({onNext:e,onBack:t,hideTitle:n,hideActions:o,defaultView:r="list",view:l,onViewChange:a,hideViewSwitch:i,onSwipeDragStateChange:d,className:u=""}){const m=wr(),{selectedRule:p}=m,{theme:h,bodyFont:f,selectedGame:x,propositions:g,selections:y,toggleSelection:b,loading:w,error:k,renderTeamLogo:v,filterSport:N,initialSport:C,gameCategory:F,selectedPropositionCount:B,handlePropositionCountChange:A,goToConfirmation:M,goBack:S,selectedCategory:L,setSelectedCategory:z,selectedSport:P,selectedEventId:T,propositionsForCategoryPicker:O,answeredCount:D}=m;h.colors;const[E,j]=s.default.useState(r),Y=l??E,H=s.default.useCallback(e=>{void 0===l&&j(e),a?.(e)},[l,a]);s.default.useEffect(()=>{x||(m.goToSportSelection(),t?.())},[x,m,t]);const R=s.default.useMemo(()=>{if(!x)return null;const{min:e,max:t}=Ft(x,B??void 0,p);if(e>0&&e===t)return e;const n=ur(x);return null!=B&&B>0&&("game_set"===n||"pick_your_dividend"===n||"safety_net"===n||mr(x))?B:null},[x,B]),G=s.default.useRef(D);s.default.useEffect(()=>{const t=G.current;G.current=D,null!=R&&t<R&&D===R&&(M(),e?.())},[D,R]);const W=s.default.useMemo(()=>vt(O??[]),[O]);if(s.default.useEffect(()=>{x&&1===W.length&&L!==W[0]&&z(W[0])},[x,W,L,z]),!x)return null;const I=W.length>1&&!L,U=!I&&bn(x)&&!T,$=(()=>{if(!bn(x)||!T)return x;const e=Math.min(x.max_propositions??g.length,g.length);return{...x,max_propositions:e,allowed_propositions:x.allowed_propositions?.filter(t=>t<=e)}})(),K=()=>{S(),t?.()};return(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${u}`,style:{fontFamily:f},children:[!n&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(Ml,{onBack:o?K:void 0,onNext:o?e:void 0,hideActions:o})}),!bn(x)&&(0,c.jsx)(el,{}),(0,c.jsx)("div",{className:"flex-1",children:I?(0,c.jsx)(sl,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>z(e)}):U?(0,c.jsx)(cl,{}):"swipe"===Y?(0,c.jsx)(Tr,{onBack:K,onNext:e,viewSwitch:i?void 0:(0,c.jsx)(zl,{view:Y,onChange:H}),onDragStateChange:d}):(0,c.jsx)(Vr,{game:$,propositions:g,selections:y,onToggleSelection:b,onNext:()=>{M(),e?.()},onBack:K,loading:w,error:k,theme:h,hideActions:!0,initialSport:N??C,renderTeamLogo:v,disableQuickPick:!0,selectedPropositionCount:B,onPropositionCountChange:A,gameCategory:F,headerExtra:i?void 0:(0,c.jsx)(zl,{view:Y,onChange:H})})}),!o&&!I&&!U&&(0,c.jsx)("div",{className:"mt-6",children:(0,c.jsx)(Ll,{onNext:e,onBack:t})})]})},exports.SelectionsPageActions=Ll,exports.SelectionsPageTitle=Ml,exports.SixAgainPage=ls,exports.SixAgainPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=wr(),l=fe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"Set your play"}),(0,c.jsx)(ol,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.SportPickerPage=function({onSelectSport:e,onCancel:t,hideTitle:n,hideActions:o,renderSportLogo:r,renderSportTagline:l,backLabel:a,comingSoonSports:i,className:d=""}){const{theme:u,propositionsForSportPicker:m,sportSummaries:p,loading:h,setSelectedSport:f,clearSelectedGame:x,selectedCategory:g,sportBaseKey:y,displaySportName:b}=wr(),w=u.colors,k=K(u),v=he(u),N=fe(u),C=j(u),F=xt(m),B=Object.keys(F),[A,S]=s.default.useState(!1),L=s.default.useRef(null),z=s.default.useCallback(e=>{if(L.current?.disconnect(),L.current=null,!e)return;const t=()=>S(e.clientWidth<440);t(),"undefined"!=typeof ResizeObserver&&(L.current=new ResizeObserver(t),L.current.observe(e))},[]);return h?(0,c.jsx)(xn,{colors:V(u),bodyFont:v,className:d,variant:"sport",categoryCount:B.length>0?B.length:2}):(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${d}`,style:{fontFamily:v},children:[!n&&(0,c.jsx)("div",{className:"mb-2",children:(0,c.jsx)(Yl,{onBack:t,hideActions:o,backLabel:a})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsxs)("div",{ref:z,className:"grid gap-3 "+(A?"grid-cols-1":"grid-cols-2"),children:[B.map(t=>{const n=p.find(e=>e.key===t),o=n?.active_props??F[t].length,s=l?.(t,o)??(n?`${a=n.games_today} game${1===a?"":"s"} today · ${i=n.active_props} pick${1===i?"":"s"} available`:function(e,t){return 0===e?"racing"===t?"No races today":"casino"===t?"No games today":"No picks available":"racing"===t?`${e} race${1===e?"":"s"} today`:"casino"===t?`${e} game${1===e?"":"s"} available`:`${e} pick${1===e?"":"s"} available`}(o,g));var a,i;const d=b(t),m=n?n.games_today>0:o>0;return(0,c.jsxs)("button",{type:"button",onClick:()=>{f(t),x(),e?.(t)},className:"group flex w-full min-w-0 items-center gap-3 rounded-2xl border px-3 py-3 text-left transition-all hover:-translate-y-0.5 active:translate-y-0 sm:gap-3.5 sm:px-4 sm:py-4",style:{backgroundColor:k,borderColor:w.border,boxShadow:O(u),cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=w.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=w.border},children:[r?(0,c.jsx)("span",{className:"shrink-0",children:r(t)}):(0,c.jsx)(hl,{gameKey:t,size:48,footer:null,sportBaseKey:y,title:`${d} button`,className:"h-10 w-10 shrink-0 sm:h-12 sm:w-12"}),(0,c.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,c.jsx)("span",{className:"max-w-full truncate text-sm font-extrabold leading-tight tracking-tight sm:text-base",style:{color:C,fontFamily:N},children:d}),(0,c.jsxs)("span",{className:"mt-1 flex max-w-full items-center gap-1.5 text-[0.58rem] font-bold uppercase tracking-[0.12em]",style:{color:w.primary},children:[m&&(0,c.jsx)("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full",style:{backgroundColor:w.success}}),(0,c.jsx)("span",{className:"truncate",children:s})]})]}),(0,c.jsx)(Ze,{size:20,color:w.textMuted,className:"shrink-0 transition-transform group-hover:translate-x-0.5"})]},t)}),i?.map(e=>{const{game:t,league:n}=function(e,t){const n=e.match(/^(.*?)\s*\(([^)]+)\)\s*$/);return n?{game:n[1].trim(),league:n[2].trim()}:{game:e,league:t}}(e.label,e.short??ct(e.key,y));return(0,c.jsxs)("div",{className:"flex w-full min-w-0 items-center gap-3 rounded-2xl border px-3 py-3 text-left sm:gap-3.5 sm:px-4 sm:py-4",style:{backgroundColor:M(w.backgroundAlt,.4),borderColor:M(w.border,.7)},children:[(0,c.jsx)("div",{className:"shrink-0",style:{opacity:.6,filter:"grayscale(1)"},children:r?r(e.key):(0,c.jsx)(hl,{gameKey:e.key,short:e.short,size:48,footer:null,sportBaseKey:y,title:`${e.label} button`,className:"h-10 w-10 shrink-0 sm:h-12 sm:w-12"})}),(0,c.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,c.jsxs)("span",{className:"max-w-full truncate text-sm font-extrabold leading-tight tracking-tight sm:text-base",style:{color:w.textMuted,fontFamily:N},children:[t,n&&n!==t?(0,c.jsxs)("span",{className:"font-bold",children:[" · ",n]}):null]}),(0,c.jsx)("span",{className:"mt-1 max-w-full truncate text-[0.58rem] font-bold uppercase tracking-[0.12em]",style:{color:w.textMuted},children:(o=e.seasonStart,o?`Starts ${o}`:"Coming soon")})]}),(0,c.jsxs)("span",{className:"inline-flex shrink-0 items-center gap-1 rounded-full px-2 py-1 text-[10px] font-semibold uppercase tracking-[0.1em]",style:{backgroundColor:w.backgroundAlt,color:w.textMuted},children:[(0,c.jsx)(qe,{size:12,color:w.textMuted}),"Soon"]})]},e.key);var o})]})})]})},exports.SportPickerPageActions=function({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=wr(),r=n.colors;return e&&"mobile"!==o?(0,c.jsx)("div",{className:`flex items-center pt-4 ${t}`,children:(0,c.jsx)("button",{type:"button",onClick:e,className:"px-5 py-2.5 rounded-lg text-sm font-medium transition-colors",style:{color:r.buttonSecondaryText,backgroundColor:r.buttonSecondary,cursor:"pointer"},children:"Cancel"})}):null},exports.SportPickerPageTitle=Yl,exports.SportRail=yl,exports.StarIcon=Ve,exports.SuccessPage=function({onPlayAgain:e,onDone:t,onBack:n,onShare:o,hideTitle:r,hideActions:l,className:a=""}){const i=wr(),{theme:d,bodyFont:u,headingFont:m,selectedGame:p,placedEntry:h,betAmount:f,selectedPropositionIds:x,selectedPropositions:g,selections:y,payouts:b,onShare:w}=i,k=d.colors,v=K(d),N=k.textAlt??k.text,C=h?.proposition_ids?h.proposition_ids.length:x.length,F=b[C]??null,B=s.default.useRef(!1);return s.default.useEffect(()=>{h&&p?B.current=!1:(i.goToSportSelection(),B.current||(B.current=!0,e?e():t?.()))},[h,p,i,e,t]),h?(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${a}`,style:{fontFamily:u},children:[!r&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(El,{onBack:n,hideActions:l})}),(0,c.jsxs)("div",{className:"flex-1 space-y-3 sm:space-y-4",children:[(0,c.jsxs)("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:v,borderColor:k.border,boxShadow:O(d)},children:[(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 mb-3",children:[(()=>{const e=p?p.allowed_propositions&&p.allowed_propositions.length>0&&p.game_name.replace(/\s+\d+\s*$/,"").trim()||p.game_name:"Entry summary";return p?(0,c.jsx)("div",{className:"min-w-0 flex-1",children:(0,c.jsx)(Qr,{iconUrl:ve(p),gameName:e,height:18,chipColor:k.primary,textColor:k.text,iconColor:k.primaryText,accentColor:d.brand?.accent})}):(0,c.jsx)("h3",{className:"text-sm sm:text-base font-semibold min-w-0 flex-1 truncate",style:{color:j(d),fontFamily:m},children:e})})(),(0,c.jsxs)("span",{className:"text-xs font-semibold px-2 py-0.5 rounded-full flex-shrink-0",style:{color:k.primary,backgroundColor:`${k.primary}15`},children:[C," pick",1!==C?"s":""]})]}),(0,c.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"text-[10px] uppercase tracking-wide font-semibold",style:{color:k.textMuted},children:"Selections"}),(0,c.jsx)("div",{className:"text-sm font-semibold mt-0.5",style:{color:N},children:C})]}),f>0&&(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"text-[10px] uppercase tracking-wide font-semibold",style:{color:k.textMuted},children:"Wager"}),(0,c.jsx)("div",{className:"text-sm font-semibold mt-0.5",style:{color:N},children:ht(f)})]}),null!=F&&F>0&&(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"text-[10px] uppercase tracking-wide font-semibold",style:{color:k.textMuted},children:"Potential win"}),(0,c.jsx)("div",{className:"text-sm font-bold mt-0.5",style:{color:k.heading??k.text},children:ht(F)})]})]})]}),g.length>0&&(0,c.jsxs)("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:v,borderColor:k.border,boxShadow:O(d)},children:[(0,c.jsx)("h4",{className:"text-sm sm:text-base font-semibold mb-2",style:{color:j(d),fontFamily:m},children:"Your picks"}),(0,c.jsx)("div",{className:"space-y-1.5",children:g.map((e,t)=>{const n=y?.[e.id],o="yes"===n;return(0,c.jsxs)("div",{className:"flex items-center gap-2 py-2 px-3 rounded",style:{backgroundColor:k.backgroundAlt},children:[(0,c.jsx)("span",{className:"flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-[10px] font-bold",style:{backgroundColor:k.primary,color:k.primaryText},children:t+1}),(0,c.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,c.jsxs)("p",{className:"text-xs sm:text-sm font-medium truncate",style:{color:N},children:[!wt(e)&&(0,c.jsxs)(c.Fragment,{children:[e.home_team," ",(0,c.jsx)("span",{style:{color:k.textMuted},children:"vs"})," "]}),e.away_team]}),(0,c.jsx)("p",{className:"text-[11px] truncate",style:{color:k.textMuted},children:e.description})]}),null!=n&&(0,c.jsx)(Ee,{theme:d,value:o?"yes":"no",size:"sm",style:{flexShrink:0}})]},e.id)})})]})]})]}):null},exports.SuccessPageActions=function({onPlayAgain:e,onDone:t,onShare:n,className:o=""}){const{theme:r,reset:l,placedEntry:s,selectedGame:a,selectedPropositions:i,selections:d,betAmount:u}=wr();return r.colors,(0,c.jsxs)("div",{className:`flex items-center justify-between pt-4 ${o}`,children:[(0,c.jsx)(Pe,{theme:r,variant:"secondary",onPress:()=>{l(),e?.()},children:"Place Another"}),t&&(0,c.jsx)(Pe,{theme:r,variant:"primary",onPress:t,children:"Done"})]})},exports.SuccessPageTitle=El,exports.SwipeCard=zr,exports.SwipeCardFace=Pr,exports.SwipeDeck=Tr,exports.VISIBLE_DEPTH=3,exports.YesNoCategoryLabel=Ue,exports.applyTheme=xe,exports.availableGameTierTabs=Pn,exports.contrastTextColour=function(e,t="#ffffff",n="#1a1a1a"){if(!e)return n;const o=function(e){const t=e.trim().toLowerCase(),n=t.match(/^#([0-9a-f]{3,8})$/);if(n){let e=n[1];return 3!==e.length&&4!==e.length||(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}const o=t.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);return o?[Number(o[1]),Number(o[2]),Number(o[3])]:null}(e);if(!o)return n;const[r,l,s]=o.map(e=>{const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)});return.2126*r+.7152*l+.0722*s>.4?n:t},exports.darkTheme=ee,exports.defaultGameTierId=Tn,exports.defaultTheme=J,exports.defaultThemeSet=se,exports.filterGamesByTierLevel=zn,exports.filterPropositionsToEvent=Bn,exports.formatCurrency=ht,exports.formatDate=ft,exports.formatSameGameMultiEventLabel=gn,exports.fullStackPrize=or,exports.gameNeedsRuleSetup=ao,exports.gameSetPrize=Xo,exports.getConfirmBoostCopy=hr,exports.getGameFlow=ur,exports.getGameSetBetConfig=Qo,exports.getJackpotInfo=Bt,exports.getLadderConfig=rr,exports.getMirrorConfig=Rn,exports.getPickYourDividendConfig=fo,exports.getPropositionEventId=wn,exports.getRuleSetupConfig=so,exports.getSafetyNetConfig=no,exports.getSafetyNetPricing=Zn,exports.getSixAgainConfig=dr,exports.getSportDisplayName=Mt,exports.getTheme=de,exports.getThemeSet=function(e){return{default:se,green:ae,gold:ie,yesno:ce}[e]||se},exports.goldLightTheme=oe,exports.goldTheme=te,exports.goldThemeSet=ie,exports.greenLightTheme=ne,exports.greenTheme=_,exports.greenThemeSet=ae,exports.groupPropositionsBySport=xt,exports.groupSameGameMultiEvents=kn,exports.groupSelectionDays=Rr,exports.isFixedCardExactGame=mr,exports.isGameSetBetGame=Vo,exports.isLadderGame=er,exports.isMirrorGame=Yn,exports.isOpenExactMultiGame=pr,exports.isPickYourDividendGame=uo,exports.isSafetyNetGame=Kn,exports.isSameGameMultiGame=bn,exports.isSelectableSameGameMultiProposition=Fn,exports.isSixAgainGame=lr,exports.isThemeSet=Q,exports.isValidSelectionCount=Ct,exports.ladderCollectAt=function(e,t,n){return tr(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)},exports.ladderTiers=nr,exports.mirrorPrize=Hn,exports.propositionsBelongToEvent=An,exports.pydLadder=ho,exports.pydRung=po,exports.resolveCategoryDisplayName=Lt,exports.resolveGameTierLevel=Ln,exports.resolvePrice=function(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0},exports.resolveSportDisplayName=St,exports.resolveTheme=X,exports.roundDividendAmount=qn,exports.safetyNetCollect=Qn,exports.safetyNetTicket=Xn,exports.sixAgainRuleId=ir,exports.sixAgainStakeMultiples=function(e,t){const n=ar(1,e,t);return{perfect:n.perfect/n.stake,challenge:n.challenge/n.stake}},exports.sixAgainTicket=ar,exports.themeAccent=W,exports.themeBodyFont=he,exports.themeHeading=j,exports.themeHeadingFont=fe,exports.themeLabel=Y,exports.themeSets=me,exports.themeTextAlt=U,exports.themeTextAltMuted=$,exports.themeValue=H,exports.themes=ue,exports.useBladeTheme=function(e="default"){const t=de(e);return(0,s.useEffect)(()=>{xe(t)},[t]),t},exports.useCalculatePayout=function(e){const[t,n]=(0,s.useState)(!1),[o,r]=(0,s.useState)(null),[l,a]=(0,s.useState)(null);return{calculate:(0,s.useCallback)(async(t,o)=>{try{n(!0),r(null);const l=await e.calculatePayout(t,o);return a(l),l}catch(l){const e=l instanceof Error?l.message:"Failed to calculate payout";throw r(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:o,result:l}},exports.useCreateGameEntry=Uo,exports.useEntryPreview=Ko,exports.useEvaluateRule=function(e){const[t,n]=(0,s.useState)(!1),[o,r]=(0,s.useState)(null),[l,a]=(0,s.useState)(null);return{evaluate:(0,s.useCallback)(async(t,o)=>{try{n(!0),r(null);const l=await e.evaluateRule(t,o);return a(l),l}catch(l){const e=l instanceof Error?l.message:"Failed to evaluate rule";throw r(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:o,result:l}},exports.useGameEntries=Wo,exports.useGameMaxPayouts=Io,exports.useGames=Ho,exports.usePlaceEntry=wr,exports.usePlaceEntryFlow=$o,exports.usePropositions=Ro,exports.useResolvedTheme=pe,exports.useSports=Go,exports.useSwipeDeck=Nr;
|