@simple-parlay/components 1.30.6-pre.5 → 1.30.6-pre.6
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 +277 -277
- package/dist/react/components/ScrollShelf.d.ts +5 -1
- package/dist/react/components/SportRail.d.ts +13 -3
- package/dist/react/index.js +1 -1
- package/dist/react/index.mjs +277 -277
- package/dist/react-native/components/ScrollShelf.d.ts +8 -1
- package/dist/react-native/components/SportRail.d.ts +8 -4
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.mjs +369 -369
- package/dist/shared/picker-brand.d.ts +20 -0
- package/dist/shared/selection-actions.d.ts +2 -2
- package/dist/shared/selection-caps.d.ts +4 -0
- package/dist/shared/types.d.ts +6 -1
- package/package.json +1 -1
package/dist/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 a=require("react");var s,i;i=null!=(s=a)?e(r(s)):{},a=((e,r,a,s)=>{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:!(s=n(r,i))||s.enumerable});return e})(t(i,"default",{value:s,enumerable:!0}),s);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%2Bqy605xddtI4mIDJ3zYTZgY8ADWwHrALObhmqvycC9wLVAAv6cU5xkG8lG3xevzocLgR2sc7TohznF7a1D9BLnw8V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3Y%2BrEMpxLZFM2YG8iLlPrsop3i7dZhOUPEqIiJ9L6d4M3Cz82E08Gng88D7gdktc9XAq8C1wJVAyim%2BaBtHZMj2Aj4ILGYdRAYvp3gXMNr5sD%2FgKYXsh1EtA6W7%2B28p67uvzClOsI3TWXrARUREKlVxdj5wvvNhMeAzlGJ2U2Auy2xd9BxwFfAL4Lc5xfHGeUSGLaf4gvNhD%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%2BR8OBjYv3QdIiIiE9VkkzUT7XkkW6aTAkREpBeaPiB6qfNhRsOZ0hHOh1cCB5euQ0REZBiabrJ2pN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uLap%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=[],a=()=>{0!==l.length&&(o+=p([...l]),l.length=0)};for(;null!==(n=t.exec(e));){o+=e.slice(r,n.index);const s=n[1].replace(/<br\s*\/?>/gi,"\n").trim().split("\n").map(e=>e.trim()).filter(Boolean).map(e=>m(e));s.length>0&&s.every(e=>null!==e)?l.push(...s):(a(),o+=n[0]),r=t.lastIndex}return a(),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=[]},a=()=>{r.length>0&&(n.push({type:"list",items:[...r]}),r=[])};for(const s of t){const e=s.trim();if(!e){a(),l();continue}const t=e.match(v);if(t){a(),l(),n.push({type:"heading",level:Math.min(t[1].length,3),text:t[2].trim()});continue}if(C.test(e)){a(),l(),n.push({type:"hr"});continue}const i=e.match(N);i?(l(),r.push(i[1].trim())):(a(),o.push(e))}return a(),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"}},ae={light:J,dark:ee},se={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:ae,green:se,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),a=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:a(e.detail)})),demoLegs:Be.slice(0,l),demoPrompt:a(n.demoPrompt).replace(/\{n1\}/g,Ae[l-1]??String(l-1)).replace(/\{n\}/g,Ae[l]??String(l))}}function Pe(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function Te(e){return(e.description??e.proposition??"").trim()}var Oe={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function De(e){return"composite_and"===(t=Pe(e))||"composite_or"===t;var t}function Ee(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 je(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 Ye(e,t){if(!De(e))return null;const n=function(e){return De(e)?("composite_and"===(t=Pe(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=Ee(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:Te(o),eventLabel:je(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(Oe[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(Te(e),n);return r?{operator:n,legs:r.map(e=>({text:e,eventLabel:null,prop:null}))}:null}var He="#0F4C5C",Re="#7B9DA5",Ge={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",prediction:"PRD",roulette:"RLT",dice:"DCE",cointrio:"CT3"},We={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner",prediction:"Call the outcome"};function Ie(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=Ge[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 Ue(e,t){const n=t>0?Math.floor(t/68):e;return Math.max(2,Math.min(Math.ceil(e/2),n))}function $e(e){return!!e.is_composite_component||!!(t=Pe(e))&&t.startsWith("co_");var t}function Ke(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function Ze(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}var qe={yes:"Yes",no:"No"};function Ve(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 Xe(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 Qe(e){return e.reduce((t,n)=>{const o=Je(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function Je(e,t){if(e.sport)return e.sport;if(De(e)&&t)for(const n of Ee(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var _e=["sports","casino","racing","prediction"];function et(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=(Pe(e)??"").toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"prediction"===t||n.startsWith("prediction")?"prediction":"sports"}function tt(e){return"racing"===et(e)}function nt(e){const t={};for(const n of e){const e=et(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function ot(e){const t=nt(e);return _e.filter(e=>(t[e]?.length??0)>0)}function rt(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";case"prediction":return"Choose a Market";default:return"Choose a Sport"}}function lt(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 a=e.min_propositions??e.num_propositions??0,s=e.max_propositions??e.num_propositions??0;return{min:null!=o?Math.max(a,o):a,max:null!=r&&s>0?Math.min(s,r):r??s}}function st(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 it(e,t,n){return"racing"===e||!(!t?.length||!t.every(tt))||!!n&&Boolean(t?.some(e=>e.sport===n||(e.sport||"").startsWith(`${n}_`)))}function ct(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 dt(e,t,n){const o=t?.[e];return o||ct(e,n)}function ut(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 mt(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 ht(e,t,n){return!t||!!e&&(pt(e,t,n)||pt(t,e,n))}function ft(e,t){return t.find(t=>t.id===e)}function xt(e,t){let n=e;return t?.category&&(n=n.filter(e=>et(e)===t.category)),t?.sport&&(n=n.filter(n=>De(n)?function(e,t,n,o){if(ht(e.sport,t,n))return!0;if(!o)return!1;for(const r of Ee(e)){const e=ft(r,o);if(e&&ht(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):ht(n.sport,t.sport,t.sportBaseKey))),n}function gt(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t||"prediction"===t?t:"sports"}(e)===t}function yt(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 bt(e,t,n){return!(n?.category&&!gt(e,n.category))&&!(n?.sport&&!yt(e,n.sport,n.sportBaseKey))&&xt(vt(t,e),n).length>0}function wt(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!gt(e,t.category)||t.sport&&!yt(e,t.sport,t.sportBaseKey))):e}function kt(e,t){if(e.sport||!De(e))return e;const n=Je(e,t);return"Other"===n?e:{...e,sport:n}}function vt(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(a=>{if($e(a))return!1;if(r)if(De(a)){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 Ee(e)){const e=ft(r,o);if(e?.sport&&t.some(t=>pt(e.sport,t,n)))return!0}return!1}(a,o,n,e))return!1}else if(!a.sport||!o.some(e=>pt(a.sport,e,n)))return!1;return!(l&&!function(e,t){const n=t.allowed_markets;if(!n||0===n.length)return!0;const o=Pe(e);return!!o&&n.includes(o)}(a,t))}).map(t=>kt(t,e)):e.filter(e=>!$e(e)).map(t=>kt(t,e))}function Nt(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 Ct=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function Ft(e,t,n){return it(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&&!t.away_team?t.home_team:`${t.home_team} vs ${t.away_team}`;return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e)}function Bt(e){const t=[];for(const n of e){const e=n.home_team&&n.away_team&&!tt(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 At(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}var Mt=(0,a.forwardRef)(function({theme:e,variant:t="primary",size:n="md",disabled:o,block:r,radius:l="md",onPress:s,onDoubleClick:i,type:d="button",className:u,style:m,children:p,ariaLabel:h},f){const x=T(e),g=e.colors,[y,b]=a.default.useState(!1),[w,k]=a.default.useState(!1),[v,N]=a.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:s,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})}),St=a.default.createContext(qe),Lt=St.Provider;function zt(){return a.default.useContext(St)}var Pt={xs:{padding:"3px 10px",fontSize:11},sm:{padding:"6px 14px",fontSize:13},md:{padding:"8px 18px",fontSize:14}};function Tt(e,t,n,o,r,l){const a=T(e);return{appearance:"none",padding:Pt[o].padding,borderRadius:a.radius.sm,fontSize:Pt[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 ${a.motion.durationFast}ms ${a.motion.easing}, color ${a.motion.durationFast}ms ${a.motion.easing}, border-color ${a.motion.durationFast}ms ${a.motion.easing}`,opacity:r?.5:1,...l?{flex:1}:null}}function Ot({theme:e,value:t,onYes:n,onNo:o,size:r="md",stretch:l,disabled:a,yesLabel:s,noLabel:i,className:d,style:u}){const m=zt();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:a,onClick:a?void 0:n,style:Tt(e,"yes"===t,R(e),r,a,l),children:s??m.yes}),(0,c.jsx)("button",{type:"button","aria-pressed":"no"===t,disabled:a,onClick:a?void 0:o,style:Tt(e,"no"===t,G(e),r,a,l),children:i??m.no})]})}function Dt({theme:e,value:t,size:n="md",style:o}){const r=T(e),l=zt();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?l.yes:l.no})}var Et=/\b(YES|NO)\b/,jt={verticalAlign:"-2px",margin:"0 1px"};function Yt(e,t,n){return e.split(Et).map((e,o)=>"YES"===e||"NO"===e?(0,c.jsx)(Dt,{theme:t,value:"YES"===e?"yes":"no",size:"sm",style:jt},`${n}-${o}`):(0,c.jsx)(a.default.Fragment,{children:e},`${n}-${o}`))}function Ht({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)(a.default.Fragment,{children:Yt(e,t,n)},n):(0,c.jsx)(Dt,{theme:t,value:e.tone,size:"sm",style:jt},n))})}function Rt({panel:e,theme:t,dividends:n,bodyFont:o,headingFont:r,className:l=""}){const s=t.colors,i=t.brand?.accent??s.primaryText,d=K(t),[u,m]=(0,a.useState)("learn"),[p,h]=(0,a.useState)(()=>e.demoLegs.map(()=>null)),[f,x]=(0,a.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?s.primary:"transparent",color:e?s.primaryText:s.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:s.border,backgroundColor:s.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)(Ht,{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(s.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:s.primary,color:i,fontFamily:r,boxShadow:`0 2px 0 ${M(s.primary,.35)}`},children:n+1}),(0,c.jsx)("b",{className:"block text-[14.5px] font-bold leading-snug",style:{color:s.primary,fontFamily:r},children:e.title}),(0,c.jsx)("span",{className:"text-[13px] leading-snug",style:{color:s.textMuted},children:Yt(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:s.primary,cursor:"pointer",fontFamily:r},children:"Try a quick demo →"})]}),"try"===u&&(0,c.jsxs)("div",{className:"overflow-hidden rounded-xl border",style:{borderColor:s.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:s.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?s.primary:M(s.border,.9),color:C?s.primaryText:s.textMuted,backgroundColor:C?s.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(s.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?s.success:s.error,color:"#fff",animation:"ynhtp-in .28s ease both",animationDelay:100*n+"ms"}:{border:`1.5px solid ${p[n]?s.primary:s.border}`,color:p[n]?s.primary:s.textMuted},children:f?o?"✓":"✗":n+1}),(0,c.jsx)("span",{className:"min-w-0 text-[13px] font-semibold leading-snug",style:{color:s.text},children:e.question})]}),f?(0,c.jsx)("span",{style:{animation:"ynhtp-in .28s ease both",animationDelay:100*n+"ms"},children:(0,c.jsx)(Dt,{theme:t,size:"sm",value:e.outcome})}):(0,c.jsx)(Ot,{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(s.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?s.successBg:s.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?s.successText:s.errorText,color:k.won?s.successText:s.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?s.successText:s.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:s.textMuted,cursor:"pointer"},children:"↺ Try again"})]}):(0,c.jsx)(Mt,{theme:t,size:"sm",block:!0,disabled:!b,onPress:()=>x(!0),children:"Run the demo"})})]})]})}function Gt({open:e,onClose:t,title:n="How to Play",content:o,panel:r,theme:l,extra:s,colors:i,bodyFont:d,headingFont:u}){const m=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!e)return;const n=e=>{"Escape"===e.key&&t()};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e,t]),(0,a.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)(Rt,{panel:r,theme:l,dividends:s,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})}),s&&(0,c.jsx)("div",{className:"px-4 sm:px-6 pb-5",children:s})]})}),(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 Wt({content:e,panel:t,theme:n,extra:o,title:r,label:l="How to Play",variant:s="pill",colors:i,bodyFont:d,headingFont:u,className:m=""}){const[p,h]=a.default.useState(!1);return e?.trim()||t&&n||o?(0,c.jsxs)(c.Fragment,{children:["icon"===s?(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)(Gt,{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 It({label:e,category:t,icon:n,theme:o,disabled:r=!1}){const l=o.colors,a=fe(o),s=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:s,fontFamily:a},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)(Ut,{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 Ut({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 $t({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 Kt({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 Zt({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 qt({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 Vt({theme:e,itemCount:t=0,contentClassName:n="gap-2 px-0.5 py-0.5",className:o="",children:r}){const l=e.colors,s=(0,a.useRef)(null),[i,d]=(0,a.useState)(!1),[u,m]=(0,a.useState)(!1),[p,h]=(0,a.useState)(!1);(0,a.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,a.useCallback)(()=>{const e=s.current;if(!e)return;const t=e.scrollWidth-e.clientWidth;d(e.scrollLeft>2),m(e.scrollLeft<t-2)},[]);(0,a.useEffect)(()=>{f(),window.addEventListener("resize",f);const e=s.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=s.current;t&&t.scrollBy({left:e*Math.round(.7*t.clientWidth),behavior:"smooth"})},g=(0,a.useRef)({down:!1,lastX:0,travelled:0}),y=()=>{g.current.down=!1},b=(0,a.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)(Kt,{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)(Kt,{size:14})})}),(0,c.jsx)("div",{ref:s,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),s.current&&(s.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 Xt(e,t){return Array.isArray(e)?null==t?0===e.length:e.includes(t):t===e}function Qt(e,t,n,o){return{className:"flex-none whitespace-nowrap rounded-full px-2.5 py-1 text-[11px] font-bold tracking-[-0.01em] transition-colors active:translate-y-px",style:{fontFamily:o,border:`1px solid ${e?t.primary:t.border}`,backgroundColor:e?t.primary:n,color:e?t.primaryText:t.primary,cursor:"pointer"}}}var Jt="text-[9px] font-extrabold uppercase tracking-[0.12em]";function _t({groups:e,theme:t,bodyFont:n,className:o=""}){const r=t.colors,l=r.background??"#fff";return 0===e.length?null:(0,c.jsx)(Vt,{theme:t,itemCount:e.length,className:o,contentClassName:"items-center gap-1.5 px-0.5 py-0.5",children:t=>e.map((e,o)=>(0,c.jsxs)(a.default.Fragment,{children:[o>0&&(0,c.jsx)("span",{"aria-hidden":!0,className:"h-4 w-px flex-none self-center",style:{backgroundColor:r.border}}),e.label&&(0,c.jsx)("span",{className:`flex-none self-center ${Jt}`,style:{color:r.textMuted,fontFamily:n},children:e.label}),e.options.map(o=>{const a=Xt(e.value,o.value);return(0,c.jsx)("button",{type:"button",onClick:()=>{t()||e.onChange(o.value)},...Qt(a,r,l,n),children:o.label},o.value??"__all")})]},e.label??o))})}function en({groups:e,theme:t,bodyFont:n,className:o=""}){const r=t.colors,l=r.background??"#fff";return 0===e.length?null:(0,c.jsx)("div",{className:`flex flex-col gap-2.5 ${o}`,children:e.map((e,t)=>(0,c.jsxs)("div",{className:"flex flex-col gap-1.5",children:[e.label&&(0,c.jsx)("span",{className:Jt,style:{color:r.textMuted,fontFamily:n},children:e.label}),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",children:e.options.map(t=>(0,c.jsx)("button",{type:"button",onClick:()=>e.onChange(t.value),...Qt(Xt(e.value,t.value),r,l,n),children:t.label},t.value??"__all"))})]},e.label??t))})}var tn=new Map,nn=new Map;function on(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 rn({iconUrl:e,width:t,height:n,iconColor:o,accentColor:r,ariaLabel:l,style:s}){const i=Ne(e),[d,u]=a.default.useState(()=>i??tn.get(e)??null);a.default.useEffect(()=>{const t=Ne(e);if(t)return void u(t);if(tn.has(e))return void u(tn.get(e));let n=!1;return function(e){const t=tn.get(e);if(void 0!==t)return Promise.resolve(t);const n=nn.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=>(tn.set(e,t),nn.delete(e),t)).catch(t=>{throw nn.delete(e),t});return nn.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,...s};return d?(0,c.jsx)("img",{src:on(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 ln({iconUrl:e,gameName:t,onPress:n,size:o=120,brandColor:r="#0F4C5C",cardColor:l="#DDD9D2",iconColor:a,accentColor:s,captionColor:i="#14687C",className:d,ariaLabel:u}){const m=(t||"").toUpperCase(),p=o/360,h=a??l,f=I(r,s,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)(rn,{iconUrl:e,width:"100%",height:"100%",iconColor:h,accentColor:f})})]});return n?(0,c.jsx)(an,{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 an({size:e,onPress:t,className:n,ariaLabel:o,renderInner:r}){const[l,s]=(0,a.useState)(!1),[i,d]=(0,a.useState)(!1),u=i?"scale(0.96)":"scale(1)";return(0,c.jsx)("button",{type:"button",onClick:t,"aria-label":o,className:n,onMouseEnter:()=>s(!0),onMouseLeave:()=>{s(!1),d(!1)},onMouseDown:()=>d(!0),onMouseUp:()=>d(!1),onTouchStart:()=>d(!0),onTouchEnd:()=>d(!1),onBlur:()=>{d(!1),s(!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 sn(e){return e.selectionCard??e.backgroundAlt}function cn({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 dn({color:e="#ffffff",size:t=18}){return(0,c.jsx)(cn,{color:e,size:t,label:"Loading"})}function un({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 mn({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 pn({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:sn(e),borderColor:e.border},children:[(0,c.jsx)(un,{color:e.textMuted,className:"h-5 w-[11rem] max-w-full"}),(0,c.jsx)(un,{color:e.textMuted,className:"h-3 w-24 max-w-[70%]"})]},n))})}function hn({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-2 py-3 sm:px-3 sm:py-4 w-full min-w-0",style:{backgroundColor:sn(e),borderColor:e.border},children:[(0,c.jsx)(un,{color:e.textMuted,className:"h-14 w-14 sm:h-16 sm:w-16 rounded-xl shrink-0"}),(0,c.jsxs)("div",{className:"flex w-full min-w-0 flex-col items-center gap-1.5",children:[(0,c.jsx)(un,{color:e.textMuted,className:"h-3.5 w-20 max-w-full"}),(0,c.jsx)(un,{color:e.textMuted,className:"h-2.5 w-12 max-w-[80%]"})]})]},n))})}function fn({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:sn(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)(un,{color:e.textMuted,className:"h-4 w-44 max-w-full"})}),(0,c.jsx)(un,{color:e.textMuted,className:"h-3 w-40 max-w-[80%] mt-2"})]}),(0,c.jsx)(un,{color:e.textMuted,className:"h-5 w-5 rounded shrink-0"})]},n))})}function xn({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:sn(e)},"aria-hidden":!0,children:[(0,c.jsx)(un,{color:e.textMuted,className:"rounded-2xl",style:{width:t,height:t}}),(0,c.jsx)(un,{color:e.textMuted,className:"h-3 w-11 mt-3"}),(0,c.jsx)(un,{color:e.textMuted,className:"h-5 w-36 max-w-[80%] mt-2"}),(0,c.jsx)(un,{color:e.textMuted,className:"h-3 w-48 max-w-[90%] mt-3"}),(0,c.jsx)(un,{color:e.textMuted,className:"h-3 w-40 max-w-[75%] mt-1.5"})]})}function gn({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)(un,{color:e.textMuted,className:"h-[38px] w-full rounded-full"},t))})}function yn({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)(gn,{colors:e}),(0,c.jsx)(xn,{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)(un,{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)(un,{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)(un,{color:e.textMuted,className:"h-[52px] w-[52px] rounded-2xl"}),(0,c.jsx)(un,{color:e.textMuted,className:"h-2.5 w-12"})]},n))})]})]})]})}function bn({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)(un,{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:sn(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)(un,{color:e.textMuted,className:"h-4 w-44 max-w-[80%]"}),(0,c.jsx)(un,{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)(un,{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)(un,{color:e.textMuted,className:"h-7 w-11 sm:h-8 sm:w-12 rounded-lg"}),(0,c.jsx)(un,{color:e.textMuted,className:"h-7 w-11 sm:h-8 sm:w-12 rounded-lg"})]})]},n))})]},o))})]})}function wn({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)(un,{color:e.textMuted,className:"h-3.5 w-[4.25rem]"}),(0,c.jsx)(un,{color:e.textMuted,className:"h-5 min-w-[1.25rem] w-5 rounded-full"})]},t))})}function kn({colors:e}){return(0,c.jsxs)("div",{className:"rounded-lg border overflow-hidden w-full",style:{borderColor:e.border,backgroundColor:sn(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)(un,{color:e.textMuted,className:"h-[18px] w-40 max-w-[75%]"}),(0,c.jsx)(un,{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)(un,{color:e.textMuted,className:"h-3.5 w-10"}),(0,c.jsx)(un,{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)(un,{color:e.textMuted,className:"h-3.5 w-[88%]"}),(0,c.jsx)(un,{color:e.textMuted,className:"h-3 w-[70%]"})]}),(0,c.jsx)(un,{color:e.textMuted,className:"h-5 w-10 rounded shrink-0"})]},t))})]})}function vn({colors:e,rows:t=2}){return(0,c.jsxs)("div",{className:"w-full flex flex-col","aria-hidden":!0,children:[(0,c.jsx)(wn,{colors:e}),(0,c.jsx)("div",{className:"space-y-3 w-full",children:Array.from({length:t}).map((t,n)=>(0,c.jsx)(kn,{colors:e},n))})]})}function Nn({colors:e,bodyFont:t,message:n,className:o="",variant:r="category",showLogoArea:l=!1,gameCardCount:a=3,categoryCount:s=2,showTierTabs:i=!1}){const d=(()=>{switch(r){case"sport":return(0,c.jsx)(hn,{colors:e,count:Math.max(s,2)});case"event":return(0,c.jsx)(fn,{colors:e});case"games":return(0,c.jsx)(yn,{colors:e,count:a,showTierTabs:i});case"propositions":return(0,c.jsx)(bn,{colors:e});case"entries":return(0,c.jsx)(vn,{colors:e,rows:2});default:return(0,c.jsx)(pn,{colors:e,count:s})}})(),u=n?.trim()||"Loading";return(0,c.jsx)(mn,{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 Cn(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function Fn(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function Bn(e){if(!e||e.quick_pick_only)return!1;const t=Fn(e.selection_scope);if("samegamemulti"===Fn(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(Fn);return n.includes("samegame")||n.includes("samegamemulti")}function An(e){return(e.eventId??e.event_id)?.trim()||null}function Mn(e){const t=new Map;for(const n of e){if(!Pn(n))continue;const e=An(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=Sn(o.homeTeam,n.home_team),o.awayTeam=Sn(o.awayTeam,n.away_team),o.sport=Sn(o.sport,n.sport),o.league=Sn(o.league,n.league),o.commenceTime=zn(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=Ln(e.commenceTime),o=Ln(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function Sn(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function Ln(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function zn(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=Ln(e),r=Ln(n);return r!==o?r<o?n:e:e.localeCompare(n)<=0?e:n}function Pn(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function Tn(e,t){return t?e.filter(e=>Pn(e)&&An(e)===t):[]}function On(e,t){return!!t&&e.length>0&&e.every(e=>Pn(e)&&An(e)===t)}var Dn={signature:1,premier:2,exclusive:3},En=[{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 jn(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function Yn(e,t){return e.filter(e=>jn(e)===t)}function Hn(e){const t=new Set(e.map(jn));return En.filter(e=>t.has(e.level))}function Rn(e){return Hn(e)[0]?.id??"signature"}var Gn=.21875;function Wn(e){return null==e||Math.abs(e-.21875)<5e-5?Gn:e}var In=[1,5,10,20,50],Un=[4,12];function $n(e){return(e??"").trim().toLowerCase()}var Kn={straight:"mirror",double:"double_mirror",triple:"triple_mirror"};function Zn(e){if(!e||e.quick_pick_only)return!1;const t=$n(e.rule);return Object.values(Kn).includes(t)}function qn(e){const t=$n(e?.rule);return Object.keys(Kn).find(e=>Kn[e]===t)??"straight"}function Vn(e){if(!Zn(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=Qn(qn(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),a=e.max_bet??null,s=In.filter(e=>e>=l&&(null===a||e<=a));return{variant:o,legOptions:r,defaultLegs:r.includes(8)?8:r[Math.floor(r.length/2)],defaultStake:Math.min(Math.max(20,l),a??20),minStake:l,maxStake:a,quickStakes:s,tagline:o.tagline,operatorMargin:Wn(e.operator_margin),perLegProbability:e.payout_structure?.per_leg_probability??.5}}var Xn=[{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 Qn(e){return Xn.find(t=>t.id===e)??Xn[0]}function Jn(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)}function _n(e,t,n,o){const r=Qn(e),l=t*(1-Wn(o?.operatorMargin)),a=Math.round(Math.pow(2,n)),s=[];let i=0;for(let c=0;c<r.depth;c++){const e=Jn(n,c),t=n-c===c?e:2*e;i+=t,s.push({distance:c,label:r.tierNames[c]??`Tier ${c+1}`,correctCounts:n-c===c?[c]:[n-c,c],prize:Math.round(l/r.depth*a/(2*e)),outcomes:t})}return{variant:r.id,legs:n,stake:t,tiers:s,totalOutcomes:a,winningOutcomes:i,oddsOneIn:Math.round(a/i*1e4)/1e4}}var eo=[4,12],to=[5,10,20,50];function no(e){return!!e&&!e.quick_pick_only&&"safety_net"===(e.rule??"").trim().toLowerCase()}function oo(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 ro(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)}function lo(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 ao(e,t,n,o){const r=Math.max(0,Math.min(n,t)),l=e*o.perfectMultiple*Math.pow(2,t-o.perfectBaseLegs),a=r>0?e*(1-o.margin)*o.nearMissBudgetFraction/r:0,s=Math.pow(1/o.perLegProbability,t),i=[];let c=lo(t,0);for(let d=1;d<=r;d+=1)c+=lo(t,d),i.push(ro(a*s/c,o.roundTo));return{legs:t,stake:e,allowedMisses:r,perfect:l,nearMiss:i,sweep:l+i.reduce((e,t)=>e+t,0)}}function so(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 io(e){return e.includes(8)?8:e[Math.floor(e.length/2)]}function co(e){return e.toLowerCase().replace(/[^a-z]+/g," ").trim()}function uo(e,t){const n=co(t);return e.permitted_rules?.find(e=>co(e.name??"").includes(n))??null}function mo(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 po(e){if(!no(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??eo[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??eo[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=uo(e,"Extra Shot"),l=uo(e,"Double Shot"),a=mo(o,r,4).filter(e=>e>1),s=mo(o,l,6).filter(e=>e>2);if(0===a.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:a,defaultLegs:io(a),ruleId:r?.id??null}],c=!e.permitted_rules?.length||!!l;s.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:s,defaultLegs:io(s),ruleId:l?.id??null});const d=Math.max(e.min_bet??5,.01),u=e.max_bet??null,m=to.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:oo(e)}}function ho(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function fo(e,t,n){const o=Math.max(0,e-t),r=ao(20,e,o,n),l=[];for(let a=0;a<=o;a+=1){const t=Math.round(so(r,a));l.push({misses:a,label:`${e-a}/${e}`,multiplier:t/20,payout20:t})}return l}function xo(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:fo(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:fo(e,e-2,t),expectedCorrect:e-2}]}function go(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:xo(t,oo(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:ho(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 yo(e){return null!=go(e)}var bo=[1,5,10,20,50,100],wo=[4,12];function ko(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function vo(e,t,n){const o=n?.operatorMargin??.2,r=n?.perLegProbability??.5,l=Math.round(Math.pow(1/r,t)),a=(1-o)*Math.pow(1/r,t);return{legs:t,stake:e,prize:Math.round(e*a*100)/100,multiple:a,oddsOneIn:l}}function No(e){if(!ko(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??wo[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??wo[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,a=bo.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:a,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 Co=[500,1e3,2500,5e3,7500,1e4,12500,15e3],Fo=[12,11,10,9,8,7,6];function Bo(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function Ao(e){return Math.round(100*e)/100}function Mo(e,t,n=.21875){const o=Math.pow(2,t),r=e/(1-n)/o,l=Number.isInteger(r),a=Ao(r),s=l?r:Ao(.96*r);return{legs:t,exactStake:a,stake:s,margin:1-e/(s*o),multiple:e/s,oddsOneIn:o,discounted:!l}}function So(e,t=Fo){return{dividend:e,rungs:t.map(t=>Mo(e,t))}}function Lo(e,t){if(!Bo(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,r=Fo.filter(e=>e>=n&&e<=o);if(0===r.length)return null;const l=t?.dividends??Co;return{dividends:l.map(e=>So(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."}}var zo=[25,50,75,100],Po=[{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 To(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function Oo(e,t){return Math.round(e*t/50)}function Do(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:Oo(o,t),cumulative:Oo(n,t)}))}function Eo(e,t){return Oo(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function jo(e){if(!To(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=Po.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??zo[0],a=e.max_bet??zo[zo.length-1],s=zo.filter(e=>e>=l&&e<=a);return{ladders:r,defaultLegs:r.some(e=>8===e.legs)?8:r[Math.floor(r.length/2)].legs,defaultStake:s.includes(50)?50:s[0]??50,stakes:s.length>0?s:zo,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}function Yo(e){return!!e&&!e.quick_pick_only&&"six_again"===(e.rule??"").trim().toLowerCase()}var Ho={golden_point:!1,captains_challenge:!1};function Ro(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:Go(t,n)}}function Go(e,t){return e.captains_challenge?e.golden_point?t.ruleIds.goldenChallenge:t.ruleIds.challenge:t.ruleIds.base}function Wo(e,t){return e.permitted_rules?.find(e=>t((e.name??"").toLowerCase().replace(/[^a-z]+/g," ").trim()))??null}function Io(e){if(!Yo(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=Wo(e,e=>e.includes("challenge")&&!e.includes("golden")),a=Wo(e,e=>e.includes("challenge")&&e.includes("golden")),s=Wo(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:s?.id??e.default_rule_id??null,challenge:l?.id??null,goldenChallenge:a?.id??null}}}function Uo(e){return e?.quick_pick_only?"quick_pick":ko(e)?"game_set":Bo(e)?"pick_your_dividend":To(e)?"ladder":Zn(e)?"mirror":no(e)?"safety_net":Yo(e)?"six_again":Bn(e)?"selections":yo(e)?"rule_setup":"selections"}function $o(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 Ko(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||Bn(e)||$o(e))}function Zo(e){switch(Uo(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 qo(e,t){return Vo(e)&&t&&t>0?t:null}function Vo(e){switch(Uo(e)){case"game_set":case"pick_your_dividend":case"ladder":case"mirror":case"safety_net":case"six_again":return!0;default:return $o(e)}}function Xo(e){const t=Uo(e);return"six_again"===t||"pick_your_dividend"===t}function Qo(e){return"six_again"===Uo(e)?"Set by your ticket and boosts.":"Set by your dividend ladder rung."}function Jo(e,t,n,o){if(!e||t<=0||n<=0)return 0;switch(Uo(e)){case"game_set":return _o(vo(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize,e);case"mirror":return _o(_n(qn(e),n,t,{operatorMargin:e.operator_margin??void 0}).tiers[0]?.prize??0,e);case"pick_your_dividend":return function(e,t,n=Co){if(!(e>0&&t>0))return 0;for(const o of n)if(Math.abs(Mo(o,e).stake-t)<.005)return o;return 0}(t,n);case"ladder":{const o=Po.find(e=>e.legs===t);return o?_o(Eo(o,n),e):0}case"safety_net":{const r=null!=o?.expectedCorrect&&o.expectedCorrect>0?Math.min(2,Math.max(0,t-o.expectedCorrect)):1;return _o(ao(n,t,r,oo(e)).sweep,e)}default:{if("exact"!==(e.rule??"").trim().toLowerCase())return 0;const o=function(e,t,n){const o=e.payout_structure;if(!o)return 0;const r=o.results??o.values;if(!r)return 0;const l=r[String(t)];return void 0!==l?l*n:0}(e,t,n);if(o>0)return _o(o,e);const r=e.payout_structure?.expression??e.payout_structure?.formula??"";return/2\s*\^/.test(r)?_o(vo(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize,e):0}}}function _o(e,t){return!1===t?.round_payouts?e:ro(e,t?.payout_structure?.round_to??1)}function er(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,a=n.length>0?n:l?At(o,r):[],s=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||s.set(e,{count:e,payout:Number.isFinite(t)?t:0,betAmount:Number.isFinite(n)&&n>0?n:20})}for(const f of a){const e=Number(f);s.has(e)||s.set(e,{count:e,payout:0,betAmount:20})}const i=Array.from(s.values()).sort((e,t)=>e.count-t.count),c=a.length>0?Math.max(...a.map(Number)):0,d=Bo(e)?Lo(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(t=>({count:t.count,payout20:t.payout>0&&t.betAmount>0?_o(t.payout/t.betAmount*20,e):Jo(e,t.count,20)})),p=go(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:a.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 tr({tiers:e,modes:t,pydDividends:n,onPlayCount:o,minBet:r=1,maxBet:l=null,colors:s,bodyFont:i,headingFont:d}){const u=e=>Math.min(Math.max(e,r),l??1/0),[m,p]=(0,a.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:s.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 ${s.border}`,backgroundColor:s.background??"#fff",color:s.text,fontSize:11,fontWeight:600,fontStyle:"normal",fontFamily:i}})]}),"bet",null!=l?` (${Ve(r)}–${Ve(l)})`:` (min ${Ve(r)})`,"."]}),w={marginTop:10,borderRadius:14,border:`1px solid ${s.border}`,backgroundColor:s.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:s.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 ${s.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:s.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:s.textMuted,fontSize:11,flex:1},children:[e.label," correct"]}),(0,c.jsx)("span",{style:{fontWeight:700,color:s.heading??s.text,fontSize:12},children:Ve(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 ${s.border}`},children:[(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:s.primary},children:"Dividend"}),(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:s.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:s.heading??s.text,fontSize:12},children:Ve(e.dividend)}),(0,c.jsx)("span",{style:{fontWeight:600,color:s.text,fontSize:12},children:Ve(e.stakeFrom)})]},e.dividend)),(0,c.jsx)("p",{className:"mt-2 text-[10px] italic",style:{color:s.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 ${s.border}`},children:[(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:s.primary},children:"Legs played"}),(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:s.primary},children:"Payout"})]}),e.map(e=>{const t=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{style:{fontWeight:600,color:o?s.primary:s.text,fontSize:12},children:[e.count," legs"]}),(0,c.jsx)("span",{style:{fontWeight:600,color:e.payout20>0?s.text:s.textMuted,fontSize:12},children:e.payout20>0?Ve(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 nr({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 or({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)(rn,{iconUrl:e,width:"100%",height:"100%",iconColor:o,accentColor:r})})]})}function rr({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:r,iconColor:l,accentColor:s,captionColor:i,bodyFont:u,legOptions:m,onPick:p,colors:h,menuShadow:f}){const[x,g]=(0,a.useState)(!1),[y,b]=(0,a.useState)(null),w=(0,a.useRef)(null),k=(0,a.useRef)(null);(0,a.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)(ln,{iconUrl:e,gameName:t,onPress:()=>g(e=>!e),size:n,brandColor:o,cardColor:r,iconColor:l,accentColor:s,captionColor:i}),v]})}function lr({games:e,selectedGame:t,onSelectGame:n,loading:o,error:r,theme:l,colorScheme:s,showTier:i=!1,showCategory:d=!1,showTierFilter:u=!1,onPropositionCountChange:m,onPropositionCountSelected:p,onQuickPickGame:h,maxPayouts:f}){const x=pe(l,s),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,a.useMemo)(()=>function(e){const t=new Set(e.filter(e=>Zn(e)&&$n(e.rule)===Kn.straight).map(jn));return e.filter(e=>!(Zn(e)&&$n(e.rule)!==Kn.straight&&t.has(jn(e))))}(e),[e]),B=(0,a.useMemo)(()=>Hn(F),[F]),[A,S]=(0,a.useState)(()=>Rn(F));(0,a.useEffect)(()=>{0!==B.length&&(B.some(e=>e.id===A)||S(B[0].id))},[B,A]);const L=(0,a.useMemo)(()=>!u||B.length<=1?F:Yn(F,Dn[A]),[F,u,B.length,A]),z=(0,a.useRef)(null),P=(0,a.useRef)(null),[T,E]=(0,a.useState)(0),[H,R]=(0,a.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,er(e,f?.[e.id]).maxLegCount)};(0,a.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,a.useRef)(()=>{}),$=(0,a.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,a=Math.abs(l.offsetLeft+l.offsetWidth/2-t);a<o&&(o=a,n=r)}),R(n)},e.addEventListener("scroll",U.current,{passive:!0}),U.current())},[]);(0,a.useEffect)(()=>{U.current()},[T,L.length]),(0,a.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)(Nn,{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)(nr,{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=Nt(e),o=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>Ct[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),a=st(e),s=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}=er(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)(rr,{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)(ln,{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)(Wt,{variant:"icon",panel:ze(e),content:s||"Pick outcomes and land the payout for this game.",theme:x,title:Z(e),label:`How to play ${Z(e)}`,extra:(0,c.jsx)(tr,{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}),s&&(0,c.jsx)("p",{className:"mt-2 leading-relaxed",style:{fontSize:12.5,color:g.textMuted,maxWidth:"34ch"},children:s}),a.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:["★ ",a.progressive?a.amount>0?Ve(a.amount):a.limit>0?`Up to ${Ve(a.limit)}`:"Jackpot":Ve(a.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(${Ue(L.length,T)}, minmax(0, 1fr))`},children:L.map((e,t)=>{const n=Nt(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)(or,{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 ar={today:"Today",weekend:"This weekend",next7:"Next 7 days"},sr=["today","weekend","next7"];function ir(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function cr(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:ir(n,1)};case"weekend":{const e=n.getDay(),t=ir(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:ir(t,2)}}case"next7":return{start:n,end:ir(n,7)}}}(t,n);return o>=r&&o<l}var dr=["totals","spread","player"],ur={totals:"Total",spread:"Spread",player:"Player"},mr={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 pr(e,t){return t?`${mr[e]} (taken)`:mr[e]}var hr=/racing|greyhound|harness|trots/,fr=["spread","handicap","margin","line","h2h","head_to_head","moneyline","winner","result"];function xr(e,t,n=""){const o=e.toLowerCase(),r=t.toLowerCase();return hr.test(o)||hr.test(n.toLowerCase())?null:o.includes("player")?"player":o.includes("total")||o.includes("over_under")?"totals":fr.some(e=>o.includes(e))||/\bwin(s)?\b/.test(r)?"spread":/\btotal\b/.test(r)?"totals":null}function gr(e){return xr(Pe(e)??"",Te(e),e.sport??"")}function yr(e,t){if(De(e)){const n=Ye(e,t),o=new Set;for(const t of n?.legs??[]){const n=t.prop?gr(t.prop):xr("",t.text,e.sport??"");n&&o.add(n)}return[...o]}const n=gr(e);return n?[n]:[]}function br(e){return An(e)||[e.home_team,e.away_team].filter(Boolean).join(" vs ").trim()||null}var wr=new Set;function kr(e,t,n){const o=new Map,r=new Map;for(const a of e){const e=br(a);if(!e)continue;const l=yr(a,n);if(l.length>0){const t=r.get(e)??new Set;for(const e of l)t.add(e);r.set(e,t)}if(a.id in t)for(const t of l){const n=o.get(e)??new Map;n.has(t)||n.set(t,a.id),o.set(e,n)}}const l=e=>{const t=e?o.get(e):void 0;return t?new Set(t.keys()):wr};return{isCapped:e=>{const t=br(e);if(!t)return!1;const r=o.get(t);return!!r&&yr(e,n).some(t=>{const n=r.get(t);return void 0!==n&&n!==e.id})},filledFor:l,slotsFor:e=>{const t=e?r.get(e):void 0;if(!t)return[];const n=l(e);return dr.filter(e=>t.has(e)).map(e=>({family:e,label:ur[e],filled:n.has(e)}))}}}function vr(e,t,n){const o=[],r=new Map;for(const l of e){if(o.length>=t)break;const e=br(l),a=e?yr(l,n):[];if(e&&a.length>0){const t=r.get(e)??new Set;if(a.some(e=>t.has(e)))continue;for(const e of a)t.add(e);r.set(e,t)}o.push(l)}return o}var Nr=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,a=l,s=!l&&!n?.idempotent,i=`${r} ${o}`;if(a){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=a?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 a&&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(a){const t=e.headers.get("ETag")??void 0;this.cache.set(i,{at:Date.now(),value:n,etag:t})}return n})();return a?(this.inflight.set(i,d),d.catch(()=>{}).finally(()=>{this.inflight.delete(i)})):s&&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,a]of Object.entries(o.payload||{}))r[Number(l)]=a;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 Cr(e,t,n){const[o,r]=(0,a.useState)([]),[l,s]=(0,a.useState)(null),[i,c]=(0,a.useState)(!n?.skip),[d,u]=(0,a.useState)(null),m=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",p=(0,a.useRef)(t);p.current=t;const h=n?.skip??!1,f=(0,a.useCallback)(async()=>{if(!h)try{c(!0),u(null);const t=await e.getGames(p.current);r(t.games),s(t.howToPlayMarkdown)}catch(t){u(t instanceof Error?t.message:"Failed to fetch games")}finally{c(!1)}},[e,m,h]);return(0,a.useEffect)(()=>{f()},[f]),{games:o,howToPlayMarkdown:l,loading:i,error:d,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await f()},[e,f])}}function Fr(e,t,n){const[o,r]=(0,a.useState)([]),[l,s]=(0,a.useState)(!n?.skip),[i,c]=(0,a.useState)(null),d=n?.skip??!1,u=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",m=(0,a.useRef)(t);m.current=t;const p=(0,a.useCallback)(async()=>{if(!d)try{s(!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{s(!1)}},[e,u,d]);return(0,a.useEffect)(()=>{p()},[p]),{propositions:o,loading:l,error:i,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await p()},[e,p])}}function Br(e,t){const[n,o]=(0,a.useState)([]),[r,l]=(0,a.useState)(!t?.skip),[s,i]=(0,a.useState)(null),c=t?.skip??!1,d=(0,a.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,a.useEffect)(()=>{d()},[d]),{sports:n,loading:r,error:s,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await d()},[e,d])}}function Ar(e,t,n){const[o,r]=(0,a.useState)([]),[l,s]=(0,a.useState)(!n?.skip),[i,c]=(0,a.useState)(null),d=n?.skip??!1,u=t?`${t.user_id??""}_${t.pending??""}`:"",m=(0,a.useRef)(t);m.current=t;const p=(0,a.useCallback)(async()=>{if(!d)try{s(!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{s(!1)}},[e,u,d]);return(0,a.useEffect)(()=>{p()},[p]),{entries:o,loading:l,error:i,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await p()},[e,p])}}function Mr(e,t,n){const[o,r]=(0,a.useState)({}),[l,s]=(0,a.useState)(!1),i=n?.skip??!1,c=n?.betAmount,d=(0,a.useRef)(new Set);return(0,a.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 s(!0),(async()=>{try{const t=await e.getGamesMaxPayouts(n.map(e=>e.id),c);l||r(e=>({...e,...t}))}catch{}finally{l||s(!1)}})(),()=>{l=!0}},[e,t.map(e=>e.id).join(","),i,c]),{maxPayouts:o,loading:l,refetchGame:(0,a.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 Sr(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[l,s]=(0,a.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 s(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,a.useCallback)(()=>r(null),[])}}function Lr(e){const[t,n]=(0,a.useState)(e?"sport":"game"),[o,r]=(0,a.useState)(null),[l,s]=(0,a.useState)({}),[i,c]=(0,a.useState)(null);return{step:t,selectedGame:o,selections:l,placedEntry:i,setGameOnly:e=>{o?.id!==e.id&&s({}),r(e)},clearSelectedGame:()=>{r(null),s({})},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),s({}))},reset:()=>{n("game"),r(null),s({}),c(null)},toggleSelection:(e,t)=>{s(n=>{const o={...n};return o[e]===t?delete o[e]:o[e]=t,o})}}}function zr(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[l,s]=(0,a.useState)(null);return{preview:(0,a.useCallback)(async(t,o)=>{try{n(!0),r(null);const l=await e.getEntryPreview(t,o);return s(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 Pr=(0,a.createContext)(null),Tr={};function Or(){const e=(0,a.useContext)(Pr);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function Dr({onPress:e,onDoubleClick:t,label:n="QUICKPICK",size:o="md",yesColor:r,noColor:l,theme:s}){const i=(0,a.useContext)(Pr),d=s??i?.theme??J,u=T(d),m=d.colors,p=zt(),h=r??R(d),f=l??G(d),x="sm"===o,g=x?u.space.xs:u.space.sm,y=x?6:8,b=x?u.fontSize.sm:u.fontSize.md,w=x?8.5:10,[k,v]=a.default.useState(!1),[N,C]=a.default.useState(!1);return(0,c.jsxs)("button",{type:"button",onClick:e,onDoubleClick:t,onMouseDown:()=>v(!0),onMouseUp:()=>v(!1),onMouseLeave:()=>v(!1),onFocus:e=>{e.target.matches(":focus-visible")&&C(!0)},onBlur:()=>C(!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:k?"scale(0.985)":"scale(1)",transition:`transform ${u.motion.durationFast}ms ${u.motion.easing}, box-shadow ${u.motion.durationFast}ms ${u.motion.easing}`,boxShadow:N?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:h,clipPath:"polygon(0 0, 53% 0, 47% 100%, 0 100%)"}}),(0,c.jsx)("span",{"aria-hidden":!0,style:{position:"absolute",inset:0,background:f,clipPath:"polygon(53% 0, 100% 0, 100% 100%, 47% 100%)"}}),(0,c.jsx)("span",{style:{position:"relative",flex:1,textAlign:"center",padding:`${y}px ${g}px`,color:"#ffffff",fontSize:b,fontWeight:600,letterSpacing:.2,whiteSpace:"nowrap"},children:p.yes}),(0,c.jsx)("span",{style:{position:"relative",flex:1,textAlign:"center",padding:`${y}px ${g}px`,color:"#ffffff",fontSize:b,fontWeight:600,letterSpacing:.2,whiteSpace:"nowrap"},children:p.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:w,letterSpacing:"0.14em",padding:"3px 0 4px",textAlign:"center",fontWeight:700,fontFamily:d.fonts?.mono??"inherit"},children:n})]})}function Er(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 jr(e,t,n,o){const[r,l]=(0,a.useState)([]),[s,i]=(0,a.useState)([]),[c,d]=(0,a.useState)([]),[u,m]=(0,a.useState)([]),[p,h]=(0,a.useState)(null),f=(0,a.useMemo)(()=>{const t=new Map;for(const n of e)t.set(n.id,n);return t},[e]),x=(0,a.useMemo)(()=>e.filter(e=>null!=t[e.id]),[e,t]),g=(0,a.useMemo)(()=>e.map(e=>e.id).join(","),[e]),y=(0,a.useRef)(null);(0,a.useEffect)(()=>()=>{y.current=null},[]),(0,a.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(Er(n,o).slice(0,3).map(e=>e.id)),d([]),m([]),h(null)},[g,e,t]);const b=(0,a.useMemo)(()=>o?new Set(e.filter(e=>o(e)).map(e=>e.id)):new Set,[e,o]),w=(0,a.useMemo)(()=>{const e=new Set(c);return[...Er(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,a.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,a.useMemo)(()=>s.map(e=>f.get(e)).filter(e=>Boolean(e)),[s,f]),v=(0,a.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,a.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 Yr={stiffness:420,damping:34},Hr={stiffness:280,damping:28},Rr="#00C853",Gr="#E53935";function Wr(e){return"up"===e?{x:0,y:-720}:{x:"right"===e?640:-640,y:70}}function Ir(e){return e<0?0:e>1?1:e}function Ur(e,t,n){return n&&-t>Math.abs(e)}function $r({prop:e,theme:t,depth:n=0,enterFrom:o,canSkip:r=!1,onResolve:l,registerApi:s,onDragStateChange:i,children:d}){const u=(0,a.useContext)(Pr),m=t??u?.theme??J,p=fe(m),h=zt(),f=m.colors.productYes??Rr,x=m.colors.productNo??Gr,g=(0,a.useRef)(null),y=(0,a.useRef)(null),b=(0,a.useRef)(null),w=(0,a.useRef)(null),k=0===n,v=(0,a.useRef)(!1),N=(0,a.useRef)({x:0,y:0}),C=(0,a.useRef)({x:0,y:0}),F=(0,a.useRef)(null),B=(0,a.useRef)(0),A=(0,a.useRef)(null),M=(0,a.useRef)(null),S=(0,a.useRef)(r);S.current=r;const L=(0,a.useRef)(i);L.current=i;const z=(0,a.useCallback)(()=>{const e=g.current;if(!e)return;const{x:t,y:n}=N.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=Ur(t,n,S.current);r(y.current,l?0:Ir((t-24)/108)),r(b.current,l?0:Ir((-t-24)/108)),r(w.current,l?Ir((-n-30)/90):0)},[]),P=(0,a.useCallback)(()=>{for(const e of[g.current,y.current,b.current,w.current])e&&(e.style.transition="none")},[]),T=(0,a.useCallback)(()=>{null!=A.current&&(cancelAnimationFrame(A.current),A.current=null)},[]),O=(0,a.useCallback)(e=>{T(),P();let t=null;const n=o=>{const r=Math.min(null==t?1/60:(o-t)/1e3,1/30);t=o;const l=N.current,a=C.current;if(a.x+=(-e.stiffness*l.x-e.damping*a.x)*r,a.y+=(-e.stiffness*l.y-e.damping*a.y)*r,l.x+=a.x*r,l.y+=a.y*r,Math.abs(l.x)<.5&&Math.abs(l.y)<.5&&Math.abs(a.x)<2&&Math.abs(a.y)<2)return l.x=0,l.y=0,a.x=0,a.y=0,z(),void(A.current=null);z(),A.current=requestAnimationFrame(n)};A.current=requestAnimationFrame(n)},[P,z,T]),D=(0,a.useCallback)(t=>{if(v.current)return;if("up"===t&&!S.current)return;v.current=!0,T();const n="right"===t?"yes":"left"===t?"no":null,o=Wr(t),r=g.current;r&&(r.style.transition="transform 260ms cubic-bezier(0.32, 0, 0.67, 0)");for(const e of[y.current,b.current,w.current])e&&(e.style.transition="opacity 260ms linear");N.current={...o},z(),M.current=setTimeout(()=>l(e.id,n),260)},[l,z,e.id,T]);(0,a.useEffect)(()=>()=>{M.current&&clearTimeout(M.current),null!=A.current&&cancelAnimationFrame(A.current),F.current&&L.current?.(!1)},[]),(0,a.useEffect)(()=>{if(!o)return T(),N.current={x:0,y:0},C.current={x:0,y:0},P(),void z();const e=Wr(o);N.current={x:e.x,y:e.y},C.current={x:0,y:0},P(),z(),O(Hr)},[o,P,z,O,T]),(0,a.useEffect)(()=>{if(k&&s)return s({fly:D}),()=>s(null)},[D,k,s]);const E="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:k?"auto":"none"},"aria-hidden":!k,children:(0,c.jsxs)("div",{ref:g,className:"relative w-full"+(k?" cursor-grab active:cursor-grabbing":""),style:{touchAction:"pan-y",willChange:"transform",userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none"},onPointerDown:e=>{if(k&&!v.current&&!F.current){T(),P(),F.current={pointerId:e.pointerId,originX:e.clientX,originY:e.clientY,baseX:N.current.x,baseY:N.current.y},C.current={x:0,y:0},B.current=e.timeStamp;try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}L.current?.(!0)}},onPointerMove:e=>{const t=F.current;if(!t||t.pointerId!==e.pointerId||v.current)return;const n=t.baseX+(e.clientX-t.originX),o=Math.min(t.baseY+(e.clientY-t.originY),0),r=e.timeStamp-B.current;if(r>0){const t=1-Math.exp(-r/40);C.current.x+=((n-N.current.x)/r*1e3-C.current.x)*t,C.current.y+=((o-N.current.y)/r*1e3-C.current.y)*t,B.current=e.timeStamp}N.current.x=n,N.current.y=o,z()},onPointerUp:e=>{const t=F.current;if(!t||t.pointerId!==e.pointerId)return;F.current=null,L.current?.(!1);try{e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}catch{}if(v.current)return;e.timeStamp-B.current>90&&(C.current={x:0,y:0});const n=N.current,o=C.current;if(Ur(n.x,n.y,S.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(Yr)},onPointerCancel:e=>{const t=F.current;t&&t.pointerId===e.pointerId&&(F.current=null,C.current={x:0,y:0},L.current?.(!1),v.current||O(Yr))},onDragStart:e=>e.preventDefault(),children:[d,k&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{ref:y,className:`${E} left-5`,style:{opacity:0,transform:"rotate(-12deg)",color:f,borderColor:f,fontFamily:p},children:h.yes}),(0,c.jsx)("div",{ref:b,className:`${E} right-5`,style:{opacity:0,transform:"rotate(12deg)",color:x,borderColor:x,fontFamily:p},children:h.no}),r&&(0,c.jsx)("div",{ref:w,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 Kr({prop:e}){const{theme:t,renderTeamLogo:n,renderPropositionSilk:o,displaySportName:r,gameCategory:l,compositeComponentById:a}=Or(),s=t.colors,i=fe(t),d=Ye(e,a),u=Pe(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)||ll(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:s.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:s.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:s.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:s.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:s.borderSubtle??s.border,color:s.textMuted},children:[e.sport&&(0,c.jsx)("span",{className:"rounded-full px-2 py-0.5 font-semibold uppercase tracking-wide",style:{backgroundColor:s.infoBg,color:s.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:Xe(e.commence_time)})]})]})}function Zr({onBack:e,onNext:t,viewSwitch:n,onDragStateChange:o,className:r=""}){const{theme:l,propositions:s,selections:i,toggleSelection:d,selectedGame:u,selectedPropositionCount:m,answeredCount:p,selectionValid:h,goToConfirmation:f,goToSportSelection:x,loading:g,error:y,selectedRule:b,compositeComponentById:w}=Or(),k=l.colors,v=he(l),N=fe(l),C=zt(),F=k.productYes??Rr,B=k.productNo??Gr,A=(0,a.useRef)(null);(0,a.useEffect)(()=>{u||(x(),e?.())},[x,e,u]);const M=(0,a.useMemo)(()=>kr(s,i,w),[s,i,w]),S=(0,a.useCallback)(e=>M.isCapped(e),[M]),{visible:L,canSkip:z,canUndo:P,restored:T,resolve:O,undo:D}=jr(s,i,d,S),E=u?at(u,m??void 0,b):{min:0,max:0},Y=E.max,H=Y>0&&p>=Y,R=u?E.min>0&&E.min===E.max?E.min:qo(u,m)??(Y>0?Y:null):null,G=(0,a.useRef)(p);(0,a.useEffect)(()=>{const e=G.current;if(G.current=p,null==R||e>=R||p!==R)return;const n=setTimeout(()=>{f(),t?.()},420);return()=>clearTimeout(n)},[p,f,t,R]);const W=!H&&L.length>0;(0,a.useEffect)(()=>{if(!W)return;const e=e=>{const t=e.target;if(!t||!/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName)){switch(e.key){case"ArrowRight":A.current?.fly("right");break;case"ArrowLeft":A.current?.fly("left");break;case"ArrowUp":A.current?.fly("up");break;case"ArrowDown":case"Backspace":D();break;default:return}e.preventDefault()}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[W,D]);const I=(0,a.useCallback)(e=>{A.current=e},[]);if(!u)return null;const U=(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:W?(0,c.jsx)("div",{className:"relative mx-auto w-full",style:{height:"clamp(14rem, 44dvh, 26rem)",maxWidth:384},children:L.map((e,t)=>(0,c.jsx)($r,{prop:e,depth:t,canSkip:z,enterFrom:T?.id===e.id?T.from:null,onResolve:O,registerApi:0===t?I:void 0,onDragStateChange:0===t?o:void 0,children:(0,c.jsx)(Kr,{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:H?"Card full":"That’s the last one"}),(0,c.jsx)("p",{className:"text-sm",style:{color:k.textMuted},children:H?`You've picked all ${Y} 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${E.min>0?` — this game needs at least ${E.min}`:""}. Undo a swipe or head back to widen the pool.`}),P&&(0,c.jsx)("button",{type:"button",onClick:D,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:[U("Undo last swipe","↺",D,!P),(0,c.jsx)("button",{type:"button",onClick:()=>A.current?.fly("left"),disabled:!W,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:B,fontFamily:N},children:C.no}),(0,c.jsx)("button",{type:"button",onClick:()=>A.current?.fly("right"),disabled:!W,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:C.yes}),U("Skip this proposition","↑",()=>A.current?.fly("up"),!W||!z)]}),(0,c.jsx)("p",{className:"mt-2 text-center text-[11px]",style:{color:k.textMuted},children:`Swipe right for ${C.yes}, left for ${C.no}${z?" · ↑ to skip":""}`})]})]})]})}function qr({propositions:e,title:t,onClose:n}){const{theme:o,selections:r,toggleSelection:l,compositeComponentById:s}=Or(),i=o.colors,d=(0,a.useMemo)(()=>kr(e,r,s),[e,r,s]),u=(0,a.useCallback)(e=>d.isCapped(e),[d]),{visible:m,canSkip:p,canUndo:h,restored:f,resolve:x,undo:g}=jr(e,r,l,u),y=(0,a.useRef)(null),b=(0,a.useRef)(null),w=(0,a.useCallback)(e=>{b.current=e},[]),k=(0,a.useCallback)(()=>b.current?.fly("up"),[]),v=$(o),N=fe(o),C=m.length>0,F=K(o),B=(0,a.useCallback)(()=>y.current?.close(),[]);(0,a.useEffect)(()=>{y.current?.showModal()},[]),(0,a.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=zt(),L=(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)($r,{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)(Kr,{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:"↺"})}),L("left",S.no,G(o)),L("right",S.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:`Swipe right for ${S.yes}, left for ${S.no}${p?" · ↑ to skip":""}`})]})]})}function Vr(e){return new Intl.DateTimeFormat("en-AU",{weekday:"short",day:"numeric",month:"short"}).format(e).replace(",","")}function Xr(e){return new Intl.DateTimeFormat("en-AU",{hour:"numeric",minute:"2-digit",hour12:!0}).format(e).replace(/\s/g,"").toLowerCase()}function Qr(e){const t=(e??"").trim().split(/\s+/).filter(Boolean);return(t[t.length-1]??"").slice(0,3).toUpperCase()}function Jr(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}function _r(e){const t=e?.trim();if(t&&"undefined"!==t&&"null"!==t)return t}function el(e,t=!1){const n=Object.entries(e).map(([e,n])=>function(e,t,n){const[o,r]=n?[]:e.split(" vs ").map(_r),l=t.map(Jr).filter(e=>null!==e),a=l.length>0?new Date(Math.min(...l.map(e=>e.getTime()))):null;return{key:e,title:n||!o?n?e:_r(t[0]?.league??void 0)??"":[o,r].filter(Boolean).join(" vs "),home:o,away:r,racing:n,date:a,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 s of o){const e=s.date.toDateString(),t=l.get(e);t?t.events.push(s):l.set(e,{key:e,label:Vr(s.date),events:[s]})}const a=[...l.values()];return r.length>0&&a.push({key:"undated",label:"",events:r}),a}var tl={split:"text-[13px] leading-snug",compact:"text-[11px] leading-snug"};function nl({variant:e,groups:t,racing:n,selections:o,onToggleSelection:r,atMax:l,theme:s,renderTeamLogo:i,componentById:d,disableEventSwipe:u=!1}){const m=s.colors,p=K(s),h=Z(s),f=m.borderSubtle??m.border,x=U(s),g=$(s),y=H(s),b=Y(s),w=j(s),k=fe(s),[v,N]=(0,a.useState)(null),[C,F]=(0,a.useState)(new Set),[B,A]=(0,a.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=a.default.useMemo(()=>el(t,n),[t,n]),P=a.default.useMemo(()=>kr(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=gr(e);return t?function(e){return`${ur[e]} already picked for this match`}(t):void 0},D=(e,t)=>{T(e)||r(e.id,t)},E=e=>{const t=P.slotsFor(br(e.props[0]));return 0===t.length?null:(0,c.jsx)("span",{className:"hidden shrink-0 items-center gap-1 sm:flex",children:t.map(({family:e,label:t,filled:n})=>(0,c.jsx)("span",{title:pr(e,n),"aria-label":pr(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)(Ot,{theme:s,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?ll(e,i,null):null,(0,c.jsx)(il,{prop:e,colors:m,componentById:d,renderTeamLogo:i,textClass:tl[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)(ol,{}),(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)(rl,{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:[Qr(e.home),(0,c.jsx)("span",{className:"text-[9px] font-semibold px-0.5",style:{color:g},children:"v"}),Qr(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:[Qr(e.home),(0,c.jsx)("span",{className:"text-[9px] font-semibold px-0.5",style:{color:g},children:"v"}),Qr(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:Xr(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:Xr(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)(qr,{propositions:v.props.filter(e=>!T(e)),title:v.title,onClose:()=>N(null)})]})}function ol(){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 rl({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 ll(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 al({matchup:e,renderTeamLogo:t,altText:n,mutedColor:o,size:r="sm"}){const[l,a=""]=e.split(" vs "),s="md"===r?"text-sm sm:text-base":"text-sm";if(!(a.length>0))return(0,c.jsx)("span",{className:`font-semibold ${s} 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 ${s} 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(a,"col-start-2 row-start-2")]})}function sl({label:e,colors:t}){const n="OR"===e?"If either wins, you win.":"Both must win for Yes.",[o,r]=(0,a.useState)(!1),[l,s]=(0,a.useState)({top:0,left:0}),i=(0,a.useRef)(null),d=(0,a.useCallback)(()=>{const e=i.current;if(!e)return;const t=e.getBoundingClientRect();s({top:t.bottom+4,left:t.left})},[]);return(0,a.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 il({prop:e,colors:t,size:n="sm",componentById:o,textClass:r,textColor:l,eventLabels:s="show",renderTeamLogo:i}){const d=Ye(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"===s&&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(),s=r?i?.(r,16)??null:null,d=l?i?.(l,16)??null:null,u=s||d?(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:[s,s&&d?(0,c.jsx)("span",{className:"text-[9px] font-semibold uppercase",style:{color:h},children:"vs"}):null,d]}):null;return(0,c.jsxs)(a.default.Fragment,{children:[o>0&&(0,c.jsx)("span",{className:"mx-1 align-middle",children:(0,c.jsx)(sl,{label:f,colors:t})}),u,!u&&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)(a.default.Fragment,{children:[n>0&&(0,c.jsx)(sl,{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 cl({game:e,propositions:t,selections:n,onToggleSelection:o,onNext:r,onBack:l,loading:s,error:i,theme:d,colorScheme:u,hideActions:m=!1,initialSport:p,renderTeamLogo:h,disableQuickPick:f=!1,selectedPropositionCount:x,onPropositionCountChange:g,gameCategory:y,headerExtra:b,railSlot:w,variant:k,disableEventSwipe:v}){const N=(0,a.useContext)(Pr),C=N?.sportBaseKey,F=N?.compositeComponentById,B=k??N?.selectionVariant,A=v??N?.disableEventSwipe??!1,S=pe(d,u),L=S.colors,z=K(S),P=q(S),T=L.matchupHeader??(e.color?M(e.color,.14):Z(S)),E=L.textAlt??L.text,Y=O(S),H=he(S);fe(S),j(S);const R=!!(e.allowed_propositions&&e.allowed_propositions.length>0),{min:G,max:W}=at(e,x),I=G,U=W,[$,X]=a.default.useState(()=>new Set(Object.keys(Ft(t,y,C)))),Q=I>0&&I===U,J=I||1,_=U||t.length,ee=U||I||t.length,[te,ne]=a.default.useState(ee),oe=Object.keys(n).length,re=U>0&&oe>=U,le=R?null!=x&&oe===x:lt(oe,e.min_propositions,e.max_propositions);e.min_bet,U>0?Math.max(2,2*U):Math.max(2,2*oe);const ae=a.default.useRef(oe),se=R?null!=x&&oe===x:U>0&&oe===U;(0,a.useEffect)(()=>{se&&oe>ae.current&&r?.(),ae.current=oe},[oe,se]);const ie=(0,a.useMemo)(()=>kr(t,n,F),[t,n,F]),ce=(0,a.useMemo)(()=>t.some(e=>null!==gr(e)),[t]),de=(e,r)=>{if(e in n)return void o(e,r);if(re)return;const l=t.find(t=>t.id===e);l&&ie.isCapped(l)||o(e,r)},ue=e=>{if(!ce||0===e.length)return null;const t=ie.slotsFor(br(e[0]));return 0===t.length?null:(0,c.jsx)("span",{className:"flex shrink-0 items-center gap-1",children:t.map(({family:e,label:t,filled:n})=>(0,c.jsx)("span",{title:pr(e,n),"aria-label":pr(e,n),className:"rounded-full border px-1.5 text-[9px] font-bold uppercase leading-[16px] tracking-wide "+(n?"":"border-dashed"),style:{borderColor:n?E:L.border,color:n?E:L.textMuted,cursor:"help"},children:t},e))})};(0,a.useEffect)(()=>{const e=U||t.length,n=I||1;ne(t=>Q?U:Math.max(n,Math.min(t,e)))},[t.length,I,U,Q]);const me=(0,a.useMemo)(()=>new Date,[]),xe=(0,a.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 sr){let e=0,l=0;for(const o of n)cr(o.commence_time,r,t)?e+=1:l+=1;e>0&&o.push({id:r,partitions:l>0})}return o.some(e=>e.partitions)?o.map(({id:e})=>({id:e,label:ar[e]})):[]}(t,me),[t,me]),[ge,ye]=(0,a.useState)(null);(0,a.useEffect)(()=>{ge&&!xe.some(e=>e.id===ge)&&ye(null)},[xe,ge]);const be=(0,a.useMemo)(()=>function(e,t,n){return t?e.filter(e=>cr(e.commence_time,t,n)):e.slice()}(t,ge,me),[t,ge,me]),we=(0,a.useMemo)(()=>it(y,be,C),[y,be,C]),ke=(0,a.useMemo)(()=>Ft(be,y,C),[be,y,C]),ve=(0,a.useMemo)(()=>{const e=new Set;for(const t of be){const n=Pe(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[be]),[Ne,Ce]=(0,a.useState)([]),Fe=(0,a.useCallback)(e=>{Ce(t=>null==e?[]:t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),[Be,Ae]=(0,a.useState)(!1),Me=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!Be)return;const e=e=>{Me.current?.contains(e.target)||Ae(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[Be]),(0,a.useEffect)(()=>{Ce(e=>{const t=e.filter(e=>ve.includes(e));return t.length===e.length?e:t})},[ve]);const Se=(0,a.useMemo)(()=>{if(0===Ne.length)return ke;const e={};for(const[t,n]of Object.entries(ke)){const o=n.filter(e=>{const t=Pe(e);return!!t&&Ne.includes(t)});o.length>0&&(e[t]=o)}return e},[ke,Ne]),Le=Object.keys(Se);if(a.default.useEffect(()=>{const e=Object.keys(Se);e.length>0&&X(t=>e.every(e=>t.has(e))?t:new Set(e))},[Se]),s)return(0,c.jsx)(Nn,{colors:V(S),bodyFont:H,variant:"propositions"});if(i)return(0,c.jsx)("div",{className:"flex items-center justify-center p-8",style:{fontFamily:H},children:(0,c.jsx)("div",{style:{color:L.error},children:i})});const ze=!f&&t.length>0,Te=xe.length>0||ve.length>1,Oe=(null!=ge?1:0)+Ne.length,De=[...xe.length>0?[{label:"When",options:[{value:null,label:"All dates"},...xe.map(e=>({value:e.id,label:e.label}))],value:ge,onChange:e=>ye(e)}]:[],...ve.length>1?[{label:"Market",options:[{value:null,label:"All markets"},...ve.map(e=>{return{value:e,label:(t=e,t.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))};var t})],value:Ne,onChange:Fe}]:[]];return(0,c.jsxs)("div",{className:"relative space-y-4 sm:space-y-6 pb-16",style:{fontFamily:H,zIndex:Be?1:void 0},children:[(Te||b||w)&&(0,c.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,c.jsx)("div",{className:"min-w-0 flex-1",children:w}),(0,c.jsxs)("div",{className:"flex flex-none flex-col items-end gap-2 sm:flex-row sm:items-center",children:[Te&&(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)("div",{className:"relative z-[4] flex items-center gap-2",ref:Me,children:[(0,c.jsxs)("button",{type:"button",onClick:()=>Ae(e=>!e),"aria-expanded":Be,className:"inline-flex items-center gap-1.5 rounded-full px-3 py-1.5 text-[11px] font-bold transition-colors",style:{fontFamily:H,border:`1px solid ${Oe>0?L.primary:L.border}`,backgroundColor:Oe>0?L.primary:L.background??"#fff",color:Oe>0?L.primaryText:L.text,cursor:"pointer"},children:[(0,c.jsx)($t,{size:13}),"Filter",Oe>0&&(0,c.jsxs)("span",{children:["· ",Oe]}),(0,c.jsx)("span",{className:"inline-flex transition-transform",style:{transform:`rotate(${Be?-90:90}deg)`,opacity:.75},children:(0,c.jsx)(Kt,{size:13})})]}),Be&&(0,c.jsx)("div",{className:"absolute right-0 top-full z-[2] mt-2 w-[248px] rounded-2xl p-3",style:{border:`1px solid ${L.border}`,backgroundColor:L.background??"#fff",boxShadow:D(S)},children:(0,c.jsx)(en,{groups:De,theme:S,bodyFont:H})}),Oe>0&&(0,c.jsx)("button",{type:"button",onClick:()=>{ye(null),Ce([])},className:"text-[11px] font-semibold",style:{color:L.textMuted,cursor:"pointer"},children:"Clear"})]})}),b]})]}),ze&&(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:[!Q&&(0,c.jsxs)("div",{className:"flex items-center gap-1",children:[(0,c.jsx)("input",{type:"number",min:J,max:_,value:te,onChange:e=>{const t=parseInt(e.target.value,10);isNaN(t)||ne(Math.max(J,Math.min(_,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:E,backgroundColor:L.backgroundAlt,border:`2px solid ${L.border}`}}),(0,c.jsxs)("span",{className:"text-xs whitespace-nowrap",style:{color:L.textMuted},children:["/ ",t.length]})]}),(0,c.jsx)(Dr,{onPress:()=>{const e=Q?U:te;for(const t of Object.keys(n)){const e=Number(t);o(e,n[e])}const{yesPicks:l,noPicks:a}=function(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}}(t,e);for(const t of l)o(t.id,"yes");for(const t of a)o(t.id,"no");r?.()}})]})}),t.length>0&&B&&(0,c.jsx)(nl,{variant:B,groups:Se,racing:we,selections:n,onToggleSelection:de,atMax:re,theme:S,renderTeamLogo:h,componentById:F,disableEventSwipe:A}),t.length>0&&!B&&(0,c.jsx)("div",{className:"space-y-4",children:Le.every(e=>1===Se[e].length)?(0,c.jsx)("div",{className:"rounded-xl border overflow-hidden divide-y",style:{borderColor:L.border,backgroundColor:z,boxShadow:Y},children:Le.map(e=>{const t=Se[e][0],o="yes"===n[t.id],r="no"===n[t.id],l=t.id in n,a=re&&!l||ie.isCapped(t);return(0,c.jsxs)("div",{className:"transition-colors divide-y",style:{opacity:a?.45:1,borderColor:L.border},children:[(0,c.jsxs)("div",{className:"px-4 py-2.5 sm:py-3 min-w-0",style:{backgroundColor:T},children:[(0,c.jsx)("div",{className:"min-w-0",children:(0,c.jsx)(al,{matchup:e,renderTeamLogo:h,altText:E,mutedColor:L.textAltMuted??L.textMuted??E})}),(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:L.textAltMuted??L.textMuted,opacity:.7},children:Xe(t.commence_time)}),ue([t])]})]}),(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 px-4 py-3 sm:py-3.5",style:{backgroundColor:P},children:[(0,c.jsxs)("div",{className:"min-w-0 flex-1 flex items-start gap-2",children:[ll(t,h,e),(0,c.jsx)(il,{prop:t,colors:L,componentById:F,renderTeamLogo:h})]}),(0,c.jsx)(Ot,{theme:S,size:"sm",value:o?"yes":r?"no":null,onYes:()=>de(t.id,"yes"),onNo:()=>de(t.id,"no"),disabled:a})]})]},t.id)})}):Le.map(e=>{const t=Se[e],o=$.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:L.border,backgroundColor:z,boxShadow:Y},children:[(0,c.jsxs)("button",{type:"button",onClick:()=>{return t=e,X(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:T,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:L.textAltMuted??L.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)(al,{matchup:e,renderTeamLogo:h,altText:E,mutedColor:L.textAltMuted??L.textMuted??E,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:L.textAltMuted??L.textMuted,opacity:.7},children:Xe(l)}),ue(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?L.successText:L.textMuted,backgroundColor:r>0?L.successBg:L.backgroundAlt},children:[r,"/",t.length]})})]}),o&&(0,c.jsx)("div",{className:"divide-y",style:{borderColor:L.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,a=re&&!l||ie.isCapped(t);return(0,c.jsx)("div",{className:"px-4 py-3 sm:py-3.5 transition-colors",style:{backgroundColor:P,opacity:a?.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:[ll(t,h,e),(0,c.jsx)(il,{prop:t,colors:L,size:"md",componentById:F,renderTeamLogo:h})]}),(0,c.jsx)(Ot,{theme:S,size:"sm",value:o?"yes":r?"no":null,onYes:()=>de(t.id,"yes"),onNo:()=>de(t.id,"no"),disabled:a})]})},t.id)})})})]},e)})}),0===t.length&&(0,c.jsx)("div",{className:"text-center p-8",style:{color:L.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:L.border,backgroundColor:z},children:[(0,c.jsx)(Mt,{theme:S,variant:"secondary",onPress:l,children:"Back"}),(0,c.jsx)("div",{className:"flex items-center gap-2 sm:gap-3",children:(0,c.jsx)(Mt,{theme:S,variant:"primary",disabled:!le,onPress:r,children:"Wager"})})]})]})}function dl({game:e,propositions:t,selections:n,onToggleSelection:o,onRemoveSelection:r,onSubmit:l,onBack:s,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 a=0;a<=I;a++)Q[a]=p*a;const J=b??Q,_=J[u]??0,ee=st(e),te=ee.enabled&&u===I,[ne,oe]=(0,a.useState)(null),[re,le]=(0,a.useState)(!0),ae=i||p<$||!1===F,se=null!=A&&p>A,ie=g&&!!l&&B,ce=n?t.filter(e=>e.id in n):t,de=Bt(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 a.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:[(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)(al,{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:Xe(e.props[0].commence_time)})]}),e.props.map((t,l)=>{const a=n?.[t.id],s="yes"===a,i="no"===a,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:[ll(t,w,e.key),(0,c.jsx)(il,{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)(Ot,{theme:L,size:"xs",value:s?"yes":i?"no":null,onYes:()=>o(t.id,"yes"),onNo:()=>o(t.id,"no")}):a?(0,c.jsx)(Dt,{theme:L,value:"yes"===a?"yes":"no",size:"sm",style:{flexShrink:0}}):null,re&&r&&(0,c.jsx)("button",{type:"button","aria-label":"Remove selection",onClick:()=>{a&&o?.(t.id,a),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}`))})]}),S,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:se?z.error:z.success},children:Ve(A)})]})]}),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 ",Ve(p)," exceeds your available ",Ve(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:Ve(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: ",Ve($),null!==V&&(0,c.jsxs)(c.Fragment,{children:[" · Maximum: ",Ve(V)]})]}),p>0&&p<$&&(0,c.jsxs)("p",{className:"text-xs mt-1",style:{color:z.error},children:["Bet amount must be at least ",Ve($)]})]}),(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:["+",Ve(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:Ve(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:[Ve(_),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?Ve(ee.amount):ee.limit>0?`Up to ${Ve(ee.limit)}`:"Progressive":Ve(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:ae,"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:ae?"not-allowed":"pointer",minWidth:120},children:i?(0,c.jsxs)("span",{className:"flex flex-col items-center gap-2",children:[(0,c.jsx)(dn,{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:Ve(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)(Mt,{theme:L,variant:"secondary",disabled:i,onPress:s,children:"Back"}),(0,c.jsx)("button",{type:"button",onClick:l,disabled:ae,"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:ae?"not-allowed":"pointer"},children:i?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(dn,{color:z.buttonPrimaryText}),(0,c.jsx)("span",{children:"Placing Entry…"})]}):(0,c.jsx)("span",{children:`Place Entry (${Ve(p)})`})})]})]})}function ul({iconUrl:e,gameName:t,chipColor:n,textColor:o,iconColor:r,accentColor:l,brandColor:a,height:s=56,showTrademark:i=!0,className:d,compact:u=!1,onPress:m}){const p=n??a??"#0F4C5C",h=.85*s,f=1.8*h,x=h/2,g=.05*h,y=.18*h,b={display:"inline-flex",alignItems:"center",flexWrap:"wrap",gap:.2*s,color:o??p,fontFamily:"Manrope, Poppins, sans-serif",fontSize:s,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*-s}px)`},children:(0,c.jsx)(rn,{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 ml({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,demoEntries:l,demoGames:s,demoPropositions:i,onSelectEntry:d,theme:u,colorScheme:m,className:p="",renderTeamLogo:h,filterSport:f}){const x=pe(u,m),g=!!(l&&s&&i),y=x.colors,b=he(x),w=fe(x),[k,v]=(0,a.useState)("pending"),[N,C]=(0,a.useState)([]),F=(0,a.useMemo)(()=>new Nr({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:B,loading:A,error:M,refetch:S}=Ar(F,{user_id:r},{skip:g}),{games:L,loading:z,error:P}=Cr(F,void 0,{skip:g}),{propositions:T,loading:O,error:D}=Fr(F,void 0,{skip:g}),E=g?l:B,j=g?s:L,Y=g?i:T,H=!g&&(A||z||O),R=g?null:M||P||D,G=(0,a.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,a.useMemo)(()=>{const e=new Map;for(const t of j)e.set(t.id,t);return e},[j]),I=(0,a.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,a.useRef)(new Set);(0,a.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,a.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,a.useMemo)(()=>$.filter(e=>Ze(e.pending)),[$]),Z=(0,a.useMemo)(()=>$.filter(e=>!Ze(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)(vn,{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)(pl,{entry:e,game:W.get(e.game_id),propositionsById:I,onSelect:d,theme:x,renderTeamLogo:h},e.id))})]})}function pl({entry:e,game:t,propositionsById:n,onSelect:o,theme:r,renderTeamLogo:l}){const s=r.colors,i=K(r),d=fe(r),u=e.proposition_ids??[],m=(0,a.useMemo)(()=>u.map(e=>n.get(e)).filter(Boolean),[u,n]),p=u.length,h=(0,a.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=Ze(e.pending),w=!b&&Ke(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?s.warningBg:w?s.successBg:s.errorBg,F=b||v?s.warningText:w?s.successText:s.errorText,[B,A]=(0,a.useState)(!1),M=p>0;return(0,c.jsxs)("div",{className:"rounded-xl border overflow-hidden transition-colors",style:{borderColor:s.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)(ul,{iconUrl:ve(t),gameName:n,height:18,chipColor:s.primary,textColor:s.text,iconColor:s.primaryText,accentColor:r.brand?.accent}):(0,c.jsx)("h3",{className:"text-base font-semibold truncate",style:{color:s.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:s.textMuted},children:Xe(e.created_at||e.entry_date)}),p>0&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"text-xs",style:{color:s.textMuted},children:"·"}),(0,c.jsx)("span",{className:"text-xs font-medium",style:{color:y&&x>0?g>0?s.success:s.error:s.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:[Ke(e.bet_amount)>0&&(0,c.jsx)("p",{className:"text-xs",style:{color:s.textMuted},children:Ve(Ke(e.bet_amount))}),!b&&Ke(e.winning)>0&&(0,c.jsxs)("p",{className:"text-sm font-bold",style:{color:s.success},children:[Ve(Ke(e.winning)),(e.payout_jackpot??0)>0&&(0,c.jsxs)("span",{className:"block text-xs font-normal",style:{color:s.textMuted},children:["incl. ",Ve(Ke(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:s.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:s.border},children:u.map(t=>{const o=(t=>n.get(t)??e.propositions?.find(e=>e.id===t))(t),a=f(t);if(!o)return(0,c.jsxs)("div",{className:"px-4 py-2.5 flex items-center gap-3",style:{borderColor:s.border},children:[(0,c.jsx)("div",{className:"flex-1 min-w-0",children:(0,c.jsxs)("p",{className:"text-sm",style:{color:s.textMuted},children:["Loading proposition #",t,"…"]})}),null!=a&&(0,c.jsx)(Dt,{theme:r,value:"yes"===a?"yes":"no",size:"sm"})]},t);const i=o.result,d=null!=i,u=!!o.is_voided,m=d&&!u&&null!=a&&a===i;let p,h,x;u?(p="Void",h=`${s.textMuted}20`,x=s.textMuted):d?m?(p="Won",h=s.successBg,x=s.successText):(p="Lost",h=s.errorBg,x=s.errorText):(p="Pending",h=s.warningBg,x=s.warningText);const g=tt(o)?void 0:o.home_team;return(0,c.jsxs)("div",{className:"px-4 py-2.5 flex items-center gap-3",style:{borderColor:s.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:s.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:s.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:s.textMuted},children:o.proposition||o.description}),o.commence_time&&(0,c.jsx)("p",{className:"text-xs mt-0.5",style:{color:s.textMuted},children:Xe(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:s.textMuted},children:"Pick"}),null!=a?(0,c.jsx)(Dt,{theme:r,value:"yes"===a?"yes":"no",size:"sm"}):(0,c.jsx)("span",{className:"text-xs",style:{color:s.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:s.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 hl({className:e=""}){const{theme:t,eventFilterActive:n,eventFilterLabel:o,clearEventFilter:r,gameCategory:l}=Or();if(!n)return null;const a=t.colors,s=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:`${a.primary}33`,backgroundColor:`${a.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:a.primary},children:"Event filter"}),(0,c.jsx)("p",{className:"truncate text-sm font-semibold",style:{color:a.text},children:s}),(0,c.jsx)("p",{className:"text-xs",style:{color:a.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:`${a.primary}44`,backgroundColor:a.background,color:a.text,cursor:"pointer"},children:"Show all events"})]})}function fl({onBack:e,title:t="Go back",className:n=""}){const{theme:o}=Or(),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 xl({onBack:e,label:t="Games"}){const{theme:n}=Or(),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 gl({onBack:e,hideActions:t,label:n,children:o,className:r=""}){const{theme:l}=Or(),a=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:a.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=a.text,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=a.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)(fl,{onBack:e})),!e&&null!=n&&(0,c.jsx)("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:a.textMuted},children:n}),o]}):null}function yl({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,bodyFont:l,howToPlayMarkdown:a,selectedCategory:s,displayCategoryName:i}=Or(),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"}),a?.trim()&&(0,c.jsx)(Wt,{content:a,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)(gl,{onBack:t,hideActions:n,label:s?i(s):void 0})]})}function bl({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",className:r,title:l,sportBaseKey:a}){const s=Ie(e,a,t),i=function(e){return e.length<=3?92:4===e.length?72:56}(s),d=l??`${s} button`,u=!o;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}),u?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("rect",{x:"90",y:"90",width:"260",height:"260",rx:"52",fill:Re}),(0,c.jsx)("rect",{x:"55",y:"55",width:"260",height:"260",rx:"52",fill:"#4B7985"}),(0,c.jsx)("rect",{x:"20",y:"20",width:"260",height:"260",rx:"52",fill:He,stroke:Re,strokeWidth:"6"})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("rect",{x:"2",y:"2",width:"356",height:"356",rx:"78",fill:"#DDD9D2",stroke:He,strokeWidth:"4"}),(0,c.jsx)("rect",{x:"50",y:"10",width:"260",height:"260",rx:"52",fill:He,opacity:"0.30"}),(0,c.jsx)("rect",{x:"50",y:"35",width:"260",height:"260",rx:"52",fill:He,opacity:"0.55"}),(0,c.jsx)("rect",{x:"50",y:"60",width:"260",height:"260",rx:"52",fill:He})]}),(0,c.jsx)("text",{x:u?150:180,y:u?180:220,fontFamily:"Manrope, Poppins, sans-serif",fontSize:i,letterSpacing:"-3",textAnchor:"middle",fontWeight:800,fill:"#DFFF1A",children:s}),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:He,children:o}),(0,c.jsx)("text",{x:"262",y:"333",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"10",fontWeight:600,fill:He,children:"TM"})]})]})}var wl="yesno:favourite-sport",kl=null;function vl(){try{return globalThis.localStorage??null}catch{return null}}var Nl="Your stake";function Cl(e,t,n){const o=n?.stake&&n.stake>0?n.stake:20;if(Bo(n?.game)){const e=Jo(n?.game??null,t,o);if(e>0)return e/o*20}const r=e?.top_payouts?.find(e=>Number(e.proposition_count)===t),l=r?.bet_amount&&r.bet_amount>0?r.bet_amount:20,a=Number(r?.net_payout);return r&&Number.isFinite(a)&&a>0?a/l*20:Jo(n?.game??null,t,o,{expectedCorrect:n?.expectedCorrect})/o*20}function Fl({label:e="Pick your sport",sublabel:t,renderSportLogo:n,className:o=""}){const{theme:r,sportOptions:l,sportSummaries:s,selectedSport:i,setSelectedSport:d,sportBaseKey:u,displaySportName:m,selections:p,toggleSelection:h,enableSportFavourites:f}=Or(),x=r.colors,g=K(r),y=he(r),b=fe(r),w=j(r),k=W(r),[v,N]=a.default.useState(null);if(a.default.useEffect(()=>{N(f?function(){try{const e=vl()?.getItem(wl);if(e)return e}catch{}return kl}():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,B=Object.keys(p).length>0;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}),B?(0,c.jsxs)("div",{className:"mb-1.5 flex items-center gap-2 pl-0.5 text-[12px] leading-snug",style:{color:x.textMuted},children:[(0,c.jsx)("span",{children:"One sport per bet."}),(0,c.jsx)("button",{type:"button",onClick:()=>{for(const e of Object.keys(p)){const t=Number(e);h(t,p[t])}},className:"font-semibold underline underline-offset-2",style:{background:"none",border:"none",padding:0,color:x.primary,cursor:"pointer"},children:"Clear bet"})]}):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)(Vt,{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=s.find(e=>e.key===t)?.games_today??0,l=i===t,a=v===t,p=m(t);return(0,c.jsxs)("div",{className:"relative flex-none",style:{width:88},children:[(0,c.jsxs)("button",{type:"button","aria-pressed":l,disabled:B&&!l,onClick:()=>{var n;e()||(n=t,B||n===i||d(n))},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:l?x.primary:x.border,boxShadow:l?`inset 0 0 0 2px ${x.primary}, ${O(r)}`:O(r),opacity:B&&!l?.45:1,cursor:B&&!l?"not-allowed":"pointer"},children:[(0,c.jsxs)("span",{className:"relative block leading-none",children:[n?n(t):(0,c.jsx)(bl,{gameKey:t,size:40,footer:null,sportBaseKey:u,title:`${p} button`}),o>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:l?w:x.text,fontFamily:b},children:p})]}),f&&(0,c.jsx)("button",{type:"button","aria-pressed":a,"aria-label":a?`Unpin ${p}`:`Pin ${p} to the front`,onClick:()=>{e()||(e=>{const t=v===e?null:e;N(t),function(e){kl=e;try{e?vl()?.setItem(wl,e):vl()?.removeItem(wl)}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:a?M(k,.22):g,borderColor:a?k:x.border},children:(0,c.jsx)(qt,{size:12,filled:a,color:a?w:M(x.textMuted,.6)})})})]},t)})})]})}function Bl({className:e="",onBack:t,hideActions:n}){const{theme:o}=Or(),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)(gl,{onBack:t,hideActions:n})]})}function Al({onSelectCategory:e,onCancel:t,hideTitle:n,hideActions:o,renderCategoryIcon:r,getCategoryTagline:l,className:a=""}){const{theme:s,propositionsForCategoryPicker:i,loading:d,setSelectedCategory:u,setSelectedSport:m,clearSelectedGame:p,displayCategoryName:h}=Or(),f=s.colors,x=K(s),g=he(s);nt(i);const y=ot(i);return d?(0,c.jsx)(Nn,{colors:V(s),bodyFont:g,className:a,variant:"category",categoryCount:y.length>0?y.length:2}):(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${a}`,style:{fontFamily:g},children:[!n&&(0,c.jsx)("div",{className:"mb-2",children:(0,c.jsx)(Bl,{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 We[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)(It,{label:h(t),category:t,icon:r?.(t),theme:s}),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 Ml(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 Sl({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 Ll({onSelectEvent:e,className:t=""}){const{theme:n,loading:o,sameGameMultiEvents:r,selectSameGameMultiEvent:l,renderTeamLogo:s,displaySportName:i}=Or(),[d,u]=a.default.useState(null),m=n.colors,p=he(n),h=fe(n),f=K(n),x=Z(n);return o?(0,c.jsx)(Nn,{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 ${Cn(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)(Sl,{name:t.homeTeam,renderTeamLogo:s,muted:m.textMuted}),(0,c.jsx)("span",{className:"text-xs font-normal",style:{color:m.textMuted},children:"vs"}),(0,c.jsx)(Sl,{name:t.awayTeam,renderTeamLogo:s,muted:m.textMuted})]}),(0,c.jsxs)("p",{className:"mt-2 text-[11px] font-medium sm:text-xs",style:{color:m.textMuted},children:[Ml(t.commenceTime)," · ",t.propositionCount," proposition",1===t.propositionCount?"":"s",(t.league||t.sport)&&` · ${t.league?.toUpperCase()??i(t.sport)}`]})]}),(0,c.jsx)(Kt,{size:22,color:m.textMuted,className:"shrink-0 transition-transform group-hover:translate-x-0.5"})]},t.id))})]})}function zl({counts:e,onPick:t,onDoubleAction:n,colors:o,align:r="right",direction:l="down",menuShadow:s="0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}){const[i,u]=a.default.useState(!1),[m,p]=a.default.useState(null),h=a.default.useRef(null),f=a.default.useRef(null),x=a.default.useRef(null),g=36+36*e.length+12;a.default.useEffect(()=>{if(!i)return void p(null);const e=h.current,t=e=>{const t=f.current;if(!t)return e;const n=t.offsetHeight-t.clientHeight,o=t.firstElementChild?.getBoundingClientRect().height??0,r=t.querySelector('[role="menuitem"]')?.getBoundingClientRect().height??0,l=Math.floor((e-n-o)/r);return r>0&&l>=1?n+o+l*r:e},n=()=>{if(!e||"undefined"==typeof window)return;const n=f.current;p(function({trigger:e,viewport:t,wanted:n,width:o,align:r,direction:l,snap:a}){const{height:s,width:i}=t,c=s-Math.max(e.bottom,0)-6-8,d=Math.min(e.top,s)-6-8,u="up"===l||n>c&&d>c,m=u?d:c,p=Math.max(s-16,132),h=n<=m?n:Math.min(n,a?a(p):p),f=u?e.top-6-h:e.bottom+6,x="left"===r?e.left:e.right-o;return{top:Math.max(8,Math.min(f,s-8-h)),left:Math.max(8,Math.min(x,i-8-o)),maxHeight:h}}({trigger:e.getBoundingClientRect(),viewport:{width:document.documentElement.clientWidth||window.innerWidth,height:document.documentElement.clientHeight||window.innerHeight},wanted:n?n.scrollHeight+n.offsetHeight-n.clientHeight:g,width:n?.offsetWidth??160,align:r,direction:l,snap:t}))};n();const o=requestAnimationFrame(n);window.addEventListener("resize",n),window.addEventListener("scroll",n,!0);const a=e=>{const t=e.target;h.current?.contains(t)||f.current?.contains(t)||u(!1)};return document.addEventListener("mousedown",a),()=>{cancelAnimationFrame(o),window.removeEventListener("resize",n),window.removeEventListener("scroll",n,!0),document.removeEventListener("mousedown",a)}},[i,g,r,l]);const y=i?(0,c.jsxs)("div",{ref:f,role:"menu",className:"rounded-lg overflow-y-auto overscroll-contain",style:{position:"fixed",top:m?.top??0,left:m?.left??0,maxHeight:m?.maxHeight,visibility:m?"visible":"hidden",zIndex:20,backgroundColor:o.background,border:`1px solid ${o.border}`,boxShadow:s,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),u(!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:h,className:"flex-shrink-0 relative",children:[(0,c.jsx)(Dr,{onPress:()=>{n?null==x.current&&(x.current=window.setTimeout(()=>{x.current=null,u(e=>!e)},220)):u(e=>!e)},onDoubleClick:n?()=>{null!=x.current&&(window.clearTimeout(x.current),x.current=null),u(!1),n?.()}:void 0}),y&&"undefined"!=typeof document?(0,d.createPortal)(y,document.body):null]})}function Pl(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 Tl({iconUrl:e,size:t=56}){const{theme:n}=Or(),o=n.colors,r=n.brand?.chip??o.primary,l=n.brand?.icon??o.primaryText,a=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 ${Pl(l,.16)}`,flexShrink:0,boxShadow:`0 8px 18px -12px ${Pl(r,.9)}`},children:(0,c.jsx)(rn,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:l,accentColor:a})})}function Ol({eyebrow:e,iconUrl:t,gameName:n,tagline:o,className:r=""}){const{theme:l,screenSize:a}=Or(),s=l.colors,i=fe(l),d="mobile"===a;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:s.primary,fontFamily:i},children:e}),(0,c.jsx)(ul,{iconUrl:t,gameName:n,height:d?20:32,chipColor:s.primary,textColor:s.text,iconColor:s.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:s.textMuted},children:o})]})}function Dl({className:e=""}){return(0,c.jsx)(Fl,{className:`mb-4 ${e}`})}function El({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 jl="w-[124px] shrink-0 snap-start sm:w-auto sm:shrink";function Yl({legs:e,prizeBall:t=!0}){const{theme:n}=Or(),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 Hl({tile:e,label:t,stat:n,detail:o,onSelect:r,children:l}){const{theme:a}=Or(),s=a.colors,i=fe(a),d=j(a),u=s.primary,m=s.selectionCard??s.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:s.border,boxShadow:`0 10px 24px -20px ${Pl(d,.7)}`},onMouseEnter:e=>{e.currentTarget.style.borderColor=u,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${Pl(u,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=s.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${Pl(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:Pl(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:s.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:Pl(d,.08)},children:l})]})}function Rl(){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 Gl({className:e="",onBack:t,onNext:n,hideActions:o}){const{theme:r,headingFont:l,bodyFont:a,selectedGame:s,propositions:i,selectedPropositionCount:d,disableQuickPick:u,answeredCount:m,goToConfirmation:p,quickPickSelections:h,selectedEventId:f,sameGameMultiEvents:x,selectSameGameMultiEvent:g,selectedRule:y,howToPlayMarkdown:b,maxPayouts:w}=Or(),k=r.colors,v=ze(s),N=er(s??{},s?w?.[s.id]:void 0),C=Bn(s)&&!f,F=x.find(e=>e.id===f),B=s?at(s,d,y):{min:0,max:0},A=B.min,M=Bn(s)&&f?Math.min(B.max,i.length):B.max,S=A>0&&A===M,L=!!(s?.allowed_propositions&&s.allowed_propositions.length>0),z=qo(s,d),P=!Vo(s)&&!L&&A>0&&M>A,T=z??(S?M:M||i.length),O=e=>{const t=e??T;return!(h(t)<t||(p(),n?.(),0))},E=!u&&i.length>0,Y=P?Array.from({length:M-A+1},(e,t)=>A+t).filter(e=>e<=i.length):[],H=m>0?m:A||T;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"}),s&&(0,c.jsx)(gl,{onBack:f?()=>g(null):t,hideActions:o,label:F?Cn(F):s.game_name,children:(v||b?.trim())&&(0,c.jsx)(Wt,{variant:"icon",content:b,panel:v,theme:r,title:`${s.game_name} — How to Play`,extra:(0,c.jsx)(tr,{tiers:N.hasGenericDividends?N.tiers:[],modes:N.modes,pydDividends:N.pydDividends,minBet:N.minBet,maxBet:N.maxBet,colors:k,bodyFont:a,headingFont:l}),colors:{text:k.text,textMuted:k.textMuted,border:k.border,background:k.background,backgroundAlt:k.backgroundAlt,primary:k.primary,primaryText:k.primaryText},bodyFont:a,headingFont:l})})]}),E&&(Y.length>1?(0,c.jsx)(zl,{counts:Y,onPick:e=>O(e),onDoubleAction:()=>O(H),colors:k,menuShadow:D(r)}):(0,c.jsx)("div",{className:"flex-shrink-0",children:(0,c.jsx)(Dr,{onPress:()=>O()})}))]})}function Wl({number:e,color:t,size:n=34,label:o,selected:r,onSelect:l}){const a=(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:a(.44*n,.3)}),(0,c.jsx)("span",{style:a(.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 Il({onNext:e,onBack:t,hideButtons:n=!1,className:o=""}){const{theme:r,headingFont:l,selectedGame:s,selectedPropositionCount:i,selectedEventId:d,propositions:u,goToConfirmation:m,selectedRule:p,maxPayouts:h,betAmount:f,setBetAmount:x,selections:g,expectedCorrect:y,gamePrice:b,toggleSelection:w}=Or(),k=r.colors,v=s?at(s,i,p):{min:0,max:0},N=qo(s,i),C=N??v.min,F=N??(Bn(s)&&d?Math.min(v.max,u.length):v.max),B=a.default.useRef(!1);a.default.useEffect(()=>{B.current=!1},[s?.id]),a.default.useEffect(()=>{f<=0&&!B.current&&x(Math.max(20,b))},[f,b,x]);const A=a.default.useRef([]);A.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]}(A.current,g);const M=function({selections:e,order:t,minReq:n,maxReq:o,stake:r,payout20:l=0}){const a=[];for(const u of t){const t=e[u];t&&a.push({id:u,number:a.length+1,side:t})}const s=a.length,i=s>=n,c=Math.max(0,n-s),d=i||o>0&&n===o?l*(r/20):0;return{legs:a,count:s,dividend:d,dividendText:Ve(d),ctaLabel:i?`Continue with ${s} ›`:0===s?`Select at least ${n}`:`Add ${c} more to continue`,ctaDisabled:!i,atMax:o>0&&s>=o}}({selections:g,order:A.current,minReq:C,maxReq:F,stake:f,payout20:s?Cl(h?.[s.id],F>0&&C===F?F:A.current.length,{game:s,expectedCorrect:y,stake:f}):0}),S=R(r),L=G(r),z=k.primaryText,P=I(k.primary,W(r),k.primaryText),T="text-[10px] font-bold uppercase tracking-[0.08em]",O=Xo(s),[D,E]=a.default.useState(null),j=M.legs.find(e=>e.id===D)??null,Y=j?u.find(e=>e.id===j.id)?.description??u.find(e=>e.id===j.id)?.proposition??"":"",H=a.default.useRef(null),U=M.legs[M.legs.length-1]?.side;return function(e,t,n){const o=a.default.useRef(null),r=a.default.useRef(e);a.default.useEffect(()=>{const e=e=>{o.current={x:e.clientX,y:e.clientY}};return document.addEventListener("pointerdown",e,!0),()=>document.removeEventListener("pointerdown",e,!0)},[]),a.default.useEffect(()=>{const l=e>r.current;r.current=e;const a=o.current,s=t.current?.lastElementChild;if(!l||!a||!s)return;if(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches)return;const i=s.getBoundingClientRect(),c=i.height||44,d=document.createElement("div");d.setAttribute("aria-hidden","true"),Object.assign(d.style,{position:"fixed",left:a.x-c/2+"px",top:a.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-a.x,m=i.top+i.height/2-a.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])}(M.count,H,"no"===U?L:S),(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:H,className:"flex items-center overflow-x-auto min-h-[44px] pb-1.5",style:{scrollbarWidth:"none"},children:0===M.legs.length?(0,c.jsx)("span",{className:"text-[13px]",style:{color:k.textMuted},children:"Tap Yes or No to start building your multi."}):M.legs.map(e=>(0,c.jsx)(Wl,{number:e.number,color:"yes"===e.side?S:L,label:`Leg ${e.number}, answered ${e.side}`,selected:e.id===D,onSelect:()=>E(t=>t===e.id?null:e.id)},e.id))}),M.legs.length>0&&(0,c.jsxs)("div",{className:"flex items-center gap-2 mb-2 text-[12px]",style:{color:k.text},children:[j?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"px-1.5 py-0.5 rounded font-bold text-[10px] uppercase shrink-0",style:{backgroundColor:"yes"===j.side?S:L,color:"#fff"},children:j.side}),(0,c.jsx)("span",{className:"line-clamp-2",children:Y})]}):(0,c.jsx)("span",{style:{color:k.textMuted},children:"Tap a leg to read it."}),(0,c.jsxs)("div",{className:"ml-auto flex shrink-0 items-center gap-1",children:[j&&(0,c.jsx)(Mt,{theme:r,variant:"ghost",size:"sm",radius:"pill",onPress:()=>{E(null),w(j.id,j.side)},ariaLabel:`Remove leg ${j.number}`,children:"Remove"}),(0,c.jsx)(Mt,{theme:r,variant:"ghost",size:"sm",radius:"pill",onPress:()=>{E(null);for(const e of M.legs)w(e.id,e.side)},ariaLabel:"Clear bet",children:"Clear bet"})]})]}),(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:T,style:{color:k.textMuted},children:Nl}),O?(0,c.jsxs)("div",{className:"flex items-center gap-2 rounded-[10px] px-3 py-2",style:{border:`1px solid ${k.border}`,backgroundColor:k.backgroundAlt},title:Qo(s),children:[(0,c.jsx)("span",{className:"text-[15px] font-extrabold",style:{color:k.text},children:Ve(f)}),(0,c.jsx)("span",{className:"text-[10px]",style:{color:k.textMuted},children:"locked"})]}):(0,c.jsxs)("div",{className:"flex items-center rounded-[10px] overflow-hidden w-[108px]",style:{border:`1px solid ${k.border}`,backgroundColor:k.background},children:[(0,c.jsx)("span",{className:"pl-3 text-base font-extrabold",style:{color:k.text},children:"$"}),(0,c.jsx)("input",{type:"number",min:1,step:1,inputMode:"decimal","aria-label":Nl,value:f>0?String(f):"",onChange:e=>{B.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:k.text,fontFamily:l}})]})]}),(0,c.jsxs)("div",{className:"flex items-baseline justify-end gap-2 rounded-[10px] px-3 py-1.5",style:{backgroundColor:k.primary,flex:"1 1 150px",minWidth:0},children:[(0,c.jsx)("span",{className:T,style:{color:z,opacity:.7},children:"Potential dividend"}),(0,c.jsx)("span",{className:"text-xl font-extrabold leading-none",style:{color:P},children:M.dividendText})]})]}),!n&&(0,c.jsx)(Mt,{theme:r,block:!0,size:"md",radius:"lg",disabled:M.ctaDisabled,onPress:()=>{m(),e?.()},children:M.ctaLabel})]})}function Ul({view:e,onChange:t}){const{theme:n}=Or(),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:Pl(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 $l({count:e,payout20:t,selected:n,onSelect:o,colors:r,bodyFont:l,extraBetAmount:a,buttonLabel:s,hidePayouts:i,game:d}){const u=null!=a&&20!==a,m=null!=t&&t>0&&u?_o(t*(a/20),d):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"},onMouseEnter:e=>{n||(e.currentTarget.style.borderColor=r.buttonPrimary??r.primary,e.currentTarget.style.backgroundColor=`${r.primary}12`)},onMouseLeave:e=>{n||(e.currentTarget.style.borderColor=r.border??r.primary,e.currentTarget.style.backgroundColor=r.buttonSecondary??r.background)},children:s?s(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]}),u?null!=m&&(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:Ve(m)}):(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:Ve(t)})]})]})}function Kl({tiers:e,game:t,selectedCount:n,onSelect:o,colors:r,bodyFont:l,extraBetAmount:s,buttonLabel:i,columnLabel:d="Legs",buildYourOwn:u,quickPickOnly:m,onQuickPick:p,collapsible:h,expanded:f,onExpandedChange:x,summaryTiers:g}){const[y,b]=(0,a.useState)(!1),w=f??y,k=e.some(e=>e.payout20>0),v=null!=s&&20!==s,N=v?`$${Math.round(s)} returns`:"$20 returns",C=!!h&&!w,F=k&&!C,B=(g??e).reduce((e,t)=>t.payout20>e?t.payout20:e,0),A=v&&B>0?_o(B*(s/20),t):B,M=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:m?"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:r.textMuted,fontFamily:l,display:"flex",alignItems:"center"},children:m?"Quick Pick":d}),F&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"py-1 text-xs",style:{color:r.textMuted,fontFamily:l,display:"flex",alignItems:"center"},children:"Dividend"}),(0,c.jsx)("div",{className:"py-1 text-xs",style:{color:r.textMuted,fontFamily:l,display:"flex",alignItems:"center"},children:N})]})]}),m?(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"flex-start",width:M},children:[(0,c.jsx)(zl,{counts:(g??e).map(e=>e.count),onPick:e=>p?p(e):o(e),align:"left",direction:"up",colors:{background:r.background??"#ffffff",backgroundAlt:r.backgroundAlt??"#f3f4f6",border:r.border??"#e5e7eb",text:r.text??"#111827"}}),k&&!C&&(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:`${r.success}15`,color:r.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:`${r.primary}12`,color:r.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:Ve(v?_o(e.payout20*(s/20),t):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:`${r.success}15`,color:r.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:`${r.primary}12`,color:r.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:"—"})]})},e.count))})]}):u?(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"flex-start",width:M},children:[(0,c.jsx)("button",{type:"button",onClick:()=>o(e[0]?.count??0),className:"w-full py-1.5 rounded-lg border text-sm font-semibold transition-colors",style:{borderColor:r.buttonPrimary??r.primary,color:r.buttonPrimaryText??"#ffffff",backgroundColor:r.buttonPrimary??r.primary,cursor:"pointer",fontFamily:l},children:"Make Your Selections"}),k&&!C&&(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:`${r.success}15`,color:r.success,alignSelf:"stretch",textAlign:"center"},children:[e.count,"/",e.count]}),v?(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:Ve(_o(e.payout20*(s/20),t))}):(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:Ve(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:`${r.success}15`,color:r.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:`${r.primary}12`,color:r.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:"—"})]})},e.count))})]}):e.map(e=>(0,c.jsx)($l,{count:e.count,payout20:e.payout20>0?e.payout20:null,selected:n===e.count,onSelect:()=>o(e.count),colors:r,bodyFont:l,extraBetAmount:s,buttonLabel:i,hidePayouts:C,game:t},e.count))]}),h&&(k?(0,c.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 self-start max-w-full",style:{fontFamily:l},children:[(0,c.jsxs)("span",{className:"text-xs font-semibold leading-snug",style:{color:r.text},children:["Win up to ",(0,c.jsx)("span",{style:{color:r.heading??r.text??r.primary},children:Ve(A)}),(0,c.jsx)("span",{style:{color:r.textMuted},children:` for $${v?Math.round(s):20}`})]}),(0,c.jsx)("button",{type:"button",onClick:()=>{return e=!w,void 0===f&&b(e),void x?.(e);var e},"aria-expanded":w,className:"text-xs font-semibold rounded-md transition-colors shrink-0",style:{background:w?r.buttonSecondary:r.background??"#ffffff",border:`1px solid ${w?r.primary??r.border:r.border}`,padding:"4px 10px",cursor:"pointer",color:r.text,fontFamily:l,lineHeight:1.35},children:w?"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:l},children:"Show dividends"}))]})}function Zl(e){return{game_id:e.selectedGame.id,rule_id:e.selectedRule?.id??null,proposition_ids:e.selectedPropositionIds,selections:e.selections,stake:e.betAmount}}function ql({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,selectedGame:l,selectedEventId:a,propositions:s,quickPickSelections:i,upgradePropositionCount:d,selectedPropositionCount:u,disableQuickPick:m,answeredCount:p,selectedRule:h}=Or(),f=o.colors,x=l?at(l,u,h):{min:0,max:0},g=x.min,y=Bn(l)&&a?Math.min(x.max,s.length):x.max,b=g>0&&g===y,w=!!(l?.allowed_propositions&&l.allowed_propositions.length>0),k=qo(l,u),v=!Vo(l)&&!w&&g>0&&y>g,N=k??(b?y:y||s.length),C=e=>{d(i(e??N))},F=!m&&s.length>0,B=v?Array.from({length:y-g+1},(e,t)=>g+t):[],A=p>0?p:g||N;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)(gl,{onBack:t,hideActions:n,label:l.game_name})]}),F&&(B.length>1?(0,c.jsx)(zl,{counts:B,onPick:e=>C(e),onDoubleAction:()=>C(A),colors:f,menuShadow:D(o)}):(0,c.jsx)("div",{className:"flex-shrink-0",children:(0,c.jsx)(Dr,{onPress:()=>C()})}))]})}function Vl({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,placedEntry:l}=Or(),a=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)(gl,{onBack:t,hideActions:n,children:(0,c.jsx)("p",{className:"text-sm",style:{color:a.textMuted},children:l?(0,c.jsxs)(c.Fragment,{children:["Entry"," ",(0,c.jsxs)("span",{className:"font-mono font-semibold",style:{color:a.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:`${a.success}20`},children:(0,c.jsx)("svg",{className:"w-6 h-6 sm:w-7 sm:h-7",fill:"none",stroke:a.success,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24",children:(0,c.jsx)("path",{d:"M5 13l4 4L19 7"})})})]})}function Xl({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r}=Or();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)(gl,{onBack:t,hideActions:n})]})}function Ql({className:e="",onBack:t,hideActions:n,backLabel:o="Category"}){const{theme:r,selectedCategory:l}=Or(),a=r.colors,s=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:a.primary,fontFamily:s},children:rt(l)}),(0,c.jsx)(gl,{onBack:t,hideActions:n,label:t?o:void 0})]})}function Jl(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 _l(){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 ea({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 ta({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 na({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 oa({kind:e,balls:t,...n}){return"safety_net"===e?(0,c.jsx)(ea,{...n,balls:t}):"pick"===e?(0,c.jsx)(na,{...n}):(0,c.jsx)(ta,{...n})}function ra({kind:e,size:t=56,balls:n}){const{theme:o}=Or(),r=o.colors,l=o.brand?.chip??r.primary,a=o.brand?.icon??r.primaryText,s=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 ${Jl(a,.16)}`,flexShrink:0,boxShadow:`0 8px 18px -12px ${Jl(l,.9)}`},children:(0,c.jsx)(oa,{kind:e,ink:a,ball:s,balls:n,size:Math.round(.68*t)})})}function la({option:e,renderDividends:t}){const{theme:n}=Or(),o=n.colors,r=fe(n),l=o.primary,a=W(n),s=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"]})]}),s.map((t,n)=>{const s=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!=s&&s>0&&(0,c.jsxs)("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:s}).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:a,marginLeft:2}})]})]}),(0,c.jsx)("span",{className:"text-sm font-extrabold tabular-nums sm:text-base",style:{color:l,fontFamily:r},children:Ve(t.payout20)})]},t.misses)})]})}function aa({option:e,renderDividends:t}){const{theme:n}=Or(),o=n.colors,r=he(n),l=D(n),s=e.dividends??[],i=s.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[u,m]=(0,a.useState)(!1),p=(0,a.useRef)(null),h=(0,a.useRef)(null),[f,x]=(0,a.useState)(null),g=40+36*Math.max(s.length,1)+12,y=(0,a.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,a.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,a.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]}),s.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?Ve(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:Ve(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 sa({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=Or(),l=r.colors,a=fe(r),s=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 ${Jl(s,.7)}`},onMouseEnter:e=>{e.currentTarget.style.borderColor=i,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${Jl(i,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=l.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${Jl(s,.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)(ra,{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:s,fontFamily:a},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:Jl(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:Jl(s,.08)},children:p?(0,c.jsx)(la,{option:t,renderDividends:o}):(0,c.jsx)(aa,{option:t,renderDividends:o})})]})}function ia({onContinue:e,onBack:t,hideTitle:n,config:o,renderDividends:r,backLabel:l="Games",className:s=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,setExpectedCorrect:m,handlePropositionCountChange:p,screenSize:h}=Or(),f=i.colors,x="mobile"===h,g=he(i),y=fe(i),b=j(i),w=W(i),k=(0,a.useMemo)(()=>o??go(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:s,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 ${s}`,style:{fontFamily:g},children:[(0,c.jsx)(_l,{}),t&&(0,c.jsx)(xl,{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)(ul,{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)(Dl,{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)(sa,{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 ${Jl(b,.7)}`,animationDelay:".06s"},onMouseEnter:e=>{e.currentTarget.style.borderColor=f.primary,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${Jl(f.primary,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=f.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${Jl(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)(ra,{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 ca({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:s=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,quickPickGame:f,goToSportSelection:x}=Or(),g=i.colors,y=he(i),b=fe(i),w=j(i),k=K(i),v=(0,a.useMemo)(()=>r??No(d),[r,d]),[N,C]=(0,a.useState)(()=>v?null!=u&&v.legOptions.includes(u)?u:v.defaultLegs:8),[F,B]=(0,a.useState)(()=>v?.defaultStake??20);if(!d||!ko(d)||!v)return(0,c.jsx)("div",{className:s,style:{color:g.textMuted,fontFamily:y},children:"No game set available."});const A=_o(vo(F,N,{operatorMargin:v.operatorMargin,perLegProbability:v.perLegProbability}).prize,d),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 ${s}`,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)(Rl,{}),n&&(0,c.jsx)(xl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Ol,{className:"blade-gsb-in",eyebrow:o?null:"The fastest multi",iconUrl:ve(d),gameName:d.game_name,tagline:v.tagline}),(0,c.jsx)(Dl,{}),(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 ${Pl(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",Ve(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 ",Ve(v.minStake),"."]})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:Pl(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:[Ve(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)(Yl,{legs:N})]}),(0,c.jsx)("span",{className:"text-xl font-extrabold tabular-nums sm:text-2xl",style:{color:g.primary,fontFamily:b},children:Ve(A)})]}),(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)(Hl,{tile:(0,c.jsx)(Tl,{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)(Hl,{tile:(0,c.jsx)(Tl,{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 da({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:s=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,quickPickGame:f,goToSportSelection:x}=Or(),g=i.colors,y=he(i),b=fe(i),w=j(i),k=K(i),v=(0,a.useMemo)(()=>r??Lo(d),[r,d]),[N,C]=(0,a.useState)(()=>v?.defaultDividend??1e4),[F,B]=(0,a.useState)(()=>{const e=v?.dividends[0]?.rungs.map(e=>e.legs)??[];return null!=u&&e.includes(u)?u:v?.defaultLegs??9});if(!d||!Bo(d)||!v)return(0,c.jsx)("div",{className:s,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 ${s}`,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)(Rl,{}),n&&(0,c.jsx)(xl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Ol,{className:"blade-pyd-in",eyebrow:o?null:"Pick your dividend",iconUrl:ve(d),gameName:d.game_name,tagline:v.tagline}),(0,c.jsx)(Dl,{}),(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 ${Pl(w,.7)}`,animationDelay:".06s"},children:[(z=Ve(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)(El,{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 ${jl}`,style:{backgroundColor:t?Pl(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:Ve(e.dividend)}),(0,c.jsxs)("span",{className:"mt-1 block text-[10px]",style:{color:g.textMuted},children:["from ",Ve(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:Pl(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?Pl(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)(Yl,{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:Ve(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)(Hl,{tile:(0,c.jsx)(Tl,{iconUrl:ve(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${M.legs} legs`,`${Ve(M.stake)} chasing the ${Ve(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)(Hl,{tile:(0,c.jsx)(Tl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${M.legs} legs at ${Ve(M.stake)}`,"Straight to the bet slip"],onSelect:()=>{p(M.legs),h(M.stake),f(d,M.legs,M.stake),e?.()}})})]})]})]});var z}function ua({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:s=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,quickPickGame:f,goToSportSelection:x,screenSize:g}=Or(),y=i.colors,b="mobile"===g,w=he(i),k=fe(i),v=j(i),N=W(i),C=K(i),F=(0,a.useMemo)(()=>r??jo(d),[r,d]),[B,A]=(0,a.useState)(()=>F?null!=u&&F.ladders.some(e=>e.legs===u)?u:F.defaultLegs:8),[M,S]=(0,a.useState)(()=>F?.defaultStake??50),[L,z]=(0,a.useState)(!1);if(!d||!To(d)||!F)return(0,c.jsx)("div",{className:s,style:{color:y.textMuted,fontFamily:w},children:"No ladders available."});const P=F.ladders.find(e=>e.legs===B)??F.ladders[0],T=Do(P,M),O=Eo(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 ${s}`,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)(Rl,{}),n&&(0,c.jsx)(xl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Ol,{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)(Dl,{}),(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 ${Pl(v,.7)}`,animationDelay:".06s"},children:[H("Your bet",Ve(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)(El,{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 ${jl}`,style:{backgroundColor:t?Pl(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:Ve(Eo(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:Pl(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:Ve(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)(a.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:Pl(N,.35),color:v},children:"Full stack"})]}),(0,c.jsx)(Yl,{legs:e.atLeast,prizeBall:t})]}),(0,c.jsx)("span",{className:"text-right text-[11px] tabular-nums",style:{color:y.textMuted},children:Ve(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:Ve(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)(Hl,{tile:(0,c.jsx)(Tl,{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)(Hl,{tile:(0,c.jsx)(Tl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${P.legs} legs at ${Ve(M)}`,"Straight to the bet slip"],onSelect:()=>{p(P.legs),h(M),f(d,P.legs,M),e?.()}})})]})]})]})}var ma="blade-mir-styles",pa="\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 ha({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 fa({legs:e,correct:t}){const{theme:n}=Or(),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:Pl(o,.45)},children:r?"✓":"✕"},n)})})}function xa({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:s=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,quickPickGame:f,goToSportSelection:x,games:g,selectGame:y}=Or(),b=i.colors,w=he(i),k=fe(i),v=j(i),N=K(i),C=(0,a.useMemo)(()=>r??Vn(d),[r,d]),[F,B]=(0,a.useState)(()=>C?null!=u&&C.legOptions.includes(u)?u:C.defaultLegs:8),[A,M]=(0,a.useState)(()=>C?.defaultStake??20),[S,L]=(0,a.useState)(!1);if(!d||!Zn(d)||!C)return(0,c.jsx)("div",{className:s,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){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})))}(_n(z.id,A,T,{operatorMargin:C.operatorMargin})),D=function(e,t){if(!t)return[];const n=jn(t);return n<Dn.premier?[]:Xn.flatMap(t=>{const o=e.find(e=>Zn(e)&&$n(e.rule)===Kn[t.id]&&jn(e)===n);return o?[{variant:t,game:o}]:[]})}(g,d),E=T-(z.depth-1);if(D.length>1&&!S)return(0,c.jsxs)("div",{className:`blade-mir flex min-h-full w-full flex-col ${s}`,style:{fontFamily:w},children:[(0,c.jsx)("style",{id:ma,children:pa}),(0,c.jsx)(Rl,{}),n&&(0,c.jsx)(xl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Ol,{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)(Dl,{}),(0,c.jsx)("div",{className:"grid gap-3 sm:grid-cols-3",children:D.map(({variant:e,game:t},n)=>{const o=Vn(t)?.legOptions??[];return(0,c.jsx)("div",{className:"blade-mir-in",style:{animationDelay:.06+.05*n+"s"},children:(0,c.jsxs)(Hl,{tile:(0,c.jsx)(Tl,{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)(ha,{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 Y=A>=C.minStake,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: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 ${s}`,style:{fontFamily:w},children:[(0,c.jsx)("style",{id:ma,children:pa}),(0,c.jsx)(Rl,{}),D.length>1?(0,c.jsx)(xl,{onBack:()=>L(!1),label:"Mirrors"}):n&&(0,c.jsx)(xl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Ol,{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)(Dl,{}),(0,c.jsxs)("div",{className:"blade-mir-in mb-3",style:{animationDelay:".03s"},children:[H(z.name,z.waysToWin),(0,c.jsx)(ha,{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 ${Pl(v,.7)}`,animationDelay:".06s"},children:[H("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:[H("Stake",Ve(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)})}),!Y&&A>0&&(0,c.jsxs)("p",{className:"mt-2 text-xs",style:{color:b.error},children:["Minimum stake is ",Ve(C.minStake),"."]})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:Pl(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:Pl(b.primary,.12),color:b.primary},children:z.waysToWin})]}),(0,c.jsx)("div",{className:"mt-1.5 flex flex-col gap-2",children:O.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)(fa,{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:Ve(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)(Hl,{tile:(0,c.jsx)(Tl,{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:()=>{Y&&(m(T),p(E),h(A),x(),t?.())}})}),(0,c.jsx)("div",{className:"blade-mir-in",style:{animationDelay:".2s"},children:(0,c.jsx)(Hl,{tile:(0,c.jsx)(Tl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{Y&&(p(E),h(A),f(d,T,A),e?.())}})})]})]})]})}function ga({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:s=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,setSelectedRuleId:f,quickPickGame:x,goToSportSelection:g}=Or(),y=i.colors,b=he(i),w=fe(i),k=j(i),v=K(i),N=(0,a.useMemo)(()=>r??po(d),[r,d]),[C,F]=(0,a.useState)(()=>N?.defaultModeId??"extra_shot"),[B,A]=(0,a.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,a.useState)(()=>N?.defaultStake??20);if(!d||!no(d)||!N)return(0,c.jsx)("div",{className:s,style:{color:y.textMuted,fontFamily:b},children:"No safety net available."});const L=N.modes.find(e=>e.id===C)??N.modes[0],z=ao(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 ${s}`,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)(Rl,{}),n&&(0,c.jsx)(xl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Ol,{className:"blade-sn-in",eyebrow:o?null:"Choose your safety net",iconUrl:ve(d),gameName:d.game_name,tagline:N.tagline}),(0,c.jsx)(Dl,{}),(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 ${Pl(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",Ve(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 ",Ve(N.minStake),"."]})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:Pl(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:[Ve(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:Ve(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:Ve(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)(Hl,{tile:(0,c.jsx)(Tl,{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)(Hl,{tile:(0,c.jsx)(Tl,{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 ya({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:s=""}){const{theme:i,selectedGame:d,handlePropositionCountChange:u,setExpectedCorrect:m,setBetAmount:p,setSelectedRuleId:h,quickPickGame:f,goToSportSelection:x}=Or(),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,a.useMemo)(()=>r??Io(d),[r,d]),[C,F]=(0,a.useState)(()=>N?.defaultUnit??10),[B,A]=(0,a.useState)(Ho);if(!d||!Yo(d)||!N)return(0,c.jsx)("div",{className:s,style:{color:g.textMuted,fontFamily:y},children:"No card available."});const M=Ro(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 ${Ve(C*N.baseMultiple*N.goldenPointFactor)}.`},captains_challenge:{sub:`Collect ${Ve(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 ${s}`,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)(Rl,{}),n&&(0,c.jsx)(xl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Ol,{className:"blade-sx-in",eyebrow:o?null:"Set your play",iconUrl:ve(d),gameName:d.game_name,tagline:N.tagline}),(0,c.jsx)(Dl,{}),(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 ${Pl(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:Ve(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:Ve(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:["+",Ve(M.challenge)]})]})]})]}),(0,c.jsxs)("div",{className:"mt-3",children:[O("Your stake",`steps of ${Ve(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:Ve(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 ${Ve(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",`${Ve(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?Pl(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:Pl(g.primary,.12),color:g.primary},children:["+",Ve(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)(Hl,{tile:(0,c.jsx)(Tl,{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)(Hl,{tile:(0,c.jsx)(Tl,{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 ba({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,backLabel:r="Games",className:l=""}){const{theme:s,selectedGame:i,selectedPropositionCount:d,handlePropositionCountChange:u,setExpectedCorrect:m,quickPickGame:p,goToSportSelection:h}=Or(),f=s.colors,x=he(s);fe(s);const g=(0,a.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 At(e,t)},[i]),y=Ko(i),b=g[0]??0,w=g[g.length-1]??0,[k]=(0,a.useState)(()=>null!=d&&g.includes(d)?d:w),v=(0,a.useMemo)(()=>go(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)(Rl,{}),n&&(0,c.jsx)(xl,{onBack:n,label:r}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Ol,{className:"blade-pp-in",eyebrow:o?null:v.title,iconUrl:ve(i),gameName:i.game_name,tagline:v.heroTagline}),(0,c.jsx)(Dl,{}),(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)(Hl,{tile:(0,c.jsx)(Tl,{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)(Hl,{tile:(0,c.jsx)(Tl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:C,onSelect:()=>{m(k),p(i,k),e?.()}})})]})]})]})}exports.BladeApiClient=Nr,exports.BrandLockup=function({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0,className:l}){const{theme:a}=Or(),s=j(a),i=W(a),d=a.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)`}(s),u=fe(a)??"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:s},children:[(0,c.jsx)(rn,{iconUrl:e,width:p,height:p,iconColor:s,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=Ut,exports.CategoryPickerPage=Al,exports.CategoryPickerPageActions=function({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=Or(),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=Bl,exports.ChevronRightIcon=Kt,exports.ConfirmPage=function({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,hideTitle:r,hideActions:l,className:s=""}){const i=Or(),{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,a.useEffect)(()=>{m||(E(),e?.())},[m,E,e]),!m)return null;const R=!!(m.allowed_propositions&&m.allowed_propositions.length>0),G=at(m,y,Y),W=qo(m,y),I=W??G.min,U=W??(Bn(m)&&b?Math.min(G.max,x.length):G.max),$=Object.keys(h).length,K=I>0&&$<I,Z=!Vo(m)&&!R&&I>0&&U>I&&$>=I&&$<U,q=R?[...m.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(y??0)):[],V=R&&q.length>0&&!K,X=Z||V;H.textAlt??H.text,I>0&&I===U||U||x.length;const Q=()=>{T(),e?.()},J=(R?[...m.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===$&&e<(y??1/0)),_=R&&$<Math.min(...m.allowed_propositions??[1/0]),ee=R&&K&&!_,te=Zo(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 a=l[0];if(a>=n)return"Get every pick right to win.";const s=l.length/2;if(l.length>=2&&l.length%2==0&&l.every((e,t)=>t<s?e===t:e===n-(l.length-1-t))){const e=s-1,t=`Get all ${n} picks right — or all ${n} wrong — to win.`;return 0===e?t:`${t} ${1===e?"One miss":`Up to ${e} misses`} either way still wins.`}if(!l.every((e,t)=>e===a+t)||l[l.length-1]!==n)return`Get exactly ${l.length>1?`${l.slice(0,-1).join(", ")} or ${l[l.length-1]}`:`${l[0]}`} of your ${n} picks right to win.`;const i=l.map(e=>o?.[e]).filter(e=>Number.isFinite(e));if(i.length===l.length&&i.length>1&&i.every((e,t)=>0===t||e>i[t-1]))return`Get at least ${a} of your ${n} picks right to win — every extra right pick grows the prize.`;const c=n-a;return`Get at least ${a} of your ${n} picks right to win — you can miss ${1===c?"one":`up to ${c}`}.`}(Y,A,$,M),oe=M[$]||Jo(m,$,v),re=(A??[]).length>1?"Top prize":"That pays",le=function(e,t,n){const o=[...new Set((e??[]).filter(e=>Number.isFinite(e)))].sort((e,t)=>t-e);if(o.length<2||t<=0)return[];const r=o.map(e=>({count:e,label:e===t?`Get all ${t}`:0===e?`All ${t} wrong`:`Get ${e}`,prize:n?.[e]??0}));return r.every(e=>e.prize>0)?r:[]}(A,$,M),ae=null!=J?te.belowRequiredHint(J,y??I):te.belowRequiredAddOnlyHint(y??I);return(0,a.useEffect)(()=>{!K||R&&!_||Q()},[K,R,_]),(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${s}`,style:{fontFamily:u},children:[!r&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(ql,{onBack:e,hideActions:l})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)(dl,{componentById:f,game:m,propositions:p,selections:h,onToggleSelection:O,onRemoveSelection:()=>{},onSubmit:async()=>{n?(await i.handleSubmit(),t?.()):o?.(Zl(i))},onBack:Q,loading:C,error:F,expectedCorrect:w,onExpectedCorrectChange:k,betAmount:v,onBetAmountChange:N,theme:d,showCustomAmount:!0,betAmountLocked:Xo(m),betAmountLockedNote:Qo(m),hideActions:!0,winningCounts:A,payouts:M,renderTeamLogo:L,canSubmit:B,authenticated:n,userBalance:z,onRecharge:P,boostBanner:(0,c.jsxs)(c.Fragment,{children:[X&&(0,c.jsx)("div",{className:"p-3 rounded-lg border",style:{backgroundColor:`${H.primary}08`,borderColor:`${H.primary}30`},children:V?(()=>{const e=y??$,t=S[e],n=v>0?v:20,o=null!=t&&t>0?_o(t*(n/20),m):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:Ve(o)})," ","with ",e," picks"]}),(0,c.jsx)(Kl,{game:m,tiers:q.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.jsx)("button",{type:"button",onClick:Q,className:"w-full px-3 py-2 rounded-lg text-xs font-semibold transition-colors",style:{color:H.buttonPrimaryText,backgroundColor:H.buttonPrimary,cursor:"pointer"},children:"Add more picks"})}),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:[$," pick",1!==$?"s":""]}),"."," ",ae]}),(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)})]})]}),(ne||oe>0)&&(0,c.jsxs)("div",{className:"p-3 rounded-lg border",style:{backgroundColor:`${H.primary}08`,borderColor:`${H.primary}30`},children:[ne&&(0,c.jsx)("p",{className:"text-xs sm:text-sm",style:{color:H.text},children:ne}),le.length>0?(0,c.jsx)("div",{className:"mt-2 space-y-1",children:le.map(e=>(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 text-xs sm:text-sm",children:[(0,c.jsx)("span",{style:{color:H.textMuted},children:e.label}),(0,c.jsx)("span",{className:"font-bold",style:{color:j(d)},children:Ve(e.prize)})]},e.count))}):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:Ve(oe)})]})]})]})})}),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=Or(),{theme:a,selectedGame:s,expectedCorrect:i,betAmount:d,submitting:u,submitError:m,canSubmit:p,payouts:h,selectedPropositionIds:f,screenSize:x}=l,g=a.colors;if(!s)return null;const y=h[i]??0,b=st(s),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)(Mt,{theme:a,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:[Ve(y),k&&(0,c.jsx)("span",{style:{color:g.warning},children:" + Jackpot"})]})]}),(0,c.jsx)(Mt,{theme:a,variant:"primary",disabled:!p,onPress:async()=>{n?(await l.handleSubmit(),t?.()):o?.(Zl(l))},children:n?u?"Placing…":`Place Entry (${Ve(d)})`:"Log in to place entry"})]})]})},exports.ConfirmPageTitle=ql,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:a,apiUrl:s,apiKey:i,fetchImpl:d,getAuthHeaders:u,userId:m,demoEntries:p,demoGames:h,demoPropositions:f,renderTeamLogo:x,filterSport:g}=Or();return(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${e}`,style:{fontFamily:a},children:[!o&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(Xl,{onBack:n,hideActions:r})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)(ml,{apiUrl:s,apiKey:i,fetchImpl:d,getAuthHeaders:u,userId:m,demoEntries:p,demoGames:h,demoPropositions:f,onSelectEntry:t,theme:l,renderTeamLogo:x,filterSport:g})})]})},exports.EntriesPageTitle=Xl,exports.EntrySubmission=dl,exports.EventFilterBanner=hl,exports.EventPickerPage=Ll,exports.EventSwipeModal=qr,exports.FilterChipCarousel=_t,exports.FilterChipRow=function({label:e,options:t,value:n,onChange:o,theme:r,bodyFont:l,className:a=""}){return(0,c.jsx)(_t,{groups:[{label:e,options:t,value:n,onChange:o}],theme:r,bodyFont:l,className:a})},exports.GAME_TIER_LEVEL=Dn,exports.GAME_TIER_TABS=En,exports.GOLDEN_POINT_FACTOR=2,exports.GameEntries=ml,exports.GameLogo=bl,exports.GamePage=function({onSelectGame:e,onGameSetup:t,onRuleSetup:n,onGameSetBet:o,onPickYourDividend:r,onLadder:l,onMirror:s,onSafetyNet:i,onQuickPick:d,onCancel:u,hideTitle:m,hideActions:p,showPerfectPickSetup:h=!1,showTierFilter:f=!1,className:x=""}){const g=Or(),{theme:y,games:b,loading:w,error:k,selectedGame:v,selectedPropositionCount:N,handlePropositionCountChange:C,maxPayouts:F}=g;y.colors;const B=a.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)(yl,{onBack:u,hideActions:p})}),(0,c.jsx)(hl,{}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)(lr,{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 a=B.current;if("rule_setup"===Uo(a)&&Ko(a)&&!h)return g.goToSportSelection(),void e?.();const c=Uo(a);if("quick_pick"===c||"selections"===c)return g.goToSportSelection(),void e?.();t?t(c):({game_set:o,pick_your_dividend:r,ladder:l,mirror:s,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}=Or(),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=yl,exports.GameSelector=lr,exports.GameSetBetPage=ca,exports.GameSetBetPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Or(),l=fe(o),a=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:a.primary,fontFamily:l},children:"The fastest multi"}),(0,c.jsx)(gl,{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:a,selectedGame:s,goToSportSelection:i,bodyFont:d}=Or(),u={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r,className:l};switch(Uo(s)){case"game_set":return(0,c.jsx)(ca,{...u});case"pick_your_dividend":return(0,c.jsx)(da,{...u});case"ladder":return(0,c.jsx)(ua,{...u});case"mirror":return(0,c.jsx)(xa,{...u});case"safety_net":return(0,c.jsx)(ga,{...u});case"six_again":return(0,c.jsx)(ya,{...u});case"rule_setup":return"exact"===go(s)?.kind?(0,c.jsx)(ba,{...u}):(0,c.jsx)(ia,{onBack:n,hideTitle:o,backLabel:r,className:l,onContinue:()=>{i(),e?.()}});default:return(0,c.jsx)("div",{className:l,style:{color:a.colors.textMuted,fontFamily:d},children:"No setup required — this game goes straight to picks."})}},exports.HowToPlayButton=Wt,exports.HowToPlayModal=Gt,exports.HowToPlayPanel=Rt,exports.LADDER_FAMILY=Po,exports.LADDER_REFERENCE_BET=50,exports.LADDER_STAKES=zo,exports.LadderPage=ua,exports.LadderPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Or(),l=fe(o),a=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:a.primary,fontFamily:l},children:"Every step pays"}),(0,c.jsx)(gl,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.LockIcon=Zt,exports.MIRROR_STANDARD_MARGIN=Gn,exports.MarkdownContent=A,exports.MirrorPage=xa,exports.MirrorPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Or(),l=fe(o),a=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:a.primary,fontFamily:l},children:"All right, or all wrong"}),(0,c.jsx)(gl,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.NO_BOOSTS=Ho,exports.PYD_LEG_RUNGS=Fo,exports.PYD_RETAIL_DIVIDENDS=Co,exports.PayoutCircles=function({game:e,totalSelections:t,expectedCorrect:n,className:o="",onExpectedCorrectChange:r,theme:l=J,colorWinning:a,colorNone:s,winningCounts:i,payouts:d}){const u=l.colors,m=a??u.payoutWinning,p=s??u.payoutNone,h=st(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: ${Ve(h.amount)}${h.limit>0?` (up to ${Ve(h.limit)})`:""} for a perfect pick!`:h.limit>0?`Progressive Jackpot — up to ${Ve(h.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${Ve(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),a=d[o]??0,s=a>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 ${Ve(h.amount)})`:""}${h.limit>0?` — up to ${Ve(h.limit)}`:""} + ${Ve(a)}\nClick to select`:`${o} correct wins JACKPOT ${Ve(h.amount)} + ${Ve(a)}\nClick to select`:l?`${o} correct wins ${Ve(a)}\nClick to select`:s?`${o} correct pays ${Ve(a)} 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}),a>0?(0,c.jsx)("div",{className:"text-[7px] sm:text-[8px] font-normal leading-none",children:Ve(a)}):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=ba,exports.PerfectPickPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Or(),l=fe(o),a=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:a.primary,fontFamily:l},children:"All or nothing"}),(0,c.jsx)(gl,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.PickYourDividendPage=da,exports.PickYourDividendPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Or(),l=fe(o),a=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:a.primary,fontFamily:l},children:"The dividend is set"}),(0,c.jsx)(gl,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.PlaceEntryProvider=function({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,getUserBalance:l,children:s,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,yesNoLabels:S,onEntryPlaced:L,onBeforeSubmit:z,onCancel:P,onShare:T,onRecharge:O,onClearEventFilter:D,screenSize:E="desktop",howToPlayMarkdown:j,sportDisplayNames:Y,categoryDisplayNames:H}){const R=pe(i,d),G=he(R),W=fe(R),I=!(!u||!m),U=(0,a.useMemo)(()=>new Nr({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),[$,K]=(0,a.useState)(0),Z=(0,a.useRef)(0),[q,V]=(0,a.useState)(0),[X,Q]=(0,a.useState)([]),[J,_]=(0,a.useState)({}),[ee,te]=(0,a.useState)({}),[ne,oe]=(0,a.useState)(void 0),[re,le]=(0,a.useState)(null),[ae,se]=(0,a.useState)(void 0),ie=a.default.useCallback(async()=>{if(l)try{const e=await l();"number"==typeof e&&Number.isFinite(e)&&se(e)}catch(e){}},[l]);(0,a.useEffect)(()=>{l?ie():se(void 0)},[l,ie]);const ce=(0,a.useRef)(null),de=(0,a.useRef)(null),[ue,me]=(0,a.useState)(null),[xe,ge]=(0,a.useState)(b??null),[ye,be]=(0,a.useState)(w??null);(0,a.useEffect)(()=>{b&&ge(b)},[b]),(0,a.useEffect)(()=>{be(w??null)},[w]);const[we,ke]=(0,a.useState)(w),ve=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(!w)return ke(void 0),void(ve.current=!1);ve.current||ke(w)},[w]);const Ne=f??ue??void 0,Ce=mt(xe??y??b??void 0,v),Fe=mt(y,v)??y,Be=xe??void 0,{games:Ae,howToPlayMarkdown:Me,loading:Se,error:Le}=Cr(U,{category:Ne,jurisdiction:x,sport:Ce},{skip:I}),{propositions:ze,loading:Pe,error:Te}=Fr(U,{category:Ne,sport:Fe,event_id:we},{skip:I}),{sports:Oe,loading:je}=Br(U,{skip:I}),{createEntry:Ye,loading:He,error:Re,clearSubmitError:Ge}=Sr(U),{preview:We}=zr(U),Ie=(0,a.useMemo)(()=>wt((I?u:Ae)??[],{category:Ne,sport:Ce??Be,sportBaseKey:v}),[I,u,Ae,Ne,Ce,Be,v]),Ue=j??Me??null,{maxPayouts:$e,refetchGame:Ke}=Mr(U,Ie??[],{skip:I,betAmount:20}),Ze=I?h??Tr:$e,Ve=I?m:ze,Xe=y?(Ve??[]).filter(e=>e.sport===y):Ve,Qe=(0,a.useMemo)(()=>ot(Xe??[]),[Xe]),_e=(0,a.useMemo)(()=>Ne||(1===Qe.length?Qe[0]:void 0),[Ne,Qe]),tt=(0,a.useMemo)(()=>{const e=Xe??[];return _e?xt(e,{category:_e,sportBaseKey:v}):e},[Xe,_e,v]),nt=(0,a.useMemo)(()=>Be?xt(tt,{sport:Be,sportBaseKey:v}):tt,[tt,Be,v]),rt=(0,a.useMemo)(()=>({category:_e,sport:Be,sportBaseKey:v}),[_e,Be,v]),st=(0,a.useMemo)(()=>{const e=(Ie??[]).filter(e=>e.active);if(!_e&&Qe.length>1)return[];const t=_e?wt(e,rt):e;return _e||Be?function(e,t,n){return n?.category||n?.sport?e.filter(e=>bt(e,t,n)):e}(t,nt,rt):t},[Ie,nt,rt,_e,Be,Qe.length]),{step:it,selectedGame:ct,selections:ht,placedEntry:ft,setGameOnly:yt,clearSelectedGame:kt,goToSportSelection:Nt,goToConfirmation:Ct,goToSuccess:Ft,goBack:Bt,reset:At,toggleSelection:Mt}=Lr(g),St=a.default.useCallback(()=>{ve.current=!0,ke(void 0),At(),D?.()},[At,D]),zt=!!we,Pt=zt?k:void 0,Tt=!I&&(Se||Pe||!!ct&&je),Ot=I?null:ct?Le||Te:Le,Dt=(0,a.useMemo)(()=>ct?vt(nt,ct,v):nt,[ct,nt,v]),Et=(0,a.useMemo)(()=>{const e=ct?vt(tt,ct,v):tt,t=ct?.allowed_sports,n=new Map;for(const o of e){const r=Je(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}))},[ct,tt,v]),jt=(0,a.useMemo)(()=>Et.map(e=>e.key),[Et]),Yt=(0,a.useMemo)(()=>ct?Dt:tt,[ct,Dt,tt]),Ht=(0,a.useMemo)(()=>xt(ct?Dt:tt,{category:_e??"sports"}),[ct,Dt,tt,_e]),Rt=(0,a.useMemo)(()=>{const e=new Set(jt);return Oe.filter(t=>e.has(t.key))},[Oe,jt]),Gt=(0,a.useMemo)(()=>xt(Dt,{category:_e,sport:xe}),[Dt,_e,xe]),Wt=(0,a.useMemo)(()=>{if(!ct||!Bn(ct))return[];const{min:e}=at(ct,ne),t=ne??e;return Mn(Gt).filter(e=>e.propositionCount>=t)},[ct,ne,Gt]),It=(0,a.useMemo)(()=>Bn(ct)?Tn(Gt,ye):Gt,[ct,Gt,ye]),Ut=function(e,t){const[n,o]=(0,a.useState)([]),r=(0,a.useRef)(new Set),l=(0,a.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]),s=(0,a.useMemo)(()=>e?function(e){const t=new Set;for(const n of e)if(De(n))for(const e of Ee(n))t.add(e);return[...t]}(t).filter(e=>!l.has(e)):[],[e,t,l]);return(0,a.useEffect)(()=>{if(!e||0===s.length)return;const t=s.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,s]),l}(I?null:U,(0,a.useMemo)(()=>[...Xe??[],...It],[Xe,It])),$t=(0,a.useMemo)(()=>kr(Dt,ht,Ut),[Dt,ht,Ut]),Kt=(0,a.useCallback)((e,t)=>{if(!(e in ht)){const t=Dt.find(t=>t.id===e);if(t&&$t.isCapped(t))return}Mt(e,t)},[ht,Dt,$t,Mt]),Zt=Object.keys(ht).map(Number),qt=Zt.length,Vt=(0,a.useMemo)(()=>Gt.filter(e=>Zt.includes(e.id)),[Gt,Zt]);(0,a.useEffect)(()=>{f||ue||1===Qe.length&&me(Qe[0])},[f,ue,Qe]),(0,a.useEffect)(()=>{if(!ct)return;const e=Dt,t=new Set(e.map(et));let n=ue;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==ue&&me(n));const o=n?e.filter(e=>et(e)===n):e,r=new Set(function(e){const t=new Set;for(const n of e){const o=Je(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),l=ct.allowed_sports;ge(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=Je(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})())},[ct?.id,Dt,ue]),(0,a.useEffect)(()=>{Ge()},[ct?.id,it,Ge]),(0,a.useEffect)(()=>{ct&&_e&&(gt(ct,_e)||kt())},[ct,_e,kt]),(0,a.useEffect)(()=>{ct&&(bt(ct,nt,{category:_e,sport:xe,sportBaseKey:v})||kt())},[ct,_e,xe,v,nt,kt]),(0,a.useEffect)(()=>{if(ct){const e=ce.current,t=de.current!==ct.id;if(de.current=ct.id,null!=e?.stake&&e.stake>0?V(e.stake):t&&V(Math.max(20,ct.min_bet??0)),e){const{count:t}=e;return ce.current=null,oe(t),void K(t)}if(!t)return;if(ct.allowed_propositions&&ct.allowed_propositions.length>0){const e=ne;null!=e&&ct.allowed_propositions.includes(e)?K(e):(oe(void 0),K(0))}else oe(void 0),K(ct.num_propositions||ct.max_propositions||0)}},[ct]);const Xt=(e,t,n)=>{const o=(Ie??[]).find(t=>t.id===e)??(ct?.id===e?ct:null),r=(Ze[e]?.top_payouts??[]).find(e=>e.proposition_count===t),l=r&&r.bet_amount&&r.bet_amount>0?r.bet_amount:20,a=r&&l>0?_o(r.net_payout/l*n,o):0;return a>0?a:Jo(o,t,n)};(0,a.useEffect)(()=>{if("sport"!==it&&"confirm"!==it||!ct||I)return;const e=Bn(ct)&&ye?It.length:Number.MAX_SAFE_INTEGER;let t;if(ct.allowed_propositions&&ct.allowed_propositions.length>0){const n=ct.allowed_propositions?[...ct.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void te({});const o=ne??n[0],r=n.filter(e=>e>o);if(0===r.length)return void te({});t=[o,...r]}else{const{min:n,max:o}=at(ct),r=Math.min(o,e);if(n<=0||r<=n)return void te({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=Xt(ct.id,o,20);te(n)},[it,ct,ne,ye,It.length,I,Ze]),(0,a.useEffect)(()=>{if("confirm"!==it||!ct)return;const e=Zt.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=Xt(ct.id,r,q);_(n),e!==Z.current?(Z.current=e,K(e)):($>e||$<=0&&e>0)&&K(e);const o=q>0?q:Math.max(ct.min_bet??20,.01);return(async()=>{try{const n=await We(ct.id,{actual:$,predicted:$,total:e,bet_amount:o,rule_id:re});if(t)return;if(Q(n.winning_counts),q>0&&n.payouts){const e={};for(const[t,o]of Object.entries(n.payouts)){const n=Number(t);e[n]=o>0?_o(o,ct):Xt(ct.id,n,q)}_(e)}}catch{t||Q([])}})(),()=>{t=!0}},[it,ct,Zt.length,$,q,We,Ze,re]);const Qt=(0,a.useMemo)(()=>{return t=re,(e=ct)&&null!=t?e.permitted_rules?.find(e=>e.id===t)??null:null;var e,t},[ct,re]),Jt=!Bn(ct)||On(Vt,ye),_t=ct?at(ct,void 0,Qt):null,en=!(!ct||!Jt)&&(ct.allowed_propositions&&ct.allowed_propositions.length>0?null!=ne&&qt===ne&<(qt,_t?.min,_t?.max):lt(qt,_t?.min,_t?.max)),tn=ct?.min_bet??0,nn=Math.max(tn,.01),on=null==ae||q<=ae,rn=!He&&q>=nn&&en&&on,ln=e=>{oe(e),K(e);for(const t of Object.keys(ht))Mt(Number(t),ht[Number(t)])},an=e=>{oe(e),K(e)},sn=e=>{be(Bn(e)?w??null:null),yt(e)},cn=e=>{if(e!==ye){for(const e of Object.keys(ht)){const t=Number(e);Mt(t,ht[t])}be(e)}},dn=e=>{for(const n of Object.keys(ht)){const e=Number(n);Mt(e,ht[e])}const t=vr([...It].sort(()=>Math.random()-.5),Math.max(0,e),Ut);for(const n of t)Mt(n.id,Math.random()<.5?"yes":"no");return t.length},un=(e,t,n)=>{const o=e.allowed_sports??[];let r=null;xe&&(0===o.length||o.some(e=>pt(xe,e,v)))?r=xe:1===o.length&&(r=o[0]);const l=xt(vt(Xe??[],e,v),{category:_e,sportBaseKey:v});if(0===l.length)return;const a=e=>{return vr((n=e?xt(l,{sport:e,sportBaseKey:v}):l,[...n].sort(()=>Math.random()-.5)),Math.max(0,t),Ut);var n},s=new Map;for(const m of l){const e=Je(m,l);"Other"!==e&&s.set(e,(s.get(e)??0)+1)}const i=[...s.keys()].sort((e,t)=>(s.get(t)??0)-(s.get(e)??0));let c=r??i[0]??null,d=a(c);for(const m of i){if(d.length>=t)break;if(m===c)continue;const e=a(m);e.length>d.length&&(d=e,c=m)}r=c;const u=ct?.id===e.id;ce.current=u?null:{count:t,stake:n},yt(e),Ke(e.id),ge(r),u&&(oe(t),K(t),null!=n&&n>0&&V(n));for(const m of Object.keys(ht)){const e=Number(m);Mt(e,ht[e])}for(const m of d)Mt(m.id,Math.random()<.5?"yes":"no");Ct()},mn=(0,a.useRef)(!1),pn=async()=>{if(ct&&en&&!mn.current){if(I){const e={id:Math.floor(1e4*Math.random()),game_id:ct.id,user_id:r,proposition_ids:Zt,selections:ht,pending:!0,expected_correct:$,bet_amount:q};return L?.(e),Ft(e),void ie()}mn.current=!0;try{z&&await z(q);const e=await Ye({game_id:ct.id,user_id:r,proposition_ids:Zt,selections:ht,stake:q,rule_id:Qt?.id??null});L?.(e),Ft(e),ie()}catch(e){}finally{mn.current=!1}}},hn=(0,a.useCallback)(e=>function(e,t){const{overrides:n,summaryLabel:o,sportBaseKey:r}=t,l=n?.[e];return l||(r&&e.startsWith(`${r}_`)?dt(e,void 0,r):o||dt(e,void 0,r))}(e,{overrides:Y,summaryLabel:Rt.find(t=>t.key===e)?.label,sportBaseKey:v}),[Y,Rt,v]),fn=(0,a.useCallback)(e=>ut(e,H),[H]),xn=(0,a.useMemo)(()=>({theme:R,bodyFont:G,headingFont:W,games:st,propositions:It,compositeComponentById:Ut,propositionsForCategoryPicker:Yt,sportsForSelectedGame:jt,sportOptions:Et,propositionsForSportPicker:Ht,sportSummaries:Rt,loading:Tt,error:Ot,step:it,selectedGame:ct,selections:ht,placedEntry:ft,selectedPropositionIds:Zt,selectedPropositions:Vt,selectionValid:en,selectedRuleId:re,setSelectedRuleId:le,selectedRule:Qt,answeredCount:qt,betAmount:q,setBetAmount:V,expectedCorrect:$,setExpectedCorrect:K,selectedPropositionCount:ne,handlePropositionCountChange:ln,upgradePropositionCount:an,winningCounts:X,payouts:J,overloadPayouts:ee,submitting:He,submitError:Re,canSubmit:rn,gamePrice:tn,userBalance:ae,hasSufficientBalance:on,refreshUserBalance:ie,handleSubmit:pn,selectGame:sn,goToSportSelection:()=>Nt(),goToConfirmation:Ct,goBack:Bt,reset:At,clearSelectedGame:kt,toggleSelection:Kt,quickPickGame:un,quickPickSelections:dn,selectedCategory:ue,setSelectedCategory:me,selectedSport:xe,setSelectedSport:ge,selectedEventId:ye,sameGameMultiEvents:Wt,selectSameGameMultiEvent:cn,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:zt,eventFilterLabel:Pt,clearEventFilter:St,screenSize:E,displaySportName:hn,displayCategoryName:fn,maxPayouts:Ze??{},howToPlayMarkdown:Ue,onEntryPlaced:L,onCancel:P,onShare:T,onRecharge:O,demoEntries:p,demoGames:u,demoPropositions:m}),[R,G,W,st,It,Ut,Yt,Ht,jt,Et,Rt,Tt,Ot,it,ct,ht,ft,Zt,Vt,en,qt,q,$,ne,re,Qt,X,J,ee,He,Re,rn,tn,e,t,r,ae,n,o,N,C,F,B,A,M,y,b,w,v,f,E,zt,Pt,St,ue,xe,ye,Wt,Ze,Ue,L,P,T,O,D,p,u,m,hn,fn]),gn=a.default.useMemo(()=>({yes:S?.yes??qe.yes,no:S?.no??qe.no}),[S?.yes,S?.no]);return(0,c.jsx)(Pr.Provider,{value:xn,children:(0,c.jsx)(Lt,{value:gn,children:s})})},exports.QuickPickButton=Dr,exports.RuleSetupPage=ia,exports.RuleSetupPageActions=function({onContinue:e,canContinue:t,continueLabel:n="Continue",className:o=""}){const{theme:r,screenSize:l}=Or(),a=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:a.buttonPrimaryText,backgroundColor:a.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}=Or(),a=fe(o),s=o.colors,i=go(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:s.primary,fontFamily:a},children:i?.title??"About this game"}),(0,c.jsx)(gl,{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=ga,exports.SafetyNetPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Or(),l=fe(o),a=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:a.primary,fontFamily:l},children:"Choose your safety net"}),(0,c.jsx)(gl,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.ScrollShelf=Vt,exports.SelectionReview=function({propositions:e,selections:t,onToggleSelection:n,onNext:o,onBack:r,theme:l,colorScheme:s,hideActions:i=!1,renderTeamLogo:d,allowAnswerToggle:u=!0,gameName:m,potentialPayout:p,defaultExpanded:h=!1,componentById:f,addMorePicks:x}){const g=pe(l,s),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,a.useState)(null),[M,S]=(0,a.useState)(h),L=e.filter(e=>e.id in t),z=L.length,P=Bt(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:Ve(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:Ve(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)(al,{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:Xe(e.props[0].commence_time)})]}),e.props.map((o,l)=>{const a=t[o.id],s="yes"===a,i="no"===a;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:[ll(o,d,e.key),(0,c.jsx)(il,{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)(Ot,{theme:g,size:"sm",value:s?"yes":i?"no":null,onYes:e=>{e.stopPropagation(),n(o.id,"yes")},onNo:e=>{e.stopPropagation(),n(o.id,"no")}}):a&&(0,c.jsx)(Dt,{theme:g,value:"yes"===a?"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)(Mt,{theme:g,variant:"secondary",onPress:r,children:"Back"}),(0,c.jsx)(Mt,{theme:g,variant:"primary",disabled:0===L.length,onPress:o,children:"Place bet"})]})]})},exports.SelectionVariantList=nl,exports.SelectionsPage=function({onNext:e,onBack:t,hideTitle:n,hideActions:o,defaultView:r="list",view:l,onViewChange:s,hideViewSwitch:i,onSwipeDragStateChange:d,className:u=""}){const m=Or(),{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]=a.default.useState(r),Y=l??E,H=a.default.useCallback(e=>{void 0===l&&j(e),s?.(e)},[l,s]);a.default.useEffect(()=>{x||(m.goToSportSelection(),t?.())},[x,m,t]);const R=a.default.useMemo(()=>{if(!x)return null;const{min:e,max:t}=at(x,B??void 0,p);return e>0&&e===t?e:qo(x,B)},[x,B]),G=a.default.useRef(D);a.default.useEffect(()=>{const t=G.current;G.current=D,null!=R&&t<R&&D===R&&(M(),e?.())},[D,R]);const W=a.default.useMemo(()=>ot(O??[]),[O]);if(a.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)(Gl,{onBack:o?K:void 0,onNext:o?e:void 0,hideActions:o})}),!Bn(x)&&(0,c.jsx)(hl,{}),(0,c.jsx)("div",{className:"flex-1",children:I?(0,c.jsx)(Al,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>z(e)}):U?(0,c.jsx)(Ll,{}):"swipe"===Y?(0,c.jsx)(Zr,{onBack:K,onNext:e,viewSwitch:i?void 0:(0,c.jsx)(Ul,{view:Y,onChange:H}),onDragStateChange:d}):(0,c.jsx)(cl,{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)(Ul,{view:Y,onChange:H}),railSlot:(0,c.jsx)(Fl,{})})}),!o&&!I&&!U&&(0,c.jsx)("div",{className:"mt-6",children:(0,c.jsx)(Il,{onNext:e,onBack:t})})]})},exports.SelectionsPageActions=Il,exports.SelectionsPageTitle=Gl,exports.SixAgainPage=ya,exports.SixAgainPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Or(),l=fe(o),a=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:a.primary,fontFamily:l},children:"Set your play"}),(0,c.jsx)(gl,{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:s,className:i=""}){const{theme:d,propositionsForSportPicker:u,sportSummaries:m,loading:p,setSelectedSport:h,clearSelectedGame:f,selectedCategory:x,sportBaseKey:g,displaySportName:y}=Or(),b=d.colors,w=K(d),k=he(d),v=fe(d),N=j(d),C=Qe(u),F=Object.keys(C);return p?(0,c.jsx)(Nn,{colors:V(d),bodyFont:k,className:i,variant:"sport",categoryCount:F.length>0?F.length:2}):(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${i}`,style:{fontFamily:k},children:[!n&&(0,c.jsx)("div",{className:"mb-2",children:(0,c.jsx)(Ql,{onBack:t,hideActions:o,backLabel:a})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[F.map(t=>{const n=m.find(e=>e.key===t),o=n?.active_props??C[t].length,a=l?.(t,o)??(n?`${s=n.games_today} game${1===s?"":"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,x));var s,i;const u=y(t);return(0,c.jsxs)("button",{type:"button",onClick:()=>{h(t),f(),e?.(t)},className:"flex w-full min-w-0 flex-col items-center gap-2 rounded-2xl border px-2 py-3 text-center transition-all hover:-translate-y-0.5 active:translate-y-0 sm:px-3 sm:py-4",style:{backgroundColor:w,borderColor:b.border,boxShadow:O(d),cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=b.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=b.border},children:[r?(0,c.jsx)("span",{className:"shrink-0",children:r(t)}):(0,c.jsx)(bl,{gameKey:t,size:64,footer:null,sportBaseKey:g,title:`${u} button`,className:"h-14 w-14 shrink-0 sm:h-16 sm:w-16"}),(0,c.jsxs)("div",{className:"flex min-w-0 w-full flex-col items-center",children:[(0,c.jsx)("span",{className:"line-clamp-2 max-w-full text-sm font-extrabold leading-tight tracking-tight sm:text-base",style:{color:N,fontFamily:v},children:u}),(0,c.jsx)("span",{className:"mt-1 line-clamp-2 max-w-full text-[0.58rem] font-bold uppercase leading-snug tracking-[0.1em]",style:{color:b.primary},children:a})]})]},t)}),s?.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??Ie(e.key,g));return(0,c.jsxs)("div",{className:"flex w-full min-w-0 flex-col items-center gap-2 rounded-2xl border px-2 py-3 text-center sm:px-3 sm:py-4",style:{backgroundColor:M(b.backgroundAlt,.4),borderColor:M(b.border,.7)},children:[(0,c.jsx)("div",{className:"shrink-0",style:{opacity:.6,filter:"grayscale(1)"},children:r?r(e.key):(0,c.jsx)(bl,{gameKey:e.key,short:e.short,size:64,footer:null,sportBaseKey:g,title:`${e.label} button`,className:"h-14 w-14 shrink-0 sm:h-16 sm:w-16"})}),(0,c.jsxs)("div",{className:"flex min-w-0 w-full flex-col items-center",children:[(0,c.jsxs)("span",{className:"line-clamp-2 max-w-full text-sm font-extrabold leading-tight tracking-tight sm:text-base",style:{color:b.textMuted,fontFamily:v},children:[t,n&&n!==t?(0,c.jsxs)("span",{className:"font-bold",children:[" · ",n]}):null]}),(0,c.jsxs)("span",{className:"mt-1 line-clamp-2 max-w-full text-[0.58rem] font-bold uppercase leading-snug tracking-[0.1em]",style:{color:b.textMuted},children:[(0,c.jsx)("span",{className:"mr-1 inline-block align-[-1px]",children:(0,c.jsx)(Zt,{size:11,color:b.textMuted})}),(o=e.seasonStart,o?`Starts ${o}`:"Coming soon")]})]})]},e.key);var o})]})})]})},exports.SportPickerPageActions=function({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=Or(),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=Ql,exports.SportRail=Fl,exports.StarIcon=qt,exports.SuccessPage=function({onPlayAgain:e,onDone:t,onBack:n,onShare:o,hideTitle:r,hideActions:l,className:s=""}){const i=Or(),{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=a.default.useRef(!1);return a.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 ${s}`,style:{fontFamily:u},children:[!r&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(Vl,{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)(ul,{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:Ve(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:Ve(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:[!tt(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)(Dt,{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:a,selectedGame:s,selectedPropositions:i,selections:d,betAmount:u}=Or();return r.colors,(0,c.jsxs)("div",{className:`flex items-center justify-between pt-4 ${o}`,children:[(0,c.jsx)(Mt,{theme:r,variant:"secondary",onPress:()=>{l(),e?.()},children:"Place Another"}),t&&(0,c.jsx)(Mt,{theme:r,variant:"primary",onPress:t,children:"Done"})]})},exports.SuccessPageTitle=Vl,exports.SwipeCard=$r,exports.SwipeCardFace=Kr,exports.SwipeDeck=Zr,exports.VISIBLE_DEPTH=3,exports.YesNoCategoryLabel=It,exports.applyTheme=xe,exports.availableGameTierTabs=Hn,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,a]=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*a>.4?n:t},exports.darkTheme=ee,exports.defaultGameTierId=Rn,exports.defaultTheme=J,exports.defaultThemeSet=ae,exports.filterGamesByTierLevel=Yn,exports.filterPropositionsToEvent=Tn,exports.formatCurrency=Ve,exports.formatDate=Xe,exports.formatSameGameMultiEventLabel=Cn,exports.fullStackPrize=Eo,exports.gameNeedsRuleSetup=yo,exports.gameSetPrize=vo,exports.getConfirmBoostCopy=Zo,exports.getGameFlow=Uo,exports.getGameSetBetConfig=No,exports.getJackpotInfo=st,exports.getLadderConfig=jo,exports.getMirrorConfig=Vn,exports.getPickYourDividendConfig=Lo,exports.getPropositionEventId=An,exports.getRuleSetupConfig=go,exports.getSafetyNetConfig=po,exports.getSafetyNetPricing=oo,exports.getSixAgainConfig=Io,exports.getSportDisplayName=ct,exports.getTheme=de,exports.getThemeSet=function(e){return{default:ae,green:se,gold:ie,yesno:ce}[e]||ae},exports.goldLightTheme=oe,exports.goldTheme=te,exports.goldThemeSet=ie,exports.greenLightTheme=ne,exports.greenTheme=_,exports.greenThemeSet=se,exports.groupPropositionsBySport=Qe,exports.groupSameGameMultiEvents=Mn,exports.groupSelectionDays=el,exports.isFixedCardExactGame=$o,exports.isGameSetBetGame=ko,exports.isLadderGame=To,exports.isMirrorGame=Zn,exports.isOpenExactMultiGame=Ko,exports.isPickYourDividendGame=Bo,exports.isSafetyNetGame=no,exports.isSameGameMultiGame=Bn,exports.isSelectableSameGameMultiProposition=Pn,exports.isSixAgainGame=Yo,exports.isThemeSet=Q,exports.isValidSelectionCount=lt,exports.ladderCollectAt=function(e,t,n){return Oo(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)},exports.ladderTiers=Do,exports.mirrorPrize=function(e,t,n){const o=Wn(n?.operatorMargin),r=n?.perLegProbability??.5,l=Math.round(Math.pow(2,t)),a=Math.pow(r,t)+Math.pow(1-r,t),s=Math.round(1/a),i=(1-o)*Math.pow(2,t-1);return{legs:t,stake:e,prize:Math.round(e*i),multiple:i,totalOutcomes:l,winningOutcomes:2,oddsOneIn:s}},exports.propositionsBelongToEvent=On,exports.pydLadder=So,exports.pydRung=Mo,exports.resolveCategoryDisplayName=ut,exports.resolveGameTierLevel=jn,exports.resolvePrice=function(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0},exports.resolveSportDisplayName=dt,exports.resolveTheme=X,exports.roundDividendAmount=ro,exports.safetyNetCollect=so,exports.safetyNetTicket=ao,exports.sixAgainRuleId=Go,exports.sixAgainStakeMultiples=function(e,t){const n=Ro(1,e,t);return{perfect:n.perfect/n.stake,challenge:n.challenge/n.stake}},exports.sixAgainTicket=Ro,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,a.useEffect)(()=>{xe(t)},[t]),t},exports.useCalculatePayout=function(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[l,s]=(0,a.useState)(null);return{calculate:(0,a.useCallback)(async(t,o)=>{try{n(!0),r(null);const l=await e.calculatePayout(t,o);return s(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=Sr,exports.useEntryPreview=zr,exports.useEvaluateRule=function(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[l,s]=(0,a.useState)(null);return{evaluate:(0,a.useCallback)(async(t,o)=>{try{n(!0),r(null);const l=await e.evaluateRule(t,o);return s(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=Ar,exports.useGameMaxPayouts=Mr,exports.useGames=Cr,exports.usePlaceEntry=Or,exports.usePlaceEntryFlow=Lr,exports.usePropositions=Fr,exports.useResolvedTheme=pe,exports.useSports=Br,exports.useSwipeDeck=jr,exports.useYesNoLabels=zt,exports.version="1.30.6-pre.5";
|
|
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 a=require("react");var s,i;i=null!=(s=a)?e(r(s)):{},a=((e,r,a,s)=>{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:!(s=n(r,i))||s.enumerable});return e})(t(i,"default",{value:s,enumerable:!0}),s);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%2Frw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yF%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%2FJziJMvxRZo0uXQBIiIiIn00tXQBIiIiIiVY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j%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=[],a=()=>{0!==l.length&&(o+=p([...l]),l.length=0)};for(;null!==(n=t.exec(e));){o+=e.slice(r,n.index);const s=n[1].replace(/<br\s*\/?>/gi,"\n").trim().split("\n").map(e=>e.trim()).filter(Boolean).map(e=>m(e));s.length>0&&s.every(e=>null!==e)?l.push(...s):(a(),o+=n[0]),r=t.lastIndex}return a(),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=[]},a=()=>{r.length>0&&(n.push({type:"list",items:[...r]}),r=[])};for(const s of t){const e=s.trim();if(!e){a(),l();continue}const t=e.match(v);if(t){a(),l(),n.push({type:"heading",level:Math.min(t[1].length,3),text:t[2].trim()});continue}if(C.test(e)){a(),l(),n.push({type:"hr"});continue}const i=e.match(N);i?(l(),r.push(i[1].trim())):(a(),o.push(e))}return a(),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"}},ae={light:J,dark:ee},se={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:ae,green:se,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),a=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:a(e.detail)})),demoLegs:Be.slice(0,l),demoPrompt:a(n.demoPrompt).replace(/\{n1\}/g,Ae[l-1]??String(l-1)).replace(/\{n\}/g,Ae[l]??String(l))}}function Pe(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function Te(e){return(e.description??e.proposition??"").trim()}var Oe={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function De(e){return"composite_and"===(t=Pe(e))||"composite_or"===t;var t}function Ee(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 je(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 Ye(e,t){if(!De(e))return null;const n=function(e){return De(e)?("composite_and"===(t=Pe(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=Ee(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:Te(o),eventLabel:je(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(Oe[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(Te(e),n);return r?{operator:n,legs:r.map(e=>({text:e,eventLabel:null,prop:null}))}:null}var He="#0F4C5C",Re="#7B9DA5",Ge={aussierules_afl:"AFL",aussierules_aflw:"AFLW",rugbyleague_nrl:"NRL",rugbyleague_nrlw:"NRLW",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",prediction:"PRD",roulette:"RLT",dice:"DCE",cointrio:"CT3",cricket_international_t20:"T20",cricket_test_match:"TEST"},We={aussierules_afl:"Aussie Rules",aussierules_aflw:"AFL Women",rugbyleague_nrl:"Rugby League",rugbyleague_nrlw:"NRL Women",basketball_nba:"Basketball",basketball_ncaab:"College Basketball",americanfootball_nfl:"American Football",americanfootball_ncaaf:"College Football",icehockey_nhl:"Ice Hockey",baseball_mlb:"Baseball",soccer_epl:"Premier League",soccer_usa_mls:"Major League Soccer",soccer_italy_serie_a:"Serie A",soccer_spain_la_liga:"La Liga",soccer_germany_bundesliga:"Bundesliga",horse_racing_aus:"Horse Racing",prediction:"Predictions"};function Ie(e,t){return We[e]??t}var Ue={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner",prediction:"Call the outcome"};function $e(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=Ge[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 Ke(e,t){const n=t>0?Math.floor(t/68):e;return Math.max(2,Math.min(Math.ceil(e/2),n))}function Ze(e){return!!e.is_composite_component||!!(t=Pe(e))&&t.startsWith("co_");var t}function qe(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function Ve(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}var Xe={yes:"Yes",no:"No"};function Qe(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 Je(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 _e(e){return e.reduce((t,n)=>{const o=et(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function et(e,t){if(e.sport)return e.sport;if(De(e)&&t)for(const n of Ee(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var tt=["sports","casino","racing","prediction"];function nt(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=(Pe(e)??"").toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"prediction"===t||n.startsWith("prediction")?"prediction":"sports"}function ot(e){return"racing"===nt(e)}function rt(e){const t={};for(const n of e){const e=nt(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function lt(e){const t=rt(e);return tt.filter(e=>(t[e]?.length??0)>0)}function at(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";case"prediction":return"Choose a Market";default:return"Choose a Sport"}}function st(e,t,n,o){return o&&o.length>0?o.includes(e):!(void 0!==t&&e<t||void 0!==n&&e>n)}function it(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 a=e.min_propositions??e.num_propositions??0,s=e.max_propositions??e.num_propositions??0;return{min:null!=o?Math.max(a,o):a,max:null!=r&&s>0?Math.min(s,r):r??s}}function ct(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 dt(e,t,n){return"racing"===e||!(!t?.length||!t.every(ot))||!!n&&Boolean(t?.some(e=>e.sport===n||(e.sport||"").startsWith(`${n}_`)))}function ut(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 mt(e,t,n){const o=t?.[e];return o||ut(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 ht(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function ft(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function xt(e,t,n){return!t||!!e&&(ft(e,t,n)||ft(t,e,n))}function gt(e,t){return t.find(t=>t.id===e)}function yt(e,t){let n=e;return t?.category&&(n=n.filter(e=>nt(e)===t.category)),t?.sport&&(n=n.filter(n=>De(n)?function(e,t,n,o){if(xt(e.sport,t,n))return!0;if(!o)return!1;for(const r of Ee(e)){const e=gt(r,o);if(e&&xt(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):xt(n.sport,t.sport,t.sportBaseKey))),n}function bt(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t||"prediction"===t?t:"sports"}(e)===t}function wt(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>ft(t,e,n))}function kt(e,t,n){return!(n?.category&&!bt(e,n.category))&&!(n?.sport&&!wt(e,n.sport,n.sportBaseKey))&&yt(Ct(t,e),n).length>0}function vt(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!bt(e,t.category)||t.sport&&!wt(e,t.sport,t.sportBaseKey))):e}function Nt(e,t){if(e.sport||!De(e))return e;const n=et(e,t);return"Other"===n?e:{...e,sport:n}}function Ct(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(a=>{if(Ze(a))return!1;if(r)if(De(a)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>ft(e.sport,t,n)))return!0;if(!o)return!1;for(const r of Ee(e)){const e=gt(r,o);if(e?.sport&&t.some(t=>ft(e.sport,t,n)))return!0}return!1}(a,o,n,e))return!1}else if(!a.sport||!o.some(e=>ft(a.sport,e,n)))return!1;return!(l&&!function(e,t){const n=t.allowed_markets;if(!n||0===n.length)return!0;const o=Pe(e);return!!o&&n.includes(o)}(a,t))}).map(t=>Nt(t,e)):e.filter(e=>!Ze(e)).map(t=>Nt(t,e))}function Ft(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 Bt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function At(e){let t=Number.MAX_SAFE_INTEGER;for(const n of e){if(!n.commence_time)continue;const e=new Date(n.commence_time).getTime();!Number.isNaN(e)&&e<t&&(t=e)}return t}function Mt(e){const t=Object.entries(e).sort(([,e],[,t])=>At(e)-At(t));return Object.fromEntries(t)}function St(e,t,n){return dt(t,e,n)?Mt(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)):Mt(function(e){return e.reduce((e,t)=>{const n=t.home_team&&!t.away_team?t.home_team:`${t.home_team} vs ${t.away_team}`;return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e))}function Lt(e){const t=[];for(const n of e){const e=n.home_team&&n.away_team&&!ot(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 zt(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}var Pt=(0,a.forwardRef)(function({theme:e,variant:t="primary",size:n="md",disabled:o,block:r,radius:l="md",onPress:s,onDoubleClick:i,type:d="button",className:u,style:m,children:p,ariaLabel:h},f){const x=T(e),g=e.colors,[y,b]=a.default.useState(!1),[w,k]=a.default.useState(!1),[v,N]=a.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:s,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})}),Tt=a.default.createContext(Xe),Ot=Tt.Provider;function Dt(){return a.default.useContext(Tt)}var Et={xs:{padding:"3px 10px",fontSize:11},sm:{padding:"6px 14px",fontSize:13},md:{padding:"8px 18px",fontSize:14}};function jt(e,t,n,o,r,l){const a=T(e);return{appearance:"none",padding:Et[o].padding,borderRadius:a.radius.sm,fontSize:Et[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 ${a.motion.durationFast}ms ${a.motion.easing}, color ${a.motion.durationFast}ms ${a.motion.easing}, border-color ${a.motion.durationFast}ms ${a.motion.easing}`,opacity:r?.5:1,...l?{flex:1}:null}}function Yt({theme:e,value:t,onYes:n,onNo:o,size:r="md",stretch:l,disabled:a,yesLabel:s,noLabel:i,className:d,style:u}){const m=Dt();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:a,onClick:a?void 0:n,style:jt(e,"yes"===t,R(e),r,a,l),children:s??m.yes}),(0,c.jsx)("button",{type:"button","aria-pressed":"no"===t,disabled:a,onClick:a?void 0:o,style:jt(e,"no"===t,G(e),r,a,l),children:i??m.no})]})}function Ht({theme:e,value:t,size:n="md",style:o}){const r=T(e),l=Dt();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?l.yes:l.no})}var Rt=/\b(YES|NO)\b/,Gt={verticalAlign:"-2px",margin:"0 1px"};function Wt(e,t,n){return e.split(Rt).map((e,o)=>"YES"===e||"NO"===e?(0,c.jsx)(Ht,{theme:t,value:"YES"===e?"yes":"no",size:"sm",style:Gt},`${n}-${o}`):(0,c.jsx)(a.default.Fragment,{children:e},`${n}-${o}`))}function It({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)(a.default.Fragment,{children:Wt(e,t,n)},n):(0,c.jsx)(Ht,{theme:t,value:e.tone,size:"sm",style:Gt},n))})}function Ut({panel:e,theme:t,dividends:n,bodyFont:o,headingFont:r,className:l=""}){const s=t.colors,i=t.brand?.accent??s.primaryText,d=K(t),[u,m]=(0,a.useState)("learn"),[p,h]=(0,a.useState)(()=>e.demoLegs.map(()=>null)),[f,x]=(0,a.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?s.primary:"transparent",color:e?s.primaryText:s.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:s.border,backgroundColor:s.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)(It,{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(s.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:s.primary,color:i,fontFamily:r,boxShadow:`0 2px 0 ${M(s.primary,.35)}`},children:n+1}),(0,c.jsx)("b",{className:"block text-[14.5px] font-bold leading-snug",style:{color:s.primary,fontFamily:r},children:e.title}),(0,c.jsx)("span",{className:"text-[13px] leading-snug",style:{color:s.textMuted},children:Wt(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:s.primary,cursor:"pointer",fontFamily:r},children:"Try a quick demo →"})]}),"try"===u&&(0,c.jsxs)("div",{className:"overflow-hidden rounded-xl border",style:{borderColor:s.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:s.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?s.primary:M(s.border,.9),color:C?s.primaryText:s.textMuted,backgroundColor:C?s.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(s.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?s.success:s.error,color:"#fff",animation:"ynhtp-in .28s ease both",animationDelay:100*n+"ms"}:{border:`1.5px solid ${p[n]?s.primary:s.border}`,color:p[n]?s.primary:s.textMuted},children:f?o?"✓":"✗":n+1}),(0,c.jsx)("span",{className:"min-w-0 text-[13px] font-semibold leading-snug",style:{color:s.text},children:e.question})]}),f?(0,c.jsx)("span",{style:{animation:"ynhtp-in .28s ease both",animationDelay:100*n+"ms"},children:(0,c.jsx)(Ht,{theme:t,size:"sm",value:e.outcome})}):(0,c.jsx)(Yt,{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(s.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?s.successBg:s.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?s.successText:s.errorText,color:k.won?s.successText:s.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?s.successText:s.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:s.textMuted,cursor:"pointer"},children:"↺ Try again"})]}):(0,c.jsx)(Pt,{theme:t,size:"sm",block:!0,disabled:!b,onPress:()=>x(!0),children:"Run the demo"})})]})]})}function $t({open:e,onClose:t,title:n="How to Play",content:o,panel:r,theme:l,extra:s,colors:i,bodyFont:d,headingFont:u}){const m=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!e)return;const n=e=>{"Escape"===e.key&&t()};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e,t]),(0,a.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)(Ut,{panel:r,theme:l,dividends:s,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})}),s&&(0,c.jsx)("div",{className:"px-4 sm:px-6 pb-5",children:s})]})}),(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 Kt({content:e,panel:t,theme:n,extra:o,title:r,label:l="How to Play",variant:s="pill",colors:i,bodyFont:d,headingFont:u,className:m=""}){const[p,h]=a.default.useState(!1);return e?.trim()||t&&n||o?(0,c.jsxs)(c.Fragment,{children:["icon"===s?(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)($t,{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 Zt({label:e,category:t,icon:n,theme:o,disabled:r=!1}){const l=o.colors,a=fe(o),s=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:s,fontFamily:a},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)(qt,{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 qt({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 Vt({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 Xt({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 Qt({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 Jt({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 _t({theme:e,itemCount:t=0,contentClassName:n="gap-2 px-0.5 py-0.5",fadeColor:o,hideArrows:r=!1,className:l="",children:s}){const i=e.colors,d=(0,a.useRef)(null),[u,m]=(0,a.useState)(!1),[p,h]=(0,a.useState)(!1),[f,x]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if("undefined"==typeof window||!window.matchMedia)return;const e=window.matchMedia("(pointer: coarse)"),t=()=>x(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);const g=(0,a.useCallback)(()=>{const e=d.current;if(!e)return;const t=e.scrollWidth-e.clientWidth;m(t>2&&e.scrollLeft>2),h(e.scrollLeft<t-2)},[]);(0,a.useEffect)(()=>{g(),window.addEventListener("resize",g);const e=d.current;let t;if(e&&"undefined"!=typeof ResizeObserver){t=new ResizeObserver(g),t.observe(e);for(const n of Array.from(e.children))t.observe(n)}return()=>{window.removeEventListener("resize",g),t?.disconnect()}},[g,t]);const y=e=>{const t=d.current;t&&t.scrollBy({left:e*Math.round(.7*t.clientWidth),behavior:"smooth"})},b=(0,a.useRef)({down:!1,lastX:0,travelled:0}),w=()=>{b.current.down=!1},k=(0,a.useCallback)(()=>b.current.travelled>4,[]),v=i.background??"#fff",N=o??v,C={width:44,height:44,cursor:"pointer",background:"none",border:"none",padding:0},F={width:26,height:26,border:`1px solid ${i.border}`,backgroundColor:v,color:i.primary,boxShadow:"0 4px 10px -4px rgba(15, 76, 92, 0.55)"};return(0,c.jsxs)("div",{className:`relative min-w-0 ${l}`,children:[u&&(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, ${N}, transparent)`}}),u&&!f&&!r&&(0,c.jsx)("button",{type:"button","aria-label":"Scroll left",onClick:()=>y(-1),className:"absolute top-1/2 z-[3] flex -translate-y-1/2 items-center justify-center active:scale-90",style:{...C,left:-11},children:(0,c.jsx)("span",{className:"flex items-center justify-center rounded-full",style:F,children:(0,c.jsx)(Xt,{size:14,className:"rotate-180"})})}),p&&(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, ${N}, transparent)`}}),p&&!f&&!r&&(0,c.jsx)("button",{type:"button","aria-label":"Scroll right",onClick:()=>y(1),className:"absolute top-1/2 z-[3] flex -translate-y-1/2 items-center justify-center active:scale-90",style:{...C,right:-11},children:(0,c.jsx)("span",{className:"flex items-center justify-center rounded-full",style:F,children:(0,c.jsx)(Xt,{size:14})})}),(0,c.jsx)("div",{ref:d,onScroll:g,onPointerDown:e=>{"touch"!==e.pointerType&&(b.current={down:!0,lastX:e.clientX,travelled:0})},onPointerMove:e=>{const t=b.current;if(!t.down)return;const n=t.lastX-e.clientX;t.lastX=e.clientX,t.travelled+=Math.abs(n),d.current&&(d.current.scrollLeft+=n)},onPointerUp:w,onPointerCancel:w,onPointerLeave:w,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:s(k)})]})}function en(e,t){return Array.isArray(e)?null==t?0===e.length:e.includes(t):t===e}function tn(e,t,n,o){return{className:"flex-none whitespace-nowrap rounded-full px-2.5 py-1 text-[11px] font-bold tracking-[-0.01em] transition-colors active:translate-y-px",style:{fontFamily:o,border:`1px solid ${e?t.primary:t.border}`,backgroundColor:e?t.primary:n,color:e?t.primaryText:t.primary,cursor:"pointer"}}}var nn="text-[9px] font-extrabold uppercase tracking-[0.12em]";function on({groups:e,theme:t,bodyFont:n,className:o=""}){const r=t.colors,l=r.background??"#fff";return 0===e.length?null:(0,c.jsx)(_t,{theme:t,itemCount:e.length,className:o,contentClassName:"items-center gap-1.5 px-0.5 py-0.5",children:t=>e.map((e,o)=>(0,c.jsxs)(a.default.Fragment,{children:[o>0&&(0,c.jsx)("span",{"aria-hidden":!0,className:"h-4 w-px flex-none self-center",style:{backgroundColor:r.border}}),e.label&&(0,c.jsx)("span",{className:`flex-none self-center ${nn}`,style:{color:r.textMuted,fontFamily:n},children:e.label}),e.options.map(o=>{const a=en(e.value,o.value);return(0,c.jsx)("button",{type:"button",onClick:()=>{t()||e.onChange(o.value)},...tn(a,r,l,n),children:o.label},o.value??"__all")})]},e.label??o))})}function rn({groups:e,theme:t,bodyFont:n,className:o=""}){const r=t.colors,l=r.background??"#fff";return 0===e.length?null:(0,c.jsx)("div",{className:`flex flex-col gap-2.5 ${o}`,children:e.map((e,t)=>(0,c.jsxs)("div",{className:"flex flex-col gap-1.5",children:[e.label&&(0,c.jsx)("span",{className:nn,style:{color:r.textMuted,fontFamily:n},children:e.label}),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",children:e.options.map(t=>(0,c.jsx)("button",{type:"button",onClick:()=>e.onChange(t.value),...tn(en(e.value,t.value),r,l,n),children:t.label},t.value??"__all"))})]},e.label??t))})}var ln=new Map,an=new Map;function sn(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 cn({iconUrl:e,width:t,height:n,iconColor:o,accentColor:r,ariaLabel:l,style:s}){const i=Ne(e),[d,u]=a.default.useState(()=>i??ln.get(e)??null);a.default.useEffect(()=>{const t=Ne(e);if(t)return void u(t);if(ln.has(e))return void u(ln.get(e));let n=!1;return function(e){const t=ln.get(e);if(void 0!==t)return Promise.resolve(t);const n=an.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=>(ln.set(e,t),an.delete(e),t)).catch(t=>{throw an.delete(e),t});return an.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,...s};return d?(0,c.jsx)("img",{src:sn(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 dn({iconUrl:e,gameName:t,onPress:n,size:o=120,brandColor:r="#0F4C5C",cardColor:l="#DDD9D2",iconColor:a,accentColor:s,captionColor:i="#14687C",className:d,ariaLabel:u}){const m=(t||"").toUpperCase(),p=o/360,h=a??l,f=I(r,s,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)(cn,{iconUrl:e,width:"100%",height:"100%",iconColor:h,accentColor:f})})]});return n?(0,c.jsx)(un,{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 un({size:e,onPress:t,className:n,ariaLabel:o,renderInner:r}){const[l,s]=(0,a.useState)(!1),[i,d]=(0,a.useState)(!1),u=i?"scale(0.96)":"scale(1)";return(0,c.jsx)("button",{type:"button",onClick:t,"aria-label":o,className:n,onMouseEnter:()=>s(!0),onMouseLeave:()=>{s(!1),d(!1)},onMouseDown:()=>d(!0),onMouseUp:()=>d(!1),onTouchStart:()=>d(!0),onTouchEnd:()=>d(!1),onBlur:()=>{d(!1),s(!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 mn(e){return e.selectionCard??e.backgroundAlt}function pn({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 hn({color:e="#ffffff",size:t=18}){return(0,c.jsx)(pn,{color:e,size:t,label:"Loading"})}function fn({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 xn({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 gn({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:mn(e),borderColor:e.border},children:[(0,c.jsx)(fn,{color:e.textMuted,className:"h-5 w-[11rem] max-w-full"}),(0,c.jsx)(fn,{color:e.textMuted,className:"h-3 w-24 max-w-[70%]"})]},n))})}function yn({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-2 py-3 sm:px-3 sm:py-4 w-full min-w-0",style:{backgroundColor:mn(e),borderColor:e.border},children:[(0,c.jsx)(fn,{color:e.textMuted,className:"h-14 w-14 sm:h-16 sm:w-16 rounded-xl shrink-0"}),(0,c.jsxs)("div",{className:"flex w-full min-w-0 flex-col items-center gap-1.5",children:[(0,c.jsx)(fn,{color:e.textMuted,className:"h-3.5 w-20 max-w-full"}),(0,c.jsx)(fn,{color:e.textMuted,className:"h-2.5 w-12 max-w-[80%]"})]})]},n))})}function bn({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:mn(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)(fn,{color:e.textMuted,className:"h-4 w-44 max-w-full"})}),(0,c.jsx)(fn,{color:e.textMuted,className:"h-3 w-40 max-w-[80%] mt-2"})]}),(0,c.jsx)(fn,{color:e.textMuted,className:"h-5 w-5 rounded shrink-0"})]},n))})}function wn({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:mn(e)},"aria-hidden":!0,children:[(0,c.jsx)(fn,{color:e.textMuted,className:"rounded-2xl",style:{width:t,height:t}}),(0,c.jsx)(fn,{color:e.textMuted,className:"h-3 w-11 mt-3"}),(0,c.jsx)(fn,{color:e.textMuted,className:"h-5 w-36 max-w-[80%] mt-2"}),(0,c.jsx)(fn,{color:e.textMuted,className:"h-3 w-48 max-w-[90%] mt-3"}),(0,c.jsx)(fn,{color:e.textMuted,className:"h-3 w-40 max-w-[75%] mt-1.5"})]})}function kn({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)(fn,{color:e.textMuted,className:"h-[38px] w-full rounded-full"},t))})}function vn({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)(kn,{colors:e}),(0,c.jsx)(wn,{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)(fn,{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)(fn,{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)(fn,{color:e.textMuted,className:"h-[52px] w-[52px] rounded-2xl"}),(0,c.jsx)(fn,{color:e.textMuted,className:"h-2.5 w-12"})]},n))})]})]})]})}function Nn({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)(fn,{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:mn(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)(fn,{color:e.textMuted,className:"h-4 w-44 max-w-[80%]"}),(0,c.jsx)(fn,{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)(fn,{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)(fn,{color:e.textMuted,className:"h-7 w-11 sm:h-8 sm:w-12 rounded-lg"}),(0,c.jsx)(fn,{color:e.textMuted,className:"h-7 w-11 sm:h-8 sm:w-12 rounded-lg"})]})]},n))})]},o))})]})}function Cn({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)(fn,{color:e.textMuted,className:"h-3.5 w-[4.25rem]"}),(0,c.jsx)(fn,{color:e.textMuted,className:"h-5 min-w-[1.25rem] w-5 rounded-full"})]},t))})}function Fn({colors:e}){return(0,c.jsxs)("div",{className:"rounded-lg border overflow-hidden w-full",style:{borderColor:e.border,backgroundColor:mn(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)(fn,{color:e.textMuted,className:"h-[18px] w-40 max-w-[75%]"}),(0,c.jsx)(fn,{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)(fn,{color:e.textMuted,className:"h-3.5 w-10"}),(0,c.jsx)(fn,{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)(fn,{color:e.textMuted,className:"h-3.5 w-[88%]"}),(0,c.jsx)(fn,{color:e.textMuted,className:"h-3 w-[70%]"})]}),(0,c.jsx)(fn,{color:e.textMuted,className:"h-5 w-10 rounded shrink-0"})]},t))})]})}function Bn({colors:e,rows:t=2}){return(0,c.jsxs)("div",{className:"w-full flex flex-col","aria-hidden":!0,children:[(0,c.jsx)(Cn,{colors:e}),(0,c.jsx)("div",{className:"space-y-3 w-full",children:Array.from({length:t}).map((t,n)=>(0,c.jsx)(Fn,{colors:e},n))})]})}function An({colors:e,bodyFont:t,message:n,className:o="",variant:r="category",showLogoArea:l=!1,gameCardCount:a=3,categoryCount:s=2,showTierTabs:i=!1}){const d=(()=>{switch(r){case"sport":return(0,c.jsx)(yn,{colors:e,count:Math.max(s,2)});case"event":return(0,c.jsx)(bn,{colors:e});case"games":return(0,c.jsx)(vn,{colors:e,count:a,showTierTabs:i});case"propositions":return(0,c.jsx)(Nn,{colors:e});case"entries":return(0,c.jsx)(Bn,{colors:e,rows:2});default:return(0,c.jsx)(gn,{colors:e,count:s})}})(),u=n?.trim()||"Loading";return(0,c.jsx)(xn,{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 Mn(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function Sn(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function Ln(e){if(!e||e.quick_pick_only)return!1;const t=Sn(e.selection_scope);if("samegamemulti"===Sn(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(Sn);return n.includes("samegame")||n.includes("samegamemulti")}function zn(e){return(e.eventId??e.event_id)?.trim()||null}function Pn(e){const t=new Map;for(const n of e){if(!En(n))continue;const e=zn(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=Tn(o.homeTeam,n.home_team),o.awayTeam=Tn(o.awayTeam,n.away_team),o.sport=Tn(o.sport,n.sport),o.league=Tn(o.league,n.league),o.commenceTime=Dn(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=On(e.commenceTime),o=On(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function Tn(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function On(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function Dn(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=On(e),r=On(n);return r!==o?r<o?n:e:e.localeCompare(n)<=0?e:n}function En(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function jn(e,t){return t?e.filter(e=>En(e)&&zn(e)===t):[]}function Yn(e,t){return!!t&&e.length>0&&e.every(e=>En(e)&&zn(e)===t)}var Hn={signature:1,premier:2,exclusive:3},Rn=[{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 Gn(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function Wn(e,t){return e.filter(e=>Gn(e)===t)}function In(e){const t=new Set(e.map(Gn));return Rn.filter(e=>t.has(e.level))}function Un(e){return In(e)[0]?.id??"signature"}var $n=.21875;function Kn(e){return null==e||Math.abs(e-.21875)<5e-5?$n:e}var Zn=[1,5,10,20,50],qn=[4,12];function Vn(e){return(e??"").trim().toLowerCase()}var Xn={straight:"mirror",double:"double_mirror",triple:"triple_mirror"};function Qn(e){if(!e||e.quick_pick_only)return!1;const t=Vn(e.rule);return Object.values(Xn).includes(t)}function Jn(e){const t=Vn(e?.rule);return Object.keys(Xn).find(e=>Xn[e]===t)??"straight"}function _n(e){if(!Qn(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??qn[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??qn[1],o=to(Jn(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),a=e.max_bet??null,s=Zn.filter(e=>e>=l&&(null===a||e<=a));return{variant:o,legOptions:r,defaultLegs:r.includes(8)?8:r[Math.floor(r.length/2)],defaultStake:Math.min(Math.max(20,l),a??20),minStake:l,maxStake:a,quickStakes:s,tagline:o.tagline,operatorMargin:Kn(e.operator_margin),perLegProbability:e.payout_structure?.per_leg_probability??.5}}var eo=[{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 to(e){return eo.find(t=>t.id===e)??eo[0]}function no(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)}function oo(e,t,n,o){const r=to(e),l=t*(1-Kn(o?.operatorMargin)),a=Math.round(Math.pow(2,n)),s=[];let i=0;for(let c=0;c<r.depth;c++){const e=no(n,c),t=n-c===c?e:2*e;i+=t,s.push({distance:c,label:r.tierNames[c]??`Tier ${c+1}`,correctCounts:n-c===c?[c]:[n-c,c],prize:Math.round(l/r.depth*a/(2*e)),outcomes:t})}return{variant:r.id,legs:n,stake:t,tiers:s,totalOutcomes:a,winningOutcomes:i,oddsOneIn:Math.round(a/i*1e4)/1e4}}var ro=[4,12],lo=[5,10,20,50];function ao(e){return!!e&&!e.quick_pick_only&&"safety_net"===(e.rule??"").trim().toLowerCase()}function so(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 io(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)}function co(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 uo(e,t,n,o){const r=Math.max(0,Math.min(n,t)),l=e*o.perfectMultiple*Math.pow(2,t-o.perfectBaseLegs),a=r>0?e*(1-o.margin)*o.nearMissBudgetFraction/r:0,s=Math.pow(1/o.perLegProbability,t),i=[];let c=co(t,0);for(let d=1;d<=r;d+=1)c+=co(t,d),i.push(io(a*s/c,o.roundTo));return{legs:t,stake:e,allowedMisses:r,perfect:l,nearMiss:i,sweep:l+i.reduce((e,t)=>e+t,0)}}function mo(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 po(e){return e.includes(8)?8:e[Math.floor(e.length/2)]}function ho(e){return e.toLowerCase().replace(/[^a-z]+/g," ").trim()}function fo(e,t){const n=ho(t);return e.permitted_rules?.find(e=>ho(e.name??"").includes(n))??null}function xo(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 go(e){if(!ao(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),r=fo(e,"Extra Shot"),l=fo(e,"Double Shot"),a=xo(o,r,4).filter(e=>e>1),s=xo(o,l,6).filter(e=>e>2);if(0===a.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:a,defaultLegs:po(a),ruleId:r?.id??null}],c=!e.permitted_rules?.length||!!l;s.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:s,defaultLegs:po(s),ruleId:l?.id??null});const d=Math.max(e.min_bet??5,.01),u=e.max_bet??null,m=lo.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:so(e)}}function yo(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function bo(e,t,n){const o=Math.max(0,e-t),r=uo(20,e,o,n),l=[];for(let a=0;a<=o;a+=1){const t=Math.round(mo(r,a));l.push({misses:a,label:`${e-a}/${e}`,multiplier:t/20,payout20:t})}return l}function wo(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:bo(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:bo(e,e-2,t),expectedCorrect:e-2}]}function ko(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:wo(t,so(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:yo(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 vo(e){return null!=ko(e)}var No=[1,5,10,20,50,100],Co=[4,12];function Fo(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function Bo(e,t,n){const o=n?.operatorMargin??.2,r=n?.perLegProbability??.5,l=Math.round(Math.pow(1/r,t)),a=(1-o)*Math.pow(1/r,t);return{legs:t,stake:e,prize:Math.round(e*a*100)/100,multiple:a,oddsOneIn:l}}function Ao(e){if(!Fo(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Co[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Co[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,a=No.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:a,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 Mo=[500,1e3,2500,5e3,7500,1e4,12500,15e3],So=[12,11,10,9,8,7,6];function Lo(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function zo(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),a=zo(r),s=l?r:zo(.96*r);return{legs:t,exactStake:a,stake:s,margin:1-e/(s*o),multiple:e/s,oddsOneIn:o,discounted:!l}}function To(e,t=So){return{dividend:e,rungs:t.map(t=>Po(e,t))}}function Oo(e,t){if(!Lo(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,r=So.filter(e=>e>=n&&e<=o);if(0===r.length)return null;const l=t?.dividends??Mo;return{dividends:l.map(e=>To(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."}}var Do=[25,50,75,100],Eo=[{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 jo(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function Yo(e,t){return Math.round(e*t/50)}function Ho(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:Yo(o,t),cumulative:Yo(n,t)}))}function Ro(e,t){return Yo(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function Go(e){if(!jo(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=Eo.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??Do[0],a=e.max_bet??Do[Do.length-1],s=Do.filter(e=>e>=l&&e<=a);return{ladders:r,defaultLegs:r.some(e=>8===e.legs)?8:r[Math.floor(r.length/2)].legs,defaultStake:s.includes(50)?50:s[0]??50,stakes:s.length>0?s:Do,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}function Wo(e){return!!e&&!e.quick_pick_only&&"six_again"===(e.rule??"").trim().toLowerCase()}var Io={golden_point:!1,captains_challenge:!1};function Uo(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:$o(t,n)}}function $o(e,t){return e.captains_challenge?e.golden_point?t.ruleIds.goldenChallenge:t.ruleIds.challenge:t.ruleIds.base}function Ko(e,t){return e.permitted_rules?.find(e=>t((e.name??"").toLowerCase().replace(/[^a-z]+/g," ").trim()))??null}function Zo(e){if(!Wo(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=Ko(e,e=>e.includes("challenge")&&!e.includes("golden")),a=Ko(e,e=>e.includes("challenge")&&e.includes("golden")),s=Ko(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:s?.id??e.default_rule_id??null,challenge:l?.id??null,goldenChallenge:a?.id??null}}}function qo(e){return e?.quick_pick_only?"quick_pick":Fo(e)?"game_set":Lo(e)?"pick_your_dividend":jo(e)?"ladder":Qn(e)?"mirror":ao(e)?"safety_net":Wo(e)?"six_again":Ln(e)?"selections":vo(e)?"rule_setup":"selections"}function Vo(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(Ln(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 Xo(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||Ln(e)||Vo(e))}function Qo(e){switch(qo(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 Jo(e,t){return _o(e)&&t&&t>0?t:null}function _o(e){switch(qo(e)){case"game_set":case"pick_your_dividend":case"ladder":case"mirror":case"safety_net":case"six_again":return!0;default:return Vo(e)}}function er(e){const t=qo(e);return"six_again"===t||"pick_your_dividend"===t}function tr(e){return"six_again"===qo(e)?"Set by your ticket and boosts.":"Set by your dividend ladder rung."}function nr(e,t,n,o){if(!e||t<=0||n<=0)return 0;switch(qo(e)){case"game_set":return or(Bo(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize,e);case"mirror":return or(oo(Jn(e),n,t,{operatorMargin:e.operator_margin??void 0}).tiers[0]?.prize??0,e);case"pick_your_dividend":return function(e,t,n=Mo){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);case"ladder":{const o=Eo.find(e=>e.legs===t);return o?or(Ro(o,n),e):0}case"safety_net":{const r=null!=o?.expectedCorrect&&o.expectedCorrect>0?Math.min(2,Math.max(0,t-o.expectedCorrect)):1;return or(uo(n,t,r,so(e)).sweep,e)}default:{if("exact"!==(e.rule??"").trim().toLowerCase())return 0;const o=function(e,t,n){const o=e.payout_structure;if(!o)return 0;const r=o.results??o.values;if(!r)return 0;const l=r[String(t)];return void 0!==l?l*n:0}(e,t,n);if(o>0)return or(o,e);const r=e.payout_structure?.expression??e.payout_structure?.formula??"";return/2\s*\^/.test(r)?or(Bo(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize,e):0}}}function or(e,t){return!1===t?.round_payouts?e:io(e,t?.payout_structure?.round_to??1)}function rr(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,a=n.length>0?n:l?zt(o,r):[],s=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||s.set(e,{count:e,payout:Number.isFinite(t)?t:0,betAmount:Number.isFinite(n)&&n>0?n:20})}for(const f of a){const e=Number(f);s.has(e)||s.set(e,{count:e,payout:0,betAmount:20})}const i=Array.from(s.values()).sort((e,t)=>e.count-t.count),c=a.length>0?Math.max(...a.map(Number)):0,d=Lo(e)?Oo(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(t=>({count:t.count,payout20:t.payout>0&&t.betAmount>0?or(t.payout/t.betAmount*20,e):nr(e,t.count,20)})),p=ko(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:a.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 lr({tiers:e,modes:t,pydDividends:n,onPlayCount:o,minBet:r=1,maxBet:l=null,colors:s,bodyFont:i,headingFont:d}){const u=e=>Math.min(Math.max(e,r),l??1/0),[m,p]=(0,a.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:s.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 ${s.border}`,backgroundColor:s.background??"#fff",color:s.text,fontSize:11,fontWeight:600,fontStyle:"normal",fontFamily:i}})]}),"bet",null!=l?` (${Qe(r)}–${Qe(l)})`:` (min ${Qe(r)})`,"."]}),w={marginTop:10,borderRadius:14,border:`1px solid ${s.border}`,backgroundColor:s.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:s.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 ${s.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:s.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:s.textMuted,fontSize:11,flex:1},children:[e.label," correct"]}),(0,c.jsx)("span",{style:{fontWeight:700,color:s.heading??s.text,fontSize:12},children:Qe(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 ${s.border}`},children:[(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:s.primary},children:"Dividend"}),(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:s.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:s.heading??s.text,fontSize:12},children:Qe(e.dividend)}),(0,c.jsx)("span",{style:{fontWeight:600,color:s.text,fontSize:12},children:Qe(e.stakeFrom)})]},e.dividend)),(0,c.jsx)("p",{className:"mt-2 text-[10px] italic",style:{color:s.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 ${s.border}`},children:[(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:s.primary},children:"Legs played"}),(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:s.primary},children:"Payout"})]}),e.map(e=>{const t=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{style:{fontWeight:600,color:o?s.primary:s.text,fontSize:12},children:[e.count," legs"]}),(0,c.jsx)("span",{style:{fontWeight:600,color:e.payout20>0?s.text:s.textMuted,fontSize:12},children:e.payout20>0?Qe(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 ar({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 sr({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)(cn,{iconUrl:e,width:"100%",height:"100%",iconColor:o,accentColor:r})})]})}function ir({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:r,iconColor:l,accentColor:s,captionColor:i,bodyFont:u,legOptions:m,onPick:p,colors:h,menuShadow:f}){const[x,g]=(0,a.useState)(!1),[y,b]=(0,a.useState)(null),w=(0,a.useRef)(null),k=(0,a.useRef)(null);(0,a.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)(dn,{iconUrl:e,gameName:t,onPress:()=>g(e=>!e),size:n,brandColor:o,cardColor:r,iconColor:l,accentColor:s,captionColor:i}),v]})}function cr({games:e,selectedGame:t,onSelectGame:n,loading:o,error:r,theme:l,colorScheme:s,showTier:i=!1,showCategory:d=!1,showTierFilter:u=!1,onPropositionCountChange:m,onPropositionCountSelected:p,onQuickPickGame:h,maxPayouts:f}){const x=pe(l,s),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,a.useMemo)(()=>function(e){const t=new Set(e.filter(e=>Qn(e)&&Vn(e.rule)===Xn.straight).map(Gn));return e.filter(e=>!(Qn(e)&&Vn(e.rule)!==Xn.straight&&t.has(Gn(e))))}(e),[e]),B=(0,a.useMemo)(()=>In(F),[F]),[A,S]=(0,a.useState)(()=>Un(F));(0,a.useEffect)(()=>{0!==B.length&&(B.some(e=>e.id===A)||S(B[0].id))},[B,A]);const L=(0,a.useMemo)(()=>!u||B.length<=1?F:Wn(F,Hn[A]),[F,u,B.length,A]),z=(0,a.useRef)(null),P=(0,a.useRef)(null),[T,E]=(0,a.useState)(0),[H,R]=(0,a.useState)(0),G=(e,t)=>{e.quick_pick_only&&h&&t>0?h(e,t):(t>0&&!Ln(e)&&m?.(t),n(e),p?.())},I=e=>{G(e,rr(e,f?.[e.id]).maxLegCount)};(0,a.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,a.useRef)(()=>{}),$=(0,a.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,a=Math.abs(l.offsetLeft+l.offsetWidth/2-t);a<o&&(o=a,n=r)}),R(n)},e.addEventListener("scroll",U.current,{passive:!0}),U.current())},[]);(0,a.useEffect)(()=>{U.current()},[T,L.length]),(0,a.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)(An,{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)(ar,{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=Ft(e),o=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>Bt[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),a=ct(e),s=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}=rr(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)(ir,{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)(dn,{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)(Kt,{variant:"icon",panel:ze(e),content:s||"Pick outcomes and land the payout for this game.",theme:x,title:Z(e),label:`How to play ${Z(e)}`,extra:(0,c.jsx)(lr,{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}),s&&(0,c.jsx)("p",{className:"mt-2 leading-relaxed",style:{fontSize:12.5,color:g.textMuted,maxWidth:"34ch"},children:s}),a.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:["★ ",a.progressive?a.amount>0?Qe(a.amount):a.limit>0?`Up to ${Qe(a.limit)}`:"Jackpot":Qe(a.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(${Ke(L.length,T)}, minmax(0, 1fr))`},children:L.map((e,t)=>{const n=Ft(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)(sr,{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 dr={today:"Today",weekend:"This weekend",next7:"Next 7 days"},ur=["today","weekend","next7"];function mr(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function pr(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:mr(n,1)};case"weekend":{const e=n.getDay(),t=mr(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:mr(t,2)}}case"next7":return{start:n,end:mr(n,7)}}}(t,n);return o>=r&&o<l}var hr=["totals","spread","player"],fr={totals:"Total",spread:"Spread",player:"Player"},xr={totals:"Totals",spread:"Spreads",player:"Player props"},gr={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 yr(e,t){return t?`${gr[e]} (taken)`:gr[e]}var br=/racing|greyhound|harness|trots/,wr=["spread","handicap","margin","line","h2h","head_to_head","moneyline","winner","result"];function kr(e,t,n=""){const o=e.toLowerCase(),r=t.toLowerCase();return br.test(o)||br.test(n.toLowerCase())?null:o.includes("player")?"player":o.includes("total")||o.includes("over_under")?"totals":wr.some(e=>o.includes(e))||/\bwin(s)?\b/.test(r)?"spread":/\btotal\b/.test(r)?"totals":null}function vr(e){return kr(Pe(e)??"",Te(e),e.sport??"")}function Nr(e,t){if(De(e)){const n=Ye(e,t),o=new Set;for(const t of n?.legs??[]){const n=t.prop?vr(t.prop):kr("",t.text,e.sport??"");n&&o.add(n)}return[...o]}const n=vr(e);return n?[n]:[]}function Cr(e){return zn(e)||[e.home_team,e.away_team].filter(Boolean).join(" vs ").trim()||null}var Fr=new Set;function Br(e,t,n){const o=new Map,r=new Map;for(const a of e){const e=Cr(a);if(!e)continue;const l=Nr(a,n);if(l.length>0){const t=r.get(e)??new Set;for(const e of l)t.add(e);r.set(e,t)}if(a.id in t)for(const t of l){const n=o.get(e)??new Map;n.has(t)||n.set(t,a.id),o.set(e,n)}}const l=e=>{const t=e?o.get(e):void 0;return t?new Set(t.keys()):Fr};return{isCapped:e=>{const t=Cr(e);if(!t)return!1;const r=o.get(t);return!!r&&Nr(e,n).some(t=>{const n=r.get(t);return void 0!==n&&n!==e.id})},filledFor:l,slotsFor:e=>{const t=e?r.get(e):void 0;if(!t)return[];const n=l(e);return hr.filter(e=>t.has(e)).map(e=>({family:e,label:fr[e],filled:n.has(e)}))}}}function Ar(e,t,n){const o=[],r=new Map;for(const l of e){if(o.length>=t)break;const e=Cr(l),a=e?Nr(l,n):[];if(e&&a.length>0){const t=r.get(e)??new Set;if(a.some(e=>t.has(e)))continue;for(const e of a)t.add(e);r.set(e,t)}o.push(l)}return o}var Mr=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,a=l,s=!l&&!n?.idempotent,i=`${r} ${o}`;if(a){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=a?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 a&&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(a){const t=e.headers.get("ETag")??void 0;this.cache.set(i,{at:Date.now(),value:n,etag:t})}return n})();return a?(this.inflight.set(i,d),d.catch(()=>{}).finally(()=>{this.inflight.delete(i)})):s&&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,a]of Object.entries(o.payload||{}))r[Number(l)]=a;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 Sr(e,t,n){const[o,r]=(0,a.useState)([]),[l,s]=(0,a.useState)(null),[i,c]=(0,a.useState)(!n?.skip),[d,u]=(0,a.useState)(null),m=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",p=(0,a.useRef)(t);p.current=t;const h=n?.skip??!1,f=(0,a.useCallback)(async()=>{if(!h)try{c(!0),u(null);const t=await e.getGames(p.current);r(t.games),s(t.howToPlayMarkdown)}catch(t){u(t instanceof Error?t.message:"Failed to fetch games")}finally{c(!1)}},[e,m,h]);return(0,a.useEffect)(()=>{f()},[f]),{games:o,howToPlayMarkdown:l,loading:i,error:d,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await f()},[e,f])}}function Lr(e,t,n){const[o,r]=(0,a.useState)([]),[l,s]=(0,a.useState)(!n?.skip),[i,c]=(0,a.useState)(null),d=n?.skip??!1,u=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",m=(0,a.useRef)(t);m.current=t;const p=(0,a.useCallback)(async()=>{if(!d)try{s(!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{s(!1)}},[e,u,d]);return(0,a.useEffect)(()=>{p()},[p]),{propositions:o,loading:l,error:i,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await p()},[e,p])}}function zr(e,t){const[n,o]=(0,a.useState)([]),[r,l]=(0,a.useState)(!t?.skip),[s,i]=(0,a.useState)(null),c=t?.skip??!1,d=(0,a.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,a.useEffect)(()=>{d()},[d]),{sports:n,loading:r,error:s,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await d()},[e,d])}}function Pr(e,t,n){const[o,r]=(0,a.useState)([]),[l,s]=(0,a.useState)(!n?.skip),[i,c]=(0,a.useState)(null),d=n?.skip??!1,u=t?`${t.user_id??""}_${t.pending??""}`:"",m=(0,a.useRef)(t);m.current=t;const p=(0,a.useCallback)(async()=>{if(!d)try{s(!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{s(!1)}},[e,u,d]);return(0,a.useEffect)(()=>{p()},[p]),{entries:o,loading:l,error:i,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await p()},[e,p])}}function Tr(e,t,n){const[o,r]=(0,a.useState)({}),[l,s]=(0,a.useState)(!1),i=n?.skip??!1,c=n?.betAmount,d=(0,a.useRef)(new Set);return(0,a.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 s(!0),(async()=>{try{const t=await e.getGamesMaxPayouts(n.map(e=>e.id),c);l||r(e=>({...e,...t}))}catch{}finally{l||s(!1)}})(),()=>{l=!0}},[e,t.map(e=>e.id).join(","),i,c]),{maxPayouts:o,loading:l,refetchGame:(0,a.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 Or(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[l,s]=(0,a.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 s(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,a.useCallback)(()=>r(null),[])}}function Dr(e){const[t,n]=(0,a.useState)(e?"sport":"game"),[o,r]=(0,a.useState)(null),[l,s]=(0,a.useState)({}),[i,c]=(0,a.useState)(null);return{step:t,selectedGame:o,selections:l,placedEntry:i,setGameOnly:e=>{o?.id!==e.id&&s({}),r(e)},clearSelectedGame:()=>{r(null),s({})},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),s({}))},reset:()=>{n("game"),r(null),s({}),c(null)},toggleSelection:(e,t)=>{s(n=>{const o={...n};return o[e]===t?delete o[e]:o[e]=t,o})}}}function Er(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[l,s]=(0,a.useState)(null);return{preview:(0,a.useCallback)(async(t,o)=>{try{n(!0),r(null);const l=await e.getEntryPreview(t,o);return s(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 jr=(0,a.createContext)(null),Yr={};function Hr(){const e=(0,a.useContext)(jr);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function Rr({onPress:e,onDoubleClick:t,label:n="QUICKPICK",size:o="md",yesColor:r,noColor:l,theme:s}){const i=(0,a.useContext)(jr),d=s??i?.theme??J,u=T(d),m=d.colors,p=Dt(),h=r??R(d),f=l??G(d),x="sm"===o,g=x?u.space.xs:u.space.sm,y=x?6:8,b=x?u.fontSize.sm:u.fontSize.md,w=x?8.5:10,[k,v]=a.default.useState(!1),[N,C]=a.default.useState(!1);return(0,c.jsxs)("button",{type:"button",onClick:e,onDoubleClick:t,onMouseDown:()=>v(!0),onMouseUp:()=>v(!1),onMouseLeave:()=>v(!1),onFocus:e=>{e.target.matches(":focus-visible")&&C(!0)},onBlur:()=>C(!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:k?"scale(0.985)":"scale(1)",transition:`transform ${u.motion.durationFast}ms ${u.motion.easing}, box-shadow ${u.motion.durationFast}ms ${u.motion.easing}`,boxShadow:N?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:h,clipPath:"polygon(0 0, 53% 0, 47% 100%, 0 100%)"}}),(0,c.jsx)("span",{"aria-hidden":!0,style:{position:"absolute",inset:0,background:f,clipPath:"polygon(53% 0, 100% 0, 100% 100%, 47% 100%)"}}),(0,c.jsx)("span",{style:{position:"relative",flex:1,textAlign:"center",padding:`${y}px ${g}px`,color:"#ffffff",fontSize:b,fontWeight:600,letterSpacing:.2,whiteSpace:"nowrap"},children:p.yes}),(0,c.jsx)("span",{style:{position:"relative",flex:1,textAlign:"center",padding:`${y}px ${g}px`,color:"#ffffff",fontSize:b,fontWeight:600,letterSpacing:.2,whiteSpace:"nowrap"},children:p.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:w,letterSpacing:"0.14em",padding:"3px 0 4px",textAlign:"center",fontWeight:700,fontFamily:d.fonts?.mono??"inherit"},children:n})]})}function Gr(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 Wr(e,t,n,o){const[r,l]=(0,a.useState)([]),[s,i]=(0,a.useState)([]),[c,d]=(0,a.useState)([]),[u,m]=(0,a.useState)([]),[p,h]=(0,a.useState)(null),f=(0,a.useMemo)(()=>{const t=new Map;for(const n of e)t.set(n.id,n);return t},[e]),x=(0,a.useMemo)(()=>e.filter(e=>null!=t[e.id]),[e,t]),g=(0,a.useMemo)(()=>e.map(e=>e.id).join(","),[e]),y=(0,a.useRef)(null);(0,a.useEffect)(()=>()=>{y.current=null},[]),(0,a.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(Gr(n,o).slice(0,3).map(e=>e.id)),d([]),m([]),h(null)},[g,e,t]);const b=(0,a.useMemo)(()=>o?new Set(e.filter(e=>o(e)).map(e=>e.id)):new Set,[e,o]),w=(0,a.useMemo)(()=>{const e=new Set(c);return[...Gr(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,a.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,a.useMemo)(()=>s.map(e=>f.get(e)).filter(e=>Boolean(e)),[s,f]),v=(0,a.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,a.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 Ir={stiffness:420,damping:34},Ur={stiffness:280,damping:28},$r="#00C853",Kr="#E53935";function Zr(e){return"up"===e?{x:0,y:-720}:{x:"right"===e?640:-640,y:70}}function qr(e){return e<0?0:e>1?1:e}function Vr(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:s,onDragStateChange:i,children:d}){const u=(0,a.useContext)(jr),m=t??u?.theme??J,p=fe(m),h=Dt(),f=m.colors.productYes??$r,x=m.colors.productNo??Kr,g=(0,a.useRef)(null),y=(0,a.useRef)(null),b=(0,a.useRef)(null),w=(0,a.useRef)(null),k=0===n,v=(0,a.useRef)(!1),N=(0,a.useRef)({x:0,y:0}),C=(0,a.useRef)({x:0,y:0}),F=(0,a.useRef)(null),B=(0,a.useRef)(0),A=(0,a.useRef)(null),M=(0,a.useRef)(null),S=(0,a.useRef)(r);S.current=r;const L=(0,a.useRef)(i);L.current=i;const z=(0,a.useCallback)(()=>{const e=g.current;if(!e)return;const{x:t,y:n}=N.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=Vr(t,n,S.current);r(y.current,l?0:qr((t-24)/108)),r(b.current,l?0:qr((-t-24)/108)),r(w.current,l?qr((-n-30)/90):0)},[]),P=(0,a.useCallback)(()=>{for(const e of[g.current,y.current,b.current,w.current])e&&(e.style.transition="none")},[]),T=(0,a.useCallback)(()=>{null!=A.current&&(cancelAnimationFrame(A.current),A.current=null)},[]),O=(0,a.useCallback)(e=>{T(),P();let t=null;const n=o=>{const r=Math.min(null==t?1/60:(o-t)/1e3,1/30);t=o;const l=N.current,a=C.current;if(a.x+=(-e.stiffness*l.x-e.damping*a.x)*r,a.y+=(-e.stiffness*l.y-e.damping*a.y)*r,l.x+=a.x*r,l.y+=a.y*r,Math.abs(l.x)<.5&&Math.abs(l.y)<.5&&Math.abs(a.x)<2&&Math.abs(a.y)<2)return l.x=0,l.y=0,a.x=0,a.y=0,z(),void(A.current=null);z(),A.current=requestAnimationFrame(n)};A.current=requestAnimationFrame(n)},[P,z,T]),D=(0,a.useCallback)(t=>{if(v.current)return;if("up"===t&&!S.current)return;v.current=!0,T();const n="right"===t?"yes":"left"===t?"no":null,o=Zr(t),r=g.current;r&&(r.style.transition="transform 260ms cubic-bezier(0.32, 0, 0.67, 0)");for(const e of[y.current,b.current,w.current])e&&(e.style.transition="opacity 260ms linear");N.current={...o},z(),M.current=setTimeout(()=>l(e.id,n),260)},[l,z,e.id,T]);(0,a.useEffect)(()=>()=>{M.current&&clearTimeout(M.current),null!=A.current&&cancelAnimationFrame(A.current),F.current&&L.current?.(!1)},[]),(0,a.useEffect)(()=>{if(!o)return T(),N.current={x:0,y:0},C.current={x:0,y:0},P(),void z();const e=Zr(o);N.current={x:e.x,y:e.y},C.current={x:0,y:0},P(),z(),O(Ur)},[o,P,z,O,T]),(0,a.useEffect)(()=>{if(k&&s)return s({fly:D}),()=>s(null)},[D,k,s]);const E="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:k?"auto":"none"},"aria-hidden":!k,children:(0,c.jsxs)("div",{ref:g,className:"relative w-full"+(k?" cursor-grab active:cursor-grabbing":""),style:{touchAction:"pan-y",willChange:"transform",userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none"},onPointerDown:e=>{if(k&&!v.current&&!F.current){T(),P(),F.current={pointerId:e.pointerId,originX:e.clientX,originY:e.clientY,baseX:N.current.x,baseY:N.current.y},C.current={x:0,y:0},B.current=e.timeStamp;try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}L.current?.(!0)}},onPointerMove:e=>{const t=F.current;if(!t||t.pointerId!==e.pointerId||v.current)return;const n=t.baseX+(e.clientX-t.originX),o=Math.min(t.baseY+(e.clientY-t.originY),0),r=e.timeStamp-B.current;if(r>0){const t=1-Math.exp(-r/40);C.current.x+=((n-N.current.x)/r*1e3-C.current.x)*t,C.current.y+=((o-N.current.y)/r*1e3-C.current.y)*t,B.current=e.timeStamp}N.current.x=n,N.current.y=o,z()},onPointerUp:e=>{const t=F.current;if(!t||t.pointerId!==e.pointerId)return;F.current=null,L.current?.(!1);try{e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}catch{}if(v.current)return;e.timeStamp-B.current>90&&(C.current={x:0,y:0});const n=N.current,o=C.current;if(Vr(n.x,n.y,S.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(Ir)},onPointerCancel:e=>{const t=F.current;t&&t.pointerId===e.pointerId&&(F.current=null,C.current={x:0,y:0},L.current?.(!1),v.current||O(Ir))},onDragStart:e=>e.preventDefault(),children:[d,k&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{ref:y,className:`${E} left-5`,style:{opacity:0,transform:"rotate(-12deg)",color:f,borderColor:f,fontFamily:p},children:h.yes}),(0,c.jsx)("div",{ref:b,className:`${E} right-5`,style:{opacity:0,transform:"rotate(12deg)",color:x,borderColor:x,fontFamily:p},children:h.no}),r&&(0,c.jsx)("div",{ref:w,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 Qr({prop:e}){const{theme:t,renderTeamLogo:n,renderPropositionSilk:o,displaySportName:r,gameCategory:l,compositeComponentById:a}=Hr(),s=t.colors,i=fe(t),d=Ye(e,a),u=Pe(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)||dl(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:s.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:s.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:s.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:s.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:s.borderSubtle??s.border,color:s.textMuted},children:[e.sport&&(0,c.jsx)("span",{className:"rounded-full px-2 py-0.5 font-semibold uppercase tracking-wide",style:{backgroundColor:s.infoBg,color:s.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:Je(e.commence_time)})]})]})}function Jr({onBack:e,onNext:t,viewSwitch:n,onDragStateChange:o,className:r=""}){const{theme:l,propositions:s,selections:i,toggleSelection:d,selectedGame:u,selectedPropositionCount:m,answeredCount:p,selectionValid:h,goToConfirmation:f,goToSportSelection:x,loading:g,error:y,selectedRule:b,compositeComponentById:w}=Hr(),k=l.colors,v=he(l),N=fe(l),C=Dt(),F=k.productYes??$r,B=k.productNo??Kr,A=(0,a.useRef)(null);(0,a.useEffect)(()=>{u||(x(),e?.())},[x,e,u]);const M=(0,a.useMemo)(()=>Br(s,i,w),[s,i,w]),S=(0,a.useCallback)(e=>M.isCapped(e),[M]),{visible:L,canSkip:z,canUndo:P,restored:T,resolve:O,undo:D}=Wr(s,i,d,S),E=u?it(u,m??void 0,b):{min:0,max:0},Y=E.max,H=Y>0&&p>=Y,R=u?E.min>0&&E.min===E.max?E.min:Jo(u,m)??(Y>0?Y:null):null,G=(0,a.useRef)(p);(0,a.useEffect)(()=>{const e=G.current;if(G.current=p,null==R||e>=R||p!==R)return;const n=setTimeout(()=>{f(),t?.()},420);return()=>clearTimeout(n)},[p,f,t,R]);const W=!H&&L.length>0;(0,a.useEffect)(()=>{if(!W)return;const e=e=>{const t=e.target;if(!t||!/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName)){switch(e.key){case"ArrowRight":A.current?.fly("right");break;case"ArrowLeft":A.current?.fly("left");break;case"ArrowUp":A.current?.fly("up");break;case"ArrowDown":case"Backspace":D();break;default:return}e.preventDefault()}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[W,D]);const I=(0,a.useCallback)(e=>{A.current=e},[]);if(!u)return null;const U=(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:W?(0,c.jsx)("div",{className:"relative mx-auto w-full",style:{height:"clamp(14rem, 44dvh, 26rem)",maxWidth:384},children:L.map((e,t)=>(0,c.jsx)(Xr,{prop:e,depth:t,canSkip:z,enterFrom:T?.id===e.id?T.from:null,onResolve:O,registerApi:0===t?I:void 0,onDragStateChange:0===t?o:void 0,children:(0,c.jsx)(Qr,{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:H?"Card full":"That’s the last one"}),(0,c.jsx)("p",{className:"text-sm",style:{color:k.textMuted},children:H?`You've picked all ${Y} 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${E.min>0?` — this game needs at least ${E.min}`:""}. Undo a swipe or head back to widen the pool.`}),P&&(0,c.jsx)("button",{type:"button",onClick:D,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:[U("Undo last swipe","↺",D,!P),(0,c.jsx)("button",{type:"button",onClick:()=>A.current?.fly("left"),disabled:!W,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:B,fontFamily:N},children:C.no}),(0,c.jsx)("button",{type:"button",onClick:()=>A.current?.fly("right"),disabled:!W,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:C.yes}),U("Skip this proposition","↑",()=>A.current?.fly("up"),!W||!z)]}),(0,c.jsx)("p",{className:"mt-2 text-center text-[11px]",style:{color:k.textMuted},children:`Swipe right for ${C.yes}, left for ${C.no}${z?" · ↑ to skip":""}`})]})]})]})}function _r({propositions:e,title:t,onClose:n}){const{theme:o,selections:r,toggleSelection:l,compositeComponentById:s}=Hr(),i=o.colors,d=(0,a.useMemo)(()=>Br(e,r,s),[e,r,s]),u=(0,a.useCallback)(e=>d.isCapped(e),[d]),{visible:m,canSkip:p,canUndo:h,restored:f,resolve:x,undo:g}=Wr(e,r,l,u),y=(0,a.useRef)(null),b=(0,a.useRef)(null),w=(0,a.useCallback)(e=>{b.current=e},[]),k=(0,a.useCallback)(()=>b.current?.fly("up"),[]),v=$(o),N=fe(o),C=m.length>0,F=K(o),B=(0,a.useCallback)(()=>y.current?.close(),[]);(0,a.useEffect)(()=>{y.current?.showModal()},[]),(0,a.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=Dt(),L=(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)(Xr,{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)(Qr,{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:"↺"})}),L("left",S.no,G(o)),L("right",S.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:`Swipe right for ${S.yes}, left for ${S.no}${p?" · ↑ to skip":""}`})]})]})}function el(e){return new Intl.DateTimeFormat("en-AU",{weekday:"short",day:"numeric",month:"short"}).format(e).replace(",","")}function tl(e){return new Intl.DateTimeFormat("en-AU",{hour:"numeric",minute:"2-digit",hour12:!0}).format(e).replace(/\s/g,"").toLowerCase()}function nl(e){const t=(e??"").trim().split(/\s+/).filter(Boolean);return(t[t.length-1]??"").slice(0,3).toUpperCase()}function ol(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}function rl(e){const t=e?.trim();if(t&&"undefined"!==t&&"null"!==t)return t}function ll(e,t=!1){const n=Object.entries(e).map(([e,n])=>function(e,t,n){const[o,r]=n?[]:e.split(" vs ").map(rl),l=t.map(ol).filter(e=>null!==e),a=l.length>0?new Date(Math.min(...l.map(e=>e.getTime()))):null;return{key:e,title:n||!o?n?e:rl(t[0]?.league??void 0)??"":[o,r].filter(Boolean).join(" vs "),home:o,away:r,racing:n,date:a,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 s of o){const e=s.date.toDateString(),t=l.get(e);t?t.events.push(s):l.set(e,{key:e,label:el(s.date),events:[s]})}const a=[...l.values()];return r.length>0&&a.push({key:"undated",label:"",events:r}),a}var al={split:"text-[13px] leading-snug",compact:"text-[11px] leading-snug"};function sl({variant:e,groups:t,racing:n,selections:o,onToggleSelection:r,atMax:l,theme:s,renderTeamLogo:i,componentById:d,disableEventSwipe:u=!1}){const m=s.colors,p=K(s),h=Z(s),f=m.borderSubtle??m.border,x=U(s),g=$(s),y=H(s),b=Y(s),w=j(s),k=fe(s),[v,N]=(0,a.useState)(null),[C,F]=(0,a.useState)(new Set),[B,A]=(0,a.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=a.default.useMemo(()=>ll(t,n),[t,n]),P=a.default.useMemo(()=>Br(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=vr(e);return t?function(e){return`${fr[e]} already picked for this match`}(t):void 0},D=(e,t)=>{T(e)||r(e.id,t)},E=e=>{const t=P.slotsFor(Cr(e.props[0]));return 0===t.length?null:(0,c.jsx)("span",{className:"hidden shrink-0 items-center gap-1 sm:flex",children:t.map(({family:e,label:t,filled:n})=>(0,c.jsx)("span",{title:yr(e,n),"aria-label":yr(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)(Yt,{theme:s,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?dl(e,i,null):null,(0,c.jsx)(pl,{prop:e,colors:m,componentById:d,renderTeamLogo:i,textClass:al[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)(il,{}),(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)(cl,{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:[nl(e.home),(0,c.jsx)("span",{className:"text-[9px] font-semibold px-0.5",style:{color:g},children:"v"}),nl(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:[nl(e.home),(0,c.jsx)("span",{className:"text-[9px] font-semibold px-0.5",style:{color:g},children:"v"}),nl(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:tl(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:tl(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)(_r,{propositions:v.props.filter(e=>!T(e)),title:v.title,onClose:()=>N(null)})]})}function il(){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 cl({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 dl(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 ul({matchup:e,renderTeamLogo:t,altText:n,mutedColor:o,size:r="sm"}){const[l,a=""]=e.split(" vs "),s="md"===r?"text-sm sm:text-base":"text-sm";if(!(a.length>0))return(0,c.jsx)("span",{className:`font-semibold ${s} 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 ${s} 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(a,"col-start-2 row-start-2")]})}function ml({label:e,colors:t}){const n="OR"===e?"If either wins, you win.":"Both must win for Yes.",[o,r]=(0,a.useState)(!1),[l,s]=(0,a.useState)({top:0,left:0}),i=(0,a.useRef)(null),d=(0,a.useCallback)(()=>{const e=i.current;if(!e)return;const t=e.getBoundingClientRect();s({top:t.bottom+4,left:t.left})},[]);return(0,a.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 pl({prop:e,colors:t,size:n="sm",componentById:o,textClass:r,textColor:l,eventLabels:s="show",renderTeamLogo:i}){const d=Ye(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"===s&&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(),s=r?i?.(r,16)??null:null,d=l?i?.(l,16)??null:null,u=s||d?(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:[s,s&&d?(0,c.jsx)("span",{className:"text-[9px] font-semibold uppercase",style:{color:h},children:"vs"}):null,d]}):null;return(0,c.jsxs)(a.default.Fragment,{children:[o>0&&(0,c.jsx)("span",{className:"mx-1 align-middle",children:(0,c.jsx)(ml,{label:f,colors:t})}),u,!u&&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)(a.default.Fragment,{children:[n>0&&(0,c.jsx)(ml,{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 hl({game:e,propositions:t,selections:n,onToggleSelection:o,onNext:r,onBack:l,loading:s,error:i,theme:d,colorScheme:u,hideActions:m=!1,initialSport:p,renderTeamLogo:h,disableQuickPick:f=!1,selectedPropositionCount:x,onPropositionCountChange:g,gameCategory:y,headerExtra:b,railSlot:w,variant:k,disableEventSwipe:v}){const N=(0,a.useContext)(jr),C=N?.sportBaseKey,F=N?.compositeComponentById,B=k??N?.selectionVariant,A=v??N?.disableEventSwipe??!1,S=pe(d,u),L=S.colors,z=K(S),P=q(S),T=L.matchupHeader??(e.color?M(e.color,.14):Z(S)),E=L.textAlt??L.text,Y=O(S),H=he(S);fe(S),j(S);const R=!!(e.allowed_propositions&&e.allowed_propositions.length>0),{min:G,max:W}=it(e,x),I=G,U=W,[$,X]=a.default.useState(()=>new Set(Object.keys(St(t,y,C)))),Q=I>0&&I===U,J=I||1,_=U||t.length,ee=U||I||t.length,[te,ne]=a.default.useState(ee),oe=Object.keys(n).length,re=U>0&&oe>=U,le=R?null!=x&&oe===x:st(oe,e.min_propositions,e.max_propositions);e.min_bet,U>0?Math.max(2,2*U):Math.max(2,2*oe);const ae=a.default.useRef(oe),se=R?null!=x&&oe===x:U>0&&oe===U;(0,a.useEffect)(()=>{se&&oe>ae.current&&r?.(),ae.current=oe},[oe,se]);const ie=(0,a.useMemo)(()=>Br(t,n,F),[t,n,F]),ce=(0,a.useMemo)(()=>t.some(e=>null!==vr(e)),[t]),de=(e,r)=>{if(e in n)return void o(e,r);if(re)return;const l=t.find(t=>t.id===e);l&&ie.isCapped(l)||o(e,r)},ue=e=>{if(!ce||0===e.length)return null;const t=ie.slotsFor(Cr(e[0]));return 0===t.length?null:(0,c.jsx)("span",{className:"flex shrink-0 items-center gap-1",children:t.map(({family:e,label:t,filled:n})=>(0,c.jsx)("span",{title:yr(e,n),"aria-label":yr(e,n),className:"rounded-full border px-1.5 text-[9px] font-bold uppercase leading-[16px] tracking-wide "+(n?"":"border-dashed"),style:{borderColor:n?E:L.border,color:n?E:L.textMuted,cursor:"help"},children:t},e))})};(0,a.useEffect)(()=>{const e=U||t.length,n=I||1;ne(t=>Q?U:Math.max(n,Math.min(t,e)))},[t.length,I,U,Q]);const me=(0,a.useMemo)(()=>new Date,[]),xe=(0,a.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 ur){let e=0,l=0;for(const o of n)pr(o.commence_time,r,t)?e+=1:l+=1;e>0&&o.push({id:r,partitions:l>0})}return o.some(e=>e.partitions)?o.map(({id:e})=>({id:e,label:dr[e]})):[]}(t,me),[t,me]),[ge,ye]=(0,a.useState)(null);(0,a.useEffect)(()=>{ge&&!xe.some(e=>e.id===ge)&&ye(null)},[xe,ge]);const be=(0,a.useMemo)(()=>function(e,t,n){return t?e.filter(e=>pr(e.commence_time,t,n)):e.slice()}(t,ge,me),[t,ge,me]),we=(0,a.useMemo)(()=>dt(y,be,C),[y,be,C]),ke=(0,a.useMemo)(()=>St(be,y,C),[be,y,C]),ve=(0,a.useMemo)(()=>{const e=new Set;for(const t of be)for(const n of Nr(t,F))e.add(n);return hr.filter(t=>e.has(t))},[be,F]),[Ne,Ce]=(0,a.useState)([]),[Fe,Be]=(0,a.useState)([]),Ae=(0,a.useCallback)(e=>{Ce(t=>{const n=e;return null==n?[]:t.includes(n)?t.filter(e=>e!==n):[...t,n]})},[]),Me=(0,a.useCallback)(e=>{Be(t=>null==e?[]:t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),Se=(0,a.useCallback)(e=>0===Ne.length||Nr(e,F).some(e=>Ne.includes(e)),[Ne,F]),Le=(0,a.useMemo)(()=>{const e=new Set;for(const t of be){const n=Pe(t);n&&Se(t)&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[be,Se]),[ze,Te]=(0,a.useState)(!1),Oe=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!ze)return;const e=e=>{Oe.current?.contains(e.target)||Te(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[ze]),(0,a.useEffect)(()=>{Ce(e=>{const t=e.filter(e=>ve.includes(e));return t.length===e.length?e:t})},[ve]),(0,a.useEffect)(()=>{Be(e=>{const t=e.filter(e=>Le.includes(e));return t.length===e.length?e:t})},[Le]);const De=(0,a.useMemo)(()=>{if(0===Ne.length&&0===Fe.length)return ke;const e={};for(const[t,n]of Object.entries(ke)){const o=n.filter(e=>{if(!Se(e))return!1;if(0===Fe.length)return!0;const t=Pe(e);return!!t&&Fe.includes(t)});o.length>0&&(e[t]=o)}return e},[ke,Ne,Fe,Se]),Ee=Object.keys(De);if(a.default.useEffect(()=>{const e=Object.keys(De);e.length>0&&X(t=>e.every(e=>t.has(e))?t:new Set(e))},[De]),s)return(0,c.jsx)(An,{colors:V(S),bodyFont:H,variant:"propositions"});if(i)return(0,c.jsx)("div",{className:"flex items-center justify-center p-8",style:{fontFamily:H},children:(0,c.jsx)("div",{style:{color:L.error},children:i})});const je=!f&&t.length>0,Ye=xe.length>0||ve.length>1||Le.length>1,He=(null!=ge?1:0)+Ne.length+Fe.length,Re=[...xe.length>0?[{label:"When",options:[{value:null,label:"All dates"},...xe.map(e=>({value:e.id,label:e.label}))],value:ge,onChange:e=>ye(e)}]:[],...ve.length>1?[{label:"Market",options:[{value:null,label:"All markets"},...ve.map(e=>({value:e,label:xr[e]}))],value:Ne,onChange:Ae}]:[],...Le.length>1?[{label:"Type",options:[{value:null,label:"All types"},...Le.map(e=>{return{value:e,label:(t=e,t.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))};var t})],value:Fe,onChange:Me}]:[]];return(0,c.jsxs)("div",{className:"relative space-y-4 sm:space-y-6 pb-16",style:{fontFamily:H,zIndex:ze?1:void 0},children:[(()=>{const e=Ye||b?(0,c.jsxs)("div",{className:"flex flex-none items-center gap-2",children:[Ye&&(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)("div",{className:"relative z-[4] flex items-center gap-2",ref:Oe,children:[(0,c.jsxs)("button",{type:"button",onClick:()=>Te(e=>!e),"aria-expanded":ze,className:"inline-flex items-center gap-1.5 rounded-full px-3 py-1.5 text-[11px] font-bold transition-colors",style:{fontFamily:H,border:`1px solid ${He>0?L.primary:L.border}`,backgroundColor:He>0?L.primary:L.background??"#fff",color:He>0?L.primaryText:L.text,cursor:"pointer"},children:[(0,c.jsx)(Vt,{size:13}),"Filter",He>0&&(0,c.jsxs)("span",{children:["· ",He]}),(0,c.jsx)("span",{className:"inline-flex transition-transform",style:{transform:`rotate(${ze?-90:90}deg)`,opacity:.75},children:(0,c.jsx)(Xt,{size:13})})]}),ze&&(0,c.jsx)("div",{className:"absolute right-0 top-full z-[2] mt-2 w-[248px] rounded-2xl p-3",style:{border:`1px solid ${L.border}`,backgroundColor:L.background??"#fff",boxShadow:D(S)},children:(0,c.jsx)(rn,{groups:Re,theme:S,bodyFont:H})}),He>0&&(0,c.jsx)("button",{type:"button",onClick:()=>{ye(null),Ce([]),Be([])},className:"text-[11px] font-semibold",style:{color:L.textMuted,cursor:"pointer"},children:"Clear"})]})}),b]}):null;return e||w?"function"==typeof w?w(e):(0,c.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,c.jsx)("div",{className:"min-w-0 flex-1",children:w}),e]}):null})(),je&&(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:[!Q&&(0,c.jsxs)("div",{className:"flex items-center gap-1",children:[(0,c.jsx)("input",{type:"number",min:J,max:_,value:te,onChange:e=>{const t=parseInt(e.target.value,10);isNaN(t)||ne(Math.max(J,Math.min(_,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:E,backgroundColor:L.backgroundAlt,border:`2px solid ${L.border}`}}),(0,c.jsxs)("span",{className:"text-xs whitespace-nowrap",style:{color:L.textMuted},children:["/ ",t.length]})]}),(0,c.jsx)(Rr,{onPress:()=>{const e=Q?U:te;for(const t of Object.keys(n)){const e=Number(t);o(e,n[e])}const{yesPicks:l,noPicks:a}=function(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}}(t,e);for(const t of l)o(t.id,"yes");for(const t of a)o(t.id,"no");r?.()}})]})}),t.length>0&&B&&(0,c.jsx)(sl,{variant:B,groups:De,racing:we,selections:n,onToggleSelection:de,atMax:re,theme:S,renderTeamLogo:h,componentById:F,disableEventSwipe:A}),t.length>0&&!B&&(0,c.jsx)("div",{className:"space-y-4",children:Ee.every(e=>1===De[e].length)?(0,c.jsx)("div",{className:"rounded-xl border overflow-hidden divide-y",style:{borderColor:L.border,backgroundColor:z,boxShadow:Y},children:Ee.map(e=>{const t=De[e][0],o="yes"===n[t.id],r="no"===n[t.id],l=t.id in n,a=re&&!l||ie.isCapped(t);return(0,c.jsxs)("div",{className:"transition-colors divide-y",style:{opacity:a?.45:1,borderColor:L.border},children:[(0,c.jsxs)("div",{className:"px-4 py-2.5 sm:py-3 min-w-0",style:{backgroundColor:T},children:[(0,c.jsx)("div",{className:"min-w-0",children:(0,c.jsx)(ul,{matchup:e,renderTeamLogo:h,altText:E,mutedColor:L.textAltMuted??L.textMuted??E})}),(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:L.textAltMuted??L.textMuted,opacity:.7},children:Je(t.commence_time)}),ue([t])]})]}),(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 px-4 py-3 sm:py-3.5",style:{backgroundColor:P},children:[(0,c.jsxs)("div",{className:"min-w-0 flex-1 flex items-start gap-2",children:[dl(t,h,e),(0,c.jsx)(pl,{prop:t,colors:L,componentById:F,renderTeamLogo:h})]}),(0,c.jsx)(Yt,{theme:S,size:"sm",value:o?"yes":r?"no":null,onYes:()=>de(t.id,"yes"),onNo:()=>de(t.id,"no"),disabled:a})]})]},t.id)})}):Ee.map(e=>{const t=De[e],o=$.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:L.border,backgroundColor:z,boxShadow:Y},children:[(0,c.jsxs)("button",{type:"button",onClick:()=>{return t=e,X(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:T,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:L.textAltMuted??L.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)(ul,{matchup:e,renderTeamLogo:h,altText:E,mutedColor:L.textAltMuted??L.textMuted??E,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:L.textAltMuted??L.textMuted,opacity:.7},children:Je(l)}),ue(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?L.successText:L.textMuted,backgroundColor:r>0?L.successBg:L.backgroundAlt},children:[r,"/",t.length]})})]}),o&&(0,c.jsx)("div",{className:"divide-y",style:{borderColor:L.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,a=re&&!l||ie.isCapped(t);return(0,c.jsx)("div",{className:"px-4 py-3 sm:py-3.5 transition-colors",style:{backgroundColor:P,opacity:a?.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:[dl(t,h,e),(0,c.jsx)(pl,{prop:t,colors:L,size:"md",componentById:F,renderTeamLogo:h})]}),(0,c.jsx)(Yt,{theme:S,size:"sm",value:o?"yes":r?"no":null,onYes:()=>de(t.id,"yes"),onNo:()=>de(t.id,"no"),disabled:a})]})},t.id)})})})]},e)})}),0===t.length&&(0,c.jsx)("div",{className:"text-center p-8",style:{color:L.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:L.border,backgroundColor:z},children:[(0,c.jsx)(Pt,{theme:S,variant:"secondary",onPress:l,children:"Back"}),(0,c.jsx)("div",{className:"flex items-center gap-2 sm:gap-3",children:(0,c.jsx)(Pt,{theme:S,variant:"primary",disabled:!le,onPress:r,children:"Wager"})})]})]})}function fl({game:e,propositions:t,selections:n,onToggleSelection:o,onRemoveSelection:r,onSubmit:l,onBack:s,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 a=0;a<=I;a++)Q[a]=p*a;const J=b??Q,_=J[u]??0,ee=ct(e),te=ee.enabled&&u===I,[ne,oe]=(0,a.useState)(null),[re,le]=(0,a.useState)(!0),ae=i||p<$||!1===F,se=null!=A&&p>A,ie=g&&!!l&&B,ce=n?t.filter(e=>e.id in n):t,de=Lt(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 a.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:[(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)(ul,{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:Je(e.props[0].commence_time)})]}),e.props.map((t,l)=>{const a=n?.[t.id],s="yes"===a,i="no"===a,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:[dl(t,w,e.key),(0,c.jsx)(pl,{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)(Yt,{theme:L,size:"xs",value:s?"yes":i?"no":null,onYes:()=>o(t.id,"yes"),onNo:()=>o(t.id,"no")}):a?(0,c.jsx)(Ht,{theme:L,value:"yes"===a?"yes":"no",size:"sm",style:{flexShrink:0}}):null,re&&r&&(0,c.jsx)("button",{type:"button","aria-label":"Remove selection",onClick:()=>{a&&o?.(t.id,a),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}`))})]}),S,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:se?z.error:z.success},children:Qe(A)})]})]}),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 ",Qe(p)," exceeds your available ",Qe(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:Qe(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: ",Qe($),null!==V&&(0,c.jsxs)(c.Fragment,{children:[" · Maximum: ",Qe(V)]})]}),p>0&&p<$&&(0,c.jsxs)("p",{className:"text-xs mt-1",style:{color:z.error},children:["Bet amount must be at least ",Qe($)]})]}),(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:["+",Qe(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:Qe(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:[Qe(_),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?Qe(ee.amount):ee.limit>0?`Up to ${Qe(ee.limit)}`:"Progressive":Qe(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:ae,"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:ae?"not-allowed":"pointer",minWidth:120},children:i?(0,c.jsxs)("span",{className:"flex flex-col items-center gap-2",children:[(0,c.jsx)(hn,{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:Qe(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)(Pt,{theme:L,variant:"secondary",disabled:i,onPress:s,children:"Back"}),(0,c.jsx)("button",{type:"button",onClick:l,disabled:ae,"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:ae?"not-allowed":"pointer"},children:i?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(hn,{color:z.buttonPrimaryText}),(0,c.jsx)("span",{children:"Placing Entry…"})]}):(0,c.jsx)("span",{children:`Place Entry (${Qe(p)})`})})]})]})}function xl({iconUrl:e,gameName:t,chipColor:n,textColor:o,iconColor:r,accentColor:l,brandColor:a,height:s=56,showTrademark:i=!0,className:d,compact:u=!1,onPress:m}){const p=n??a??"#0F4C5C",h=.85*s,f=1.8*h,x=h/2,g=.05*h,y=.18*h,b={display:"inline-flex",alignItems:"center",flexWrap:"wrap",gap:.2*s,color:o??p,fontFamily:"Manrope, Poppins, sans-serif",fontSize:s,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*-s}px)`},children:(0,c.jsx)(cn,{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 gl({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,demoEntries:l,demoGames:s,demoPropositions:i,onSelectEntry:d,theme:u,colorScheme:m,className:p="",renderTeamLogo:h,filterSport:f}){const x=pe(u,m),g=!!(l&&s&&i),y=x.colors,b=he(x),w=fe(x),[k,v]=(0,a.useState)("pending"),[N,C]=(0,a.useState)([]),F=(0,a.useMemo)(()=>new Mr({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:B,loading:A,error:M,refetch:S}=Pr(F,{user_id:r},{skip:g}),{games:L,loading:z,error:P}=Sr(F,void 0,{skip:g}),{propositions:T,loading:O,error:D}=Lr(F,void 0,{skip:g}),E=g?l:B,j=g?s:L,Y=g?i:T,H=!g&&(A||z||O),R=g?null:M||P||D,G=(0,a.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,a.useMemo)(()=>{const e=new Map;for(const t of j)e.set(t.id,t);return e},[j]),I=(0,a.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,a.useRef)(new Set);(0,a.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,a.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,a.useMemo)(()=>$.filter(e=>Ve(e.pending)),[$]),Z=(0,a.useMemo)(()=>$.filter(e=>!Ve(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)(Bn,{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)(yl,{entry:e,game:W.get(e.game_id),propositionsById:I,onSelect:d,theme:x,renderTeamLogo:h},e.id))})]})}function yl({entry:e,game:t,propositionsById:n,onSelect:o,theme:r,renderTeamLogo:l}){const s=r.colors,i=K(r),d=fe(r),u=e.proposition_ids??[],m=(0,a.useMemo)(()=>u.map(e=>n.get(e)).filter(Boolean),[u,n]),p=u.length,h=(0,a.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=Ve(e.pending),w=!b&&qe(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?s.warningBg:w?s.successBg:s.errorBg,F=b||v?s.warningText:w?s.successText:s.errorText,[B,A]=(0,a.useState)(!1),M=p>0;return(0,c.jsxs)("div",{className:"rounded-xl border overflow-hidden transition-colors",style:{borderColor:s.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)(xl,{iconUrl:ve(t),gameName:n,height:18,chipColor:s.primary,textColor:s.text,iconColor:s.primaryText,accentColor:r.brand?.accent}):(0,c.jsx)("h3",{className:"text-base font-semibold truncate",style:{color:s.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:s.textMuted},children:Je(e.created_at||e.entry_date)}),p>0&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"text-xs",style:{color:s.textMuted},children:"·"}),(0,c.jsx)("span",{className:"text-xs font-medium",style:{color:y&&x>0?g>0?s.success:s.error:s.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:[qe(e.bet_amount)>0&&(0,c.jsx)("p",{className:"text-xs",style:{color:s.textMuted},children:Qe(qe(e.bet_amount))}),!b&&qe(e.winning)>0&&(0,c.jsxs)("p",{className:"text-sm font-bold",style:{color:s.success},children:[Qe(qe(e.winning)),(e.payout_jackpot??0)>0&&(0,c.jsxs)("span",{className:"block text-xs font-normal",style:{color:s.textMuted},children:["incl. ",Qe(qe(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:s.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:s.border},children:u.map(t=>{const o=(t=>n.get(t)??e.propositions?.find(e=>e.id===t))(t),a=f(t);if(!o)return(0,c.jsxs)("div",{className:"px-4 py-2.5 flex items-center gap-3",style:{borderColor:s.border},children:[(0,c.jsx)("div",{className:"flex-1 min-w-0",children:(0,c.jsxs)("p",{className:"text-sm",style:{color:s.textMuted},children:["Loading proposition #",t,"…"]})}),null!=a&&(0,c.jsx)(Ht,{theme:r,value:"yes"===a?"yes":"no",size:"sm"})]},t);const i=o.result,d=null!=i,u=!!o.is_voided,m=d&&!u&&null!=a&&a===i;let p,h,x;u?(p="Void",h=`${s.textMuted}20`,x=s.textMuted):d?m?(p="Won",h=s.successBg,x=s.successText):(p="Lost",h=s.errorBg,x=s.errorText):(p="Pending",h=s.warningBg,x=s.warningText);const g=ot(o)?void 0:o.home_team;return(0,c.jsxs)("div",{className:"px-4 py-2.5 flex items-center gap-3",style:{borderColor:s.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:s.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:s.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:s.textMuted},children:o.proposition||o.description}),o.commence_time&&(0,c.jsx)("p",{className:"text-xs mt-0.5",style:{color:s.textMuted},children:Je(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:s.textMuted},children:"Pick"}),null!=a?(0,c.jsx)(Ht,{theme:r,value:"yes"===a?"yes":"no",size:"sm"}):(0,c.jsx)("span",{className:"text-xs",style:{color:s.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:s.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 bl({className:e=""}){const{theme:t,eventFilterActive:n,eventFilterLabel:o,clearEventFilter:r,gameCategory:l}=Hr();if(!n)return null;const a=t.colors,s=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:`${a.primary}33`,backgroundColor:`${a.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:a.primary},children:"Event filter"}),(0,c.jsx)("p",{className:"truncate text-sm font-semibold",style:{color:a.text},children:s}),(0,c.jsx)("p",{className:"text-xs",style:{color:a.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:`${a.primary}44`,backgroundColor:a.background,color:a.text,cursor:"pointer"},children:"Show all events"})]})}function wl({onBack:e,title:t="Go back",className:n=""}){const{theme:o}=Hr(),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 kl({onBack:e,label:t="Games"}){const{theme:n}=Hr(),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 vl({onBack:e,hideActions:t,label:n,children:o,className:r=""}){const{theme:l}=Hr(),a=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:a.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=a.text,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=a.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)(wl,{onBack:e})),!e&&null!=n&&(0,c.jsx)("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:a.textMuted},children:n}),o]}):null}function Nl({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,bodyFont:l,howToPlayMarkdown:a,selectedCategory:s,displayCategoryName:i}=Hr(),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"}),a?.trim()&&(0,c.jsx)(Kt,{content:a,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)(vl,{onBack:t,hideActions:n,label:s?i(s):void 0})]})}var Cl="yesno:favourite-sport",Fl=null;function Bl(){try{return globalThis.localStorage??null}catch{return null}}var Al="Your stake";function Ml(e,t,n){const o=n?.stake&&n.stake>0?n.stake:20;if(Lo(n?.game)){const e=nr(n?.game??null,t,o);if(e>0)return e/o*20}const r=e?.top_payouts?.find(e=>Number(e.proposition_count)===t),l=r?.bet_amount&&r.bet_amount>0?r.bet_amount:20,a=Number(r?.net_payout);return r&&Number.isFinite(a)&&a>0?a/l*20:nr(n?.game??null,t,o,{expectedCorrect:n?.expectedCorrect})/o*20}var Sl=()=>!1,Ll="cubic-bezier(.2,.8,.2,1)";function zl({label:e="Pick your sport",sublabel:t,actions:n,className:o=""}){const{theme:r,sportOptions:l,sportSummaries:s,selectedSport:i,setSelectedSport:d,sportBaseKey:u,displaySportName:m,selections:p,toggleSelection:h,enableSportFavourites:f}=Hr(),x=r.colors,g=he(r),y=fe(r),b=j(r),w=W(r),[k,v]=a.default.useState(null);a.default.useEffect(()=>{v(f?function(){try{const e=Bl()?.getItem(Cl);if(e)return e}catch{}return Fl}():null)},[f]);const N=a.default.useRef({key:"",at:0}),C=a.default.useRef(null),F=a.default.useRef(null),[B,A]=a.default.useState("names"),S=a.default.useRef(0);if(a.default.useEffect(()=>{const e=F.current;if(!e)return;let t;const n=()=>{e.clientWidth!==S.current&&(S.current=e.clientWidth,A("names")),clearTimeout(t),t=setTimeout(()=>{e.scrollWidth>e.clientWidth+1&&A(e=>"names"===e?"codes":"wrap")},360)};if(n(),"undefined"==typeof ResizeObserver)return()=>clearTimeout(t);const o=new ResizeObserver(n);return o.observe(e),()=>{clearTimeout(t),o.disconnect()}},[B,l.length,i]),a.default.useEffect(()=>{const e=C.current,t=F.current;if(!e||!t)return;const n=setTimeout(()=>t.scrollTo({left:Math.max(0,e.offsetLeft-(t.clientWidth-e.offsetWidth)/2),behavior:"smooth"}),180);return()=>clearTimeout(n)},[i,k]),l.length<2)return null;const L=k?[...l].sort((e,t)=>Number(t.key===k)-Number(e.key===k)):l,z=void 0===t?f?"Tap to select. Double tap to pin up front.":"Tap to select.":t,P=Object.keys(p).length>0,T=x.backgroundAlt??x.background??"#fff",O="wrap"===B,D=e=>L.map(({key:t})=>{const n=s.find(e=>e.key===t)?.games_today??0,o=i===t,r=k===t,{code:l,name:a}=function(e,t,n){const o=/^[A-Z0-9]{2,5}$/.test(t)?t:$e(e,n);return{code:o,name:t.toUpperCase()===o?Ie(e,t):t}}(t,m(t),u),p=o||"names"===B;return(0,c.jsxs)("button",{ref:e=>{e&&!O&&(F.current=e.parentElement),o&&(C.current=e)},type:"button","aria-pressed":o,"aria-label":`${a} button`,disabled:P&&!o,onClick:()=>{e()||(e=>{const t=Date.now(),n=f&&N.current.key===e&&t-N.current.at<320;N.current=n?{key:"",at:0}:{key:e,at:t},n?(e=>{const t=k===e?null:e;v(t),function(e){Fl=e;try{e?Bl()?.setItem(Cl,e):Bl()?.removeItem(Cl)}catch{}}(t)})(e):P||e===i||d(e)})(t)},className:"flex shrink-0 grow basis-auto items-center justify-center whitespace-nowrap rounded-full px-3.5 py-2.5 text-[13px] font-extrabold leading-none tracking-tight",style:{fontFamily:y,backgroundColor:o?x.primary:"transparent",color:o?x.primaryText:x.text,transition:`background-color 180ms ${Ll}, color 180ms ${Ll}`,opacity:P&&!o?.45:1,cursor:P&&!o?"not-allowed":"pointer",border:"none"},children:[n>0&&(0,c.jsx)("span",{"aria-hidden":!0,className:"mr-1.5 h-1.5 w-1.5 flex-none rounded-full",style:{backgroundColor:o?w:x.success}}),(0,c.jsx)("span",{children:p?a:l}),r&&(0,c.jsx)("span",{className:"ml-1.5 flex-none leading-none",children:(0,c.jsx)(Jt,{size:11,filled:!0,color:o?x.primaryText:w})})]},t)});return(0,c.jsxs)("div",{className:`min-w-0 ${o}`,style:{fontFamily:g},children:[(0,c.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-x-2 gap-y-1",children:[(0,c.jsxs)("div",{className:"min-w-0 max-w-full shrink-0",children:[e&&(0,c.jsx)("div",{className:"pl-0.5 text-sm font-extrabold leading-tight tracking-tight",style:{color:b,fontFamily:y},children:e}),P?(0,c.jsxs)("div",{className:"mb-1.5 flex items-center gap-2 pl-0.5 text-[12px] leading-snug",style:{color:x.textMuted},children:[(0,c.jsx)("span",{children:"One sport per bet."}),(0,c.jsx)("button",{type:"button",onClick:()=>{for(const e of Object.keys(p)){const t=Number(e);h(t,p[t])}},className:"font-semibold underline underline-offset-2",style:{background:"none",border:"none",padding:0,color:x.primary,cursor:"pointer"},children:"Clear bet"})]}):z&&(0,c.jsx)("div",{className:"mb-1.5 pl-0.5 text-[12px] leading-snug",style:{color:x.textMuted},children:z})]}),n&&(0,c.jsx)("div",{className:"ml-auto flex-none",children:n})]}),(0,c.jsx)("div",{className:O?"rounded-[22px] border p-[5px]":"rounded-full border p-[5px]",style:{backgroundColor:T,borderColor:x.border,boxShadow:`inset 0 1px 2px ${M(x.text,.06)}`},children:O?(0,c.jsx)("div",{ref:e=>{F.current=e},className:"flex flex-wrap items-center gap-1",children:D(Sl)}):(0,c.jsx)(_t,{theme:r,itemCount:L.length,fadeColor:T,hideArrows:!0,contentClassName:"items-center gap-0.5",children:D})})]})}function Pl({className:e="",onBack:t,hideActions:n}){const{theme:o}=Hr(),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)(vl,{onBack:t,hideActions:n})]})}function Tl({onSelectCategory:e,onCancel:t,hideTitle:n,hideActions:o,renderCategoryIcon:r,getCategoryTagline:l,className:a=""}){const{theme:s,propositionsForCategoryPicker:i,loading:d,setSelectedCategory:u,setSelectedSport:m,clearSelectedGame:p,displayCategoryName:h}=Hr(),f=s.colors,x=K(s),g=he(s);rt(i);const y=lt(i);return d?(0,c.jsx)(An,{colors:V(s),bodyFont:g,className:a,variant:"category",categoryCount:y.length>0?y.length:2}):(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${a}`,style:{fontFamily:g},children:[!n&&(0,c.jsx)("div",{className:"mb-2",children:(0,c.jsx)(Pl,{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 Ue[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)(Zt,{label:h(t),category:t,icon:r?.(t),theme:s}),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 Ol(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 Dl({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 El({onSelectEvent:e,className:t=""}){const{theme:n,loading:o,sameGameMultiEvents:r,selectSameGameMultiEvent:l,renderTeamLogo:s,displaySportName:i}=Hr(),[d,u]=a.default.useState(null),m=n.colors,p=he(n),h=fe(n),f=K(n),x=Z(n);return o?(0,c.jsx)(An,{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 ${Mn(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)(Dl,{name:t.homeTeam,renderTeamLogo:s,muted:m.textMuted}),(0,c.jsx)("span",{className:"text-xs font-normal",style:{color:m.textMuted},children:"vs"}),(0,c.jsx)(Dl,{name:t.awayTeam,renderTeamLogo:s,muted:m.textMuted})]}),(0,c.jsxs)("p",{className:"mt-2 text-[11px] font-medium sm:text-xs",style:{color:m.textMuted},children:[Ol(t.commenceTime)," · ",t.propositionCount," proposition",1===t.propositionCount?"":"s",(t.league||t.sport)&&` · ${t.league?.toUpperCase()??i(t.sport)}`]})]}),(0,c.jsx)(Xt,{size:22,color:m.textMuted,className:"shrink-0 transition-transform group-hover:translate-x-0.5"})]},t.id))})]})}function jl({counts:e,onPick:t,onDoubleAction:n,colors:o,align:r="right",direction:l="down",menuShadow:s="0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}){const[i,u]=a.default.useState(!1),[m,p]=a.default.useState(null),h=a.default.useRef(null),f=a.default.useRef(null),x=a.default.useRef(null),g=36+36*e.length+12;a.default.useEffect(()=>{if(!i)return void p(null);const e=h.current,t=e=>{const t=f.current;if(!t)return e;const n=t.offsetHeight-t.clientHeight,o=t.firstElementChild?.getBoundingClientRect().height??0,r=t.querySelector('[role="menuitem"]')?.getBoundingClientRect().height??0,l=Math.floor((e-n-o)/r);return r>0&&l>=1?n+o+l*r:e},n=()=>{if(!e||"undefined"==typeof window)return;const n=f.current;p(function({trigger:e,viewport:t,wanted:n,width:o,align:r,direction:l,snap:a}){const{height:s,width:i}=t,c=s-Math.max(e.bottom,0)-6-8,d=Math.min(e.top,s)-6-8,u="up"===l||n>c&&d>c,m=u?d:c,p=Math.max(s-16,132),h=n<=m?n:Math.min(n,a?a(p):p),f=u?e.top-6-h:e.bottom+6,x="left"===r?e.left:e.right-o;return{top:Math.max(8,Math.min(f,s-8-h)),left:Math.max(8,Math.min(x,i-8-o)),maxHeight:h}}({trigger:e.getBoundingClientRect(),viewport:{width:document.documentElement.clientWidth||window.innerWidth,height:document.documentElement.clientHeight||window.innerHeight},wanted:n?n.scrollHeight+n.offsetHeight-n.clientHeight:g,width:n?.offsetWidth??160,align:r,direction:l,snap:t}))};n();const o=requestAnimationFrame(n);window.addEventListener("resize",n),window.addEventListener("scroll",n,!0);const a=e=>{const t=e.target;h.current?.contains(t)||f.current?.contains(t)||u(!1)};return document.addEventListener("mousedown",a),()=>{cancelAnimationFrame(o),window.removeEventListener("resize",n),window.removeEventListener("scroll",n,!0),document.removeEventListener("mousedown",a)}},[i,g,r,l]);const y=i?(0,c.jsxs)("div",{ref:f,role:"menu",className:"rounded-lg overflow-y-auto overscroll-contain",style:{position:"fixed",top:m?.top??0,left:m?.left??0,maxHeight:m?.maxHeight,visibility:m?"visible":"hidden",zIndex:20,backgroundColor:o.background,border:`1px solid ${o.border}`,boxShadow:s,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),u(!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:h,className:"flex-shrink-0 relative",children:[(0,c.jsx)(Rr,{onPress:()=>{n?null==x.current&&(x.current=window.setTimeout(()=>{x.current=null,u(e=>!e)},220)):u(e=>!e)},onDoubleClick:n?()=>{null!=x.current&&(window.clearTimeout(x.current),x.current=null),u(!1),n?.()}:void 0}),y&&"undefined"!=typeof document?(0,d.createPortal)(y,document.body):null]})}function Yl(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 Hl({iconUrl:e,size:t=56}){const{theme:n}=Hr(),o=n.colors,r=n.brand?.chip??o.primary,l=n.brand?.icon??o.primaryText,a=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 ${Yl(l,.16)}`,flexShrink:0,boxShadow:`0 8px 18px -12px ${Yl(r,.9)}`},children:(0,c.jsx)(cn,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:l,accentColor:a})})}function Rl({eyebrow:e,iconUrl:t,gameName:n,tagline:o,className:r=""}){const{theme:l,screenSize:a}=Hr(),s=l.colors,i=fe(l),d="mobile"===a;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:s.primary,fontFamily:i},children:e}),(0,c.jsx)(xl,{iconUrl:t,gameName:n,height:d?20:32,chipColor:s.primary,textColor:s.text,iconColor:s.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:s.textMuted},children:o})]})}function Gl({className:e=""}){return(0,c.jsx)(zl,{className:`mb-4 ${e}`})}function Wl({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 Ul({legs:e,prizeBall:t=!0}){const{theme:n}=Hr(),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 $l({tile:e,label:t,stat:n,detail:o,onSelect:r,children:l}){const{theme:a}=Hr(),s=a.colors,i=fe(a),d=j(a),u=s.primary,m=s.selectionCard??s.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:s.border,boxShadow:`0 10px 24px -20px ${Yl(d,.7)}`},onMouseEnter:e=>{e.currentTarget.style.borderColor=u,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${Yl(u,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=s.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${Yl(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:Yl(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:s.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:Yl(d,.08)},children:l})]})}function Kl(){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 Zl({className:e="",onBack:t,onNext:n,hideActions:o}){const{theme:r,headingFont:l,bodyFont:a,selectedGame:s,propositions:i,selectedPropositionCount:d,disableQuickPick:u,answeredCount:m,goToConfirmation:p,quickPickSelections:h,selectedEventId:f,sameGameMultiEvents:x,selectSameGameMultiEvent:g,selectedRule:y,howToPlayMarkdown:b,maxPayouts:w}=Hr(),k=r.colors,v=ze(s),N=rr(s??{},s?w?.[s.id]:void 0),C=Ln(s)&&!f,F=x.find(e=>e.id===f),B=s?it(s,d,y):{min:0,max:0},A=B.min,M=Ln(s)&&f?Math.min(B.max,i.length):B.max,S=A>0&&A===M,L=!!(s?.allowed_propositions&&s.allowed_propositions.length>0),z=Jo(s,d),P=!_o(s)&&!L&&A>0&&M>A,T=z??(S?M:M||i.length),O=e=>{const t=e??T;return!(h(t)<t||(p(),n?.(),0))},E=!u&&i.length>0,Y=P?Array.from({length:M-A+1},(e,t)=>A+t).filter(e=>e<=i.length):[],H=m>0?m:A||T;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"}),s&&(0,c.jsx)(vl,{onBack:f?()=>g(null):t,hideActions:o,label:F?Mn(F):s.game_name,children:(v||b?.trim())&&(0,c.jsx)(Kt,{variant:"icon",content:b,panel:v,theme:r,title:`${s.game_name} — How to Play`,extra:(0,c.jsx)(lr,{tiers:N.hasGenericDividends?N.tiers:[],modes:N.modes,pydDividends:N.pydDividends,minBet:N.minBet,maxBet:N.maxBet,colors:k,bodyFont:a,headingFont:l}),colors:{text:k.text,textMuted:k.textMuted,border:k.border,background:k.background,backgroundAlt:k.backgroundAlt,primary:k.primary,primaryText:k.primaryText},bodyFont:a,headingFont:l})})]}),E&&(Y.length>1?(0,c.jsx)(jl,{counts:Y,onPick:e=>O(e),onDoubleAction:()=>O(H),colors:k,menuShadow:D(r)}):(0,c.jsx)("div",{className:"flex-shrink-0",children:(0,c.jsx)(Rr,{onPress:()=>O()})}))]})}function ql({number:e,color:t,size:n=34,label:o,selected:r,onSelect:l}){const a=(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:a(.44*n,.3)}),(0,c.jsx)("span",{style:a(.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 Vl({onNext:e,onBack:t,hideButtons:n=!1,className:o=""}){const{theme:r,headingFont:l,selectedGame:s,selectedPropositionCount:i,selectedEventId:d,propositions:u,goToConfirmation:m,selectedRule:p,maxPayouts:h,betAmount:f,setBetAmount:x,selections:g,expectedCorrect:y,gamePrice:b,toggleSelection:w}=Hr(),k=r.colors,v=s?it(s,i,p):{min:0,max:0},N=Jo(s,i),C=N??v.min,F=N??(Ln(s)&&d?Math.min(v.max,u.length):v.max),B=a.default.useRef(!1);a.default.useEffect(()=>{B.current=!1},[s?.id]),a.default.useEffect(()=>{f<=0&&!B.current&&x(Math.max(20,b))},[f,b,x]);const A=a.default.useRef([]);A.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]}(A.current,g);const M=function({selections:e,order:t,minReq:n,maxReq:o,stake:r,payout20:l=0}){const a=[];for(const u of t){const t=e[u];t&&a.push({id:u,number:a.length+1,side:t})}const s=a.length,i=s>=n,c=Math.max(0,n-s),d=i||o>0&&n===o?l*(r/20):0;return{legs:a,count:s,dividend:d,dividendText:Qe(d),ctaLabel:i?`Continue with ${s} ›`:0===s?`Select at least ${n}`:`Add ${c} more to continue`,ctaDisabled:!i,atMax:o>0&&s>=o}}({selections:g,order:A.current,minReq:C,maxReq:F,stake:f,payout20:s?Ml(h?.[s.id],F>0&&C===F?F:A.current.length,{game:s,expectedCorrect:y,stake:f}):0}),S=R(r),L=G(r),z=k.primaryText,P=I(k.primary,W(r),k.primaryText),T="text-[10px] font-bold uppercase tracking-[0.08em]",O=er(s),[D,E]=a.default.useState(null),j=M.legs.find(e=>e.id===D)??null,Y=j?u.find(e=>e.id===j.id)?.description??u.find(e=>e.id===j.id)?.proposition??"":"",H=a.default.useRef(null),U=M.legs[M.legs.length-1]?.side;return function(e,t,n){const o=a.default.useRef(null),r=a.default.useRef(e);a.default.useEffect(()=>{const e=e=>{o.current={x:e.clientX,y:e.clientY}};return document.addEventListener("pointerdown",e,!0),()=>document.removeEventListener("pointerdown",e,!0)},[]),a.default.useEffect(()=>{const l=e>r.current;r.current=e;const a=o.current,s=t.current?.lastElementChild;if(!l||!a||!s)return;if(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches)return;const i=s.getBoundingClientRect(),c=i.height||44,d=document.createElement("div");d.setAttribute("aria-hidden","true"),Object.assign(d.style,{position:"fixed",left:a.x-c/2+"px",top:a.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-a.x,m=i.top+i.height/2-a.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])}(M.count,H,"no"===U?L:S),(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:H,className:"flex items-center overflow-x-auto min-h-[44px] pb-1.5",style:{scrollbarWidth:"none"},children:0===M.legs.length?(0,c.jsx)("span",{className:"text-[13px]",style:{color:k.textMuted},children:"Tap Yes or No to start building your multi."}):M.legs.map(e=>(0,c.jsx)(ql,{number:e.number,color:"yes"===e.side?S:L,label:`Leg ${e.number}, answered ${e.side}`,selected:e.id===D,onSelect:()=>E(t=>t===e.id?null:e.id)},e.id))}),M.legs.length>0&&(0,c.jsxs)("div",{className:"flex items-center gap-2 mb-2 text-[12px]",style:{color:k.text},children:[j?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"px-1.5 py-0.5 rounded font-bold text-[10px] uppercase shrink-0",style:{backgroundColor:"yes"===j.side?S:L,color:"#fff"},children:j.side}),(0,c.jsx)("span",{className:"line-clamp-2",children:Y})]}):(0,c.jsx)("span",{style:{color:k.textMuted},children:"Tap a leg to read it."}),(0,c.jsxs)("div",{className:"ml-auto flex shrink-0 items-center gap-1",children:[j&&(0,c.jsx)(Pt,{theme:r,variant:"ghost",size:"sm",radius:"pill",onPress:()=>{E(null),w(j.id,j.side)},ariaLabel:`Remove leg ${j.number}`,children:"Remove"}),(0,c.jsx)(Pt,{theme:r,variant:"ghost",size:"sm",radius:"pill",onPress:()=>{E(null);for(const e of M.legs)w(e.id,e.side)},ariaLabel:"Clear bet",children:"Clear bet"})]})]}),(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:T,style:{color:k.textMuted},children:Al}),O?(0,c.jsxs)("div",{className:"flex items-center gap-2 rounded-[10px] px-3 py-2",style:{border:`1px solid ${k.border}`,backgroundColor:k.backgroundAlt},title:tr(s),children:[(0,c.jsx)("span",{className:"text-[15px] font-extrabold",style:{color:k.text},children:Qe(f)}),(0,c.jsx)("span",{className:"text-[10px]",style:{color:k.textMuted},children:"locked"})]}):(0,c.jsxs)("div",{className:"flex items-center rounded-[10px] overflow-hidden w-[108px]",style:{border:`1px solid ${k.border}`,backgroundColor:k.background},children:[(0,c.jsx)("span",{className:"pl-3 text-base font-extrabold",style:{color:k.text},children:"$"}),(0,c.jsx)("input",{type:"number",min:1,step:1,inputMode:"decimal","aria-label":Al,value:f>0?String(f):"",onChange:e=>{B.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:k.text,fontFamily:l}})]})]}),(0,c.jsxs)("div",{className:"flex items-baseline justify-end gap-2 rounded-[10px] px-3 py-1.5",style:{backgroundColor:k.primary,flex:"1 1 150px",minWidth:0},children:[(0,c.jsx)("span",{className:T,style:{color:z,opacity:.7},children:"Potential dividend"}),(0,c.jsx)("span",{className:"text-xl font-extrabold leading-none",style:{color:P},children:M.dividendText})]})]}),!n&&(0,c.jsx)(Pt,{theme:r,block:!0,size:"md",radius:"lg",disabled:M.ctaDisabled,onPress:()=>{m(),e?.()},children:M.ctaLabel})]})}function Xl({view:e,onChange:t}){const{theme:n}=Hr(),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:Yl(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":"List"]})}function Ql({count:e,payout20:t,selected:n,onSelect:o,colors:r,bodyFont:l,extraBetAmount:a,buttonLabel:s,hidePayouts:i,game:d}){const u=null!=a&&20!==a,m=null!=t&&t>0&&u?or(t*(a/20),d):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"},onMouseEnter:e=>{n||(e.currentTarget.style.borderColor=r.buttonPrimary??r.primary,e.currentTarget.style.backgroundColor=`${r.primary}12`)},onMouseLeave:e=>{n||(e.currentTarget.style.borderColor=r.border??r.primary,e.currentTarget.style.backgroundColor=r.buttonSecondary??r.background)},children:s?s(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]}),u?null!=m&&(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:Qe(m)}):(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:Qe(t)})]})]})}function Jl({tiers:e,game:t,selectedCount:n,onSelect:o,colors:r,bodyFont:l,extraBetAmount:s,buttonLabel:i,columnLabel:d="Legs",buildYourOwn:u,quickPickOnly:m,onQuickPick:p,collapsible:h,expanded:f,onExpandedChange:x,summaryTiers:g}){const[y,b]=(0,a.useState)(!1),w=f??y,k=e.some(e=>e.payout20>0),v=null!=s&&20!==s,N=v?`$${Math.round(s)} returns`:"$20 returns",C=!!h&&!w,F=k&&!C,B=(g??e).reduce((e,t)=>t.payout20>e?t.payout20:e,0),A=v&&B>0?or(B*(s/20),t):B,M=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:m?"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:r.textMuted,fontFamily:l,display:"flex",alignItems:"center"},children:m?"Quick Pick":d}),F&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"py-1 text-xs",style:{color:r.textMuted,fontFamily:l,display:"flex",alignItems:"center"},children:"Dividend"}),(0,c.jsx)("div",{className:"py-1 text-xs",style:{color:r.textMuted,fontFamily:l,display:"flex",alignItems:"center"},children:N})]})]}),m?(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"flex-start",width:M},children:[(0,c.jsx)(jl,{counts:(g??e).map(e=>e.count),onPick:e=>p?p(e):o(e),align:"left",direction:"up",colors:{background:r.background??"#ffffff",backgroundAlt:r.backgroundAlt??"#f3f4f6",border:r.border??"#e5e7eb",text:r.text??"#111827"}}),k&&!C&&(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:`${r.success}15`,color:r.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:`${r.primary}12`,color:r.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:Qe(v?or(e.payout20*(s/20),t):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:`${r.success}15`,color:r.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:`${r.primary}12`,color:r.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:"—"})]})},e.count))})]}):u?(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"flex-start",width:M},children:[(0,c.jsx)("button",{type:"button",onClick:()=>o(e[0]?.count??0),className:"w-full py-1.5 rounded-lg border text-sm font-semibold transition-colors",style:{borderColor:r.buttonPrimary??r.primary,color:r.buttonPrimaryText??"#ffffff",backgroundColor:r.buttonPrimary??r.primary,cursor:"pointer",fontFamily:l},children:"Make Your Selections"}),k&&!C&&(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:`${r.success}15`,color:r.success,alignSelf:"stretch",textAlign:"center"},children:[e.count,"/",e.count]}),v?(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:Qe(or(e.payout20*(s/20),t))}):(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:Qe(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:`${r.success}15`,color:r.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:`${r.primary}12`,color:r.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:"—"})]})},e.count))})]}):e.map(e=>(0,c.jsx)(Ql,{count:e.count,payout20:e.payout20>0?e.payout20:null,selected:n===e.count,onSelect:()=>o(e.count),colors:r,bodyFont:l,extraBetAmount:s,buttonLabel:i,hidePayouts:C,game:t},e.count))]}),h&&(k?(0,c.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 self-start max-w-full",style:{fontFamily:l},children:[(0,c.jsxs)("span",{className:"text-xs font-semibold leading-snug",style:{color:r.text},children:["Win up to ",(0,c.jsx)("span",{style:{color:r.heading??r.text??r.primary},children:Qe(A)}),(0,c.jsx)("span",{style:{color:r.textMuted},children:` for $${v?Math.round(s):20}`})]}),(0,c.jsx)("button",{type:"button",onClick:()=>{return e=!w,void 0===f&&b(e),void x?.(e);var e},"aria-expanded":w,className:"text-xs font-semibold rounded-md transition-colors shrink-0",style:{background:w?r.buttonSecondary:r.background??"#ffffff",border:`1px solid ${w?r.primary??r.border:r.border}`,padding:"4px 10px",cursor:"pointer",color:r.text,fontFamily:l,lineHeight:1.35},children:w?"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:l},children:"Show dividends"}))]})}function _l(e){return{game_id:e.selectedGame.id,rule_id:e.selectedRule?.id??null,proposition_ids:e.selectedPropositionIds,selections:e.selections,stake:e.betAmount}}function ea({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,selectedGame:l,selectedEventId:a,propositions:s,quickPickSelections:i,upgradePropositionCount:d,selectedPropositionCount:u,disableQuickPick:m,answeredCount:p,selectedRule:h}=Hr(),f=o.colors,x=l?it(l,u,h):{min:0,max:0},g=x.min,y=Ln(l)&&a?Math.min(x.max,s.length):x.max,b=g>0&&g===y,w=!!(l?.allowed_propositions&&l.allowed_propositions.length>0),k=Jo(l,u),v=!_o(l)&&!w&&g>0&&y>g,N=k??(b?y:y||s.length),C=e=>{d(i(e??N))},F=!m&&s.length>0,B=v?Array.from({length:y-g+1},(e,t)=>g+t):[],A=p>0?p:g||N;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)(vl,{onBack:t,hideActions:n,label:l.game_name})]}),F&&(B.length>1?(0,c.jsx)(jl,{counts:B,onPick:e=>C(e),onDoubleAction:()=>C(A),colors:f,menuShadow:D(o)}):(0,c.jsx)("div",{className:"flex-shrink-0",children:(0,c.jsx)(Rr,{onPress:()=>C()})}))]})}function ta({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,placedEntry:l}=Hr(),a=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)(vl,{onBack:t,hideActions:n,children:(0,c.jsx)("p",{className:"text-sm",style:{color:a.textMuted},children:l?(0,c.jsxs)(c.Fragment,{children:["Entry"," ",(0,c.jsxs)("span",{className:"font-mono font-semibold",style:{color:a.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:`${a.success}20`},children:(0,c.jsx)("svg",{className:"w-6 h-6 sm:w-7 sm:h-7",fill:"none",stroke:a.success,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24",children:(0,c.jsx)("path",{d:"M5 13l4 4L19 7"})})})]})}function na({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r}=Hr();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)(vl,{onBack:t,hideActions:n})]})}function oa({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",className:r,title:l,sportBaseKey:a}){const s=$e(e,a,t),i=function(e){return e.length<=3?92:4===e.length?72:56}(s),d=l??`${s} button`,u=!o;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}),u?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("rect",{x:"90",y:"90",width:"260",height:"260",rx:"52",fill:Re}),(0,c.jsx)("rect",{x:"55",y:"55",width:"260",height:"260",rx:"52",fill:"#4B7985"}),(0,c.jsx)("rect",{x:"20",y:"20",width:"260",height:"260",rx:"52",fill:He,stroke:Re,strokeWidth:"6"})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("rect",{x:"2",y:"2",width:"356",height:"356",rx:"78",fill:"#DDD9D2",stroke:He,strokeWidth:"4"}),(0,c.jsx)("rect",{x:"50",y:"10",width:"260",height:"260",rx:"52",fill:He,opacity:"0.30"}),(0,c.jsx)("rect",{x:"50",y:"35",width:"260",height:"260",rx:"52",fill:He,opacity:"0.55"}),(0,c.jsx)("rect",{x:"50",y:"60",width:"260",height:"260",rx:"52",fill:He})]}),(0,c.jsx)("text",{x:u?150:180,y:u?180:220,fontFamily:"Manrope, Poppins, sans-serif",fontSize:i,letterSpacing:"-3",textAnchor:"middle",fontWeight:800,fill:"#DFFF1A",children:s}),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:He,children:o}),(0,c.jsx)("text",{x:"262",y:"333",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"10",fontWeight:600,fill:He,children:"TM"})]})]})}function ra({className:e="",onBack:t,hideActions:n,backLabel:o="Category"}){const{theme:r,selectedCategory:l}=Hr(),a=r.colors,s=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:a.primary,fontFamily:s},children:at(l)}),(0,c.jsx)(vl,{onBack:t,hideActions:n,label:t?o:void 0})]})}function la(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 aa(){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 sa({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 ia({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 ca({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 da({kind:e,balls:t,...n}){return"safety_net"===e?(0,c.jsx)(sa,{...n,balls:t}):"pick"===e?(0,c.jsx)(ca,{...n}):(0,c.jsx)(ia,{...n})}function ua({kind:e,size:t=56,balls:n}){const{theme:o}=Hr(),r=o.colors,l=o.brand?.chip??r.primary,a=o.brand?.icon??r.primaryText,s=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 ${la(a,.16)}`,flexShrink:0,boxShadow:`0 8px 18px -12px ${la(l,.9)}`},children:(0,c.jsx)(da,{kind:e,ink:a,ball:s,balls:n,size:Math.round(.68*t)})})}function ma({option:e,renderDividends:t}){const{theme:n}=Hr(),o=n.colors,r=fe(n),l=o.primary,a=W(n),s=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"]})]}),s.map((t,n)=>{const s=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!=s&&s>0&&(0,c.jsxs)("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:s}).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:a,marginLeft:2}})]})]}),(0,c.jsx)("span",{className:"text-sm font-extrabold tabular-nums sm:text-base",style:{color:l,fontFamily:r},children:Qe(t.payout20)})]},t.misses)})]})}function pa({option:e,renderDividends:t}){const{theme:n}=Hr(),o=n.colors,r=he(n),l=D(n),s=e.dividends??[],i=s.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[u,m]=(0,a.useState)(!1),p=(0,a.useRef)(null),h=(0,a.useRef)(null),[f,x]=(0,a.useState)(null),g=40+36*Math.max(s.length,1)+12,y=(0,a.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,a.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,a.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]}),s.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?Qe(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:Qe(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 ha({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=Hr(),l=r.colors,a=fe(r),s=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 ${la(s,.7)}`},onMouseEnter:e=>{e.currentTarget.style.borderColor=i,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${la(i,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=l.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${la(s,.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)(ua,{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:s,fontFamily:a},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:la(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:la(s,.08)},children:p?(0,c.jsx)(ma,{option:t,renderDividends:o}):(0,c.jsx)(pa,{option:t,renderDividends:o})})]})}function fa({onContinue:e,onBack:t,hideTitle:n,config:o,renderDividends:r,backLabel:l="Games",className:s=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,setExpectedCorrect:m,handlePropositionCountChange:p,screenSize:h}=Hr(),f=i.colors,x="mobile"===h,g=he(i),y=fe(i),b=j(i),w=W(i),k=(0,a.useMemo)(()=>o??ko(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:s,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 ${s}`,style:{fontFamily:g},children:[(0,c.jsx)(aa,{}),t&&(0,c.jsx)(kl,{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)(xl,{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)(Gl,{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)(ha,{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 ${la(b,.7)}`,animationDelay:".06s"},onMouseEnter:e=>{e.currentTarget.style.borderColor=f.primary,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${la(f.primary,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=f.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${la(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)(ua,{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 xa({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:s=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,quickPickGame:f,goToSportSelection:x}=Hr(),g=i.colors,y=he(i),b=fe(i),w=j(i),k=K(i),v=(0,a.useMemo)(()=>r??Ao(d),[r,d]),[N,C]=(0,a.useState)(()=>v?null!=u&&v.legOptions.includes(u)?u:v.defaultLegs:8),[F,B]=(0,a.useState)(()=>v?.defaultStake??20);if(!d||!Fo(d)||!v)return(0,c.jsx)("div",{className:s,style:{color:g.textMuted,fontFamily:y},children:"No game set available."});const A=or(Bo(F,N,{operatorMargin:v.operatorMargin,perLegProbability:v.perLegProbability}).prize,d),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 ${s}`,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)(Kl,{}),n&&(0,c.jsx)(kl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Rl,{className:"blade-gsb-in",eyebrow:o?null:"The fastest multi",iconUrl:ve(d),gameName:d.game_name,tagline:v.tagline}),(0,c.jsx)(Gl,{}),(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 ${Yl(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",Qe(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 ",Qe(v.minStake),"."]})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:Yl(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:[Qe(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)(Ul,{legs:N})]}),(0,c.jsx)("span",{className:"text-xl font-extrabold tabular-nums sm:text-2xl",style:{color:g.primary,fontFamily:b},children:Qe(A)})]}),(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)($l,{tile:(0,c.jsx)(Hl,{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)($l,{tile:(0,c.jsx)(Hl,{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 ga({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:s=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,quickPickGame:f,goToSportSelection:x}=Hr(),g=i.colors,y=he(i),b=fe(i),w=j(i),k=K(i),v=(0,a.useMemo)(()=>r??Oo(d),[r,d]),[N,C]=(0,a.useState)(()=>v?.defaultDividend??1e4),[F,B]=(0,a.useState)(()=>{const e=v?.dividends[0]?.rungs.map(e=>e.legs)??[];return null!=u&&e.includes(u)?u:v?.defaultLegs??9});if(!d||!Lo(d)||!v)return(0,c.jsx)("div",{className:s,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 ${s}`,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)(Kl,{}),n&&(0,c.jsx)(kl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Rl,{className:"blade-pyd-in",eyebrow:o?null:"Pick your dividend",iconUrl:ve(d),gameName:d.game_name,tagline:v.tagline}),(0,c.jsx)(Gl,{}),(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 ${Yl(w,.7)}`,animationDelay:".06s"},children:[(z=Qe(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)(Wl,{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 ${Il}`,style:{backgroundColor:t?Yl(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:Qe(e.dividend)}),(0,c.jsxs)("span",{className:"mt-1 block text-[10px]",style:{color:g.textMuted},children:["from ",Qe(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:Yl(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?Yl(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)(Ul,{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:Qe(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)($l,{tile:(0,c.jsx)(Hl,{iconUrl:ve(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${M.legs} legs`,`${Qe(M.stake)} chasing the ${Qe(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)($l,{tile:(0,c.jsx)(Hl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${M.legs} legs at ${Qe(M.stake)}`,"Straight to the bet slip"],onSelect:()=>{p(M.legs),h(M.stake),f(d,M.legs,M.stake),e?.()}})})]})]})]});var z}function ya({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:s=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,quickPickGame:f,goToSportSelection:x,screenSize:g}=Hr(),y=i.colors,b="mobile"===g,w=he(i),k=fe(i),v=j(i),N=W(i),C=K(i),F=(0,a.useMemo)(()=>r??Go(d),[r,d]),[B,A]=(0,a.useState)(()=>F?null!=u&&F.ladders.some(e=>e.legs===u)?u:F.defaultLegs:8),[M,S]=(0,a.useState)(()=>F?.defaultStake??50),[L,z]=(0,a.useState)(!1);if(!d||!jo(d)||!F)return(0,c.jsx)("div",{className:s,style:{color:y.textMuted,fontFamily:w},children:"No ladders available."});const P=F.ladders.find(e=>e.legs===B)??F.ladders[0],T=Ho(P,M),O=Ro(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 ${s}`,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)(Kl,{}),n&&(0,c.jsx)(kl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Rl,{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)(Gl,{}),(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 ${Yl(v,.7)}`,animationDelay:".06s"},children:[H("Your bet",Qe(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)(Wl,{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 ${Il}`,style:{backgroundColor:t?Yl(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:Qe(Ro(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:Yl(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:Qe(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)(a.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:Yl(N,.35),color:v},children:"Full stack"})]}),(0,c.jsx)(Ul,{legs:e.atLeast,prizeBall:t})]}),(0,c.jsx)("span",{className:"text-right text-[11px] tabular-nums",style:{color:y.textMuted},children:Qe(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:Qe(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)($l,{tile:(0,c.jsx)(Hl,{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)($l,{tile:(0,c.jsx)(Hl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${P.legs} legs at ${Qe(M)}`,"Straight to the bet slip"],onSelect:()=>{p(P.legs),h(M),f(d,P.legs,M),e?.()}})})]})]})]})}var ba="blade-mir-styles",wa="\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 ka({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 va({legs:e,correct:t}){const{theme:n}=Hr(),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:Yl(o,.45)},children:r?"✓":"✕"},n)})})}function Na({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:s=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,quickPickGame:f,goToSportSelection:x,games:g,selectGame:y}=Hr(),b=i.colors,w=he(i),k=fe(i),v=j(i),N=K(i),C=(0,a.useMemo)(()=>r??_n(d),[r,d]),[F,B]=(0,a.useState)(()=>C?null!=u&&C.legOptions.includes(u)?u:C.defaultLegs:8),[A,M]=(0,a.useState)(()=>C?.defaultStake??20),[S,L]=(0,a.useState)(!1);if(!d||!Qn(d)||!C)return(0,c.jsx)("div",{className:s,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){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})))}(oo(z.id,A,T,{operatorMargin:C.operatorMargin})),D=function(e,t){if(!t)return[];const n=Gn(t);return n<Hn.premier?[]:eo.flatMap(t=>{const o=e.find(e=>Qn(e)&&Vn(e.rule)===Xn[t.id]&&Gn(e)===n);return o?[{variant:t,game:o}]:[]})}(g,d),E=T-(z.depth-1);if(D.length>1&&!S)return(0,c.jsxs)("div",{className:`blade-mir flex min-h-full w-full flex-col ${s}`,style:{fontFamily:w},children:[(0,c.jsx)("style",{id:ba,children:wa}),(0,c.jsx)(Kl,{}),n&&(0,c.jsx)(kl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Rl,{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)(Gl,{}),(0,c.jsx)("div",{className:"grid gap-3 sm:grid-cols-3",children:D.map(({variant:e,game:t},n)=>{const o=_n(t)?.legOptions??[];return(0,c.jsx)("div",{className:"blade-mir-in",style:{animationDelay:.06+.05*n+"s"},children:(0,c.jsxs)($l,{tile:(0,c.jsx)(Hl,{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)(ka,{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 Y=A>=C.minStake,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: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 ${s}`,style:{fontFamily:w},children:[(0,c.jsx)("style",{id:ba,children:wa}),(0,c.jsx)(Kl,{}),D.length>1?(0,c.jsx)(kl,{onBack:()=>L(!1),label:"Mirrors"}):n&&(0,c.jsx)(kl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Rl,{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)(Gl,{}),(0,c.jsxs)("div",{className:"blade-mir-in mb-3",style:{animationDelay:".03s"},children:[H(z.name,z.waysToWin),(0,c.jsx)(ka,{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 ${Yl(v,.7)}`,animationDelay:".06s"},children:[H("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:[H("Stake",Qe(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)})}),!Y&&A>0&&(0,c.jsxs)("p",{className:"mt-2 text-xs",style:{color:b.error},children:["Minimum stake is ",Qe(C.minStake),"."]})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:Yl(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:Yl(b.primary,.12),color:b.primary},children:z.waysToWin})]}),(0,c.jsx)("div",{className:"mt-1.5 flex flex-col gap-2",children:O.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)(va,{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:Qe(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)($l,{tile:(0,c.jsx)(Hl,{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:()=>{Y&&(m(T),p(E),h(A),x(),t?.())}})}),(0,c.jsx)("div",{className:"blade-mir-in",style:{animationDelay:".2s"},children:(0,c.jsx)($l,{tile:(0,c.jsx)(Hl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{Y&&(p(E),h(A),f(d,T,A),e?.())}})})]})]})]})}function Ca({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:s=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:h,setSelectedRuleId:f,quickPickGame:x,goToSportSelection:g}=Hr(),y=i.colors,b=he(i),w=fe(i),k=j(i),v=K(i),N=(0,a.useMemo)(()=>r??go(d),[r,d]),[C,F]=(0,a.useState)(()=>N?.defaultModeId??"extra_shot"),[B,A]=(0,a.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,a.useState)(()=>N?.defaultStake??20);if(!d||!ao(d)||!N)return(0,c.jsx)("div",{className:s,style:{color:y.textMuted,fontFamily:b},children:"No safety net available."});const L=N.modes.find(e=>e.id===C)??N.modes[0],z=uo(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 ${s}`,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)(Kl,{}),n&&(0,c.jsx)(kl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Rl,{className:"blade-sn-in",eyebrow:o?null:"Choose your safety net",iconUrl:ve(d),gameName:d.game_name,tagline:N.tagline}),(0,c.jsx)(Gl,{}),(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 ${Yl(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",Qe(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 ",Qe(N.minStake),"."]})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:Yl(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:[Qe(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:Qe(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:Qe(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)($l,{tile:(0,c.jsx)(Hl,{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)($l,{tile:(0,c.jsx)(Hl,{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 Fa({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:s=""}){const{theme:i,selectedGame:d,handlePropositionCountChange:u,setExpectedCorrect:m,setBetAmount:p,setSelectedRuleId:h,quickPickGame:f,goToSportSelection:x}=Hr(),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,a.useMemo)(()=>r??Zo(d),[r,d]),[C,F]=(0,a.useState)(()=>N?.defaultUnit??10),[B,A]=(0,a.useState)(Io);if(!d||!Wo(d)||!N)return(0,c.jsx)("div",{className:s,style:{color:g.textMuted,fontFamily:y},children:"No card available."});const M=Uo(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 ${Qe(C*N.baseMultiple*N.goldenPointFactor)}.`},captains_challenge:{sub:`Collect ${Qe(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 ${s}`,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)(Kl,{}),n&&(0,c.jsx)(kl,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Rl,{className:"blade-sx-in",eyebrow:o?null:"Set your play",iconUrl:ve(d),gameName:d.game_name,tagline:N.tagline}),(0,c.jsx)(Gl,{}),(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 ${Yl(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:Qe(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:Qe(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:["+",Qe(M.challenge)]})]})]})]}),(0,c.jsxs)("div",{className:"mt-3",children:[O("Your stake",`steps of ${Qe(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:Qe(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 ${Qe(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",`${Qe(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?Yl(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:Yl(g.primary,.12),color:g.primary},children:["+",Qe(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)($l,{tile:(0,c.jsx)(Hl,{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)($l,{tile:(0,c.jsx)(Hl,{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 Ba({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,backLabel:r="Games",className:l=""}){const{theme:s,selectedGame:i,selectedPropositionCount:d,handlePropositionCountChange:u,setExpectedCorrect:m,quickPickGame:p,goToSportSelection:h}=Hr(),f=s.colors,x=he(s);fe(s);const g=(0,a.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}=it(i);return zt(e,t)},[i]),y=Xo(i),b=g[0]??0,w=g[g.length-1]??0,[k]=(0,a.useState)(()=>null!=d&&g.includes(d)?d:w),v=(0,a.useMemo)(()=>ko(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)(Kl,{}),n&&(0,c.jsx)(kl,{onBack:n,label:r}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Rl,{className:"blade-pp-in",eyebrow:o?null:v.title,iconUrl:ve(i),gameName:i.game_name,tagline:v.heroTagline}),(0,c.jsx)(Gl,{}),(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)($l,{tile:(0,c.jsx)(Hl,{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)($l,{tile:(0,c.jsx)(Hl,{iconUrl:`${ge}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:C,onSelect:()=>{m(k),p(i,k),e?.()}})})]})]})]})}exports.BladeApiClient=Mr,exports.BrandLockup=function({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0,className:l}){const{theme:a}=Hr(),s=j(a),i=W(a),d=a.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)`}(s),u=fe(a)??"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:s},children:[(0,c.jsx)(cn,{iconUrl:e,width:p,height:p,iconColor:s,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=qt,exports.CategoryPickerPage=Tl,exports.CategoryPickerPageActions=function({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=Hr(),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=Pl,exports.ChevronRightIcon=Xt,exports.ConfirmPage=function({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,hideTitle:r,hideActions:l,className:s=""}){const i=Hr(),{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,a.useEffect)(()=>{m||(E(),e?.())},[m,E,e]),!m)return null;const R=!!(m.allowed_propositions&&m.allowed_propositions.length>0),G=it(m,y,Y),W=Jo(m,y),I=W??G.min,U=W??(Ln(m)&&b?Math.min(G.max,x.length):G.max),$=Object.keys(h).length,K=I>0&&$<I,Z=!_o(m)&&!R&&I>0&&U>I&&$>=I&&$<U,q=R?[...m.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(y??0)):[],V=R&&q.length>0&&!K,X=Z||V;H.textAlt??H.text,I>0&&I===U||U||x.length;const Q=()=>{T(),e?.()},J=(R?[...m.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===$&&e<(y??1/0)),_=R&&$<Math.min(...m.allowed_propositions??[1/0]),ee=R&&K&&!_,te=Qo(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 a=l[0];if(a>=n)return"Get every pick right to win.";const s=l.length/2;if(l.length>=2&&l.length%2==0&&l.every((e,t)=>t<s?e===t:e===n-(l.length-1-t))){const e=s-1,t=`Get all ${n} picks right — or all ${n} wrong — to win.`;return 0===e?t:`${t} ${1===e?"One miss":`Up to ${e} misses`} either way still wins.`}if(!l.every((e,t)=>e===a+t)||l[l.length-1]!==n)return`Get exactly ${l.length>1?`${l.slice(0,-1).join(", ")} or ${l[l.length-1]}`:`${l[0]}`} of your ${n} picks right to win.`;const i=l.map(e=>o?.[e]).filter(e=>Number.isFinite(e));if(i.length===l.length&&i.length>1&&i.every((e,t)=>0===t||e>i[t-1]))return`Get at least ${a} of your ${n} picks right to win — every extra right pick grows the prize.`;const c=n-a;return`Get at least ${a} of your ${n} picks right to win — you can miss ${1===c?"one":`up to ${c}`}.`}(Y,A,$,M),oe=M[$]||nr(m,$,v),re=(A??[]).length>1?"Top prize":"That pays",le=function(e,t,n){const o=[...new Set((e??[]).filter(e=>Number.isFinite(e)))].sort((e,t)=>t-e);if(o.length<2||t<=0)return[];const r=o.map(e=>({count:e,label:e===t?`Get all ${t}`:0===e?`All ${t} wrong`:`Get ${e}`,prize:n?.[e]??0}));return r.every(e=>e.prize>0)?r:[]}(A,$,M),ae=null!=J?te.belowRequiredHint(J,y??I):te.belowRequiredAddOnlyHint(y??I);return(0,a.useEffect)(()=>{!K||R&&!_||Q()},[K,R,_]),(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${s}`,style:{fontFamily:u},children:[!r&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(ea,{onBack:e,hideActions:l})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)(fl,{componentById:f,game:m,propositions:p,selections:h,onToggleSelection:O,onRemoveSelection:()=>{},onSubmit:async()=>{n?(await i.handleSubmit(),t?.()):o?.(_l(i))},onBack:Q,loading:C,error:F,expectedCorrect:w,onExpectedCorrectChange:k,betAmount:v,onBetAmountChange:N,theme:d,showCustomAmount:!0,betAmountLocked:er(m),betAmountLockedNote:tr(m),hideActions:!0,winningCounts:A,payouts:M,renderTeamLogo:L,canSubmit:B,authenticated:n,userBalance:z,onRecharge:P,boostBanner:(0,c.jsxs)(c.Fragment,{children:[X&&(0,c.jsx)("div",{className:"p-3 rounded-lg border",style:{backgroundColor:`${H.primary}08`,borderColor:`${H.primary}30`},children:V?(()=>{const e=y??$,t=S[e],n=v>0?v:20,o=null!=t&&t>0?or(t*(n/20),m):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:Qe(o)})," ","with ",e," picks"]}),(0,c.jsx)(Jl,{game:m,tiers:q.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.jsx)("button",{type:"button",onClick:Q,className:"w-full px-3 py-2 rounded-lg text-xs font-semibold transition-colors",style:{color:H.buttonPrimaryText,backgroundColor:H.buttonPrimary,cursor:"pointer"},children:"Add more picks"})}),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:[$," pick",1!==$?"s":""]}),"."," ",ae]}),(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)})]})]}),(ne||oe>0)&&(0,c.jsxs)("div",{className:"p-3 rounded-lg border",style:{backgroundColor:`${H.primary}08`,borderColor:`${H.primary}30`},children:[ne&&(0,c.jsx)("p",{className:"text-xs sm:text-sm",style:{color:H.text},children:ne}),le.length>0?(0,c.jsx)("div",{className:"mt-2 space-y-1",children:le.map(e=>(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 text-xs sm:text-sm",children:[(0,c.jsx)("span",{style:{color:H.textMuted},children:e.label}),(0,c.jsx)("span",{className:"font-bold",style:{color:j(d)},children:Qe(e.prize)})]},e.count))}):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:Qe(oe)})]})]})]})})}),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=Hr(),{theme:a,selectedGame:s,expectedCorrect:i,betAmount:d,submitting:u,submitError:m,canSubmit:p,payouts:h,selectedPropositionIds:f,screenSize:x}=l,g=a.colors;if(!s)return null;const y=h[i]??0,b=ct(s),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)(Pt,{theme:a,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:[Qe(y),k&&(0,c.jsx)("span",{style:{color:g.warning},children:" + Jackpot"})]})]}),(0,c.jsx)(Pt,{theme:a,variant:"primary",disabled:!p,onPress:async()=>{n?(await l.handleSubmit(),t?.()):o?.(_l(l))},children:n?u?"Placing…":`Place Entry (${Qe(d)})`:"Log in to place entry"})]})]})},exports.ConfirmPageTitle=ea,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:a,apiUrl:s,apiKey:i,fetchImpl:d,getAuthHeaders:u,userId:m,demoEntries:p,demoGames:h,demoPropositions:f,renderTeamLogo:x,filterSport:g}=Hr();return(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${e}`,style:{fontFamily:a},children:[!o&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(na,{onBack:n,hideActions:r})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)(gl,{apiUrl:s,apiKey:i,fetchImpl:d,getAuthHeaders:u,userId:m,demoEntries:p,demoGames:h,demoPropositions:f,onSelectEntry:t,theme:l,renderTeamLogo:x,filterSport:g})})]})},exports.EntriesPageTitle=na,exports.EntrySubmission=fl,exports.EventFilterBanner=bl,exports.EventPickerPage=El,exports.EventSwipeModal=_r,exports.FilterChipCarousel=on,exports.FilterChipRow=function({label:e,options:t,value:n,onChange:o,theme:r,bodyFont:l,className:a=""}){return(0,c.jsx)(on,{groups:[{label:e,options:t,value:n,onChange:o}],theme:r,bodyFont:l,className:a})},exports.GAME_TIER_LEVEL=Hn,exports.GAME_TIER_TABS=Rn,exports.GOLDEN_POINT_FACTOR=2,exports.GameEntries=gl,exports.GameLogo=oa,exports.GamePage=function({onSelectGame:e,onGameSetup:t,onRuleSetup:n,onGameSetBet:o,onPickYourDividend:r,onLadder:l,onMirror:s,onSafetyNet:i,onQuickPick:d,onCancel:u,hideTitle:m,hideActions:p,showPerfectPickSetup:h=!1,showTierFilter:f=!1,className:x=""}){const g=Hr(),{theme:y,games:b,loading:w,error:k,selectedGame:v,selectedPropositionCount:N,handlePropositionCountChange:C,maxPayouts:F}=g;y.colors;const B=a.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)(Nl,{onBack:u,hideActions:p})}),(0,c.jsx)(bl,{}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)(cr,{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 a=B.current;if("rule_setup"===qo(a)&&Xo(a)&&!h)return g.goToSportSelection(),void e?.();const c=qo(a);if("quick_pick"===c||"selections"===c)return g.goToSportSelection(),void e?.();t?t(c):({game_set:o,pick_your_dividend:r,ladder:l,mirror:s,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}=Hr(),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=Nl,exports.GameSelector=cr,exports.GameSetBetPage=xa,exports.GameSetBetPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Hr(),l=fe(o),a=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:a.primary,fontFamily:l},children:"The fastest multi"}),(0,c.jsx)(vl,{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:a,selectedGame:s,goToSportSelection:i,bodyFont:d}=Hr(),u={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r,className:l};switch(qo(s)){case"game_set":return(0,c.jsx)(xa,{...u});case"pick_your_dividend":return(0,c.jsx)(ga,{...u});case"ladder":return(0,c.jsx)(ya,{...u});case"mirror":return(0,c.jsx)(Na,{...u});case"safety_net":return(0,c.jsx)(Ca,{...u});case"six_again":return(0,c.jsx)(Fa,{...u});case"rule_setup":return"exact"===ko(s)?.kind?(0,c.jsx)(Ba,{...u}):(0,c.jsx)(fa,{onBack:n,hideTitle:o,backLabel:r,className:l,onContinue:()=>{i(),e?.()}});default:return(0,c.jsx)("div",{className:l,style:{color:a.colors.textMuted,fontFamily:d},children:"No setup required — this game goes straight to picks."})}},exports.HowToPlayButton=Kt,exports.HowToPlayModal=$t,exports.HowToPlayPanel=Ut,exports.LADDER_FAMILY=Eo,exports.LADDER_REFERENCE_BET=50,exports.LADDER_STAKES=Do,exports.LadderPage=ya,exports.LadderPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Hr(),l=fe(o),a=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:a.primary,fontFamily:l},children:"Every step pays"}),(0,c.jsx)(vl,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.LockIcon=Qt,exports.MIRROR_STANDARD_MARGIN=$n,exports.MarkdownContent=A,exports.MirrorPage=Na,exports.MirrorPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Hr(),l=fe(o),a=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:a.primary,fontFamily:l},children:"All right, or all wrong"}),(0,c.jsx)(vl,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.NO_BOOSTS=Io,exports.PYD_LEG_RUNGS=So,exports.PYD_RETAIL_DIVIDENDS=Mo,exports.PayoutCircles=function({game:e,totalSelections:t,expectedCorrect:n,className:o="",onExpectedCorrectChange:r,theme:l=J,colorWinning:a,colorNone:s,winningCounts:i,payouts:d}){const u=l.colors,m=a??u.payoutWinning,p=s??u.payoutNone,h=ct(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: ${Qe(h.amount)}${h.limit>0?` (up to ${Qe(h.limit)})`:""} for a perfect pick!`:h.limit>0?`Progressive Jackpot — up to ${Qe(h.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${Qe(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),a=d[o]??0,s=a>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 ${Qe(h.amount)})`:""}${h.limit>0?` — up to ${Qe(h.limit)}`:""} + ${Qe(a)}\nClick to select`:`${o} correct wins JACKPOT ${Qe(h.amount)} + ${Qe(a)}\nClick to select`:l?`${o} correct wins ${Qe(a)}\nClick to select`:s?`${o} correct pays ${Qe(a)} 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}),a>0?(0,c.jsx)("div",{className:"text-[7px] sm:text-[8px] font-normal leading-none",children:Qe(a)}):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=Ba,exports.PerfectPickPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Hr(),l=fe(o),a=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:a.primary,fontFamily:l},children:"All or nothing"}),(0,c.jsx)(vl,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.PickYourDividendPage=ga,exports.PickYourDividendPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Hr(),l=fe(o),a=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:a.primary,fontFamily:l},children:"The dividend is set"}),(0,c.jsx)(vl,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.PlaceEntryProvider=function({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,getUserBalance:l,children:s,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,yesNoLabels:S,onEntryPlaced:L,onBeforeSubmit:z,onCancel:P,onShare:T,onRecharge:O,onClearEventFilter:D,screenSize:E="desktop",howToPlayMarkdown:j,sportDisplayNames:Y,categoryDisplayNames:H}){const R=pe(i,d),G=he(R),W=fe(R),I=!(!u||!m),U=(0,a.useMemo)(()=>new Mr({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),[$,K]=(0,a.useState)(0),Z=(0,a.useRef)(0),[q,V]=(0,a.useState)(0),[X,Q]=(0,a.useState)([]),[J,_]=(0,a.useState)({}),[ee,te]=(0,a.useState)({}),[ne,oe]=(0,a.useState)(void 0),[re,le]=(0,a.useState)(null),[ae,se]=(0,a.useState)(void 0),ie=a.default.useCallback(async()=>{if(l)try{const e=await l();"number"==typeof e&&Number.isFinite(e)&&se(e)}catch(e){}},[l]);(0,a.useEffect)(()=>{l?ie():se(void 0)},[l,ie]);const ce=(0,a.useRef)(null),de=(0,a.useRef)(null),[ue,me]=(0,a.useState)(null),[xe,ge]=(0,a.useState)(b??null),[ye,be]=(0,a.useState)(w??null);(0,a.useEffect)(()=>{b&&ge(b)},[b]),(0,a.useEffect)(()=>{be(w??null)},[w]);const[we,ke]=(0,a.useState)(w),ve=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(!w)return ke(void 0),void(ve.current=!1);ve.current||ke(w)},[w]);const Ne=f??ue??void 0,Ce=ht(xe??y??b??void 0,v),Fe=ht(y,v)??y,Be=xe??void 0,{games:Ae,howToPlayMarkdown:Me,loading:Se,error:Le}=Sr(U,{category:Ne,jurisdiction:x,sport:Ce},{skip:I}),{propositions:ze,loading:Pe,error:Te}=Lr(U,{category:Ne,sport:Fe,event_id:we},{skip:I}),{sports:Oe,loading:je}=zr(U,{skip:I}),{createEntry:Ye,loading:He,error:Re,clearSubmitError:Ge}=Or(U),{preview:We}=Er(U),Ie=(0,a.useMemo)(()=>vt((I?u:Ae)??[],{category:Ne,sport:Ce??Be,sportBaseKey:v}),[I,u,Ae,Ne,Ce,Be,v]),Ue=j??Me??null,{maxPayouts:$e,refetchGame:Ke}=Tr(U,Ie??[],{skip:I,betAmount:20}),Ze=I?h??Yr:$e,qe=I?m:ze,Ve=y?(qe??[]).filter(e=>e.sport===y):qe,Qe=(0,a.useMemo)(()=>lt(Ve??[]),[Ve]),Je=(0,a.useMemo)(()=>Ne||(1===Qe.length?Qe[0]:void 0),[Ne,Qe]),_e=(0,a.useMemo)(()=>{const e=Ve??[];return Je?yt(e,{category:Je,sportBaseKey:v}):e},[Ve,Je,v]),tt=(0,a.useMemo)(()=>Be?yt(_e,{sport:Be,sportBaseKey:v}):_e,[_e,Be,v]),ot=(0,a.useMemo)(()=>({category:Je,sport:Be,sportBaseKey:v}),[Je,Be,v]),rt=(0,a.useMemo)(()=>{const e=(Ie??[]).filter(e=>e.active);if(!Je&&Qe.length>1)return[];const t=Je?vt(e,ot):e;return Je||Be?function(e,t,n){return n?.category||n?.sport?e.filter(e=>kt(e,t,n)):e}(t,tt,ot):t},[Ie,tt,ot,Je,Be,Qe.length]),{step:at,selectedGame:ct,selections:dt,placedEntry:ut,setGameOnly:xt,clearSelectedGame:gt,goToSportSelection:wt,goToConfirmation:Nt,goToSuccess:Ft,goBack:Bt,reset:At,toggleSelection:Mt}=Dr(g),St=a.default.useCallback(()=>{ve.current=!0,ke(void 0),At(),D?.()},[At,D]),Lt=!!we,zt=Lt?k:void 0,Pt=!I&&((ct?je:Se)||Pe),Tt=I?null:ct?Le||Te:Le,Dt=(0,a.useMemo)(()=>ct?Ct(tt,ct,v):tt,[ct,tt,v]),Et=(0,a.useMemo)(()=>{const e=ct?Ct(_e,ct,v):_e,t=ct?.allowed_sports,n=new Map;for(const o of e){const r=et(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}))},[ct,_e,v]),jt=(0,a.useMemo)(()=>Et.map(e=>e.key),[Et]),Yt=(0,a.useMemo)(()=>ct?Dt:_e,[ct,Dt,_e]),Ht=(0,a.useMemo)(()=>yt(ct?Dt:_e,{category:Je??"sports"}),[ct,Dt,_e,Je]),Rt=(0,a.useMemo)(()=>{const e=new Set(jt);return Oe.filter(t=>e.has(t.key))},[Oe,jt]),Gt=(0,a.useMemo)(()=>yt(Dt,{category:Je,sport:xe}),[Dt,Je,xe]),Wt=(0,a.useMemo)(()=>{if(!ct||!Ln(ct))return[];const{min:e}=it(ct,ne),t=ne??e;return Pn(Gt).filter(e=>e.propositionCount>=t)},[ct,ne,Gt]),It=(0,a.useMemo)(()=>Ln(ct)?jn(Gt,ye):Gt,[ct,Gt,ye]),Ut=function(e,t){const[n,o]=(0,a.useState)([]),r=(0,a.useRef)(new Set),l=(0,a.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]),s=(0,a.useMemo)(()=>e?function(e){const t=new Set;for(const n of e)if(De(n))for(const e of Ee(n))t.add(e);return[...t]}(t).filter(e=>!l.has(e)):[],[e,t,l]);return(0,a.useEffect)(()=>{if(!e||0===s.length)return;const t=s.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,s]),l}(I?null:U,(0,a.useMemo)(()=>[...Ve??[],...It],[Ve,It])),$t=(0,a.useMemo)(()=>Br(Dt,dt,Ut),[Dt,dt,Ut]),Kt=(0,a.useCallback)((e,t)=>{if(!(e in dt)){const t=Dt.find(t=>t.id===e);if(t&&$t.isCapped(t))return}Mt(e,t)},[dt,Dt,$t,Mt]),Zt=Object.keys(dt).map(Number),qt=Zt.length,Vt=(0,a.useMemo)(()=>Gt.filter(e=>Zt.includes(e.id)),[Gt,Zt]);(0,a.useEffect)(()=>{f||ue||1===Qe.length&&me(Qe[0])},[f,ue,Qe]),(0,a.useEffect)(()=>{if(!ct)return;const e=Dt,t=new Set(e.map(nt));let n=ue;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==ue&&me(n));const o=n?e.filter(e=>nt(e)===n):e,r=new Set(function(e){const t=new Set;for(const n of e){const o=et(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),l=ct.allowed_sports;ge(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=et(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})())},[ct?.id,Dt,ue]),(0,a.useEffect)(()=>{Ge()},[ct?.id,at,Ge]),(0,a.useEffect)(()=>{ct&&Je&&(bt(ct,Je)||gt())},[ct,Je,gt]),(0,a.useEffect)(()=>{ct&&(kt(ct,tt,{category:Je,sport:xe,sportBaseKey:v})||gt())},[ct,Je,xe,v,tt,gt]),(0,a.useEffect)(()=>{if(ct){const e=ce.current,t=de.current!==ct.id;if(de.current=ct.id,null!=e?.stake&&e.stake>0?V(e.stake):t&&V(Math.max(20,ct.min_bet??0)),e){const{count:t}=e;return ce.current=null,oe(t),void K(t)}if(!t)return;if(ct.allowed_propositions&&ct.allowed_propositions.length>0){const e=ne;null!=e&&ct.allowed_propositions.includes(e)?K(e):(oe(void 0),K(0))}else oe(void 0),K(ct.num_propositions||ct.max_propositions||0)}},[ct]);const Xt=(e,t,n)=>{const o=(Ie??[]).find(t=>t.id===e)??(ct?.id===e?ct:null),r=(Ze[e]?.top_payouts??[]).find(e=>e.proposition_count===t),l=r&&r.bet_amount&&r.bet_amount>0?r.bet_amount:20,a=r&&l>0?or(r.net_payout/l*n,o):0;return a>0?a:nr(o,t,n)};(0,a.useEffect)(()=>{if("sport"!==at&&"confirm"!==at||!ct||I)return;const e=Ln(ct)&&ye?It.length:Number.MAX_SAFE_INTEGER;let t;if(ct.allowed_propositions&&ct.allowed_propositions.length>0){const n=ct.allowed_propositions?[...ct.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void te({});const o=ne??n[0],r=n.filter(e=>e>o);if(0===r.length)return void te({});t=[o,...r]}else{const{min:n,max:o}=it(ct),r=Math.min(o,e);if(n<=0||r<=n)return void te({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=Xt(ct.id,o,20);te(n)},[at,ct,ne,ye,It.length,I,Ze]),(0,a.useEffect)(()=>{if("confirm"!==at||!ct)return;const e=Zt.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=Xt(ct.id,r,q);_(n),e!==Z.current?(Z.current=e,K(e)):($>e||$<=0&&e>0)&&K(e);const o=q>0?q:Math.max(ct.min_bet??20,.01);return(async()=>{try{const n=await We(ct.id,{actual:$,predicted:$,total:e,bet_amount:o,rule_id:re});if(t)return;if(Q(n.winning_counts),q>0&&n.payouts){const e={};for(const[t,o]of Object.entries(n.payouts)){const n=Number(t);e[n]=o>0?or(o,ct):Xt(ct.id,n,q)}_(e)}}catch{t||Q([])}})(),()=>{t=!0}},[at,ct,Zt.length,$,q,We,Ze,re]);const Qt=(0,a.useMemo)(()=>{return t=re,(e=ct)&&null!=t?e.permitted_rules?.find(e=>e.id===t)??null:null;var e,t},[ct,re]),Jt=!Ln(ct)||Yn(Vt,ye),_t=ct?it(ct,void 0,Qt):null,en=!(!ct||!Jt)&&(ct.allowed_propositions&&ct.allowed_propositions.length>0?null!=ne&&qt===ne&&st(qt,_t?.min,_t?.max):st(qt,_t?.min,_t?.max)),tn=ct?.min_bet??0,nn=Math.max(tn,.01),on=null==ae||q<=ae,rn=!He&&q>=nn&&en&&on,ln=e=>{oe(e),K(e);for(const t of Object.keys(dt))Mt(Number(t),dt[Number(t)])},an=e=>{oe(e),K(e)},sn=e=>{be(Ln(e)?w??null:null),xt(e)},cn=e=>{if(e!==ye){for(const e of Object.keys(dt)){const t=Number(e);Mt(t,dt[t])}be(e)}},dn=e=>{for(const n of Object.keys(dt)){const e=Number(n);Mt(e,dt[e])}const t=Ar([...It].sort(()=>Math.random()-.5),Math.max(0,e),Ut);for(const n of t)Mt(n.id,Math.random()<.5?"yes":"no");return t.length},un=(e,t,n)=>{const o=e.allowed_sports??[];let r=null;xe&&(0===o.length||o.some(e=>ft(xe,e,v)))?r=xe:1===o.length&&(r=o[0]);const l=yt(Ct(Ve??[],e,v),{category:Je,sportBaseKey:v});if(0===l.length)return;const a=e=>{return Ar((n=e?yt(l,{sport:e,sportBaseKey:v}):l,[...n].sort(()=>Math.random()-.5)),Math.max(0,t),Ut);var n},s=new Map;for(const m of l){const e=et(m,l);"Other"!==e&&s.set(e,(s.get(e)??0)+1)}const i=[...s.keys()].sort((e,t)=>(s.get(t)??0)-(s.get(e)??0));let c=r??i[0]??null,d=a(c);for(const m of i){if(d.length>=t)break;if(m===c)continue;const e=a(m);e.length>d.length&&(d=e,c=m)}r=c;const u=ct?.id===e.id;ce.current=u?null:{count:t,stake:n},xt(e),Ke(e.id),ge(r),u&&(oe(t),K(t),null!=n&&n>0&&V(n));for(const m of Object.keys(dt)){const e=Number(m);Mt(e,dt[e])}for(const m of d)Mt(m.id,Math.random()<.5?"yes":"no");Nt()},mn=(0,a.useRef)(!1),pn=async()=>{if(ct&&en&&!mn.current){if(I){const e={id:Math.floor(1e4*Math.random()),game_id:ct.id,user_id:r,proposition_ids:Zt,selections:dt,pending:!0,expected_correct:$,bet_amount:q};return L?.(e),Ft(e),void ie()}mn.current=!0;try{z&&await z(q);const e=await Ye({game_id:ct.id,user_id:r,proposition_ids:Zt,selections:dt,stake:q,rule_id:Qt?.id??null});L?.(e),Ft(e),ie()}catch(e){}finally{mn.current=!1}}},hn=(0,a.useCallback)(e=>function(e,t){const{overrides:n,summaryLabel:o,sportBaseKey:r}=t,l=n?.[e];return l||(r&&e.startsWith(`${r}_`)?mt(e,void 0,r):o||mt(e,void 0,r))}(e,{overrides:Y,summaryLabel:Rt.find(t=>t.key===e)?.label,sportBaseKey:v}),[Y,Rt,v]),fn=(0,a.useCallback)(e=>pt(e,H),[H]),xn=(0,a.useMemo)(()=>({theme:R,bodyFont:G,headingFont:W,games:rt,propositions:It,compositeComponentById:Ut,propositionsForCategoryPicker:Yt,sportsForSelectedGame:jt,sportOptions:Et,propositionsForSportPicker:Ht,sportSummaries:Rt,loading:Pt,error:Tt,step:at,selectedGame:ct,selections:dt,placedEntry:ut,selectedPropositionIds:Zt,selectedPropositions:Vt,selectionValid:en,selectedRuleId:re,setSelectedRuleId:le,selectedRule:Qt,answeredCount:qt,betAmount:q,setBetAmount:V,expectedCorrect:$,setExpectedCorrect:K,selectedPropositionCount:ne,handlePropositionCountChange:ln,upgradePropositionCount:an,winningCounts:X,payouts:J,overloadPayouts:ee,submitting:He,submitError:Re,canSubmit:rn,gamePrice:tn,userBalance:ae,hasSufficientBalance:on,refreshUserBalance:ie,handleSubmit:pn,selectGame:sn,goToSportSelection:()=>wt(),goToConfirmation:Nt,goBack:Bt,reset:At,clearSelectedGame:gt,toggleSelection:Kt,quickPickGame:un,quickPickSelections:dn,selectedCategory:ue,setSelectedCategory:me,selectedSport:xe,setSelectedSport:ge,selectedEventId:ye,sameGameMultiEvents:Wt,selectSameGameMultiEvent:cn,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:Lt,eventFilterLabel:zt,clearEventFilter:St,screenSize:E,displaySportName:hn,displayCategoryName:fn,maxPayouts:Ze??{},howToPlayMarkdown:Ue,onEntryPlaced:L,onCancel:P,onShare:T,onRecharge:O,demoEntries:p,demoGames:u,demoPropositions:m}),[R,G,W,rt,It,Ut,Yt,Ht,jt,Et,Rt,Pt,Tt,at,ct,dt,ut,Zt,Vt,en,qt,q,$,ne,re,Qt,X,J,ee,He,Re,rn,tn,e,t,r,ae,n,o,N,C,F,B,A,M,y,b,w,v,f,E,Lt,zt,St,ue,xe,ye,Wt,Ze,Ue,L,P,T,O,D,p,u,m,hn,fn]),gn=a.default.useMemo(()=>({yes:S?.yes??Xe.yes,no:S?.no??Xe.no}),[S?.yes,S?.no]);return(0,c.jsx)(jr.Provider,{value:xn,children:(0,c.jsx)(Ot,{value:gn,children:s})})},exports.QuickPickButton=Rr,exports.RuleSetupPage=fa,exports.RuleSetupPageActions=function({onContinue:e,canContinue:t,continueLabel:n="Continue",className:o=""}){const{theme:r,screenSize:l}=Hr(),a=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:a.buttonPrimaryText,backgroundColor:a.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}=Hr(),a=fe(o),s=o.colors,i=ko(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:s.primary,fontFamily:a},children:i?.title??"About this game"}),(0,c.jsx)(vl,{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=Ca,exports.SafetyNetPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Hr(),l=fe(o),a=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:a.primary,fontFamily:l},children:"Choose your safety net"}),(0,c.jsx)(vl,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.ScrollShelf=_t,exports.SelectionReview=function({propositions:e,selections:t,onToggleSelection:n,onNext:o,onBack:r,theme:l,colorScheme:s,hideActions:i=!1,renderTeamLogo:d,allowAnswerToggle:u=!0,gameName:m,potentialPayout:p,defaultExpanded:h=!1,componentById:f,addMorePicks:x}){const g=pe(l,s),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,a.useState)(null),[M,S]=(0,a.useState)(h),L=e.filter(e=>e.id in t),z=L.length,P=Lt(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:Qe(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:Qe(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)(ul,{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:Je(e.props[0].commence_time)})]}),e.props.map((o,l)=>{const a=t[o.id],s="yes"===a,i="no"===a;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:[dl(o,d,e.key),(0,c.jsx)(pl,{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)(Yt,{theme:g,size:"sm",value:s?"yes":i?"no":null,onYes:e=>{e.stopPropagation(),n(o.id,"yes")},onNo:e=>{e.stopPropagation(),n(o.id,"no")}}):a&&(0,c.jsx)(Ht,{theme:g,value:"yes"===a?"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)(Pt,{theme:g,variant:"secondary",onPress:r,children:"Back"}),(0,c.jsx)(Pt,{theme:g,variant:"primary",disabled:0===L.length,onPress:o,children:"Place bet"})]})]})},exports.SelectionVariantList=sl,exports.SelectionsPage=function({onNext:e,onBack:t,hideTitle:n,hideActions:o,defaultView:r="list",view:l,onViewChange:s,hideViewSwitch:i,onSwipeDragStateChange:d,className:u=""}){const m=Hr(),{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]=a.default.useState(r),Y=l??E,H=a.default.useCallback(e=>{void 0===l&&j(e),s?.(e)},[l,s]);a.default.useEffect(()=>{x||(m.goToSportSelection(),t?.())},[x,m,t]);const R=a.default.useMemo(()=>{if(!x)return null;const{min:e,max:t}=it(x,B??void 0,p);return e>0&&e===t?e:Jo(x,B)},[x,B]),G=a.default.useRef(D);a.default.useEffect(()=>{const t=G.current;G.current=D,null!=R&&t<R&&D===R&&(M(),e?.())},[D,R]);const W=a.default.useMemo(()=>lt(O??[]),[O]);if(a.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&&Ln(x)&&!T,$=(()=>{if(!Ln(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)(Zl,{onBack:o?K:void 0,onNext:o?e:void 0,hideActions:o})}),!Ln(x)&&(0,c.jsx)(bl,{}),(0,c.jsx)("div",{className:"flex-1",children:I?(0,c.jsx)(Tl,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>z(e)}):U?(0,c.jsx)(El,{}):"swipe"===Y?(0,c.jsx)(Jr,{onBack:K,onNext:e,viewSwitch:i?void 0:(0,c.jsx)(Xl,{view:Y,onChange:H}),onDragStateChange:d}):(0,c.jsx)(hl,{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)(Xl,{view:Y,onChange:H}),railSlot:e=>(0,c.jsx)(zl,{actions:e})})}),!o&&!I&&!U&&(0,c.jsx)("div",{className:"mt-6",children:(0,c.jsx)(Vl,{onNext:e,onBack:t})})]})},exports.SelectionsPageActions=Vl,exports.SelectionsPageTitle=Zl,exports.SixAgainPage=Fa,exports.SixAgainPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Hr(),l=fe(o),a=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:a.primary,fontFamily:l},children:"Set your play"}),(0,c.jsx)(vl,{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:s,className:i=""}){const{theme:d,propositionsForSportPicker:u,sportSummaries:m,loading:p,setSelectedSport:h,clearSelectedGame:f,selectedCategory:x,sportBaseKey:g,displaySportName:y}=Hr(),b=d.colors,w=K(d),k=he(d),v=fe(d),N=j(d),C=_e(u),F=Object.keys(C);return p?(0,c.jsx)(An,{colors:V(d),bodyFont:k,className:i,variant:"sport",categoryCount:F.length>0?F.length:2}):(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${i}`,style:{fontFamily:k},children:[!n&&(0,c.jsx)("div",{className:"mb-2",children:(0,c.jsx)(ra,{onBack:t,hideActions:o,backLabel:a})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[F.map(t=>{const n=m.find(e=>e.key===t),o=n?.active_props??C[t].length,a=l?.(t,o)??(n?`${s=n.games_today} game${1===s?"":"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,x));var s,i;const u=y(t);return(0,c.jsxs)("button",{type:"button",onClick:()=>{h(t),f(),e?.(t)},className:"flex w-full min-w-0 flex-col items-center gap-2 rounded-2xl border px-2 py-3 text-center transition-all hover:-translate-y-0.5 active:translate-y-0 sm:px-3 sm:py-4",style:{backgroundColor:w,borderColor:b.border,boxShadow:O(d),cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=b.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=b.border},children:[r?(0,c.jsx)("span",{className:"shrink-0",children:r(t)}):(0,c.jsx)(oa,{gameKey:t,size:64,footer:null,sportBaseKey:g,title:`${u} button`,className:"h-14 w-14 shrink-0 sm:h-16 sm:w-16"}),(0,c.jsxs)("div",{className:"flex min-w-0 w-full flex-col items-center",children:[(0,c.jsx)("span",{className:"line-clamp-2 max-w-full text-sm font-extrabold leading-tight tracking-tight sm:text-base",style:{color:N,fontFamily:v},children:u}),(0,c.jsx)("span",{className:"mt-1 line-clamp-2 max-w-full text-[0.58rem] font-bold uppercase leading-snug tracking-[0.1em]",style:{color:b.primary},children:a})]})]},t)}),s?.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??$e(e.key,g));return(0,c.jsxs)("div",{className:"flex w-full min-w-0 flex-col items-center gap-2 rounded-2xl border px-2 py-3 text-center sm:px-3 sm:py-4",style:{backgroundColor:M(b.backgroundAlt,.4),borderColor:M(b.border,.7)},children:[(0,c.jsx)("div",{className:"shrink-0",style:{opacity:.6,filter:"grayscale(1)"},children:r?r(e.key):(0,c.jsx)(oa,{gameKey:e.key,short:e.short,size:64,footer:null,sportBaseKey:g,title:`${e.label} button`,className:"h-14 w-14 shrink-0 sm:h-16 sm:w-16"})}),(0,c.jsxs)("div",{className:"flex min-w-0 w-full flex-col items-center",children:[(0,c.jsxs)("span",{className:"line-clamp-2 max-w-full text-sm font-extrabold leading-tight tracking-tight sm:text-base",style:{color:b.textMuted,fontFamily:v},children:[t,n&&n!==t?(0,c.jsxs)("span",{className:"font-bold",children:[" · ",n]}):null]}),(0,c.jsxs)("span",{className:"mt-1 line-clamp-2 max-w-full text-[0.58rem] font-bold uppercase leading-snug tracking-[0.1em]",style:{color:b.textMuted},children:[(0,c.jsx)("span",{className:"mr-1 inline-block align-[-1px]",children:(0,c.jsx)(Qt,{size:11,color:b.textMuted})}),(o=e.seasonStart,o?`Starts ${o}`:"Coming soon")]})]})]},e.key);var o})]})})]})},exports.SportPickerPageActions=function({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=Hr(),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=ra,exports.SportRail=zl,exports.StarIcon=Jt,exports.SuccessPage=function({onPlayAgain:e,onDone:t,onBack:n,onShare:o,hideTitle:r,hideActions:l,className:s=""}){const i=Hr(),{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=a.default.useRef(!1);return a.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 ${s}`,style:{fontFamily:u},children:[!r&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(ta,{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)(xl,{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:Qe(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:Qe(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:[!ot(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)(Ht,{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:a,selectedGame:s,selectedPropositions:i,selections:d,betAmount:u}=Hr();return r.colors,(0,c.jsxs)("div",{className:`flex items-center justify-between pt-4 ${o}`,children:[(0,c.jsx)(Pt,{theme:r,variant:"secondary",onPress:()=>{l(),e?.()},children:"Place Another"}),t&&(0,c.jsx)(Pt,{theme:r,variant:"primary",onPress:t,children:"Done"})]})},exports.SuccessPageTitle=ta,exports.SwipeCard=Xr,exports.SwipeCardFace=Qr,exports.SwipeDeck=Jr,exports.VISIBLE_DEPTH=3,exports.YesNoCategoryLabel=Zt,exports.applyTheme=xe,exports.availableGameTierTabs=In,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,a]=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*a>.4?n:t},exports.darkTheme=ee,exports.defaultGameTierId=Un,exports.defaultTheme=J,exports.defaultThemeSet=ae,exports.filterGamesByTierLevel=Wn,exports.filterPropositionsToEvent=jn,exports.formatCurrency=Qe,exports.formatDate=Je,exports.formatSameGameMultiEventLabel=Mn,exports.fullStackPrize=Ro,exports.gameNeedsRuleSetup=vo,exports.gameSetPrize=Bo,exports.getConfirmBoostCopy=Qo,exports.getGameFlow=qo,exports.getGameSetBetConfig=Ao,exports.getJackpotInfo=ct,exports.getLadderConfig=Go,exports.getMirrorConfig=_n,exports.getPickYourDividendConfig=Oo,exports.getPropositionEventId=zn,exports.getRuleSetupConfig=ko,exports.getSafetyNetConfig=go,exports.getSafetyNetPricing=so,exports.getSixAgainConfig=Zo,exports.getSportDisplayName=ut,exports.getTheme=de,exports.getThemeSet=function(e){return{default:ae,green:se,gold:ie,yesno:ce}[e]||ae},exports.goldLightTheme=oe,exports.goldTheme=te,exports.goldThemeSet=ie,exports.greenLightTheme=ne,exports.greenTheme=_,exports.greenThemeSet=se,exports.groupPropositionsBySport=_e,exports.groupSameGameMultiEvents=Pn,exports.groupSelectionDays=ll,exports.isFixedCardExactGame=Vo,exports.isGameSetBetGame=Fo,exports.isLadderGame=jo,exports.isMirrorGame=Qn,exports.isOpenExactMultiGame=Xo,exports.isPickYourDividendGame=Lo,exports.isSafetyNetGame=ao,exports.isSameGameMultiGame=Ln,exports.isSelectableSameGameMultiProposition=En,exports.isSixAgainGame=Wo,exports.isThemeSet=Q,exports.isValidSelectionCount=st,exports.ladderCollectAt=function(e,t,n){return Yo(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)},exports.ladderTiers=Ho,exports.mirrorPrize=function(e,t,n){const o=Kn(n?.operatorMargin),r=n?.perLegProbability??.5,l=Math.round(Math.pow(2,t)),a=Math.pow(r,t)+Math.pow(1-r,t),s=Math.round(1/a),i=(1-o)*Math.pow(2,t-1);return{legs:t,stake:e,prize:Math.round(e*i),multiple:i,totalOutcomes:l,winningOutcomes:2,oddsOneIn:s}},exports.propositionsBelongToEvent=Yn,exports.pydLadder=To,exports.pydRung=Po,exports.resolveCategoryDisplayName=pt,exports.resolveGameTierLevel=Gn,exports.resolvePrice=function(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0},exports.resolveSportDisplayName=mt,exports.resolveTheme=X,exports.roundDividendAmount=io,exports.safetyNetCollect=mo,exports.safetyNetTicket=uo,exports.sixAgainRuleId=$o,exports.sixAgainStakeMultiples=function(e,t){const n=Uo(1,e,t);return{perfect:n.perfect/n.stake,challenge:n.challenge/n.stake}},exports.sixAgainTicket=Uo,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,a.useEffect)(()=>{xe(t)},[t]),t},exports.useCalculatePayout=function(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[l,s]=(0,a.useState)(null);return{calculate:(0,a.useCallback)(async(t,o)=>{try{n(!0),r(null);const l=await e.calculatePayout(t,o);return s(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=Or,exports.useEntryPreview=Er,exports.useEvaluateRule=function(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[l,s]=(0,a.useState)(null);return{evaluate:(0,a.useCallback)(async(t,o)=>{try{n(!0),r(null);const l=await e.evaluateRule(t,o);return s(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=Pr,exports.useGameMaxPayouts=Tr,exports.useGames=Sr,exports.usePlaceEntry=Hr,exports.usePlaceEntryFlow=Dr,exports.usePropositions=Lr,exports.useResolvedTheme=pe,exports.useSports=zr,exports.useSwipeDeck=Wr,exports.useYesNoLabels=Dt,exports.version="1.30.6-pre.6";
|