@simple-parlay/components 1.29.0 → 1.30.1
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/README.md +6 -164
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +346 -282
- package/dist/react/components/ConfirmPage.d.ts +9 -2
- package/dist/react/components/EntrySubmission.d.ts +1 -1
- package/dist/react/components/GameModeCard.d.ts +26 -6
- package/dist/react/components/GamePage.d.ts +10 -6
- package/dist/react/components/GameSelector.d.ts +19 -1
- package/dist/react/components/GameSetupPage.d.ts +0 -14
- package/dist/react/components/HowToPlayButton.d.ts +15 -3
- package/dist/react/components/HowToPlayPanel.d.ts +13 -0
- package/dist/react/components/LoadingIndicators.d.ts +21 -6
- package/dist/react/components/PageBackButton.d.ts +11 -1
- package/dist/react/components/PickerBrand.d.ts +10 -0
- package/dist/react/components/PlaceEntryProvider.d.ts +5 -4
- package/dist/react/components/PropositionFilters.d.ts +24 -0
- package/dist/react/components/SafetyNetPage.d.ts +16 -0
- package/dist/react/components/SelectionReview.d.ts +1 -1
- package/dist/react/components/SelectionsPage.d.ts +7 -1
- package/dist/react/components/SportPickerPage.d.ts +3 -1
- package/dist/react/components/SportSelector.d.ts +15 -2
- package/dist/react/components/SwipeDeck.d.ts +33 -0
- package/dist/react/components/_primitives/index.d.ts +2 -0
- package/dist/react/index.d.ts +16 -4
- package/dist/react/index.js +1 -1
- package/dist/react/index.mjs +346 -282
- package/dist/react/types/index.d.ts +1 -1
- package/dist/react/utils/index.d.ts +2 -2
- package/dist/react/utils/themes.d.ts +1 -1
- package/dist/react-native/components/ConfirmPage.d.ts +9 -2
- package/dist/react-native/components/EntrySubmission.d.ts +1 -1
- package/dist/react-native/components/GameModeCard.d.ts +29 -7
- package/dist/react-native/components/GamePage.d.ts +15 -6
- package/dist/react-native/components/GameSelector.d.ts +19 -0
- package/dist/react-native/components/GameSetupPage.d.ts +2 -4
- package/dist/react-native/components/HowToPlayButton.d.ts +9 -1
- package/dist/react-native/components/HowToPlayPanel.d.ts +12 -0
- package/dist/react-native/components/IconSvg.d.ts +2 -2
- package/dist/react-native/components/LoadingIndicators.d.ts +23 -8
- package/dist/react-native/components/PageBackButton.d.ts +3 -1
- package/dist/react-native/components/PickerBrand.d.ts +8 -0
- package/dist/react-native/components/PlaceEntryProvider.d.ts +5 -4
- package/dist/react-native/components/PropositionFilters.d.ts +22 -0
- package/dist/react-native/components/SafetyNetPage.d.ts +14 -0
- package/dist/react-native/components/SelectionReview.d.ts +1 -1
- package/dist/react-native/components/SelectionsPage.d.ts +7 -1
- package/dist/react-native/components/SportPickerPage.d.ts +3 -1
- package/dist/react-native/components/SportSelector.d.ts +15 -2
- package/dist/react-native/components/SwipeDeck.d.ts +32 -0
- package/dist/react-native/components/_primitives/index.d.ts +21 -0
- package/dist/react-native/index.d.ts +16 -4
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.mjs +384 -334
- package/dist/react-native/types/index.d.ts +1 -1
- package/dist/react-native/utils/index.d.ts +2 -2
- package/dist/react-native/utils/themes.d.ts +1 -1
- package/dist/shared/api-client.d.ts +1 -0
- package/dist/shared/game-dividends.d.ts +34 -0
- package/dist/shared/game-flow.d.ts +3 -2
- package/dist/shared/hooks.d.ts +2 -1
- package/dist/shared/how-to-play-panel.d.ts +36 -0
- package/dist/shared/picker-brand.d.ts +11 -0
- package/dist/shared/rule-setup.d.ts +1 -8
- package/dist/shared/safety-net.d.ts +47 -0
- package/dist/shared/swipe-deck.d.ts +22 -0
- package/dist/shared/themes.d.ts +1 -0
- package/dist/shared/types.d.ts +31 -10
- package/dist/shared/utils.d.ts +21 -9
- package/package.json +2 -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 s=require("react");var i,a;a=null!=(i=s)?e(r(i)):{},s=((e,r,s,i)=>{if(r&&"object"==typeof r||"function"==typeof r)for(var a,c=o(r),d=0,m=c.length;d<m;d++)a=c[d],l.call(e,a)||void 0===a||t(e,a,{get:(e=>r[e]).bind(null,a),enumerable:!(i=n(r,a))||i.enumerable});return e})(t(a,"default",{value:i,enumerable:!0}),i);let c=require("react/jsx-runtime"),d=require("react-dom");var m="#C9CDD2";function u(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 f='\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 h(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 b(e){const t=e.trim();if(!t)return!1;if(y(t))return!0;const n=h(t);return!!x.test(n)||g.test(t)}function y(e){return/^<!DOCTYPE\s+html/i.test(e)||/^<html[\s>]/i.test(e)}function w(e){const t=e.trim();return t?y(t)?t:`<!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>${f}</style>\n</head>\n<body>\n<main class="page">\n${n=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=u(t[o]);if(e){const r=[e];let l=o+1;for(;l<t.length;){const e=u(t[l]);if(!e)break;r.push(e),l+=1}n.push(p(r)),o=l;continue}n.push(t[o]),o+=1}return n.join("\n")}(function(e){const t=/<p(?:\s[^>]*)?>([\s\S]*?)<\/p>/gi;let n,o="",r=0;const l=[],s=()=>{0!==l.length&&(o+=p([...l]),l.length=0)};for(;null!==(n=t.exec(e));){o+=e.slice(r,n.index);const i=n[1].replace(/<br\s*\/?>/gi,"\n").trim().split("\n").map(e=>e.trim()).filter(Boolean).map(e=>u(e));i.length>0&&i.every(e=>null!==e)?l.push(...i):(s(),o+=n[0]),r=t.lastIndex}return s(),o+=e.slice(r),o}(e))}(function(e){const t=h(e),n=t.match(/^<main[^>]*>([\s\S]*)<\/main>$/i);return n?n[1].trim():t}(t)),/class=["']logo["']/i.test(n)?n:/<div class=["']masthead["']>/i.test(n)?n.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%2Bqy605xddtI4mIDJ3zYTZgY8ADWwHrALObhmqvycC9wLVAAv6cU5xkG8lG3xevzocLgR2sc7TohznF7a1D9BL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x8DP3Y%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%2BR8OBjYv3QdIiIiE9VkkzUT7XkkW6aTAkREpBeaPiB6qfNhRsOZ0hHOh1cCB5euQ0REZBiabrJ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auDmnuLap%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" />'):n}\n</main>\n</body>\n</html>`:"";var n}function k({content:e,className:t=""}){const n=w(e);return n?(0,c.jsx)("iframe",{title:"How to play guide",srcDoc:n,className:`w-full border-0 block ${t}`,style:{minHeight:"60vh",height:"72vh",maxHeight:"calc(88vh - 8rem)"},sandbox:"allow-same-origin",loading:"lazy"}):null}var v=/^(#{1,3})\s+(.+)$/,N=/^[-*]\s+(.+)$/,F=/^-{3,}$/;function B(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}function C({rows:e,className:t=""}){return 0===e.length?null:(0,c.jsx)("table",{className:`w-full border-collapse my-2 ${t}`,style:{fontSize:15},children:(0,c.jsx)("tbody",{children:e.map((e,t)=>(0,c.jsxs)("tr",{children:[(0,c.jsx)("td",{className:"align-middle",style:{width:"64%",backgroundColor:"#F9FAFB",border:`1px solid ${m}`,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 ${m}`,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 ${m}`,padding:"11px 14px"},children:"NO"})]},t))})})}function A({text:e,colors:t,bodyFont:n}){return(0,c.jsx)(c.Fragment,{children:B(e).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 M({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=>u(e));if(t.every(e=>null!==e))return n.push({type:"propsTable",rows:t}),void(o=[])}const t=o.join(" ").trim();t&&n.push({type:"paragraph",text:t}),o=[]},s=()=>{r.length>0&&(n.push({type:"list",items:[...r]}),r=[])};for(const i of t){const e=i.trim();if(!e){s(),l();continue}const t=e.match(v);if(t){s(),l(),n.push({type:"heading",level:Math.min(t[1].length,3),text:t[2].trim()});continue}if(F.test(e)){s(),l(),n.push({type:"hr"});continue}const a=e.match(N);a?(l(),r.push(a[1].trim())):(s(),o.push(e))}return s(),l(),n}(e);return(0,c.jsx)("div",{className:`flex flex-col gap-4 ${r}`,style:{fontFamily:n},children:l.map((e,r)=>"heading"===e.type?(0,c.jsx)("div",{style:{fontSize:{1:"1.35rem",2:"1.15rem",3:"1rem"}[e.level],fontWeight:800,letterSpacing:1===e.level?"0.04em":"0.02em",textTransform:1===e.level?"uppercase":"none",color:t.text,fontFamily:o??n,lineHeight:1.25},children:(0,c.jsx)(A,{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)(A,{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)(A,{text:e,colors:t,bodyFont:n})},o))},r):"propsTable"===e.type?(0,c.jsx)(C,{rows:e.rows},r):(0,c.jsx)("hr",{style:{border:"none",borderTop:`1px solid ${t.border}`,margin:"4px 0"}},r))})}function S({open:e,onClose:t,title:n="How to Play",content:o,colors:r,bodyFont:l,headingFont:i}){const a=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(!e)return;const n=e=>{"Escape"===e.key&&t()};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e,t]),(0,s.useEffect)(()=>{if(!e)return;const t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[e]),e?(0,c.jsx)("div",{className:"fixed inset-0 z-50 flex items-end sm:items-center justify-center p-0 sm:p-4",style:{backgroundColor:"rgba(0,0,0,0.55)"},onMouseDown:e=>{e.target===e.currentTarget&&t()},children:(0,c.jsxs)("div",{ref:a,role:"dialog","aria-modal":"true","aria-labelledby":"how-to-play-title",className:"w-full sm:max-w-2xl max-h-[88vh] sm:max-h-[85vh] flex flex-col rounded-t-2xl sm:rounded-2xl border shadow-2xl overflow-hidden",style:{backgroundColor:r.background,borderColor:r.border,fontFamily:l},children:[(0,c.jsxs)("div",{className:"flex items-center justify-between px-4 sm:px-6 py-4 border-b shrink-0",style:{borderColor:r.border,backgroundColor:r.backgroundAlt},children:[(0,c.jsx)("h2",{id:"how-to-play-title",className:"text-lg font-bold",style:{color:r.text,fontFamily:i??l},children:n}),(0,c.jsx)("button",{type:"button",onClick:t,"aria-label":"Close",className:"w-9 h-9 rounded-full text-lg font-semibold",style:{color:r.textMuted,backgroundColor:r.background,border:`1px solid ${r.border}`,cursor:"pointer"},children:"×"})]}),b(o)?(0,c.jsx)("div",{className:"overflow-y-auto flex-1 min-h-0",children:(0,c.jsx)(k,{content:o,className:"min-h-[60vh]"})}):(0,c.jsx)("div",{className:"overflow-y-auto px-4 sm:px-6 py-5 flex-1 min-h-0",children:(0,c.jsx)(M,{content:o,colors:r,bodyFont:l,headingFont:i})}),(0,c.jsx)("div",{className:"px-4 sm:px-6 py-4 border-t shrink-0",style:{borderColor:r.border,backgroundColor:r.backgroundAlt},children:(0,c.jsx)("button",{type:"button",onClick:t,className:"w-full sm:w-auto px-5 py-2.5 rounded-lg text-sm font-semibold",style:{color:r.primaryText,backgroundColor:r.primary,border:"none",cursor:"pointer",fontFamily:l},children:"Got it"})})]})}):null}function L({content:e,title:t,label:n="How to Play",colors:o,bodyFont:r,headingFont:l,className:i=""}){const[a,d]=s.default.useState(!1);return e?.trim()?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("button",{type:"button",onClick:()=>d(!0),className:`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full border text-xs font-semibold ${i}`,style:{color:o.primary,borderColor:o.primary,backgroundColor:`${o.primary}10`,cursor:"pointer",fontFamily:r},children:[n,(0,c.jsx)("span",{"aria-hidden":"true",children:"?"})]}),(0,c.jsx)(S,{open:a,onClose:()=>d(!1),title:t,content:e,colors:o,bodyFont:r,headingFont:l})]}):null}function z(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function P(e){return(e.description??e.proposition??"").trim()}var O={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function D(e){return"composite_and"===(t=z(e))||"composite_or"===t;var t}function E(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 T(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 j(e,t){if(!D(e))return null;const n=function(e){return D(e)?("composite_and"===(t=z(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=E(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:P(o),eventLabel:T(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(O[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(P(e),n);return r?{operator:n,legs:r.map(e=>({text:e,eventLabel:null}))}:null}var H="#0F4C5C",Y={aussierules_afl:"AFL",rugbyleague_nrl:"NRL",basketball_nba:"NBA",basketball_ncaab:"CBB",americanfootball_nfl:"NFL",americanfootball_ncaaf:"CFB",soccer_epl:"EPL",soccer_italy_serie_a:"SEA",soccer_spain_la_liga:"LIG",soccer_germany_bundesliga:"BUN",soccer_usa_mls:"MLS",baseball_mlb:"MLB",icehockey_nhl:"NHL",horse_racing_aus:"RLT",roulette:"RLT",dice:"DCE",cointrio:"CT3"},R={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner"},W="game-icon:",G={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--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <text x="50" y="50"\n font-family="Manrope, Poppins, sans-serif"\n font-size="32"\n letter-spacing="-1"\n text-anchor="middle"\n dominant-baseline="central"\n font-weight="800"\n fill="currentColor"><tspan fill="currentColor">100</tspan><tspan fill="var(--icon-accent, #DFFF1A)">%</tspan></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 uses currentColor (teal on light, paper on the teal\n app-icon tile); the 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(4, 4) scale(1.15)">\n <circle cx="40" cy="40" r="34" fill="var(--icon-accent, #DFFF1A)"/>\n <path d="M40 8 C12 14 11 40 40 40 C69 40 68 66 40 72" fill="none" stroke="currentColor" stroke-width="4.5" stroke-linecap="round"/>\n </g>\n</svg>',pick_your_dividend:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n Splayed ladder rails and rungs with the citron ball resting at the top —\n the stacked-multi that pays every rung your streak reaches. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n\n Themable: rails/rungs use currentColor (primary tone); the ball uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <line x1="36" y1="16" x2="27" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="64" y1="16" x2="73" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="33.8" y1="34" x2="66.2" y2="34" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n <line x1="31.5" y1="52" x2="68.5" y2="52" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.8"/>\n <line x1="29.3" y1="70" x2="70.7" y2="70" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.6"/>\n <circle cx="50" cy="20" r="9" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Mirror.\n Two offset square-stacks reflected across a central seam, from the YESNO\n Mirror Standard mark ("Get them all right, you win. All wrong, you win.").\n Transparent background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left stack --\x3e\n <rect x="6" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="14" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- right stack — the reflection across x=50 --\x3e\n <rect x="66" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="58" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',same_game_multi:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon - Same Game Multi.\n Three proposition legs contained inside one rounded fixture card: many\n picks, one game. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the fixture and leg marks use currentColor (primary tone); the\n locked lead leg uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="14" y="14" width="72" height="72" rx="13" fill="none" stroke="currentColor" stroke-width="6"/>\n <circle cx="31" cy="35" r="6" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="43" y="31" width="31" height="8" rx="4" fill="currentColor"/>\n <circle cx="31" cy="51" r="6" fill="currentColor" opacity="0.8"/>\n <rect x="43" y="47" width="25" height="8" rx="4" fill="currentColor" opacity="0.8"/>\n <circle cx="31" cy="67" r="6" fill="currentColor" opacity="0.6"/>\n <rect x="43" y="63" width="19" height="8" rx="4" fill="currentColor" opacity="0.6"/>\n</svg>',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>'},I={perfectpick:"perfect_pick",headtohead:"head_to_head",totalpoints:"total_points",quickpick:"quickpick",safetynet:"safety_net",gameset:"game_set",gamesetbet:"game_set",pickyourdividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",mirrorstandard:"mirror",samegame:"same_game_multi",samegamemulti:"same_game_multi"},U={safety_net:"safety_net",game_set:"game_set",pick_your_dividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",same_game_multi:"same_game_multi"};function K(e){return`${W}${function(e){if(e.quick_pick_only)return"quickpick";return U[e.rule?.trim().toLowerCase()??""]||(I[t=e.game_name??"",t.toLowerCase().replace(/[^a-z0-9]+/g,"")]??"unknown");var t}(e)}`}function Z(e){return function(e){return e.startsWith(W)}(e)?G[e.slice(10)]??G.unknown:null}function V(e){return!!e.is_composite_component||!!(t=z(e))&&t.startsWith("co_");var t}function q(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function X(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}function Q(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 J(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){return e.reduce((t,n)=>{const o=_(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function _(e,t){if(e.sport)return e.sport;if(D(e)&&t)for(const n of E(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var ee=["sports","casino","racing"];function te(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=z(e).toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"sports"}function ne(e){const t={};for(const n of e){const e=te(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function oe(e){const t=ne(e);return ee.filter(e=>(t[e]?.length??0)>0)}function re(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";default:return"Choose a Sport"}}function le(e,t,n,o){return o&&o.length>0?o.includes(e):!(void 0!==t&&e<t||void 0!==n&&e>n)}function se(e,t){const n=e.allowed_propositions;return n&&n.length>0?null!=t&&n.includes(t)?{min:t,max:t}:{min:Math.min(...n),max:Math.max(...n)}:{min:e.min_propositions??e.num_propositions??0,max:e.max_propositions??e.num_propositions??0}}function ie(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 ae(e,t){const n={basketball_nba:"NBA Basketball",americanfootball_nfl:"NFL Football",icehockey_nhl:"NHL Hockey",baseball_mlb:"MLB Baseball",soccer_epl:"Premier League",soccer_usa_mls:"MLS Soccer",horse_racing_aus:"Horse Racing",casino_blackjack:"Blackjack",casino_roulette:"Roulette",casino_slots:"Slots"};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 ce(e,t,n){const o=t?.[e];return o||ae(e,n)}function de(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 me(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function ue(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function pe(e,t,n){return!t||!!e&&(ue(e,t,n)||ue(t,e,n))}function fe(e,t){return t.find(t=>t.id===e)}function he(e,t){let n=e;return t?.category&&(n=n.filter(e=>te(e)===t.category)),t?.sport&&(n=n.filter(n=>D(n)?function(e,t,n,o){if(pe(e.sport,t,n))return!0;if(!o)return!1;for(const r of E(e)){const e=fe(r,o);if(e&&pe(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):pe(n.sport,t.sport,t.sportBaseKey))),n}function xe(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t?t:"sports"}(e)===t}function ge(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>ue(t,e,n))}function be(e,t,n){return!(n?.category&&!xe(e,n.category))&&!(n?.sport&&!ge(e,n.sport,n.sportBaseKey))&&he(we(t,e),n).length>0}function ye(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!xe(e,t.category)||t.sport&&!ge(e,t.sport,t.sportBaseKey))):e}function we(e,t,n){const o=t.allowed_sports,r=o&&o.length>0,l=t.allowed_markets&&t.allowed_markets.length>0;return r||l?e.filter(s=>{if(V(s))return!1;if(r)if(D(s)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>ue(e.sport,t,n)))return!0;if(!o)return!1;for(const r of E(e)){const e=fe(r,o);if(e?.sport&&t.some(t=>ue(e.sport,t,n)))return!0}return!1}(s,o,n,e))return!1}else if(!s.sport||!o.some(e=>ue(s.sport,e,n)))return!1;return!(l&&!function(e,t){const n=t.allowed_markets;if(!n||0===n.length)return!0;const o=z(e);return!!o&&n.includes(o)}(s,t))}):e.filter(e=>!V(e))}var ke=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function ve(e,t,n){return function(e,t,n){return"racing"===e||!!n&&Boolean(t?.some(e=>e.sport===n||(e.sport||"").startsWith(`${n}_`)))}(t,e,n)?function(e){return e.reduce((e,t)=>{const n=t.away_team||t.eventId||"Race";return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e):function(e){return e.reduce((e,t)=>{const n=`${t.home_team} vs ${t.away_team}`;return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e)}function Ne(e,t){if(e===t)return[e];if(t<e)return[e];const n=[];for(let o=e;o<=t;o++)n.push(o);return n}function Fe(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}}function Be(e){return e.colors.heading??e.colors.text}function Ce(e){return e.colors.label??e.colors.text}function Ae(e){return e.colors.value??e.colors.text}function Me(e){return e.colors.productYes??"#00C853"}function Se(e){return e.colors.productNo??"#E53935"}function Le(e){return e.brand?.accent??e.colors.primary}function ze(e){return e.colors.selectionCard??e.colors.surface??e.colors.backgroundAlt}function Pe(e){return e.colors.matchupHeader??e.colors.backgroundAlt}function Oe(e){return{textMuted:e.colors.textMuted,border:e.colors.border,background:e.colors.background,backgroundAlt:e.colors.backgroundAlt,primary:e.colors.primary,selectionCard:ze(e)}}function De(e,t="light"){return e?Ee(e)?"dark"===t?e.dark:e.light:e:Te}function Ee(e){return"light"in e&&"dark"in e&&!("colors"in e)}var Te={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"}},je={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"}},He={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"}},Ye={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"}},Re={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"}},We={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"}},Ge={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"}},Ie={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"}},Ue={light:Te,dark:He},Ke={light:Re,dark:je},Ze={light:We,dark:Ye},Ve={light:Ge,dark:Ie};function qe(e){return{default:Te,green:je,"green-light":Re,dark:He,gold:Ye,"gold-light":We,yesno:Ie,"yesno-light":Ge}[e]||Te}var Xe={default:Te,green:je,"green-light":Re,dark:He,gold:Ye,"gold-light":We,yesno:Ie,"yesno-light":Ge},Qe={default:Ue,green:Ke,gold:Ze,yesno:Ve};function Je(e,t="light"){return De(e,t)}function $e(e){return e.fonts?.body??"inherit"}function _e(e){return e.fonts?.heading??e.fonts?.body??"inherit"}function et(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 tt=new Map,nt=new Map;function ot(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 rt({iconUrl:e,width:t,height:n,iconColor:o,accentColor:r,ariaLabel:l,style:i}){const a=Z(e),[d,m]=s.default.useState(()=>a??tt.get(e)??null);s.default.useEffect(()=>{const t=Z(e);if(t)return void m(t);if(tt.has(e))return void m(tt.get(e));let n=!1;return function(e){const t=tt.get(e);if(void 0!==t)return Promise.resolve(t);const n=nt.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=>(tt.set(e,t),nt.delete(e),t)).catch(t=>{throw nt.delete(e),t});return nt.set(e,o),o}(e).then(e=>{n||m(e)}).catch(()=>{n||m(null)}),()=>{n=!0}},[e]);const u={display:"inline-block",width:t,height:n,lineHeight:0,...i};return d?(0,c.jsx)("img",{src:ot(d,o,r),alt:l??"","aria-hidden":!l||void 0,role:l?"img":"presentation","aria-label":l||void 0,style:{...u,objectFit:"contain"}}):(0,c.jsx)("img",{src:e,alt:l??"","aria-hidden":!l||void 0,style:{...u,objectFit:"contain"}})}function lt({iconUrl:e,gameName:t,onPress:n,size:o=120,brandColor:r="#0F4C5C",cardColor:l="#DDD9D2",iconColor:s,accentColor:i,captionColor:a="#14687C",className:d,ariaLabel:m}){const u=(t||"").toUpperCase(),p=o/360,f=s??l,h=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":m??`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:a,children:u})]}),(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)(rt,{iconUrl:e,width:"100%",height:"100%",iconColor:f,accentColor:i})})]});return n?(0,c.jsx)(st,{size:o,onPress:n,className:d,ariaLabel:m??`Press to play ${t}`,renderInner:h}):(0,c.jsx)("div",{className:d,style:{width:o,height:o},children:h(!1)})}function st({size:e,onPress:t,className:n,ariaLabel:o,renderInner:r}){const[l,i]=(0,s.useState)(!1),[a,d]=(0,s.useState)(!1),m=a?"scale(0.96)":"scale(1)";return(0,c.jsx)("button",{type:"button",onClick:t,"aria-label":o,className:n,onMouseEnter:()=>i(!0),onMouseLeave:()=>{i(!1),d(!1)},onMouseDown:()=>d(!0),onMouseUp:()=>d(!1),onTouchStart:()=>d(!0),onTouchEnd:()=>d(!1),onBlur:()=>{d(!1),i(!1)},style:{width:e,height:e,padding:0,background:"transparent",border:0,cursor:"pointer",borderRadius:e/360*78,transform:m,transition:"transform 140ms ease-out"},children:r(l||a)})}function it(e){return e.selectionCard??e.backgroundAlt}function at({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 ct({color:e="#ffffff",size:t=18}){return(0,c.jsx)(at,{color:e,size:t,label:"Loading"})}function dt({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 mt({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 ut({colors:e,count:t=2}){return(0,c.jsx)("div",{className:"grid grid-cols-1 min-[400px]: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-start justify-center gap-3 rounded-2xl p-5 border-2 w-full min-h-[140px]",style:{backgroundColor:it(e),borderColor:e.border},children:[(0,c.jsx)(dt,{color:e.textMuted,className:"h-5 w-[11rem] max-w-full"}),(0,c.jsx)(dt,{color:e.textMuted,className:"h-3 w-24 max-w-[70%]"})]},n))})}function pt({colors:e,count:t=3}){return(0,c.jsx)("div",{className:"grid grid-cols-1 gap-3 w-full","aria-hidden":!0,children:Array.from({length:t}).map((t,n)=>(0,c.jsxs)("div",{className:"flex items-center justify-between rounded-2xl border-2 px-5 py-5 w-full",style:{backgroundColor:it(e),borderColor:e.border},children:[(0,c.jsxs)("div",{className:"flex items-center gap-4 min-w-0 flex-1",children:[(0,c.jsx)(dt,{color:e.textMuted,className:"h-14 w-14 rounded-2xl shrink-0"}),(0,c.jsxs)("div",{className:"flex flex-col gap-2 min-w-0 flex-1",children:[(0,c.jsx)(dt,{color:e.textMuted,className:"h-5 w-36 max-w-[75%]"}),(0,c.jsx)(dt,{color:e.textMuted,className:"h-3 w-28 max-w-[60%]"})]})]}),(0,c.jsx)(dt,{color:e.textMuted,className:"h-5 w-5 rounded shrink-0"})]},n))})}function ft({colors:e,tileSize:t=100}){return(0,c.jsx)("div",{className:"flex flex-col rounded-xl border-2 p-4 gap-4 w-full",style:{borderColor:e.border,backgroundColor:it(e),borderTopWidth:4,borderTopColor:e.primary},"aria-hidden":!0,children:(0,c.jsxs)("div",{className:"flex items-start gap-3 text-left w-full",children:[(0,c.jsxs)("div",{className:"flex flex-col gap-2 min-w-0 flex-1",children:[(0,c.jsx)(dt,{color:e.textMuted,className:"h-7 w-36 max-w-[85%]"}),(0,c.jsx)(dt,{color:e.textMuted,className:"h-3.5 w-full"}),(0,c.jsx)(dt,{color:e.textMuted,className:"h-3.5 w-[82%]"}),(0,c.jsx)(dt,{color:e.textMuted,className:"h-5 w-28 rounded-full"})]}),(0,c.jsx)(dt,{color:e.textMuted,className:"shrink-0 rounded-xl",style:{width:t,height:t}})]})})}function ht({colors:e,count:t=3,tileSize:n=100}){return(0,c.jsx)("div",{className:"flex flex-col gap-3 w-full","aria-hidden":!0,children:Array.from({length:t}).map((t,o)=>(0,c.jsx)(ft,{colors:e,tileSize:n},o))})}function xt({colors:e,rows:t=5}){return(0,c.jsx)("div",{className:"space-y-4 sm:space-y-6 pb-16 w-full","aria-hidden":!0,children:(0,c.jsx)("div",{className:"rounded-lg border-2 overflow-hidden divide-y w-full",style:{borderColor:e.border,backgroundColor:it(e)},children:Array.from({length:t}).map((t,n)=>(0,c.jsxs)("div",{className:"px-3 sm:px-4 py-2 sm:py-3 flex flex-col gap-2",style:{borderColor:e.border},children:[(0,c.jsx)(dt,{color:e.textMuted,className:"h-3.5 w-[72%] max-w-full"}),(0,c.jsx)(dt,{color:e.textMuted,className:"h-3 w-28"}),(0,c.jsxs)("div",{className:"flex items-center justify-between gap-2 pt-0.5",children:[(0,c.jsx)(dt,{color:e.textMuted,className:"h-3.5 flex-1 max-w-[58%]"}),(0,c.jsxs)("div",{className:"flex gap-1.5 shrink-0",children:[(0,c.jsx)(dt,{color:e.textMuted,className:"h-7 w-11 sm:h-8 sm:w-12 rounded-lg"}),(0,c.jsx)(dt,{color:e.textMuted,className:"h-7 w-11 sm:h-8 sm:w-12 rounded-lg"})]})]})]},n))})})}function gt({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)(dt,{color:e.textMuted,className:"h-3.5 w-[4.25rem]"}),(0,c.jsx)(dt,{color:e.textMuted,className:"h-5 min-w-[1.25rem] w-5 rounded-full"})]},t))})}function bt({colors:e}){return(0,c.jsxs)("div",{className:"rounded-lg border overflow-hidden w-full",style:{borderColor:e.border,backgroundColor:it(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)(dt,{color:e.textMuted,className:"h-[18px] w-40 max-w-[75%]"}),(0,c.jsx)(dt,{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)(dt,{color:e.textMuted,className:"h-3.5 w-10"}),(0,c.jsx)(dt,{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)(dt,{color:e.textMuted,className:"h-3.5 w-[88%]"}),(0,c.jsx)(dt,{color:e.textMuted,className:"h-3 w-[70%]"})]}),(0,c.jsx)(dt,{color:e.textMuted,className:"h-5 w-10 rounded shrink-0"})]},t))})]})}function yt({colors:e,rows:t=2}){return(0,c.jsxs)("div",{className:"w-full flex flex-col","aria-hidden":!0,children:[(0,c.jsx)(gt,{colors:e}),(0,c.jsx)("div",{className:"space-y-3 w-full",children:Array.from({length:t}).map((t,n)=>(0,c.jsx)(bt,{colors:e},n))})]})}function wt({colors:e,bodyFont:t,message:n,className:o="",variant:r="category",showLogoArea:l=!1,gameCardCount:s=3,categoryCount:i=2}){const a=(()=>{switch(r){case"sport":return(0,c.jsx)(pt,{colors:e,count:i});case"games":return(0,c.jsx)(ht,{colors:e,count:s});case"propositions":return(0,c.jsx)(xt,{colors:e,rows:5});case"entries":return(0,c.jsx)(yt,{colors:e,rows:2});default:return(0,c.jsx)(ut,{colors:e,count:i})}})();return(0,c.jsx)(mt,{className:o,bodyFont:t,children:(0,c.jsxs)("div",{role:"status","aria-live":"polite","aria-label":n?.trim()||"Loading",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,a]})})}function kt(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 vt={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:48},Nt={xs:4,sm:8,md:12,lg:16,xl:24,pill:999},Ft={xs:11,sm:13,md:14,lg:16,xl:18,xxl:22,display:28},Bt={min:44};function Ct(e){const t="dark"===e.colorScheme,n=e.colors;return{space:{...vt},radius:{...Nt},fontSize:{...Ft},touchTarget:{...Bt},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??kt(n.border,t?.6:.5)},isDark:t}}function At(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 Mt(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 St(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 ${kt(o,.9)}`,`0 0 0 ${n+5}px ${kt(o,.18)}`].join(", ")}var Lt=(0,s.forwardRef)(function({theme:e,variant:t="primary",size:n="md",disabled:o,block:r,radius:l="md",onPress:i,onDoubleClick:a,type:d="button",className:m,style:u,children:p,ariaLabel:f},h){const x=Ct(e),g=e.colors,[b,y]=s.default.useState(!1),[w,k]=s.default.useState(!1),[v,N]=s.default.useState(!1),F={sm:{h:36,px:x.space.md,fs:x.fontSize.sm},md:{h:x.touchTarget.min,px:x.space.lg,fs:x.fontSize.md},lg:{h:52,px:x.space.xl,fs:x.fontSize.lg}},B={sm:x.radius.sm,md:x.radius.md,lg:x.radius.lg,pill:x.radius.pill},C={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:kt(g.text,x.isDark?.08:.05),fg:g.text,border:"transparent"},danger:{bg:g.error,bgHover:kt(g.error,.85),fg:(g.errorText&&(g.errorText,g.error),"#ffffff"),border:g.error}}[t];return(0,c.jsx)("button",{ref:h,type:d,disabled:o,"aria-label":f,className:m,onClick:o?void 0:i,onDoubleClick:o?void 0:a,onMouseEnter:()=>y(!0),onMouseLeave:()=>{y(!1),k(!1)},onMouseDown:()=>k(!0),onMouseUp:()=>k(!1),onFocus:e=>{e.target.matches(":focus-visible")&&N(!0)},onBlur:()=>N(!1),style:{appearance:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8,width:r?"100%":void 0,minHeight:F[n].h,padding:`0 ${F[n].px}px`,fontSize:F[n].fs,fontWeight:500,fontFamily:"inherit",lineHeight:1.2,color:C.fg,background:b&&!o?C.bgHover:C.bg,border:`1px solid ${C.border}`,borderRadius:B[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?St(e):"none",outline:"none",...u},children:p})}),zt={xs:{padding:"3px 10px",fontSize:11},sm:{padding:"6px 14px",fontSize:13},md:{padding:"8px 18px",fontSize:14}};function Pt(e,t,n,o,r){const l=Ct(e);return{appearance:"none",padding:zt[o].padding,borderRadius:l.radius.sm,fontSize:zt[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 ${l.motion.durationFast}ms ${l.motion.easing}, color ${l.motion.durationFast}ms ${l.motion.easing}, border-color ${l.motion.durationFast}ms ${l.motion.easing}`,opacity:r?.5:1}}function Ot({theme:e,value:t,onYes:n,onNo:o,size:r="md",disabled:l,yesLabel:s="Yes",noLabel:i="No",className:a,style:d}){return(0,c.jsxs)("div",{className:a,style:{display:"flex",gap:8,flexShrink:0,...d},children:[(0,c.jsx)("button",{type:"button","aria-pressed":"yes"===t,disabled:l,onClick:l?void 0:n,style:Pt(e,"yes"===t,Me(e),r,l),children:s}),(0,c.jsx)("button",{type:"button","aria-pressed":"no"===t,disabled:l,onClick:l?void 0:o,style:Pt(e,"no"===t,Se(e),r,l),children:i})]})}function Dt({theme:e,value:t,size:n="md",style:o}){const r=Ct(e);return(0,c.jsx)("span",{style:{display:"inline-flex",alignItems:"center",padding:"sm"===n?"2px 8px":"3px 10px",borderRadius:r.radius.sm,fontSize:"sm"===n?10:11,fontWeight:700,letterSpacing:"0.04em",textTransform:"uppercase",color:"#ffffff",background:"yes"===t?Me(e):Se(e),...o},children:"yes"===t?"Yes":"No"})}function Et(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function Tt(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function jt(e){if(!e||e.quick_pick_only)return!1;const t=Tt(e.selection_scope);if("samegamemulti"===Tt(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(Tt);return n.includes("samegame")||n.includes("samegamemulti")}function Ht(e){return(e.eventId??e.event_id)?.trim()||null}function Yt(e){const t=new Map;for(const n of e){if(!It(n))continue;const e=Ht(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=Rt(o.homeTeam,n.home_team),o.awayTeam=Rt(o.awayTeam,n.away_team),o.sport=Rt(o.sport,n.sport),o.league=Rt(o.league,n.league),o.commenceTime=Gt(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=Wt(e.commenceTime),o=Wt(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function Rt(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function Wt(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function Gt(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=Wt(e),r=Wt(n);return r!==o?r<o?n:e:e.localeCompare(n)<=0?e:n}function It(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function Ut(e,t){return t?e.filter(e=>It(e)&&Ht(e)===t):[]}function Kt(e,t){return!!t&&e.length>0&&e.every(e=>It(e)&&Ht(e)===t)}function Zt(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function Vt(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 qt(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 Xt(e,t,n){const o=Math.max(0,e-t),r=e=>n.roundTo>0?Math.round(e/n.roundTo)*n.roundTo:Math.round(e),l=20*n.perfectMultiple*Math.pow(2,e-n.perfectBaseLegs),s=20*(1-n.margin),i=o>0?s*n.nearMissBudgetFraction/o:0,a=Math.pow(1/n.perLegProbability,e),c=[];let d=0;for(let u=0;u<=o;u+=1)d+=qt(e,u),u>=1&&(c[u]=r(i*a/d));const m=[];for(let u=0;u<=o;u+=1){let t=0===u?l:0;for(let e=Math.max(1,u);e<=o;e+=1)t+=c[e];const n=Math.round(t);m.push({misses:u,label:`${e-u}/${e}`,multiplier:n/20,payout20:n})}return m}function Qt(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:Xt(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:Xt(e,e-2,t),expectedCorrect:e-2}]}function Jt(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:Qt(t,Vt(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:Zt(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 $t(e){return null!=Jt(e)}var _t=[2500,5e3,7500,1e4,12500,15e3,2e4],en=[12,11,10,9,8,7,6];function tn(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function nn(e){return Math.round(100*e)/100}function on(e,t,n=.21875){const o=Math.pow(2,t),r=e/(1-n)/o,l=Number.isInteger(r),s=nn(r),i=l?r:nn(.96*r);return{legs:t,exactStake:s,stake:i,margin:1-e/(i*o),multiple:e/i,oddsOneIn:o,discounted:!l}}function rn(e,t=en){return{dividend:e,rungs:t.map(t=>on(e,t))}}function ln(e,t){if(!tn(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,r=en.filter(e=>e>=n&&e<=o);if(0===r.length)return null;const l=t?.dividends??_t;return{dividends:l.map(e=>rn(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 sn={signature:1,premier:2,exclusive:3},an=[{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 cn(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function dn(e,t){return e.filter(e=>cn(e)===t)}function mn(e){const t=new Set(e.map(cn));return an.filter(e=>t.has(e.level))}function un(e){return mn(e)[0]?.id??"signature"}function pn({howToPlay:e,maxPayout:t,tiers:n,modes:o,pydDividends:r,colors:l,bodyFont:i,headingFont:a,menuShadow:d,onOpenChange:m}){const[u,p]=(0,s.useState)(null),[f,h]=(0,s.useState)(!1),x=(0,s.useRef)(null),g=(0,s.useRef)(null),b=!!(o?.length||r?.length||n.some(e=>e.payout20>0)),y=!!o?.length,w=r?.length?Math.max(...r.map(e=>e.dividend)):0,k=y?`${o.length} payout options available`:r?.length?w>0?`Win up to ${Q(w)}`:null:t>0?`Win up to ${Q(t)} for $20`:null,v="pay"===u?"Hide dividends":y?"Compare dividends":"Show dividends";(0,s.useEffect)(()=>{m?.(null!==u)},[u,m]),(0,s.useEffect)(()=>{if(!u)return void h(!1);const e=x.current;if(e&&"undefined"!=typeof window){const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom;h(n<240&&t.top>n)}const t=e=>{const t=e.target;x.current?.contains(t)||g.current?.contains(t)||p(null)};return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[u]);const N=e=>({border:`1px solid ${e?l.primary:l.border}`,borderRadius:10,background:e?l.primary:l.backgroundAlt??"#FCFBF9",cursor:"pointer",padding:"9px 6px",fontFamily:i,fontWeight:700,fontSize:10,color:e?l.primaryText:l.text,display:"flex",alignItems:"center",justifyContent:"center",gap:4,lineHeight:1.1,textAlign:"center",minWidth:0}),F={position:"absolute",left:0,right:0,top:f?void 0:"calc(100% + 8px)",bottom:f?"calc(100% + 8px)":void 0,zIndex:30,borderRadius:10,border:`1px solid ${l.border}`,backgroundColor:l.background??"#fff",boxShadow:d,padding:"12px 14px",textAlign:"left",maxHeight:260,overflowY:"auto",fontFamily:i};return(0,c.jsxs)("div",{className:"w-full mt-1",style:{position:"relative"},ref:x,children:[b&&k&&(0,c.jsx)("div",{className:"mb-1.5 text-center",children:(0,c.jsx)("span",{className:"text-[11px] font-semibold leading-snug",style:{color:l.text},children:k})}),(0,c.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,c.jsxs)("button",{type:"button",style:N("how"===u),onClick:()=>p(e=>"how"===e?null:"how"),"aria-expanded":"how"===u,children:["How to Play",(0,c.jsx)("span",{"aria-hidden":"true",style:{fontSize:7,transform:"how"===u?"rotate(180deg)":void 0},children:"▼"})]}),b?(0,c.jsxs)("button",{type:"button",style:N("pay"===u),onClick:()=>p(e=>"pay"===e?null:"pay"),"aria-expanded":"pay"===u,children:[v,(0,c.jsx)("span",{"aria-hidden":"true",style:{fontSize:7,transform:"pay"===u?"rotate(180deg)":void 0},children:"▼"})]}):(0,c.jsx)("div",{})]}),"how"===u&&(0,c.jsx)("div",{ref:g,role:"dialog",className:"text-[11.5px] leading-relaxed",style:{...F,color:l.textMuted},children:e}),"pay"===u&&b&&(0,c.jsx)("div",{ref:g,role:"dialog",style:F,children:o?.length?o.map((e,t)=>(0,c.jsxs)("div",{style:{borderTop:0===t?"none":`1px solid ${l.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:l.text,fontFamily:a},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:l.textMuted,fontSize:11,flex:1},children:[e.label," correct"]}),(0,c.jsx)("span",{style:{fontWeight:700,color:l.heading??l.text,fontSize:12},children:Q(e.payout20)})]},e.label))]},e.id)):r?.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 ${l.border}`},children:[(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:l.primary},children:"Dividend"}),(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:l.primary},children:"Stake from"})]}),r.map(e=>(0,c.jsxs)("div",{className:"flex items-center justify-between py-1",children:[(0,c.jsx)("span",{style:{fontWeight:700,color:l.heading??l.text,fontSize:12},children:Q(e.dividend)}),(0,c.jsx)("span",{style:{fontWeight:600,color:l.text,fontSize:12},children:Q(e.stakeFrom)})]},e.dividend)),(0,c.jsx)("p",{className:"mt-2 text-[10px] italic",style:{color:l.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 ${l.border}`},children:[(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:l.primary},children:"Legs played"}),(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:l.primary},children:"Payout"})]}),n.map(e=>(0,c.jsxs)("div",{className:"flex items-center justify-between py-1",children:[(0,c.jsxs)("span",{style:{fontWeight:600,color:l.text,fontSize:12},children:[e.count," legs"]}),(0,c.jsx)("span",{style:{fontWeight:600,color:e.payout20>0?l.text:l.textMuted,fontSize:12},children:e.payout20>0?Q(e.payout20):"—"})]},e.count)),(0,c.jsx)("p",{className:"mt-2 text-[10px] italic",style:{color:l.textMuted},children:"Example values for a $20 bet."})]})})]})}function fn({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 ${kt(o.primary,.55)}, 0 7px 12px -4px ${kt(o.primary,.35)}`:`0 4px 0 ${kt(o.border,.9)}, 0 6px 10px -4px ${kt(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 hn({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:r,iconColor:l,accentColor:i,captionColor:a,bodyFont:d,legOptions:m,onPick:u,colors:p,menuShadow:f}){const[h,x]=(0,s.useState)(!1),[g,b]=(0,s.useState)(!1),y=(0,s.useRef)(null),w=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(!h)return void b(!1);const e=y.current;if(e&&"undefined"!=typeof window){const t=e.getBoundingClientRect(),n=40+40*m.length+12,o=window.innerHeight-t.bottom,r=t.top;b(o<n&&r>o)}const t=e=>{const t=e.target;y.current?.contains(t)||w.current?.contains(t)||x(!1)};return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[h,m.length]),(0,c.jsxs)("div",{ref:y,style:{position:"relative"},children:[(0,c.jsx)(lt,{iconUrl:e,gameName:t,onPress:()=>x(e=>!e),size:n,brandColor:o,cardColor:r,iconColor:l,accentColor:i,captionColor:a}),h&&(0,c.jsxs)("div",{ref:w,role:"menu",className:"rounded-lg overflow-hidden",style:{position:"absolute",top:g?void 0:"calc(100% + 6px)",bottom:g?"calc(100% + 6px)":void 0,right:0,zIndex:20,backgroundColor:p.background,border:`1px solid ${p.border}`,boxShadow:f,minWidth:180,fontFamily:d},children:[(0,c.jsx)("div",{className:"px-3 py-1.5 text-[10px] font-bold tracking-wider uppercase",style:{color:p.text,opacity:.55,borderBottom:`1px solid ${p.border}`},children:"How many picks?"}),m.map((e,t)=>(0,c.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>{x(!1),u(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 ${p.border}`},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=p.backgroundAlt},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},children:[(0,c.jsxs)("span",{className:"text-sm font-semibold",style:{color:p.text},children:[e," picks"]}),(0,c.jsx)("span",{className:"text-[10px] font-bold tracking-wider",style:{background:kt(p.primary,.14),color:p.primary,padding:"2px 6px",borderRadius:4},children:"QP"})]},e))]})]})}function xn({games:e,selectedGame:t,onSelectGame:n,loading:o,error:r,theme:l,colorScheme:i,showTier:a=!1,showCategory:d=!1,showTierFilter:m=!1,selectedPropositionCount:u,onPropositionCountChange:p,onPropositionCountSelected:f,onQuickPickGame:h,maxPayouts:x}){const g=Je(l,i),b=g.colors,y=ze(g),w=$e(g),k=_e(g),v=Be(g),N=At(g),F=Mt(g),B=Le(g),C=(0,s.useMemo)(()=>mn(e),[e]),[A,M]=(0,s.useState)(()=>un(e)),[S,L]=(0,s.useState)(null);(0,s.useEffect)(()=>{0!==C.length&&(C.some(e=>e.id===A)||M(C[0].id))},[C,A]);const z=(0,s.useMemo)(()=>!m||C.length<=1?e:dn(e,sn[A]),[e,m,C.length,A]),P=(0,s.useRef)(null),[O,D]=(0,s.useState)(0);(0,s.useEffect)(()=>{const e=P.current;if(!e)return;D(e.getBoundingClientRect().width);const t=new ResizeObserver(e=>{for(const t of e)D(t.contentRect.width)});return t.observe(e),()=>t.disconnect()},[]);const E=e=>e.allowed_propositions&&e.allowed_propositions.length>0&&e.game_name.replace(/\s+\d+\s*$/,"").trim()||e.game_name;if(o)return(0,c.jsx)(wt,{colors:Oe(g),bodyFont:w,variant:"games",gameCardCount:Math.min(Math.max(e.length,2),4)});if(r)return(0,c.jsx)("div",{className:"flex items-center justify-center p-8",style:{fontFamily:w},children:(0,c.jsx)("div",{style:{color:b.error},children:r})});if(0===e.length)return(0,c.jsx)("div",{className:"flex items-center justify-center p-8",style:{fontFamily:w},children:(0,c.jsx)("div",{style:{color:b.textMuted},children:"No games available"})});const T=O>0&&O<400,j=T?88:O>0&&O>=400&&O<480?96:104;return(0,c.jsxs)("div",{ref:P,className:"flex flex-col",style:{fontFamily:w},children:[m&&(0,c.jsx)(fn,{tabs:C,active:A,onChange:M,colors:b,bodyFont:w}),0===z.length?(0,c.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,c.jsx)("div",{style:{color:b.textMuted},children:"No games in this collection"})}):(0,c.jsx)("div",{className:"grid grid-cols-1 min-[420px]:grid-cols-2 gap-3",children:z.map(e=>{const o=function(e){const t=e.available_days;if(!t)return!0;if(0===t.length)return!0;const n=((new Date).getDay()+6)%7;return t.includes(n)}(e),r=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>ke[e]??`Day ${e}`);return 1===n.length?n[0]:n.slice(0,-1).join(", ")+" & "+n[n.length-1]}(e),l=t?.id===e.id,s=String(e.id),i=ie(e),m=e.description||e.rule,u=e.allowed_propositions&&e.allowed_propositions.length>0?e.allowed_propositions:[],C=e.min_propositions??e.num_propositions??null,A=e.max_propositions??e.num_propositions??null,M=0===u.length&&null!==C&&null!==A&&A>0,z=M?Ne(C,A):[],P=u.length>0?u:z,O=(()=>{const t=new Map;x?.[e.id]?.top_payouts?.length&&x[e.id].top_payouts.forEach(e=>{const n=Number(e.proposition_count),o=Number(e.net_payout),r=Number(e.bet_amount??20);!Number.isFinite(n)||n<=0||t.set(n,{count:n,payout:Number.isFinite(o)?o:0,betAmount:Number.isFinite(r)&&r>0?r:20})});for(const e of P){const n=Number(e);t.has(n)||t.set(n,{count:n,payout:0,betAmount:20})}return Array.from(t.values()).sort((e,t)=>e.count-t.count)})(),D=P.length>0?Math.max(...P.map(Number)):0,H=K(e),Y=tn(e)?ln(e):null,R=Y?Y.dividends.map(e=>({dividend:e.dividend,stakeFrom:Math.min(...e.rungs.map(e=>e.stake))})):void 0,W=Y?[]:O.map(e=>({count:e.count,payout20:e.payout>0&&e.betAmount>0?e.payout/e.betAmount*20:0})),G=Jt(e,D),I="safety_net"===G?.kind?(G.options??[]).flatMap(e=>e.dividends?.length?[{id:e.id,label:e.label,tiers:e.dividends.map(e=>({label:e.label,payout20:e.payout20}))}]:[]):[],U=(u.length>0||M)&&W.some(e=>e.payout20>0),Z=!!m||I.length>0||U||!!R?.length,V=I.length>0?I.reduce((e,t)=>t.tiers.reduce((e,t)=>Math.max(e,t.payout20),e),0):W.reduce((e,t)=>t.payout20>e?t.payout20:e,0);return(0,c.jsxs)("div",{className:"flex flex-col items-center rounded-[18px] border px-3.5 pt-6 pb-5 gap-1 text-center transition-all",style:{borderColor:l?b.primary:b.border,backgroundColor:l?b.infoBg:b.background??y,boxShadow:N,opacity:o?1:.5,pointerEvents:o?"auto":"none",position:"relative",zIndex:S===s?1:void 0},children:[e.quick_pick_only&&h&&P.length>1?(0,c.jsx)(hn,{iconUrl:H,gameName:E(e),size:j,brandColor:b.primary,cardColor:y,iconColor:b.primaryText,accentColor:B,captionColor:b.textMuted,bodyFont:w,legOptions:P.map(Number),onPick:t=>h(e,t),colors:b,menuShadow:F}):(0,c.jsx)(lt,{iconUrl:H,gameName:E(e),onPress:()=>{e.quick_pick_only&&h&&D>0?h(e,D):(D>0&&!jt(e)&&p?.(D),n(e),f?.())},size:j,brandColor:b.primary,cardColor:y,iconColor:b.primaryText,accentColor:B,captionColor:b.primary}),(0,c.jsxs)("div",{className:"mt-1",style:{fontFamily:k,fontSize:12,letterSpacing:"-0.04em",lineHeight:1},children:[(0,c.jsx)("span",{style:{fontWeight:800,color:b.primary},children:"YES"}),(0,c.jsx)("span",{style:{fontWeight:600,color:kt(b.primary,.85)},children:"NO"})]}),(0,c.jsx)("div",{className:"font-semibold leading-tight px-1",style:{fontFamily:k,fontSize:T?15:17,color:v,letterSpacing:"-0.01em"},children:E(e)}),i.enabled&&(0,c.jsxs)("span",{className:"inline-flex w-fit items-center gap-0.5 px-2 py-0.5 rounded-full mt-1",style:{backgroundColor:`${b.warning}15`,color:b.warning,fontSize:10,fontWeight:700},children:["★ ",i.progressive?i.amount>0?Q(i.amount):i.limit>0?`Up to ${Q(i.limit)}`:"Jackpot":Q(i.amount)]}),!o&&r&&(0,c.jsxs)("span",{className:"text-xs font-semibold mt-1",style:{color:b.textMuted},children:["Available ",r]}),Z&&(0,c.jsx)(pn,{howToPlay:m||"Pick outcomes and land the payout for this game.",maxPayout:V,tiers:W,modes:I,pydDividends:R,colors:b,bodyFont:w,headingFont:k,menuShadow:F,onOpenChange:e=>L(t=>e?s:t===s?null:t)}),(d||a)&&(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:b.backgroundAlt,color:Ce(g)},children:e.category}),d&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:b.backgroundAlt,color:Ce(g)},children:e.rule}),d&&e.lotto_type&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:b.backgroundAlt,color:Ce(g)},children:e.lotto_type}),a&&null!=e.tier&&(0,c.jsxs)("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:b.backgroundAlt,color:Ce(g)},children:["Tier ",e.tier]})]}),!M&&0===u.length&&(0,c.jsx)("div",{className:"mt-2 w-full",children:(0,c.jsx)(Lt,{theme:g,variant:"primary",size:"sm",onPress:()=>{n(e),f?.()},children:"Select game"})})]},s)})})]})}function gn({game:e,propositions:t,selections:n,onToggleSelection:o,onRemoveSelection:r,onSubmit:l,onBack:i,loading:a,error:d,expectedCorrect:m,onExpectedCorrectChange:u,betAmount:p,onBetAmountChange:f,theme:h,colorScheme:x,hideActions:g=!1,winningCounts:b,payouts:y,renderTeamLogo:w,showCustomAmount:k=!1,betAmountLocked:v=!1,betAmountLockedNote:N,canSubmit:F,userBalance:B,onRecharge:C,boostBanner:A}){const M=Je(h,x),S=M.colors,L=ze(M),z=$e(M),P=_e(M),O=Be(M),D=Ce(M),E=Ae(M),T=S.textAlt??S.text,j=t.length,H=e.min_bet??0,Y=Math.max(H,.01),R=e.max_bet??null,W=[5,10,20,50,100,200,500].filter(e=>e>=Y&&(null===R||e<=R)).slice(0,4),G={};for(let s=0;s<=j;s++)G[s]=p*s;const I=y??G,U=I[m]??0,K=ie(e),Z=K.enabled&&m===j,[V,q]=(0,s.useState)(null),[X,J]=(0,s.useState)(!0),$=a||p<Y||!1===F,_=null!=B&&p>B,ee=g&&!!l,te=n?t.filter(e=>e.id in n):t,ne=Object.entries(I).map(([e,t])=>({correct:Number(e),payout:t})).filter(e=>e.correct>0&&e.payout>0).sort((e,t)=>e.correct-t.correct),oe=1===ne.length?ne[0].correct:null;return s.default.useEffect(()=>{null!==oe&&m!==oe&&u(oe)},[oe]),(0,c.jsxs)("div",{className:"space-y-3 sm:space-y-4 pb-16",style:{fontFamily:z},children:[(0,c.jsxs)("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:L,borderColor:S.border,boxShadow:At(M)},children:[(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,c.jsxs)("button",{type:"button",onClick:()=>J(e=>!e),"aria-expanded":X,"aria-controls":"entry-submission-selections","aria-label":X?"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:S.textMuted,flexShrink:0,transform:X?"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:O,fontFamily:P},children:"Review Selections"})]}),(0,c.jsxs)("span",{className:"text-xs font-semibold px-2 py-0.5 rounded-full flex-shrink-0",style:{color:S.primary,backgroundColor:`${S.primary}15`},children:[te.length," pick",1!==te.length?"s":""]})]}),!X&&(0,c.jsx)("p",{className:"text-xs mt-2",style:{color:S.textMuted},children:"Tap to show your picks"}),X&&(0,c.jsx)("div",{id:"entry-submission-selections",className:"space-y-2 mt-3",children:te.map(e=>{const t=n?.[e.id],l="yes"===t,s="no"===t,i=!!o;return(0,c.jsxs)("div",{className:"flex items-start gap-2 py-2 px-3 rounded cursor-default",style:{backgroundColor:S.backgroundAlt},children:[(0,c.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,c.jsxs)("p",{className:"text-xs sm:text-sm font-medium break-words leading-snug",style:{color:T},children:[e.home_team,e.away_team&&(0,c.jsxs)(c.Fragment,{children:[" ",(0,c.jsx)("span",{style:{color:S.textMuted},children:"vs"})," ",e.away_team]})]}),(0,c.jsx)("p",{className:"text-[11px] break-words leading-snug mt-0.5",style:{color:S.textMuted},children:e.description})]}),i?(0,c.jsx)(Ot,{theme:M,size:"xs",value:l?"yes":s?"no":null,onYes:()=>o(e.id,"yes"),onNo:()=>o(e.id,"no")}):t?(0,c.jsx)(Dt,{theme:M,value:"yes"===t?"yes":"no",size:"sm",style:{flexShrink:0}}):null,X&&r&&(0,c.jsx)("button",{type:"button",onClick:()=>{t&&o?.(e.id,t),r(e.id)},onMouseEnter:()=>q(e.id),onMouseLeave:()=>q(null),className:"flex-shrink-0 w-4 h-4 flex items-center justify-center rounded-full transition-colors",style:{color:V===e.id?"#fff":S.textMuted,backgroundColor:V===e.id?S.error:"transparent",cursor:"pointer"},children:(0,c.jsx)("svg",{className:"w-2.5 h-2.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"})})})]},e.id)})}),A&&(0,c.jsx)("div",{className:"mt-2",children:A})]}),ee&&(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:S.textMuted},children:[(0,c.jsx)("span",{"aria-hidden":!0,children:"↓"}),"Scroll down to set your bet and place your entry"]}),(0,c.jsxs)("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:L,borderColor:S.border,boxShadow:At(M)},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:O,fontFamily:P},children:"How much are you betting?"}),null!=B&&(0,c.jsxs)("span",{className:"text-xs font-semibold",style:{color:S.textMuted},children:["Balance: ",(0,c.jsx)("span",{style:{color:_?S.error:S.success},children:Q(B)})]})]}),_&&(0,c.jsxs)("div",{className:"mb-3 px-3 py-2 rounded-lg flex items-center justify-between gap-3",style:{backgroundColor:S.errorBg??`${S.error}15`,color:S.errorText??S.error},children:[(0,c.jsxs)("span",{className:"text-xs font-medium",children:["Insufficient balance. Your bet of ",Q(p)," exceeds your available ",Q(B),"."]}),C&&(0,c.jsx)("button",{type:"button",onClick:C,className:"text-xs font-semibold px-3 py-1 rounded-md whitespace-nowrap",style:{backgroundColor:S.error,color:S.buttonPrimaryText??"#fff",cursor:"pointer"},children:"Add funds"})]}),v?(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-lg px-3 py-2.5",style:{backgroundColor:S.backgroundAlt,border:`1px solid ${S.border}`},children:[(0,c.jsx)("span",{className:"text-xs",style:{color:S.textMuted},children:N??"Stake is set for this ticket."}),(0,c.jsx)("span",{className:"text-lg font-bold tabular-nums",style:{color:O,fontFamily:P},children:Q(p)})]}):(0,c.jsxs)("div",{className:"space-y-4",children:[k&&(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{className:"text-xs sm:text-sm font-semibold mb-2",style:{color:D},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:S.textMuted},children:"$"}),(0,c.jsx)("input",{type:"number",inputMode:"decimal",min:Y,max:R??void 0,step:"any",placeholder:"Enter amount","aria-label":"Entry amount",value:p||"",onChange:e=>{if(""===e.target.value)return void f(0);const t=Number(e.target.value);if(!Number.isFinite(t))return;const n=Math.max(0,Math.round(100*t)/100);f(null!==R?Math.min(n,R):n)},onFocus:e=>{e.currentTarget.style.borderColor=S.borderFocus??S.primary},onBlur:e=>{e.currentTarget.style.borderColor=S.border},className:"w-full pl-8 pr-4 py-3 border rounded-lg focus:outline-none text-lg font-semibold tabular-nums",style:{borderColor:S.border,color:T,backgroundColor:S.backgroundAlt,fontFamily:z,transition:"border-color .15s ease"}})]}),(0,c.jsxs)("p",{className:"text-xs mt-1.5",style:{color:S.textMuted},children:["Minimum bet: ",Q(Y),null!==R&&(0,c.jsxs)(c.Fragment,{children:[" · Maximum: ",Q(R)]})]}),p>0&&p<Y&&(0,c.jsxs)("p",{className:"text-xs mt-1",style:{color:S.error},children:["Bet amount must be at least ",Q(Y)]})]}),(0,c.jsxs)("div",{children:[(k||p>0)&&(0,c.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[k?(0,c.jsx)("p",{className:"text-xs sm:text-sm font-semibold",style:{color:D},children:"Add to bet"}):(0,c.jsx)("span",{}),p>0&&(0,c.jsx)("button",{type:"button",onClick:()=>f(0),className:"text-xs font-semibold px-2.5 py-1 rounded-md transition-colors",style:{color:S.textMuted,backgroundColor:S.backgroundAlt,border:`1.5px solid ${S.border}`,cursor:"pointer"},children:"Clear bet"})]}),(0,c.jsx)("div",{style:{display:"grid",gridTemplateColumns:`repeat(${Math.max(W.length,1)}, minmax(0, 1fr))`,gap:8},children:W.map(e=>{const t=null!==R&&p>=R;return(0,c.jsxs)("button",{type:"button",onClick:()=>{const t=p+e;f(null!==R?Math.min(t,R):t)},disabled:t,className:"px-3 py-2.5 rounded-lg text-sm font-semibold transition-colors min-w-0",style:{color:T,backgroundColor:"transparent",border:`1px solid ${S.border}`,cursor:t?"not-allowed":"pointer",opacity:t?.5:1},children:["+",Q(e)]},e)})})]})]})]}),(0,c.jsx)("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:L,borderColor:S.border,boxShadow:At(M)},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:D},children:"Bet"}),(0,c.jsx)("span",{className:"font-semibold",style:{color:E},children:Q(p)})]}),U>0&&(0,c.jsxs)("div",{className:"flex justify-between items-center pt-2 border-t",style:{borderColor:S.border},children:[(0,c.jsx)("span",{className:"font-semibold text-sm",style:{color:D},children:"Potential Payout"}),(0,c.jsxs)("span",{className:"font-bold text-lg",style:{color:O},children:[Q(U),Z&&(0,c.jsx)("span",{className:"text-xs ml-1",style:{color:S.warning},children:"+ Jackpot"})]})]}),K.enabled&&(0,c.jsxs)("div",{className:"flex justify-between items-center mt-2 rounded px-2 py-1.5",style:{backgroundColor:`${S.warning}08`,border:`1px solid ${S.warning}25`},children:[(0,c.jsxs)("span",{className:"text-xs font-semibold",style:{color:S.warning},children:["★ ",K.progressive?"Progressive Jackpot":"Jackpot"]}),(0,c.jsx)("span",{className:"text-sm font-bold",style:{color:S.warning},children:K.progressive?K.amount>0?Q(K.amount):K.limit>0?`Up to ${Q(K.limit)}`:"Progressive":Q(K.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:S.border}}),(0,c.jsx)("button",{type:"button",onClick:l,disabled:$,"aria-busy":a,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:S.buttonPrimaryText,backgroundColor:S.buttonPrimary,cursor:$?"not-allowed":"pointer",minWidth:120},children:a?(0,c.jsxs)("span",{className:"flex flex-col items-center gap-2",children:[(0,c.jsx)(ct,{color:S.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:Q(p)})]})})]}):t})()}),d&&(0,c.jsx)("div",{className:"rounded-lg p-3",style:{backgroundColor:S.errorBg,border:`1px solid ${S.error}`},children:(0,c.jsx)("p",{className:"text-sm",style:{color:S.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:S.border,backgroundColor:S.background},children:[(0,c.jsx)(Lt,{theme:M,variant:"secondary",disabled:a,onPress:i,children:"Back"}),(0,c.jsx)("button",{type:"button",onClick:l,disabled:$,"aria-busy":a,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:S.buttonPrimaryText,backgroundColor:S.buttonPrimary,cursor:$?"not-allowed":"pointer"},children:a?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(ct,{color:S.buttonPrimaryText}),(0,c.jsx)("span",{children:"Placing Entry…"})]}):(0,c.jsx)("span",{children:`Place Entry (${Q(p)})`})})]})]})}var bn=class{constructor(e){this.inflight=new Map,this.cache=new Map,this.apiUrl=e.apiUrl,this.apiKey=e.apiKey,this.fetchImpl=e.fetchImpl??fetch.bind(globalThis),this.getAuthHeaders=e.getAuthHeaders}invalidateCache(){this.cache.clear()}invalidate(){this.invalidateCache()}async request(e,t,n){const o=`${this.apiUrl}${e}`,r=(t?.method??"GET").toUpperCase(),l="GET"===r,s=l,i=!l&&!n?.idempotent,a=`${r} ${o}`;if(s){const e=this.cache.get(a);if(e&&Date.now()-e.at<5e3)return e.value;const t=this.inflight.get(a);if(t)return t}const c=s?this.cache.get(a):void 0,d=(async()=>{let e;try{const n=this.getAuthHeaders?await this.getAuthHeaders():void 0;e=await this.fetchImpl(o,{...t,headers:{"Content-Type":"application/json",...this.apiKey?{"X-API-Key":this.apiKey}:{},...n??{},...c?.etag?{"If-None-Match":c.etag}:{},...t?.headers}})}catch(r){throw r}if(304===e.status&&c)return s&&this.cache.set(a,{at:Date.now(),value:c.value,etag:c.etag}),c.value;if(!e.ok){let t=`API request failed: ${e.status} ${e.statusText}`;try{const n=await e.json();422===e.status&&n.detail?Array.isArray(n.detail)?t=n.detail.map(e=>`${Array.isArray(e.loc)?e.loc.join("."):"field"}: ${e.msg}`).join("; "):"string"==typeof n.detail?t=n.detail:"object"==typeof n.detail&&(t=JSON.stringify(n.detail)):n.message?t=n.message:n.error&&(t=n.error)}catch{}throw new Error(t)}const n=await e.json();if(s){const t=e.headers.get("ETag")??void 0;this.cache.set(a,{at:Date.now(),value:n,etag:t})}return n})();return s?(this.inflight.set(a,d),d.catch(()=>{}).finally(()=>{this.inflight.delete(a)})):i&&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);const o=(await this.request("/game-entries",{method:"POST",body:JSON.stringify(n)})).payload;return null!=o.stake&&null==o.bet_amount&&(o.bet_amount=Number(o.stake)),o}async getPayoutsDue(e){const t=new URLSearchParams;null!=e?.game_id&&t.set("game_id",String(e.game_id)),null!=e?.limit&&t.set("limit",String(e.limit)),null!=e?.offset&&t.set("offset",String(e.offset));const n=t.toString();return await this.request(n?`/game-entries/payouts/due?${n}`:"/game-entries/payouts/due")}async getEntryPayout(e){return(await this.request(`/game-entries/${e}/payout`)).payload}async markEntryPaidOut(e){const t=await this.request(`/game-entries/${e}/payout/mark-paid-out`,{method:"POST",body:JSON.stringify({})});return this.invalidate(),t.payload}async updateGameEntryResult(e,t){return(await this.request(`/game-entries/${e}/result`,{method:"POST",body:JSON.stringify(t)})).payload}async getGameMaxPayout(e,t){const n=null!=t?`?bet_amount=${encodeURIComponent(String(t))}`:"";return(await this.request(`/games/${e}/max-payout${n}`)).payload}async getGamesMaxPayouts(e,t){if(0===e.length)return{};const n=new URLSearchParams({ids:e.join(",")});null!=t&&n.set("bet_amount",String(t));const o=await this.request(`/games/max-payouts?${n.toString()}`),r={};for(const[l,s]of Object.entries(o.payload||{}))r[Number(l)]=s;return r}async getEntryPreview(e,t){return(await this.request(`/games/${e}/preview`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async evaluateRule(e,t){return(await this.request(`/games/${e}/evaluate-rule`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async calculatePayout(e,t){return(await this.request(`/games/${e}/calculate-payout`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}};function yn(e,t,n){const[o,r]=(0,s.useState)([]),[l,i]=(0,s.useState)(null),[a,c]=(0,s.useState)(!n?.skip),[d,m]=(0,s.useState)(null),u=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",p=(0,s.useRef)(t);p.current=t;const f=n?.skip??!1,h=(0,s.useCallback)(async()=>{if(!f)try{c(!0),m(null);const t=await e.getGames(p.current);r(t.games),i(t.howToPlayMarkdown)}catch(t){m(t instanceof Error?t.message:"Failed to fetch games")}finally{c(!1)}},[e,u,f]);return(0,s.useEffect)(()=>{h()},[h]),{games:o,howToPlayMarkdown:l,loading:a,error:d,refetch:(0,s.useCallback)(async()=>{e.invalidate(),await h()},[e,h])}}function wn(e,t,n){const[o,r]=(0,s.useState)([]),[l,i]=(0,s.useState)(!n?.skip),[a,c]=(0,s.useState)(null),d=n?.skip??!1,m=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",u=(0,s.useRef)(t);u.current=t;const p=(0,s.useCallback)(async()=>{if(!d)try{i(!0),c(null),r(await e.getPropositions(u.current))}catch(t){c(t instanceof Error?t.message:"Failed to fetch propositions")}finally{i(!1)}},[e,m,d]);return(0,s.useEffect)(()=>{p()},[p]),{propositions:o,loading:l,error:a,refetch:(0,s.useCallback)(async()=>{e.invalidate(),await p()},[e,p])}}function kn(e,t){const[n,o]=(0,s.useState)([]),[r,l]=(0,s.useState)(!t?.skip),[i,a]=(0,s.useState)(null),c=t?.skip??!1,d=(0,s.useCallback)(async()=>{if(!c)try{l(!0),a(null),o(await e.getSports())}catch(t){a(t instanceof Error?t.message:"Failed to fetch sports")}finally{l(!1)}},[e,c]);return(0,s.useEffect)(()=>{d()},[d]),{sports:n,loading:r,error:i,refetch:(0,s.useCallback)(async()=>{e.invalidate(),await d()},[e,d])}}function vn(e,t,n){const[o,r]=(0,s.useState)([]),[l,i]=(0,s.useState)(!n?.skip),[a,c]=(0,s.useState)(null),d=n?.skip??!1,m=t?`${t.user_id??""}_${t.pending??""}`:"",u=(0,s.useRef)(t);u.current=t;const p=(0,s.useCallback)(async()=>{if(!d)try{i(!0),c(null),r(await e.getGameEntries(u.current))}catch(t){c(t instanceof Error?t.message:"Failed to fetch entries")}finally{i(!1)}},[e,m,d]);return(0,s.useEffect)(()=>{p()},[p]),{entries:o,loading:l,error:a,refetch:(0,s.useCallback)(async()=>{e.invalidate(),await p()},[e,p])}}function Nn(e,t,n){const[o,r]=(0,s.useState)({}),[l,i]=(0,s.useState)(!1),a=n?.skip??!1,c=n?.betAmount,d=(0,s.useRef)(new Set);return(0,s.useEffect)(()=>{if(a||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 i(!0),(async()=>{try{const t=await e.getGamesMaxPayouts(n.map(e=>e.id),c);l||r(e=>({...e,...t}))}catch{}finally{l||i(!1)}})(),()=>{l=!0}},[e,t.map(e=>e.id).join(","),a,c]),{maxPayouts:o,loading:l,refetchGame:(0,s.useCallback)(async(t,n)=>{if(!a)try{const o=await e.getGamesMaxPayouts([t],n??c);o[t]&&r(e=>({...e,[t]:o[t]}))}catch{}},[e,a,c])}}function Fn(e){const[t,n]=(0,s.useState)(!1),[o,r]=(0,s.useState)(null),[l,i]=(0,s.useState)(null);return{createEntry:async t=>{try{n(!0),r(null);const o=await e.createGameEntry(t);return i(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}}function Bn(e){const[t,n]=(0,s.useState)(e?"sport":"game"),[o,r]=(0,s.useState)(null),[l,i]=(0,s.useState)({}),[a,c]=(0,s.useState)(null);return{step:t,selectedGame:o,selections:l,placedEntry:a,setGameOnly:e=>{r(e)},clearSelectedGame:()=>{r(null),i({})},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),i({}))},reset:()=>{n("game"),r(null),i({}),c(null)},toggleSelection:(e,t)=>{i(n=>{const o={...n};return o[e]===t?delete o[e]:o[e]=t,o})}}}function Cn(e){const[t,n]=(0,s.useState)(!1),[o,r]=(0,s.useState)(null),[l,i]=(0,s.useState)(null);return{preview:(0,s.useCallback)(async(t,o)=>{try{n(!0),r(null);const l=await e.getEntryPreview(t,o);return i(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}}function An({iconUrl:e,gameName:t,chipColor:n,textColor:o,iconColor:r,accentColor:l,brandColor:s,height:i=56,showTrademark:a=!0,className:d,compact:m=!1,onPress:u}){const p=n??s??"#0F4C5C",f=.85*i,h=1.8*f,x=f/2,g=.05*f,b=.18*f,y={display:"inline-flex",alignItems:"center",flexWrap:"wrap",gap:.2*i,color:o??p,fontFamily:"Manrope, Poppins, sans-serif",fontSize:i,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:h,height:f,borderRadius:x,backgroundColor:p,flexShrink:0,transform:`translateY(${.06*-i}px)`},children:(0,c.jsx)(rt,{iconUrl:e,width:h-2*b,height:f-2*g,iconColor:r,accentColor:l})}),(0,c.jsxs)("span",{style:{fontWeight:500,whiteSpace:"normal",wordBreak:"break-word",minWidth:0,flexShrink:1},children:[t,a&&(0,c.jsx)("span",{style:{fontSize:"0.3em",fontWeight:600,marginLeft:"0.2em",display:"inline-block",transform:"translateY(-1.8em)"},children:"TM"})]})]});return u?(0,c.jsx)("button",{type:"button",onClick:u,className:d,"aria-label":`Play ${t}`,"data-testid":"brand-logo-play",style:{...y,background:"none",border:"none",padding:0,cursor:"pointer",textAlign:"left"},children:w}):(0,c.jsx)("div",{className:d,style:y,children:w})}function Mn({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,demoEntries:l,demoGames:i,demoPropositions:a,onSelectEntry:d,theme:m,colorScheme:u,className:p="",renderTeamLogo:f,filterSport:h}){const x=Je(m,u),g=!!(l&&i&&a),b=x.colors,y=$e(x),w=_e(x),[k,v]=(0,s.useState)("pending"),[N,F]=(0,s.useState)([]),B=(0,s.useMemo)(()=>new bn({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:C,loading:A,error:M,refetch:S}=vn(B,{user_id:r},{skip:g}),{games:L,loading:z,error:P}=yn(B,void 0,{skip:g}),{propositions:O,loading:D,error:E}=wn(B,void 0,{skip:g}),T=g?l:C,j=g?i:L,H=g?a:O,Y=!g&&(A||z||D),R=g?null:M||P||E,W=(0,s.useMemo)(()=>T.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}),[T]),G=(0,s.useMemo)(()=>{const e=new Map;for(const t of j)e.set(t.id,t);return e},[j]),I=(0,s.useMemo)(()=>{const e=new Map;for(const t of H)e.set(t.id,t);for(const t of W)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},[H,W,N]),U=(0,s.useRef)(new Set);(0,s.useEffect)(()=>{if(Y||g)return;const e=[];for(const n of W)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 B.getPropositionsByIds(e);!t&&n.length>0&&F(e=>[...e,...n])}catch{}})(),()=>{t=!0}},[W,I,Y,g,B]);const K=(0,s.useMemo)(()=>h?W.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===h)}):W,[W,h,I]),Z=(0,s.useMemo)(()=>K.filter(e=>X(e.pending)),[K]),V=(0,s.useMemo)(()=>K.filter(e=>!X(e.pending)),[K]),q="pending"===k?Z:V,Q=["flex-1",p].filter(Boolean).join(" ");return Y?(0,c.jsx)("div",{className:Q,style:{fontFamily:y},role:"status","aria-label":"Loading entries",children:(0,c.jsx)(yt,{colors:Oe(x),rows:2})}):R?(0,c.jsx)("div",{className:Q,style:{fontFamily:y},children:(0,c.jsxs)("div",{className:"rounded-lg p-4",style:{backgroundColor:b.errorBg,border:`1px solid ${b.error}`},children:[(0,c.jsx)("p",{style:{color:b.errorText},children:R}),(0,c.jsx)("button",{type:"button",onClick:S,className:"mt-2 text-sm font-medium underline",style:{color:b.error,cursor:"pointer"},children:"Try again"})]})}):(0,c.jsxs)("div",{className:Q,style:{fontFamily:y},children:[(0,c.jsx)("div",{className:"flex border-b mb-4",style:{borderColor:b.border},role:"tablist",children:["pending","completed"].map(e=>{const t=k===e,n="pending"===e?Z.length:V.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?b.primary:"transparent",color:t?b.primary:b.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?`${b.primary}15`:b.backgroundAlt,color:t?b.primary:b.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:b.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:b.text},children:"pending"===k?"No pending entries":"No completed entries"}),(0,c.jsx)("p",{className:"text-sm mt-1",style:{color:b.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)(Sn,{entry:e,game:G.get(e.game_id),propositionsById:I,onSelect:d,theme:x,renderTeamLogo:f},e.id))})]})}function Sn({entry:e,game:t,propositionsById:n,onSelect:o,theme:r,renderTeamLogo:l}){const i=r.colors,a=ze(r),d=_e(r),m=e.proposition_ids??[],u=(0,s.useMemo)(()=>m.map(e=>n.get(e)).filter(Boolean),[m,n]),p=m.length,f=(0,s.useMemo)(()=>{const t=new Map;for(const n of e.propositions??[])t.set(n.id,n);return t},[e.propositions]),h=t=>{const o=e.selections?.[t];return null!=o?o:f.get(t)?.user_prediction??n.get(t)?.user_prediction},x=u.filter(e=>null!=e.result&&!e.is_voided).length,g=u.filter(e=>{if(null==e.result||e.is_voided)return!1;const t=h(e.id);return null!=t&&t===e.result}).length,b=null!=e.selections&&Object.keys(e.selections).length>0||(e.propositions??[]).some(e=>null!=e.user_prediction),y=X(e.pending),w=!y&&q(e.winning)>0,k=e.payout_status,v="fulfilled"===k&&w,N=y?"Pending":v?"Won — pay due":"paid_out"===k&&w?"Paid":w?"Won":"Lost",F=y||v?i.warningBg:w?i.successBg:i.errorBg,B=y||v?i.warningText:w?i.successText:i.errorText,[C,A]=(0,s.useState)(!1),M=p>0;return(0,c.jsxs)("div",{className:"rounded-xl border overflow-hidden transition-colors",style:{borderColor:i.border,backgroundColor:a,boxShadow:At(r)},children:[(0,c.jsxs)("button",{type:"button","data-testid":"entry-card",onClick:()=>{M&&A(e=>!e),o?.({entry:e,game:t,propositions:u})},"aria-label":`Entry #${e.id}`,"aria-expanded":M?C: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)(An,{iconUrl:K(t),gameName:n,height:18,chipColor:i.primary,textColor:i.text,iconColor:i.primaryText,accentColor:r.brand?.accent}):(0,c.jsx)("h3",{className:"text-base font-semibold truncate",style:{color:i.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:i.textMuted},children:J(e.created_at||e.entry_date)}),p>0&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"text-xs",style:{color:i.textMuted},children:"·"}),(0,c.jsx)("span",{className:"text-xs font-medium",style:{color:b&&x>0?g>0?i.success:i.error:i.textMuted},children:b&&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:[q(e.bet_amount)>0&&(0,c.jsx)("p",{className:"text-xs",style:{color:i.textMuted},children:Q(q(e.bet_amount))}),!y&&q(e.winning)>0&&(0,c.jsxs)("p",{className:"text-sm font-bold",style:{color:i.success},children:[Q(q(e.winning)),(e.payout_jackpot??0)>0&&(0,c.jsxs)("span",{className:"block text-xs font-normal",style:{color:i.textMuted},children:["incl. ",Q(q(e.payout_jackpot))," jackpot"]})]})]}),(0,c.jsx)("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-bold uppercase tracking-wide",style:{backgroundColor:F,color:B},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:i.textMuted,transition:"transform .2s ease",transform:C?"rotate(180deg)":"none"},children:(0,c.jsx)("path",{d:"m6 9 6 6 6-6"})})]})]}),C&&p>0&&(0,c.jsx)("div",{className:"border-t divide-y",style:{borderColor:i.border},children:m.map(t=>{const o=(t=>n.get(t)??e.propositions?.find(e=>e.id===t))(t),s=h(t);if(!o)return(0,c.jsxs)("div",{className:"px-4 py-2.5 flex items-center gap-3",style:{borderColor:i.border},children:[(0,c.jsx)("div",{className:"flex-1 min-w-0",children:(0,c.jsxs)("p",{className:"text-sm",style:{color:i.textMuted},children:["Loading proposition #",t,"…"]})}),null!=s&&(0,c.jsx)(Dt,{theme:r,value:"yes"===s?"yes":"no",size:"sm"})]},t);const a=o.result,d=null!=a,m=!!o.is_voided,u=d&&!m&&null!=s&&s===a;let p,f,x;return m?(p="Void",f=`${i.textMuted}20`,x=i.textMuted):d?u?(p="Won",f=i.successBg,x=i.successText):(p="Lost",f=i.errorBg,x=i.errorText):(p="Pending",f=i.warningBg,x=i.warningText),(0,c.jsxs)("div",{className:"px-4 py-2.5 flex items-center gap-3",style:{borderColor:i.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:i.text},children:[l&&o.home_team&&l(o.home_team),o.home_team&&(0,c.jsx)("span",{children:o.home_team}),o.home_team&&o.away_team&&(0,c.jsx)("span",{className:"text-xs font-normal",style:{color:i.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:i.textMuted},children:o.proposition||o.description}),o.commence_time&&(0,c.jsx)("p",{className:"text-xs mt-0.5",style:{color:i.textMuted},children:J(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:i.textMuted},children:"Pick"}),null!=s?(0,c.jsx)(Dt,{theme:r,value:"yes"===s?"yes":"no",size:"sm"}):(0,c.jsx)("span",{className:"text-xs",style:{color:i.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:i.textMuted},children:"Result"}),(0,c.jsx)("span",{className:"px-2 py-0.5 rounded text-xs font-bold uppercase whitespace-nowrap",style:{backgroundColor:f,color:x},children:p})]})]},t)})})]})}var Ln=(0,s.createContext)(null);function zn(){const e=(0,s.useContext)(Ln);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function Pn({onPress:e,onDoubleClick:t,label:n="QUICKPICK",size:o="md",yesColor:r,noColor:l,theme:i}){const a=(0,s.useContext)(Ln),d=i??a?.theme??Te,m=Ct(d),u=d.colors,p=r??Me(d),f=l??Se(d),h="sm"===o,x=h?m.space.xs:m.space.sm,g=h?6:8,b=h?m.fontSize.sm:m.fontSize.md,y=h?8.5:10,[w,k]=s.default.useState(!1),[v,N]=s.default.useState(!1);return(0,c.jsxs)("button",{type:"button",onClick:e,onDoubleClick:t,onMouseDown:()=>k(!0),onMouseUp:()=>k(!1),onMouseLeave:()=>k(!1),onFocus:e=>{e.target.matches(":focus-visible")&&N(!0)},onBlur:()=>N(!1),style:{appearance:"none",display:"inline-flex",flexDirection:"column",width:"100%",minWidth:92,padding:0,margin:0,border:`1px solid ${kt(u.border,.6)}`,background:"transparent",borderRadius:m.radius.sm,overflow:"hidden",cursor:"pointer",fontFamily:"inherit",transform:w?"scale(0.985)":"scale(1)",transition:`transform ${m.motion.durationFast}ms ${m.motion.easing}, box-shadow ${m.motion.durationFast}ms ${m.motion.easing}`,boxShadow:v?St(d):"none",outline:"none",minHeight:m.touchTarget.min},children:[(0,c.jsxs)("span",{style:{position:"relative",display:"flex",flex:1},children:[(0,c.jsx)("span",{"aria-hidden":!0,style:{position:"absolute",inset:0,background:p,clipPath:"polygon(0 0, 53% 0, 47% 100%, 0 100%)"}}),(0,c.jsx)("span",{"aria-hidden":!0,style:{position:"absolute",inset:0,background:f,clipPath:"polygon(53% 0, 100% 0, 100% 100%, 47% 100%)"}}),(0,c.jsx)("span",{style:{position:"relative",flex:1,textAlign:"center",padding:`${g}px ${x}px`,color:"#ffffff",fontSize:b,fontWeight:600,letterSpacing:.2,whiteSpace:"nowrap"},children:"Yes"}),(0,c.jsx)("span",{style:{position:"relative",flex:1,textAlign:"center",padding:`${g}px ${x}px`,color:"#ffffff",fontSize:b,fontWeight:600,letterSpacing:.2,whiteSpace:"nowrap"},children:"No"}),(0,c.jsx)("svg",{"aria-hidden":"true",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none"},preserveAspectRatio:"none",children:(0,c.jsx)("line",{x1:"53%",y1:"0",x2:"47%",y2:"100%",stroke:"rgba(255,255,255,0.85)",strokeWidth:"1.5"})})]}),(0,c.jsx)("span",{style:{background:u.buttonSecondary,color:u.buttonSecondaryText,fontSize:y,letterSpacing:"0.14em",padding:"3px 0 4px",textAlign:"center",fontWeight:700,fontFamily:d.fonts?.mono??"inherit"},children:n})]})}function On({className:e=""}){const{theme:t,eventFilterActive:n,eventFilterLabel:o,clearEventFilter:r,gameCategory:l}=zn();if(!n)return null;const s=t.colors,i=o??("racing"===l?"This race":"This event");return(0,c.jsxs)("div",{className:`mb-4 flex flex-col gap-2 rounded-xl border px-3 py-2.5 sm:flex-row sm:items-center sm:justify-between ${e}`,style:{borderColor:`${s.primary}33`,backgroundColor:`${s.surface}`},children:[(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-[0.12em]",style:{color:s.primary},children:"Event filter"}),(0,c.jsx)("p",{className:"truncate text-sm font-semibold",style:{color:s.text},children:i}),(0,c.jsx)("p",{className:"text-xs",style:{color:s.textMuted},children:"Only propositions from this event are shown."})]}),(0,c.jsx)("button",{type:"button",onClick:r,className:"shrink-0 self-start rounded-lg border px-3 py-1.5 text-xs font-semibold transition-opacity hover:opacity-90 sm:self-center",style:{borderColor:`${s.primary}44`,backgroundColor:s.background,color:s.text,cursor:"pointer"},children:"Show all events"})]})}function Dn({onBack:e,title:t="Go back",className:n=""}){const{theme:o}=zn(),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 En({onBack:e,hideActions:t,children:n,className:o=""}){const r=!!e;return r||n?(0,c.jsxs)("div",{className:`flex items-center gap-1.5 mt-0.5 ${o}`,children:[r&&e&&(0,c.jsx)(Dn,{onBack:e}),n]}):null}var Tn=[1,5,10,20,50,100],jn=[4,12];function Hn(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function Yn(e,t,n){const o=n?.operatorMargin??.2,r=n?.perLegProbability??.5,l=Math.round(Math.pow(1/r,t)),s=(1-o)*Math.pow(1/r,t);return{legs:t,stake:e,prize:Math.round(e*s*100)/100,multiple:s,oddsOneIn:l}}function Rn(e){if(!Hn(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??jn[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??jn[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n);if(0===o.length)return null;const r=Math.max(e.min_bet??1,.01),l=e.max_bet??null,s=Tn.filter(e=>e>=r&&(null===l||e<=l));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(20,r),l??20),minStake:r,maxStake:l,quickStakes:s,tagline:"Two steps to your multi. Tweak legs and stake — the prize updates as you go.",operatorMargin:e.operator_margin??.2,perLegProbability:e.payout_structure?.per_leg_probability??.5}}var Wn=[25,50,75,100],Gn=[{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 In(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function Un(e,t){return Math.round(e*t/50*100)/100}function Kn(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:Un(o,t),cumulative:Un(n,t)}))}function Zn(e,t){return Un(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function Vn(e){if(!In(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=Gn.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??Wn[0],s=e.max_bet??Wn[Wn.length-1],i=Wn.filter(e=>e>=l&&e<=s);return{ladders:r,defaultLegs:r.some(e=>8===e.legs)?8:r[Math.floor(r.length/2)].legs,defaultStake:i.includes(50)?50:i[0]??50,stakes:i.length>0?i:Wn,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}var qn=[1,5,10,20,50],Xn=[4,12];function Qn(e){return!!e&&!e.quick_pick_only&&"mirror"===(e.rule??"").trim().toLowerCase()}function Jn(e,t,n){const o=n?.operatorMargin??.21875,r=n?.perLegProbability??.5,l=Math.round(Math.pow(2,t)),s=Math.pow(r,t)+Math.pow(1-r,t),i=Math.round(1/s),a=(1-o)*Math.pow(2,t-1);return{legs:t,stake:e,prize:Math.round(e*a*100)/100,multiple:a,totalOutcomes:l,winningOutcomes:2,oddsOneIn:i}}function $n(e){if(!Qn(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Xn[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Xn[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n);if(0===o.length)return null;const r=Math.max(e.min_bet??1,.01),l=e.max_bet??null,s=qn.filter(e=>e>=r&&(null===l||e<=l));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(20,r),l??20),minStake:r,maxStake:l,quickStakes:s,tagline:"Call every leg. Get them all right, you win — all wrong, you win the same.",operatorMargin:e.operator_margin??.21875,perLegProbability:e.payout_structure?.per_leg_probability??.5}}function _n(e){return e?.quick_pick_only?"quick_pick":Hn(e)?"game_set":tn(e)?"pick_your_dividend":In(e)?"ladder":Qn(e)?"mirror":jt(e)?"selections":$t(e)?"rule_setup":"selections"}function eo(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(jt(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 to(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||jt(e)||eo(e))}function no(e){switch(_n(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":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 oo({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,bodyFont:l,howToPlayMarkdown:s,selectedCategory:i,displayCategoryName:a}=zn(),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:Be(o),fontFamily:r},children:"Choose your game"}),s?.trim()&&(0,c.jsx)(L,{content:s,title:"How to Play",colors:{text:d.text,textMuted:d.textMuted,border:d.border,background:d.background,backgroundAlt:d.backgroundAlt,primary:d.primary,primaryText:d.primaryText},bodyFont:l,headingFont:r,className:"shrink-0 mt-0.5"})]}),(0,c.jsx)(En,{onBack:t,hideActions:n,children:i&&(0,c.jsx)("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:d.textMuted},children:a(i)})})]})}var ro={today:"Today",weekend:"This weekend",next7:"Next 7 days"},lo=["today","weekend","next7"];function so(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function io(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:so(n,1)};case"weekend":{const e=n.getDay(),t=so(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:so(t,2)}}case"next7":return{start:n,end:so(n,7)}}}(t,n);return o>=r&&o<l}function ao(e,t,n){if(!t||n)return null;const o=e.outcome||e.description;return o?t(o):null}function co({matchup:e,renderTeamLogo:t,showHomeAway:n=!1,altText:o,mutedColor:r,size:l="sm"}){const[s,i=""]=e.split(" vs "),a=i.length>0,d="md"===l?"text-sm sm:text-base":"text-sm";if(!t&&!n)return(0,c.jsx)("span",{className:`font-semibold ${d} leading-snug break-words`,style:{color:o},children:e});const m=(e,o)=>(0,c.jsxs)("span",{className:"inline-flex items-center gap-1 leading-snug min-w-0 max-w-full",children:[t?.(e),(0,c.jsxs)("span",{className:"inline-flex flex-col min-w-0",children:[(0,c.jsx)("span",{className:"break-words",children:e}),n&&o&&(0,c.jsx)("span",{className:"text-[10px] font-normal uppercase tracking-wide",style:{color:r},children:o})]})]});return(0,c.jsxs)("span",{className:`font-semibold ${d} flex flex-col items-start gap-1 min-w-0 max-w-full sm:flex-row sm:flex-wrap sm:items-center sm:gap-x-1.5`,style:{color:o},children:[m(s,"Home"),a&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"text-xs font-normal flex-shrink-0",style:{color:r},children:"vs"}),m(i,"Away")]})]})}function mo({label:e,colors:t}){const n="OR"===e?"If either wins, you win.":"Both must win for Yes.",[o,r]=(0,s.useState)(!1),[l,i]=(0,s.useState)({top:0,left:0}),a=(0,s.useRef)(null),d=(0,s.useCallback)(()=>{const e=a.current;if(!e)return;const t=e.getBoundingClientRect();i({top:t.bottom+4,left:t.left})},[]);return(0,s.useEffect)(()=>{if(!o)return;d();const e=()=>d();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[o,d]),(0,c.jsxs)("span",{className:"relative inline-flex flex-shrink-0",onMouseEnter:()=>{d(),r(!0)},onMouseLeave:()=>r(!1),children:[(0,c.jsx)("button",{ref:a,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:kt(t.primary,.14),border:`1px solid ${kt(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??kt(t.primary,.3)}`},children:n})]})}function uo({prop:e,colors:t,size:n="sm",componentById:o}){const r=j(e,o),l=e.description??e.proposition??"",i="md"===n?"text-sm sm:text-base font-medium":"text-xs sm:text-sm",a=t.textMuted??t.textAltMuted??t.text;if(!r)return(0,c.jsx)("span",{className:i,style:{color:t.text},children:l});const{operator:d,legs:m}=r;return m.some(e=>e.eventLabel)?(0,c.jsx)("div",{className:"min-w-0 flex-1 flex flex-col gap-2",children:m.map((e,n)=>(0,c.jsxs)("div",{className:"min-w-0",children:[n>0&&(0,c.jsx)("div",{className:"mb-1 flex items-center",children:(0,c.jsx)(mo,{label:d,colors:t})}),e.eventLabel&&(0,c.jsx)("div",{className:"text-[10px] sm:text-xs font-semibold uppercase tracking-wide leading-tight break-words",style:{color:a},children:e.eventLabel}),(0,c.jsx)("span",{className:i,style:{color:t.text},children:e.text})]},n))}):(0,c.jsx)("div",{className:"min-w-0 flex-1",children:(0,c.jsx)("div",{className:"flex flex-wrap items-center gap-x-1.5 gap-y-1",children:m.map((e,n)=>(0,c.jsxs)(s.default.Fragment,{children:[n>0&&(0,c.jsx)(mo,{label:d,colors:t}),(0,c.jsx)("span",{className:i,style:{color:t.text},children:e.text})]},n))})})}function po({game:e,propositions:t,selections:n,onToggleSelection:o,onNext:r,onBack:l,loading:i,error:a,theme:d,colorScheme:m,hideActions:u=!1,initialSport:p,renderTeamLogo:f,disableQuickPick:h=!1,selectedPropositionCount:x,onPropositionCountChange:g,showHomeAway:b=!1,gameCategory:y}){const w=(0,s.useContext)(Ln),k=w?.sportBaseKey,v=function(e,t){const[n,o]=(0,s.useState)([]),r=(0,s.useRef)(new Set),l=(0,s.useMemo)(()=>{const e=new Map;for(const n of t)e.set(n.id,n);for(const t of n)e.set(t.id,t);return e},[t,n]),i=(0,s.useMemo)(()=>e?function(e){const t=new Set;for(const n of e)if(D(n))for(const e of E(n))t.add(e);return[...t]}(t).filter(e=>!l.has(e)):[],[e,t,l]);return(0,s.useEffect)(()=>{if(!e||0===i.length)return;const t=i.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,i]),l}((0,s.useMemo)(()=>w?.apiUrl?new bn({apiUrl:w.apiUrl,apiKey:w.apiKey,fetchImpl:w.fetchImpl,getAuthHeaders:w.getAuthHeaders}):null,[w?.apiUrl,w?.apiKey,w?.fetchImpl,w?.getAuthHeaders]),t),N=Je(d,m),F=N.colors,B=ze(N),C=(A=N).colors.selectionProp??A.colors.background;var A;const M=F.matchupHeader??(e.color?kt(e.color,.14):Pe(N)),S=F.textAlt??F.text,L=At(N),P=$e(N);_e(N),Be(N);const O=!!(e.allowed_propositions&&e.allowed_propositions.length>0),{min:T,max:j}=se(e,x),H=T,Y=j,[R,W]=s.default.useState(()=>new Set(Object.keys(ve(t,y,k)))),G=H>0&&H===Y,I=H||1,U=Y||t.length,K=Y||H||t.length,[Z,V]=s.default.useState(K),q=Object.keys(n).length,X=Y>0&&q>=Y,Q=O?null!=x&&q===x:le(q,e.min_propositions,e.max_propositions);e.min_bet,Y>0?Math.max(2,2*Y):Math.max(2,2*q);const $=s.default.useRef(q),_=O?null!=x&&q===x:Y>0&&q===Y;(0,s.useEffect)(()=>{_&&q>$.current&&r?.(),$.current=q},[q,_]);const ee=(e,t)=>{!(e in n)&&X||o(e,t)};(0,s.useEffect)(()=>{const e=Y||t.length,n=H||1;V(t=>G?Y:Math.max(n,Math.min(t,e)))},[t.length,H,Y,G]);const te=(0,s.useMemo)(()=>new Date,[]),ne=(0,s.useMemo)(()=>function(e,t){const n=e.filter(e=>null!=function(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}(e));if(n.length<2)return[];const o=[];for(const r of lo){let e=0,l=0;for(const o of n)if(io(o.commence_time,r,t)?e+=1:l+=1,e>0&&l>0)break;e>0&&l>0&&o.push({id:r,label:ro[r]})}return o}(t,te),[t,te]),[oe,re]=(0,s.useState)(null);(0,s.useEffect)(()=>{oe&&!ne.some(e=>e.id===oe)&&re(null)},[ne,oe]);const ie=(0,s.useMemo)(()=>function(e,t,n){return t?e.filter(e=>io(e.commence_time,t,n)):e.slice()}(t,oe,te),[t,oe,te]),ae=(0,s.useMemo)(()=>ve(ie,y,k),[ie,y,k]),ce=(0,s.useMemo)(()=>{const e=new Set;for(const t of ie){const n=z(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[ie]),[de,me]=(0,s.useState)(null);(0,s.useEffect)(()=>{de&&!ce.includes(de)&&me(null)},[ce,de]);const ue=(0,s.useMemo)(()=>{if(!de)return ae;const e={};for(const[t,n]of Object.entries(ae)){const o=n.filter(e=>z(e)===de);o.length>0&&(e[t]=o)}return e},[ae,de]),pe=Object.keys(ue);if(s.default.useEffect(()=>{const e=Object.keys(ue);e.length>0&&W(t=>e.every(e=>t.has(e))?t:new Set(e))},[ue]),i)return(0,c.jsx)(wt,{colors:Oe(N),bodyFont:P,variant:"propositions"});if(a)return(0,c.jsx)("div",{className:"flex items-center justify-center p-8",style:{fontFamily:P},children:(0,c.jsx)("div",{style:{color:F.error},children:a})});const fe=!h&&t.length>0;return(0,c.jsxs)("div",{className:"space-y-4 sm:space-y-6 pb-16",style:{fontFamily:P},children:[ne.length>0&&(0,c.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,c.jsx)("span",{className:"text-[11px] font-bold uppercase tracking-wide mr-0.5",style:{color:F.textMuted},children:"When"}),(0,c.jsx)("button",{type:"button",onClick:()=>re(null),className:"rounded-full px-3 py-1.5 text-[11px] font-bold transition-colors",style:{fontFamily:P,border:`1px solid ${null==oe?F.primary:F.border}`,backgroundColor:null==oe?F.primary:F.background??"#fff",color:null==oe?F.primaryText:F.text,cursor:"pointer"},children:"All dates"}),ne.map(e=>{const t=oe===e.id;return(0,c.jsx)("button",{type:"button",onClick:()=>re(e.id),className:"rounded-full px-3 py-1.5 text-[11px] font-bold transition-colors",style:{fontFamily:P,border:`1px solid ${t?F.primary:F.border}`,backgroundColor:t?F.primary:F.background??"#fff",color:t?F.primaryText:F.text,cursor:"pointer"},children:e.label},e.id)})]}),ce.length>1&&(0,c.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,c.jsx)("button",{type:"button",onClick:()=>me(null),className:"rounded-full px-3 py-1.5 text-[11px] font-bold transition-colors",style:{fontFamily:P,border:`1px solid ${null==de?F.primary:F.border}`,backgroundColor:null==de?F.primary:F.background??"#fff",color:null==de?F.primaryText:F.text,cursor:"pointer"},children:"All markets"}),ce.map(e=>{const t=de===e;return(0,c.jsx)("button",{type:"button",onClick:()=>me(e),className:"rounded-full px-3 py-1.5 text-[11px] font-bold transition-colors",style:{fontFamily:P,border:`1px solid ${t?F.primary:F.border}`,backgroundColor:t?F.primary:F.background??"#fff",color:t?F.primaryText:F.text,cursor:"pointer"},children:(n=e,n.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))},e);var n})]}),fe&&(0,c.jsx)("div",{className:"flex flex-wrap items-center justify-end gap-2",children:(0,c.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2 flex-shrink-0",children:[!G&&(0,c.jsxs)("div",{className:"flex items-center gap-1",children:[(0,c.jsx)("input",{type:"number",min:I,max:U,value:Z,onChange:e=>{const t=parseInt(e.target.value,10);isNaN(t)||V(Math.max(I,Math.min(U,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:S,backgroundColor:F.backgroundAlt,border:`2px solid ${F.border}`}}),(0,c.jsxs)("span",{className:"text-xs whitespace-nowrap",style:{color:F.textMuted},children:["/ ",t.length]})]}),(0,c.jsx)(Pn,{onPress:()=>{const e=G?Y:Z;for(const t of Object.keys(n)){const e=Number(t);o(e,n[e])}const{yesPicks:l,noPicks:s}=Fe(t,e);for(const t of l)o(t.id,"yes");for(const t of s)o(t.id,"no");r?.()}})]})}),t.length>0&&(0,c.jsx)("div",{className:"space-y-4",children:pe.every(e=>1===ue[e].length)?(0,c.jsx)("div",{className:"rounded-xl border overflow-hidden divide-y",style:{borderColor:F.border,backgroundColor:B,boxShadow:L},children:pe.map(e=>{const t=ue[e][0],o="yes"===n[t.id],r="no"===n[t.id],l=t.id in n,s=X&&!l;return(0,c.jsxs)("div",{className:"transition-colors divide-y",style:{opacity:s?.45:1,borderColor:F.border},children:[(0,c.jsxs)("div",{className:"px-4 py-2.5 sm:py-3 min-w-0",style:{backgroundColor:M},children:[(0,c.jsx)("div",{className:"min-w-0",children:(0,c.jsx)(co,{matchup:e,renderTeamLogo:f,altText:S,mutedColor:F.textAltMuted??F.textMuted??S})}),t.commence_time&&(0,c.jsx)("span",{className:"text-[11px] block mt-0.5",style:{color:F.textAltMuted??F.textMuted,opacity:.7},children:J(t.commence_time)})]}),(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 px-4 py-3 sm:py-3.5",style:{backgroundColor:C},children:[(0,c.jsxs)("div",{className:"min-w-0 flex-1 flex items-start gap-2",children:[ao(t,f,b),(0,c.jsx)(uo,{prop:t,colors:F,componentById:v})]}),(0,c.jsx)(Ot,{theme:N,size:"sm",value:o?"yes":r?"no":null,onYes:()=>ee(t.id,"yes"),onNo:()=>ee(t.id,"no"),disabled:s})]})]},t.id)})}):pe.map(e=>{const t=ue[e],o=R.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:F.border,backgroundColor:B,boxShadow:L},children:[(0,c.jsxs)("button",{type:"button",onClick:()=>{return t=e,W(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:M,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:F.textAltMuted??F.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)(co,{matchup:e,renderTeamLogo:f,showHomeAway:b,altText:S,mutedColor:F.textAltMuted??F.textMuted??S,size:"md"}),l&&(0,c.jsx)("p",{className:"text-xs mt-0.5 text-left",style:{color:F.textAltMuted??F.textMuted,opacity:.7},children:J(l)})]})]}),(0,c.jsx)("div",{className:"flex items-center gap-2 flex-shrink-0 ml-2",children:r>0&&(0,c.jsxs)("span",{className:"text-xs px-2 py-0.5 rounded-full font-medium",style:{color:r>0?F.successText:F.textMuted,backgroundColor:r>0?F.successBg:F.backgroundAlt},children:[r,"/",t.length]})})]}),o&&(0,c.jsx)("div",{className:"divide-y",style:{borderColor:F.border},children:(0,c.jsx)(c.Fragment,{children:t.map(e=>{const t="yes"===n[e.id],o="no"===n[e.id],r=e.id in n,l=X&&!r;return(0,c.jsx)("div",{className:"px-4 py-3 sm:py-3.5 transition-colors",style:{backgroundColor:C,opacity:l?.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:[ao(e,f,b),(0,c.jsx)(uo,{prop:e,colors:F,size:"md",componentById:v})]}),(0,c.jsx)(Ot,{theme:N,size:"sm",value:t?"yes":o?"no":null,onYes:()=>ee(e.id,"yes"),onNo:()=>ee(e.id,"no"),disabled:l})]})},e.id)})})})]},e)})}),0===t.length&&(0,c.jsx)("div",{className:"text-center p-8",style:{color:F.textMuted},children:"No propositions available at this time"}),!u&&(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:F.border,backgroundColor:B},children:[(0,c.jsx)(Lt,{theme:N,variant:"secondary",onPress:l,children:"Back"}),(0,c.jsx)("div",{className:"flex items-center gap-2 sm:gap-3",children:(0,c.jsx)(Lt,{theme:N,variant:"primary",disabled:!Q,onPress:r,children:"Wager"})})]})]})}function fo({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",className:r,title:l,sportBaseKey:s}){const i=function(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=Y[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()||"·"}(e,s,t),a=function(e){return e.length<=3?92:4===e.length?72:56}(i),d=l??`${i} button`;return(0,c.jsxs)("svg",{viewBox:"0 0 360 360",width:n,height:n,xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",className:r,role:"img","aria-label":d,children:[(0,c.jsx)("title",{children:d}),(0,c.jsx)("rect",{x:"2",y:"2",width:"356",height:"356",rx:"78",fill:"#DDD9D2",stroke:H,strokeWidth:"4"}),(0,c.jsx)("rect",{x:"50",y:"10",width:"260",height:"260",rx:"52",fill:H,opacity:"0.30"}),(0,c.jsx)("rect",{x:"50",y:"35",width:"260",height:"260",rx:"52",fill:H,opacity:"0.55"}),(0,c.jsx)("rect",{x:"50",y:"60",width:"260",height:"260",rx:"52",fill:H}),(0,c.jsx)("text",{x:"180",y:"220",fontFamily:"Manrope, Poppins, sans-serif",fontSize:a,letterSpacing:"-3",textAnchor:"middle",fontWeight:800,fill:"#DFFF1A",children:i}),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:H,children:o}),(0,c.jsx)("text",{x:"262",y:"333",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"10",fontWeight:600,fill:H,children:"TM"})]})]})}function ho({label:e,category:t,icon:n,theme:o,disabled:r=!1}){const l=o.colors,s=_e(o),i=r?l.textMuted:l.textAlt??l.text,a=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:i,fontFamily:s},children:[(0,c.jsxs)("span",{className:"shrink-0","aria-label":"YESNO",style:{letterSpacing:-1,whiteSpace:"nowrap"},children:[(0,c.jsx)("span",{style:{fontWeight:900},children:"YES"}),(0,c.jsx)("span",{style:{fontWeight:300},children:"NO"})]}),(0,c.jsx)("span",{role:"img","aria-label":e,className:"shrink-0",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1.6em",height:"0.85em",borderRadius:"0.425em",flexShrink:0,backgroundColor:a,color:d,transform:"translateY(-0.02em)"},children:n??(0,c.jsx)(xo,{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 xo({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 go({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 bo({className:e="",onBack:t,hideActions:n,backLabel:o="Category"}){const{theme:r,selectedCategory:l}=zn(),s=r.colors,i=_e(r);return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:i},children:re(l)}),(0,c.jsx)(En,{onBack:t,hideActions:n,children:t&&(0,c.jsx)("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:s.textMuted},children:o})})]})}function yo({onSelectSport:e,onCancel:t,hideTitle:n,hideActions:o,renderSportLogo:r,renderSportTagline:l,backLabel:s,className:i=""}){const{theme:a,propositionsForSportPicker:d,sportSummaries:m,loading:u,setSelectedSport:p,clearSelectedGame:f,selectedCategory:h,sportBaseKey:x,displaySportName:g}=zn(),b=a.colors,y=ze(a),w=$e(a),k=_e(a),v=Be(a),N=$(d),F=Object.keys(N);return u?(0,c.jsx)(wt,{colors:Oe(a),bodyFont:w,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:w},children:[!n&&(0,c.jsx)("div",{className:"mb-2",children:(0,c.jsx)(bo,{onBack:t,hideActions:o,backLabel:s})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)("div",{className:"grid grid-cols-1 gap-2.5 sm:gap-3",children:F.map(t=>{const n=m.find(e=>e.key===t),o=n?.active_props??N[t].length,s=l?.(t,o)??(n?`${i=n.games_today} game${1===i?"":"s"} today · ${a=n.active_props} pick${1===a?"":"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,h));var i,a;const d=g(t);return(0,c.jsxs)("button",{type:"button",onClick:()=>{p(t),f(),e?.(t)},className:"group flex items-center justify-between gap-2 sm:gap-3 rounded-2xl border px-3.5 py-3.5 sm:px-5 sm:py-5 text-left transition-all min-w-0 w-full hover:shadow-md active:scale-[0.99]",style:{backgroundColor:y,borderColor:b.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=b.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=b.border},children:[(0,c.jsxs)("div",{className:"flex items-center gap-3 sm:gap-4 min-w-0 flex-1",children:[(0,c.jsx)("div",{className:"shrink-0",children:r?r(t):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(fo,{gameKey:t,size:44,footer:null,sportBaseKey:x,title:`${d} button`,className:"min-[400px]:hidden"}),(0,c.jsx)(fo,{gameKey:t,size:56,footer:null,sportBaseKey:x,title:`${d} button`,className:"hidden min-[400px]:block"})]})}),(0,c.jsxs)("div",{className:"flex flex-col min-w-0 flex-1 gap-0.5",children:[(0,c.jsx)("span",{className:"text-base sm:text-lg font-extrabold tracking-tight break-words leading-tight",style:{color:v,fontFamily:k},children:d}),(0,c.jsx)("span",{className:"text-[10px] sm:text-xs font-medium uppercase tracking-[0.08em] sm:tracking-[0.1em] break-words",style:{color:b.primary},children:s})]})]}),(0,c.jsx)(go,{size:20,color:b.textMuted,className:"shrink-0 min-[400px]:hidden group-hover:opacity-100"}),(0,c.jsx)(go,{size:24,color:b.textMuted,className:"shrink-0 hidden min-[400px]:block group-hover:opacity-100"})]},t)})})})]})}function wo({className:e="",onBack:t,hideActions:n}){const{theme:o}=zn(),r=_e(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)(En,{onBack:t,hideActions:n})]})}function ko({onSelectCategory:e,onCancel:t,hideTitle:n,hideActions:o,renderCategoryIcon:r,getCategoryTagline:l,className:s=""}){const{theme:i,propositionsForCategoryPicker:a,loading:d,setSelectedCategory:m,setSelectedSport:u,clearSelectedGame:p,displayCategoryName:f}=zn(),h=i.colors,x=ze(i),g=$e(i);ne(a);const b=oe(a);return d?(0,c.jsx)(wt,{colors:Oe(i),bodyFont:g,className:s,variant:"category",categoryCount:b.length>0?b.length:2}):(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${s}`,style:{fontFamily:g},children:[!n&&(0,c.jsx)("div",{className:"mb-2",children:(0,c.jsx)(wo,{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:b.map(t=>{const n=l?.(t)??function(e){return R[e]??""}(t);return(0,c.jsxs)("button",{type:"button",onClick:()=>{m(t),u(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:h.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=h.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=h.border},children:[(0,c.jsx)(ho,{label:f(t),category:t,icon:r?.(t),theme:i}),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:h.primary},children:n}):null]},t)})})})]})}function vo(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 No({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 Fo({onSelectEvent:e,className:t=""}){const{theme:n,loading:o,sameGameMultiEvents:r,selectSameGameMultiEvent:l,renderTeamLogo:i,displaySportName:a}=zn(),[d,m]=s.default.useState(null),u=n.colors,p=$e(n),f=_e(n),h=ze(n),x=Pe(n);return o?(0,c.jsx)(wt,{colors:Oe(n),bodyFont:p,className:t,variant:"sport",categoryCount:2}):(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:u.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:u.border,backgroundColor:h,color:u.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 ${Et(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:u.border,backgroundColor:h,boxShadow:d===t.id?St(n):"none",color:u.text,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=u.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=u.border},onFocus:e=>{m(t.id),e.currentTarget.style.borderColor=u.primary},onBlur:e=>{m(null),e.currentTarget.style.borderColor=u.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:u.text,fontFamily:f},children:[(0,c.jsx)(No,{name:t.homeTeam,renderTeamLogo:i,muted:u.textMuted}),(0,c.jsx)("span",{className:"text-xs font-normal",style:{color:u.textMuted},children:"vs"}),(0,c.jsx)(No,{name:t.awayTeam,renderTeamLogo:i,muted:u.textMuted})]}),(0,c.jsxs)("p",{className:"mt-2 text-[11px] font-medium sm:text-xs",style:{color:u.textMuted},children:[vo(t.commenceTime)," · ",t.propositionCount," proposition",1===t.propositionCount?"":"s",(t.league||t.sport)&&` · ${t.league?.toUpperCase()??a(t.sport)}`]})]}),(0,c.jsx)(go,{size:22,color:u.textMuted,className:"shrink-0 transition-transform group-hover:translate-x-0.5"})]},t.id))})]})}function Bo({counts:e,onPick:t,onDoubleAction:n,colors:o,align:r="right",direction:l="down",menuShadow:i="0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}){const[a,d]=s.default.useState(!1),[m,u]=s.default.useState(!1),p=s.default.useRef(null),f=s.default.useRef(null),h=s.default.useRef(null),x=36+36*e.length+12,g="up"===l||m?"up":"down";s.default.useEffect(()=>{if(!a)return void u(!1);const e=p.current;if(e&&"undefined"!=typeof window){const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom,o=t.top;u(n<x&&o>n)}const t=e=>{const t=e.target;p.current?.contains(t)||f.current?.contains(t)||d(!1)};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[a,x]);const b=a?(0,c.jsxs)("div",{ref:f,role:"menu",className:"rounded-lg overflow-hidden",style:{position:"absolute",top:"up"===g?void 0:"calc(100% + 6px)",bottom:"up"===g?"calc(100% + 6px)":void 0,left:"left"===r?0:void 0,right:"right"===r?0:void 0,zIndex:20,backgroundColor:o.background,border:`1px solid ${o.border}`,boxShadow:i,minWidth:160},children:[(0,c.jsx)("div",{className:"px-3 py-1.5 text-[10px] font-bold tracking-wider uppercase",style:{color:o.text,opacity:.55,borderBottom:`1px solid ${o.border}`},children:"How many picks?"}),e.map(e=>(0,c.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>{t(e),d(!1)},className:"w-full flex items-center justify-between px-3 py-2 transition-colors",style:{background:"transparent",border:"none",cursor:"pointer",borderTop:`1px solid ${o.border}`},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=o.backgroundAlt},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},children:[(0,c.jsxs)("span",{className:"text-sm font-semibold",style:{color:o.text},children:[e," picks"]}),(0,c.jsx)("span",{className:"text-[10px] font-bold tracking-wider",style:{background:o.backgroundAlt,color:o.text,padding:"2px 6px",borderRadius:4},children:"QP"})]},e))]}):null;return(0,c.jsxs)("div",{ref:p,className:"flex-shrink-0 relative",children:[(0,c.jsx)(Pn,{onPress:()=>{n?null==h.current&&(h.current=window.setTimeout(()=>{h.current=null,d(e=>!e)},220)):d(e=>!e)},onDoubleClick:n?()=>{null!=h.current&&(window.clearTimeout(h.current),h.current=null),d(!1),n?.()}:void 0}),b]})}function Co({className:e="",onBack:t,onNext:n,hideActions:o}){const{theme:r,headingFont:l,selectedGame:s,propositions:i,selections:a,toggleSelection:d,selectedPropositionCount:m,disableQuickPick:u,answeredCount:p,goToConfirmation:f,selectedEventId:h,sameGameMultiEvents:x,selectSameGameMultiEvent:g}=zn(),b=r.colors,y=jt(s)&&!h,w=x.find(e=>e.id===h),k=s?se(s,m):{min:0,max:0},v=k.min,N=jt(s)&&h?Math.min(k.max,i.length):k.max,F=v>0&&v===N,B=!(s?.allowed_propositions&&s.allowed_propositions.length>0)&&v>0&&N>v,C=F?N:N||i.length,A=e=>{const t=Math.max(0,Math.min(e??C,i.length));for(const l of Object.keys(a)){const e=Number(l);d(e,a[e])}const n=[...i].sort(()=>Math.random()-.5).slice(0,t),o=[],r=[];for(const l of n)Math.random()<.5?o.push(l):r.push(l);for(const l of o)d(l.id,"yes");for(const l of r)d(l.id,"no")},M=!u&&i.length>0,S=B?Array.from({length:N-v+1},(e,t)=>v+t).filter(e=>e<=i.length):[],L=p>0?p:v||C;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:Be(r),fontFamily:l},children:y?"Choose a Game":"Select Propositions"}),s&&(0,c.jsx)(En,{onBack:h?()=>g(null):t,hideActions:o,children:(0,c.jsx)("p",{className:"text-sm",style:{color:b.textMuted},children:w?Et(w):s.game_name})})]}),M&&(S.length>1?(0,c.jsx)(Bo,{counts:S,onPick:e=>{A(e),f(),n?.()},onDoubleAction:()=>{A(L),f(),n?.()},colors:b,menuShadow:Mt(r)}):(0,c.jsx)("div",{className:"flex-shrink-0",children:(0,c.jsx)(Pn,{onPress:()=>{A(),f(),n?.()}})}))]})}function Ao({onNext:e,onBack:t,hideButtons:n=!1,className:o=""}){const{theme:r,selectionValid:l,answeredCount:s,selectedGame:i,selectedPropositionCount:a,selectedEventId:d,propositions:m,goToConfirmation:u,overloadPayouts:p,betAmount:f}=zn(),h=r.colors,x=ze(r),g=h.textAlt??h.textMuted,b=i?se(i,a):{min:0,max:0},y=b.min,w=jt(i)&&d?Math.min(b.max,m.length):b.max,k=!!(i?.allowed_propositions&&i.allowed_propositions.length>0),v=!k&&y>0&&w>y&&s>=y&&s<w,N=w-s,F=!k&&y>0&&w>y,B=i?F?y:w||y||i.num_propositions||0:0,C=F?w:B,A=C>0?Math.min(s/C,1):0,M=F&&w>0?y/w*100:0,S=Math.max(0,y-s),L=l&&!!e,z=0===s?"Let's get started":F&&S>0?1===S?"1 to go — almost there":`${S} to go`:v?`${N} more pick${1!==N?"s":""} available`:A>=1?"✓ All selections made":A>=.75?"Almost there!":A>=.5?"Over halfway!":A>=.25?"Getting close":"Nice start",P=F?s>=y?`${s} of maximum ${w}`:`${s} of minimum ${y}`:`${s} / ${B||m.length} picks`,O=f>0?f:20,D=p[s],E=null!=D&&D>0?D*(O/20):null,T=p[s+1],j=null!=T&&T>0?T*(O/20):null;return(0,c.jsx)("div",{className:o,children:(0,c.jsx)("div",{className:"rounded-xl border overflow-hidden mb-4",style:{borderColor:s>0?h.primary:h.border,backgroundColor:x,boxShadow:At(r)},children:(0,c.jsxs)("div",{className:"w-full p-4 sm:p-5",style:{backgroundColor:s>0?`${h.primary}10`:"transparent"},children:[(0,c.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-3",children:[(0,c.jsx)("span",{className:"text-sm font-semibold shrink-0",style:{color:s>0?h.primary:g},children:P}),L?(0,c.jsxs)("button",{type:"button",onClick:()=>{u(),e?.()},className:"shrink-0 px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:h.buttonPrimaryText,backgroundColor:h.buttonPrimary,cursor:"pointer"},children:["Continue with ",s]}):(0,c.jsx)("span",{className:"text-xs font-semibold text-right",style:{color:A>=1?h.success:h.primary,animation:"fadeSlideIn 0.3s ease-out"},children:z},z),(0,c.jsx)("style",{children:"@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }"})]}),(0,c.jsxs)("div",{className:"relative w-full h-2 rounded-full overflow-hidden",style:{backgroundColor:h.background},children:[(0,c.jsx)("div",{className:"h-full rounded-full transition-all duration-300",style:{width:`${Math.min(100*A,100)}%`,backgroundColor:l?h.success:h.primary}}),F&&(0,c.jsx)("div",{"aria-hidden":!0,title:`Minimum ${y}`,style:{position:"absolute",top:-1,bottom:-1,left:`${M}%`,width:2,marginLeft:-1,borderRadius:1,backgroundColor:x,boxShadow:`0 0 0 1px ${h.textMuted}55`}})]}),F&&(0,c.jsxs)("div",{className:"flex items-center justify-between mt-1.5",children:[(0,c.jsx)("span",{className:"text-[11px]",style:{color:s>=y?h.success:h.textMuted},children:s>=y?`✓ Minimum ${y} reached`:`Minimum ${y}`}),(0,c.jsxs)("span",{className:"text-[11px]",style:{color:h.textMuted},children:["Max ",w]})]}),v&&null!=j&&s<w&&(0,c.jsxs)("p",{className:"text-xs mt-2",style:{color:h.textMuted},children:["Play with"," ",(0,c.jsx)("span",{style:{color:h.text,fontWeight:600},children:Q(O)}),null!=E?(0,c.jsxs)(c.Fragment,{children:[" ","to win up to"," ",(0,c.jsx)("span",{style:{color:h.heading??h.text,fontWeight:700},children:Q(E)}),", add another pick to win up to"," ",(0,c.jsx)("span",{style:{color:h.heading??h.text,fontWeight:700},children:Q(j)})]}):(0,c.jsxs)(c.Fragment,{children:[" ","to win up to"," ",(0,c.jsx)("span",{style:{color:h.heading??h.text,fontWeight:700},children:Q(j)})]})]})]})})})}function Mo({count:e,payout20:t,selected:n,onSelect:o,colors:r,bodyFont:l,extraBetAmount:s,buttonLabel:i,hidePayouts:a}){const d=null!=s&&20!==s,m=null!=t&&t>0&&d?t*(s/20):null;return(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:[(0,c.jsx)("button",{type:"button",onClick:o,"aria-pressed":n,className:"px-3 py-1.5 rounded-lg border text-sm font-semibold transition-colors",style:{borderColor:n?r.buttonPrimary??r.primary:r.border??r.primary,color:n?r.buttonPrimaryText??"#ffffff":r.buttonSecondaryText??r.text,backgroundColor:n?r.buttonPrimary??r.primary:r.buttonSecondary??r.background,cursor:"pointer",fontFamily:l,whiteSpace:"nowrap",alignSelf:"stretch"},children:i?i(e):`Multi ${e}`}),!a&&null!=t&&t>0&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${r.success}15`,color:r.success,alignSelf:"stretch",textAlign:"center"},children:[e,"/",e]}),d?null!=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:Q(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:Q(t)})]})]})}function So({tiers:e,selectedCount:t,onSelect:n,colors:o,bodyFont:r,extraBetAmount:l,buttonLabel:i,columnLabel:a="Legs",buildYourOwn:d,quickPickOnly:m,onQuickPick:u,collapsible:p,expanded:f,onExpandedChange:h,summaryTiers:x}){const[g,b]=(0,s.useState)(!1),y=f??g,w=e.some(e=>e.payout20>0),k=null!=l&&20!==l,v=k?`$${Math.round(l)} returns`:"$20 returns",N=!!p&&!y,F=w&&!N,B=(x??e).reduce((e,t)=>t.payout20>e?t.payout20:e,0),C=k&&B>0?B*(l/20):B,A=e.length>0?82*e.length+8*Math.max(0,e.length-1):82;return(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"stretch"},children:[(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"row",gap:8,overflowX: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:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:m?"Quick Pick":a}),F&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"py-1 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:"Dividend"}),(0,c.jsx)("div",{className:"py-1 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:v})]})]}),m?(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"flex-start",width:A},children:[(0,c.jsx)(Bo,{counts:(x??e).map(e=>e.count),onPick:e=>u?u(e):n(e),align:"left",direction:"up",colors:{background:o.background??"#ffffff",backgroundAlt:o.backgroundAlt??"#f3f4f6",border:o.border??"#e5e7eb",text:o.text??"#111827"}}),w&&!N&&(0,c.jsx)("div",{style:{display:"flex",flexDirection:"row",gap:8},children:e.map(e=>(0,c.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:null!=e.payout20&&e.payout20>0?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.success}15`,color:o.success,alignSelf:"stretch",textAlign:"center"},children:[e.count,"/",e.count]}),(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:Q(k?e.payout20*(l/20):e.payout20)})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.success}15`,color:o.success,alignSelf:"stretch",textAlign:"center"},children:[e.count,"/",e.count]}),(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:"—"})]})},e.count))})]}):d?(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"flex-start",width:A},children:[(0,c.jsx)("button",{type:"button",onClick:()=>n(e[0]?.count??0),className:"w-full py-1.5 rounded-lg border text-sm font-semibold transition-colors",style:{borderColor:o.buttonPrimary??o.primary,color:o.buttonPrimaryText??"#ffffff",backgroundColor:o.buttonPrimary??o.primary,cursor:"pointer",fontFamily:r},children:"Make Your Selections"}),w&&!N&&(0,c.jsx)("div",{style:{display:"flex",flexDirection:"row",gap:8},children:e.map(e=>(0,c.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:null!=e.payout20&&e.payout20>0?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.success}15`,color:o.success,alignSelf:"stretch",textAlign:"center"},children:[e.count,"/",e.count]}),k?(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:Q(e.payout20*(l/20))}):(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:Q(e.payout20)})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.success}15`,color:o.success,alignSelf:"stretch",textAlign:"center"},children:[e.count,"/",e.count]}),(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:"—"})]})},e.count))})]}):e.map(e=>(0,c.jsx)(Mo,{count:e.count,payout20:e.payout20>0?e.payout20:null,selected:t===e.count,onSelect:()=>n(e.count),colors:o,bodyFont:r,extraBetAmount:l,buttonLabel:i,hidePayouts:N},e.count))]}),p&&(w?(0,c.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 self-start max-w-full",style:{fontFamily:r},children:[(0,c.jsxs)("span",{className:"text-xs font-semibold leading-snug",style:{color:o.text},children:["Win up to ",(0,c.jsx)("span",{style:{color:o.heading??o.text??o.primary},children:Q(C)}),(0,c.jsx)("span",{style:{color:o.textMuted},children:` for $${k?Math.round(l):20}`})]}),(0,c.jsx)("button",{type:"button",onClick:()=>{return e=!y,void 0===f&&b(e),void h?.(e);var e},"aria-expanded":y,className:"text-xs font-semibold rounded-md transition-colors shrink-0",style:{background:y?o.buttonSecondary:o.background??"#ffffff",border:`1px solid ${y?o.primary??o.border:o.border}`,padding:"4px 10px",cursor:"pointer",color:o.text,fontFamily:r,lineHeight:1.35},children:y?"Hide dividends":"Show dividends"})]}):(0,c.jsx)("div",{"aria-hidden":"true",className:"text-xs font-semibold self-start",style:{padding:"2px 0",visibility:"hidden",fontFamily:r},children:"Show dividends"}))]})}function Lo({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,selectedGame:l,selectedEventId:s,propositions:i,selections:a,toggleSelection:d,upgradePropositionCount:m,selectedPropositionCount:u,disableQuickPick:p,answeredCount:f}=zn(),h=o.colors,x=l?se(l,u):{min:0,max:0},g=x.min,b=jt(l)&&s?Math.min(x.max,i.length):x.max,y=g>0&&g===b,w=!(l?.allowed_propositions&&l.allowed_propositions.length>0)&&g>0&&b>g,k=y?b:b||i.length,v=e=>{const t=Math.max(0,Math.min(e??k,i.length));for(const r of Object.keys(a)){const e=Number(r);d(e,a[e])}const{yesPicks:n,noPicks:o}=Fe(i,t);for(const r of n)d(r.id,"yes");for(const r of o)d(r.id,"no");m(t)},N=!p&&i.length>0,F=w?Array.from({length:b-g+1},(e,t)=>g+t):[],B=f>0?f:g||k;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:Be(o),fontFamily:r},children:"Place Your Wager"}),l&&(0,c.jsx)(En,{onBack:t,hideActions:n,children:(0,c.jsx)("p",{className:"text-sm",style:{color:h.textMuted},children:l.game_name})})]}),N&&(F.length>1?(0,c.jsx)(Bo,{counts:F,onPick:e=>v(e),onDoubleAction:()=>v(B),colors:h,menuShadow:Mt(o)}):(0,c.jsx)("div",{className:"flex-shrink-0",children:(0,c.jsx)(Pn,{onPress:()=>v()})}))]})}function zo({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,placedEntry:l}=zn(),s=o.colors;return(0,c.jsxs)("div",{className:`flex items-center justify-between gap-3 pl-2 ${e}`,children:[(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsx)("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:Be(o),fontFamily:r},children:"Entry Placed!"}),(0,c.jsx)(En,{onBack:t,hideActions:n,children:(0,c.jsx)("p",{className:"text-sm",style:{color:s.textMuted},children:l?(0,c.jsxs)(c.Fragment,{children:["Entry"," ",(0,c.jsxs)("span",{className:"font-mono font-semibold",style:{color:s.primary},children:["#",l.id]})," ","successfully submitted"]}):"Your entry has been successfully submitted"})})]}),(0,c.jsx)("div",{className:"w-12 h-12 sm:w-14 sm:h-14 rounded-full flex items-center justify-center flex-shrink-0",style:{backgroundColor:`${s.success}20`},children:(0,c.jsx)("svg",{className:"w-6 h-6 sm:w-7 sm:h-7",fill:"none",stroke:s.success,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24",children:(0,c.jsx)("path",{d:"M5 13l4 4L19 7"})})})]})}function Po({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r}=zn();return(0,c.jsxs)("div",{className:`pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:Be(o),fontFamily:r},children:"Your Entries"}),(0,c.jsx)(En,{onBack:t,hideActions:n})]})}function Oo(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 Do(){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 Eo({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 To({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 jo({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 Ho({kind:e,balls:t,...n}){return"safety_net"===e?(0,c.jsx)(Eo,{...n,balls:t}):"pick"===e?(0,c.jsx)(jo,{...n}):(0,c.jsx)(To,{...n})}function Yo({kind:e,size:t=56,balls:n}){const{theme:o}=zn(),r=o.colors,l=o.brand?.chip??r.primary,s=o.brand?.icon??r.primaryText,i=Le(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 ${Oo(s,.16)}`,flexShrink:0,boxShadow:`0 8px 18px -12px ${Oo(l,.9)}`},children:(0,c.jsx)(Ho,{kind:e,ink:s,ball:i,balls:n,size:Math.round(.68*t)})})}function Ro({option:e,renderDividends:t}){const{theme:n}=zn(),o=n.colors,r=_e(n),l=o.primary,s=Le(n),i=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"]})]}),i.map((t,n)=>{const i=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!=i&&i>0&&(0,c.jsxs)("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:i}).map((e,t)=>(0,c.jsx)("span",{style:{width:5,height:5,borderRadius:1.5,backgroundColor:l,opacity:.85}},t)),0===t.misses&&(0,c.jsx)("span",{style:{width:7,height:7,borderRadius:999,backgroundColor:s,marginLeft:2}})]})]}),(0,c.jsx)("span",{className:"text-sm font-extrabold tabular-nums sm:text-base",style:{color:l,fontFamily:r},children:Q(t.payout20)})]},t.misses)})]})}function Wo({option:e,renderDividends:t}){const{theme:n}=zn(),o=n.colors,r=$e(n),l=Mt(n),i=e.dividends??[],a=i.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[m,u]=(0,s.useState)(!1),p=(0,s.useRef)(null),f=(0,s.useRef)(null),[h,x]=(0,s.useState)(null),g=40+36*Math.max(i.length,1)+12,b=(0,s.useCallback)(()=>{const e=p.current;if(!e||"undefined"==typeof window)return;const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom,o=t.top,r=n<g&&o>n;x({left:t.left,top:r?t.top-6:t.bottom+6,flipUp:r})},[g]);(0,s.useLayoutEffect)(()=>{if(!m)return void x(null);b();const e=()=>u(!1),t=()=>b();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[m,b]),(0,s.useEffect)(()=>{if(!m)return;const e=e=>{const t=e.target;p.current?.contains(t)||f.current?.contains(t)||u(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[m]);const y=m&&h&&"undefined"!=typeof document?(0,d.createPortal)((0,c.jsx)("div",{ref:f,role:"listbox",className:"rounded-lg overflow-hidden",style:{position:"fixed",left:h.left,top:h.top,transform:h.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]}),i.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?Q(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:[a>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:Q(a)}),(0,c.jsxs)("span",{style:{color:o.textMuted},children:[" for $",20]})]}),(0,c.jsx)("button",{ref:p,type:"button",onClick:()=>u(e=>!e),"aria-expanded":m,"aria-haspopup":"listbox",className:"text-xs font-semibold rounded-md transition-colors shrink-0",style:{background:m?o.buttonSecondary:o.background??"#ffffff",border:`1px solid ${m?o.primary??o.border:o.border}`,padding:"4px 10px",cursor:"pointer",color:o.text,fontFamily:r,lineHeight:1.35},children:m?"Hide dividends":"Show dividends"})]}),y]})}function Go({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=zn(),l=r.colors,s=_e(r),i=Be(r),a=l.primary,d=l.selectionCard??l.backgroundAlt,m="safety_net"===e?Math.max(1,(t.detail?.length??2)-1):void 0,u=!!o||(t.dividends?.length??0)>0,p=u&&!!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 ${Oo(i,.7)}`},onMouseEnter:e=>{e.currentTarget.style.borderColor=a,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${Oo(a,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=l.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${Oo(i,.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)(Yo,{kind:e,balls:m,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:i,fontFamily:s},children:t.label}),t.stat&&(0,c.jsx)("span",{className:"w-fit rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em]",style:{backgroundColor:Oo(a,.12),color:a},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:a},"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"})})})]}),u&&(0,c.jsx)("div",{className:"mt-3 border-t pt-3",style:{borderColor:Oo(i,.08)},children:p?(0,c.jsx)(Ro,{option:t,renderDividends:o}):(0,c.jsx)(Wo,{option:t,renderDividends:o})})]})}function Io({onContinue:e,onBack:t,hideTitle:n,config:o,renderDividends:r,backLabel:l="Games",className:i=""}){const{theme:a,selectedGame:d,selectedPropositionCount:m,setExpectedCorrect:u,handlePropositionCountChange:p,screenSize:f}=zn(),h=a.colors,x="mobile"===f,g=$e(a),b=_e(a),y=Be(a),w=Le(a),k=(0,s.useMemo)(()=>o??Jt(d,m),[o,d,m]),v=k?.options??[],N=t=>{null!=t?.expectedCorrect&&u(t.expectedCorrect),null!=t?.propositionCount&&p(t.propositionCount),e?.()};if(!d||!k)return(0,c.jsx)("div",{className:i,style:{color:h.textMuted,fontFamily:g},children:"No rule setup required."});const F=k.kind,B=k.headline??k.heroTitle,C=k.continueLabel??"Continue";return(0,c.jsxs)("div",{className:`blade-rp flex min-h-full w-full flex-col ${i}`,style:{fontFamily:g},children:[(0,c.jsx)(Do,{}),t&&(0,c.jsxs)("button",{type:"button",onClick:t,className:"mb-3 inline-flex items-center gap-1.5 self-start text-sm font-semibold",style:{color:h.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=h.primary,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=h.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"})]}),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:h.primary,fontFamily:b},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)(An,{iconUrl:K(d),gameName:d.game_name,height:x?24:32,chipColor:h.primary,textColor:h.text,iconColor:h.primaryText,accentColor:a.brand?.accent,compact:x}),k.subtitle&&(0,c.jsx)("p",{className:"mt-2 text-xs sm:text-sm",style:{color:h.textMuted},children:k.subtitle}),(B||k.heroTagline)&&(0,c.jsx)("p",{className:"mt-3 max-w-sm text-sm leading-relaxed sm:text-[15px]",style:{color:h.textMuted},children:k.heroTagline??B})]}),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)(Go,{kind:F,option:e,onSelect:()=>N(e),renderDividends:r})},e.id))}):k.highlights&&k.highlights.length>0&&(0,c.jsx)("div",{className:"blade-rp-in blade-rp-card flex flex-col rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:h.selectionCard??h.backgroundAlt,borderColor:h.border,boxShadow:`0 10px 24px -20px ${Oo(y,.7)}`,animationDelay:".06s"},onMouseEnter:e=>{e.currentTarget.style.borderColor=h.primary,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${Oo(h.primary,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=h.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${Oo(y,.7)}`},children:(0,c.jsxs)("button",{type:"button",onClick:()=>N(),"aria-label":C,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)(Yo,{kind:F,size:60}),(0,c.jsx)("span",{className:"flex min-w-0 flex-1 flex-col gap-2",children:k.highlights.map(e=>(0,c.jsxs)("span",{className:"flex items-start gap-3",children:[(0,c.jsx)("span",{className:"mt-[7px] h-1.5 w-1.5 shrink-0 rounded-full",style:{backgroundColor:w},"aria-hidden":!0}),(0,c.jsx)("span",{className:"text-sm leading-snug sm:text-[15px]",style:{color:y},children:e})]},e))}),(0,c.jsx)("span",{className:"shrink-0 self-center transition-transform group-hover:translate-x-0.5",style:{color:h.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 Uo(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 Ko({iconUrl:e,size:t=56}){const{theme:n}=zn(),o=n.colors,r=n.brand?.chip??o.primary,l=n.brand?.icon??o.primaryText,s=Le(n);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 ${Uo(l,.16)}`,flexShrink:0,boxShadow:`0 8px 18px -12px ${Uo(r,.9)}`},children:(0,c.jsx)(rt,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:l,accentColor:s})})}function Zo({legs:e,prizeBall:t=!0}){const{theme:n}=zn(),o=n.colors.primary,r=Le(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 Vo({tile:e,label:t,stat:n,detail:o,onSelect:r,children:l}){const{theme:s}=zn(),i=s.colors,a=_e(s),d=Be(s),m=i.primary;return(0,c.jsxs)("div",{className:"blade-gmc-card flex h-full flex-col rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:i.selectionCard??i.backgroundAlt,borderColor:i.border,boxShadow:`0 10px 24px -20px ${Uo(d,.7)}`},onMouseEnter:e=>{e.currentTarget.style.borderColor=m,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${Uo(m,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=i.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${Uo(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.5",children:[(0,c.jsx)("span",{className:"text-lg font-extrabold leading-none tracking-tight sm:text-xl",style:{color:d,fontFamily:a},children:t}),n&&(0,c.jsx)("span",{className:"w-fit rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em]",style:{backgroundColor:Uo(m,.12),color:m},children:n}),o&&o.length>0&&(0,c.jsx)("div",{className:"flex flex-col gap-0.5",children:o.map(e=>(0,c.jsx)("span",{className:"text-xs leading-snug sm:text-[13px]",style:{color:i.textMuted},children:e},e))})]}),(0,c.jsx)("span",{className:"shrink-0 self-center transition-transform group-hover:translate-x-0.5",style:{color:m},"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:Uo(d,.08)},children:l})]})}function qo(){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-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 Xo({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:i=""}){const{theme:a,selectedGame:d,selectedPropositionCount:m,handlePropositionCountChange:u,setExpectedCorrect:p,setBetAmount:f,quickPickGame:h,goToSportSelection:x,screenSize:g}=zn(),b=a.colors,y="mobile"===g,w=$e(a),k=_e(a),v=Be(a),N=ze(a),F=(0,s.useMemo)(()=>r??Rn(d),[r,d]),[B,C]=(0,s.useState)(()=>F?null!=m&&F.legOptions.includes(m)?m:F.defaultLegs:8),[A,M]=(0,s.useState)(()=>F?.defaultStake??20);if(!d||!Hn(d)||!F)return(0,c.jsx)("div",{className:i,style:{color:b.textMuted,fontFamily:w},children:"No game set available."});const S=Yn(A,B,{operatorMargin:F.operatorMargin,perLegProbability:F.perLegProbability}),L=A>=F.minStake,z=(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-gsb flex min-h-full w-full flex-col ${i}`,style:{fontFamily:w},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)(qo,{}),n&&(0,c.jsxs)("button",{type:"button",onClick:n,className:"mb-3 inline-flex items-center gap-1.5 self-start text-sm font-semibold",style:{color:b.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=b.primary,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=b.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"})]}),l]}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[!o&&(0,c.jsx)("h2",{className:"blade-gsb-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:b.primary,fontFamily:k},children:"The fastest multi"}),(0,c.jsxs)("header",{className:"blade-gsb-in mb-6 flex flex-col items-center text-center sm:mb-7",children:[(0,c.jsx)(An,{iconUrl:K(d),gameName:d.game_name,height:y?24:32,chipColor:b.primary,textColor:b.text,iconColor:b.primaryText,accentColor:a.brand?.accent,compact:y}),(0,c.jsx)("p",{className:"mt-3 max-w-sm text-sm leading-relaxed sm:text-[15px]",style:{color:b.textMuted},children:F.tagline})]}),(0,c.jsxs)("div",{className:"blade-gsb-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 ${Uo(v,.7)}`,animationDelay:".06s"},children:[z("Legs",`${B} legs`),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Number of legs",children:F.legOptions.map(e=>{const t=e===B;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?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 land"}),(0,c.jsx)("span",{children:"Bigger prize"})]}),(0,c.jsxs)("div",{className:"mt-4",children:[z("Stake",Q(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:F.minStake,max:F.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!==F.maxStake?Math.min(t,F.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:F.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)})}),!L&&A>0&&(0,c.jsxs)("p",{className:"mt-2 text-xs",style:{color:b.error},children:["Minimum stake is ",Q(F.minStake),"."]})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:Uo(v,.08)},children:[(0,c.jsxs)("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:[(0,c.jsxs)("span",{children:["If all ",B," land"]}),(0,c.jsxs)("span",{children:[Q(A)," 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:b.text},children:"Perfect ticket"}),(0,c.jsx)(Zo,{legs:B})]}),(0,c.jsx)("span",{className:"text-xl font-extrabold tabular-nums sm:text-2xl",style:{color:b.primary,fontFamily:k},children:Q(S.prize)})]}),(0,c.jsxs)("p",{className:"mt-1.5 text-[11px] tabular-nums",style:{color:b.textMuted},children:[(P=S.multiple,`×${(Math.round(10*P)/10).toLocaleString("en-US",{maximumFractionDigits:1})}`)," your stake · total return, stake included"]}),(0,c.jsx)("p",{className:"mt-1 text-[11px] italic",style:{color:b.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)(Vo,{tile:(0,c.jsx)(Ko,{iconUrl:K(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:()=>{L&&(u(B),p(B),f(A),x(),t?.())}})}),(0,c.jsx)("div",{className:"blade-gsb-in",style:{animationDelay:".2s"},children:(0,c.jsx)(Vo,{tile:(0,c.jsx)(Ko,{iconUrl:`${W}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{L&&(p(B),f(A),h(d,B),e?.())}})})]})]})]});var P}function Qo({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:i=""}){const{theme:a,selectedGame:d,selectedPropositionCount:m,handlePropositionCountChange:u,setExpectedCorrect:p,setBetAmount:f,quickPickGame:h,goToSportSelection:x,screenSize:g}=zn(),b=a.colors,y="mobile"===g,w=$e(a),k=_e(a),v=Be(a),N=ze(a),F=(0,s.useMemo)(()=>r??ln(d),[r,d]),[B,C]=(0,s.useState)(()=>F?.defaultDividend??1e4),[A,M]=(0,s.useState)(()=>{const e=F?.dividends[0]?.rungs.map(e=>e.legs)??[];return null!=m&&e.includes(m)?m:F?.defaultLegs??9});if(!d||!tn(d)||!F)return(0,c.jsx)("div",{className:i,style:{color:b.textMuted,fontFamily:w},children:"No dividend series available."});const S=F.dividends.find(e=>e.dividend===B)??F.dividends[0],L=S.rungs.find(e=>e.legs===A)??S.rungs[0],z=Math.max(...S.rungs.map(e=>e.legs)),P=Math.min(...S.rungs.map(e=>e.legs));return(0,c.jsxs)("div",{className:`blade-pyd flex min-h-full w-full flex-col ${i}`,style:{fontFamily:w},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)(qo,{}),n&&(0,c.jsxs)("button",{type:"button",onClick:n,className:"mb-3 inline-flex items-center gap-1.5 self-start text-sm font-semibold",style:{color:b.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=b.primary,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=b.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"})]}),l]}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[!o&&(0,c.jsx)("h2",{className:"blade-pyd-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:b.primary,fontFamily:k},children:"Pick your dividend"}),(0,c.jsxs)("header",{className:"blade-pyd-in mb-6 flex flex-col items-center text-center sm:mb-7",children:[(0,c.jsx)(An,{iconUrl:K(d),gameName:d.game_name,height:y?24:32,chipColor:b.primary,textColor:b.text,iconColor:b.primaryText,accentColor:a.brand?.accent,compact:y}),(0,c.jsx)("p",{className:"mt-3 max-w-sm text-sm leading-relaxed sm:text-[15px]",style:{color:b.textMuted},children:F.tagline})]}),(0,c.jsxs)("div",{className:"blade-pyd-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 ${Uo(v,.7)}`,animationDelay:".06s"},children:[(O=Q(S.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:b.textMuted},children:"Set dividend"}),O&&(0,c.jsx)("span",{className:"text-xs font-semibold tabular-nums",style:{color:v},children:O})]})),(0,c.jsx)("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-4",role:"radiogroup","aria-label":"Set dividend",children:F.dividends.map((e,t)=>{const n=e.dividend===B;return(0,c.jsxs)("button",{type:"button",role:"radio","aria-checked":n,onClick:()=>C(e.dividend),className:"rounded-xl border px-2 py-3 text-center transition-colors "+(t===F.dividends.length-1&&F.dividends.length%2==1?"col-span-2 sm:col-span-1":""),style:{backgroundColor:n?Uo(b.primary,.08):"transparent",borderColor:n?b.primary:b.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=b.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=n?b.primary:b.border},children:[(0,c.jsx)("span",{className:"block text-xl font-extrabold leading-none tracking-tight tabular-nums",style:{color:v,fontFamily:k},children:Q(e.dividend)}),(0,c.jsxs)("span",{className:"mt-1 block text-[10px]",style:{color:b.textMuted},children:["from ",Q(e.rungs[0]?.stake??0)]})]},e.dividend)})}),(0,c.jsx)("p",{className:"mt-2 text-[11px] italic",style:{color:b.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:Uo(v,.08)},children:[(0,c.jsxs)("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:b.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:S.rungs.map(e=>{const t=e.legs===A;return(0,c.jsxs)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>M(e.legs),className:"flex items-center justify-between gap-3 rounded-xl border px-3 py-2 text-left transition-colors",style:{backgroundColor:t?Uo(b.primary,.08):"transparent",borderColor:t?b.primary:b.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=b.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=t?b.primary:b.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:b.text},children:[e.legs," legs",e.legs===z?" · the long climb":e.legs===P?" · the sprint":""]}),(0,c.jsx)(Zo,{legs:e.legs})]}),(0,c.jsx)("span",{className:"shrink-0 text-sm font-extrabold tabular-nums sm:text-base",style:{color:b.primary,fontFamily:k},children:Q(e.stake)})]},e.legs)})}),(0,c.jsx)("p",{className:"mt-2 text-[11px] italic",style:{color:b.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)(Vo,{tile:(0,c.jsx)(Ko,{iconUrl:K(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${L.legs} legs`,`${Q(L.stake)} chasing the ${Q(S.dividend)}`],onSelect:()=>{var e;u((e=L).legs),p(e.legs),f(e.stake),x(),t?.()}})}),(0,c.jsx)("div",{className:"blade-pyd-in",style:{animationDelay:".2s"},children:(0,c.jsx)(Vo,{tile:(0,c.jsx)(Ko,{iconUrl:`${W}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${L.legs} legs at ${Q(L.stake)}`,"Straight to the bet slip"],onSelect:()=>{p(L.legs),f(L.stake),h(d,L.legs),e?.()}})})]})]})]});var O}function Jo({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:i=""}){const{theme:a,selectedGame:d,selectedPropositionCount:m,handlePropositionCountChange:u,setExpectedCorrect:p,setBetAmount:f,quickPickGame:h,goToSportSelection:x,screenSize:g}=zn(),b=a.colors,y="mobile"===g,w=$e(a),k=_e(a),v=Be(a),N=Le(a),F=ze(a),B=(0,s.useMemo)(()=>r??Vn(d),[r,d]),[C,A]=(0,s.useState)(()=>B?null!=m&&B.ladders.some(e=>e.legs===m)?m:B.defaultLegs:8),[M,S]=(0,s.useState)(()=>B?.defaultStake??50);if(!d||!In(d)||!B)return(0,c.jsx)("div",{className:i,style:{color:b.textMuted,fontFamily:w},children:"No ladders available."});const L=B.ladders.find(e=>e.legs===C)??B.ladders[0],z=Kn(L,M),P=Zn(L,M),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:b.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 ${i}`,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)(qo,{}),n&&(0,c.jsxs)("button",{type:"button",onClick:n,className:"mb-3 inline-flex items-center gap-1.5 self-start text-sm font-semibold",style:{color:b.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=b.primary,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=b.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"})]}),l]}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[!o&&(0,c.jsx)("h2",{className:"blade-lad-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:b.primary,fontFamily:k},children:"Climb the ladder. Stack the prizes."}),(0,c.jsxs)("header",{className:"blade-lad-in mb-6 flex flex-col items-center text-center sm:mb-7",children:[(0,c.jsx)(An,{iconUrl:K(d),gameName:d.game_name,height:y?24:32,chipColor:b.primary,textColor:b.text,iconColor:b.primaryText,accentColor:a.brand?.accent,compact:y}),(0,c.jsx)("p",{className:"mt-3 max-w-sm text-sm leading-relaxed sm:text-[15px]",style:{color:b.textMuted},children:B.tagline})]}),(0,c.jsxs)("div",{className:"blade-lad-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:F,borderColor:b.border,boxShadow:`0 10px 24px -20px ${Uo(v,.7)}`,animationDelay:".06s"},children:[O("Your bet",Q(M)),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Bet size",children:B.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?b.primary:"transparent",borderColor:t?b.primary:b.border,color:t?b.primaryText:b.textMuted,cursor:"pointer"},children:["$",e]},e)})}),(0,c.jsx)("p",{className:"mt-2 text-[11px] italic",style:{color:b.textMuted},children:"Every prize scales with your bet."}),(0,c.jsxs)("div",{className:"mt-4",children:[O(`${B.ladders.length} ladders to choose from`),(0,c.jsx)("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-5",role:"radiogroup","aria-label":"Ladder",children:B.ladders.map((e,t)=>{const n=e.legs===C;return(0,c.jsxs)("button",{type:"button",role:"radio","aria-checked":n,onClick:()=>A(e.legs),className:"rounded-xl border px-2 py-3 text-center transition-colors "+(t===B.ladders.length-1&&B.ladders.length%2==1?"col-span-2 sm:col-span-1":""),style:{backgroundColor:n?Uo(b.primary,.08):"transparent",borderColor:n?b.primary:b.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=b.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=n?b.primary:b.border},children:[(0,c.jsxs)("span",{className:"block text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:b.primary},children:["Ladder ",e.legs]}),(0,c.jsx)("span",{className:"mt-1 block text-xl font-extrabold leading-none tracking-tight tabular-nums",style:{color:v,fontFamily:k},children:Q(Zn(e,M))}),(0,c.jsxs)("span",{className:"mt-1 block text-[10px]",style:{color:b.textMuted},children:["Win from ",e.firstPayingTier," right"]})]},e.legs)})})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:Uo(v,.08)},children:[(0,c.jsxs)("p",{className:"mb-2 text-xs",style:{color:b.text},children:["Ladder ",L.legs," wins from ",L.firstPayingTier," right — every tier stacks into the"," ",(0,c.jsx)("span",{style:{fontWeight:700,color:v},children:Q(P)})," Full Stack Prize."]}),(0,c.jsxs)("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:[(0,c.jsx)("span",{children:"Get right"}),(0,c.jsxs)("span",{className:"flex gap-4",children:[(0,c.jsx)("span",{children:"Tier pays"}),(0,c.jsx)("span",{children:"You collect"})]})]}),(0,c.jsx)("div",{className:"mt-1.5 flex flex-col gap-1.5",children:[...z].reverse().map(e=>{const t=e.atLeast===L.legs;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.jsxs)("span",{className:"flex items-center gap-2 text-xs sm:text-[13px]",style:{color:b.text},children:[e.atLeast," of ",L.legs,t&&(0,c.jsx)("span",{className:"rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em]",style:{backgroundColor:Uo(N,.35),color:v},children:"Full stack"})]}),(0,c.jsx)(Zo,{legs:e.atLeast,prizeBall:t})]}),(0,c.jsxs)("span",{className:"flex shrink-0 items-baseline gap-4",children:[(0,c.jsx)("span",{className:"text-[11px] tabular-nums",style:{color:b.textMuted},children:Q(e.prize)}),(0,c.jsx)("span",{className:"min-w-[64px] text-right text-sm font-extrabold tabular-nums sm:text-base",style:{color:b.primary,fontFamily:k},children:Q(e.cumulative)})]})]},e.atLeast)})}),(0,c.jsxs)("p",{className:"mt-2 text-[11px] italic",style:{color:b.textMuted},children:["Land below ",L.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)(Vo,{tile:(0,c.jsx)(Ko,{iconUrl:K(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${L.legs} outcomes`,`Win from ${L.firstPayingTier} right — every tier stacks`],onSelect:()=>{u(L.legs),p(L.legs),f(M),x(),t?.()}})}),(0,c.jsx)("div",{className:"blade-lad-in",style:{animationDelay:".2s"},children:(0,c.jsx)(Vo,{tile:(0,c.jsx)(Ko,{iconUrl:`${W}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${L.legs} legs at ${Q(M)}`,"Straight to the bet slip"],onSelect:()=>{p(L.legs),f(M),h(d,L.legs),e?.()}})})]})]})]})}function $o({legs:e,right:t}){const{theme:n}=zn(),o=n.colors.primary,r=Le(n);return(0,c.jsxs)("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:e}).map((e,n)=>(0,c.jsx)("span",{style:{width:5,height:5,borderRadius:1.5,backgroundColor:t?o:"transparent",border:t?"none":`1px solid ${Uo(o,.45)}`,opacity:t?.85:1}},n)),(0,c.jsx)("span",{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}})]})}function _o({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:i=""}){const{theme:a,selectedGame:d,selectedPropositionCount:m,handlePropositionCountChange:u,setExpectedCorrect:p,setBetAmount:f,quickPickGame:h,goToSportSelection:x,screenSize:g}=zn(),b=a.colors,y="mobile"===g,w=$e(a),k=_e(a),v=Be(a),N=ze(a),F=(0,s.useMemo)(()=>r??$n(d),[r,d]),[B,C]=(0,s.useState)(()=>F?null!=m&&F.legOptions.includes(m)?m:F.defaultLegs:8),[A,M]=(0,s.useState)(()=>F?.defaultStake??20);if(!d||!Qn(d)||!F)return(0,c.jsx)("div",{className:i,style:{color:b.textMuted,fontFamily:w},children:"No mirror available."});const S=Jn(A,B,{operatorMargin:F.operatorMargin,perLegProbability:F.perLegProbability}),L=A>=F.minStake,z=(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})]}),P=e=>(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,c.jsxs)("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[(0,c.jsx)("span",{className:"text-xs sm:text-[13px]",style:{color:b.text},children:e?`All ${B} right`:`All ${B} wrong`}),(0,c.jsx)($o,{legs:B,right:e})]}),(0,c.jsx)("span",{className:"text-lg font-extrabold tabular-nums sm:text-xl",style:{color:b.primary,fontFamily:k},children:Q(S.prize)})]});return(0,c.jsxs)("div",{className:`blade-mir flex min-h-full w-full flex-col ${i}`,style:{fontFamily:w},children:[(0,c.jsx)("style",{id:"blade-mir-styles",children:"\n.blade-mir{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-mir-in{opacity:0;animation:blade-mir-in .5s var(--e) both}\n@keyframes blade-mir-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-mir *{animation:none!important}.blade-mir-in{opacity:1!important}}\n"}),(0,c.jsx)(qo,{}),n&&(0,c.jsxs)("button",{type:"button",onClick:n,className:"mb-3 inline-flex items-center gap-1.5 self-start text-sm font-semibold",style:{color:b.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=b.primary,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=b.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"})]}),l]}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[!o&&(0,c.jsx)("h2",{className:"blade-mir-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:b.primary,fontFamily:k},children:"All right, or all wrong"}),(0,c.jsxs)("header",{className:"blade-mir-in mb-6 flex flex-col items-center text-center sm:mb-7",children:[(0,c.jsx)(An,{iconUrl:K(d),gameName:d.game_name,height:y?24:32,chipColor:b.primary,textColor:b.text,iconColor:b.primaryText,accentColor:a.brand?.accent,compact:y}),(0,c.jsx)("p",{className:"mt-3 max-w-sm text-sm leading-relaxed sm:text-[15px]",style:{color:b.textMuted},children:F.tagline})]}),(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 ${Uo(v,.7)}`,animationDelay:".06s"},children:[z("Legs",`${B} legs`),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Number of legs",children:F.legOptions.map(e=>{const t=e===B;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?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:[z("Stake",Q(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:F.minStake,max:F.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!==F.maxStake?Math.min(t,F.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:F.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)})}),!L&&A>0&&(0,c.jsxs)("p",{className:"mt-2 text-xs",style:{color:b.error},children:["Minimum stake is ",Q(F.minStake),"."]})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:Uo(v,.08)},children:[(0,c.jsxs)("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:[(0,c.jsx)("span",{children:"Two ways to win"}),(0,c.jsxs)("span",{children:[Q(A)," pays each"]})]}),(0,c.jsxs)("div",{className:"mt-1.5 flex flex-col gap-2",children:[P(!0),P(!1)]}),(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)(Vo,{tile:(0,c.jsx)(Ko,{iconUrl:K(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:()=>{L&&(u(B),p(B),f(A),x(),t?.())}})}),(0,c.jsx)("div",{className:"blade-mir-in",style:{animationDelay:".2s"},children:(0,c.jsx)(Vo,{tile:(0,c.jsx)(Ko,{iconUrl:`${W}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{L&&(p(B),f(A),h(d,B),e?.())}})})]})]})]})}function er({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,backLabel:r="Games",className:l=""}){const{theme:i,selectedGame:a,selectedPropositionCount:d,handlePropositionCountChange:m,setExpectedCorrect:u,quickPickGame:p,goToSportSelection:f,screenSize:h}=zn(),x=i.colors,g="mobile"===h,b=$e(i),y=_e(i),w=(0,s.useMemo)(()=>{if(!a)return[];if(a.allowed_propositions&&a.allowed_propositions.length>0)return[...a.allowed_propositions].sort((e,t)=>e-t);const{min:e,max:t}=se(a);return Ne(e,t)},[a]),k=to(a),v=w[0]??0,N=w[w.length-1]??0,[F]=(0,s.useState)(()=>null!=d&&w.includes(d)?d:N),B=(0,s.useMemo)(()=>Jt(a,F||void 0),[a,F]);if(!a||0===w.length||"exact"!==B?.kind)return(0,c.jsx)("div",{className:l,style:{color:x.textMuted,fontFamily:b},children:"No setup available."});const C=k?["Any yes/no props in the pool",`Pick ${v}–${N} legs — all must land`]:["A clean yes or no on every leg",`All ${F} have to land`],A=k?[`We fill ${F} legs across any markets`,"Straight to the bet slip"]:[`We fill all ${F} 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:b},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)(qo,{}),n&&(0,c.jsxs)("button",{type:"button",onClick:n,className:"mb-3 inline-flex items-center gap-1.5 self-start text-sm font-semibold",style:{color:x.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=x.primary,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=x.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"})]}),r]}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[!o&&(0,c.jsx)("h2",{className:"blade-pp-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:x.primary,fontFamily:y},children:B.title}),(0,c.jsxs)("header",{className:"blade-pp-in mb-6 flex flex-col items-center text-center sm:mb-7",children:[(0,c.jsx)(An,{iconUrl:K(a),gameName:a.game_name,height:g?24:32,chipColor:x.primary,textColor:x.text,iconColor:x.primaryText,accentColor:i.brand?.accent,compact:g}),B.heroTagline&&(0,c.jsx)("p",{className:"mt-3 max-w-sm text-sm leading-relaxed sm:text-[15px]",style:{color:x.textMuted},children:B.heroTagline})]}),(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)(Vo,{tile:(0,c.jsx)(Ko,{iconUrl:K(a),size:60}),label:"Pick my own",stat:"Your calls",detail:C,onSelect:()=>{k||(m(F),u(F)),f(),t?.()}})}),(0,c.jsx)("div",{className:"blade-pp-in",style:{animationDelay:".2s"},children:(0,c.jsx)(Vo,{tile:(0,c.jsx)(Ko,{iconUrl:`${W}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:A,onSelect:()=>{u(F),p(a,F),e?.()}})})]})]})]})}exports.BladeApiClient=bn,exports.BrandLockup=function({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0,className:l}){const{theme:s}=zn(),i=Be(s),a=Le(s),d=s.colors.primaryHover??function(e){const t=/^#([0-9a-f]{6})$/i.exec(e?.trim()??"");if(!t)return e;const n=parseInt(t[1],16);return`rgba(${n>>16&255}, ${n>>8&255}, ${255&n}, 0.7)`}(i),m=_e(s)??"Manrope, Poppins, sans-serif",u=n&&n.length>0?n:t.split(/\s+/),p=.72*o,f=.5*o,h=Math.min(.62*o/u.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:m,color:i},children:[(0,c.jsx)(rt,{iconUrl:e,width:p,height:p,iconColor:i,accentColor:a,ariaLabel:""}),(0,c.jsxs)("span",{"aria-hidden":!0,style:{fontSize:f,letterSpacing:.045*-f,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:h,fontWeight:500,letterSpacing:.012*-h,lineHeight:1.14,textAlign:"left"},children:u.map((e,t)=>(0,c.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[e,r&&t===u.length-1&&(0,c.jsx)("sup",{style:{fontSize:.36*h,fontWeight:500,marginLeft:1},children:"™"})]},`${e}-${t}`))})]})},exports.CategoryIcon=xo,exports.CategoryPickerPage=ko,exports.CategoryPickerPageActions=function({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=zn(),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=wo,exports.ChevronRightIcon=go,exports.ConfirmPage=function({onBack:e,onSubmitted:t,hideTitle:n,hideActions:o,className:r=""}){const l=zn(),{theme:i,bodyFont:a,selectedGame:d,selectedPropositions:m,selections:u,propositions:p,disableQuickPick:f,selectedPropositionCount:h,selectedEventId:x,expectedCorrect:g,setExpectedCorrect:b,betAmount:y,setBetAmount:w,submitting:k,submitError:v,canSubmit:N,winningCounts:F,payouts:B,overloadPayouts:C,renderTeamLogo:A,showHomeAway:M,userBalance:S,onRecharge:L,goBack:z,toggleSelection:P,upgradePropositionCount:O,goToSportSelection:D}=l,E=i.colors;if((0,s.useEffect)(()=>{d||(D(),e?.())},[d,D,e]),!d)return null;const T=!!(d.allowed_propositions&&d.allowed_propositions.length>0),j=se(d,h),H=j.min,Y=jt(d)&&x?Math.min(j.max,p.length):j.max,R=Object.keys(u).length,W=H>0&&R<H,G=!T&&H>0&&Y>H&&R>=H&&R<Y,I=T?[...d.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(h??0)):[],U=T&&I.length>0&&!W,K=G||U,Z=Y-R;E.textAlt??E.text,H>0&&H===Y||Y||p.length;const V=()=>{z(),e?.()},q=(T?[...d.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===R&&e<(h??1/0)),X=T&&R<Math.min(...d.allowed_propositions??[1/0]),J=T&&W&&!X,$=no(d),_=null!=q?$.belowRequiredHint(q,h??H):$.belowRequiredAddOnlyHint(h??H);return(0,s.useEffect)(()=>{!W||T&&!X||(D(),e?.())},[W,T,X]),(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${r}`,style:{fontFamily:a},children:[!n&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(Lo,{onBack:e,hideActions:o})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)(gn,{game:d,propositions:m,selections:u,onToggleSelection:P,onRemoveSelection:()=>{},onSubmit:async()=>{await l.handleSubmit(),t?.()},onBack:V,loading:k,error:v,expectedCorrect:g,onExpectedCorrectChange:b,betAmount:y,onBetAmountChange:w,theme:i,showCustomAmount:!0,betAmountLocked:tn(d),betAmountLockedNote:"Set by your dividend ladder rung.",hideActions:!0,winningCounts:F,payouts:B,renderTeamLogo:A,showHomeAway:M,canSubmit:N,userBalance:S,onRecharge:L,boostBanner:(0,c.jsxs)(c.Fragment,{children:[J&&(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:`${E.warning}10`,borderColor:`${E.warning}40`},children:[(0,c.jsxs)("p",{className:"text-xs sm:text-sm",style:{color:E.text},children:["You have ",(0,c.jsxs)("span",{style:{fontWeight:700},children:[R," pick",1!==R?"s":""]}),"."," ",_]}),(0,c.jsxs)("div",{className:"flex gap-2 flex-shrink-0",children:[(0,c.jsx)("button",{type:"button",onClick:V,className:"px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:E.buttonSecondaryText,backgroundColor:E.buttonSecondary,cursor:"pointer"},children:"Add a pick"}),null!=q&&(0,c.jsx)("button",{type:"button",onClick:()=>O(q),className:"px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:E.buttonPrimaryText,backgroundColor:E.buttonPrimary,cursor:"pointer"},children:$.switchTierLabel(q)})]})]}),K&&(0,c.jsx)("div",{className:"p-3 rounded-lg border",style:{backgroundColor:`${E.primary}08`,borderColor:`${E.primary}30`},children:U?(()=>{const e=h??R,t=C[e],n=y>0?y:20,o=null!=t&&t>0?t*(n/20):null;return(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{className:"text-sm font-semibold mb-1",style:{color:E.primary},children:$.overloadTitle}),null!=o&&(0,c.jsxs)("p",{className:"text-xs mb-2",style:{color:E.textMuted},children:["Currently winning up to"," ",(0,c.jsx)("span",{style:{color:E.heading??E.text,fontWeight:700},children:Q(o)})," ","with ",e," picks"]}),(0,c.jsx)(So,{tiers:I.map(e=>({count:e,payout20:C[e]??0})),selectedCount:void 0,onSelect:e=>{O(e),V()},colors:E,bodyFont:l.bodyFont,extraBetAmount:20!==n?n:void 0,columnLabel:$.tableColumnLabel,buttonLabel:$.tierButtonLabel})]})})():(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,c.jsxs)("p",{className:"text-xs",style:{color:E.textMuted},children:[1===Z?"Add ":"Add up to ",(0,c.jsxs)("span",{style:{color:E.primary,fontWeight:700},children:[Z," more pick",1!==Z?"s":""]}),null!=C[Y]&&C[Y]>0&&(0,c.jsxs)(c.Fragment,{children:[" to win up to ",(0,c.jsx)("span",{style:{color:E.heading??E.text,fontWeight:700},children:Q(C[Y])})," with ",Y," picks"]})]}),(0,c.jsx)("button",{type:"button",onClick:V,className:"flex-shrink-0 px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:E.buttonPrimaryText,backgroundColor:E.buttonPrimary,cursor:"pointer"},children:"Add picks"})]})})]})})}),o&&v&&(0,c.jsx)("div",{className:"mt-3 flex justify-end",children:(0,c.jsx)("span",{className:"text-xs",style:{color:E.error},children:v})})]})},exports.ConfirmPageActions=function({onBack:e,onSubmitted:t,className:n=""}){const o=zn(),{theme:r,selectedGame:l,expectedCorrect:s,betAmount:i,submitting:a,submitError:d,canSubmit:m,payouts:u,selectedPropositionIds:p,screenSize:f}=o,h=r.colors;if(!l)return null;const x=u[s]??0,g=ie(l),b=s===p.length,y=g?.enabled&&b,w=e&&"mobile"!==f;return(0,c.jsxs)("div",{className:`flex items-center justify-between pt-4 ${n}`,children:[w&&(0,c.jsx)(Lt,{theme:r,variant:"secondary",onPress:e,children:"Back"}),(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[d&&(0,c.jsx)("span",{className:"text-xs",style:{color:h.error},children:d}),(x>0||y)&&(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:h.textMuted},children:"Potential winnings"}),(0,c.jsxs)("span",{className:"text-sm font-bold",style:{color:h.heading??h.text},children:[Q(x),y&&(0,c.jsx)("span",{style:{color:h.warning},children:" + Jackpot"})]})]}),(0,c.jsx)(Lt,{theme:r,variant:"primary",disabled:!m,onPress:async()=>{await o.handleSubmit(),t?.()},children:a?"Placing…":`Place Entry (${Q(i)})`})]})]})},exports.ConfirmPageTitle=Lo,exports.EntriesPage=function({className:e="",onSelectEntry:t,onBack:n,hideTitle:o,hideActions:r}){const{theme:l,bodyFont:s,apiUrl:i,apiKey:a,fetchImpl:d,getAuthHeaders:m,userId:u,demoEntries:p,demoGames:f,demoPropositions:h,renderTeamLogo:x,showHomeAway:g,filterSport:b}=zn();return(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${e}`,style:{fontFamily:s},children:[!o&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(Po,{onBack:n,hideActions:r})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)(Mn,{apiUrl:i,apiKey:a,fetchImpl:d,getAuthHeaders:m,userId:u,demoEntries:p,demoGames:f,demoPropositions:h,onSelectEntry:t,theme:l,renderTeamLogo:x,showHomeAway:g,filterSport:b})})]})},exports.EntriesPageTitle=Po,exports.EntrySubmission=gn,exports.EventFilterBanner=On,exports.EventPickerPage=Fo,exports.GAME_TIER_LEVEL=sn,exports.GAME_TIER_TABS=an,exports.GameEntries=Mn,exports.GameLogo=fo,exports.GamePage=function({onSelectGame:e,onRuleSetup:t,onGameSetBet:n,onPickYourDividend:o,onLadder:r,onMirror:l,onQuickPick:i,onCancel:a,hideTitle:d,hideActions:m,showPerfectPickSetup:u=!1,showTierFilter:p=!1,className:f=""}){const h=zn(),{theme:x,games:g,loading:b,error:y,selectedGame:w,selectedPropositionCount:k,handlePropositionCountChange:v,maxPayouts:N}=h;x.colors;const F=s.default.useRef(w);return F.current=w,(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${f}`,style:{fontFamily:h.bodyFont},children:[!d&&(0,c.jsx)("div",{className:"mb-4 sm:mb-6",children:(0,c.jsx)(oo,{onBack:a,hideActions:m})}),(0,c.jsx)(On,{}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)(xn,{games:g,selectedGame:w,onSelectGame:e=>{F.current=e,h.selectGame(e)},loading:b,error:y,theme:x,showTierFilter:p,selectedPropositionCount:k,onPropositionCountChange:v,onPropositionCountSelected:()=>{const s=F.current;if("rule_setup"===_n(s)&&to(s)&&!u)return h.goToSportSelection(),void e?.();switch(_n(s)){case"game_set":return void n?.();case"pick_your_dividend":return void o?.();case"ladder":return void r?.();case"mirror":return void l?.();case"rule_setup":return void t?.();default:h.goToSportSelection(),e?.()}},onQuickPickGame:(e,t)=>{h.quickPickGame(e,t),i?.()},maxPayouts:N})})]})},exports.GamePageActions=function({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=zn(),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=oo,exports.GameSelector=xn,exports.GameSetBetPage=Xo,exports.GameSetBetPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=zn(),l=_e(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"The fastest multi"}),(0,c.jsx)(En,{onBack:t,hideActions:n,children:r&&(0,c.jsx)("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:s.textMuted},children:r.game_name})})]})},exports.GameSetupPage=function({onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r="Games",className:l=""}){const{theme:s,selectedGame:i,goToSportSelection:a,bodyFont:d}=zn(),m={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r,className:l};switch(_n(i)){case"game_set":return(0,c.jsx)(Xo,{...m});case"pick_your_dividend":return(0,c.jsx)(Qo,{...m});case"ladder":return(0,c.jsx)(Jo,{...m});case"mirror":return(0,c.jsx)(_o,{...m});case"rule_setup":return"exact"===Jt(i)?.kind?(0,c.jsx)(er,{...m}):(0,c.jsx)(Io,{onBack:n,hideTitle:o,backLabel:r,className:l,onContinue:()=>{a(),e?.()}});default:return(0,c.jsx)("div",{className:l,style:{color:s.colors.textMuted,fontFamily:d},children:"No setup required — this game goes straight to picks."})}},exports.HowToPlayButton=L,exports.HowToPlayModal=S,exports.LADDER_FAMILY=Gn,exports.LADDER_REFERENCE_BET=50,exports.LADDER_STAKES=Wn,exports.LadderPage=Jo,exports.LadderPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=zn(),l=_e(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"Every step pays"}),(0,c.jsx)(En,{onBack:t,hideActions:n,children:r&&(0,c.jsx)("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:s.textMuted},children:r.game_name})})]})},exports.MIRROR_STANDARD_MARGIN=.21875,exports.MarkdownContent=M,exports.MirrorPage=_o,exports.MirrorPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=zn(),l=_e(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"All right, or all wrong"}),(0,c.jsx)(En,{onBack:t,hideActions:n,children:r&&(0,c.jsx)("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:s.textMuted},children:r.game_name})})]})},exports.PYD_LEG_RUNGS=en,exports.PYD_RETAIL_DIVIDENDS=_t,exports.PayoutCircles=function({game:e,totalSelections:t,expectedCorrect:n,className:o="",onExpectedCorrectChange:r,theme:l=Te,colorWinning:s,colorNone:i,winningCounts:a,payouts:d}){const m=l.colors,u=s??m.payoutWinning,p=i??m.payoutNone,f=ie(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:m.textMuted},children:"Payout Visualization"}),f.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, ${m.warning}18, ${m.warning}08)`,color:m.warning,border:`1px solid ${m.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:f.progressive?f.amount>0?`Progressive Jackpot: ${Q(f.amount)}${f.limit>0?` (up to ${Q(f.limit)})`:""} for a perfect pick!`:f.limit>0?`Progressive Jackpot — up to ${Q(f.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${Q(f.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=a.includes(o),s=d[o]??0,i=s>0,h=o===t,x=f.enabled&&h,g=x?m.warning:l?u:p,b=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?m.warning:l?g:void 0,color:l||x?"#ffffff":m.textMuted,zIndex:b?10:x?6:l?5:1,...x?{"--tw-ring-color":`${m.warning}80`}:{},...b?{outline:`3px solid ${m.primary}`,outlineOffset:"3px"}:{}},title:x?f.progressive?`${o} correct wins PROGRESSIVE JACKPOT${f.amount>0?` (currently ${Q(f.amount)})`:""}${f.limit>0?` — up to ${Q(f.limit)}`:""} + ${Q(s)}\nClick to select`:`${o} correct wins JACKPOT ${Q(f.amount)} + ${Q(s)}\nClick to select`:l?`${o} correct wins ${Q(s)}\nClick to select`:i?`${o} correct pays ${Q(s)} but does not win\nClick to select`:`${o} correct - no payout\nClick to select`,children:[x&&(0,c.jsx)("div",{className:"absolute -top-1.5 -right-1.5",children:(0,c.jsx)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:m.warning,stroke:m.warning,strokeWidth:"1",children:(0,c.jsx)("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.27 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z"})})}),(0,c.jsx)("div",{className:"text-sm sm:text-base leading-none",children:o}),s>0?(0,c.jsx)("div",{className:"text-[7px] sm:text-[8px] font-normal leading-none",children:Q(s)}):null]},o)})}),(0,c.jsx)("div",{className:"text-xs text-center",style:{color:m.textMuted},children:(0,c.jsxs)("p",{children:["Your expected: ",(0,c.jsxs)("span",{className:"font-semibold",children:[n," correct"]})]})})]})},exports.PerfectPickPage=er,exports.PerfectPickPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=zn(),l=_e(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"All or nothing"}),(0,c.jsx)(En,{onBack:t,hideActions:n,children:r&&(0,c.jsx)("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:s.textMuted},children:r.game_name})})]})},exports.PickYourDividendPage=Qo,exports.PickYourDividendPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=zn(),l=_e(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"The dividend is set"}),(0,c.jsx)(En,{onBack:t,hideActions:n,children:r&&(0,c.jsx)("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:s.textMuted},children:r.game_name})})]})},exports.PlaceEntryProvider=function({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,getUserBalance:l,children:i,theme:a,colorScheme:d,demoGames:m,demoPropositions:u,demoEntries:p,demoMaxPayouts:f,gameCategory:h,jurisdiction:x,initialGameId:g,filterSport:b,initialSport:y,initialEventId:w,initialEventLabel:k,sportBaseKey:v,showHomeAway:N=!1,disableQuickPick:F=!1,renderTeamLogo:B,onEntryPlaced:C,onBeforeSubmit:A,onCancel:M,onShare:S,onRecharge:L,onClearEventFilter:z,screenSize:P="desktop",howToPlayMarkdown:O,sportDisplayNames:D,categoryDisplayNames:E}){const T=Je(a,d),j=$e(T),H=_e(T),Y=!(!m||!u),R=(0,s.useMemo)(()=>new bn({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),[W,G]=(0,s.useState)(0),I=(0,s.useRef)(0),[U,K]=(0,s.useState)(0),[Z,V]=(0,s.useState)([]),[q,X]=(0,s.useState)({}),[Q,J]=(0,s.useState)({}),[$,ee]=(0,s.useState)(void 0),[ne,re]=(0,s.useState)(void 0),ie=s.default.useCallback(async()=>{if(l)try{const e=await l();"number"==typeof e&&Number.isFinite(e)&&re(e)}catch(e){}},[l]);(0,s.useEffect)(()=>{l?ie():re(void 0)},[l,ie]);const ae=(0,s.useRef)(null),[pe,fe]=(0,s.useState)(null),[ge,ke]=(0,s.useState)(y??null),[ve,Ne]=(0,s.useState)(w??null);(0,s.useEffect)(()=>{y&&ke(y)},[y]),(0,s.useEffect)(()=>{Ne(w??null)},[w]);const[Fe,Be]=(0,s.useState)(w),Ce=(0,s.useRef)(!1);(0,s.useEffect)(()=>{if(!w)return Be(void 0),void(Ce.current=!1);Ce.current||Be(w)},[w]);const Ae=h??pe??void 0,Me=b??y??void 0,Se=me(ge??Me,v),Le=me(Me,v)??Me,ze=ge??void 0,{games:Pe,howToPlayMarkdown:Oe,loading:De,error:Ee}=yn(R,{category:Ae,jurisdiction:x,sport:Se},{skip:Y}),{propositions:Te,loading:je,error:He}=wn(R,{category:Ae,sport:Le,event_id:Fe},{skip:Y}),{sports:Ye,loading:Re}=kn(R,{skip:Y}),{createEntry:We,loading:Ge,error:Ie}=Fn(R),{preview:Ue}=Cn(R),Ke=(0,s.useMemo)(()=>ye((Y?m:Pe)??[],{category:Ae,sport:Se??ze,sportBaseKey:v}),[Y,m,Pe,Ae,Se,ze,v]),Ze=O??Oe??null,{maxPayouts:Ve,refetchGame:qe}=Nn(R,Ke??[],{skip:Y,betAmount:20}),Xe=Y?f??{}:Ve,Qe=Y?u:Te,et=b?(Qe??[]).filter(e=>e.sport===b):Qe,tt=(0,s.useMemo)(()=>oe(et??[]),[et]),nt=(0,s.useMemo)(()=>Ae||(1===tt.length?tt[0]:void 0),[Ae,tt]),ot=(0,s.useMemo)(()=>{const e=et??[];return nt?he(e,{category:nt,sportBaseKey:v}):e},[et,nt,v]),rt=(0,s.useMemo)(()=>ze?he(ot,{sport:ze,sportBaseKey:v}):ot,[ot,ze,v]),lt=(0,s.useMemo)(()=>({category:nt,sport:ze,sportBaseKey:v}),[nt,ze,v]),st=(0,s.useMemo)(()=>{const e=(Ke??[]).filter(e=>e.active);if(!nt&&tt.length>1)return[];const t=nt?ye(e,lt):e;return nt||ze?function(e,t,n){return n?.category||n?.sport?e.filter(e=>be(e,t,n)):e}(t,rt,lt):t},[Ke,rt,lt,nt,ze,tt.length]),{step:it,selectedGame:at,selections:ct,placedEntry:dt,setGameOnly:mt,clearSelectedGame:ut,goToSportSelection:pt,goToConfirmation:ft,goToSuccess:ht,goBack:xt,reset:gt,toggleSelection:bt}=Bn(g),yt=s.default.useCallback(()=>{Ce.current=!0,Be(void 0),gt(),z?.()},[gt,z]),wt=!!Fe,kt=wt?k:void 0,vt=!Y&&(at?De||je||Re:De),Nt=Y?null:at?Ee||He:Ee,Ft=(0,s.useMemo)(()=>at?we(rt,at,v):rt,[at,rt,v]),Bt=(0,s.useMemo)(()=>at?Ft:ot,[at,Ft,ot]),Ct=(0,s.useMemo)(()=>he(at?Ft:ot,{category:nt}),[at,Ft,ot,nt]),At=(0,s.useMemo)(()=>{const e=new Set(Ct.map(e=>e.sport).filter(Boolean));return Ye.filter(t=>e.has(t.key))},[Ye,Ct]),Mt=(0,s.useMemo)(()=>he(Ft,{category:nt,sport:ge}),[Ft,nt,ge]),St=(0,s.useMemo)(()=>{if(!jt(at))return[];const{min:e}=se(at,$),t=$??e;return Yt(Mt).filter(e=>e.propositionCount>=t)},[at,$,Mt]),Lt=(0,s.useMemo)(()=>jt(at)?Ut(Mt,ve):Mt,[at,Mt,ve]),zt=Object.keys(ct).map(Number),Pt=zt.length,Ot=(0,s.useMemo)(()=>Mt.filter(e=>zt.includes(e.id)),[Mt,zt]);(0,s.useEffect)(()=>{h||pe||1===tt.length&&fe(tt[0])},[h,pe,tt]),(0,s.useEffect)(()=>{if(!at)return;const e=Ft,t=new Set(e.map(te));let n=pe;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==pe&&fe(n));const o=n?e.filter(e=>te(e)===n):e,r=new Set(function(e){const t=new Set;for(const n of e){const o=_(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),l=at.allowed_sports;ke(e=>e&&r.has(e)?e:1===l?.length&&r.has(l[0])?l[0]:l&&l.length>1?e&&l.includes(e)&&r.has(e)?e:null:1===r.size?Array.from(r)[0]:null)},[at?.id,Ft,pe]),(0,s.useEffect)(()=>{at&&nt&&(xe(at,nt)||ut())},[at,nt,ut]),(0,s.useEffect)(()=>{at&&(be(at,rt,{category:nt,sport:ge,sportBaseKey:v})||ut())},[at,nt,ge,v,rt,ut]),(0,s.useEffect)(()=>{if(at){if(K(0),ae.current){const{count:e}=ae.current;return ae.current=null,ee(e),void G(e)}if(at.allowed_propositions&&at.allowed_propositions.length>0){const e=$;null!=e&&at.allowed_propositions.includes(e)?G(e):(ee(void 0),G(0))}else ee(void 0),G(at.num_propositions||at.max_propositions||0)}},[at]);const Dt=(e,t,n)=>{const o=(Xe[e]?.top_payouts??[]).find(e=>e.proposition_count===t);if(!o)return 0;const r=o.bet_amount&&o.bet_amount>0?o.bet_amount:20;return r<=0?0:o.net_payout/r*n};(0,s.useEffect)(()=>{if("sport"!==it&&"confirm"!==it||!at||Y)return;const e=jt(at)&&ve?Lt.length:Number.MAX_SAFE_INTEGER;let t;if(at.allowed_propositions&&at.allowed_propositions.length>0){const n=at.allowed_propositions?[...at.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void J({});const o=$??n[0],r=n.filter(e=>e>o);if(0===r.length)return void J({});t=[o,...r]}else{const{min:n,max:o}=se(at),r=Math.min(o,e);if(n<=0||r<=n)return void J({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=Dt(at.id,o,20);J(n)},[it,at,$,ve,Lt.length,Y,Xe]),(0,s.useEffect)(()=>{if("confirm"!==it||!at)return;const e=zt.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=Dt(at.id,r,U);X(n),e!==I.current?(I.current=e,G(e)):(W>e||W<=0&&e>0)&&G(e);const o=U>0?U:Math.max(at.min_bet??20,.01);return(async()=>{try{const n=await Ue(at.id,{actual:W,predicted:W,total:e,bet_amount:o});if(t)return;V(n.winning_counts)}catch{t||V([])}})(),()=>{t=!0}},[it,at,zt.length,W,U,Ue,Xe]);const Et=!jt(at)||Kt(Ot,ve),Tt=!(!at||!Et)&&(at.allowed_propositions&&at.allowed_propositions.length>0?null!=$&&Pt===$:le(Pt,at.min_propositions,at.max_propositions)),Ht=at?.min_bet??0,Rt=Math.max(Ht,.01),Wt=null==ne||U<=ne,Gt=!Ge&&U>=Rt&&Tt&&Wt,It=e=>{ee(e),G(e);for(const t of Object.keys(ct))bt(Number(t),ct[Number(t)])},Zt=e=>{ee(e),G(e)},Vt=e=>{Ne(jt(e)?w??null:null),mt(e)},qt=e=>{if(e!==ve){for(const e of Object.keys(ct)){const t=Number(e);bt(t,ct[t])}Ne(e)}},Xt=(e,t)=>{ae.current={count:t},mt(e),qe(e.id);const n=e.allowed_sports??[];let o=null;ge&&n.some(e=>ue(ge,e,v))?o=ge:1===n.length&&(o=n[0]),ke(o);for(const i of Object.keys(ct)){const e=Number(i);bt(e,ct[e])}let r=he(we(et??[],e,v),{category:nt,sport:o,sportBaseKey:v});const l=Math.max(0,Math.min(t,r.length)),s=[...r].sort(()=>Math.random()-.5).slice(0,l);for(const i of s)bt(i.id,Math.random()<.5?"yes":"no");ft()},Qt=async()=>{if(at&&Tt){if(Y){const e={id:Math.floor(1e4*Math.random()),game_id:at.id,user_id:r,proposition_ids:zt,selections:ct,pending:!0,expected_correct:W,bet_amount:U};return C?.(e),ht(e),void ie()}try{A&&await A(U);const e=await We({game_id:at.id,user_id:r,proposition_ids:zt,selections:ct,stake:U});C?.(e),ht(e),ie()}catch(e){}}},Jt=(0,s.useCallback)(e=>D?.[e]??At.find(t=>t.key===e)?.label??ce(e,void 0,v),[D,At,v]),$t=(0,s.useCallback)(e=>de(e,E),[E]),_t=(0,s.useMemo)(()=>({theme:T,bodyFont:j,headingFont:H,games:st,propositions:Lt,propositionsForCategoryPicker:Bt,propositionsForSportPicker:Ct,sportSummaries:At,loading:vt,error:Nt,step:it,selectedGame:at,selections:ct,placedEntry:dt,selectedPropositionIds:zt,selectedPropositions:Ot,selectionValid:Tt,answeredCount:Pt,betAmount:U,setBetAmount:K,expectedCorrect:W,setExpectedCorrect:G,selectedPropositionCount:$,handlePropositionCountChange:It,upgradePropositionCount:Zt,winningCounts:Z,payouts:q,overloadPayouts:Q,submitting:Ge,submitError:Ie,canSubmit:Gt,gamePrice:Ht,userBalance:ne,hasSufficientBalance:Wt,refreshUserBalance:ie,handleSubmit:Qt,selectGame:Vt,goToSportSelection:()=>pt(),goToConfirmation:ft,goBack:xt,reset:gt,clearSelectedGame:ut,toggleSelection:bt,quickPickGame:Xt,selectedCategory:pe,setSelectedCategory:fe,selectedSport:ge,setSelectedSport:ke,selectedEventId:ve,sameGameMultiEvents:St,selectSameGameMultiEvent:qt,apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,showHomeAway:N,disableQuickPick:F,renderTeamLogo:B,filterSport:b,initialSport:y,initialEventId:w,sportBaseKey:v,gameCategory:h,eventFilterActive:wt,eventFilterLabel:kt,clearEventFilter:yt,screenSize:P,displaySportName:Jt,displayCategoryName:$t,maxPayouts:Xe??{},howToPlayMarkdown:Ze,onEntryPlaced:C,onCancel:M,onShare:S,onRecharge:L,demoEntries:p,demoGames:m,demoPropositions:u}),[T,j,H,st,Lt,Bt,Ct,At,vt,Nt,it,at,ct,dt,zt,Ot,Tt,Pt,U,W,$,Z,q,Q,Ge,Ie,Gt,Ht,e,t,r,ne,n,o,N,F,B,b,y,w,v,h,P,wt,kt,yt,pe,ge,ve,St,Xe,Ze,C,M,S,L,z,p,m,u,Jt,$t]);return(0,c.jsx)(Ln.Provider,{value:_t,children:i})},exports.QuickPickButton=Pn,exports.RuleSetupPage=Io,exports.RuleSetupPageActions=function({onContinue:e,canContinue:t,continueLabel:n="Continue",className:o=""}){const{theme:r,screenSize:l}=zn(),s=r.colors;return e&&"mobile"!==l?(0,c.jsx)("div",{className:`flex items-center justify-end pt-4 ${o}`,children:(0,c.jsx)("button",{type:"button",onClick:e,disabled:!t,className:"px-5 py-2.5 rounded-lg text-sm font-semibold transition-colors disabled:opacity-45",style:{color:s.buttonPrimaryText,backgroundColor:s.buttonPrimary,cursor:t?"pointer":"not-allowed"},children:n})}):null},exports.RuleSetupPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r,selectedPropositionCount:l}=zn(),s=_e(o),i=o.colors,a=Jt(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:i.primary,fontFamily:s},children:a?.title??"About this game"}),(0,c.jsx)(En,{onBack:t,hideActions:n,children:r&&(0,c.jsxs)("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:i.textMuted},children:[r.game_name,a?.subtitle?` · ${a.subtitle}`:""]})})]})},exports.SelectionReview=function({propositions:e,selections:t,onToggleSelection:n,onNext:o,onBack:r,theme:l,colorScheme:i,hideActions:a=!1,renderTeamLogo:d,showHomeAway:m=!1,allowAnswerToggle:u=!0,gameName:p,potentialPayout:f,defaultExpanded:h=!1,addMorePicks:x}){const g=Je(l,i),b=g.colors,y=ze(g),w=$e(g),k=_e(g),v=Be(g),N=b.textAlt??b.text,[F,B]=(0,s.useState)(null),[C,A]=(0,s.useState)(h),M=e.filter(e=>e.id in t),S=M.length;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:y,borderColor:b.border,boxShadow:At(g)},children:[(0,c.jsxs)("button",{type:"button",onClick:()=>A(e=>!e),"aria-expanded":C,"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:b.textMuted,flexShrink:0,transform:C?"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:b.primaryText,backgroundColor:b.primary},children:S})]}),p&&(0,c.jsx)("p",{className:"text-sm mt-0.5 truncate",style:{color:b.textMuted},children:p})]})]}),null!=f&&f>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:b.textMuted},children:"Potential Payout"}),(0,c.jsx)("span",{className:"text-sm font-bold",style:{color:v},children:Q(f)})]})]}),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:`${b.primary}08`,borderColor:`${b.primary}30`},children:[(0,c.jsxs)("p",{className:"text-xs",style:{color:b.textMuted},children:[1===x.remaining?"Add ":"Add up to ",(0,c.jsxs)("span",{style:{color:b.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:Q(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:b.buttonPrimaryText,backgroundColor:b.buttonPrimary,cursor:"pointer"},children:"Add picks"})]}),C&&(0===M.length?(0,c.jsx)("div",{className:"text-center py-8 mt-3 sm:mt-4",style:{color:b.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:M.map((e,o)=>{const l=t[e.id],s="yes"===l,i="no"===l;return(0,c.jsx)("div",{className:"p-3 sm:p-3.5 rounded-lg",style:{backgroundColor:b.backgroundAlt},children:(0,c.jsxs)("div",{className:"flex items-start gap-2 sm:gap-3",children:[(0,c.jsx)("div",{className:"flex-shrink-0 w-5 h-5 sm:w-6 sm:h-6 rounded-full flex items-center justify-center text-xs sm:text-sm font-semibold",style:{backgroundColor:b.primary,color:b.primaryText},children:o+1}),(0,c.jsxs)("div",{className:"flex-1 min-w-0",children:[m?(0,c.jsxs)("p",{className:"font-semibold text-sm sm:text-base leading-snug flex flex-wrap items-center gap-x-1.5 gap-y-0.5",style:{color:N},children:[d&&e.home_team&&(0,c.jsxs)("span",{className:"inline-flex items-center gap-1",children:[d(e.home_team),e.home_team]}),!d&&e.home_team,(0,c.jsx)("span",{className:"font-normal text-xs",style:{color:b.textAltMuted??b.textMuted},children:"vs"}),d&&e.away_team&&(0,c.jsxs)("span",{className:"inline-flex items-center gap-1",children:[d(e.away_team),e.away_team]}),!d&&e.away_team]}):(0,c.jsxs)("p",{className:"font-semibold text-sm sm:text-base leading-snug flex items-center gap-2",style:{color:N},children:[d&&(e.outcome||e.description)&&d(e.outcome||e.description),e.description]}),m&&(0,c.jsx)("p",{className:"text-sm mt-1",style:{color:b.textAltMuted??b.textMuted},children:e.description}),(0,c.jsx)("p",{className:"text-xs mt-0.5",style:{color:b.textAltMuted??b.textMuted,opacity:.7},children:e.commence_time&&J(e.commence_time)})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[u?(0,c.jsx)(Ot,{theme:g,size:"sm",value:s?"yes":i?"no":null,onYes:t=>{t.stopPropagation(),n(e.id,"yes")},onNo:t=>{t.stopPropagation(),n(e.id,"no")}}):l&&(0,c.jsx)(Dt,{theme:g,value:"yes"===l?"yes":"no",size:"sm"}),(0,c.jsx)("button",{type:"button",onClick:o=>{o.stopPropagation(),n(e.id,t[e.id]),r()},onMouseEnter:()=>B(e.id),onMouseLeave:()=>B(null),className:"w-5 h-5 flex items-center justify-center rounded-full transition-colors",style:{color:F===e.id?"#fff":b.textAltMuted??b.textMuted,cursor:"pointer",backgroundColor:F===e.id?b.error:b.backgroundAlt},title:"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"})})})]})]})},e.id)})}))]}),(0,c.jsx)("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:y,borderColor:b.border,boxShadow:At(g)},children:(0,c.jsxs)("div",{className:"flex justify-between text-sm",children:[(0,c.jsx)("span",{style:{color:b.textMuted},children:"Total Selections"}),(0,c.jsx)("span",{className:"font-semibold",style:{color:b.text},children:M.length})]})}),!a&&(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:b.border,backgroundColor:b.background},children:[(0,c.jsx)(Lt,{theme:g,variant:"secondary",onPress:r,children:"Back"}),(0,c.jsx)(Lt,{theme:g,variant:"primary",disabled:0===M.length,onPress:o,children:"Place bet"})]})]})},exports.SelectionsPage=function({onNext:e,onBack:t,hideTitle:n,hideActions:o,className:r=""}){const l=zn(),{theme:i,bodyFont:a,selectedGame:d,propositions:m,propositionsForSportPicker:u,selections:p,toggleSelection:f,loading:h,error:x,showHomeAway:g,renderTeamLogo:b,filterSport:y,initialSport:w,gameCategory:k,selectedPropositionCount:v,handlePropositionCountChange:N,goToConfirmation:F,goBack:B,selectedCategory:C,setSelectedCategory:A,selectedSport:M,setSelectedSport:S,selectedEventId:L,propositionsForCategoryPicker:z,answeredCount:P}=l;i.colors,s.default.useEffect(()=>{d||(l.goToSportSelection(),t?.())},[d,l,t]);const O=s.default.useMemo(()=>{if(!d)return null;const{min:e,max:t}=se(d,v??void 0);if(e>0&&e===t)return e;const n=_n(d);return null!=v&&v>0&&("game_set"===n||"pick_your_dividend"===n||eo(d))?v:null},[d,v]),D=s.default.useRef(P);s.default.useEffect(()=>{const t=D.current;D.current=P,null!=O&&t<O&&P===O&&(F(),e?.())},[P,O]);const E=s.default.useMemo(()=>oe(z??[]),[z]);s.default.useEffect(()=>{d&&1===E.length&&C!==E[0]&&A(E[0])},[d,E,C,A]);const T=s.default.useMemo(()=>{const e=new Set;for(const t of u??[])t.sport&&e.add(t.sport);return Array.from(e)},[u]);if(s.default.useEffect(()=>{d&&(E.length>1&&!C||1===T.length&&M!==T[0]&&S(T[0]))},[d,E,C,T,M,S]),!d)return null;const j=E.length>1&&!C,H=!j&&T.length>1&&!M,Y=!j&&!H&&jt(d)&&!L,R=(()=>{if(!jt(d)||!L)return d;const e=Math.min(d.max_propositions??m.length,m.length);return{...d,max_propositions:e,allowed_propositions:d.allowed_propositions?.filter(t=>t<=e)}})(),W=()=>{B(),t?.()};return(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${r}`,style:{fontFamily:a},children:[!n&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(Co,{onBack:o?W:void 0,onNext:o?e:void 0,hideActions:o})}),!jt(d)&&(0,c.jsx)(On,{}),(0,c.jsx)("div",{className:"flex-1",children:j?(0,c.jsx)(ko,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>A(e)}):H?(0,c.jsx)(yo,{hideTitle:!0,hideActions:!0,onSelectSport:e=>S(e)}):Y?(0,c.jsx)(Fo,{}):(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(po,{game:R,propositions:m,selections:p,onToggleSelection:f,onNext:()=>{F(),e?.()},onBack:W,loading:h,error:x,theme:i,hideActions:!0,initialSport:y??w,renderTeamLogo:b,disableQuickPick:!0,selectedPropositionCount:v,onPropositionCountChange:N,showHomeAway:g,gameCategory:k})})}),!o&&!j&&!H&&!Y&&(0,c.jsx)("div",{className:"mt-6",children:(0,c.jsx)(Ao,{onNext:e,onBack:t})})]})},exports.SelectionsPageActions=Ao,exports.SelectionsPageTitle=Co,exports.SportPickerPage=yo,exports.SportPickerPageActions=function({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=zn(),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=bo,exports.SuccessPage=function({onPlayAgain:e,onDone:t,onBack:n,onShare:o,hideTitle:r,hideActions:l,className:i=""}){const a=zn(),{theme:d,bodyFont:m,headingFont:u,selectedGame:p,placedEntry:f,betAmount:h,selectedPropositionIds:x,selectedPropositions:g,selections:b,payouts:y,onShare:w}=a,k=d.colors,v=ze(d),N=k.textAlt??k.text,F=f?.proposition_ids?f.proposition_ids.length:x.length,B=y[F]??null,C=s.default.useRef(!1);return s.default.useEffect(()=>{f&&p?C.current=!1:(a.goToSportSelection(),C.current||(C.current=!0,e?e():t?.()))},[f,p,a,e,t]),f?(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${i}`,style:{fontFamily:m},children:[!r&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(zo,{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:At(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)(An,{iconUrl:K(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:Be(d),fontFamily:u},children:e})})(),(0,c.jsxs)("span",{className:"text-xs font-semibold px-2 py-0.5 rounded-full flex-shrink-0",style:{color:k.primary,backgroundColor:`${k.primary}15`},children:[F," pick",1!==F?"s":""]})]}),(0,c.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"text-[10px] uppercase tracking-wide font-semibold",style:{color:k.textMuted},children:"Selections"}),(0,c.jsx)("div",{className:"text-sm font-semibold mt-0.5",style:{color:N},children:F})]}),h>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:Q(h)})]}),null!=B&&B>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:Q(B)})]})]})]}),g.length>0&&(0,c.jsxs)("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:v,borderColor:k.border,boxShadow:At(d)},children:[(0,c.jsx)("h4",{className:"text-sm sm:text-base font-semibold mb-2",style:{color:Be(d),fontFamily:u},children:"Your picks"}),(0,c.jsx)("div",{className:"space-y-1.5",children:g.map((e,t)=>{const n=b?.[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:[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:s,selectedGame:i,selectedPropositions:a,selections:d,betAmount:m}=zn();return r.colors,(0,c.jsxs)("div",{className:`flex items-center justify-between pt-4 ${o}`,children:[(0,c.jsx)(Lt,{theme:r,variant:"secondary",onPress:()=>{l(),e?.()},children:"Place Another"}),t&&(0,c.jsx)(Lt,{theme:r,variant:"primary",onPress:t,children:"Done"})]})},exports.SuccessPageTitle=zo,exports.YesNoCategoryLabel=ho,exports.applyTheme=et,exports.availableGameTierTabs=mn,exports.contrastTextColour=function(e,t="#ffffff",n="#1a1a1a"){if(!e)return n;const o=function(e){const t=e.trim().toLowerCase(),n=t.match(/^#([0-9a-f]{3,8})$/);if(n){let e=n[1];return 3!==e.length&&4!==e.length||(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}const o=t.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);return o?[Number(o[1]),Number(o[2]),Number(o[3])]:null}(e);if(!o)return n;const[r,l,s]=o.map(e=>{const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)});return.2126*r+.7152*l+.0722*s>.4?n:t},exports.darkTheme=He,exports.defaultGameTierId=un,exports.defaultTheme=Te,exports.defaultThemeSet=Ue,exports.filterGamesByTierLevel=dn,exports.filterPropositionsToEvent=Ut,exports.formatCurrency=Q,exports.formatDate=J,exports.formatSameGameMultiEventLabel=Et,exports.fullStackPrize=Zn,exports.gameNeedsRuleSetup=$t,exports.gameSetPrize=Yn,exports.getConfirmBoostCopy=no,exports.getGameFlow=_n,exports.getGameSetBetConfig=Rn,exports.getJackpotInfo=ie,exports.getLadderConfig=Vn,exports.getMirrorConfig=$n,exports.getPickYourDividendConfig=ln,exports.getPropositionEventId=Ht,exports.getRuleSetupConfig=Jt,exports.getSportDisplayName=ae,exports.getTheme=qe,exports.getThemeSet=function(e){return{default:Ue,green:Ke,gold:Ze,yesno:Ve}[e]||Ue},exports.goldLightTheme=We,exports.goldTheme=Ye,exports.goldThemeSet=Ze,exports.greenLightTheme=Re,exports.greenTheme=je,exports.greenThemeSet=Ke,exports.groupPropositionsBySport=$,exports.groupSameGameMultiEvents=Yt,exports.isFixedCardExactGame=eo,exports.isGameSetBetGame=Hn,exports.isLadderGame=In,exports.isMirrorGame=Qn,exports.isOpenExactMultiGame=to,exports.isPickYourDividendGame=tn,exports.isSameGameMultiGame=jt,exports.isSelectableSameGameMultiProposition=It,exports.isThemeSet=Ee,exports.isValidSelectionCount=le,exports.ladderCollectAt=function(e,t,n){return Un(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)},exports.ladderTiers=Kn,exports.mirrorPrize=Jn,exports.propositionsBelongToEvent=Kt,exports.pydLadder=rn,exports.pydRung=on,exports.resolveCategoryDisplayName=de,exports.resolveGameTierLevel=cn,exports.resolvePrice=function(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0},exports.resolveSportDisplayName=ce,exports.resolveTheme=De,exports.roundDividendAmount=function(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)},exports.themeAccent=Le,exports.themeBodyFont=$e,exports.themeHeading=Be,exports.themeHeadingFont=_e,exports.themeLabel=Ce,exports.themeSets=Qe,exports.themeTextAlt=function(e){return e.colors.textAlt??e.colors.text},exports.themeTextAltMuted=function(e){return e.colors.textAltMuted??e.colors.textMuted},exports.themeValue=Ae,exports.themes=Xe,exports.useBladeTheme=function(e="default"){const t=qe(e);return(0,s.useEffect)(()=>{et(t)},[t]),t},exports.useCalculatePayout=function(e){const[t,n]=(0,s.useState)(!1),[o,r]=(0,s.useState)(null),[l,i]=(0,s.useState)(null);return{calculate:(0,s.useCallback)(async(t,o)=>{try{n(!0),r(null);const l=await e.calculatePayout(t,o);return i(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=Fn,exports.useEntryPreview=Cn,exports.useEvaluateRule=function(e){const[t,n]=(0,s.useState)(!1),[o,r]=(0,s.useState)(null),[l,i]=(0,s.useState)(null);return{evaluate:(0,s.useCallback)(async(t,o)=>{try{n(!0),r(null);const l=await e.evaluateRule(t,o);return i(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=vn,exports.useGameMaxPayouts=Nn,exports.useGames=yn,exports.usePlaceEntry=zn,exports.usePlaceEntryFlow=Bn,exports.usePropositions=wn,exports.useResolvedTheme=Je,exports.useSports=kn,exports.version="1.29.0";
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,r=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;let s=require("react");var a,i;i=null!=(a=s)?e(r(a)):{},s=((e,r,s,a)=>{if(r&&"object"==typeof r||"function"==typeof r)for(var i,c=o(r),d=0,u=c.length;d<u;d++)i=c[d],l.call(e,i)||void 0===i||t(e,i,{get:(e=>r[e]).bind(null,i),enumerable:!(a=n(r,i))||a.enumerable});return e})(t(i,"default",{value:a,enumerable:!0}),a);let c=require("react/jsx-runtime"),d=require("react-dom");var u="#C9CDD2";function m(e){const t=e.trim();if(!t)return null;const n=t.split(/\t+|\s{2,}/).map(e=>e.trim()).filter(Boolean);if(n.length<3)return null;const o=n[n.length-1];return"YES"!==n[n.length-2].toUpperCase()||"NO"!==o.toUpperCase()?null:{question:n.slice(0,-2).join(" ")}}function p(e){return`<table class="props">\n${e.map(e=>{return`<tr><td class="q">${t=e.question,t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}</td><td class="yes">YES</td><td class="no">NO</td></tr>`;var t}).join("\n")}\n</table>`}var f='\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 h(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=h(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();return t?b(t)?t:`<!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>${f}</style>\n</head>\n<body>\n<main class="page">\n${n=function(e){return/<table\s+class=["']props["']/i.test(e)?e:function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=0;for(;o<t.length;){const e=m(t[o]);if(e){const r=[e];let l=o+1;for(;l<t.length;){const e=m(t[l]);if(!e)break;r.push(e),l+=1}n.push(p(r)),o=l;continue}n.push(t[o]),o+=1}return n.join("\n")}(function(e){const t=/<p(?:\s[^>]*)?>([\s\S]*?)<\/p>/gi;let n,o="",r=0;const l=[],s=()=>{0!==l.length&&(o+=p([...l]),l.length=0)};for(;null!==(n=t.exec(e));){o+=e.slice(r,n.index);const a=n[1].replace(/<br\s*\/?>/gi,"\n").trim().split("\n").map(e=>e.trim()).filter(Boolean).map(e=>m(e));a.length>0&&a.every(e=>null!==e)?l.push(...a):(s(),o+=n[0]),r=t.lastIndex}return s(),o+=e.slice(r),o}(e))}(function(e){const t=h(e),n=t.match(/^<main[^>]*>([\s\S]*)<\/main>$/i);return n?n[1].trim():t}(t)),/class=["']logo["']/i.test(n)?n:/<div class=["']masthead["']>/i.test(n)?n.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%2Bqy605xddtI4mID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BlVMcB5wNnO182ITyAfdzwNymweprAnA5cE5O8QbrMCKtyin%2B0vnwY%2BAL1lmkdVWjtx8DP3Y%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%2BR8OBjYv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DgfnkP17vhFwO7ArlSN107A9vVtW6p3yFsBU6jeFf%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" />'):n}\n</main>\n</body>\n</html>`:"";var n}function k({content:e,className:t=""}){const n=w(e);return n?(0,c.jsx)("iframe",{title:"How to play guide",srcDoc:n,className:`w-full border-0 block ${t}`,style:{minHeight:"60vh",height:"72vh",maxHeight:"calc(88vh - 8rem)"},sandbox:"allow-same-origin",loading:"lazy"}):null}var v=/^(#{1,3})\s+(.+)$/,N=/^[-*]\s+(.+)$/,F=/^-{3,}$/;function B(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}function C({rows:e,className:t=""}){return 0===e.length?null:(0,c.jsx)("table",{className:`w-full border-collapse my-2 ${t}`,style:{fontSize:15},children:(0,c.jsx)("tbody",{children:e.map((e,t)=>(0,c.jsxs)("tr",{children:[(0,c.jsx)("td",{className:"align-middle",style:{width:"64%",backgroundColor:"#F9FAFB",border:`1px solid ${u}`,padding:"11px 14px"},children:e.question}),(0,c.jsx)("td",{className:"align-middle text-center font-bold tracking-wide",style:{backgroundColor:"#DCFCE7",color:"#166534",border:`1px solid ${u}`,padding:"11px 14px"},children:"YES"}),(0,c.jsx)("td",{className:"align-middle text-center font-bold tracking-wide",style:{backgroundColor:"#FEE2E2",color:"#991B1B",border:`1px solid ${u}`,padding:"11px 14px"},children:"NO"})]},t))})})}function A({text:e,colors:t,bodyFont:n}){return(0,c.jsx)(c.Fragment,{children:B(e).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 M({content:e,colors:t,bodyFont:n,headingFont:o,className:r=""}){const l=function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=[],r=[];const l=()=>{const e=o.map(e=>e.trim()).filter(Boolean);if(e.length>0){const t=e.map(e=>m(e));if(t.every(e=>null!==e))return n.push({type:"propsTable",rows:t}),void(o=[])}const t=o.join(" ").trim();t&&n.push({type:"paragraph",text:t}),o=[]},s=()=>{r.length>0&&(n.push({type:"list",items:[...r]}),r=[])};for(const a of t){const e=a.trim();if(!e){s(),l();continue}const t=e.match(v);if(t){s(),l(),n.push({type:"heading",level:Math.min(t[1].length,3),text:t[2].trim()});continue}if(F.test(e)){s(),l(),n.push({type:"hr"});continue}const i=e.match(N);i?(l(),r.push(i[1].trim())):(s(),o.push(e))}return s(),l(),n}(e);return(0,c.jsx)("div",{className:`flex flex-col gap-4 ${r}`,style:{fontFamily:n},children:l.map((e,r)=>"heading"===e.type?(0,c.jsx)("div",{style:{fontSize:{1:"1.35rem",2:"1.15rem",3:"1rem"}[e.level],fontWeight:800,letterSpacing:1===e.level?"0.04em":"0.02em",textTransform:1===e.level?"uppercase":"none",color:t.text,fontFamily:o??n,lineHeight:1.25},children:(0,c.jsx)(A,{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)(A,{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)(A,{text:e,colors:t,bodyFont:n})},o))},r):"propsTable"===e.type?(0,c.jsx)(C,{rows:e.rows},r):(0,c.jsx)("hr",{style:{border:"none",borderTop:`1px solid ${t.border}`,margin:"4px 0"}},r))})}function S(e){return e.colors.heading??e.colors.text}function z(e){return e.colors.label??e.colors.text}function L(e){return e.colors.value??e.colors.text}function P(e){return e.colors.productYes??"#00C853"}function D(e){return e.colors.productNo??"#E53935"}function O(e){return e.brand?.accent??e.colors.primary}function T(e,t,n){const o=t?.trim().toLowerCase()===e.trim().toLowerCase();return t&&!o?t:n}function E(e){return e.colors.textAlt??e.colors.text}function j(e){return e.colors.textAltMuted??e.colors.textMuted}function Y(e){return e.colors.selectionCard??e.colors.surface??e.colors.backgroundAlt}function H(e){return e.colors.matchupHeader??e.colors.backgroundAlt}function R(e){return e.colors.selectionProp??e.colors.background}function G(e){return{textMuted:e.colors.textMuted,border:e.colors.border,background:e.colors.background,backgroundAlt:e.colors.backgroundAlt,primary:e.colors.primary,selectionCard:Y(e)}}function W(e,t="light"){return e?I(e)?"dark"===t?e.dark:e.light:e:U}function I(e){return"light"in e&&"dark"in e&&!("colors"in e)}var U={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"}},K={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"}},Z={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"}},q={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"}},$={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"}},V={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"}},X={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"}},Q={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"}},J={light:U,dark:Z},_={light:$,dark:K},ee={light:V,dark:q},te={light:X,dark:Q};function ne(e){return{default:U,green:K,"green-light":$,dark:Z,gold:q,"gold-light":V,yesno:Q,"yesno-light":X}[e]||U}var oe={default:U,green:K,"green-light":$,dark:Z,gold:q,"gold-light":V,yesno:Q,"yesno-light":X},re={default:J,green:_,gold:ee,yesno:te};function le(e,t="light"){return W(e,t)}function se(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 ae={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:48},ie={xs:4,sm:8,md:12,lg:16,xl:24,pill:999},ce={xs:11,sm:13,md:14,lg:16,xl:18,xxl:22,display:28},de={min:44};function ue(e){const t="dark"===e.colorScheme,n=e.colors;return{space:{...ae},radius:{...ie},fontSize:{...ce},touchTarget:{...de},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??se(n.border,t?.6:.5)},isDark:t}}function me(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 pe(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 fe(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 ${se(o,.9)}`,`0 0 0 ${n+5}px ${se(o,.18)}`].join(", ")}function he(e){return e.fonts?.body??"inherit"}function xe(e){return e.fonts?.heading??e.fonts?.body??"inherit"}function ge(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 ye="game-icon:",be={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 uses currentColor (teal on light, paper on the teal\n app-icon tile); the 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(4, 4) scale(1.15)">\n <circle cx="40" cy="40" r="34" fill="var(--icon-accent, #DFFF1A)"/>\n <path d="M40 8 C12 14 11 40 40 40 C69 40 68 66 40 72" fill="none" stroke="currentColor" stroke-width="4.5" stroke-linecap="round"/>\n </g>\n</svg>',pick_your_dividend:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n Splayed ladder rails and rungs with the citron ball resting at the top —\n the stacked-multi that pays every rung your streak reaches. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n\n Themable: rails/rungs use currentColor (primary tone); the ball uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <line x1="36" y1="16" x2="27" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="64" y1="16" x2="73" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="33.8" y1="34" x2="66.2" y2="34" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n <line x1="31.5" y1="52" x2="68.5" y2="52" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.8"/>\n <line x1="29.3" y1="70" x2="70.7" y2="70" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.6"/>\n <circle cx="50" cy="20" r="9" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Mirror.\n Two offset square-stacks reflected across a central seam, from the YESNO\n Mirror Standard mark ("Get them all right, you win. All wrong, you win.").\n Transparent background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left stack --\x3e\n <rect x="6" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="14" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- right stack — the reflection across x=50 --\x3e\n <rect x="66" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="58" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',same_game_multi:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon - Same Game Multi.\n Three proposition legs contained inside one rounded fixture card: many\n picks, one game. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the fixture and leg marks use currentColor (primary tone); the\n locked lead leg uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="14" y="14" width="72" height="72" rx="13" fill="none" stroke="currentColor" stroke-width="6"/>\n <circle cx="31" cy="35" r="6" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="43" y="31" width="31" height="8" rx="4" fill="currentColor"/>\n <circle cx="31" cy="51" r="6" fill="currentColor" opacity="0.8"/>\n <rect x="43" y="47" width="25" height="8" rx="4" fill="currentColor" opacity="0.8"/>\n <circle cx="31" cy="67" r="6" fill="currentColor" opacity="0.6"/>\n <rect x="43" y="63" width="19" height="8" rx="4" fill="currentColor" opacity="0.6"/>\n</svg>',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>'},we={perfectpick:"perfect_pick",headtohead:"head_to_head",totalpoints:"total_points",quickpick:"quickpick",safetynet:"safety_net",gameset:"game_set",gamesetbet:"game_set",pickyourdividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",mirrorstandard:"mirror",samegame:"same_game_multi",samegamemulti:"same_game_multi"},ke={safety_net:"safety_net",game_set:"game_set",pick_your_dividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",same_game_multi:"same_game_multi"};function ve(e){if(e.quick_pick_only)return"quickpick";return ke[e.rule?.trim().toLowerCase()??""]||(we[t=e.game_name??"",t.toLowerCase().replace(/[^a-z0-9]+/g,"")]??"unknown");var t}function Ne(e){return`${ye}${ve(e)}`}function Fe(e){return function(e){return e.startsWith(ye)}(e)?be[e.slice(10)]??be.unknown:null}var Be={text:"YES",tone:"yes"},Ce={text:"NO",tone:"no"},Ae=[{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"}],Me=["zero","one","two","three","four","five","six","seven","eight"],Se=[{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."}],ze=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 ",Be," or ",Ce," across your legs, every leg has to land, and one perfect card takes the prize."],steps:Se,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 ",Be," or ",Ce," on each matchup, land every leg, and the card pays."],steps:Se,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},total_points:{summary:["Total Points is all about the scoreboard. Call ",Be," or ",Ce," on each total, land every leg, and the card pays."],steps:Se,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},quickpick:{summary:["QuickPick fills the card for you. We generate the ",Be," and ",Ce," calls, you set the stake, and a perfect card takes the prize."],steps:[{title:"Press to play",detail:"We generate a full card of calls for you."},{title:"Check the slip",detail:"See the picks you have been dealt."},{title:"Place your wager",detail:"Set your stake, check the payout, and you are on."}],demoPrompt:"See how a card settles — call {n} legs yourself, then run it."},safety_net:{summary:["Safety Net is a multi with a miss built in. Pick ",Be," or ",Ce," across your legs — get them all right for the top prize, and if one slips, the net catches it and the entry still pays."],steps:ze("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 ",Be," or ",Ce," on every leg — reach the first rung and you start winning, and every rung after that stacks another prize on top."],steps:ze("ladder"),demoPrompt:"Try a {n}-leg ladder — the climb starts at {n1} right."},game_set:{summary:["Game Set Bet is straight sets. Pick ",Be," or ",Ce," on every leg — each extra leg doubles the prize, and a clean card takes the lot."],steps:ze("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 ",Be," or ",Ce," on every leg — land them all and the entry pays the dividend you picked."],steps:ze("dividend"),demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},mirror:{summary:["Mirror pays both ways. Pick ",Be," or ",Ce," on every leg — get them all right, you win. Get them all wrong, you win the same. Anything in between is a split card and does not pay."],steps:ze("card"),demoPrompt:"Try a {n}-leg mirror — sweep it either way."},same_game_multi:{summary:["Same Game Multi keeps every leg inside one fixture. Pick ",Be," or ",Ce," across the game — land every leg and the card pays."],steps:Se,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."}};function Pe(e){if(!e)return null;const t=ve(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),Ae.length)}}(e),s=e=>e.replace(/\{min\}/g,String(o>0?o:2)).replace(/\{max\}/g,String(r>0?r:12));return{id:t,...n,steps:n.steps.map(e=>({...e,detail:s(e.detail)})),demoLegs:Ae.slice(0,l),demoPrompt:s(n.demoPrompt).replace(/\{n1\}/g,Me[l-1]??String(l-1)).replace(/\{n\}/g,Me[l]??String(l))}}var De=(0,s.forwardRef)(function({theme:e,variant:t="primary",size:n="md",disabled:o,block:r,radius:l="md",onPress:a,onDoubleClick:i,type:d="button",className:u,style:m,children:p,ariaLabel:f},h){const x=ue(e),g=e.colors,[y,b]=s.default.useState(!1),[w,k]=s.default.useState(!1),[v,N]=s.default.useState(!1),F={sm:{h:36,px:x.space.md,fs:x.fontSize.sm},md:{h:x.touchTarget.min,px:x.space.lg,fs:x.fontSize.md},lg:{h:52,px:x.space.xl,fs:x.fontSize.lg}},B={sm:x.radius.sm,md:x.radius.md,lg:x.radius.lg,pill:x.radius.pill},C={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:se(g.text,x.isDark?.08:.05),fg:g.text,border:"transparent"},danger:{bg:g.error,bgHover:se(g.error,.85),fg:(g.errorText&&(g.errorText,g.error),"#ffffff"),border:g.error}}[t];return(0,c.jsx)("button",{ref:h,type:d,disabled:o,"aria-label":f,className:u,onClick:o?void 0:a,onDoubleClick:o?void 0:i,onMouseEnter:()=>b(!0),onMouseLeave:()=>{b(!1),k(!1)},onMouseDown:()=>k(!0),onMouseUp:()=>k(!1),onFocus:e=>{e.target.matches(":focus-visible")&&N(!0)},onBlur:()=>N(!1),style:{appearance:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8,width:r?"100%":void 0,minHeight:F[n].h,padding:`0 ${F[n].px}px`,fontSize:F[n].fs,fontWeight:500,fontFamily:"inherit",lineHeight:1.2,color:C.fg,background:y&&!o?C.bgHover:C.bg,border:`1px solid ${C.border}`,borderRadius:B[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?fe(e):"none",outline:"none",...m},children:p})}),Oe={xs:{padding:"3px 10px",fontSize:11},sm:{padding:"6px 14px",fontSize:13},md:{padding:"8px 18px",fontSize:14}};function Te(e,t,n,o,r){const l=ue(e);return{appearance:"none",padding:Oe[o].padding,borderRadius:l.radius.sm,fontSize:Oe[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 ${l.motion.durationFast}ms ${l.motion.easing}, color ${l.motion.durationFast}ms ${l.motion.easing}, border-color ${l.motion.durationFast}ms ${l.motion.easing}`,opacity:r?.5:1}}function Ee({theme:e,value:t,onYes:n,onNo:o,size:r="md",disabled:l,yesLabel:s="Yes",noLabel:a="No",className:i,style:d}){return(0,c.jsxs)("div",{className:i,style:{display:"flex",gap:8,flexShrink:0,...d},children:[(0,c.jsx)("button",{type:"button","aria-pressed":"yes"===t,disabled:l,onClick:l?void 0:n,style:Te(e,"yes"===t,P(e),r,l),children:s}),(0,c.jsx)("button",{type:"button","aria-pressed":"no"===t,disabled:l,onClick:l?void 0:o,style:Te(e,"no"===t,D(e),r,l),children:a})]})}function je({theme:e,value:t,size:n="md",style:o}){const r=ue(e);return(0,c.jsx)("span",{style:{display:"inline-flex",alignItems:"center",padding:"sm"===n?"2px 8px":"3px 10px",borderRadius:r.radius.sm,fontSize:"sm"===n?10:11,fontWeight:700,letterSpacing:"0.04em",textTransform:"uppercase",color:"#ffffff",background:"yes"===t?P(e):D(e),...o},children:"yes"===t?"Yes":"No"})}function Ye({segments:e,theme:t}){return(0,c.jsx)("p",{className:"m-0 text-[14px] leading-[1.55]",style:{color:t.colors.text},children:e.map((e,n)=>"string"==typeof e?(0,c.jsx)(s.default.Fragment,{children:e},n):(0,c.jsx)("span",{className:"font-extrabold",style:{color:"yes"===e.tone?P(t):D(t)},children:e.text},n))})}function He({panel:e,theme:t,dividends:n,bodyFont:o,headingFont:r,className:l=""}){const a=t.colors,i=t.brand?.accent??a.primaryText,d=Y(t),[u,m]=(0,s.useState)("learn"),[p,f]=(0,s.useState)(()=>e.demoLegs.map(()=>null)),[h,x]=(0,s.useState)(!1),g=e.demoLegs.length,y=p.filter(e=>null!=e).length,b=y===g,w=e.demoLegs.filter((e,t)=>p[t]===e.outcome).length,k=function(e,t,n){const o=t===n,r=`${t} of ${n}`;switch(e){case"mirror":return o?{won:!0,message:`All ${n} right — that is the sweep, the card pays.`}:0===t?{won:!0,message:`All ${n} wrong — a full mirror sweep pays the same as perfect.`}:{won:!1,message:`${r} is a split card. Mirror pays all right or all wrong — nothing in between.`};case"ladder":return o?{won:!0,message:`Top rung — all ${n} right stacks every prize on the ladder into one payout.`}:t>=n-1?{won:!0,message:`${r} reaches a rung — it pays, and every extra leg right stacks the next prize on top.`}:{won:!1,message:`${r} does not reach the first rung — the climb starts at ${n-1} right.`};case"safety_net":return o?{won:!0,message:`Clean sweep — all ${n} right takes the full prize.`}:t===n-1?{won:!0,message:"One miss — the net catches it and the entry still pays."}:{won:!1,message:`${r} is more than the net holds — one miss is covered, two is not.`};case"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)=>{h||f(n=>n.map((n,o)=>o===e?t:n))},N=h?"Settled":`${y} of ${g} called`,F=!h&&b,B=e=>({fontFamily:r,backgroundColor:e?a.primary:"transparent",color:e?a.primaryText:a.textMuted,cursor:"pointer"});return(0,c.jsxs)("div",{className:l,style:{fontFamily:o},children:[(0,c.jsx)("style",{children:"@keyframes ynhtp-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}"}),(0,c.jsxs)("div",{className:"mb-3.5 grid gap-0.5 rounded-lg border p-0.5",style:{borderColor:a.border,backgroundColor:a.backgroundAlt,gridTemplateColumns:`repeat(${n?3:2}, minmax(0, 1fr))`},role:"tablist",children:[(0,c.jsx)("button",{type:"button",role:"tab","aria-selected":"learn"===u,onClick:()=>m("learn"),className:"rounded-md px-2 py-1.5 text-[11px] font-extrabold uppercase tracking-[0.1em] transition-colors",style:B("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:B("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:B("pay"===u),children:"Dividends"})]}),"pay"===u&&n,"learn"===u&&(0,c.jsxs)("div",{children:[(0,c.jsx)(Ye,{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:se(a.primary,.25)}}),e.steps.map((e,t)=>(0,c.jsxs)("li",{className:"relative flex flex-col justify-center gap-0.5 py-2 pl-[50px]",children:[(0,c.jsx)("span",{"aria-hidden":!0,className:"absolute left-0 top-1/2 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-[10px] text-[16px] font-extrabold",style:{backgroundColor:a.primary,color:i,fontFamily:r,boxShadow:`0 2px 0 ${se(a.primary,.35)}`},children:t+1}),(0,c.jsx)("b",{className:"block text-[14.5px] font-bold leading-snug",style:{color:a.primary,fontFamily:r},children:e.title}),(0,c.jsx)("span",{className:"text-[13px] leading-snug",style:{color:a.textMuted},children:e.detail})]},e.title))]}),(0,c.jsx)("button",{type:"button",onClick:()=>m("try"),className:"mt-1.5 pl-[50px] text-[12.5px] font-bold",style:{color:a.primary,cursor:"pointer",fontFamily:r},children:"Try a quick demo →"})]}),"try"===u&&(0,c.jsxs)("div",{className:"overflow-hidden rounded-xl border",style:{borderColor:a.border,backgroundColor:d,boxShadow:me(t)},children:[(0,c.jsx)("div",{className:"px-3.5 pt-3 sm:px-4",children:(0,c.jsxs)("div",{className:"flex items-start justify-between gap-2.5",children:[(0,c.jsx)("p",{className:"m-0 min-w-0 flex-1 text-[12.5px] leading-snug",style:{color:a.textMuted},children:h?"Here is how it settled.":e.demoPrompt}),(0,c.jsx)("span",{className:"shrink-0 rounded-full border px-2 py-0.5 text-[10px] font-extrabold uppercase tracking-[0.1em] [font-variant-numeric:tabular-nums]",style:{borderColor:F?a.primary:se(a.border,.9),color:F?a.primaryText:a.textMuted,backgroundColor:F?a.primary:"transparent"},children:N})]})}),(0,c.jsx)("div",{className:"mt-1.5 px-3.5 sm:px-4",children:e.demoLegs.map((e,n)=>{const o=p[n]===e.outcome;return(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 py-2.5",style:{borderTop:0===n?"none":`1px solid ${se(a.border,.7)}`},children:[(0,c.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2.5",children:[(0,c.jsx)("span",{className:"mt-0.5 flex h-[18px] w-[18px] shrink-0 items-center justify-center rounded-full text-[10px] font-extrabold",style:h?{backgroundColor:o?a.success:a.error,color:"#fff",animation:"ynhtp-in .28s ease both",animationDelay:100*n+"ms"}:{border:`1.5px solid ${p[n]?a.primary:a.border}`,color:p[n]?a.primary:a.textMuted},children:h?o?"✓":"✗":n+1}),(0,c.jsx)("span",{className:"min-w-0 text-[13px] font-semibold leading-snug",style:{color:a.text},children:e.question})]}),h?(0,c.jsx)("span",{style:{animation:"ynhtp-in .28s ease both",animationDelay:100*n+"ms"},children:(0,c.jsx)(je,{theme:t,size:"sm",value:e.outcome})}):(0,c.jsx)(Ee,{theme:t,size:"sm",value:p[n],onYes:()=>v(n,"yes"),onNo:()=>v(n,"no")})]},e.question)})}),(0,c.jsx)("div",{className:"mx-3.5 sm:mx-4",style:{borderTop:`1.5px dashed ${se(a.border,.9)}`}}),(0,c.jsx)("div",{className:"px-3.5 pb-3.5 pt-3 sm:px-4",children:h?(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{className:"flex items-center gap-3 rounded-lg px-3 py-2.5",style:{backgroundColor:k.won?a.successBg:a.errorBg,animation:"ynhtp-in .3s ease both",animationDelay:100*g+60+"ms"},children:[(0,c.jsx)("span",{className:"shrink-0 -rotate-3 rounded-md border-2 px-1.5 py-0.5 text-[10px] font-extrabold uppercase tracking-[0.14em]",style:{borderColor:k.won?a.successText:a.errorText,color:k.won?a.successText:a.errorText,fontFamily:r},children:k.won?"Winner":"No win"}),(0,c.jsx)("p",{className:"m-0 text-[12.5px] font-semibold leading-snug",style:{color:k.won?a.successText:a.errorText},children:k.message})]}),(0,c.jsx)("button",{type:"button",onClick:()=>{f(e.demoLegs.map(()=>null)),x(!1)},className:"mt-2 text-[11.5px] font-bold",style:{color:a.textMuted,cursor:"pointer"},children:"↺ Deal it again"})]}):(0,c.jsx)(De,{theme:t,size:"sm",block:!0,disabled:!b,onPress:()=>x(!0),children:"Run the demo"})})]})]})}function Re({open:e,onClose:t,title:n="How to Play",content:o,panel:r,theme:l,extra:a,colors:i,bodyFont:d,headingFont:u}){const m=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(!e)return;const n=e=>{"Escape"===e.key&&t()};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e,t]),(0,s.useEffect)(()=>{if(!e)return;const t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[e]),e?(0,c.jsx)("div",{className:"fixed inset-0 z-50 flex items-end sm:items-center justify-center p-0 sm:p-4",style:{backgroundColor:"rgba(0,0,0,0.55)"},onMouseDown:e=>{e.target===e.currentTarget&&t()},children:(0,c.jsxs)("div",{ref:m,role:"dialog","aria-modal":"true","aria-labelledby":"how-to-play-title",className:"w-full sm:max-w-2xl max-h-[88vh] flex flex-col rounded-t-2xl sm:rounded-2xl border shadow-2xl overflow-hidden",style:{backgroundColor:i.background,borderColor:i.border,fontFamily:d,maxHeight:"88dvh"},children:[(0,c.jsx)("div",{className:"shrink-0 border-b px-4 pb-4 pt-3 text-left sm:px-6 sm:pt-4",style:{borderColor:i.border,backgroundColor:i.backgroundAlt},children:(0,c.jsx)("h2",{id:"how-to-play-title",className:"text-lg font-bold",style:{color:i.text,fontFamily:u??d},children:n})}),(0,c.jsx)("div",{className:"overflow-y-auto flex-1 min-h-0",children:r&&l?(0,c.jsx)("div",{className:"px-4 sm:px-6 py-5",children:(0,c.jsx)(He,{panel:r,theme:l,dividends:a,bodyFont:d,headingFont:u})}):(0,c.jsxs)(c.Fragment,{children:[o&&y(o)?(0,c.jsx)(k,{content:o,className:"min-h-[60vh]"}):(0,c.jsx)("div",{className:"px-4 sm:px-6 py-5",children:(0,c.jsx)(M,{content:o??"",colors:i,bodyFont:d,headingFont:u})}),a&&(0,c.jsx)("div",{className:"px-4 sm:px-6 pb-5",children:a})]})}),(0,c.jsx)("div",{className:"px-4 sm:px-6 py-4 border-t shrink-0",style:{borderColor:i.border,backgroundColor:i.backgroundAlt,paddingBottom:"max(1rem, env(safe-area-inset-bottom))"},children:(0,c.jsx)("button",{type:"button",onClick:t,className:"w-full rounded-xl px-5 py-3 text-sm font-bold",style:{color:i.primaryText,backgroundColor:i.primary,border:"none",cursor:"pointer",fontFamily:d},children:"Got it"})})]})}):null}function Ge({content:e,panel:t,theme:n,extra:o,title:r,label:l="How to Play",variant:a="pill",colors:i,bodyFont:d,headingFont:u,className:m=""}){const[p,f]=s.default.useState(!1);return e?.trim()||t&&n||o?(0,c.jsxs)(c.Fragment,{children:["icon"===a?(0,c.jsx)("button",{type:"button",onClick:()=>f(!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:()=>f(!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)(Re,{open:p,onClose:()=>f(!1),title:r,content:e??void 0,panel:t,theme:n,extra:o,colors:i,bodyFont:d,headingFont:u})]}):null}function We({label:e,category:t,icon:n,theme:o,disabled:r=!1}){const l=o.colors,s=xe(o),a=r?l.textMuted:l.textAlt??l.text,i=r?l.border:o.brand?.chip??l.primary,d=r?l.textMuted:o.brand?.icon??l.primaryText??l.buttonPrimaryText;return(0,c.jsxs)("span",{className:"font-display max-w-full text-base min-[400px]:text-lg min-[480px]:text-xl",style:{display:"inline-flex",alignItems:"center",flexWrap:"wrap",gap:"0.25em",lineHeight:1.15,color:a,fontFamily:s},children:[(0,c.jsxs)("span",{className:"shrink-0","aria-label":"YESNO",style:{letterSpacing:-1,whiteSpace:"nowrap"},children:[(0,c.jsx)("span",{style:{fontWeight:900},children:"YES"}),(0,c.jsx)("span",{style:{fontWeight:300},children:"NO"})]}),(0,c.jsx)("span",{role:"img","aria-label":e,className:"shrink-0",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1.6em",height:"0.85em",borderRadius:"0.425em",flexShrink:0,backgroundColor:i,color:d,transform:"translateY(-0.02em)"},children:n??(0,c.jsx)(Ie,{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 Ie({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 Ue({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 Ke({size:e=20,color:t="currentColor",className:n=""}){return(0,c.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round",className:n,"aria-hidden":!0,children:(0,c.jsx)("path",{d:"m9 6 6 6-6 6"})})}function Ze({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 qe({groups:e,theme:t,bodyFont:n,className:o=""}){const r=t.colors,l=(0,s.useRef)(null),[a,i]=(0,s.useState)(!1),[d,u]=(0,s.useState)(!1),[m,p]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if("undefined"==typeof window||!window.matchMedia)return;const e=window.matchMedia("(pointer: coarse)"),t=()=>p(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);const f=(0,s.useCallback)(()=>{const e=l.current;if(!e)return;const t=e.scrollWidth-e.clientWidth;i(e.scrollLeft>2),u(e.scrollLeft<t-2)},[]);(0,s.useEffect)(()=>{f(),window.addEventListener("resize",f);const e=l.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,e.length]);const h=e=>{const t=l.current;t&&t.scrollBy({left:e*Math.round(.7*t.clientWidth),behavior:"smooth"})},x=(0,s.useRef)({down:!1,lastX:0,travelled:0}),g=()=>{x.current.down=!1},y=r.background??"#fff",b={width:44,height:44,cursor:"pointer",background:"none",border:"none",padding:0},w={width:26,height:26,border:`1px solid ${r.border}`,backgroundColor:y,color:r.primary,boxShadow:"0 4px 10px -4px rgba(15, 76, 92, 0.55)"};return 0===e.length?null:(0,c.jsxs)("div",{className:`relative min-w-0 ${o}`,style:{fontFamily:n},children:[a&&(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, ${y}, transparent)`}}),a&&!m&&(0,c.jsx)("button",{type:"button","aria-label":"Scroll left",onClick:()=>h(-1),className:"absolute top-1/2 z-[3] flex -translate-y-1/2 items-center justify-center active:scale-90",style:{...b,left:-11},children:(0,c.jsx)("span",{className:"flex items-center justify-center rounded-full",style:w,children:(0,c.jsx)(Ke,{size:14,className:"rotate-180"})})}),d&&(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, ${y}, transparent)`}}),d&&!m&&(0,c.jsx)("button",{type:"button","aria-label":"Scroll right",onClick:()=>h(1),className:"absolute top-1/2 z-[3] flex -translate-y-1/2 items-center justify-center active:scale-90",style:{...b,right:-11},children:(0,c.jsx)("span",{className:"flex items-center justify-center rounded-full",style:w,children:(0,c.jsx)(Ke,{size:14})})}),(0,c.jsx)("div",{ref:l,onScroll:f,onPointerDown:e=>{"touch"!==e.pointerType&&(x.current={down:!0,lastX:e.clientX,travelled:0})},onPointerMove:e=>{const t=x.current;if(!t.down)return;const n=t.lastX-e.clientX;t.lastX=e.clientX,t.travelled+=Math.abs(n),l.current&&(l.current.scrollLeft+=n)},onPointerUp:g,onPointerCancel:g,onPointerLeave:g,className:"flex select-none items-center gap-2 overflow-x-auto px-0.5 py-0.5 [-webkit-overflow-scrolling:touch] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:{cursor:x.current.down?"grabbing":"grab"},children:e.map((e,t)=>(0,c.jsxs)(s.default.Fragment,{children:[t>0&&(0,c.jsx)("span",{"aria-hidden":!0,className:"h-5 w-px flex-none",style:{backgroundColor:r.border}}),e.label&&(0,c.jsx)("span",{className:"flex-none text-[10px] font-extrabold uppercase tracking-[0.14em]",style:{color:r.textMuted},children:e.label}),e.options.map(t=>{const o=t.value===e.value;return(0,c.jsx)("button",{type:"button",onClick:()=>{x.current.travelled>4||e.onChange(t.value)},className:"flex-none whitespace-nowrap rounded-full px-3.5 py-1.5 text-[12px] font-bold tracking-[-0.01em] transition-colors active:translate-y-px",style:{fontFamily:n,border:`1px solid ${o?r.primary:r.border}`,backgroundColor:o?r.primary:y,color:o?r.primaryText:r.primary,cursor:"pointer"},children:t.label},t.value??"__all")})]},e.label??t))})]})}function $e({label:e,options:t,value:n,onChange:o,theme:r,bodyFont:l,className:s=""}){return(0,c.jsx)(qe,{groups:[{label:e,options:t,value:n,onChange:o}],theme:r,bodyFont:l,className:s})}function Ve(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function Xe(e){return(e.description??e.proposition??"").trim()}var Qe={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function Je(e){return"composite_and"===(t=Ve(e))||"composite_or"===t;var t}function _e(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 et(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 tt(e,t){if(!Je(e))return null;const n=function(e){return Je(e)?("composite_and"===(t=Ve(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=_e(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:Xe(o),eventLabel:et(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(Qe[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(Xe(e),n);return r?{operator:n,legs:r.map(e=>({text:e,eventLabel:null}))}:null}var nt="#0F4C5C",ot={aussierules_afl:"AFL",rugbyleague_nrl:"NRL",basketball_nba:"NBA",basketball_ncaab:"CBB",americanfootball_nfl:"NFL",americanfootball_ncaaf:"CFB",soccer_epl:"EPL",soccer_italy_serie_a:"SEA",soccer_spain_la_liga:"LIG",soccer_germany_bundesliga:"BUN",soccer_usa_mls:"MLS",baseball_mlb:"MLB",icehockey_nhl:"NHL",horse_racing_aus:"RLT",roulette:"RLT",dice:"DCE",cointrio:"CT3"},rt={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner"};function lt(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=ot[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 st(e){return!!e.is_composite_component||!!(t=Ve(e))&&t.startsWith("co_");var t}function at(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function it(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}function ct(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 dt(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 ut(e){return e.reduce((t,n)=>{const o=mt(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function mt(e,t){if(e.sport)return e.sport;if(Je(e)&&t)for(const n of _e(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var pt=["sports","casino","racing"];function ft(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=Ve(e).toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"sports"}function ht(e){return"racing"===ft(e)}function xt(e){const t={};for(const n of e){const e=ft(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function gt(e){const t=xt(e);return pt.filter(e=>(t[e]?.length??0)>0)}function yt(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";default:return"Choose a Sport"}}function bt(e,t,n,o){return o&&o.length>0?o.includes(e):!(void 0!==t&&e<t||void 0!==n&&e>n)}function wt(e,t,n){const o=n?.min_propositions??null,r=n?.max_propositions??null,l=(n?.allowed_propositions??e.allowed_propositions)?.filter(e=>(null==o||e>=o)&&(null==r||e<=r));if(l&&l.length>0)return null!=t&&l.includes(t)?{min:t,max:t}:{min:Math.min(...l),max:Math.max(...l)};const s=e.min_propositions??e.num_propositions??0,a=e.max_propositions??e.num_propositions??0;return{min:null!=o?Math.max(s,o):s,max:null!=r&&a>0?Math.min(a,r):r??a}}function kt(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 vt(e,t){const n={basketball_nba:"NBA Basketball",americanfootball_nfl:"NFL Football",icehockey_nhl:"NHL Hockey",baseball_mlb:"MLB Baseball",soccer_epl:"Premier League",soccer_usa_mls:"MLS Soccer",horse_racing_aus:"Horse Racing",casino_blackjack:"Blackjack",casino_roulette:"Roulette",casino_slots:"Slots",aussierules_afl:"AFL",rugbyleague_nrl:"NRL","AUSTRALIAN-RULES":"AFL","RUGBY-LEAGUE":"NRL",cricket_international_t20:"T20 International",cricket_test_match:"Test Cricket"};return e.startsWith("casino_")?n[e]??e.replace(/^casino_/,"").replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):t&&e.startsWith(`${t}_`)?e.slice(t.length+1).replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):n[e]||e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}function Nt(e,t,n){const o=t?.[e];return o||vt(e,n)}function Ft(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 Bt(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function Ct(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function At(e,t,n){return!t||!!e&&(Ct(e,t,n)||Ct(t,e,n))}function Mt(e,t){return t.find(t=>t.id===e)}function St(e,t){let n=e;return t?.category&&(n=n.filter(e=>ft(e)===t.category)),t?.sport&&(n=n.filter(n=>Je(n)?function(e,t,n,o){if(At(e.sport,t,n))return!0;if(!o)return!1;for(const r of _e(e)){const e=Mt(r,o);if(e&&At(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):At(n.sport,t.sport,t.sportBaseKey))),n}function zt(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t?t:"sports"}(e)===t}function Lt(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>Ct(t,e,n))}function Pt(e,t,n){return!(n?.category&&!zt(e,n.category))&&!(n?.sport&&!Lt(e,n.sport,n.sportBaseKey))&&St(Ot(t,e),n).length>0}function Dt(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!zt(e,t.category)||t.sport&&!Lt(e,t.sport,t.sportBaseKey))):e}function Ot(e,t,n){const o=t.allowed_sports,r=o&&o.length>0,l=t.allowed_markets&&t.allowed_markets.length>0;return r||l?e.filter(s=>{if(st(s))return!1;if(r)if(Je(s)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>Ct(e.sport,t,n)))return!0;if(!o)return!1;for(const r of _e(e)){const e=Mt(r,o);if(e?.sport&&t.some(t=>Ct(e.sport,t,n)))return!0}return!1}(s,o,n,e))return!1}else if(!s.sport||!o.some(e=>Ct(s.sport,e,n)))return!1;return!(l&&!function(e,t){const n=t.allowed_markets;if(!n||0===n.length)return!0;const o=Ve(e);return!!o&&n.includes(o)}(s,t))}):e.filter(e=>!st(e))}function Tt(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 Et=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function jt(e,t,n){return function(e,t,n){return"racing"===e||!(!t?.length||!t.every(ht))||!!n&&Boolean(t?.some(e=>e.sport===n||(e.sport||"").startsWith(`${n}_`)))}(t,e,n)?function(e){return e.reduce((e,t)=>{const n=t.away_team||t.eventId||"Race";return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e):function(e){return e.reduce((e,t)=>{const n=`${t.home_team} vs ${t.away_team}`;return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e)}function Yt(e){const t=[];for(const n of e){const e=n.home_team&&n.away_team&&!ht(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 Ht(e,t){if(e===t)return[e];if(t<e)return[e];const n=[];for(let o=e;o<=t;o++)n.push(o);return n}function Rt(e,t){const n=[...e].sort(()=>Math.random()-.5).slice(0,t),o=[],r=[];for(const l of n)Math.random()<.5?o.push(l):r.push(l);return{yesPicks:o,noPicks:r}}var Gt=new Map,Wt=new Map;function It(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 Ut({iconUrl:e,width:t,height:n,iconColor:o,accentColor:r,ariaLabel:l,style:a}){const i=Fe(e),[d,u]=s.default.useState(()=>i??Gt.get(e)??null);s.default.useEffect(()=>{const t=Fe(e);if(t)return void u(t);if(Gt.has(e))return void u(Gt.get(e));let n=!1;return function(e){const t=Gt.get(e);if(void 0!==t)return Promise.resolve(t);const n=Wt.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=>(Gt.set(e,t),Wt.delete(e),t)).catch(t=>{throw Wt.delete(e),t});return Wt.set(e,o),o}(e).then(e=>{n||u(e)}).catch(()=>{n||u(null)}),()=>{n=!0}},[e]);const m={display:"inline-block",width:t,height:n,lineHeight:0,...a};return d?(0,c.jsx)("img",{src:It(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 Kt({iconUrl:e,gameName:t,onPress:n,size:o=120,brandColor:r="#0F4C5C",cardColor:l="#DDD9D2",iconColor:s,accentColor:a,captionColor:i="#14687C",className:d,ariaLabel:u}){const m=(t||"").toUpperCase(),p=o/360,f=s??l,h=T(r,a,f),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)(Ut,{iconUrl:e,width:"100%",height:"100%",iconColor:f,accentColor:h})})]});return n?(0,c.jsx)(Zt,{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 Zt({size:e,onPress:t,className:n,ariaLabel:o,renderInner:r}){const[l,a]=(0,s.useState)(!1),[i,d]=(0,s.useState)(!1),u=i?"scale(0.96)":"scale(1)";return(0,c.jsx)("button",{type:"button",onClick:t,"aria-label":o,className:n,onMouseEnter:()=>a(!0),onMouseLeave:()=>{a(!1),d(!1)},onMouseDown:()=>d(!0),onMouseUp:()=>d(!1),onTouchStart:()=>d(!0),onTouchEnd:()=>d(!1),onBlur:()=>{d(!1),a(!1)},style:{width:e,height:e,padding:0,background:"transparent",border:0,cursor:"pointer",borderRadius:e/360*78,transform:u,transition:"transform 140ms ease-out"},children:r(l||i)})}function qt(e){return e.selectionCard??e.backgroundAlt}function $t({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 Vt({color:e="#ffffff",size:t=18}){return(0,c.jsx)($t,{color:e,size:t,label:"Loading"})}function Xt({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 Qt({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 Jt({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:qt(e),borderColor:e.border},children:[(0,c.jsx)(Xt,{color:e.textMuted,className:"h-5 w-[11rem] max-w-full"}),(0,c.jsx)(Xt,{color:e.textMuted,className:"h-3 w-24 max-w-[70%]"})]},n))})}function _t({colors:e,count:t=4}){return(0,c.jsx)("div",{className:"grid grid-cols-2 gap-3 w-full","aria-hidden":!0,children:Array.from({length:t}).map((t,n)=>(0,c.jsxs)("div",{className:"flex flex-col items-center gap-2 rounded-2xl border px-3 py-3 sm:flex-row sm:gap-3.5 sm:px-4 sm:py-4 w-full min-w-0",style:{backgroundColor:qt(e),borderColor:e.border},children:[(0,c.jsx)(Xt,{color:e.textMuted,className:"h-10 w-10 sm:h-12 sm:w-12 rounded-xl shrink-0"}),(0,c.jsxs)("div",{className:"flex w-full min-w-0 flex-col items-center gap-1.5 sm:w-auto sm:items-start",children:[(0,c.jsx)(Xt,{color:e.textMuted,className:"h-3.5 w-20 max-w-full"}),(0,c.jsx)(Xt,{color:e.textMuted,className:"h-2.5 w-12 max-w-[80%]"})]})]},n))})}function en({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:qt(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)(Xt,{color:e.textMuted,className:"h-4 w-44 max-w-full"})}),(0,c.jsx)(Xt,{color:e.textMuted,className:"h-3 w-40 max-w-[80%] mt-2"})]}),(0,c.jsx)(Xt,{color:e.textMuted,className:"h-5 w-5 rounded shrink-0"})]},n))})}function tn({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:qt(e)},"aria-hidden":!0,children:[(0,c.jsx)(Xt,{color:e.textMuted,className:"rounded-2xl",style:{width:t,height:t}}),(0,c.jsx)(Xt,{color:e.textMuted,className:"h-3 w-11 mt-3"}),(0,c.jsx)(Xt,{color:e.textMuted,className:"h-5 w-36 max-w-[80%] mt-2"}),(0,c.jsx)(Xt,{color:e.textMuted,className:"h-3 w-48 max-w-[90%] mt-3"}),(0,c.jsx)(Xt,{color:e.textMuted,className:"h-3 w-40 max-w-[75%] mt-1.5"})]})}function nn({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)(Xt,{color:e.textMuted,className:"h-[38px] w-full rounded-full"},t))})}function on({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)(nn,{colors:e}),(0,c.jsx)(tn,{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)(Xt,{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)(Xt,{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)(Xt,{color:e.textMuted,className:"h-[52px] w-[52px] rounded-2xl"}),(0,c.jsx)(Xt,{color:e.textMuted,className:"h-2.5 w-12"})]},n))})]})]})]})}function rn({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)(Xt,{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:qt(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)(Xt,{color:e.textMuted,className:"h-4 w-44 max-w-[80%]"}),(0,c.jsx)(Xt,{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)(Xt,{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)(Xt,{color:e.textMuted,className:"h-7 w-11 sm:h-8 sm:w-12 rounded-lg"}),(0,c.jsx)(Xt,{color:e.textMuted,className:"h-7 w-11 sm:h-8 sm:w-12 rounded-lg"})]})]},n))})]},o))})]})}function ln({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)(Xt,{color:e.textMuted,className:"h-3.5 w-[4.25rem]"}),(0,c.jsx)(Xt,{color:e.textMuted,className:"h-5 min-w-[1.25rem] w-5 rounded-full"})]},t))})}function sn({colors:e}){return(0,c.jsxs)("div",{className:"rounded-lg border overflow-hidden w-full",style:{borderColor:e.border,backgroundColor:qt(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)(Xt,{color:e.textMuted,className:"h-[18px] w-40 max-w-[75%]"}),(0,c.jsx)(Xt,{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)(Xt,{color:e.textMuted,className:"h-3.5 w-10"}),(0,c.jsx)(Xt,{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)(Xt,{color:e.textMuted,className:"h-3.5 w-[88%]"}),(0,c.jsx)(Xt,{color:e.textMuted,className:"h-3 w-[70%]"})]}),(0,c.jsx)(Xt,{color:e.textMuted,className:"h-5 w-10 rounded shrink-0"})]},t))})]})}function an({colors:e,rows:t=2}){return(0,c.jsxs)("div",{className:"w-full flex flex-col","aria-hidden":!0,children:[(0,c.jsx)(ln,{colors:e}),(0,c.jsx)("div",{className:"space-y-3 w-full",children:Array.from({length:t}).map((t,n)=>(0,c.jsx)(sn,{colors:e},n))})]})}function cn({colors:e,bodyFont:t,message:n,className:o="",variant:r="category",showLogoArea:l=!1,gameCardCount:s=3,categoryCount:a=2,showTierTabs:i=!1}){const d=(()=>{switch(r){case"sport":return(0,c.jsx)(_t,{colors:e,count:Math.max(a,2)});case"event":return(0,c.jsx)(en,{colors:e});case"games":return(0,c.jsx)(on,{colors:e,count:s,showTierTabs:i});case"propositions":return(0,c.jsx)(rn,{colors:e});case"entries":return(0,c.jsx)(an,{colors:e,rows:2});default:return(0,c.jsx)(Jt,{colors:e,count:a})}})();return(0,c.jsx)(Qt,{className:o,bodyFont:t,children:(0,c.jsxs)("div",{role:"status","aria-live":"polite","aria-label":n?.trim()||"Loading",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 dn(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function un(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function mn(e){if(!e||e.quick_pick_only)return!1;const t=un(e.selection_scope);if("samegamemulti"===un(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(un);return n.includes("samegame")||n.includes("samegamemulti")}function pn(e){return(e.eventId??e.event_id)?.trim()||null}function fn(e){const t=new Map;for(const n of e){if(!yn(n))continue;const e=pn(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=hn(o.homeTeam,n.home_team),o.awayTeam=hn(o.awayTeam,n.away_team),o.sport=hn(o.sport,n.sport),o.league=hn(o.league,n.league),o.commenceTime=gn(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=xn(e.commenceTime),o=xn(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function hn(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function xn(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function gn(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=xn(e),r=xn(n);return r!==o?r<o?n:e:e.localeCompare(n)<=0?e:n}function yn(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function bn(e,t){return t?e.filter(e=>yn(e)&&pn(e)===t):[]}function wn(e,t){return!!t&&e.length>0&&e.every(e=>yn(e)&&pn(e)===t)}var kn={signature:1,premier:2,exclusive:3},vn=[{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 Nn(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function Fn(e,t){return e.filter(e=>Nn(e)===t)}function Bn(e){const t=new Set(e.map(Nn));return vn.filter(e=>t.has(e.level))}function Cn(e){return Bn(e)[0]?.id??"signature"}var An=[4,12],Mn=[5,10,20,50];function Sn(e){return!!e&&!e.quick_pick_only&&"safety_net"===(e.rule??"").trim().toLowerCase()}function zn(e){const t=e.payout_structure;return{margin:e.operator_margin??0,perLegProbability:t?.per_leg_probability??.5,perfectMultiple:t?.perfect_prize?.stake_multiple??25,perfectBaseLegs:t?.perfect_prize?.base_legs??6,nearMissBudgetFraction:t?.near_miss?.budget_fraction??.5,roundTo:t?.round_to??5}}function Ln(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)}function Pn(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 Dn(e,t,n,o){const r=Math.max(0,Math.min(n,t)),l=e*o.perfectMultiple*Math.pow(2,t-o.perfectBaseLegs),s=r>0?e*(1-o.margin)*o.nearMissBudgetFraction/r:0,a=Math.pow(1/o.perLegProbability,t),i=[];let c=Pn(t,0);for(let d=1;d<=r;d+=1)c+=Pn(t,d),i.push(Ln(s*a/c,o.roundTo));return{legs:t,stake:e,allowedMisses:r,perfect:l,nearMiss:i,sweep:l+i.reduce((e,t)=>e+t,0)}}function On(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 Tn(e){return e.includes(8)?8:e[Math.floor(e.length/2)]}function En(e){return e.toLowerCase().replace(/[^a-z]+/g," ").trim()}function jn(e,t){const n=En(t);return e.permitted_rules?.find(e=>En(e.name??"").includes(n))??null}function Yn(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 Hn(e){if(!Sn(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??An[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??An[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=jn(e,"Extra Shot"),l=jn(e,"Double Shot"),s=Yn(o,r,4).filter(e=>e>1),a=Yn(o,l,6).filter(e=>e>2);if(0===s.length)return null;const i=[{id:"extra_shot",label:"Extra Shot",allowedMisses:1,stat:"Bigger payout",explain:"Miss one leg and you win the All but 1 prize. Get every leg right and you win both — the Perfect prize on top.",legOptions:s,defaultLegs:Tn(s),ruleId:r?.id??null}],c=!e.permitted_rules?.length||!!l;a.length>0&&c&&i.push({id:"double_shot",label:"Double Shot",allowedMisses:2,stat:"Safer play",explain:"Miss two legs and you win the All but 2 prize. Miss one and you win two prizes. Get every leg right and you win all three — the whole stack.",legOptions:a,defaultLegs:Tn(a),ruleId:l?.id??null});const d=Math.max(e.min_bet??5,.01),u=e.max_bet??null,m=Mn.filter(e=>null===u||e<=u);return{modes:i,defaultModeId:"extra_shot",defaultStake:Math.min(Math.max(20,d),u??20),minStake:d,maxStake:u,quickAdds:m,tagline:"The wider the safety net, the more misses it catches. The narrower it is, the bigger the top prize.",pricing:zn(e)}}function Rn(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function Gn(e,t,n){const o=Math.max(0,e-t),r=Dn(20,e,o,n),l=[];for(let s=0;s<=o;s+=1){const t=Math.round(On(r,s));l.push({misses:s,label:`${e-s}/${e}`,multiplier:t/20,payout20:t})}return l}function Wn(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:Gn(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:Gn(e,e-2,t),expectedCorrect:e-2}]}function In(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:Wn(t,zn(e)),continueLabel:"Continue to picks"}}(e,o):"exact"===n&&o>0?function(e,t){return{mode:"selection",kind:"exact",title:"All or nothing",headline:"Get it PERFECT, take the top PAY",heroTagline:"Every pick has to land. Miss a single one and the ticket is gone — but a clean sweep pays the biggest prize.",legCount:t,options:Rn(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 Un(e){return null!=In(e)}var Kn=[2500,5e3,7500,1e4,12500,15e3,2e4],Zn=[12,11,10,9,8,7,6];function qn(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function $n(e){return Math.round(100*e)/100}function Vn(e,t,n=.21875){const o=Math.pow(2,t),r=e/(1-n)/o,l=Number.isInteger(r),s=$n(r),a=l?r:$n(.96*r);return{legs:t,exactStake:s,stake:a,margin:1-e/(a*o),multiple:e/a,oddsOneIn:o,discounted:!l}}function Xn(e,t=Zn){return{dividend:e,rungs:t.map(t=>Vn(e,t))}}function Qn(e,t){if(!qn(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,r=Zn.filter(e=>e>=n&&e<=o);if(0===r.length)return null;const l=t?.dividends??Kn;return{dividends:l.map(e=>Xn(e,r)),defaultDividend:l.includes(1e4)?1e4:l[Math.floor(l.length/2)],defaultLegs:r.includes(9)?9:r[Math.floor(r.length/2)],tagline:"The dividend is set. The win is yours to build."}}function Jn(e,t){const n=e.allowed_propositions&&e.allowed_propositions.length>0?e.allowed_propositions.map(Number):[],o=e.min_propositions??e.num_propositions??null,r=e.max_propositions??e.num_propositions??null,l=0===n.length&&null!==o&&null!==r&&r>0,s=n.length>0?n:l?Ht(o,r):[],a=new Map;for(const h of t?.top_payouts??[]){const e=Number(h.proposition_count),t=Number(h.net_payout),n=Number(h.bet_amount??20);!Number.isFinite(e)||e<=0||a.set(e,{count:e,payout:Number.isFinite(t)?t:0,betAmount:Number.isFinite(n)&&n>0?n:20})}for(const h of s){const e=Number(h);a.has(e)||a.set(e,{count:e,payout:0,betAmount:20})}const i=Array.from(a.values()).sort((e,t)=>e.count-t.count),c=s.length>0?Math.max(...s.map(Number)):0,d=qn(e)?Qn(e):null,u=d?d.dividends.map(e=>({dividend:e.dividend,stakeFrom:Math.min(...e.rungs.map(e=>e.stake))})):void 0,m=d?[]:i.map(e=>({count:e.count,payout20:e.payout>0&&e.betAmount>0?e.payout/e.betAmount*20:0})),p=In(e,c),f="safety_net"===p?.kind?(p.options??[]).flatMap(e=>e.dividends?.length?[{id:e.id,label:e.label,tiers:e.dividends.map(e=>({label:e.label,payout20:e.payout20}))}]:[]):[];return{legOptions:s.map(Number),maxLegCount:c,tiers:m,modes:f,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 _n({tiers:e,modes:t,pydDividends:n,onPlayCount:o,minBet:r=1,maxBet:l=null,colors:a,bodyFont:i,headingFont:d}){const u=e=>Math.min(Math.max(e,r),l??1/0),[m,p]=(0,s.useState)(()=>String(u(20))),f=parseFloat(m),h=u(Number.isFinite(f)&&f>0?f:20),x=h/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:"mt-2 flex items-center gap-1 text-[10px] italic",style:{color:a.textMuted,margin:"8px 0 0"},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(h)),"aria-label":"Example bet amount",style:{width:74,marginLeft:2,padding:"2px 5px",borderRadius:6,border:`1px solid ${a.border}`,backgroundColor:a.background??"#fff",color:a.text,fontSize:11,fontWeight:600,fontStyle:"normal",fontFamily:i}})]}),"bet",null!=l?` (${ct(r)}–${ct(l)})`:` (min ${ct(r)})`,"."]}),w={marginTop:10,borderRadius:14,border:`1px solid ${a.border}`,backgroundColor:a.backgroundAlt??"#FCFBF9",padding:"12px 14px",textAlign:"left",fontFamily:i};return(0,c.jsxs)("div",{className:"w-full",children:[y&&(0,c.jsx)("div",{className:"text-[11px] font-bold uppercase",style:{color:a.textMuted,letterSpacing:"0.14em"},children:"Compare dividends"}),(0,c.jsx)("div",{style:w,children:t?.length?t.map((e,n)=>(0,c.jsxs)("div",{style:{borderTop:0===n?"none":`1px solid ${a.border}`,paddingTop:0===n?0:8,marginTop:0===n?0:8},children:[(0,c.jsx)("div",{className:"text-[11px] font-bold mb-1",style:{color:a.text,fontFamily:d},children:e.label}),e.tiers.map(e=>(0,c.jsxs)("div",{className:"flex items-center justify-between py-1",style:{gap:14},children:[(0,c.jsxs)("span",{style:{color:a.textMuted,fontSize:11,flex:1},children:[e.label," correct"]}),(0,c.jsx)("span",{style:{fontWeight:700,color:a.heading??a.text,fontSize:12},children:ct(e.payout20*x)})]},e.label)),n===t.length-1&&b]},e.id)):n?.length?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"flex items-center justify-between pb-1 mb-1",style:{borderBottom:`1px solid ${a.border}`},children:[(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Dividend"}),(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Stake from"})]}),n.map(e=>(0,c.jsxs)("div",{className:"flex items-center justify-between py-1",children:[(0,c.jsx)("span",{style:{fontWeight:700,color:a.heading??a.text,fontSize:12},children:ct(e.dividend)}),(0,c.jsx)("span",{style:{fontWeight:600,color:a.text,fontSize:12},children:ct(e.stakeFrom)})]},e.dividend)),(0,c.jsx)("p",{className:"mt-2 text-[10px] italic",style:{color:a.textMuted},children:"You set the dividend before kick-off. Longer climbs start from a smaller stake."})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"flex items-center justify-between pb-1 mb-1",style:{borderBottom:`1px solid ${a.border}`},children:[(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Legs played"}),(0,c.jsx)("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Payout"})]}),e.map(e=>{const t=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{style:{fontWeight:600,color:o?a.primary:a.text,fontSize:12},children:[e.count," legs"]}),(0,c.jsx)("span",{style:{fontWeight:600,color:e.payout20>0?a.text:a.textMuted,fontSize:12},children:e.payout20>0?ct(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)}),b]})})]})}function eo({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 ${se(o.primary,.55)}, 0 7px 12px -4px ${se(o.primary,.35)}`:`0 4px 0 ${se(o.border,.9)}, 0 6px 10px -4px ${se(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 to({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)(Ut,{iconUrl:e,width:"100%",height:"100%",iconColor:o,accentColor:r})})]})}function no({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:r,iconColor:l,accentColor:a,captionColor:i,bodyFont:u,legOptions:m,onPick:p,colors:f,menuShadow:h}){const[x,g]=(0,s.useState)(!1),[y,b]=(0,s.useState)(null),w=(0,s.useRef)(null),k=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(!x)return void b(null);const e=()=>{const e=w.current;if(!e||"undefined"==typeof window)return;const t=e.getBoundingClientRect(),n=40+40*m.length+12,o=window.innerHeight-t.bottom,r=o<n&&t.top>o;b({top:t.top,bottom:t.bottom,right:t.right,flipUp:r,avail:Math.max((r?t.top:o)-12,132)})};e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0);const t=e=>{const t=e.target;w.current?.contains(t)||k.current?.contains(t)||g(!1)};return document.addEventListener("mousedown",t),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0),document.removeEventListener("mousedown",t)}},[x,m.length]);const v=x&&y&&"undefined"!=typeof document?(0,d.createPortal)((0,c.jsxs)("div",{ref:k,role:"menu",className:"rounded-lg overflow-y-auto overscroll-contain",style:{position:"fixed",maxHeight:y.avail,top:y.flipUp?void 0:y.bottom+6,bottom:y.flipUp?window.innerHeight-y.top+6:void 0,left:y.right,transform:"translateX(-100%)",zIndex:20,backgroundColor:f.background,border:`1px solid ${f.border}`,boxShadow:h,minWidth:180,fontFamily:u},children:[(0,c.jsx)("div",{className:"px-3 py-1.5 text-[10px] font-bold tracking-wider uppercase",style:{color:f.text,opacity:.55,borderBottom:`1px solid ${f.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 ${f.border}`},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=f.backgroundAlt},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},children:[(0,c.jsxs)("span",{className:"text-sm font-semibold",style:{color:f.text},children:[e," picks"]}),(0,c.jsx)("span",{className:"text-[10px] font-bold tracking-wider",style:{background:se(f.primary,.14),color:f.primary,padding:"2px 6px",borderRadius:4},children:"QP"})]},e))]}),document.body):null;return(0,c.jsxs)("div",{ref:w,children:[(0,c.jsx)(Kt,{iconUrl:e,gameName:t,onPress:()=>g(e=>!e),size:n,brandColor:o,cardColor:r,iconColor:l,accentColor:a,captionColor:i}),v]})}function oo({games:e,selectedGame:t,onSelectGame:n,loading:o,error:r,theme:l,colorScheme:a,showTier:i=!1,showCategory:d=!1,showTierFilter:u=!1,onPropositionCountChange:m,onPropositionCountSelected:p,onQuickPickGame:f,maxPayouts:h}){const x=le(l,a),g=x.colors,y=Y(x),b=he(x),w=xe(x),k=S(x),v=pe(x),N=me(x),F=O(x),B=(0,s.useMemo)(()=>Bn(e),[e]),[C,A]=(0,s.useState)(()=>Cn(e));(0,s.useEffect)(()=>{0!==B.length&&(B.some(e=>e.id===C)||A(B[0].id))},[B,C]);const M=(0,s.useMemo)(()=>!u||B.length<=1?e:Fn(e,kn[C]),[e,u,B.length,C]),L=(0,s.useRef)(null),P=(0,s.useRef)(null),[D,T]=(0,s.useState)(0),[E,j]=(0,s.useState)(0),H=(e,t)=>{e.quick_pick_only&&f&&t>0?f(e,t):(t>0&&!mn(e)&&m?.(t),n(e),p?.())},R=e=>{H(e,Jn(e,h?.[e.id]).maxLegCount)};(0,s.useEffect)(()=>{const e=L.current;if(!e)return;T(e.getBoundingClientRect().width);const t=new ResizeObserver(e=>{for(const t of e)T(t.contentRect.width)});return t.observe(e),()=>t.disconnect()},[]);const W=(0,s.useRef)(()=>{}),I=(0,s.useCallback)(e=>{P.current?.removeEventListener("scroll",W.current),P.current=e,e&&(W.current=()=>{const t=e.scrollLeft+e.clientWidth/2;let n=0,o=1/0;Array.from(e.children).forEach((e,r)=>{const l=e,s=Math.abs(l.offsetLeft+l.offsetWidth/2-t);s<o&&(o=s,n=r)}),j(n)},e.addEventListener("scroll",W.current,{passive:!0}),W.current())},[]);(0,s.useEffect)(()=>{W.current()},[D,M.length]);const U=(0,s.useRef)(null);(0,s.useEffect)(()=>{U.current?.scrollIntoView({inline:"center",block:"nearest",behavior:"smooth"})},[E]),(0,s.useEffect)(()=>{P.current?.scrollTo({left:0}),j(0)},[C]);const K=e=>e.allowed_propositions&&e.allowed_propositions.length>0&&e.game_name.replace(/\s+\d+\s*$/,"").trim()||e.game_name,Z=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)(cn,{colors:G(x),bodyFont:b,variant:"games",gameCardCount:Math.min(Math.max(e.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===e.length)return(0,c.jsx)("div",{className:"flex items-center justify-center p-8",style:{fontFamily:b},children:(0,c.jsx)("div",{style:{color:g.textMuted},children:"No games available"})});const q=D>0&&D<400,$=q?108:124,V=D>0?Math.min(.86*D,380):0,X=V>0?Math.max((D-V)/2,4):4,Q=M.length>1,J=Q&&X>=48,_=e=>({position:"absolute",top:"38%",width:44,height:44,borderRadius:"50%",border:`1px solid ${g.border}`,backgroundColor:se(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:L,className:"flex flex-col",style:{fontFamily:b},children:[u&&(0,c.jsx)(eo,{tabs:B,active:C,onChange:A,colors:g,bodyFont:b}),0===M.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:I,className:"blade-game-track",style:{display:"flex",alignItems:"stretch",gap:14,overflowX:"auto",overflowY:"hidden",scrollSnapType:"x mandatory",scrollbarWidth:"none",paddingLeft:X,paddingRight:X,paddingBottom:8,position:"relative"},children:M.map(e=>{const n=Tt(e),o=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>Et[e]??`Day ${e}`);return 1===n.length?n[0]:n.slice(0,-1).join(", ")+" & "+n[n.length-1]}(e),r=t?.id===e.id,l=String(e.id),s=kt(e),a=e.description||e.rule,u=e.call_to_action?.trim()||null,{legOptions:m,maxLegCount:p,tiers:N,modes:B,pydDividends:C,hasGenericDividends:A,minBet:M,maxBet:S}=Jn(e,h?.[e.id]),L=Ne(e),P=!n&&o?`Available ${o}`:null;return(0,c.jsxs)("article",{className:"flex flex-col items-center text-center",style:{flex:V>0?`0 0 ${V}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&&f&&m.length>1?(0,c.jsx)(no,{iconUrl:L,gameName:K(e),size:$,brandColor:g.primary,cardColor:y,iconColor:g.primaryText,accentColor:F,captionColor:g.textMuted,bodyFont:b,legOptions:m.map(Number),onPick:t=>H(e,t),colors:g,menuShadow:v}):(0,c.jsx)(Kt,{iconUrl:L,gameName:K(e),onPress:()=>R(e),size:$,brandColor:g.primary,cardColor:y,iconColor:g.primaryText,accentColor:F,captionColor:g.primary}),(0,c.jsxs)("div",{className:"mt-2",style:{fontFamily:w,fontSize:13,letterSpacing:"-0.04em",lineHeight:1},children:[(0,c.jsx)("span",{style:{fontWeight:800,color:g.primary},children:"YES"}),(0,c.jsx)("span",{style:{fontWeight:600,color:se(g.primary,.85)},children:"NO"})]}),(0,c.jsxs)("h3",{className:"flex items-center justify-center gap-1.5 font-semibold leading-tight px-1 mt-0.5",style:{fontFamily:w,fontSize:q?19:21,color:k,letterSpacing:"-0.01em"},children:[K(e),(0,c.jsx)(Ge,{variant:"icon",panel:Pe(e),content:a||"Pick outcomes and land the payout for this game.",theme:x,title:K(e),label:`How to play ${K(e)}`,extra:(0,c.jsx)(_n,{tiers:A?N:[],modes:B,pydDividends:C,onPlayCount:m.length>1?t=>H(e,t):void 0,minBet:M,maxBet:S,colors:g,bodyFont:b,headingFont:w}),colors:g,bodyFont:b,headingFont:w})]}),u&&(0,c.jsx)("p",{className:"mt-1.5 font-bold leading-snug",style:{fontSize:13,color:g.primary,maxWidth:"30ch"},children:u}),a&&(0,c.jsx)("p",{className:"mt-2 leading-relaxed",style:{fontSize:12.5,color:g.textMuted,maxWidth:"34ch"},children:a}),s.enabled&&(0,c.jsxs)("span",{className:"inline-flex w-fit items-center gap-0.5 px-2 py-0.5 rounded-full mt-2",style:{backgroundColor:`${g.warning}15`,color:g.warning,fontSize:10,fontWeight:700},children:["★ ",s.progressive?s.amount>0?ct(s.amount):s.limit>0?`Up to ${ct(s.limit)}`:"Jackpot":ct(s.amount)]}),(d||i)&&(0,c.jsxs)("div",{className:"flex flex-wrap gap-1 justify-center mt-2",children:[d&&e.category&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:g.backgroundAlt,color:z(x)},children:e.category}),d&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:g.backgroundAlt,color:z(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:z(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:z(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)})}),J&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("button",{type:"button","aria-label":"Previous game",onClick:()=>Z(E-1),style:{..._(E>0),left:2},children:"‹"}),(0,c.jsx)("button",{type:"button","aria-label":"Next game",onClick:()=>Z(E+1),style:{..._(E<M.length-1),right:2},children:"›"})]})]}),Q&&(0,c.jsx)("div",{className:"flex justify-center flex-wrap pt-1 pb-2",children:M.map((e,t)=>(0,c.jsx)("button",{type:"button","aria-label":`Go to ${K(e)}`,onClick:()=>Z(t),style:{padding:"18.5px 5px",margin:"-18.5px 0",background:"none",border:"none",cursor:"pointer",display:"flex",alignItems:"center"},children:(0,c.jsx)("span",{style:{display:"block",width:t===E?22:7,height:7,borderRadius:999,backgroundColor:t===E?g.primary:se(g.primary,.25),transition:"width 200ms ease, background-color 200ms ease"}})},e.id))}),Q&&(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:q?"blade-game-strip flex gap-1":"grid gap-1",style:q?{overflowX:"auto",scrollbarWidth:"none"}:{gridTemplateColumns:"repeat(auto-fit, minmax(84px, 1fr))"},children:M.map((e,t)=>(0,c.jsxs)("button",{ref:t===E?U:void 0,type:"button",onClick:()=>{Z(t),Tt(e)&&R(e)},"aria-current":t===E,className:"flex flex-col items-center gap-1 px-1 py-1.5 rounded-2xl",style:{...q?{flex:"0 0 auto",width:76}:null,border:`1px solid ${t===E?g.primary:"transparent"}`,cursor:"pointer",background:"transparent",transition:"border-color 150ms ease"},children:[(0,c.jsx)(to,{iconUrl:Ne(e),size:q?44:52,brandColor:g.primary,iconColor:g.primaryText,accentColor:F}),(0,c.jsx)("span",{className:"text-[11px] font-bold leading-tight",style:{color:t===E?g.primary:k,fontFamily:w,letterSpacing:"-0.01em"},children:K(e)})]},e.id))})]})]}),(0,c.jsx)("style",{children:".blade-game-track::-webkit-scrollbar,.blade-game-strip::-webkit-scrollbar{display:none}"})]})}var ro=class{constructor(e){this.inflight=new Map,this.cache=new Map,this.apiUrl=e.apiUrl,this.apiKey=e.apiKey,this.fetchImpl=e.fetchImpl??fetch.bind(globalThis),this.getAuthHeaders=e.getAuthHeaders}invalidateCache(){this.cache.clear()}invalidate(){this.invalidateCache()}async request(e,t,n){const o=`${this.apiUrl}${e}`,r=(t?.method??"GET").toUpperCase(),l="GET"===r,s=l,a=!l&&!n?.idempotent,i=`${r} ${o}`;if(s){const e=this.cache.get(i);if(e&&Date.now()-e.at<5e3)return e.value;const t=this.inflight.get(i);if(t)return t}const c=s?this.cache.get(i):void 0,d=(async()=>{let e;try{const n=this.getAuthHeaders?await this.getAuthHeaders():void 0;e=await this.fetchImpl(o,{...t,headers:{"Content-Type":"application/json",...this.apiKey?{"X-API-Key":this.apiKey}:{},...n??{},...c?.etag?{"If-None-Match":c.etag}:{},...t?.headers}})}catch(r){throw r}if(304===e.status&&c)return s&&this.cache.set(i,{at:Date.now(),value:c.value,etag:c.etag}),c.value;if(!e.ok){let t=`API request failed: ${e.status} ${e.statusText}`;try{const n=await e.json();422===e.status&&n.detail?Array.isArray(n.detail)?t=n.detail.map(e=>`${Array.isArray(e.loc)?e.loc.join("."):"field"}: ${e.msg}`).join("; "):"string"==typeof n.detail?t=n.detail:"object"==typeof n.detail&&(t=JSON.stringify(n.detail)):n.message?t=n.message:n.error&&(t=n.error)}catch{}throw new Error(t)}const n=await e.json();if(s){const t=e.headers.get("ETag")??void 0;this.cache.set(i,{at:Date.now(),value:n,etag:t})}return n})();return s?(this.inflight.set(i,d),d.catch(()=>{}).finally(()=>{this.inflight.delete(i)})):a&&d.finally(()=>this.invalidateCache()).catch(()=>{}),d}async getGames(e){const t=new URLSearchParams;e?.category&&t.append("category",e.category),e?.jurisdiction&&t.append("jurisdiction",e.jurisdiction),e?.sport&&t.append("sport",e.sport);const n=t.toString(),o=n?`/games?${n}`:"/games",r=await this.request(o);return{games:r.payload||[],howToPlayMarkdown:r.how_to_play_markdown??null}}async getGame(e){return(await this.request(`/games/${e}`)).payload}async getPropositions(e){const t=new URLSearchParams;e?.event_id&&t.append("event_id",e.event_id),e?.sport&&t.append("sport",e.sport),e?.category&&t.append("category",e.category);const n=t.toString(),o=n?`/propositions?${n}`:"/propositions";return(await this.request(o)).payload||[]}async getSports(){return(await this.request("/propositions/sports")).sports||[]}async getPropositionsByIds(e){if(0===e.length)return[];const t=new URLSearchParams({ids:e.join(","),include_expired:"true"});return(await this.request(`/propositions?${t.toString()}`)).payload||[]}async getProposition(e){const t=(await this.request(`/propositions/${e}?include_expired=true`)).payload;return Array.isArray(t)?t.find(t=>t.id===e)??t[0]:t}async getGameEntries(e){const t=new URLSearchParams;null!=e?.user_id&&t.append("user_id",String(e.user_id)),null!=e?.pending&&t.append("pending",String(e.pending));const n=t.toString(),o=n?`/game-entries?${n}`:"/game-entries";return((await this.request(o)).payload||[]).map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),null!=t.stake&&null==t.bet_amount&&(t.bet_amount=Number(t.stake)),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t})}async createGameEntry(e){const t=e.proposition_ids.map(t=>({proposition_id:t,user_prediction:e.selections?.[t]??"yes"})),n={game_id:e.game_id,user_id:e.user_id,propositions:t};null!=e.stake&&(n.stake=e.stake),null!=e.rule_id&&(n.rule_id=e.rule_id);const o=(await this.request("/game-entries",{method:"POST",body:JSON.stringify(n)})).payload;return null!=o.stake&&null==o.bet_amount&&(o.bet_amount=Number(o.stake)),o}async getPayoutsDue(e){const t=new URLSearchParams;null!=e?.game_id&&t.set("game_id",String(e.game_id)),null!=e?.limit&&t.set("limit",String(e.limit)),null!=e?.offset&&t.set("offset",String(e.offset));const n=t.toString();return await this.request(n?`/game-entries/payouts/due?${n}`:"/game-entries/payouts/due")}async getEntryPayout(e){return(await this.request(`/game-entries/${e}/payout`)).payload}async markEntryPaidOut(e){const t=await this.request(`/game-entries/${e}/payout/mark-paid-out`,{method:"POST",body:JSON.stringify({})});return this.invalidate(),t.payload}async updateGameEntryResult(e,t){return(await this.request(`/game-entries/${e}/result`,{method:"POST",body:JSON.stringify(t)})).payload}async getGameMaxPayout(e,t){const n=null!=t?`?bet_amount=${encodeURIComponent(String(t))}`:"";return(await this.request(`/games/${e}/max-payout${n}`)).payload}async getGamesMaxPayouts(e,t){if(0===e.length)return{};const n=new URLSearchParams({ids:e.join(",")});null!=t&&n.set("bet_amount",String(t));const o=await this.request(`/games/max-payouts?${n.toString()}`),r={};for(const[l,s]of Object.entries(o.payload||{}))r[Number(l)]=s;return r}async getEntryPreview(e,t){return(await this.request(`/games/${e}/preview`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async evaluateRule(e,t){return(await this.request(`/games/${e}/evaluate-rule`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async calculatePayout(e,t){return(await this.request(`/games/${e}/calculate-payout`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}};function lo(e,t,n){const[o,r]=(0,s.useState)([]),[l,a]=(0,s.useState)(null),[i,c]=(0,s.useState)(!n?.skip),[d,u]=(0,s.useState)(null),m=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",p=(0,s.useRef)(t);p.current=t;const f=n?.skip??!1,h=(0,s.useCallback)(async()=>{if(!f)try{c(!0),u(null);const t=await e.getGames(p.current);r(t.games),a(t.howToPlayMarkdown)}catch(t){u(t instanceof Error?t.message:"Failed to fetch games")}finally{c(!1)}},[e,m,f]);return(0,s.useEffect)(()=>{h()},[h]),{games:o,howToPlayMarkdown:l,loading:i,error:d,refetch:(0,s.useCallback)(async()=>{e.invalidate(),await h()},[e,h])}}function so(e,t,n){const[o,r]=(0,s.useState)([]),[l,a]=(0,s.useState)(!n?.skip),[i,c]=(0,s.useState)(null),d=n?.skip??!1,u=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",m=(0,s.useRef)(t);m.current=t;const p=(0,s.useCallback)(async()=>{if(!d)try{a(!0),c(null),r(await e.getPropositions(m.current))}catch(t){c(t instanceof Error?t.message:"Failed to fetch propositions")}finally{a(!1)}},[e,u,d]);return(0,s.useEffect)(()=>{p()},[p]),{propositions:o,loading:l,error:i,refetch:(0,s.useCallback)(async()=>{e.invalidate(),await p()},[e,p])}}function ao(e,t){const[n,o]=(0,s.useState)([]),[r,l]=(0,s.useState)(!t?.skip),[a,i]=(0,s.useState)(null),c=t?.skip??!1,d=(0,s.useCallback)(async()=>{if(!c)try{l(!0),i(null),o(await e.getSports())}catch(t){i(t instanceof Error?t.message:"Failed to fetch sports")}finally{l(!1)}},[e,c]);return(0,s.useEffect)(()=>{d()},[d]),{sports:n,loading:r,error:a,refetch:(0,s.useCallback)(async()=>{e.invalidate(),await d()},[e,d])}}function io(e,t,n){const[o,r]=(0,s.useState)([]),[l,a]=(0,s.useState)(!n?.skip),[i,c]=(0,s.useState)(null),d=n?.skip??!1,u=t?`${t.user_id??""}_${t.pending??""}`:"",m=(0,s.useRef)(t);m.current=t;const p=(0,s.useCallback)(async()=>{if(!d)try{a(!0),c(null),r(await e.getGameEntries(m.current))}catch(t){c(t instanceof Error?t.message:"Failed to fetch entries")}finally{a(!1)}},[e,u,d]);return(0,s.useEffect)(()=>{p()},[p]),{entries:o,loading:l,error:i,refetch:(0,s.useCallback)(async()=>{e.invalidate(),await p()},[e,p])}}function co(e,t,n){const[o,r]=(0,s.useState)({}),[l,a]=(0,s.useState)(!1),i=n?.skip??!1,c=n?.betAmount,d=(0,s.useRef)(new Set);return(0,s.useEffect)(()=>{if(i||0===t.length)return;const n=t.filter(e=>!(e.id in o)&&!d.current.has(e.id));if(0===n.length)return;for(const e of n)d.current.add(e.id);let l=!1;return a(!0),(async()=>{try{const t=await e.getGamesMaxPayouts(n.map(e=>e.id),c);l||r(e=>({...e,...t}))}catch{}finally{l||a(!1)}})(),()=>{l=!0}},[e,t.map(e=>e.id).join(","),i,c]),{maxPayouts:o,loading:l,refetchGame:(0,s.useCallback)(async(t,n)=>{if(!i)try{const o=await e.getGamesMaxPayouts([t],n??c);o[t]&&r(e=>({...e,[t]:o[t]}))}catch{}},[e,i,c])}}function uo(e){const[t,n]=(0,s.useState)(!1),[o,r]=(0,s.useState)(null),[l,a]=(0,s.useState)(null);return{createEntry:async t=>{try{n(!0),r(null);const o=await e.createGameEntry(t);return a(o),o}catch(o){const e=o instanceof Error?o.message:"Failed to create entry";throw r(e),new Error(e)}finally{n(!1)}},loading:t,error:o,entry:l}}function mo(e){const[t,n]=(0,s.useState)(e?"sport":"game"),[o,r]=(0,s.useState)(null),[l,a]=(0,s.useState)({}),[i,c]=(0,s.useState)(null);return{step:t,selectedGame:o,selections:l,placedEntry:i,setGameOnly:e=>{r(e)},clearSelectedGame:()=>{r(null),a({})},goToSportSelection:e=>{e&&r(e),n("sport")},goToConfirmation:()=>{n("confirm")},goToSuccess:e=>{c(e),n("success")},goBack:()=>{"confirm"===t?n("sport"):"sport"===t&&(n("game"),r(null),a({}))},reset:()=>{n("game"),r(null),a({}),c(null)},toggleSelection:(e,t)=>{a(n=>{const o={...n};return o[e]===t?delete o[e]:o[e]=t,o})}}}function po(e){const[t,n]=(0,s.useState)(!1),[o,r]=(0,s.useState)(null),[l,a]=(0,s.useState)(null);return{preview:(0,s.useCallback)(async(t,o)=>{try{n(!0),r(null);const l=await e.getEntryPreview(t,o);return a(l),l}catch(l){const e=l instanceof Error?l.message:"Failed to preview entry";throw r(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:o,result:l}}var fo={today:"Today",weekend:"This weekend",next7:"Next 7 days"},ho=["today","weekend","next7"];function xo(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function go(e,t,n){if(!e)return!1;const o=new Date(e);if(Number.isNaN(o.getTime()))return!1;const{start:r,end:l}=function(e,t){const n=function(e){const t=new Date(e);return t.setHours(0,0,0,0),t}(t);switch(e){case"today":return{start:n,end:xo(n,1)};case"weekend":{const e=n.getDay(),t=xo(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:xo(t,2)}}case"next7":return{start:n,end:xo(n,7)}}}(t,n);return o>=r&&o<l}var yo=(0,s.createContext)(null),bo={};function wo(){const e=(0,s.useContext)(yo);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function ko({onPress:e,onDoubleClick:t,label:n="QUICKPICK",size:o="md",yesColor:r,noColor:l,theme:a}){const i=(0,s.useContext)(yo),d=a??i?.theme??U,u=ue(d),m=d.colors,p=r??P(d),f=l??D(d),h="sm"===o,x=h?u.space.xs:u.space.sm,g=h?6:8,y=h?u.fontSize.sm:u.fontSize.md,b=h?8.5:10,[w,k]=s.default.useState(!1),[v,N]=s.default.useState(!1);return(0,c.jsxs)("button",{type:"button",onClick:e,onDoubleClick:t,onMouseDown:()=>k(!0),onMouseUp:()=>k(!1),onMouseLeave:()=>k(!1),onFocus:e=>{e.target.matches(":focus-visible")&&N(!0)},onBlur:()=>N(!1),style:{appearance:"none",display:"inline-flex",flexDirection:"column",width:"100%",minWidth:92,padding:0,margin:0,border:`1px solid ${se(m.border,.6)}`,background:"transparent",borderRadius:u.radius.sm,overflow:"hidden",cursor:"pointer",fontFamily:"inherit",transform:w?"scale(0.985)":"scale(1)",transition:`transform ${u.motion.durationFast}ms ${u.motion.easing}, box-shadow ${u.motion.durationFast}ms ${u.motion.easing}`,boxShadow:v?fe(d):"none",outline:"none",minHeight:u.touchTarget.min},children:[(0,c.jsxs)("span",{style:{position:"relative",display:"flex",flex:1},children:[(0,c.jsx)("span",{"aria-hidden":!0,style:{position:"absolute",inset:0,background:p,clipPath:"polygon(0 0, 53% 0, 47% 100%, 0 100%)"}}),(0,c.jsx)("span",{"aria-hidden":!0,style:{position:"absolute",inset:0,background:f,clipPath:"polygon(53% 0, 100% 0, 100% 100%, 47% 100%)"}}),(0,c.jsx)("span",{style:{position:"relative",flex:1,textAlign:"center",padding:`${g}px ${x}px`,color:"#ffffff",fontSize:y,fontWeight:600,letterSpacing:.2,whiteSpace:"nowrap"},children:"Yes"}),(0,c.jsx)("span",{style:{position:"relative",flex:1,textAlign:"center",padding:`${g}px ${x}px`,color:"#ffffff",fontSize:y,fontWeight:600,letterSpacing:.2,whiteSpace:"nowrap"},children:"No"}),(0,c.jsx)("svg",{"aria-hidden":"true",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none"},preserveAspectRatio:"none",children:(0,c.jsx)("line",{x1:"53%",y1:"0",x2:"47%",y2:"100%",stroke:"rgba(255,255,255,0.85)",strokeWidth:"1.5"})})]}),(0,c.jsx)("span",{style:{background:m.buttonSecondary,color:m.buttonSecondaryText,fontSize:b,letterSpacing:"0.14em",padding:"3px 0 4px",textAlign:"center",fontWeight:700,fontFamily:d.fonts?.mono??"inherit"},children:n})]})}function vo(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 No({matchup:e,renderTeamLogo:t,altText:n,mutedColor:o,size:r="sm"}){const[l,s=""]=e.split(" vs "),a="md"===r?"text-sm sm:text-base":"text-sm";if(!(s.length>0))return(0,c.jsx)("span",{className:`font-semibold ${a} leading-snug break-words`,style:{color:n},children:e});const i=(e,n)=>(0,c.jsxs)("span",{className:`inline-flex items-center gap-1 leading-snug min-w-0 max-w-full ${n}`,children:[t?.(e),(0,c.jsx)("span",{className:"break-words min-w-0",children:e})]});return(0,c.jsxs)("span",{className:`font-semibold ${a} grid grid-cols-[auto_1fr] items-center gap-x-1.5 min-w-0 max-w-full sm:flex sm:flex-wrap sm:items-center`,style:{color:n},children:[i(l,"col-start-2 row-start-1"),(0,c.jsx)("span",{className:"text-xs font-normal flex-shrink-0 col-start-1 row-start-1 row-span-2 self-center",style:{color:o},children:"vs"}),i(s,"col-start-2 row-start-2")]})}function Fo({label:e,colors:t}){const n="OR"===e?"If either wins, you win.":"Both must win for Yes.",[o,r]=(0,s.useState)(!1),[l,a]=(0,s.useState)({top:0,left:0}),i=(0,s.useRef)(null),d=(0,s.useCallback)(()=>{const e=i.current;if(!e)return;const t=e.getBoundingClientRect();a({top:t.bottom+4,left:t.left})},[]);return(0,s.useEffect)(()=>{if(!o)return;d();const e=()=>d();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[o,d]),(0,c.jsxs)("span",{className:"relative inline-flex flex-shrink-0",onMouseEnter:()=>{d(),r(!0)},onMouseLeave:()=>r(!1),children:[(0,c.jsx)("button",{ref:i,type:"button",className:"px-2 py-0.5 rounded-md text-[10px] font-bold uppercase tracking-wide leading-none cursor-help",style:{color:t.primary,backgroundColor:se(t.primary,.14),border:`1px solid ${se(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??se(t.primary,.3)}`},children:n})]})}function Bo({prop:e,colors:t,size:n="sm",componentById:o}){const r=tt(e,o),l=e.description??e.proposition??"",a="md"===n?"text-sm sm:text-base font-medium":"text-xs sm:text-sm",i=t.textMuted??t.textAltMuted??t.text;if(!r)return(0,c.jsx)("span",{className:a,style:{color:t.text},children:l});const{operator:d,legs:u}=r;return u.some(e=>e.eventLabel)?(0,c.jsx)("div",{className:"min-w-0 flex-1 flex flex-col gap-2",children:u.map((e,n)=>(0,c.jsxs)("div",{className:"min-w-0",children:[n>0&&(0,c.jsx)("div",{className:"mb-1 flex items-center",children:(0,c.jsx)(Fo,{label:d,colors:t})}),e.eventLabel&&(0,c.jsx)("div",{className:"text-[10px] sm:text-xs font-semibold uppercase tracking-wide leading-tight break-words",style:{color:i},children:e.eventLabel}),(0,c.jsx)("span",{className:a,style:{color:t.text},children:e.text})]},n))}):(0,c.jsx)("div",{className:"min-w-0 flex-1",children:(0,c.jsx)("div",{className:"flex flex-wrap items-center gap-x-1.5 gap-y-1",children:u.map((e,n)=>(0,c.jsxs)(s.default.Fragment,{children:[n>0&&(0,c.jsx)(Fo,{label:d,colors:t}),(0,c.jsx)("span",{className:a,style:{color:t.text},children:e.text})]},n))})})}function Co({game:e,propositions:t,selections:n,onToggleSelection:o,onNext:r,onBack:l,loading:a,error:i,theme:d,colorScheme:u,hideActions:m=!1,initialSport:p,renderTeamLogo:f,disableQuickPick:h=!1,selectedPropositionCount:x,onPropositionCountChange:g,gameCategory:y,headerExtra:b}){const w=(0,s.useContext)(yo),k=w?.sportBaseKey,v=function(e,t){const[n,o]=(0,s.useState)([]),r=(0,s.useRef)(new Set),l=(0,s.useMemo)(()=>{const e=new Map;for(const n of t)e.set(n.id,n);for(const t of n)e.set(t.id,t);return e},[t,n]),a=(0,s.useMemo)(()=>e?function(e){const t=new Set;for(const n of e)if(Je(n))for(const e of _e(n))t.add(e);return[...t]}(t).filter(e=>!l.has(e)):[],[e,t,l]);return(0,s.useEffect)(()=>{if(!e||0===a.length)return;const t=a.filter(e=>!r.current.has(e));if(0===t.length)return;for(const e of t)r.current.add(e);let n=!1;return e.getPropositionsByIds(t).then(e=>{!n&&e.length>0&&o(t=>[...t,...e])}).catch(()=>{}),()=>{n=!0}},[e,a]),l}((0,s.useMemo)(()=>w?.apiUrl?new ro({apiUrl:w.apiUrl,apiKey:w.apiKey,fetchImpl:w.fetchImpl,getAuthHeaders:w.getAuthHeaders}):null,[w?.apiUrl,w?.apiKey,w?.fetchImpl,w?.getAuthHeaders]),t),N=le(d,u),F=N.colors,B=Y(N),C=R(N),A=F.matchupHeader??(e.color?se(e.color,.14):H(N)),M=F.textAlt??F.text,z=me(N),L=he(N);xe(N),S(N);const P=!!(e.allowed_propositions&&e.allowed_propositions.length>0),{min:D,max:O}=wt(e,x),T=D,E=O,[j,W]=s.default.useState(()=>new Set(Object.keys(jt(t,y,k)))),I=T>0&&T===E,U=T||1,K=E||t.length,Z=E||T||t.length,[q,$]=s.default.useState(Z),V=Object.keys(n).length,X=E>0&&V>=E,Q=P?null!=x&&V===x:bt(V,e.min_propositions,e.max_propositions);e.min_bet,E>0?Math.max(2,2*E):Math.max(2,2*V);const J=s.default.useRef(V),_=P?null!=x&&V===x:E>0&&V===E;(0,s.useEffect)(()=>{_&&V>J.current&&r?.(),J.current=V},[V,_]);const ee=(e,t)=>{!(e in n)&&X||o(e,t)};(0,s.useEffect)(()=>{const e=E||t.length,n=T||1;$(t=>I?E:Math.max(n,Math.min(t,e)))},[t.length,T,E,I]);const te=(0,s.useMemo)(()=>new Date,[]),ne=(0,s.useMemo)(()=>function(e,t){const n=e.filter(e=>null!=function(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}(e));if(n.length<2)return[];const o=[];for(const r of ho){let e=0,l=0;for(const o of n)if(go(o.commence_time,r,t)?e+=1:l+=1,e>0&&l>0)break;e>0&&l>0&&o.push({id:r,label:fo[r]})}return o}(t,te),[t,te]),[oe,re]=(0,s.useState)(null);(0,s.useEffect)(()=>{oe&&!ne.some(e=>e.id===oe)&&re(null)},[ne,oe]);const ae=(0,s.useMemo)(()=>function(e,t,n){return t?e.filter(e=>go(e.commence_time,t,n)):e.slice()}(t,oe,te),[t,oe,te]),ie=(0,s.useMemo)(()=>jt(ae,y,k),[ae,y,k]),ce=(0,s.useMemo)(()=>{const e=new Set;for(const t of ae){const n=Ve(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[ae]),[de,ue]=(0,s.useState)(null),[pe,fe]=(0,s.useState)(!1);(0,s.useEffect)(()=>{de&&!ce.includes(de)&&ue(null)},[ce,de]);const ge=(0,s.useMemo)(()=>{if(!de)return ie;const e={};for(const[t,n]of Object.entries(ie)){const o=n.filter(e=>Ve(e)===de);o.length>0&&(e[t]=o)}return e},[ie,de]),ye=Object.keys(ge);if(s.default.useEffect(()=>{const e=Object.keys(ge);e.length>0&&W(t=>e.every(e=>t.has(e))?t:new Set(e))},[ge]),a)return(0,c.jsx)(cn,{colors:G(N),bodyFont:L,variant:"propositions"});if(i)return(0,c.jsx)("div",{className:"flex items-center justify-center p-8",style:{fontFamily:L},children:(0,c.jsx)("div",{style:{color:F.error},children:i})});const be=!h&&t.length>0,we=ne.length>0||ce.length>1,ke=(null!=oe?1:0)+(null!=de?1:0);return(0,c.jsxs)("div",{className:"space-y-4 sm:space-y-6 pb-16",style:{fontFamily:L},children:[(we||b)&&(0,c.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,c.jsx)("div",{className:"flex items-center gap-2",children:we&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("button",{type:"button",onClick:()=>fe(e=>!e),"aria-expanded":pe,className:"inline-flex items-center gap-1.5 rounded-full px-3 py-1.5 text-[11px] font-bold transition-colors",style:{fontFamily:L,border:`1px solid ${ke>0?F.primary:F.border}`,backgroundColor:ke>0?F.primary:F.background??"#fff",color:ke>0?F.primaryText:F.text,cursor:"pointer"},children:[(0,c.jsx)(Ue,{size:13}),"Filter",ke>0&&(0,c.jsxs)("span",{children:["· ",ke]}),(0,c.jsx)("span",{className:"inline-flex transition-transform",style:{transform:`rotate(${pe?-90:90}deg)`,opacity:.75},children:(0,c.jsx)(Ke,{size:13})})]}),ke>0&&(0,c.jsx)("button",{type:"button",onClick:()=>{re(null),ue(null)},className:"text-[11px] font-semibold",style:{color:F.textMuted,cursor:"pointer"},children:"Clear"})]})}),b]}),pe&&we&&(0,c.jsxs)("div",{className:"space-y-2.5",children:[ne.length>0&&(0,c.jsx)($e,{label:"When",options:[{value:null,label:"All dates"},...ne.map(e=>({value:e.id,label:e.label}))],value:oe,onChange:e=>re(e),theme:N,bodyFont:L}),ce.length>1&&(0,c.jsx)($e,{label:"Market",options:[{value:null,label:"All markets"},...ce.map(e=>{return{value:e,label:(t=e,t.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))};var t})],value:de,onChange:ue,theme:N,bodyFont:L})]}),be&&(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:[!I&&(0,c.jsxs)("div",{className:"flex items-center gap-1",children:[(0,c.jsx)("input",{type:"number",min:U,max:K,value:q,onChange:e=>{const t=parseInt(e.target.value,10);isNaN(t)||$(Math.max(U,Math.min(K,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:M,backgroundColor:F.backgroundAlt,border:`2px solid ${F.border}`}}),(0,c.jsxs)("span",{className:"text-xs whitespace-nowrap",style:{color:F.textMuted},children:["/ ",t.length]})]}),(0,c.jsx)(ko,{onPress:()=>{const e=I?E:q;for(const t of Object.keys(n)){const e=Number(t);o(e,n[e])}const{yesPicks:l,noPicks:s}=Rt(t,e);for(const t of l)o(t.id,"yes");for(const t of s)o(t.id,"no");r?.()}})]})}),t.length>0&&(0,c.jsx)("div",{className:"space-y-4",children:ye.every(e=>1===ge[e].length)?(0,c.jsx)("div",{className:"rounded-xl border overflow-hidden divide-y",style:{borderColor:F.border,backgroundColor:B,boxShadow:z},children:ye.map(e=>{const t=ge[e][0],o="yes"===n[t.id],r="no"===n[t.id],l=t.id in n,s=X&&!l;return(0,c.jsxs)("div",{className:"transition-colors divide-y",style:{opacity:s?.45:1,borderColor:F.border},children:[(0,c.jsxs)("div",{className:"px-4 py-2.5 sm:py-3 min-w-0",style:{backgroundColor:A},children:[(0,c.jsx)("div",{className:"min-w-0",children:(0,c.jsx)(No,{matchup:e,renderTeamLogo:f,altText:M,mutedColor:F.textAltMuted??F.textMuted??M})}),t.commence_time&&(0,c.jsx)("span",{className:"text-[11px] block mt-0.5",style:{color:F.textAltMuted??F.textMuted,opacity:.7},children:dt(t.commence_time)})]}),(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 px-4 py-3 sm:py-3.5",style:{backgroundColor:C},children:[(0,c.jsxs)("div",{className:"min-w-0 flex-1 flex items-start gap-2",children:[vo(t,f,e),(0,c.jsx)(Bo,{prop:t,colors:F,componentById:v})]}),(0,c.jsx)(Ee,{theme:N,size:"sm",value:o?"yes":r?"no":null,onYes:()=>ee(t.id,"yes"),onNo:()=>ee(t.id,"no"),disabled:s})]})]},t.id)})}):ye.map(e=>{const t=ge[e],o=j.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:F.border,backgroundColor:B,boxShadow:z},children:[(0,c.jsxs)("button",{type:"button",onClick:()=>{return t=e,W(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:A,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:F.textAltMuted??F.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)(No,{matchup:e,renderTeamLogo:f,altText:M,mutedColor:F.textAltMuted??F.textMuted??M,size:"md"}),l&&(0,c.jsx)("p",{className:"text-xs mt-0.5 text-left",style:{color:F.textAltMuted??F.textMuted,opacity:.7},children:dt(l)})]})]}),(0,c.jsx)("div",{className:"flex items-center gap-2 flex-shrink-0 ml-2",children:r>0&&(0,c.jsxs)("span",{className:"text-xs px-2 py-0.5 rounded-full font-medium",style:{color:r>0?F.successText:F.textMuted,backgroundColor:r>0?F.successBg:F.backgroundAlt},children:[r,"/",t.length]})})]}),o&&(0,c.jsx)("div",{className:"divide-y",style:{borderColor:F.border},children:(0,c.jsx)(c.Fragment,{children:t.map(t=>{const o="yes"===n[t.id],r="no"===n[t.id],l=t.id in n,s=X&&!l;return(0,c.jsx)("div",{className:"px-4 py-3 sm:py-3.5 transition-colors",style:{backgroundColor:C,opacity:s?.45:1},children:(0,c.jsxs)("div",{className:"flex flex-wrap justify-between items-start gap-x-2 gap-y-2 sm:gap-4",children:[(0,c.jsxs)("div",{className:"flex-1 min-w-0 flex items-start gap-2",style:{minWidth:"8rem"},children:[vo(t,f,e),(0,c.jsx)(Bo,{prop:t,colors:F,size:"md",componentById:v})]}),(0,c.jsx)(Ee,{theme:N,size:"sm",value:o?"yes":r?"no":null,onYes:()=>ee(t.id,"yes"),onNo:()=>ee(t.id,"no"),disabled:s})]})},t.id)})})})]},e)})}),0===t.length&&(0,c.jsx)("div",{className:"text-center p-8",style:{color:F.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:F.border,backgroundColor:B},children:[(0,c.jsx)(De,{theme:N,variant:"secondary",onPress:l,children:"Back"}),(0,c.jsx)("div",{className:"flex items-center gap-2 sm:gap-3",children:(0,c.jsx)(De,{theme:N,variant:"primary",disabled:!Q,onPress:r,children:"Wager"})})]})]})}function Ao({game:e,propositions:t,selections:n,onToggleSelection:o,onRemoveSelection:r,onSubmit:l,onBack:a,loading:i,error:d,expectedCorrect:u,onExpectedCorrectChange:m,betAmount:p,onBetAmountChange:f,theme:h,colorScheme:x,hideActions:g=!1,winningCounts:y,payouts:b,renderTeamLogo:w,showCustomAmount:k=!1,betAmountLocked:v=!1,betAmountLockedNote:N,canSubmit:F,authenticated:B=!0,userBalance:C,onRecharge:A,boostBanner:M}){const P=le(h,x),D=P.colors,O=Y(P),T=he(P),E=xe(P),j=S(P),G=z(P),W=L(P),I=D.textAlt??D.text,U=t.length,K=e.min_bet??0,Z=Math.max(K,.01),q=e.max_bet??null,$=[5,10,20,50,100,200,500].filter(e=>e>=Z&&(null===q||e<=q)).slice(0,4),V={};for(let s=0;s<=U;s++)V[s]=p*s;const X=b??V,Q=X[u]??0,J=kt(e),_=J.enabled&&u===U,[ee,te]=(0,s.useState)(null),[ne,oe]=(0,s.useState)(!0),re=i||p<Z||!1===F,se=null!=C&&p>C,ae=g&&!!l&&B,ie=n?t.filter(e=>e.id in n):t,ce=Yt(ie),de=D.matchupHeader??H(P),ue=R(P),pe=Object.entries(X).map(([e,t])=>({correct:Number(e),payout:t})).filter(e=>e.correct>0&&e.payout>0).sort((e,t)=>e.correct-t.correct),fe=1===pe.length?pe[0].correct:null;return s.default.useEffect(()=>{null!==fe&&u!==fe&&m(fe)},[fe]),(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:O,borderColor:D.border,boxShadow:me(P)},children:[(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,c.jsxs)("button",{type:"button",onClick:()=>oe(e=>!e),"aria-expanded":ne,"aria-controls":"entry-submission-selections","aria-label":ne?"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:D.textMuted,flexShrink:0,transform:ne?"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:j,fontFamily:E},children:ne?"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:D.primary,backgroundColor:`${D.primary}15`},children:[ie.length," pick",1!==ie.length?"s":""]})]}),!ne&&(0,c.jsx)("p",{className:"text-xs mt-2",style:{color:D.textMuted},children:"Tap to show your picks"}),ne&&(0,c.jsx)("div",{id:"entry-submission-selections",className:"space-y-2 mt-3",children:ce.map(e=>(0,c.jsxs)("div",{className:"rounded-lg overflow-hidden border",style:{borderColor:D.border},children:[e.key&&(0,c.jsxs)("div",{className:"px-3 py-2 min-w-0",style:{backgroundColor:de},children:[(0,c.jsx)(No,{matchup:e.key,renderTeamLogo:w,altText:I,mutedColor:D.textAltMuted??D.textMuted??I}),e.props[0].commence_time&&(0,c.jsx)("span",{className:"text-[11px] block mt-0.5",style:{color:D.textAltMuted??D.textMuted,opacity:.7},children:dt(e.props[0].commence_time)})]}),e.props.map((t,l)=>{const s=n?.[t.id],a="yes"===s,i="no"===s,d=!!o;return(0,c.jsxs)("div",{className:"flex items-center justify-between gap-2 px-3 py-2 cursor-default",style:{backgroundColor:ue,borderTop:e.key||l>0?`1px solid ${D.border}`:void 0},children:[(0,c.jsxs)("div",{className:"min-w-0 flex-1 flex items-start gap-2",children:[vo(t,w,e.key),(0,c.jsx)("p",{className:"text-xs sm:text-sm break-words leading-snug",style:{color:I},children:t.description})]}),(0,c.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-1.5",children:[d?(0,c.jsx)(Ee,{theme:P,size:"xs",value:a?"yes":i?"no":null,onYes:()=>o(t.id,"yes"),onNo:()=>o(t.id,"no")}):s?(0,c.jsx)(je,{theme:P,value:"yes"===s?"yes":"no",size:"sm",style:{flexShrink:0}}):null,ne&&r&&(0,c.jsx)("button",{type:"button","aria-label":"Remove selection",onClick:()=>{s&&o?.(t.id,s),r(t.id)},onMouseEnter:()=>te(t.id),onMouseLeave:()=>te(null),className:"flex-shrink-0 flex items-center justify-center rounded-full transition-colors",style:{width:44,height:44,color:ee===t.id?"#fff":D.textMuted,backgroundColor:ee===t.id?D.error:"transparent",cursor:"pointer"},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}`))}),M&&(0,c.jsx)("div",{className:"mt-2",children:M})]}),ae&&(0,c.jsxs)("p",{className:"text-xs sm:text-sm font-medium flex items-center gap-1.5 -mt-1","data-testid":"entry-submission-scroll-hint",style:{color:D.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:O,borderColor:D.border,boxShadow:me(P)},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:j,fontFamily:E},children:"How much are you betting?"}),null!=C&&(0,c.jsxs)("span",{className:"text-xs font-semibold",style:{color:D.textMuted},children:["Balance: ",(0,c.jsx)("span",{style:{color:se?D.error:D.success},children:ct(C)})]})]}),se&&(0,c.jsxs)("div",{className:"mb-3 px-3 py-2 rounded-lg flex items-center justify-between gap-3",style:{backgroundColor:D.errorBg??`${D.error}15`,color:D.errorText??D.error},children:[(0,c.jsxs)("span",{className:"text-xs font-medium",children:["Insufficient balance. Your bet of ",ct(p)," exceeds your available ",ct(C),"."]}),A&&(0,c.jsx)("button",{type:"button",onClick:A,className:"text-xs font-semibold px-3 py-1 rounded-md whitespace-nowrap",style:{backgroundColor:D.error,color:D.buttonPrimaryText??"#fff",cursor:"pointer"},children:"Add funds"})]}),v?(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-lg px-3 py-2.5",style:{backgroundColor:D.backgroundAlt,border:`1px solid ${D.border}`},children:[(0,c.jsx)("span",{className:"text-xs",style:{color:D.textMuted},children:N??"Stake is set for this ticket."}),(0,c.jsx)("span",{className:"text-lg font-bold tabular-nums",style:{color:j,fontFamily:E},children:ct(p)})]}):(0,c.jsxs)("div",{className:"space-y-4",children:[k&&(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{className:"text-xs sm:text-sm font-semibold mb-2",style:{color:G},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:D.textMuted},children:"$"}),(0,c.jsx)("input",{type:"number",inputMode:"decimal",min:Z,max:q??void 0,step:"any",placeholder:"Enter amount","aria-label":"Entry amount",value:p||"",onChange:e=>{if(""===e.target.value)return void f(0);const t=Number(e.target.value);if(!Number.isFinite(t))return;const n=Math.max(0,Math.round(100*t)/100);f(null!==q?Math.min(n,q):n)},onFocus:e=>{e.currentTarget.style.borderColor=D.borderFocus??D.primary},onBlur:e=>{e.currentTarget.style.borderColor=D.border},className:"w-full pl-8 pr-4 py-3 border rounded-lg focus:outline-none text-lg font-semibold tabular-nums",style:{borderColor:D.border,color:I,backgroundColor:D.backgroundAlt,fontFamily:T,transition:"border-color .15s ease"}})]}),(0,c.jsxs)("p",{className:"text-xs mt-1.5",style:{color:D.textMuted},children:["Minimum bet: ",ct(Z),null!==q&&(0,c.jsxs)(c.Fragment,{children:[" · Maximum: ",ct(q)]})]}),p>0&&p<Z&&(0,c.jsxs)("p",{className:"text-xs mt-1",style:{color:D.error},children:["Bet amount must be at least ",ct(Z)]})]}),(0,c.jsxs)("div",{children:[(k||p>0)&&(0,c.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[k?(0,c.jsx)("p",{className:"text-xs sm:text-sm font-semibold",style:{color:G},children:"Add to bet"}):(0,c.jsx)("span",{}),p>0&&(0,c.jsx)("button",{type:"button",onClick:()=>f(0),className:"text-xs font-semibold px-2.5 py-1 rounded-md transition-colors",style:{color:D.textMuted,backgroundColor:D.backgroundAlt,border:`1.5px solid ${D.border}`,cursor:"pointer"},children:"Clear bet"})]}),(0,c.jsx)("div",{style:{display:"grid",gridTemplateColumns:`repeat(${Math.max($.length,1)}, minmax(0, 1fr))`,gap:8},children:$.map(e=>{const t=null!==q&&p>=q;return(0,c.jsxs)("button",{type:"button",onClick:()=>{const t=p+e;f(null!==q?Math.min(t,q):t)},disabled:t,className:"px-3 py-2.5 rounded-lg text-sm font-semibold transition-colors min-w-0",style:{color:I,backgroundColor:"transparent",border:`1px solid ${D.border}`,cursor:t?"not-allowed":"pointer",opacity:t?.5:1},children:["+",ct(e)]},e)})})]})]})]}),(0,c.jsx)("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:O,borderColor:D.border,boxShadow:me(P)},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:G},children:"Bet"}),(0,c.jsx)("span",{className:"font-semibold",style:{color:W},children:ct(p)})]}),Q>0&&(0,c.jsxs)("div",{className:"flex justify-between items-center pt-2 border-t",style:{borderColor:D.border},children:[(0,c.jsx)("span",{className:"font-semibold text-sm",style:{color:G},children:"Potential Payout"}),(0,c.jsxs)("span",{className:"font-bold text-lg",style:{color:j},children:[ct(Q),_&&(0,c.jsx)("span",{className:"text-xs ml-1",style:{color:D.warning},children:"+ Jackpot"})]})]}),J.enabled&&(0,c.jsxs)("div",{className:"flex justify-between items-center mt-2 rounded px-2 py-1.5",style:{backgroundColor:`${D.warning}08`,border:`1px solid ${D.warning}25`},children:[(0,c.jsxs)("span",{className:"text-xs font-semibold",style:{color:D.warning},children:["★ ",J.progressive?"Progressive Jackpot":"Jackpot"]}),(0,c.jsx)("span",{className:"text-sm font-bold",style:{color:D.warning},children:J.progressive?J.amount>0?ct(J.amount):J.limit>0?`Up to ${ct(J.limit)}`:"Progressive":ct(J.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:D.border}}),(0,c.jsx)("button",{type:"button",onClick:l,disabled:re,"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:D.buttonPrimaryText,backgroundColor:D.buttonPrimary,cursor:re?"not-allowed":"pointer",minWidth:120},children:i?(0,c.jsxs)("span",{className:"flex flex-col items-center gap-2",children:[(0,c.jsx)(Vt,{color:D.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:ct(p)})]})})]}):t})()})]}):(0,c.jsxs)("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:O,borderColor:D.border,boxShadow:me(P)},children:[(0,c.jsx)("h3",{className:"text-base sm:text-lg font-semibold",style:{color:j,fontFamily:E},children:"Log in to place this entry"}),(0,c.jsx)("p",{className:"text-xs sm:text-sm mt-1 mb-4",style:{color:D.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:D.buttonPrimaryText,backgroundColor:D.buttonPrimary,cursor:"pointer"},children:"Log in"})]}),d&&(0,c.jsx)("div",{className:"rounded-lg p-3",style:{backgroundColor:D.errorBg,border:`1px solid ${D.error}`},children:(0,c.jsx)("p",{className:"text-sm",style:{color:D.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:D.border,backgroundColor:D.background},children:[(0,c.jsx)(De,{theme:P,variant:"secondary",disabled:i,onPress:a,children:"Back"}),(0,c.jsx)("button",{type:"button",onClick:l,disabled:re,"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:D.buttonPrimaryText,backgroundColor:D.buttonPrimary,cursor:re?"not-allowed":"pointer"},children:i?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Vt,{color:D.buttonPrimaryText}),(0,c.jsx)("span",{children:"Placing Entry…"})]}):(0,c.jsx)("span",{children:`Place Entry (${ct(p)})`})})]})]})}function Mo({iconUrl:e,gameName:t,chipColor:n,textColor:o,iconColor:r,accentColor:l,brandColor:s,height:a=56,showTrademark:i=!0,className:d,compact:u=!1,onPress:m}){const p=n??s??"#0F4C5C",f=.85*a,h=1.8*f,x=f/2,g=.05*f,y=.18*f,b={display:"inline-flex",alignItems:"center",flexWrap:"wrap",gap:.2*a,color:o??p,fontFamily:"Manrope, Poppins, sans-serif",fontSize:a,lineHeight:1.15,maxWidth:"100%",minWidth:0},w=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{"aria-label":"YESNO",style:{letterSpacing:-1,whiteSpace:"nowrap"},children:[(0,c.jsx)("span",{style:{fontWeight:900},children:"YES"}),(0,c.jsx)("span",{style:{fontWeight:300},children:"NO"})]}),(0,c.jsx)("span",{role:"img","aria-label":t,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:h,height:f,borderRadius:x,backgroundColor:p,flexShrink:0,transform:`translateY(${.06*-a}px)`},children:(0,c.jsx)(Ut,{iconUrl:e,width:h-2*y,height:f-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 So({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,demoEntries:l,demoGames:a,demoPropositions:i,onSelectEntry:d,theme:u,colorScheme:m,className:p="",renderTeamLogo:f,filterSport:h}){const x=le(u,m),g=!!(l&&a&&i),y=x.colors,b=he(x),w=xe(x),[k,v]=(0,s.useState)("pending"),[N,F]=(0,s.useState)([]),B=(0,s.useMemo)(()=>new ro({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:C,loading:A,error:M,refetch:S}=io(B,{user_id:r},{skip:g}),{games:z,loading:L,error:P}=lo(B,void 0,{skip:g}),{propositions:D,loading:O,error:T}=so(B,void 0,{skip:g}),E=g?l:C,j=g?a:z,Y=g?i:D,H=!g&&(A||L||O),R=g?null:M||P||T,W=(0,s.useMemo)(()=>E.map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t}),[E]),I=(0,s.useMemo)(()=>{const e=new Map;for(const t of j)e.set(t.id,t);return e},[j]),U=(0,s.useMemo)(()=>{const e=new Map;for(const t of Y)e.set(t.id,t);for(const t of W)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,W,N]),K=(0,s.useRef)(new Set);(0,s.useEffect)(()=>{if(H||g)return;const e=[];for(const n of W)for(const t of n.proposition_ids??[])U.has(t)||K.current.has(t)||(e.push(t),K.current.add(t));if(0===e.length)return;let t=!1;return(async()=>{try{const n=await B.getPropositionsByIds(e);!t&&n.length>0&&F(e=>[...e,...n])}catch{}})(),()=>{t=!0}},[W,U,H,g,B]);const Z=(0,s.useMemo)(()=>h?W.filter(e=>{const t=e.proposition_ids??[];return 0===t.length||t.some(t=>(U.get(t)??e.propositions?.find(e=>e.id===t))?.sport===h)}):W,[W,h,U]),q=(0,s.useMemo)(()=>Z.filter(e=>it(e.pending)),[Z]),$=(0,s.useMemo)(()=>Z.filter(e=>!it(e.pending)),[Z]),V="pending"===k?q:$,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)(an,{colors:G(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?q.length:$.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===V.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:V.map(e=>(0,c.jsx)(zo,{entry:e,game:I.get(e.game_id),propositionsById:U,onSelect:d,theme:x,renderTeamLogo:f},e.id))})]})}function zo({entry:e,game:t,propositionsById:n,onSelect:o,theme:r,renderTeamLogo:l}){const a=r.colors,i=Y(r),d=xe(r),u=e.proposition_ids??[],m=(0,s.useMemo)(()=>u.map(e=>n.get(e)).filter(Boolean),[u,n]),p=u.length,f=(0,s.useMemo)(()=>{const t=new Map;for(const n of e.propositions??[])t.set(n.id,n);return t},[e.propositions]),h=t=>{const o=e.selections?.[t];return null!=o?o:f.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=h(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=it(e.pending),w=!b&&at(e.winning)>0,k=e.payout_status,v="fulfilled"===k&&w,N=b?"Pending":v?"Won — pay due":"paid_out"===k&&w?"Paid":w?"Won":"Lost",F=b||v?a.warningBg:w?a.successBg:a.errorBg,B=b||v?a.warningText:w?a.successText:a.errorText,[C,A]=(0,s.useState)(!1),M=p>0;return(0,c.jsxs)("div",{className:"rounded-xl border overflow-hidden transition-colors",style:{borderColor:a.border,backgroundColor:i,boxShadow:me(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?C: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)(Mo,{iconUrl:Ne(t),gameName:n,height:18,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:r.brand?.accent}):(0,c.jsx)("h3",{className:"text-base font-semibold truncate",style:{color:a.text,fontFamily:d},children:n})})(),(0,c.jsxs)("div",{className:"flex items-center gap-2 mt-0.5",children:[(e.created_at||e.entry_date)&&(0,c.jsx)("span",{className:"text-xs",style:{color:a.textMuted},children:dt(e.created_at||e.entry_date)}),p>0&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"text-xs",style:{color:a.textMuted},children:"·"}),(0,c.jsx)("span",{className:"text-xs font-medium",style:{color:y&&x>0?g>0?a.success:a.error:a.textMuted},children:y&&x>0?`${g}/${p} correct`:`${p} pick${1!==p?"s":""}`})]})]})]}),(0,c.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[(0,c.jsxs)("div",{className:"text-right",children:[at(e.bet_amount)>0&&(0,c.jsx)("p",{className:"text-xs",style:{color:a.textMuted},children:ct(at(e.bet_amount))}),!b&&at(e.winning)>0&&(0,c.jsxs)("p",{className:"text-sm font-bold",style:{color:a.success},children:[ct(at(e.winning)),(e.payout_jackpot??0)>0&&(0,c.jsxs)("span",{className:"block text-xs font-normal",style:{color:a.textMuted},children:["incl. ",ct(at(e.payout_jackpot))," jackpot"]})]})]}),(0,c.jsx)("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-bold uppercase tracking-wide",style:{backgroundColor:F,color:B},children:N}),M&&(0,c.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,style:{color:a.textMuted,transition:"transform .2s ease",transform:C?"rotate(180deg)":"none"},children:(0,c.jsx)("path",{d:"m6 9 6 6 6-6"})})]})]}),C&&p>0&&(0,c.jsx)("div",{className:"border-t divide-y",style:{borderColor:a.border},children:u.map(t=>{const o=(t=>n.get(t)??e.propositions?.find(e=>e.id===t))(t),s=h(t);if(!o)return(0,c.jsxs)("div",{className:"px-4 py-2.5 flex items-center gap-3",style:{borderColor:a.border},children:[(0,c.jsx)("div",{className:"flex-1 min-w-0",children:(0,c.jsxs)("p",{className:"text-sm",style:{color:a.textMuted},children:["Loading proposition #",t,"…"]})}),null!=s&&(0,c.jsx)(je,{theme:r,value:"yes"===s?"yes":"no",size:"sm"})]},t);const i=o.result,d=null!=i,u=!!o.is_voided,m=d&&!u&&null!=s&&s===i;let p,f,x;u?(p="Void",f=`${a.textMuted}20`,x=a.textMuted):d?m?(p="Won",f=a.successBg,x=a.successText):(p="Lost",f=a.errorBg,x=a.errorText):(p="Pending",f=a.warningBg,x=a.warningText);const g=ht(o)?void 0:o.home_team;return(0,c.jsxs)("div",{className:"px-4 py-2.5 flex items-center gap-3",style:{borderColor:a.border},children:[(0,c.jsxs)("div",{className:"flex-1 min-w-0",children:[(o.home_team||o.away_team)&&(0,c.jsxs)("p",{className:"text-sm font-medium leading-snug flex items-center gap-1.5",style:{color:a.text},children:[l&&g&&l(g),g&&(0,c.jsx)("span",{children:g}),g&&o.away_team&&(0,c.jsx)("span",{className:"text-xs font-normal",style:{color:a.textMuted},children:"vs"}),l&&o.away_team&&l(o.away_team),o.away_team&&(0,c.jsx)("span",{children:o.away_team})]}),(o.proposition||o.description)&&(0,c.jsx)("p",{className:"text-xs mt-0.5",style:{color:a.textMuted},children:o.proposition||o.description}),o.commence_time&&(0,c.jsx)("p",{className:"text-xs mt-0.5",style:{color:a.textMuted},children:dt(o.commence_time)})]}),(0,c.jsxs)("div",{className:"flex flex-col items-center gap-0.5 flex-shrink-0",children:[(0,c.jsx)("span",{className:"text-[9px] uppercase tracking-wide font-semibold",style:{color:a.textMuted},children:"Pick"}),null!=s?(0,c.jsx)(je,{theme:r,value:"yes"===s?"yes":"no",size:"sm"}):(0,c.jsx)("span",{className:"text-xs",style:{color:a.textMuted},children:"—"})]}),(0,c.jsxs)("div",{className:"flex flex-col items-center gap-0.5 flex-shrink-0",children:[(0,c.jsx)("span",{className:"text-[9px] uppercase tracking-wide font-semibold",style:{color:a.textMuted},children:"Result"}),(0,c.jsx)("span",{className:"px-2 py-0.5 rounded text-xs font-bold uppercase whitespace-nowrap",style:{backgroundColor:f,color:x},children:p})]})]},t)})})]})}function Lo({className:e=""}){const{theme:t,eventFilterActive:n,eventFilterLabel:o,clearEventFilter:r,gameCategory:l}=wo();if(!n)return null;const s=t.colors,a=o??("racing"===l?"This race":"This event");return(0,c.jsxs)("div",{className:`mb-4 flex flex-col gap-2 rounded-xl border px-3 py-2.5 sm:flex-row sm:items-center sm:justify-between ${e}`,style:{borderColor:`${s.primary}33`,backgroundColor:`${s.surface}`},children:[(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-[0.12em]",style:{color:s.primary},children:"Event filter"}),(0,c.jsx)("p",{className:"truncate text-sm font-semibold",style:{color:s.text},children:a}),(0,c.jsx)("p",{className:"text-xs",style:{color:s.textMuted},children:"Only propositions from this event are shown."})]}),(0,c.jsx)("button",{type:"button",onClick:r,className:"shrink-0 self-start rounded-lg border px-3 py-1.5 text-xs font-semibold transition-opacity hover:opacity-90 sm:self-center",style:{borderColor:`${s.primary}44`,backgroundColor:s.background,color:s.text,cursor:"pointer"},children:"Show all events"})]})}function Po({onBack:e,title:t="Go back",className:n=""}){const{theme:o}=wo(),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 Do({onBack:e,label:t="Games"}){const{theme:n}=wo(),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 Oo({onBack:e,hideActions:t,label:n,children:o,className:r=""}){const{theme:l}=wo(),s=l.colors;return e||null!=n||o?(0,c.jsxs)("div",{className:`flex items-center gap-1.5 mt-0.5 ${r}`,children:[e&&(null!=n?(0,c.jsxs)("button",{type:"button",onClick:e,title:"Go back",className:"inline-flex min-w-0 items-center gap-1.5 text-left",style:{color:s.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=s.text,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=s.textMuted,e.currentTarget.style.transform="translateX(0)"},children:[(0,c.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:"shrink-0",children:[(0,c.jsx)("path",{d:"M19 12H5"}),(0,c.jsx)("path",{d:"m12 19-7-7 7-7"})]}),(0,c.jsx)("span",{className:"text-xs sm:text-sm break-words min-w-0",children:n})]}):(0,c.jsx)(Po,{onBack:e})),!e&&null!=n&&(0,c.jsx)("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:s.textMuted},children:n}),o]}):null}var To=[1,5,10,20,50,100],Eo=[4,12];function jo(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function Yo(e,t,n){const o=n?.operatorMargin??.2,r=n?.perLegProbability??.5,l=Math.round(Math.pow(1/r,t)),s=(1-o)*Math.pow(1/r,t);return{legs:t,stake:e,prize:Math.round(e*s*100)/100,multiple:s,oddsOneIn:l}}function Ho(e){if(!jo(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);if(0===o.length)return null;const r=Math.max(e.min_bet??1,.01),l=e.max_bet??null,s=To.filter(e=>e>=r&&(null===l||e<=l));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(20,r),l??20),minStake:r,maxStake:l,quickStakes:s,tagline:"Two steps to your multi. Tweak legs and stake — the prize updates as you go.",operatorMargin:e.operator_margin??.2,perLegProbability:e.payout_structure?.per_leg_probability??.5}}var Ro=[25,50,75,100],Go=[{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 Wo(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function Io(e,t){return Math.round(e*t/50*100)/100}function Uo(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:Io(o,t),cumulative:Io(n,t)}))}function Ko(e,t){return Io(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function Zo(e){if(!Wo(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=Go.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??Ro[0],s=e.max_bet??Ro[Ro.length-1],a=Ro.filter(e=>e>=l&&e<=s);return{ladders:r,defaultLegs:r.some(e=>8===e.legs)?8:r[Math.floor(r.length/2)].legs,defaultStake:a.includes(50)?50:a[0]??50,stakes:a.length>0?a:Ro,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}var qo=[1,5,10,20,50],$o=[4,12];function Vo(e){return!!e&&!e.quick_pick_only&&"mirror"===(e.rule??"").trim().toLowerCase()}function Xo(e,t,n){const o=n?.operatorMargin??.21875,r=n?.perLegProbability??.5,l=Math.round(Math.pow(2,t)),s=Math.pow(r,t)+Math.pow(1-r,t),a=Math.round(1/s),i=(1-o)*Math.pow(2,t-1);return{legs:t,stake:e,prize:Math.round(e*i*100)/100,multiple:i,totalOutcomes:l,winningOutcomes:2,oddsOneIn:a}}function Qo(e){if(!Vo(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??$o[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??$o[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n);if(0===o.length)return null;const r=Math.max(e.min_bet??1,.01),l=e.max_bet??null,s=qo.filter(e=>e>=r&&(null===l||e<=l));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(20,r),l??20),minStake:r,maxStake:l,quickStakes:s,tagline:"Call every leg. Get them all right, you win — all wrong, you win the same.",operatorMargin:e.operator_margin??.21875,perLegProbability:e.payout_structure?.per_leg_probability??.5}}function Jo(e){return e?.quick_pick_only?"quick_pick":jo(e)?"game_set":qn(e)?"pick_your_dividend":Wo(e)?"ladder":Vo(e)?"mirror":Sn(e)?"safety_net":mn(e)?"selections":Un(e)?"rule_setup":"selections"}function _o(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(mn(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 er(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||mn(e)||_o(e))}function tr(e){switch(Jo(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":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 nr({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,bodyFont:l,howToPlayMarkdown:s,selectedCategory:a,displayCategoryName:i}=wo(),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:S(o),fontFamily:r},children:"Choose your game"}),s?.trim()&&(0,c.jsx)(Ge,{content:s,title:"How to Play",colors:{text:d.text,textMuted:d.textMuted,border:d.border,background:d.background,backgroundAlt:d.backgroundAlt,primary:d.primary,primaryText:d.primaryText},bodyFont:l,headingFont:r,className:"shrink-0 mt-0.5"})]}),(0,c.jsx)(Oo,{onBack:t,hideActions:n,label:a?i(a):void 0})]})}function or(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 rr(e,t,n){const[o,r]=(0,s.useState)([]),[l,a]=(0,s.useState)([]),[i,c]=(0,s.useState)([]),[d,u]=(0,s.useState)([]),[m,p]=(0,s.useState)(null),f=(0,s.useMemo)(()=>{const t=new Map;for(const n of e)t.set(n.id,n);return t},[e]),h=(0,s.useMemo)(()=>e.filter(e=>null!=t[e.id]),[e,t]),x=(0,s.useMemo)(()=>e.map(e=>e.id).join(","),[e]),g=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(g.current===x)return;g.current=x;const n=e.filter(e=>!(e.id in t)),o=e.filter(e=>null!=t[e.id]);r(n.map(e=>e.id)),a(or(n,o).slice(0,3).map(e=>e.id)),c([]),u([]),p(null)},[x,e,t]);const y=(0,s.useMemo)(()=>{const e=new Set(i);return[...or(o.map(e=>f.get(e)).filter(e=>Boolean(e)).filter(t=>!e.has(t.id)),h).map(e=>e.id),...i.filter(e=>o.includes(e))]},[o,f,h,i]);(0,s.useEffect)(()=>{a(e=>{const t=new Set(o),n=e.filter(e=>t.has(e));if(0===d.length&&!m){const t=y.slice(0,3);return t.length===n.length&&t.every((e,t)=>e===n[t])?n.length===e.length?e:n:t}if(n.length>=Math.min(3,o.length))return n.length===e.length?e:n;const r=[...n];for(const o of y){if(r.length>=3)break;r.includes(o)||r.push(o)}return r})},[o,y,d,m]);const b=(0,s.useMemo)(()=>l.map(e=>f.get(e)).filter(e=>Boolean(e)),[l,f]),w=(0,s.useCallback)((e,t)=>{p(null),t&&n(e,t),u(n=>[...n,{id:e,answer:t}]),a(t=>t.filter(t=>t!==e)),c(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]}),r(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]})},[n]),k=(0,s.useCallback)(()=>{const e=d[d.length-1];e&&(e.answer&&n(e.id,e.answer),p({id:e.id,from:"yes"===e.answer?"right":"no"===e.answer?"left":"up"}),u(e=>e.slice(0,-1)),c(t=>t.filter(t=>t!==e.id)),r(t=>[e.id,...t.filter(t=>t!==e.id)]),a(t=>[e.id,...t.filter(t=>t!==e.id)].slice(0,3)))},[d,n]);return{visible:b,canSkip:o.length>1,canUndo:d.length>0,restored:m,resolve:w,undo:k}}var lr={stiffness:420,damping:34},sr={stiffness:280,damping:28},ar="#00C853",ir="#E53935";function cr(e){return"up"===e?{x:0,y:-720}:{x:"right"===e?640:-640,y:70}}function dr(e){return e<0?0:e>1?1:e}function ur(e,t,n){return n&&-t>Math.abs(e)}function mr({prop:e,theme:t,depth:n=0,enterFrom:o,canSkip:r=!1,onResolve:l,registerApi:a,onDragStateChange:i,children:d}){const u=(0,s.useContext)(yo),m=t??u?.theme??U,p=xe(m),f=m.colors.productYes??ar,h=m.colors.productNo??ir,x=(0,s.useRef)(null),g=(0,s.useRef)(null),y=(0,s.useRef)(null),b=(0,s.useRef)(null),w=0===n,k=(0,s.useRef)(!1),v=(0,s.useRef)({x:0,y:0}),N=(0,s.useRef)({x:0,y:0}),F=(0,s.useRef)(null),B=(0,s.useRef)(0),C=(0,s.useRef)(null),A=(0,s.useRef)(null),M=(0,s.useRef)(r);M.current=r;const S=(0,s.useRef)(i);S.current=i;const z=(0,s.useCallback)(()=>{const e=x.current;if(!e)return;const{x:t,y:n}=v.current,o=Math.max(-16,Math.min(16,t/260*16));e.style.transform=`translate3d(${t}px, ${n}px, 0) rotate(${o}deg)`;const r=(e,t)=>{e&&(e.style.opacity=String(t))},l=ur(t,n,M.current);r(g.current,l?0:dr((t-24)/108)),r(y.current,l?0:dr((-t-24)/108)),r(b.current,l?dr((-n-30)/90):0)},[]),L=(0,s.useCallback)(()=>{for(const e of[x.current,g.current,y.current,b.current])e&&(e.style.transition="none")},[]),P=(0,s.useCallback)(()=>{null!=C.current&&(cancelAnimationFrame(C.current),C.current=null)},[]),D=(0,s.useCallback)(e=>{P(),L();let t=null;const n=o=>{const r=Math.min(null==t?1/60:(o-t)/1e3,1/30);t=o;const l=v.current,s=N.current;if(s.x+=(-e.stiffness*l.x-e.damping*s.x)*r,s.y+=(-e.stiffness*l.y-e.damping*s.y)*r,l.x+=s.x*r,l.y+=s.y*r,Math.abs(l.x)<.5&&Math.abs(l.y)<.5&&Math.abs(s.x)<2&&Math.abs(s.y)<2)return l.x=0,l.y=0,s.x=0,s.y=0,z(),void(C.current=null);z(),C.current=requestAnimationFrame(n)};C.current=requestAnimationFrame(n)},[L,z,P]),O=(0,s.useCallback)(t=>{if(k.current)return;if("up"===t&&!M.current)return;k.current=!0,P();const n="right"===t?"yes":"left"===t?"no":null,o=cr(t),r=x.current;r&&(r.style.transition="transform 260ms cubic-bezier(0.32, 0, 0.67, 0)");for(const e of[g.current,y.current,b.current])e&&(e.style.transition="opacity 260ms linear");v.current={...o},z(),A.current=setTimeout(()=>l(e.id,n),260)},[l,z,e.id,P]);(0,s.useEffect)(()=>()=>{A.current&&clearTimeout(A.current),null!=C.current&&cancelAnimationFrame(C.current),F.current&&S.current?.(!1)},[]),(0,s.useEffect)(()=>{if(!o)return P(),v.current={x:0,y:0},N.current={x:0,y:0},L(),void z();const e=cr(o);v.current={x:e.x,y:e.y},N.current={x:0,y:0},L(),z(),D(sr)},[o,L,z,D,P]),(0,s.useEffect)(()=>{if(w&&a)return a({fly:O}),()=>a(null)},[O,w,a]);const T="pointer-events-none absolute top-5 rounded-xl border-4 px-3 py-1 text-2xl font-extrabold uppercase tracking-widest";return(0,c.jsx)("div",{className:"absolute inset-0 flex items-stretch",style:{zIndex:3-n,transform:`translateY(${12*n}px) scale(${1-.04*n})`,transition:"transform 240ms cubic-bezier(0.22, 1, 0.36, 1)",pointerEvents:w?"auto":"none"},"aria-hidden":!w,children:(0,c.jsxs)("div",{ref:x,className:"relative w-full"+(w?" cursor-grab active:cursor-grabbing":""),style:{touchAction:"pan-y",willChange:"transform",userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none"},onPointerDown:e=>{if(w&&!k.current&&!F.current){P(),L(),F.current={pointerId:e.pointerId,originX:e.clientX,originY:e.clientY,baseX:v.current.x,baseY:v.current.y},N.current={x:0,y:0},B.current=e.timeStamp;try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}S.current?.(!0)}},onPointerMove:e=>{const t=F.current;if(!t||t.pointerId!==e.pointerId||k.current)return;const n=t.baseX+(e.clientX-t.originX),o=t.baseY+(e.clientY-t.originY),r=e.timeStamp-B.current;if(r>0){const t=1-Math.exp(-r/40);N.current.x+=((n-v.current.x)/r*1e3-N.current.x)*t,N.current.y+=((o-v.current.y)/r*1e3-N.current.y)*t,B.current=e.timeStamp}v.current.x=n,v.current.y=o,z()},onPointerUp:e=>{const t=F.current;if(!t||t.pointerId!==e.pointerId)return;F.current=null,S.current?.(!1);try{e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}catch{}if(k.current)return;e.timeStamp-B.current>90&&(N.current={x:0,y:0});const n=v.current,o=N.current;if(ur(n.x,n.y,M.current)){if(n.y<-110||o.y<-620)return O("up")}else{if(n.x>110||o.x>620)return O("right");if(n.x<-110||o.x<-620)return O("left")}D(lr)},onPointerCancel:e=>{const t=F.current;t&&t.pointerId===e.pointerId&&(F.current=null,N.current={x:0,y:0},S.current?.(!1),k.current||D(lr))},onDragStart:e=>e.preventDefault(),children:[d,w&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{ref:g,className:`${T} left-5`,style:{opacity:0,transform:"rotate(-12deg)",color:f,borderColor:f,fontFamily:p},children:"Yes"}),(0,c.jsx)("div",{ref:y,className:`${T} right-5`,style:{opacity:0,transform:"rotate(12deg)",color:h,borderColor:h,fontFamily:p},children:"No"}),r&&(0,c.jsx)("div",{ref:b,className:"pointer-events-none absolute inset-x-0 bottom-6 flex justify-center",style:{opacity:0},children:(0,c.jsx)("span",{className:"rounded-full px-3 py-1 text-xs font-semibold uppercase tracking-widest",style:{color:m.colors.primary,border:`1px solid ${m.colors.border}`,background:m.colors.background},children:"Skip"})})]})]})})}function pr({prop:e}){const{theme:t,renderTeamLogo:n,displaySportName:o,gameCategory:r}=wo(),l=t.colors,s=xe(t),a=tt(e),i=Ve(e),d=("racing"===r?[e.away_team?.trim()||e.home_team?.trim()]:[e.home_team?.trim(),e.away_team?.trim()]).filter(Boolean);return(0,c.jsxs)("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-3xl border",style:{backgroundColor:Y(t),borderColor:l.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:H(t)},children:d.length>0?d.map((e,o)=>(0,c.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-sm font-semibold",style:{color:E(t)},children:[o>0&&(0,c.jsx)("span",{className:"mr-1 text-xs font-normal",style:{color:j(t)},children:"vs"}),n?.(e),e]},`${e}-${o}`)):(0,c.jsx)("span",{className:"text-sm font-semibold",style:{color:E(t)},children:e.league??o(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:[vo(e,n,d.join(" vs ")),a?(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:z(t)},children:["All ","OR"===a.operator?"or any of these":"of these"]}),(0,c.jsx)("ul",{className:"flex flex-col gap-2",children:a.legs.map((e,n)=>(0,c.jsxs)("li",{className:"flex gap-2 text-base font-bold leading-snug",style:{color:L(t),fontFamily:s},children:[(0,c.jsx)("span",{"aria-hidden":!0,style:{color:l.primary},children:"OR"===a.operator?"/":"+"}),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:L(t),fontFamily:s},children:e.description??e.proposition})]}),e.outcome_description&&e.outcome_description!==e.description&&(0,c.jsx)("p",{className:"text-sm leading-snug",style:{color:l.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:l.borderSubtle??l.border,color:l.textMuted},children:[e.sport&&(0,c.jsx)("span",{className:"rounded-full px-2 py-0.5 font-semibold uppercase tracking-wide",style:{backgroundColor:l.infoBg,color:l.infoText},children:o(e.sport)}),i&&(0,c.jsx)("span",{className:"uppercase tracking-wide",children:i.replace(/[_-]+/g," ")}),e.commence_time&&(0,c.jsx)("span",{className:"ml-auto",children:dt(e.commence_time)})]})]})}function fr({onBack:e,onNext:t,viewSwitch:n,onDragStateChange:o,className:r=""}){const{theme:l,propositions:a,selections:i,toggleSelection:d,selectedGame:u,selectedPropositionCount:m,answeredCount:p,selectionValid:f,goToConfirmation:h,goToSportSelection:x,loading:g,error:y,selectedRule:b}=wo(),w=l.colors,k=he(l),v=xe(l),N=w.productYes??ar,F=w.productNo??ir,B=(0,s.useRef)(null);(0,s.useEffect)(()=>{u||(x(),e?.())},[x,e,u]);const{visible:C,canSkip:A,canUndo:M,restored:z,resolve:L,undo:P}=rr(a,i,d),D=u?wt(u,m??void 0,b):{min:0,max:0},O=D.max,T=O>0&&p>=O,E=(()=>{if(!u)return null;if(D.min>0&&D.min===D.max)return D.min;const e=Jo(u);return null!=m&&m>0&&("game_set"===e||"pick_your_dividend"===e||_o(u))?m:O>0?O:null})(),j=(0,s.useRef)(p);(0,s.useEffect)(()=>{const e=j.current;if(j.current=p,null==E||e>=E||p!==E)return;const n=setTimeout(()=>{h(),t?.()},420);return()=>clearTimeout(n)},[p,h,t,E]);const H=!T&&C.length>0;(0,s.useEffect)(()=>{if(!H)return;const e=e=>{const t=e.target;if(!t||!/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName)){switch(e.key){case"ArrowRight":B.current?.fly("right");break;case"ArrowLeft":B.current?.fly("left");break;case"ArrowUp":B.current?.fly("up");break;case"ArrowDown":case"Backspace":P();break;default:return}e.preventDefault()}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[H,P]);const R=(0,s.useCallback)(e=>{B.current=e},[]);if(!u)return null;const G=(e,t,n,o)=>(0,c.jsx)("button",{type:"button",onClick:n,disabled:o,"aria-label":e,className:"flex h-11 w-11 items-center justify-center rounded-full border text-lg transition-transform active:scale-95 disabled:opacity-35",style:{borderColor:w.border,color:w.textMuted,background:w.background},children:(0,c.jsx)("span",{"aria-hidden":!0,children:t})});return(0,c.jsxs)("div",{className:`flex w-full flex-col ${r}`,style:{fontFamily:k},children:[n&&(0,c.jsx)("div",{className:"flex shrink-0 justify-end pb-3",children:n}),g?(0,c.jsx)("p",{className:"py-10 text-center text-sm",style:{color:w.textMuted},children:"Loading…"}):y?(0,c.jsx)("div",{className:"rounded-xl p-4 text-center",style:{background:w.errorBg,border:`1px solid ${w.error}`},children:(0,c.jsx)("p",{className:"text-sm",style:{color:w.errorText??w.error},children:y})}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"flex min-h-0 flex-1 flex-col justify-center pb-3 pt-2 sm:pb-8 sm:pt-3",children:H?(0,c.jsx)("div",{className:"relative mx-auto w-full",style:{height:"clamp(14rem, 44dvh, 26rem)",maxWidth:384},children:C.map((e,t)=>(0,c.jsx)(mr,{prop:e,depth:t,canSkip:A,enterFrom:z?.id===e.id?z.from:null,onResolve:L,registerApi:0===t?R:void 0,onDragStateChange:0===t?o:void 0,children:(0,c.jsx)(pr,{prop:e})},e.id))}):(0,c.jsxs)("div",{className:"mx-auto flex w-full max-w-sm flex-col items-center gap-3 rounded-3xl px-6 py-10 text-center",style:{background:Y(l),border:`1px dashed ${w.border}`},children:[(0,c.jsx)("p",{className:"text-base font-extrabold",style:{color:S(l),fontFamily:v},children:T?"Card full":"That’s the last one"}),(0,c.jsx)("p",{className:"text-sm",style:{color:w.textMuted},children:T?`You've picked all ${O} legs for ${u.game_name}. Undo a swipe to change one, or lock it in.`:f?"You've been through every proposition. Lock your card in, or undo to revisit a pick.":`No propositions left to answer${D.min>0?` — this game needs at least ${D.min}`:""}. Undo a swipe or head back to widen the pool.`}),M&&(0,c.jsx)("button",{type:"button",onClick:P,className:"rounded-full border px-5 py-2 text-sm font-semibold",style:{borderColor:w.border,color:w.text},children:"Undo last swipe"})]})}),(0,c.jsxs)("div",{className:"shrink-0",children:[(0,c.jsxs)("div",{className:"mx-auto flex max-w-sm items-center justify-center gap-3",children:[G("Undo last swipe","↺",P,!M),(0,c.jsx)("button",{type:"button",onClick:()=>B.current?.fly("left"),disabled:!H,className:"flex h-14 flex-1 items-center justify-center rounded-full text-lg font-extrabold uppercase tracking-wider text-white transition-transform active:scale-95 disabled:opacity-35",style:{backgroundColor:F,fontFamily:v},children:"No"}),(0,c.jsx)("button",{type:"button",onClick:()=>B.current?.fly("right"),disabled:!H,className:"flex h-14 flex-1 items-center justify-center rounded-full text-lg font-extrabold uppercase tracking-wider text-white transition-transform active:scale-95 disabled:opacity-35",style:{backgroundColor:N,fontFamily:v},children:"Yes"}),G("Skip this proposition","↑",()=>B.current?.fly("up"),!H||!A)]}),(0,c.jsx)("p",{className:"mt-2 text-center text-[11px]",style:{color:w.textMuted},children:A?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})]})]})}function hr({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",className:r,title:l,sportBaseKey:s}){const a=lt(e,s,t),i=function(e){return e.length<=3?92:4===e.length?72:56}(a),d=l??`${a} button`;return(0,c.jsxs)("svg",{viewBox:"0 0 360 360",width:n,height:n,xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",className:r,role:"img","aria-label":d,children:[(0,c.jsx)("title",{children:d}),(0,c.jsx)("rect",{x:"2",y:"2",width:"356",height:"356",rx:"78",fill:"#DDD9D2",stroke:nt,strokeWidth:"4"}),(0,c.jsx)("rect",{x:"50",y:"10",width:"260",height:"260",rx:"52",fill:nt,opacity:"0.30"}),(0,c.jsx)("rect",{x:"50",y:"35",width:"260",height:"260",rx:"52",fill:nt,opacity:"0.55"}),(0,c.jsx)("rect",{x:"50",y:"60",width:"260",height:"260",rx:"52",fill:nt}),(0,c.jsx)("text",{x:"180",y:"220",fontFamily:"Manrope, Poppins, sans-serif",fontSize:i,letterSpacing:"-3",textAnchor:"middle",fontWeight:800,fill:"#DFFF1A",children:a}),o&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("text",{x:"180",y:"345",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"24",letterSpacing:"-0.5",textAnchor:"middle",fontWeight:700,fill:nt,children:o}),(0,c.jsx)("text",{x:"262",y:"333",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"10",fontWeight:600,fill:nt,children:"TM"})]})]})}function xr({className:e="",onBack:t,hideActions:n,backLabel:o="Category"}){const{theme:r,selectedCategory:l}=wo(),s=r.colors,a=xe(r);return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:a},children:yt(l)}),(0,c.jsx)(Oo,{onBack:t,hideActions:n,label:t?o:void 0})]})}function gr({onSelectSport:e,onCancel:t,hideTitle:n,hideActions:o,renderSportLogo:r,renderSportTagline:l,backLabel:a,comingSoonSports:i,className:d=""}){const{theme:u,propositionsForSportPicker:m,sportSummaries:p,loading:f,setSelectedSport:h,clearSelectedGame:x,selectedCategory:g,sportBaseKey:y,displaySportName:b}=wo(),w=u.colors,k=Y(u),v=he(u),N=xe(u),F=S(u),B=ut(m),C=Object.keys(B),[A,M]=s.default.useState(!1),z=s.default.useRef(null),L=s.default.useCallback(e=>{if(z.current?.disconnect(),z.current=null,!e)return;const t=()=>M(e.clientWidth<440);t(),"undefined"!=typeof ResizeObserver&&(z.current=new ResizeObserver(t),z.current.observe(e))},[]);return f?(0,c.jsx)(cn,{colors:G(u),bodyFont:v,className:d,variant:"sport",categoryCount:C.length>0?C.length:2}):(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${d}`,style:{fontFamily:v},children:[!n&&(0,c.jsx)("div",{className:"mb-2",children:(0,c.jsx)(xr,{onBack:t,hideActions:o,backLabel:a})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsxs)("div",{ref:L,className:"grid gap-3 "+(A?"grid-cols-1":"grid-cols-2"),children:[C.map(t=>{const n=p.find(e=>e.key===t),o=n?.active_props??B[t].length,s=l?.(t,o)??(n?`${a=n.games_today} game${1===a?"":"s"} today · ${i=n.active_props} pick${1===i?"":"s"} available`:function(e,t){return 0===e?"racing"===t?"No races today":"casino"===t?"No games today":"No picks available":"racing"===t?`${e} race${1===e?"":"s"} today`:"casino"===t?`${e} game${1===e?"":"s"} available`:`${e} pick${1===e?"":"s"} available`}(o,g));var a,i;const d=b(t),m=n?n.games_today>0:o>0;return(0,c.jsxs)("button",{type:"button",onClick:()=>{h(t),x(),e?.(t)},className:"group flex w-full min-w-0 items-center gap-3 rounded-2xl border px-3 py-3 text-left transition-all hover:-translate-y-0.5 active:translate-y-0 sm:gap-3.5 sm:px-4 sm:py-4",style:{backgroundColor:k,borderColor:w.border,boxShadow:me(u),cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=w.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=w.border},children:[r?(0,c.jsx)("span",{className:"shrink-0",children:r(t)}):(0,c.jsx)(hr,{gameKey:t,size:48,footer:null,sportBaseKey:y,title:`${d} button`,className:"h-10 w-10 shrink-0 sm:h-12 sm:w-12"}),(0,c.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,c.jsx)("span",{className:"max-w-full truncate text-sm font-extrabold leading-tight tracking-tight sm:text-base",style:{color:F,fontFamily:N},children:d}),(0,c.jsxs)("span",{className:"mt-1 flex max-w-full items-center gap-1.5 text-[0.58rem] font-bold uppercase tracking-[0.12em]",style:{color:w.primary},children:[m&&(0,c.jsx)("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full",style:{backgroundColor:w.success}}),(0,c.jsx)("span",{className:"truncate",children:s})]})]}),(0,c.jsx)(Ke,{size:20,color:w.textMuted,className:"shrink-0 transition-transform group-hover:translate-x-0.5"})]},t)}),i?.map(e=>{const{game:t,league:n}=function(e,t){const n=e.match(/^(.*?)\s*\(([^)]+)\)\s*$/);return n?{game:n[1].trim(),league:n[2].trim()}:{game:e,league:t}}(e.label,e.short??lt(e.key,y));return(0,c.jsxs)("div",{className:"flex w-full min-w-0 items-center gap-3 rounded-2xl border px-3 py-3 text-left sm:gap-3.5 sm:px-4 sm:py-4",style:{backgroundColor:se(w.backgroundAlt,.4),borderColor:se(w.border,.7)},children:[(0,c.jsx)("div",{className:"shrink-0",style:{opacity:.6,filter:"grayscale(1)"},children:r?r(e.key):(0,c.jsx)(hr,{gameKey:e.key,short:e.short,size:48,footer:null,sportBaseKey:y,title:`${e.label} button`,className:"h-10 w-10 shrink-0 sm:h-12 sm:w-12"})}),(0,c.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,c.jsxs)("span",{className:"max-w-full truncate text-sm font-extrabold leading-tight tracking-tight sm:text-base",style:{color:w.textMuted,fontFamily:N},children:[t,n&&n!==t?(0,c.jsxs)("span",{className:"font-bold",children:[" · ",n]}):null]}),(0,c.jsx)("span",{className:"mt-1 max-w-full truncate text-[0.58rem] font-bold uppercase tracking-[0.12em]",style:{color:w.textMuted},children:(o=e.seasonStart,o?`Starts ${o}`:"Coming soon")})]}),(0,c.jsxs)("span",{className:"inline-flex shrink-0 items-center gap-1 rounded-full px-2 py-1 text-[10px] font-semibold uppercase tracking-[0.1em]",style:{backgroundColor:w.backgroundAlt,color:w.textMuted},children:[(0,c.jsx)(Ze,{size:12,color:w.textMuted}),"Soon"]})]},e.key);var o})]})})]})}function yr({className:e="",onBack:t,hideActions:n}){const{theme:o}=wo(),r=xe(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)(Oo,{onBack:t,hideActions:n})]})}function br({onSelectCategory:e,onCancel:t,hideTitle:n,hideActions:o,renderCategoryIcon:r,getCategoryTagline:l,className:s=""}){const{theme:a,propositionsForCategoryPicker:i,loading:d,setSelectedCategory:u,setSelectedSport:m,clearSelectedGame:p,displayCategoryName:f}=wo(),h=a.colors,x=Y(a),g=he(a);xt(i);const y=gt(i);return d?(0,c.jsx)(cn,{colors:G(a),bodyFont:g,className:s,variant:"category",categoryCount:y.length>0?y.length:2}):(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${s}`,style:{fontFamily:g},children:[!n&&(0,c.jsx)("div",{className:"mb-2",children:(0,c.jsx)(yr,{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 rt[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:h.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=h.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=h.border},children:[(0,c.jsx)(We,{label:f(t),category:t,icon:r?.(t),theme:a}),n?(0,c.jsx)("span",{className:"text-[10px] sm:text-xs font-medium uppercase tracking-[0.08em] sm:tracking-[0.1em] break-words",style:{color:h.primary},children:n}):null]},t)})})})]})}function wr(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 kr({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 vr({onSelectEvent:e,className:t=""}){const{theme:n,loading:o,sameGameMultiEvents:r,selectSameGameMultiEvent:l,renderTeamLogo:a,displaySportName:i}=wo(),[d,u]=s.default.useState(null),m=n.colors,p=he(n),f=xe(n),h=Y(n),x=H(n);return o?(0,c.jsx)(cn,{colors:G(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:h,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 ${dn(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:h,boxShadow:d===t.id?fe(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:f},children:[(0,c.jsx)(kr,{name:t.homeTeam,renderTeamLogo:a,muted:m.textMuted}),(0,c.jsx)("span",{className:"text-xs font-normal",style:{color:m.textMuted},children:"vs"}),(0,c.jsx)(kr,{name:t.awayTeam,renderTeamLogo:a,muted:m.textMuted})]}),(0,c.jsxs)("p",{className:"mt-2 text-[11px] font-medium sm:text-xs",style:{color:m.textMuted},children:[wr(t.commenceTime)," · ",t.propositionCount," proposition",1===t.propositionCount?"":"s",(t.league||t.sport)&&` · ${t.league?.toUpperCase()??i(t.sport)}`]})]}),(0,c.jsx)(Ke,{size:22,color:m.textMuted,className:"shrink-0 transition-transform group-hover:translate-x-0.5"})]},t.id))})]})}function Nr({counts:e,onPick:t,onDoubleAction:n,colors:o,align:r="right",direction:l="down",menuShadow:a="0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}){const[i,d]=s.default.useState(!1),[u,m]=s.default.useState(!1),[p,f]=s.default.useState(null),h=s.default.useRef(null),x=s.default.useRef(null),g=s.default.useRef(null),y=36+36*e.length+12,b="up"===l||u?"up":"down";s.default.useEffect(()=>{if(!i)return m(!1),void f(null);const e=h.current,t=()=>{if(!e||"undefined"==typeof window)return;const t=e.getBoundingClientRect(),n=(document.documentElement.clientHeight||window.innerHeight)-t.bottom,o=t.top,r=n<y&&o>n;m(r),f(Math.max((r?o:n)-12,132))};t(),window.addEventListener("resize",t),window.addEventListener("scroll",t,!0);const n=e=>{const t=e.target;h.current?.contains(t)||x.current?.contains(t)||d(!1)};return document.addEventListener("mousedown",n),()=>{window.removeEventListener("resize",t),window.removeEventListener("scroll",t,!0),document.removeEventListener("mousedown",n)}},[i,y]);const w=i?(0,c.jsxs)("div",{ref:x,role:"menu",className:"rounded-lg overflow-y-auto overscroll-contain",style:{position:"absolute",top:"up"===b?void 0:"calc(100% + 6px)",bottom:"up"===b?"calc(100% + 6px)":void 0,left:"left"===r?0:void 0,right:"right"===r?0:void 0,maxHeight:p??void 0,zIndex:20,backgroundColor:o.background,border:`1px solid ${o.border}`,boxShadow:a,minWidth:160},children:[(0,c.jsx)("div",{className:"px-3 py-1.5 text-[10px] font-bold tracking-wider uppercase",style:{color:o.text,opacity:.55,borderBottom:`1px solid ${o.border}`},children:"How many picks?"}),e.map(e=>(0,c.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>{t(e),d(!1)},className:"w-full flex items-center justify-between px-3 py-2 transition-colors",style:{background:"transparent",border:"none",cursor:"pointer",borderTop:`1px solid ${o.border}`},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=o.backgroundAlt},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},children:[(0,c.jsxs)("span",{className:"text-sm font-semibold",style:{color:o.text},children:[e," picks"]}),(0,c.jsx)("span",{className:"text-[10px] font-bold tracking-wider",style:{background:o.backgroundAlt,color:o.text,padding:"2px 6px",borderRadius:4},children:"QP"})]},e))]}):null;return(0,c.jsxs)("div",{ref:h,className:"flex-shrink-0 relative",children:[(0,c.jsx)(ko,{onPress:()=>{n?null==g.current&&(g.current=window.setTimeout(()=>{g.current=null,d(e=>!e)},220)):d(e=>!e)},onDoubleClick:n?()=>{null!=g.current&&(window.clearTimeout(g.current),g.current=null),d(!1),n?.()}:void 0}),w]})}function Fr({className:e="",onBack:t,onNext:n,hideActions:o}){const{theme:r,headingFont:l,bodyFont:s,selectedGame:a,propositions:i,selections:d,toggleSelection:u,selectedPropositionCount:m,disableQuickPick:p,answeredCount:f,goToConfirmation:h,selectedEventId:x,sameGameMultiEvents:g,selectSameGameMultiEvent:y,selectedRule:b,howToPlayMarkdown:w,maxPayouts:k}=wo(),v=r.colors,N=Pe(a),F=Jn(a??{},a?k?.[a.id]:void 0),B=mn(a)&&!x,C=g.find(e=>e.id===x),A=a?wt(a,m,b):{min:0,max:0},M=A.min,z=mn(a)&&x?Math.min(A.max,i.length):A.max,L=M>0&&M===z,P=!(a?.allowed_propositions&&a.allowed_propositions.length>0)&&M>0&&z>M,D=L?z:z||i.length,O=e=>{const t=Math.max(0,Math.min(e??D,i.length));for(const l of Object.keys(d)){const e=Number(l);u(e,d[e])}const n=[...i].sort(()=>Math.random()-.5).slice(0,t),o=[],r=[];for(const l of n)Math.random()<.5?o.push(l):r.push(l);for(const l of o)u(l.id,"yes");for(const l of r)u(l.id,"no")},T=!p&&i.length>0,E=P?Array.from({length:z-M+1},(e,t)=>M+t).filter(e=>e<=i.length):[],j=f>0?f:M||D;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:S(r),fontFamily:l},children:B?"Choose a Game":"Select Propositions"}),a&&(0,c.jsx)(Oo,{onBack:x?()=>y(null):t,hideActions:o,label:C?dn(C):a.game_name,children:(N||w?.trim())&&(0,c.jsx)(Ge,{variant:"icon",content:w,panel:N,theme:r,title:`${a.game_name} — How to Play`,extra:(0,c.jsx)(_n,{tiers:F.hasGenericDividends?F.tiers:[],modes:F.modes,pydDividends:F.pydDividends,minBet:F.minBet,maxBet:F.maxBet,colors:v,bodyFont:s,headingFont:l}),colors:{text:v.text,textMuted:v.textMuted,border:v.border,background:v.background,backgroundAlt:v.backgroundAlt,primary:v.primary,primaryText:v.primaryText},bodyFont:s,headingFont:l})})]}),T&&(E.length>1?(0,c.jsx)(Nr,{counts:E,onPick:e=>{O(e),h(),n?.()},onDoubleAction:()=>{O(j),h(),n?.()},colors:v,menuShadow:pe(r)}):(0,c.jsx)("div",{className:"flex-shrink-0",children:(0,c.jsx)(ko,{onPress:()=>{O(),h(),n?.()}})}))]})}function Br({onNext:e,onBack:t,hideButtons:n=!1,className:o=""}){const{theme:r,selectionValid:l,answeredCount:s,selectedGame:a,selectedPropositionCount:i,selectedEventId:d,propositions:u,goToConfirmation:m,selectedRule:p}=wo(),f=r.colors,h=Y(r),x=f.textAlt??f.textMuted,g=a?wt(a,i,p):{min:0,max:0},y=g.min,b=mn(a)&&d?Math.min(g.max,u.length):g.max,w=!!(a?.allowed_propositions&&a.allowed_propositions.length>0),k=!w&&y>0&&b>y&&s>=y&&s<b,v=b-s,N=!w&&y>0&&b>y,F=a?N?y:b||y||a.num_propositions||0:0,B=N?b:F,C=B>0?Math.min(s/B,1):0,A=N&&b>0?y/b*100:0,M=Math.max(0,y-s),S=l&&!!e,z=0===s?"Let's get started":N&&M>0?1===M?"1 to go — almost there":`${M} to go`:k?`${v} more pick${1!==v?"s":""} available`:C>=1?"✓ All selections made":C>=.75?"Almost there!":C>=.5?"Over halfway!":C>=.25?"Getting close":"Nice start",L=N?s>=y?`${s} of maximum ${b}`:`${s} of minimum ${y}`:`${s} / ${F||u.length} picks`;return(0,c.jsx)("div",{className:o,children:(0,c.jsx)("div",{className:"rounded-xl border overflow-hidden mb-4",style:{borderColor:s>0?f.primary:f.border,backgroundColor:h,boxShadow:me(r)},children:(0,c.jsxs)("div",{className:"w-full p-4 sm:p-5",style:{backgroundColor:s>0?`${f.primary}10`:"transparent"},children:[(0,c.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-3",children:[(0,c.jsx)("span",{className:"text-sm font-semibold shrink-0",style:{color:s>0?f.primary:x},children:L}),S?(0,c.jsxs)("button",{type:"button",onClick:()=>{m(),e?.()},className:"shrink-0 px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:f.buttonPrimaryText,backgroundColor:f.buttonPrimary,cursor:"pointer"},children:["Continue with ",s]}):(0,c.jsx)("span",{className:"text-xs font-semibold text-right",style:{color:C>=1?f.success:f.primary,animation:"fadeSlideIn 0.3s ease-out"},children:z},z),(0,c.jsx)("style",{children:"@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }"})]}),(0,c.jsxs)("div",{className:"relative w-full h-2 rounded-full overflow-hidden",style:{backgroundColor:f.background},children:[(0,c.jsx)("div",{className:"h-full rounded-full transition-all duration-300",style:{width:`${Math.min(100*C,100)}%`,backgroundColor:l?f.success:f.primary}}),N&&(0,c.jsx)("div",{"aria-hidden":!0,title:`Minimum ${y}`,style:{position:"absolute",top:-1,bottom:-1,left:`${A}%`,width:2,marginLeft:-1,borderRadius:1,backgroundColor:h,boxShadow:`0 0 0 1px ${f.textMuted}55`}})]}),N&&(0,c.jsxs)("div",{className:"flex items-center justify-between mt-1.5",children:[(0,c.jsx)("span",{className:"text-[11px]",style:{color:s>=y?f.success:f.textMuted},children:s>=y?`✓ Minimum ${y} reached`:`Minimum ${y}`}),(0,c.jsxs)("span",{className:"text-[11px]",style:{color:f.textMuted},children:["Max ",b]})]})]})})})}function Cr({view:e,onChange:t}){const{theme:n}=wo(),o=n.colors,r=(n,r)=>{const l=e===n;return(0,c.jsx)("button",{type:"button",onClick:()=>t(n),"aria-pressed":l,className:"px-2.5 py-1 rounded-md text-xs font-semibold transition-colors",style:{background:l?o.primary:"transparent",color:l?o.primaryText:o.textMuted},children:r},n)};return(0,c.jsxs)("div",{className:"flex items-center gap-1 rounded-lg p-0.5 shrink-0",style:{background:o.backgroundAlt,border:`1px solid ${o.border}`},children:[r("list","List"),r("swipe","Swipe")]})}function Ar({count:e,payout20:t,selected:n,onSelect:o,colors:r,bodyFont:l,extraBetAmount:s,buttonLabel:a,hidePayouts:i}){const d=null!=s&&20!==s,u=null!=t&&t>0&&d?t*(s/20):null;return(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:[(0,c.jsx)("button",{type:"button",onClick:o,"aria-pressed":n,className:"px-3 py-1.5 rounded-lg border text-sm font-semibold transition-colors",style:{borderColor:n?r.buttonPrimary??r.primary:r.border??r.primary,color:n?r.buttonPrimaryText??"#ffffff":r.buttonSecondaryText??r.text,backgroundColor:n?r.buttonPrimary??r.primary:r.buttonSecondary??r.background,cursor:"pointer",fontFamily:l,whiteSpace:"nowrap",alignSelf:"stretch"},children:a?a(e):`Multi ${e}`}),!i&&null!=t&&t>0&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${r.success}15`,color:r.success,alignSelf:"stretch",textAlign:"center"},children:[e,"/",e]}),d?null!=u&&(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${r.primary}12`,color:r.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:ct(u)}):(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${r.primary}12`,color:r.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:ct(t)})]})]})}function Mr({tiers:e,selectedCount:t,onSelect:n,colors:o,bodyFont:r,extraBetAmount:l,buttonLabel:a,columnLabel:i="Legs",buildYourOwn:d,quickPickOnly:u,onQuickPick:m,collapsible:p,expanded:f,onExpandedChange:h,summaryTiers:x}){const[g,y]=(0,s.useState)(!1),b=f??g,w=e.some(e=>e.payout20>0),k=null!=l&&20!==l,v=k?`$${Math.round(l)} returns`:"$20 returns",N=!!p&&!b,F=w&&!N,B=(x??e).reduce((e,t)=>t.payout20>e?t.payout20:e,0),C=k&&B>0?B*(l/20):B,A=e.length>0?82*e.length+8*Math.max(0,e.length-1):82;return(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"stretch"},children:[(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"row",gap:8,overflowX:u?"visible":"auto",overflowY:"visible",alignItems:"flex-start",paddingBottom:6},children:[(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,flexShrink:0,width:70},children:[(0,c.jsx)("div",{className:"py-1.5 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:u?"Quick Pick":i}),F&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"py-1 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:"Dividend"}),(0,c.jsx)("div",{className:"py-1 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:v})]})]}),u?(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"flex-start",width:A},children:[(0,c.jsx)(Nr,{counts:(x??e).map(e=>e.count),onPick:e=>m?m(e):n(e),align:"left",direction:"up",colors:{background:o.background??"#ffffff",backgroundAlt:o.backgroundAlt??"#f3f4f6",border:o.border??"#e5e7eb",text:o.text??"#111827"}}),w&&!N&&(0,c.jsx)("div",{style:{display:"flex",flexDirection:"row",gap:8},children:e.map(e=>(0,c.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:null!=e.payout20&&e.payout20>0?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.success}15`,color:o.success,alignSelf:"stretch",textAlign:"center"},children:[e.count,"/",e.count]}),(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:ct(k?e.payout20*(l/20):e.payout20)})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.success}15`,color:o.success,alignSelf:"stretch",textAlign:"center"},children:[e.count,"/",e.count]}),(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:"—"})]})},e.count))})]}):d?(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"flex-start",width:A},children:[(0,c.jsx)("button",{type:"button",onClick:()=>n(e[0]?.count??0),className:"w-full py-1.5 rounded-lg border text-sm font-semibold transition-colors",style:{borderColor:o.buttonPrimary??o.primary,color:o.buttonPrimaryText??"#ffffff",backgroundColor:o.buttonPrimary??o.primary,cursor:"pointer",fontFamily:r},children:"Make Your Selections"}),w&&!N&&(0,c.jsx)("div",{style:{display:"flex",flexDirection:"row",gap:8},children:e.map(e=>(0,c.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:null!=e.payout20&&e.payout20>0?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.success}15`,color:o.success,alignSelf:"stretch",textAlign:"center"},children:[e.count,"/",e.count]}),k?(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:ct(e.payout20*(l/20))}):(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:ct(e.payout20)})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.success}15`,color:o.success,alignSelf:"stretch",textAlign:"center"},children:[e.count,"/",e.count]}),(0,c.jsx)("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:"—"})]})},e.count))})]}):e.map(e=>(0,c.jsx)(Ar,{count:e.count,payout20:e.payout20>0?e.payout20:null,selected:t===e.count,onSelect:()=>n(e.count),colors:o,bodyFont:r,extraBetAmount:l,buttonLabel:a,hidePayouts:N},e.count))]}),p&&(w?(0,c.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 self-start max-w-full",style:{fontFamily:r},children:[(0,c.jsxs)("span",{className:"text-xs font-semibold leading-snug",style:{color:o.text},children:["Win up to ",(0,c.jsx)("span",{style:{color:o.heading??o.text??o.primary},children:ct(C)}),(0,c.jsx)("span",{style:{color:o.textMuted},children:` for $${k?Math.round(l):20}`})]}),(0,c.jsx)("button",{type:"button",onClick:()=>{return e=!b,void 0===f&&y(e),void h?.(e);var e},"aria-expanded":b,className:"text-xs font-semibold rounded-md transition-colors shrink-0",style:{background:b?o.buttonSecondary:o.background??"#ffffff",border:`1px solid ${b?o.primary??o.border:o.border}`,padding:"4px 10px",cursor:"pointer",color:o.text,fontFamily:r,lineHeight:1.35},children:b?"Hide dividends":"Show dividends"})]}):(0,c.jsx)("div",{"aria-hidden":"true",className:"text-xs font-semibold self-start",style:{padding:"2px 0",visibility:"hidden",fontFamily:r},children:"Show dividends"}))]})}function Sr(e){return{game_id:e.selectedGame.id,rule_id:e.selectedRule?.id??null,proposition_ids:e.selectedPropositionIds,selections:e.selections,stake:e.betAmount}}function zr({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,selectedGame:l,selectedEventId:s,propositions:a,selections:i,toggleSelection:d,upgradePropositionCount:u,selectedPropositionCount:m,disableQuickPick:p,answeredCount:f,selectedRule:h}=wo(),x=o.colors,g=l?wt(l,m,h):{min:0,max:0},y=g.min,b=mn(l)&&s?Math.min(g.max,a.length):g.max,w=y>0&&y===b,k=!(l?.allowed_propositions&&l.allowed_propositions.length>0)&&y>0&&b>y,v=w?b:b||a.length,N=e=>{const t=Math.max(0,Math.min(e??v,a.length));for(const r of Object.keys(i)){const e=Number(r);d(e,i[e])}const{yesPicks:n,noPicks:o}=Rt(a,t);for(const r of n)d(r.id,"yes");for(const r of o)d(r.id,"no");u(t)},F=!p&&a.length>0,B=k?Array.from({length:b-y+1},(e,t)=>y+t):[],C=f>0?f:y||v;return(0,c.jsxs)("div",{className:`flex items-center justify-between gap-3 pl-2 ${e}`,children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:S(o),fontFamily:r},children:"Place Your Wager"}),l&&(0,c.jsx)(Oo,{onBack:t,hideActions:n,label:l.game_name})]}),F&&(B.length>1?(0,c.jsx)(Nr,{counts:B,onPick:e=>N(e),onDoubleAction:()=>N(C),colors:x,menuShadow:pe(o)}):(0,c.jsx)("div",{className:"flex-shrink-0",children:(0,c.jsx)(ko,{onPress:()=>N()})}))]})}function Lr({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,placedEntry:l}=wo(),s=o.colors;return(0,c.jsxs)("div",{className:`flex items-center justify-between gap-3 pl-2 ${e}`,children:[(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsx)("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:S(o),fontFamily:r},children:"Entry Placed!"}),(0,c.jsx)(Oo,{onBack:t,hideActions:n,children:(0,c.jsx)("p",{className:"text-sm",style:{color:s.textMuted},children:l?(0,c.jsxs)(c.Fragment,{children:["Entry"," ",(0,c.jsxs)("span",{className:"font-mono font-semibold",style:{color:s.primary},children:["#",l.id]})," ","successfully submitted"]}):"Your entry has been successfully submitted"})})]}),(0,c.jsx)("div",{className:"w-12 h-12 sm:w-14 sm:h-14 rounded-full flex items-center justify-center flex-shrink-0",style:{backgroundColor:`${s.success}20`},children:(0,c.jsx)("svg",{className:"w-6 h-6 sm:w-7 sm:h-7",fill:"none",stroke:s.success,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24",children:(0,c.jsx)("path",{d:"M5 13l4 4L19 7"})})})]})}function Pr({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r}=wo();return(0,c.jsxs)("div",{className:`pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:S(o),fontFamily:r},children:"Your Entries"}),(0,c.jsx)(Oo,{onBack:t,hideActions:n})]})}function Dr(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 Or(){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 Tr({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 Er({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 jr({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 Yr({kind:e,balls:t,...n}){return"safety_net"===e?(0,c.jsx)(Tr,{...n,balls:t}):"pick"===e?(0,c.jsx)(jr,{...n}):(0,c.jsx)(Er,{...n})}function Hr({kind:e,size:t=56,balls:n}){const{theme:o}=wo(),r=o.colors,l=o.brand?.chip??r.primary,s=o.brand?.icon??r.primaryText,a=O(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 ${Dr(s,.16)}`,flexShrink:0,boxShadow:`0 8px 18px -12px ${Dr(l,.9)}`},children:(0,c.jsx)(Yr,{kind:e,ink:s,ball:a,balls:n,size:Math.round(.68*t)})})}function Rr({option:e,renderDividends:t}){const{theme:n}=wo(),o=n.colors,r=xe(n),l=o.primary,s=O(n),a=e.dividends??[];return t?(0,c.jsx)(c.Fragment,{children:t(e)}):(0,c.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,c.jsxs)("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:o.textMuted},children:[(0,c.jsx)("span",{children:"If you land"}),(0,c.jsxs)("span",{children:["$",20," returns"]})]}),a.map((t,n)=>{const a=e.tierLegs?.[n];return(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,c.jsxs)("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[(0,c.jsx)("span",{className:"text-xs sm:text-[13px]",style:{color:o.text},children:t.label}),null!=a&&a>0&&(0,c.jsxs)("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:a}).map((e,t)=>(0,c.jsx)("span",{style:{width:5,height:5,borderRadius:1.5,backgroundColor:l,opacity:.85}},t)),0===t.misses&&(0,c.jsx)("span",{style:{width:7,height:7,borderRadius:999,backgroundColor:s,marginLeft:2}})]})]}),(0,c.jsx)("span",{className:"text-sm font-extrabold tabular-nums sm:text-base",style:{color:l,fontFamily:r},children:ct(t.payout20)})]},t.misses)})]})}function Gr({option:e,renderDividends:t}){const{theme:n}=wo(),o=n.colors,r=he(n),l=pe(n),a=e.dividends??[],i=a.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[u,m]=(0,s.useState)(!1),p=(0,s.useRef)(null),f=(0,s.useRef)(null),[h,x]=(0,s.useState)(null),g=40+36*Math.max(a.length,1)+12,y=(0,s.useCallback)(()=>{const e=p.current;if(!e||"undefined"==typeof window)return;const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom,o=t.top,r=n<g&&o>n;x({left:t.left,top:r?t.top-6:t.bottom+6,flipUp:r})},[g]);(0,s.useLayoutEffect)(()=>{if(!u)return void x(null);y();const e=()=>m(!1),t=()=>y();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[u,y]),(0,s.useEffect)(()=>{if(!u)return;const e=e=>{const t=e.target;p.current?.contains(t)||f.current?.contains(t)||m(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[u]);const b=u&&h&&"undefined"!=typeof document?(0,d.createPortal)((0,c.jsx)("div",{ref:f,role:"listbox",className:"rounded-lg overflow-hidden",style:{position:"fixed",left:h.left,top:h.top,transform:h.flipUp?"translateY(-100%)":void 0,zIndex:9999,backgroundColor:o.background,border:`1px solid ${o.border}`,boxShadow:l,minWidth:220,fontFamily:r},children:t?(0,c.jsx)("div",{className:"px-3 py-2",children:t(e)}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"px-3 py-1.5 text-[10px] font-bold tracking-wider uppercase",style:{color:o.text,opacity:.55,borderBottom:`1px solid ${o.border}`},children:["Dividends for $",20]}),a.map((e,t)=>(0,c.jsxs)("div",{className:"flex items-center justify-between px-3 py-2",style:{borderTop:0===t?"none":`1px solid ${o.border}`,gap:14},children:[(0,c.jsx)("span",{style:{fontWeight:700,color:o.text,fontSize:13},children:e.label}),(0,c.jsx)("span",{style:{fontWeight:700,color:e.payout20>0?o.heading??o.text:o.textMuted,fontSize:13,textAlign:"right"},children:e.payout20>0?ct(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:ct(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 Wr({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=wo(),l=r.colors,s=xe(r),a=S(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 ${Dr(a,.7)}`},onMouseEnter:e=>{e.currentTarget.style.borderColor=i,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${Dr(i,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=l.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${Dr(a,.7)}`},children:[(0,c.jsxs)("button",{type:"button",onClick:n,className:"group flex w-full flex-1 items-start gap-3.5 text-left sm:gap-4",style:{background:"none",border:"none",padding:0,cursor:"pointer"},children:[(0,c.jsx)(Hr,{kind:e,balls:u,size:60}),(0,c.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[(0,c.jsx)("span",{className:"text-lg font-extrabold leading-none tracking-tight sm:text-xl",style:{color:a,fontFamily:s},children:t.label}),t.stat&&(0,c.jsx)("span",{className:"w-fit rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em]",style:{backgroundColor:Dr(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:Dr(a,.08)},children:p?(0,c.jsx)(Rr,{option:t,renderDividends:o}):(0,c.jsx)(Gr,{option:t,renderDividends:o})})]})}function Ir({onContinue:e,onBack:t,hideTitle:n,config:o,renderDividends:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,setExpectedCorrect:m,handlePropositionCountChange:p,screenSize:f}=wo(),h=i.colors,x="mobile"===f,g=he(i),y=xe(i),b=S(i),w=O(i),k=(0,s.useMemo)(()=>o??In(d,u),[o,d,u]),v=k?.options??[],N=t=>{null!=t?.expectedCorrect&&m(t.expectedCorrect),null!=t?.propositionCount&&p(t.propositionCount),e?.()};if(!d||!k)return(0,c.jsx)("div",{className:a,style:{color:h.textMuted,fontFamily:g},children:"No rule setup required."});const F=k.kind,B=k.headline??k.heroTitle,C=k.continueLabel??"Continue";return(0,c.jsxs)("div",{className:`blade-rp flex min-h-full w-full flex-col ${a}`,style:{fontFamily:g},children:[(0,c.jsx)(Or,{}),t&&(0,c.jsx)(Do,{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:h.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)(Mo,{iconUrl:Ne(d),gameName:d.game_name,height:x?24:32,chipColor:h.primary,textColor:h.text,iconColor:h.primaryText,accentColor:i.brand?.accent,compact:x}),k.subtitle&&(0,c.jsx)("p",{className:"mt-2 text-xs sm:text-sm",style:{color:h.textMuted},children:k.subtitle}),(B||k.heroTagline)&&(0,c.jsx)("p",{className:"mt-3 max-w-sm text-sm leading-relaxed sm:text-[15px]",style:{color:h.textMuted},children:k.heroTagline??B})]}),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)(Wr,{kind:F,option:e,onSelect:()=>N(e),renderDividends:r})},e.id))}):k.highlights&&k.highlights.length>0&&(0,c.jsx)("div",{className:"blade-rp-in blade-rp-card flex flex-col rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:h.selectionCard??h.backgroundAlt,borderColor:h.border,boxShadow:`0 10px 24px -20px ${Dr(b,.7)}`,animationDelay:".06s"},onMouseEnter:e=>{e.currentTarget.style.borderColor=h.primary,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${Dr(h.primary,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=h.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${Dr(b,.7)}`},children:(0,c.jsxs)("button",{type:"button",onClick:()=>N(),"aria-label":C,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)(Hr,{kind:F,size:60}),(0,c.jsx)("span",{className:"flex min-w-0 flex-1 flex-col gap-2",children:k.highlights.map(e=>(0,c.jsxs)("span",{className:"flex items-start gap-3",children:[(0,c.jsx)("span",{className:"mt-[7px] h-1.5 w-1.5 shrink-0 rounded-full",style:{backgroundColor:w},"aria-hidden":!0}),(0,c.jsx)("span",{className:"text-sm leading-snug sm:text-[15px]",style:{color:b},children:e})]},e))}),(0,c.jsx)("span",{className:"shrink-0 self-center transition-transform group-hover:translate-x-0.5",style:{color:h.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 Ur(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 Kr({iconUrl:e,size:t=56}){const{theme:n}=wo(),o=n.colors,r=n.brand?.chip??o.primary,l=n.brand?.icon??o.primaryText,s=T(r,O(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 ${Ur(l,.16)}`,flexShrink:0,boxShadow:`0 8px 18px -12px ${Ur(r,.9)}`},children:(0,c.jsx)(Ut,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:l,accentColor:s})})}function Zr({eyebrow:e,iconUrl:t,gameName:n,tagline:o,className:r=""}){const{theme:l,screenSize:s}=wo(),a=l.colors,i=xe(l),d="mobile"===s;return(0,c.jsxs)("header",{className:`mb-4 flex flex-col items-center text-center sm:mb-7 ${r}`,children:[e&&(0,c.jsx)("h2",{className:"mb-4 hidden text-center text-xs font-bold uppercase tracking-[0.18em] sm:mb-5 sm:block",style:{color:a.primary,fontFamily:i},children:e}),(0,c.jsx)(Mo,{iconUrl:t,gameName:n,height:d?20:32,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:l.brand?.accent,compact:d}),o&&(0,c.jsx)("p",{className:"mt-2 max-w-sm text-[13px] leading-snug sm:mt-3 sm:text-[15px] sm:leading-relaxed",style:{color:a.textMuted},children:o})]})}function qr({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 $r="w-[124px] shrink-0 snap-start sm:w-auto sm:shrink";function Vr({legs:e,prizeBall:t=!0}){const{theme:n}=wo(),o=n.colors.primary,r=O(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 Xr({tile:e,label:t,stat:n,detail:o,onSelect:r,children:l}){const{theme:s}=wo(),a=s.colors,i=xe(s),d=S(s),u=a.primary;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:a.selectionCard??a.backgroundAlt,borderColor:a.border,boxShadow:`0 10px 24px -20px ${Ur(d,.7)}`},onMouseEnter:e=>{e.currentTarget.style.borderColor=u,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${Ur(u,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=a.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${Ur(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:Ur(u,.12),color:u},children:n})]}),o&&o.length>0&&(0,c.jsx)("div",{className:"flex flex-col gap-0.5",children:o.map((e,t)=>(0,c.jsx)("span",{className:"text-xs leading-snug sm:text-[13px] "+(0===t?"":"hidden sm:block"),style:{color:a.textMuted},children:e},e))})]}),(0,c.jsx)("span",{className:"shrink-0 self-center transition-transform group-hover:translate-x-0.5",style:{color:u},"aria-hidden":!0,children:(0,c.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,c.jsx)("path",{d:"m9 6 6 6-6 6"})})})]}),l&&(0,c.jsx)("div",{className:"mt-3 border-t pt-3",style:{borderColor:Ur(d,.08)},children:l})]})}function Qr(){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 Jr({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:f,quickPickGame:h,goToSportSelection:x}=wo(),g=i.colors,y=he(i),b=xe(i),w=S(i),k=Y(i),v=(0,s.useMemo)(()=>r??Ho(d),[r,d]),[N,F]=(0,s.useState)(()=>v?null!=u&&v.legOptions.includes(u)?u:v.defaultLegs:8),[B,C]=(0,s.useState)(()=>v?.defaultStake??20);if(!d||!jo(d)||!v)return(0,c.jsx)("div",{className:a,style:{color:g.textMuted,fontFamily:y},children:"No game set available."});const A=Yo(B,N,{operatorMargin:v.operatorMargin,perLegProbability:v.perLegProbability}),M=B>=v.minStake,z=(e,t)=>(0,c.jsxs)("div",{className:"mb-2 flex items-baseline justify-between",children:[(0,c.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:g.textMuted},children:e}),(0,c.jsx)("span",{className:"text-xs font-semibold tabular-nums",style:{color:w},children:t})]});return(0,c.jsxs)("div",{className:`blade-gsb flex min-h-full w-full flex-col ${a}`,style:{fontFamily:y},children:[(0,c.jsx)("style",{id:"blade-gsb-styles",children:"\n.blade-gsb{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-gsb-in{opacity:0;animation:blade-gsb-in .5s var(--e) both}\n@keyframes blade-gsb-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-gsb *{animation:none!important}.blade-gsb-in{opacity:1!important}}\n"}),(0,c.jsx)(Qr,{}),n&&(0,c.jsx)(Do,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Zr,{className:"blade-gsb-in",eyebrow:o?null:"The fastest multi",iconUrl:Ne(d),gameName:d.game_name,tagline:v.tagline}),(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 ${Ur(w,.7)}`,animationDelay:".06s"},children:[z("Legs",`${N} legs`),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Number of legs",children:v.legOptions.map(e=>{const t=e===N;return(0,c.jsx)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>F(e),className:"min-w-[40px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?g.primary:"transparent",borderColor:t?g.primary:g.border,color:t?g.primaryText:g.textMuted,cursor:"pointer"},children:e},e)})}),(0,c.jsxs)("div",{className:"mt-2 flex items-baseline justify-between text-[11px] italic",style:{color:g.textMuted},children:[(0,c.jsx)("span",{children:"Easier to land"}),(0,c.jsx)("span",{children:"Bigger prize"})]}),(0,c.jsxs)("div",{className:"mt-4",children:[z("Stake",ct(B)),(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:B||"",onChange:e=>{if(""===e.target.value)return void C(0);const t=Number(e.target.value);Number.isFinite(t)&&C((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===B;return(0,c.jsxs)("button",{type:"button",onClick:()=>C(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&&B>0&&(0,c.jsxs)("p",{className:"mt-2 text-xs",style:{color:g.error},children:["Minimum stake is ",ct(v.minStake),"."]})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:Ur(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:[ct(B)," 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)(Vr,{legs:N})]}),(0,c.jsx)("span",{className:"text-xl font-extrabold tabular-nums sm:text-2xl",style:{color:g.primary,fontFamily:b},children:ct(A.prize)})]}),(0,c.jsxs)("p",{className:"mt-1.5 text-[11px] tabular-nums",style:{color:g.textMuted},children:[(L=A.multiple,`×${(Math.round(10*L)/10).toLocaleString("en-US",{maximumFractionDigits:1})}`)," your stake · total return, stake included"]}),(0,c.jsx)("p",{className:"mt-1 text-[11px] italic",style:{color:g.textMuted},children:"All or nothing. Miss a single leg and the ticket does not pay."})]})]}),(0,c.jsxs)("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[(0,c.jsx)("div",{className:"blade-gsb-in",style:{animationDelay:".13s"},children:(0,c.jsx)(Xr,{tile:(0,c.jsx)(Kr,{iconUrl:Ne(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),f(B),x(),t?.())}})}),(0,c.jsx)("div",{className:"blade-gsb-in",style:{animationDelay:".2s"},children:(0,c.jsx)(Xr,{tile:(0,c.jsx)(Kr,{iconUrl:`${ye}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),f(B),h(d,N),e?.())}})})]})]})]});var L}function _r({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:f,quickPickGame:h,goToSportSelection:x}=wo(),g=i.colors,y=he(i),b=xe(i),w=S(i),k=Y(i),v=(0,s.useMemo)(()=>r??Qn(d),[r,d]),[N,F]=(0,s.useState)(()=>v?.defaultDividend??1e4),[B,C]=(0,s.useState)(()=>{const e=v?.dividends[0]?.rungs.map(e=>e.legs)??[];return null!=u&&e.includes(u)?u:v?.defaultLegs??9});if(!d||!qn(d)||!v)return(0,c.jsx)("div",{className:a,style:{color:g.textMuted,fontFamily:y},children:"No dividend series available."});const A=v.dividends.find(e=>e.dividend===N)??v.dividends[0],M=A.rungs.find(e=>e.legs===B)??A.rungs[0],z=Math.max(...A.rungs.map(e=>e.legs)),L=Math.min(...A.rungs.map(e=>e.legs));return(0,c.jsxs)("div",{className:`blade-pyd flex min-h-full w-full flex-col ${a}`,style:{fontFamily:y},children:[(0,c.jsx)("style",{id:"blade-pyd-styles",children:"\n.blade-pyd{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-pyd-in{opacity:0;animation:blade-pyd-in .5s var(--e) both}\n@keyframes blade-pyd-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-pyd *{animation:none!important}.blade-pyd-in{opacity:1!important}}\n"}),(0,c.jsx)(Qr,{}),n&&(0,c.jsx)(Do,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Zr,{className:"blade-pyd-in",eyebrow:o?null:"Pick your dividend",iconUrl:Ne(d),gameName:d.game_name,tagline:v.tagline}),(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 ${Ur(w,.7)}`,animationDelay:".06s"},children:[(P=ct(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"}),P&&(0,c.jsx)("span",{className:"text-xs font-semibold tabular-nums",style:{color:w},children:P})]})),(0,c.jsx)(qr,{smGridClassName:"sm:grid-cols-4",ariaLabel:"Set dividend",children:v.dividends.map(e=>{const t=e.dividend===N;return(0,c.jsxs)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>F(e.dividend),className:`rounded-xl border px-2 py-3 text-center transition-colors ${$r}`,style:{backgroundColor:t?Ur(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:ct(e.dividend)}),(0,c.jsxs)("span",{className:"mt-1 block text-[10px]",style:{color:g.textMuted},children:["from ",ct(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:Ur(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===B;return(0,c.jsxs)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>C(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?Ur(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===z?" · the long climb":e.legs===L?" · the sprint":""})]}),(0,c.jsx)(Vr,{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:ct(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)(Xr,{tile:(0,c.jsx)(Kr,{iconUrl:Ne(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${M.legs} legs`,`${ct(M.stake)} chasing the ${ct(A.dividend)}`],onSelect:()=>{var e;m((e=M).legs),p(e.legs),f(e.stake),x(),t?.()}})}),(0,c.jsx)("div",{className:"blade-pyd-in",style:{animationDelay:".2s"},children:(0,c.jsx)(Xr,{tile:(0,c.jsx)(Kr,{iconUrl:`${ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${M.legs} legs at ${ct(M.stake)}`,"Straight to the bet slip"],onSelect:()=>{p(M.legs),f(M.stake),h(d,M.legs),e?.()}})})]})]})]});var P}function el({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:f,quickPickGame:h,goToSportSelection:x,screenSize:g}=wo(),y=i.colors,b="mobile"===g,w=he(i),k=xe(i),v=S(i),N=O(i),F=Y(i),B=(0,s.useMemo)(()=>r??Zo(d),[r,d]),[C,A]=(0,s.useState)(()=>B?null!=u&&B.ladders.some(e=>e.legs===u)?u:B.defaultLegs:8),[M,z]=(0,s.useState)(()=>B?.defaultStake??50),[L,P]=(0,s.useState)(!1);if(!d||!Wo(d)||!B)return(0,c.jsx)("div",{className:a,style:{color:y.textMuted,fontFamily:w},children:"No ladders available."});const D=B.ladders.find(e=>e.legs===C)??B.ladders[0],T=Uo(D,M),E=Ko(D,M),j=[...T].reverse(),H=b&&j.length>4,R=H&&!L?j.slice(0,3):j,G=(e,t)=>(0,c.jsxs)("div",{className:"mb-2 flex items-baseline justify-between",children:[(0,c.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:y.textMuted},children:e}),t&&(0,c.jsx)("span",{className:"text-xs font-semibold tabular-nums",style:{color:v},children:t})]});return(0,c.jsxs)("div",{className:`blade-lad flex min-h-full w-full flex-col ${a}`,style:{fontFamily:w},children:[(0,c.jsx)("style",{id:"blade-lad-styles",children:"\n.blade-lad{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-lad-in{opacity:0;animation:blade-lad-in .5s var(--e) both}\n@keyframes blade-lad-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-lad *{animation:none!important}.blade-lad-in{opacity:1!important}}\n"}),(0,c.jsx)(Qr,{}),n&&(0,c.jsx)(Do,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Zr,{className:"blade-lad-in",eyebrow:o?null:"Climb the ladder. Stack the prizes.",iconUrl:Ne(d),gameName:d.game_name,tagline:B.tagline}),(0,c.jsxs)("div",{className:"blade-lad-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:F,borderColor:y.border,boxShadow:`0 10px 24px -20px ${Ur(v,.7)}`,animationDelay:".06s"},children:[G("Your bet",ct(M)),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Bet size",children:B.stakes.map(e=>{const t=e===M;return(0,c.jsxs)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>z(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:[G(`${B.ladders.length} ladders to choose from`),(0,c.jsx)(qr,{smGridClassName:"sm:grid-cols-5",ariaLabel:"Ladder",children:B.ladders.map(e=>{const t=e.legs===C;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 ${$r}`,style:{backgroundColor:t?Ur(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:ct(Ko(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:Ur(v,.08)},children:[(0,c.jsxs)("p",{className:"mb-2 text-xs",style:{color:y.text},children:["Ladder ",D.legs," wins from ",D.firstPayingTier," right — every tier stacks into the"," ",(0,c.jsx)("span",{style:{fontWeight:700,color:v},children:ct(E)})," 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"}),R.map(e=>{const t=e.atLeast===D.legs;return(0,c.jsxs)(s.default.Fragment,{children:[(0,c.jsxs)("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[(0,c.jsxs)("span",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs sm:text-[13px]",style:{color:y.text},children:[e.atLeast," of ",D.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:Ur(N,.35),color:v},children:"Full stack"})]}),(0,c.jsx)(Vr,{legs:e.atLeast,prizeBall:t})]}),(0,c.jsx)("span",{className:"text-right text-[11px] tabular-nums",style:{color:y.textMuted},children:ct(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:ct(e.cumulative)})]},e.atLeast)})]}),H&&(0,c.jsx)("button",{type:"button",onClick:()=>P(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 ${j.length} tiers`}),(0,c.jsxs)("p",{className:"mt-2 text-[11px] italic",style:{color:y.textMuted},children:["Land below ",D.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)(Xr,{tile:(0,c.jsx)(Kr,{iconUrl:Ne(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${D.legs} outcomes`,`Win from ${D.firstPayingTier} right — every tier stacks`],onSelect:()=>{m(D.legs),p(D.legs),f(M),x(),t?.()}})}),(0,c.jsx)("div",{className:"blade-lad-in",style:{animationDelay:".2s"},children:(0,c.jsx)(Xr,{tile:(0,c.jsx)(Kr,{iconUrl:`${ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${D.legs} legs at ${ct(M)}`,"Straight to the bet slip"],onSelect:()=>{p(D.legs),f(M),h(d,D.legs),e?.()}})})]})]})]})}function tl({legs:e,right:t}){const{theme:n}=wo(),o=n.colors.primary,r=O(n);return(0,c.jsxs)("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:e}).map((e,n)=>(0,c.jsx)("span",{style:{width:5,height:5,borderRadius:1.5,backgroundColor:t?o:"transparent",border:t?"none":`1px solid ${Ur(o,.45)}`,opacity:t?.85:1}},n)),(0,c.jsx)("span",{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}})]})}function nl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:f,quickPickGame:h,goToSportSelection:x}=wo(),g=i.colors,y=he(i),b=xe(i),w=S(i),k=Y(i),v=(0,s.useMemo)(()=>r??Qo(d),[r,d]),[N,F]=(0,s.useState)(()=>v?null!=u&&v.legOptions.includes(u)?u:v.defaultLegs:8),[B,C]=(0,s.useState)(()=>v?.defaultStake??20);if(!d||!Vo(d)||!v)return(0,c.jsx)("div",{className:a,style:{color:g.textMuted,fontFamily:y},children:"No mirror available."});const A=Xo(B,N,{operatorMargin:v.operatorMargin,perLegProbability:v.perLegProbability}),M=B>=v.minStake,z=(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})]}),L=e=>(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,c.jsxs)("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[(0,c.jsx)("span",{className:"text-xs sm:text-[13px]",style:{color:g.text},children:e?`All ${N} right`:`All ${N} wrong`}),(0,c.jsx)(tl,{legs:N,right:e})]}),(0,c.jsx)("span",{className:"text-lg font-extrabold tabular-nums sm:text-xl",style:{color:g.primary,fontFamily:b},children:ct(A.prize)})]});return(0,c.jsxs)("div",{className:`blade-mir flex min-h-full w-full flex-col ${a}`,style:{fontFamily:y},children:[(0,c.jsx)("style",{id:"blade-mir-styles",children:"\n.blade-mir{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-mir-in{opacity:0;animation:blade-mir-in .5s var(--e) both}\n@keyframes blade-mir-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-mir *{animation:none!important}.blade-mir-in{opacity:1!important}}\n"}),(0,c.jsx)(Qr,{}),n&&(0,c.jsx)(Do,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Zr,{className:"blade-mir-in",eyebrow:o?null:"All right, or all wrong",iconUrl:Ne(d),gameName:d.game_name,tagline:v.tagline}),(0,c.jsxs)("div",{className:"blade-mir-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:k,borderColor:g.border,boxShadow:`0 10px 24px -20px ${Ur(w,.7)}`,animationDelay:".06s"},children:[z("Legs",`${N} legs`),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Number of legs",children:v.legOptions.map(e=>{const t=e===N;return(0,c.jsx)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>F(e),className:"min-w-[40px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?g.primary:"transparent",borderColor:t?g.primary:g.border,color:t?g.primaryText:g.textMuted,cursor:"pointer"},children:e},e)})}),(0,c.jsxs)("div",{className:"mt-2 flex items-baseline justify-between text-[11px] italic",style:{color:g.textMuted},children:[(0,c.jsx)("span",{children:"Easier to sweep"}),(0,c.jsx)("span",{children:"Bigger prize"})]}),(0,c.jsxs)("div",{className:"mt-4",children:[z("Stake",ct(B)),(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:B||"",onChange:e=>{if(""===e.target.value)return void C(0);const t=Number(e.target.value);Number.isFinite(t)&&C((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===B;return(0,c.jsxs)("button",{type:"button",onClick:()=>C(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&&B>0&&(0,c.jsxs)("p",{className:"mt-2 text-xs",style:{color:g.error},children:["Minimum stake is ",ct(v.minStake),"."]})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:Ur(w,.08)},children:[(0,c.jsxs)("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:g.textMuted},children:[(0,c.jsx)("span",{children:"Two ways to win"}),(0,c.jsxs)("span",{children:[ct(B)," pays each"]})]}),(0,c.jsxs)("div",{className:"mt-1.5 flex flex-col gap-2",children:[L(!0),L(!1)]}),(0,c.jsx)("p",{className:"mt-2 text-[11px] italic",style:{color:g.textMuted},children:"Anything in between — a split card — does not pay."})]})]}),(0,c.jsxs)("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[(0,c.jsx)("div",{className:"blade-mir-in",style:{animationDelay:".13s"},children:(0,c.jsx)(Xr,{tile:(0,c.jsx)(Kr,{iconUrl:Ne(d),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","Aim for the sweep — either direction pays"],onSelect:()=>{M&&(m(N),p(N),f(B),x(),t?.())}})}),(0,c.jsx)("div",{className:"blade-mir-in",style:{animationDelay:".2s"},children:(0,c.jsx)(Xr,{tile:(0,c.jsx)(Kr,{iconUrl:`${ye}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),f(B),h(d,N),e?.())}})})]})]})]})}function ol({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:i,selectedGame:d,selectedPropositionCount:u,handlePropositionCountChange:m,setExpectedCorrect:p,setBetAmount:f,setSelectedRuleId:h,quickPickGame:x,goToSportSelection:g}=wo(),y=i.colors,b=he(i),w=xe(i),k=S(i),v=Y(i),N=(0,s.useMemo)(()=>r??Hn(d),[r,d]),[F,B]=(0,s.useState)(()=>N?.defaultModeId??"extra_shot"),[C,A]=(0,s.useState)(()=>{const e=N?.modes.find(e=>e.id===(N?.defaultModeId??"extra_shot"));return e?null!=u&&e.legOptions.includes(u)?u:e.defaultLegs:8}),[M,z]=(0,s.useState)(()=>N?.defaultStake??20);if(!d||!Sn(d)||!N)return(0,c.jsx)("div",{className:a,style:{color:y.textMuted,fontFamily:b},children:"No safety net available."});const L=N.modes.find(e=>e.id===F)??N.modes[0],P=Dn(M,C,L.allowedMisses,N.pricing),D=e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==N.maxStake?Math.min(t,N.maxStake):t},O=M>=N.minStake,T=(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})]}),E=(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),j=[{label:"Perfect",amount:P.perfect},...P.nearMiss.map((e,t)=>({label:`All but ${t+1}`,amount:e}))];return(0,c.jsxs)("div",{className:`blade-sn flex min-h-full w-full flex-col ${a}`,style:{fontFamily:b},children:[(0,c.jsx)("style",{id:"blade-sn-styles",children:"\n.blade-sn{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-sn-in{opacity:0;animation:blade-sn-in .5s var(--e) both}\n@keyframes blade-sn-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-sn *{animation:none!important}.blade-sn-in{opacity:1!important}}\n"}),(0,c.jsx)(Qr,{}),n&&(0,c.jsx)(Do,{onBack:n,label:l}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Zr,{className:"blade-sn-in",eyebrow:o?null:"Choose your safety net",iconUrl:Ne(d),gameName:d.game_name,tagline:N.tagline}),(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 ${Ur(k,.7)}`,animationDelay:".06s"},children:[T("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=>E(e.id,e.label,e.id===L.id,()=>(e=>{const t=N.modes.find(t=>t.id===e);t&&(B(e),h(t.ruleId),t.legOptions.includes(C)||A(t.legOptions.reduce((e,t)=>Math.abs(t-C)<Math.abs(e-C)?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:[T("Legs",`${C} legs`),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Number of legs",children:L.legOptions.map(e=>E(e,String(e),e===C,()=>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:[T("Stake",ct(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 z(0);const t=Number(e.target.value);Number.isFinite(t)&&z(D(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:()=>z(D((M||0)+e)),className:"min-w-[48px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:"transparent",borderColor:y.border,color:y.textMuted,cursor:"pointer"},children:["+$",e]},e))}),!O&&M>0&&(0,c.jsxs)("p",{className:"mt-2 text-xs",style:{color:y.error},children:["Minimum stake is ",ct(N.minStake),"."]})]}),(0,c.jsxs)("div",{className:"mt-4 border-t pt-3",style:{borderColor:Ur(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:[ct(M)," returns"]})]}),(0,c.jsxs)("div",{className:"mt-1.5 flex flex-col gap-1.5",children:[j.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:ct(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:ct(Math.round(P.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)(Xr,{tile:(0,c.jsx)(Kr,{iconUrl:Ne(d),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{O&&(h(L.ruleId),m(C),p(C-L.allowedMisses),f(M),g(),t?.())}})}),(0,c.jsx)("div",{className:"blade-sn-in",style:{animationDelay:".2s"},children:(0,c.jsx)(Xr,{tile:(0,c.jsx)(Kr,{iconUrl:`${ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{O&&(h(L.ruleId),p(C-L.allowedMisses),f(M),x(d,C),e?.())}})})]})]})]})}function rl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,backLabel:r="Games",className:l=""}){const{theme:a,selectedGame:i,selectedPropositionCount:d,handlePropositionCountChange:u,setExpectedCorrect:m,quickPickGame:p,goToSportSelection:f}=wo(),h=a.colors,x=he(a);xe(a);const g=(0,s.useMemo)(()=>{if(!i)return[];if(i.allowed_propositions&&i.allowed_propositions.length>0)return[...i.allowed_propositions].sort((e,t)=>e-t);const{min:e,max:t}=wt(i);return Ht(e,t)},[i]),y=er(i),b=g[0]??0,w=g[g.length-1]??0,[k]=(0,s.useState)(()=>null!=d&&g.includes(d)?d:w),v=(0,s.useMemo)(()=>In(i,k||void 0),[i,k]);if(!i||0===g.length||"exact"!==v?.kind)return(0,c.jsx)("div",{className:l,style:{color:h.textMuted,fontFamily:x},children:"No setup available."});const N=y?["Any yes/no props in the pool",`Pick ${b}–${w} legs — all must land`]:["A clean yes or no on every leg",`All ${k} have to land`],F=y?[`We fill ${k} legs across any markets`,"Straight to the bet slip"]:[`We fill all ${k} legs for you`,"Straight to the bet slip"];return(0,c.jsxs)("div",{className:`blade-pp flex min-h-full w-full flex-col ${l}`,style:{fontFamily:x},children:[(0,c.jsx)("style",{id:"blade-pp-styles",children:"\n.blade-pp{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-pp-in{opacity:0;animation:blade-pp-in .5s var(--e) both}\n@keyframes blade-pp-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-pp *{animation:none!important}.blade-pp-in{opacity:1!important}}\n"}),(0,c.jsx)(Qr,{}),n&&(0,c.jsx)(Do,{onBack:n,label:r}),(0,c.jsxs)("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[(0,c.jsx)(Zr,{className:"blade-pp-in",eyebrow:o?null:v.title,iconUrl:Ne(i),gameName:i.game_name,tagline:v.heroTagline}),(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)(Xr,{tile:(0,c.jsx)(Kr,{iconUrl:Ne(i),size:60}),label:"Pick my own",stat:"Your calls",detail:N,onSelect:()=>{y||(u(k),m(k)),f(),t?.()}})}),(0,c.jsx)("div",{className:"blade-pp-in",style:{animationDelay:".2s"},children:(0,c.jsx)(Xr,{tile:(0,c.jsx)(Kr,{iconUrl:`${ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:F,onSelect:()=>{m(k),p(i,k),e?.()}})})]})]})]})}exports.BladeApiClient=ro,exports.BrandLockup=function({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0,className:l}){const{theme:s}=wo(),a=S(s),i=O(s),d=s.colors.primaryHover??function(e){const t=/^#([0-9a-f]{6})$/i.exec(e?.trim()??"");if(!t)return e;const n=parseInt(t[1],16);return`rgba(${n>>16&255}, ${n>>8&255}, ${255&n}, 0.7)`}(a),u=xe(s)??"Manrope, Poppins, sans-serif",m=n&&n.length>0?n:t.split(/\s+/),p=.72*o,f=.5*o,h=Math.min(.62*o/m.length,.3*o);return(0,c.jsxs)("span",{role:"img","aria-label":`YESNO ${t}`,className:l,style:{display:"inline-flex",alignItems:"center",gap:.22*o,fontFamily:u,color:a},children:[(0,c.jsx)(Ut,{iconUrl:e,width:p,height:p,iconColor:a,accentColor:i,ariaLabel:""}),(0,c.jsxs)("span",{"aria-hidden":!0,style:{fontSize:f,letterSpacing:.045*-f,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:h,fontWeight:500,letterSpacing:.012*-h,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*h,fontWeight:500,marginLeft:1},children:"™"})]},`${e}-${t}`))})]})},exports.CategoryIcon=Ie,exports.CategoryPickerPage=br,exports.CategoryPickerPageActions=function({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=wo(),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=yr,exports.ChevronRightIcon=Ke,exports.ConfirmPage=function({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,hideTitle:r,hideActions:l,className:a=""}){const i=wo(),{theme:d,bodyFont:u,selectedGame:m,selectedPropositions:p,selections:f,propositions:h,disableQuickPick:x,selectedPropositionCount:g,selectedEventId:y,expectedCorrect:b,setExpectedCorrect:w,betAmount:k,setBetAmount:v,submitting:N,submitError:F,canSubmit:B,winningCounts:C,payouts:A,overloadPayouts:M,renderTeamLogo:S,userBalance:z,onRecharge:L,goBack:P,toggleSelection:D,upgradePropositionCount:O,goToSportSelection:T,selectedRule:E}=i,j=d.colors;if((0,s.useEffect)(()=>{m||(T(),e?.())},[m,T,e]),!m)return null;const Y=!!(m.allowed_propositions&&m.allowed_propositions.length>0),H=wt(m,g,E),R=H.min,G=mn(m)&&y?Math.min(H.max,h.length):H.max,W=Object.keys(f).length,I=R>0&&W<R,U=!Y&&R>0&&G>R&&W>=R&&W<G,K=Y?[...m.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(g??0)):[],Z=Y&&K.length>0&&!I,q=U||Z,$=G-W;j.textAlt??j.text,R>0&&R===G||G||h.length;const V=()=>{P(),e?.()},X=(Y?[...m.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===W&&e<(g??1/0)),Q=Y&&W<Math.min(...m.allowed_propositions??[1/0]),J=Y&&I&&!Q,_=tr(m),ee=function(e,t,n,o){const r=e?.description?.trim();if(r)return r;const l=(t??[]).filter(e=>Number.isFinite(e)).sort((e,t)=>e-t);if(0===l.length||n<=0)return null;const s=l[0];if(s>=n)return"Get every pick right to win.";if(!l.every((e,t)=>e===s+t)||l[l.length-1]!==n)return 2===l.length&&0===l[0]&&l[1]===n?`Get all ${n} picks right — or all ${n} wrong — to win.`:`Get exactly ${l.join(" or ")} of your ${n} picks right to win.`;const a=l.map(e=>o?.[e]).filter(e=>Number.isFinite(e));if(a.length===l.length&&a.length>1&&a.every((e,t)=>0===t||e>a[t-1]))return`Get ${s} of your ${n} picks right to start winning — every pick after that grows the prize.`;const i=n-s;return`Get ${s} of your ${n} picks right to win — up to ${1===i?"one miss":`${i} misses`} still pays.`}(E,C,W,A),te=null!=X?_.belowRequiredHint(X,g??R):_.belowRequiredAddOnlyHint(g??R);return(0,s.useEffect)(()=>{!I||Y&&!Q||V()},[I,Y,Q]),(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${a}`,style:{fontFamily:u},children:[!r&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(zr,{onBack:e,hideActions:l})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)(Ao,{game:m,propositions:p,selections:f,onToggleSelection:D,onRemoveSelection:()=>{},onSubmit:async()=>{n?(await i.handleSubmit(),t?.()):o?.(Sr(i))},onBack:V,loading:N,error:F,expectedCorrect:b,onExpectedCorrectChange:w,betAmount:k,onBetAmountChange:v,theme:d,showCustomAmount:!0,betAmountLocked:qn(m),betAmountLockedNote:"Set by your dividend ladder rung.",hideActions:!0,winningCounts:C,payouts:A,renderTeamLogo:S,canSubmit:B,authenticated:n,userBalance:z,onRecharge:L,boostBanner:(0,c.jsxs)(c.Fragment,{children:[ee&&(0,c.jsxs)("div",{className:"p-3 rounded-lg border mb-2",style:{backgroundColor:`${j.primary}08`,borderColor:`${j.primary}30`},children:[(0,c.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-[0.1em] mb-1",style:{color:j.textMuted},children:"How you win"}),(0,c.jsx)("p",{className:"text-xs sm:text-sm",style:{color:j.text},children:ee})]}),J&&(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:`${j.warning}10`,borderColor:`${j.warning}40`},children:[(0,c.jsxs)("p",{className:"text-xs sm:text-sm",style:{color:j.text},children:["You have ",(0,c.jsxs)("span",{style:{fontWeight:700},children:[W," pick",1!==W?"s":""]}),"."," ",te]}),(0,c.jsxs)("div",{className:"flex gap-2 flex-shrink-0",children:[(0,c.jsx)("button",{type:"button",onClick:V,className:"px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:j.buttonSecondaryText,backgroundColor:j.buttonSecondary,cursor:"pointer"},children:"Add a pick"}),null!=X&&(0,c.jsx)("button",{type:"button",onClick:()=>O(X),className:"px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:j.buttonPrimaryText,backgroundColor:j.buttonPrimary,cursor:"pointer"},children:_.switchTierLabel(X)})]})]}),q&&(0,c.jsx)("div",{className:"p-3 rounded-lg border",style:{backgroundColor:`${j.primary}08`,borderColor:`${j.primary}30`},children:Z?(()=>{const e=g??W,t=M[e],n=k>0?k:20,o=null!=t&&t>0?t*(n/20):null;return(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{className:"text-sm font-semibold mb-1",style:{color:j.primary},children:_.overloadTitle}),null!=o&&(0,c.jsxs)("p",{className:"text-xs mb-2",style:{color:j.textMuted},children:["Currently winning up to"," ",(0,c.jsx)("span",{style:{color:j.heading??j.text,fontWeight:700},children:ct(o)})," ","with ",e," picks"]}),(0,c.jsx)(Mr,{tiers:K.map(e=>({count:e,payout20:M[e]??0})),selectedCount:void 0,onSelect:e=>{O(e),V()},colors:j,bodyFont:i.bodyFont,extraBetAmount:20!==n?n:void 0,columnLabel:_.tableColumnLabel,buttonLabel:_.tierButtonLabel})]})})():(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,c.jsxs)("p",{className:"text-xs",style:{color:j.textMuted},children:[1===$?"Add ":"Add up to ",(0,c.jsxs)("span",{style:{color:j.primary,fontWeight:700},children:[$," more pick",1!==$?"s":""]})]}),(0,c.jsx)("button",{type:"button",onClick:V,className:"flex-shrink-0 px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:j.buttonPrimaryText,backgroundColor:j.buttonPrimary,cursor:"pointer"},children:"Add picks"})]})})]})})}),l&&F&&(0,c.jsx)("div",{className:"mt-3 flex justify-end",children:(0,c.jsx)("span",{className:"text-xs",style:{color:j.error},children:F})})]})},exports.ConfirmPageActions=function({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,className:r=""}){const l=wo(),{theme:s,selectedGame:a,expectedCorrect:i,betAmount:d,submitting:u,submitError:m,canSubmit:p,payouts:f,selectedPropositionIds:h,screenSize:x}=l,g=s.colors;if(!a)return null;const y=f[i]??0,b=kt(a),w=i===h.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)(De,{theme:s,variant:"secondary",onPress:e,children:"Back"}),(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[m&&(0,c.jsx)("span",{className:"text-xs",style:{color:g.error},children:m}),(y>0||k)&&(0,c.jsxs)("div",{className:"text-right leading-tight hidden sm:block",children:[(0,c.jsx)("span",{className:"text-[10px] uppercase tracking-wide block",style:{color:g.textMuted},children:"Potential winnings"}),(0,c.jsxs)("span",{className:"text-sm font-bold",style:{color:g.heading??g.text},children:[ct(y),k&&(0,c.jsx)("span",{style:{color:g.warning},children:" + Jackpot"})]})]}),(0,c.jsx)(De,{theme:s,variant:"primary",disabled:!p,onPress:async()=>{n?(await l.handleSubmit(),t?.()):o?.(Sr(l))},children:n?u?"Placing…":`Place Entry (${ct(d)})`:"Log in to place entry"})]})]})},exports.ConfirmPageTitle=zr,exports.DOUBLE_SHOT_MIN_LEGS=6,exports.EXTRA_SHOT_MIN_LEGS=4,exports.EntriesPage=function({className:e="",onSelectEntry:t,onBack:n,hideTitle:o,hideActions:r}){const{theme:l,bodyFont:s,apiUrl:a,apiKey:i,fetchImpl:d,getAuthHeaders:u,userId:m,demoEntries:p,demoGames:f,demoPropositions:h,renderTeamLogo:x,filterSport:g}=wo();return(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${e}`,style:{fontFamily:s},children:[!o&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(Pr,{onBack:n,hideActions:r})}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)(So,{apiUrl:a,apiKey:i,fetchImpl:d,getAuthHeaders:u,userId:m,demoEntries:p,demoGames:f,demoPropositions:h,onSelectEntry:t,theme:l,renderTeamLogo:x,filterSport:g})})]})},exports.EntriesPageTitle=Pr,exports.EntrySubmission=Ao,exports.EventFilterBanner=Lo,exports.EventPickerPage=vr,exports.FilterChipCarousel=qe,exports.FilterChipRow=$e,exports.GAME_TIER_LEVEL=kn,exports.GAME_TIER_TABS=vn,exports.GameEntries=So,exports.GameLogo=hr,exports.GamePage=function({onSelectGame:e,onGameSetup:t,onRuleSetup:n,onGameSetBet:o,onPickYourDividend:r,onLadder:l,onMirror:a,onSafetyNet:i,onQuickPick:d,onCancel:u,hideTitle:m,hideActions:p,showPerfectPickSetup:f=!1,showTierFilter:h=!1,className:x=""}){const g=wo(),{theme:y,games:b,loading:w,error:k,selectedGame:v,selectedPropositionCount:N,handlePropositionCountChange:F,maxPayouts:B}=g;y.colors;const C=s.default.useRef(v);return C.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)(nr,{onBack:u,hideActions:p})}),(0,c.jsx)(Lo,{}),(0,c.jsx)("div",{className:"flex-1",children:(0,c.jsx)(oo,{games:b,selectedGame:v,onSelectGame:e=>{C.current=e,g.selectGame(e)},loading:w,error:k,theme:y,showTierFilter:h,selectedPropositionCount:N,onPropositionCountChange:F,onPropositionCountSelected:()=>{const s=C.current;if("rule_setup"===Jo(s)&&er(s)&&!f)return g.goToSportSelection(),void e?.();const c=Jo(s);if("quick_pick"===c||"selections"===c)return g.goToSportSelection(),void e?.();t?t(c):({game_set:o,pick_your_dividend:r,ladder:l,mirror:a,safety_net:i,rule_setup:n}[c]??n)?.()},onQuickPickGame:(e,t)=>{g.quickPickGame(e,t),d?.()},maxPayouts:B})})]})},exports.GamePageActions=function({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=wo(),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=nr,exports.GameSelector=oo,exports.GameSetBetPage=Jr,exports.GameSetBetPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=wo(),l=xe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"The fastest multi"}),(0,c.jsx)(Oo,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.GameSetupPage=function({onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r="Games",className:l=""}){const{theme:s,selectedGame:a,goToSportSelection:i,bodyFont:d}=wo(),u={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r,className:l};switch(Jo(a)){case"game_set":return(0,c.jsx)(Jr,{...u});case"pick_your_dividend":return(0,c.jsx)(_r,{...u});case"ladder":return(0,c.jsx)(el,{...u});case"mirror":return(0,c.jsx)(nl,{...u});case"safety_net":return(0,c.jsx)(ol,{...u});case"rule_setup":return"exact"===In(a)?.kind?(0,c.jsx)(rl,{...u}):(0,c.jsx)(Ir,{onBack:n,hideTitle:o,backLabel:r,className:l,onContinue:()=>{i(),e?.()}});default:return(0,c.jsx)("div",{className:l,style:{color:s.colors.textMuted,fontFamily:d},children:"No setup required — this game goes straight to picks."})}},exports.HowToPlayButton=Ge,exports.HowToPlayModal=Re,exports.HowToPlayPanel=He,exports.LADDER_FAMILY=Go,exports.LADDER_REFERENCE_BET=50,exports.LADDER_STAKES=Ro,exports.LadderPage=el,exports.LadderPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=wo(),l=xe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"Every step pays"}),(0,c.jsx)(Oo,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.LockIcon=Ze,exports.MIRROR_STANDARD_MARGIN=.21875,exports.MarkdownContent=M,exports.MirrorPage=nl,exports.MirrorPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=wo(),l=xe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"All right, or all wrong"}),(0,c.jsx)(Oo,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.PYD_LEG_RUNGS=Zn,exports.PYD_RETAIL_DIVIDENDS=Kn,exports.PayoutCircles=function({game:e,totalSelections:t,expectedCorrect:n,className:o="",onExpectedCorrectChange:r,theme:l=U,colorWinning:s,colorNone:a,winningCounts:i,payouts:d}){const u=l.colors,m=s??u.payoutWinning,p=a??u.payoutNone,f=kt(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"}),f.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:f.progressive?f.amount>0?`Progressive Jackpot: ${ct(f.amount)}${f.limit>0?` (up to ${ct(f.limit)})`:""} for a perfect pick!`:f.limit>0?`Progressive Jackpot — up to ${ct(f.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${ct(f.amount)} for a perfect pick!`})]}),(0,c.jsx)("div",{className:"flex flex-wrap gap-1.5 sm:gap-2 justify-center",children:Array.from({length:t+1},(e,o)=>{const l=i.includes(o),s=d[o]??0,a=s>0,h=o===t,x=f.enabled&&h,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?f.progressive?`${o} correct wins PROGRESSIVE JACKPOT${f.amount>0?` (currently ${ct(f.amount)})`:""}${f.limit>0?` — up to ${ct(f.limit)}`:""} + ${ct(s)}\nClick to select`:`${o} correct wins JACKPOT ${ct(f.amount)} + ${ct(s)}\nClick to select`:l?`${o} correct wins ${ct(s)}\nClick to select`:a?`${o} correct pays ${ct(s)} but does not win\nClick to select`:`${o} correct - no payout\nClick to select`,children:[x&&(0,c.jsx)("div",{className:"absolute -top-1.5 -right-1.5",children:(0,c.jsx)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:u.warning,stroke:u.warning,strokeWidth:"1",children:(0,c.jsx)("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.27 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z"})})}),(0,c.jsx)("div",{className:"text-sm sm:text-base leading-none",children:o}),s>0?(0,c.jsx)("div",{className:"text-[7px] sm:text-[8px] font-normal leading-none",children:ct(s)}):null]},o)})}),(0,c.jsx)("div",{className:"text-xs text-center",style:{color:u.textMuted},children:(0,c.jsxs)("p",{children:["Your expected: ",(0,c.jsxs)("span",{className:"font-semibold",children:[n," correct"]})]})})]})},exports.PerfectPickPage=rl,exports.PerfectPickPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=wo(),l=xe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"All or nothing"}),(0,c.jsx)(Oo,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.PickYourDividendPage=_r,exports.PickYourDividendPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=wo(),l=xe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"The dividend is set"}),(0,c.jsx)(Oo,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.PlaceEntryProvider=function({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,getUserBalance:l,children:a,theme:i,colorScheme:d,demoGames:u,demoPropositions:m,demoEntries:p,demoMaxPayouts:f,gameCategory:h,jurisdiction:x,initialGameId:g,filterSport:y,initialSport:b,initialEventId:w,initialEventLabel:k,sportBaseKey:v,disableQuickPick:N=!1,renderTeamLogo:F,onEntryPlaced:B,onBeforeSubmit:C,onCancel:A,onShare:M,onRecharge:S,onClearEventFilter:z,screenSize:L="desktop",howToPlayMarkdown:P,sportDisplayNames:D,categoryDisplayNames:O}){const T=le(i,d),E=he(T),j=xe(T),Y=!(!u||!m),H=(0,s.useMemo)(()=>new ro({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),[R,G]=(0,s.useState)(0),W=(0,s.useRef)(0),[I,U]=(0,s.useState)(0),[K,Z]=(0,s.useState)([]),[q,$]=(0,s.useState)({}),[V,X]=(0,s.useState)({}),[Q,J]=(0,s.useState)(void 0),[_,ee]=(0,s.useState)(null),[te,ne]=(0,s.useState)(void 0),oe=s.default.useCallback(async()=>{if(l)try{const e=await l();"number"==typeof e&&Number.isFinite(e)&&ne(e)}catch(e){}},[l]);(0,s.useEffect)(()=>{l?oe():ne(void 0)},[l,oe]);const re=(0,s.useRef)(null),[se,ae]=(0,s.useState)(null),[ie,ce]=(0,s.useState)(b??null),[de,ue]=(0,s.useState)(w??null);(0,s.useEffect)(()=>{b&&ce(b)},[b]),(0,s.useEffect)(()=>{ue(w??null)},[w]);const[me,pe]=(0,s.useState)(w),fe=(0,s.useRef)(!1);(0,s.useEffect)(()=>{if(!w)return pe(void 0),void(fe.current=!1);fe.current||pe(w)},[w]);const ge=h??se??void 0,ye=y??b??void 0,be=Bt(ie??ye,v),we=Bt(ye,v)??ye,ke=ie??void 0,{games:ve,howToPlayMarkdown:Ne,loading:Fe,error:Be}=lo(H,{category:ge,jurisdiction:x,sport:be},{skip:Y}),{propositions:Ce,loading:Ae,error:Me}=so(H,{category:ge,sport:we,event_id:me},{skip:Y}),{sports:Se,loading:ze}=ao(H,{skip:Y}),{createEntry:Le,loading:Pe,error:De}=uo(H),{preview:Oe}=po(H),Te=(0,s.useMemo)(()=>Dt((Y?u:ve)??[],{category:ge,sport:be??ke,sportBaseKey:v}),[Y,u,ve,ge,be,ke,v]),Ee=P??Ne??null,{maxPayouts:je,refetchGame:Ye}=co(H,Te??[],{skip:Y,betAmount:20}),He=Y?f??bo:je,Re=Y?m:Ce,Ge=y?(Re??[]).filter(e=>e.sport===y):Re,We=(0,s.useMemo)(()=>gt(Ge??[]),[Ge]),Ie=(0,s.useMemo)(()=>ge||(1===We.length?We[0]:void 0),[ge,We]),Ue=(0,s.useMemo)(()=>{const e=Ge??[];return Ie?St(e,{category:Ie,sportBaseKey:v}):e},[Ge,Ie,v]),Ke=(0,s.useMemo)(()=>ke?St(Ue,{sport:ke,sportBaseKey:v}):Ue,[Ue,ke,v]),Ze=(0,s.useMemo)(()=>({category:Ie,sport:ke,sportBaseKey:v}),[Ie,ke,v]),qe=(0,s.useMemo)(()=>{const e=(Te??[]).filter(e=>e.active);if(!Ie&&We.length>1)return[];const t=Ie?Dt(e,Ze):e;return Ie||ke?function(e,t,n){return n?.category||n?.sport?e.filter(e=>Pt(e,t,n)):e}(t,Ke,Ze):t},[Te,Ke,Ze,Ie,ke,We.length]),{step:$e,selectedGame:Ve,selections:Xe,placedEntry:Qe,setGameOnly:Je,clearSelectedGame:_e,goToSportSelection:et,goToConfirmation:tt,goToSuccess:nt,goBack:ot,reset:rt,toggleSelection:lt}=mo(g),st=s.default.useCallback(()=>{fe.current=!0,pe(void 0),rt(),z?.()},[rt,z]),at=!!me,it=at?k:void 0,ct=!Y&&(Ve?Fe||Ae||ze:Fe),dt=Y?null:Ve?Be||Me:Be,ut=(0,s.useMemo)(()=>Ve?Ot(Ke,Ve,v):Ke,[Ve,Ke,v]),pt=(0,s.useMemo)(()=>Ve?ut:Ue,[Ve,ut,Ue]),ht=(0,s.useMemo)(()=>St(Ve?ut:Ue,{category:Ie}),[Ve,ut,Ue,Ie]),xt=(0,s.useMemo)(()=>{const e=new Set(ht.map(e=>e.sport).filter(Boolean));return Se.filter(t=>e.has(t.key))},[Se,ht]),yt=(0,s.useMemo)(()=>St(ut,{category:Ie,sport:ie}),[ut,Ie,ie]),kt=(0,s.useMemo)(()=>{if(!Ve||!mn(Ve))return[];const{min:e}=wt(Ve,Q),t=Q??e;return fn(yt).filter(e=>e.propositionCount>=t)},[Ve,Q,yt]),vt=(0,s.useMemo)(()=>mn(Ve)?bn(yt,de):yt,[Ve,yt,de]),At=Object.keys(Xe).map(Number),Mt=At.length,Lt=(0,s.useMemo)(()=>yt.filter(e=>At.includes(e.id)),[yt,At]);(0,s.useEffect)(()=>{h||se||1===We.length&&ae(We[0])},[h,se,We]),(0,s.useEffect)(()=>{if(!Ve)return;const e=ut,t=new Set(e.map(ft));let n=se;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==se&&ae(n));const o=n?e.filter(e=>ft(e)===n):e,r=new Set(function(e){const t=new Set;for(const n of e){const o=mt(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),l=Ve.allowed_sports;ce(e=>e&&r.has(e)?e:1===l?.length&&r.has(l[0])?l[0]:l&&l.length>1?e&&l.includes(e)&&r.has(e)?e:null:1===r.size?Array.from(r)[0]:null)},[Ve?.id,ut,se]),(0,s.useEffect)(()=>{Ve&&Ie&&(zt(Ve,Ie)||_e())},[Ve,Ie,_e]),(0,s.useEffect)(()=>{Ve&&(Pt(Ve,Ke,{category:Ie,sport:ie,sportBaseKey:v})||_e())},[Ve,Ie,ie,v,Ke,_e]),(0,s.useEffect)(()=>{if(Ve){if(U(0),re.current){const{count:e}=re.current;return re.current=null,J(e),void G(e)}if(Ve.allowed_propositions&&Ve.allowed_propositions.length>0){const e=Q;null!=e&&Ve.allowed_propositions.includes(e)?G(e):(J(void 0),G(0))}else J(void 0),G(Ve.num_propositions||Ve.max_propositions||0)}},[Ve]);const Tt=(e,t,n)=>{const o=(He[e]?.top_payouts??[]).find(e=>e.proposition_count===t);if(!o)return 0;const r=o.bet_amount&&o.bet_amount>0?o.bet_amount:20;return r<=0?0:o.net_payout/r*n};(0,s.useEffect)(()=>{if("sport"!==$e&&"confirm"!==$e||!Ve||Y)return;const e=mn(Ve)&&de?vt.length:Number.MAX_SAFE_INTEGER;let t;if(Ve.allowed_propositions&&Ve.allowed_propositions.length>0){const n=Ve.allowed_propositions?[...Ve.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void X({});const o=Q??n[0],r=n.filter(e=>e>o);if(0===r.length)return void X({});t=[o,...r]}else{const{min:n,max:o}=wt(Ve),r=Math.min(o,e);if(n<=0||r<=n)return void X({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=Tt(Ve.id,o,20);X(n)},[$e,Ve,Q,de,vt.length,Y,He]),(0,s.useEffect)(()=>{if("confirm"!==$e||!Ve)return;const e=At.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=Tt(Ve.id,r,I);$(n),e!==W.current?(W.current=e,G(e)):(R>e||R<=0&&e>0)&&G(e);const o=I>0?I:Math.max(Ve.min_bet??20,.01);return(async()=>{try{const n=await Oe(Ve.id,{actual:R,predicted:R,total:e,bet_amount:o});if(t)return;Z(n.winning_counts)}catch{t||Z([])}})(),()=>{t=!0}},[$e,Ve,At.length,R,I,Oe,He]);const Et=(0,s.useMemo)(()=>{return t=_,(e=Ve)&&null!=t?e.permitted_rules?.find(e=>e.id===t)??null:null;var e,t},[Ve,_]),jt=!mn(Ve)||wn(Lt,de),Yt=Ve?wt(Ve,void 0,Et):null,Ht=!(!Ve||!jt)&&(Ve.allowed_propositions&&Ve.allowed_propositions.length>0?null!=Q&&Mt===Q&&bt(Mt,Yt?.min,Yt?.max):bt(Mt,Yt?.min,Yt?.max)),Rt=Ve?.min_bet??0,Gt=Math.max(Rt,.01),Wt=null==te||I<=te,It=!Pe&&I>=Gt&&Ht&&Wt,Ut=e=>{J(e),G(e);for(const t of Object.keys(Xe))lt(Number(t),Xe[Number(t)])},Kt=e=>{J(e),G(e)},Zt=e=>{ue(mn(e)?w??null:null),Je(e)},qt=e=>{if(e!==de){for(const e of Object.keys(Xe)){const t=Number(e);lt(t,Xe[t])}ue(e)}},$t=(e,t)=>{re.current={count:t},Je(e),Ye(e.id);const n=e.allowed_sports??[];let o=null;ie&&n.some(e=>Ct(ie,e,v))?o=ie:1===n.length&&(o=n[0]),ce(o);for(const a of Object.keys(Xe)){const e=Number(a);lt(e,Xe[e])}let r=St(Ot(Ge??[],e,v),{category:Ie,sport:o,sportBaseKey:v});const l=Math.max(0,Math.min(t,r.length)),s=[...r].sort(()=>Math.random()-.5).slice(0,l);for(const a of s)lt(a.id,Math.random()<.5?"yes":"no");tt()},Vt=async()=>{if(Ve&&Ht){if(Y){const e={id:Math.floor(1e4*Math.random()),game_id:Ve.id,user_id:r,proposition_ids:At,selections:Xe,pending:!0,expected_correct:R,bet_amount:I};return B?.(e),nt(e),void oe()}try{C&&await C(I);const e=await Le({game_id:Ve.id,user_id:r,proposition_ids:At,selections:Xe,stake:I,rule_id:Et?.id??null});B?.(e),nt(e),oe()}catch(e){}}},Xt=(0,s.useCallback)(e=>D?.[e]??xt.find(t=>t.key===e)?.label??Nt(e,void 0,v),[D,xt,v]),Qt=(0,s.useCallback)(e=>Ft(e,O),[O]),Jt=(0,s.useMemo)(()=>({theme:T,bodyFont:E,headingFont:j,games:qe,propositions:vt,propositionsForCategoryPicker:pt,propositionsForSportPicker:ht,sportSummaries:xt,loading:ct,error:dt,step:$e,selectedGame:Ve,selections:Xe,placedEntry:Qe,selectedPropositionIds:At,selectedPropositions:Lt,selectionValid:Ht,selectedRuleId:_,setSelectedRuleId:ee,selectedRule:Et,answeredCount:Mt,betAmount:I,setBetAmount:U,expectedCorrect:R,setExpectedCorrect:G,selectedPropositionCount:Q,handlePropositionCountChange:Ut,upgradePropositionCount:Kt,winningCounts:K,payouts:q,overloadPayouts:V,submitting:Pe,submitError:De,canSubmit:It,gamePrice:Rt,userBalance:te,hasSufficientBalance:Wt,refreshUserBalance:oe,handleSubmit:Vt,selectGame:Zt,goToSportSelection:()=>et(),goToConfirmation:tt,goBack:ot,reset:rt,clearSelectedGame:_e,toggleSelection:lt,quickPickGame:$t,selectedCategory:se,setSelectedCategory:ae,selectedSport:ie,setSelectedSport:ce,selectedEventId:de,sameGameMultiEvents:kt,selectSameGameMultiEvent:qt,apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,disableQuickPick:N,renderTeamLogo:F,filterSport:y,initialSport:b,initialEventId:w,sportBaseKey:v,gameCategory:h,eventFilterActive:at,eventFilterLabel:it,clearEventFilter:st,screenSize:L,displaySportName:Xt,displayCategoryName:Qt,maxPayouts:He??{},howToPlayMarkdown:Ee,onEntryPlaced:B,onCancel:A,onShare:M,onRecharge:S,demoEntries:p,demoGames:u,demoPropositions:m}),[T,E,j,qe,vt,pt,ht,xt,ct,dt,$e,Ve,Xe,Qe,At,Lt,Ht,Mt,I,R,Q,_,Et,K,q,V,Pe,De,It,Rt,e,t,r,te,n,o,N,F,y,b,w,v,h,L,at,it,st,se,ie,de,kt,He,Ee,B,A,M,S,z,p,u,m,Xt,Qt]);return(0,c.jsx)(yo.Provider,{value:Jt,children:a})},exports.QuickPickButton=ko,exports.RuleSetupPage=Ir,exports.RuleSetupPageActions=function({onContinue:e,canContinue:t,continueLabel:n="Continue",className:o=""}){const{theme:r,screenSize:l}=wo(),s=r.colors;return e&&"mobile"!==l?(0,c.jsx)("div",{className:`flex items-center justify-end pt-4 ${o}`,children:(0,c.jsx)("button",{type:"button",onClick:e,disabled:!t,className:"px-5 py-2.5 rounded-lg text-sm font-semibold transition-colors disabled:opacity-45",style:{color:s.buttonPrimaryText,backgroundColor:s.buttonPrimary,cursor:t?"pointer":"not-allowed"},children:n})}):null},exports.RuleSetupPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r,selectedPropositionCount:l}=wo(),s=xe(o),a=o.colors,i=In(r,l);return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:a.primary,fontFamily:s},children:i?.title??"About this game"}),(0,c.jsx)(Oo,{onBack:t,hideActions:n,label:r?`${r.game_name}${i?.subtitle?` · ${i.subtitle}`:""}`:void 0})]})},exports.SafetyNetPage=ol,exports.SafetyNetPageTitle=function({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=wo(),l=xe(o),s=o.colors;return(0,c.jsxs)("div",{className:`pl-0 sm:pl-2 ${e}`,children:[(0,c.jsx)("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:l},children:"Choose your safety net"}),(0,c.jsx)(Oo,{onBack:t,hideActions:n,label:r?.game_name})]})},exports.SelectionReview=function({propositions:e,selections:t,onToggleSelection:n,onNext:o,onBack:r,theme:l,colorScheme:a,hideActions:i=!1,renderTeamLogo:d,allowAnswerToggle:u=!0,gameName:m,potentialPayout:p,defaultExpanded:f=!1,addMorePicks:h}){const x=le(l,a),g=x.colors,y=Y(x),b=he(x),w=xe(x),k=S(x),v=g.textAlt??g.text,N=g.matchupHeader??H(x),F=R(x),[B,C]=(0,s.useState)(null),[A,M]=(0,s.useState)(f),z=e.filter(e=>e.id in t),L=z.length,P=Yt(z);return(0,c.jsxs)("div",{className:"space-y-4 sm:space-y-6 pb-16",style:{fontFamily:b},children:[(0,c.jsxs)("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:y,borderColor:g.border,boxShadow:me(x)},children:[(0,c.jsxs)("button",{type:"button",onClick:()=>M(e=>!e),"aria-expanded":A,"aria-controls":"selection-review-list",className:"w-full flex items-center justify-between gap-3 text-left",style:{background:"none",border:"none",padding:0,cursor:"pointer",color:"inherit"},children:[(0,c.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,c.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{color:g.textMuted,flexShrink:0,transform:A?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.15s ease"},children:(0,c.jsx)("path",{d:"m6 9 6 6 6-6"})}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsxs)("h3",{className:"text-base sm:text-lg font-semibold flex items-center gap-2",style:{color:k,fontFamily:w},children:[(0,c.jsx)("span",{children:"Your Selections"}),(0,c.jsx)("span",{className:"text-xs font-semibold px-1.5 py-0.5 rounded-full",style:{color:g.primaryText,backgroundColor:g.primary},children:L})]}),m&&(0,c.jsx)("p",{className:"text-sm mt-0.5 truncate",style:{color:g.textMuted},children:m})]})]}),null!=p&&p>0&&(0,c.jsxs)("div",{className:"text-right flex-shrink-0",children:[(0,c.jsx)("span",{className:"text-[10px] uppercase tracking-wide block",style:{color:g.textMuted},children:"Potential Payout"}),(0,c.jsx)("span",{className:"text-sm font-bold",style:{color:k},children:ct(p)})]})]}),h&&h.remaining>0&&(0,c.jsxs)("div",{className:"mt-3 sm:mt-4 p-3 rounded-lg border flex items-center justify-between gap-3",style:{backgroundColor:`${g.primary}08`,borderColor:`${g.primary}30`},children:[(0,c.jsxs)("p",{className:"text-xs",style:{color:g.textMuted},children:[1===h.remaining?"Add ":"Add up to ",(0,c.jsxs)("span",{style:{color:g.primary,fontWeight:700},children:[h.remaining," more pick",1!==h.remaining?"s":""]}),null!=h.potentialPayout&&h.potentialPayout>0&&(0,c.jsxs)(c.Fragment,{children:[" ","to win up to"," ",(0,c.jsx)("span",{style:{color:k,fontWeight:700},children:ct(h.potentialPayout)})," ","with ",h.max," picks"]})]}),(0,c.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),h.onAdd()},className:"flex-shrink-0 px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:g.buttonPrimaryText,backgroundColor:g.buttonPrimary,cursor:"pointer"},children:"Add picks"})]}),A&&(0===z.length?(0,c.jsx)("div",{className:"text-center py-8 mt-3 sm:mt-4",style:{color:g.textMuted},children:"No selections made yet"}):(0,c.jsx)("div",{id:"selection-review-list",className:"space-y-2 sm:space-y-3 mt-3 sm:mt-4",children:P.map(e=>(0,c.jsxs)("div",{className:"rounded-lg overflow-hidden border",style:{borderColor:g.border},children:[e.key&&(0,c.jsxs)("div",{className:"px-3 py-2 sm:px-3.5 sm:py-2.5 min-w-0",style:{backgroundColor:N},children:[(0,c.jsx)(No,{matchup:e.key,renderTeamLogo:d,altText:v,mutedColor:g.textAltMuted??g.textMuted??v}),e.props[0].commence_time&&(0,c.jsx)("span",{className:"text-[11px] block mt-0.5",style:{color:g.textAltMuted??g.textMuted,opacity:.7},children:dt(e.props[0].commence_time)})]}),e.props.map((o,l)=>{const s=t[o.id],a="yes"===s,i="no"===s;return(0,c.jsxs)("div",{className:"flex items-center justify-between gap-2 px-3 py-2.5 sm:gap-3 sm:px-3.5 sm:py-3",style:{backgroundColor:F,borderTop:e.key||l>0?`1px solid ${g.border}`:void 0},children:[(0,c.jsxs)("div",{className:"min-w-0 flex-1 flex items-start gap-2",children:[vo(o,d,e.key),(0,c.jsx)("p",{className:"text-sm leading-snug break-words",style:{color:v},children:o.description})]}),(0,c.jsxs)("div",{className:"flex items-center gap-1.5 flex-shrink-0 sm:gap-2",children:[u?(0,c.jsx)(Ee,{theme:x,size:"sm",value:a?"yes":i?"no":null,onYes:e=>{e.stopPropagation(),n(o.id,"yes")},onNo:e=>{e.stopPropagation(),n(o.id,"no")}}):s&&(0,c.jsx)(je,{theme:x,value:"yes"===s?"yes":"no",size:"sm"}),(0,c.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),n(o.id,t[o.id]),r()},onMouseEnter:()=>C(o.id),onMouseLeave:()=>C(null),className:"w-6 h-6 flex-shrink-0 flex items-center justify-center rounded-full transition-colors",style:{color:B===o.id?g.error:g.textAltMuted??g.textMuted,cursor:"pointer",backgroundColor:"transparent"},title:"Remove selection","aria-label":"Remove selection",children:(0,c.jsx)("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",strokeWidth:"2.5",viewBox:"0 0 24 24",children:(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})]},o.id)})]},e.key??`solo-${e.props[0].id}`))}))]}),(0,c.jsx)("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:y,borderColor:g.border,boxShadow:me(x)},children:(0,c.jsxs)("div",{className:"flex justify-between text-sm",children:[(0,c.jsx)("span",{style:{color:g.textMuted},children:"Total Selections"}),(0,c.jsx)("span",{className:"font-semibold",style:{color:g.text},children:z.length})]})}),!i&&(0,c.jsxs)("div",{className:"sticky bottom-0 z-10 -mx-4 sm:-mx-6 px-4 sm:px-6 py-3 sm:py-4 border-t flex items-center justify-between gap-3",style:{borderColor:g.border,backgroundColor:g.background},children:[(0,c.jsx)(De,{theme:x,variant:"secondary",onPress:r,children:"Back"}),(0,c.jsx)(De,{theme:x,variant:"primary",disabled:0===z.length,onPress:o,children:"Place bet"})]})]})},exports.SelectionsPage=function({onNext:e,onBack:t,hideTitle:n,hideActions:o,defaultView:r="list",view:l,onViewChange:a,hideViewSwitch:i,onSwipeDragStateChange:d,className:u=""}){const m=wo(),{selectedRule:p}=m,{theme:f,bodyFont:h,selectedGame:x,propositions:g,propositionsForSportPicker:y,selections:b,toggleSelection:w,loading:k,error:v,renderTeamLogo:N,filterSport:F,initialSport:B,gameCategory:C,selectedPropositionCount:A,handlePropositionCountChange:M,goToConfirmation:S,goBack:z,selectedCategory:L,setSelectedCategory:P,selectedSport:D,setSelectedSport:O,selectedEventId:T,propositionsForCategoryPicker:E,answeredCount:j}=m;f.colors;const[Y,H]=s.default.useState(r),R=l??Y,G=s.default.useCallback(e=>{void 0===l&&H(e),a?.(e)},[l,a]);s.default.useEffect(()=>{x||(m.goToSportSelection(),t?.())},[x,m,t]);const W=s.default.useMemo(()=>{if(!x)return null;const{min:e,max:t}=wt(x,A??void 0,p);if(e>0&&e===t)return e;const n=Jo(x);return null!=A&&A>0&&("game_set"===n||"pick_your_dividend"===n||"safety_net"===n||_o(x))?A:null},[x,A]),I=s.default.useRef(j);s.default.useEffect(()=>{const t=I.current;I.current=j,null!=W&&t<W&&j===W&&(S(),e?.())},[j,W]);const U=s.default.useMemo(()=>gt(E??[]),[E]);s.default.useEffect(()=>{x&&1===U.length&&L!==U[0]&&P(U[0])},[x,U,L,P]);const K=s.default.useMemo(()=>{const e=new Set;for(const t of y??[])t.sport&&e.add(t.sport);return Array.from(e)},[y]);if(s.default.useEffect(()=>{x&&(U.length>1&&!L||1===K.length&&D!==K[0]&&O(K[0]))},[x,U,L,K,D,O]),!x)return null;const Z=U.length>1&&!L,q=!Z&&K.length>1&&!D,$=!Z&&!q&&mn(x)&&!T,V=(()=>{if(!mn(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)}})(),X=()=>{z(),t?.()};return(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${u}`,style:{fontFamily:h},children:[!n&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(Fr,{onBack:o?X:void 0,onNext:o?e:void 0,hideActions:o})}),!mn(x)&&(0,c.jsx)(Lo,{}),(0,c.jsx)("div",{className:"flex-1",children:Z?(0,c.jsx)(br,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>P(e)}):q?(0,c.jsx)(gr,{hideTitle:!0,hideActions:!0,onSelectSport:e=>O(e)}):$?(0,c.jsx)(vr,{}):"swipe"===R?(0,c.jsx)(fr,{onBack:X,onNext:e,viewSwitch:i?void 0:(0,c.jsx)(Cr,{view:R,onChange:G}),onDragStateChange:d}):(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(Co,{game:V,propositions:g,selections:b,onToggleSelection:w,onNext:()=>{S(),e?.()},onBack:X,loading:k,error:v,theme:f,hideActions:!0,initialSport:F??B,renderTeamLogo:N,disableQuickPick:!0,selectedPropositionCount:A,onPropositionCountChange:M,gameCategory:C,headerExtra:i?void 0:(0,c.jsx)(Cr,{view:R,onChange:G})})})}),!o&&!Z&&!q&&!$&&(0,c.jsx)("div",{className:"mt-6",children:(0,c.jsx)(Br,{onNext:e,onBack:t})})]})},exports.SelectionsPageActions=Br,exports.SelectionsPageTitle=Fr,exports.SportPickerPage=gr,exports.SportPickerPageActions=function({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=wo(),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=xr,exports.SuccessPage=function({onPlayAgain:e,onDone:t,onBack:n,onShare:o,hideTitle:r,hideActions:l,className:a=""}){const i=wo(),{theme:d,bodyFont:u,headingFont:m,selectedGame:p,placedEntry:f,betAmount:h,selectedPropositionIds:x,selectedPropositions:g,selections:y,payouts:b,onShare:w}=i,k=d.colors,v=Y(d),N=k.textAlt??k.text,F=f?.proposition_ids?f.proposition_ids.length:x.length,B=b[F]??null,C=s.default.useRef(!1);return s.default.useEffect(()=>{f&&p?C.current=!1:(i.goToSportSelection(),C.current||(C.current=!0,e?e():t?.()))},[f,p,i,e,t]),f?(0,c.jsxs)("div",{className:`flex flex-col min-h-full ${a}`,style:{fontFamily:u},children:[!r&&(0,c.jsx)("div",{className:"mb-6",children:(0,c.jsx)(Lr,{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:me(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)(Mo,{iconUrl:Ne(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:S(d),fontFamily:m},children:e})})(),(0,c.jsxs)("span",{className:"text-xs font-semibold px-2 py-0.5 rounded-full flex-shrink-0",style:{color:k.primary,backgroundColor:`${k.primary}15`},children:[F," pick",1!==F?"s":""]})]}),(0,c.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"text-[10px] uppercase tracking-wide font-semibold",style:{color:k.textMuted},children:"Selections"}),(0,c.jsx)("div",{className:"text-sm font-semibold mt-0.5",style:{color:N},children:F})]}),h>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:ct(h)})]}),null!=B&&B>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:ct(B)})]})]})]}),g.length>0&&(0,c.jsxs)("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:v,borderColor:k.border,boxShadow:me(d)},children:[(0,c.jsx)("h4",{className:"text-sm sm:text-base font-semibold mb-2",style:{color:S(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:[!ht(e)&&(0,c.jsxs)(c.Fragment,{children:[e.home_team," ",(0,c.jsx)("span",{style:{color:k.textMuted},children:"vs"})," "]}),e.away_team]}),(0,c.jsx)("p",{className:"text-[11px] truncate",style:{color:k.textMuted},children:e.description})]}),null!=n&&(0,c.jsx)(je,{theme:d,value:o?"yes":"no",size:"sm",style:{flexShrink:0}})]},e.id)})})]})]})]}):null},exports.SuccessPageActions=function({onPlayAgain:e,onDone:t,onShare:n,className:o=""}){const{theme:r,reset:l,placedEntry:s,selectedGame:a,selectedPropositions:i,selections:d,betAmount:u}=wo();return r.colors,(0,c.jsxs)("div",{className:`flex items-center justify-between pt-4 ${o}`,children:[(0,c.jsx)(De,{theme:r,variant:"secondary",onPress:()=>{l(),e?.()},children:"Place Another"}),t&&(0,c.jsx)(De,{theme:r,variant:"primary",onPress:t,children:"Done"})]})},exports.SuccessPageTitle=Lr,exports.SwipeCard=mr,exports.SwipeCardFace=pr,exports.SwipeDeck=fr,exports.VISIBLE_DEPTH=3,exports.YesNoCategoryLabel=We,exports.applyTheme=ge,exports.availableGameTierTabs=Bn,exports.contrastTextColour=function(e,t="#ffffff",n="#1a1a1a"){if(!e)return n;const o=function(e){const t=e.trim().toLowerCase(),n=t.match(/^#([0-9a-f]{3,8})$/);if(n){let e=n[1];return 3!==e.length&&4!==e.length||(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}const o=t.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);return o?[Number(o[1]),Number(o[2]),Number(o[3])]:null}(e);if(!o)return n;const[r,l,s]=o.map(e=>{const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)});return.2126*r+.7152*l+.0722*s>.4?n:t},exports.darkTheme=Z,exports.defaultGameTierId=Cn,exports.defaultTheme=U,exports.defaultThemeSet=J,exports.filterGamesByTierLevel=Fn,exports.filterPropositionsToEvent=bn,exports.formatCurrency=ct,exports.formatDate=dt,exports.formatSameGameMultiEventLabel=dn,exports.fullStackPrize=Ko,exports.gameNeedsRuleSetup=Un,exports.gameSetPrize=Yo,exports.getConfirmBoostCopy=tr,exports.getGameFlow=Jo,exports.getGameSetBetConfig=Ho,exports.getJackpotInfo=kt,exports.getLadderConfig=Zo,exports.getMirrorConfig=Qo,exports.getPickYourDividendConfig=Qn,exports.getPropositionEventId=pn,exports.getRuleSetupConfig=In,exports.getSafetyNetConfig=Hn,exports.getSafetyNetPricing=zn,exports.getSportDisplayName=vt,exports.getTheme=ne,exports.getThemeSet=function(e){return{default:J,green:_,gold:ee,yesno:te}[e]||J},exports.goldLightTheme=V,exports.goldTheme=q,exports.goldThemeSet=ee,exports.greenLightTheme=$,exports.greenTheme=K,exports.greenThemeSet=_,exports.groupPropositionsBySport=ut,exports.groupSameGameMultiEvents=fn,exports.isFixedCardExactGame=_o,exports.isGameSetBetGame=jo,exports.isLadderGame=Wo,exports.isMirrorGame=Vo,exports.isOpenExactMultiGame=er,exports.isPickYourDividendGame=qn,exports.isSafetyNetGame=Sn,exports.isSameGameMultiGame=mn,exports.isSelectableSameGameMultiProposition=yn,exports.isThemeSet=I,exports.isValidSelectionCount=bt,exports.ladderCollectAt=function(e,t,n){return Io(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)},exports.ladderTiers=Uo,exports.mirrorPrize=Xo,exports.propositionsBelongToEvent=wn,exports.pydLadder=Xn,exports.pydRung=Vn,exports.resolveCategoryDisplayName=Ft,exports.resolveGameTierLevel=Nn,exports.resolvePrice=function(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0},exports.resolveSportDisplayName=Nt,exports.resolveTheme=W,exports.roundDividendAmount=Ln,exports.safetyNetCollect=On,exports.safetyNetTicket=Dn,exports.themeAccent=O,exports.themeBodyFont=he,exports.themeHeading=S,exports.themeHeadingFont=xe,exports.themeLabel=z,exports.themeSets=re,exports.themeTextAlt=E,exports.themeTextAltMuted=j,exports.themeValue=L,exports.themes=oe,exports.useBladeTheme=function(e="default"){const t=ne(e);return(0,s.useEffect)(()=>{ge(t)},[t]),t},exports.useCalculatePayout=function(e){const[t,n]=(0,s.useState)(!1),[o,r]=(0,s.useState)(null),[l,a]=(0,s.useState)(null);return{calculate:(0,s.useCallback)(async(t,o)=>{try{n(!0),r(null);const l=await e.calculatePayout(t,o);return a(l),l}catch(l){const e=l instanceof Error?l.message:"Failed to calculate payout";throw r(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:o,result:l}},exports.useCreateGameEntry=uo,exports.useEntryPreview=po,exports.useEvaluateRule=function(e){const[t,n]=(0,s.useState)(!1),[o,r]=(0,s.useState)(null),[l,a]=(0,s.useState)(null);return{evaluate:(0,s.useCallback)(async(t,o)=>{try{n(!0),r(null);const l=await e.evaluateRule(t,o);return a(l),l}catch(l){const e=l instanceof Error?l.message:"Failed to evaluate rule";throw r(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:o,result:l}},exports.useGameEntries=io,exports.useGameMaxPayouts=co,exports.useGames=lo,exports.usePlaceEntry=wo,exports.usePlaceEntryFlow=mo,exports.usePropositions=so,exports.useResolvedTheme=le,exports.useSports=ao,exports.useSwipeDeck=rr,exports.version="1.30.1";
|