@simple-parlay/components 1.30.5 → 1.30.6-pre.2

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.
Files changed (45) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/index.mjs +363 -295
  4. package/dist/react/components/EventSwipeModal.d.ts +19 -0
  5. package/dist/react/components/GameModeCard.d.ts +8 -0
  6. package/dist/react/components/PickerBrand.d.ts +7 -0
  7. package/dist/react/components/PlaceEntryProvider.d.ts +22 -3
  8. package/dist/react/components/ScrollShelf.d.ts +21 -0
  9. package/dist/react/components/SelectionVariantList.d.ts +20 -0
  10. package/dist/react/components/SelectionsPage.d.ts +1 -1
  11. package/dist/react/components/SixAgainPage.d.ts +16 -0
  12. package/dist/react/components/SportRail.d.ts +20 -0
  13. package/dist/react/components/SportSelector.d.ts +18 -1
  14. package/dist/react/components/_primitives/index.d.ts +3 -1
  15. package/dist/react/index.d.ts +15 -1
  16. package/dist/react/index.js +1 -1
  17. package/dist/react/index.mjs +363 -295
  18. package/dist/react-native/components/EventSwipeModal.d.ts +17 -0
  19. package/dist/react-native/components/GameModeCard.d.ts +9 -1
  20. package/dist/react-native/components/PickerBrand.d.ts +6 -0
  21. package/dist/react-native/components/PlaceEntryProvider.d.ts +24 -3
  22. package/dist/react-native/components/ScrollShelf.d.ts +16 -0
  23. package/dist/react-native/components/SelectionVariantList.d.ts +20 -0
  24. package/dist/react-native/components/SelectionsPage.d.ts +1 -1
  25. package/dist/react-native/components/SixAgainPage.d.ts +14 -0
  26. package/dist/react-native/components/SportRail.d.ts +21 -0
  27. package/dist/react-native/components/SportSelector.d.ts +23 -1
  28. package/dist/react-native/components/_primitives/index.d.ts +3 -1
  29. package/dist/react-native/index.d.ts +15 -1
  30. package/dist/react-native/index.js +1 -1
  31. package/dist/react-native/index.mjs +398 -336
  32. package/dist/shared/composite.d.ts +7 -0
  33. package/dist/shared/favourite-sport.d.ts +2 -0
  34. package/dist/shared/game-flow.d.ts +5 -1
  35. package/dist/shared/game-icons.d.ts +1 -1
  36. package/dist/shared/hooks.d.ts +1 -0
  37. package/dist/shared/mirror.d.ts +45 -2
  38. package/dist/shared/pick-your-dividend.d.ts +2 -1
  39. package/dist/shared/picker-brand.d.ts +6 -0
  40. package/dist/shared/selection-actions.d.ts +50 -0
  41. package/dist/shared/selection-variants.d.ts +48 -0
  42. package/dist/shared/six-again.d.ts +105 -0
  43. package/dist/shared/types.d.ts +40 -1
  44. package/dist/shared/utils.d.ts +1 -0
  45. package/package.json +1 -1
@@ -1,36 +1,37 @@
1
- import e,{createContext as t,forwardRef as n,useCallback as o,useContext as r,useEffect as l,useLayoutEffect as a,useMemo as i,useRef as s,useState as c}from"react";import{Fragment as d,jsx as u,jsxs as m}from"react/jsx-runtime";import{createPortal as p}from"react-dom";var f="#C9CDD2";function h(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 x(e){return`<table class="props">\n${e.map(e=>{return`<tr><td class="q">${t=e.question,t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}</td><td class="yes">YES</td><td class="no">NO</td></tr>`;var t}).join("\n")}\n</table>`}var g='\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 y(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 b=/^<(main|section|article|div|style|table|h[1-6]|p|ul|ol|hr)\b/i,w=/<(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 k(e){const t=e.trim();if(!t)return!1;if(v(t))return!0;const n=y(t);return!!b.test(n)||w.test(t)}function v(e){return/^<!DOCTYPE\s+html/i.test(e)||/^<html[\s>]/i.test(e)}function N(e){const t=e.trim();if(!t)return"";if(v(t))return t;const n=function(e){return/class=["']logo["']/i.test(e)?e:/<div class=["']masthead["']>/i.test(e)?e.replace(/(<div class=["']masthead["']>)/i,'$1\n <img class="logo" src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%202400%20500%22%20width%3D%222400%22%20height%3D%22500%22%3E%0A%20%20%3Ctitle%3EYESNO%20Multi%20Logo%20%E2%80%94%20Horizontal%20Master%3C%2Ftitle%3E%0A%20%20%3Cdesc%3EYESNO%20Multi%20master%20logo.%20Horizontal%20pipe%20lockup%3A%20YESNO%20wordmark%2C%20stacked%20tile%20icon%2C%20pipe%20divider%2C%20Multi%20extension%2C%20TM.%3C%2Fdesc%3E%0A%0A%20%20%3C!--%20YESNO%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase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6Wpl%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%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W6F5FOyCmuzSkeDfwW1RWw0gFqsgzVH0F8bAJDfFQfY4iFnOIvc4p%2FAbwE%2BAjwZOGSrN0EHJlTfFVOUYuJpbNyit%2FKKR4GHAB8mv7%2F7Haamix7qxjf9O56YPWQaxF5hpziD3OKi4B9gEj%2FfmF%2FCfDAS3OKl5cuRmRYcopfzyn%2BEbAX8NdUeylKy6jJMpZT%2FC5w1Ti%2B9cr6e0XM5RRvySkeRTWzdSHDuWijlAeAD1FdMfjanOKVWnclfZVTvD2n%2BGfAnsBBVFcj%2FrBsVWPyGNXPaq9NKl2AiLSP88EBC4FAtf1D2z0KfB64BEg5xXWWYfXjs%2Bewx80pfmfYY8pocj7MobrIZR7wKmAOzU%2BsrKU6ZP024Jb6dnP9zztG4c2PmiwR2SznwwuA%2BcChVL%2Bwty5b0a%2FcQnWg7ueAL%2BcUHytcj0hrOR%2B2AV5GtTRgj%2Fo2G9gJmAU4YDowDZhKdeHVOqqLY56%2BraPaVujB%2BrZ2g%2F99P3A38FOqxuou%2FUyqyRKRAdS%2FqF9N9c54f%2BCVwC4NRN8H3EB1deB1wDdzij9rIFdEZNzUZInIhDgfnkP17vhFwO7ArlSN107A9vVtW6p3yFsBU6jeFf%2Byvq0DHgLupdpw8R7gP4BbqT5auDmnuLap%2ByMiMiz%2FCXQ4TDPqI2KNAAAAAElFTkSuQmCC%22%20x%3D%221430%22%20y%3D%22148%22%20width%3D%22601%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20TM%20superscript%20at%20top-right%20of%20Multi%20--%3E%0A%20%20%3Ctext%20x%3D%222045%22%20y%3D%22190%22%20font-family%3D%22Manrope%2C%20Poppins%2C%20sans-serif%22%20font-size%3D%2256%22%20font-weight%3D%22600%22%20fill%3D%22%230F4C5C%22%3ETM%3C%2Ftext%3E%0A%3C%2Fsvg%3E%0A" alt="YESNO Multi" />'):e}(function(e){return/<table\s+class=["']props["']/i.test(e)?e:function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=0;for(;o<t.length;){const e=h(t[o]);if(e){const r=[e];let l=o+1;for(;l<t.length;){const e=h(t[l]);if(!e)break;r.push(e),l+=1}n.push(x(r)),o=l;continue}n.push(t[o]),o+=1}return n.join("\n")}(function(e){const t=/<p(?:\s[^>]*)?>([\s\S]*?)<\/p>/gi;let n,o="",r=0;const l=[],a=()=>{0!==l.length&&(o+=x([...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=>h(e));i.length>0&&i.every(e=>null!==e)?l.push(...i):(a(),o+=n[0]),r=t.lastIndex}return a(),o+=e.slice(r),o}(e))}(function(e){const t=y(e),n=t.match(/^<main[^>]*>([\s\S]*)<\/main>$/i);return n?n[1].trim():t}(t)));return`<!DOCTYPE html>\n<html lang="en-AU">\n<head>\n<meta charset="UTF-8">\n<meta name="viewport" content="width=device-width, initial-scale=1.0">\n<title>YES NO - How to Play</title>\n<style>${g}</style>\n</head>\n<body>\n<main class="page">\n${n}\n</main>\n</body>\n</html>`}function F({content:e,className:t=""}){const n=N(e);return n?/* @__PURE__ */u("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 B=/^(#{1,3})\s+(.+)$/,C=/^[-*]\s+(.+)$/,A=/^-{3,}$/;function M({rows:e,className:t=""}){return 0===e.length?null:/* @__PURE__ */u("table",{className:`w-full border-collapse my-2 ${t}`,style:{fontSize:15},children:/* @__PURE__ */u("tbody",{children:e.map((e,t)=>/* @__PURE__ */m("tr",{children:[
2
- /* @__PURE__ */u("td",{className:"align-middle",style:{width:"64%",backgroundColor:"#F9FAFB",border:`1px solid ${f}`,padding:"11px 14px"},children:e.question}),
3
- /* @__PURE__ */u("td",{className:"align-middle text-center font-bold tracking-wide",style:{backgroundColor:"#DCFCE7",color:"#166534",border:`1px solid ${f}`,padding:"11px 14px"},children:"YES"}),
4
- /* @__PURE__ */u("td",{className:"align-middle text-center font-bold tracking-wide",style:{backgroundColor:"#FEE2E2",color:"#991B1B",border:`1px solid ${f}`,padding:"11px 14px"},children:"NO"})]},t))})})}function S({text:e,colors:t,bodyFont:n}){const o=function(e){const t=[],n=/\*\*(.+?)\*\*/g;let o,r=0;for(;null!==(o=n.exec(e));)o.index>r&&t.push({text:e.slice(r,o.index),bold:!1}),t.push({text:o[1],bold:!0}),r=o.index+o[0].length;return r<e.length&&t.push({text:e.slice(r),bold:!1}),0===t.length&&t.push({text:e,bold:!1}),t}(e);/* @__PURE__ */
5
- return u(d,{children:o.map((e,o)=>/* @__PURE__ */u("span",{style:{fontWeight:e.bold?700:400,color:e.bold?t.text:t.textMuted,fontFamily:n},children:e.text},o))})}function z({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=>h(e));if(t.every(e=>null!==e))return n.push({type:"propsTable",rows:t}),void(o=[])}const t=o.join(" ").trim();t&&n.push({type:"paragraph",text:t}),o=[]},a=()=>{r.length>0&&(n.push({type:"list",items:[...r]}),r=[])};for(const i of t){const e=i.trim();if(!e){a(),l();continue}const t=e.match(B);if(t){a(),l(),n.push({type:"heading",level:Math.min(t[1].length,3),text:t[2].trim()});continue}if(A.test(e)){a(),l(),n.push({type:"hr"});continue}const s=e.match(C);s?(l(),r.push(s[1].trim())):(a(),o.push(e))}return a(),l(),n}(e);/* @__PURE__ */
6
- return u("div",{className:`flex flex-col gap-4 ${r}`,style:{fontFamily:n},children:l.map((e,r)=>"heading"===e.type?/* @__PURE__ */u("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:/* @__PURE__ */u(S,{text:e.text,colors:t,bodyFont:o??n})},r):"paragraph"===e.type?/* @__PURE__ */u("p",{className:"text-sm leading-relaxed",style:{color:t.textMuted,margin:0,fontFamily:n},children:/* @__PURE__ */u(S,{text:e.text,colors:t,bodyFont:n})},r):"list"===e.type?/* @__PURE__ */u("ul",{className:"text-sm leading-relaxed pl-5",style:{color:t.textMuted,margin:0,fontFamily:n},children:e.items.map((e,o)=>/* @__PURE__ */u("li",{style:{marginBottom:6},children:/* @__PURE__ */u(S,{text:e,colors:t,bodyFont:n})},o))},r):"propsTable"===e.type?/* @__PURE__ */u(M,{rows:e.rows},r):/* @__PURE__ */u("hr",{style:{border:"none",borderTop:`1px solid ${t.border}`,margin:"4px 0"}},r))})}function L(e){return e.colors.heading??e.colors.text}function P(e){return e.colors.label??e.colors.text}function D(e){return e.colors.value??e.colors.text}function O(e){return e.colors.productYes??"#00C853"}function T(e){return e.colors.productNo??"#E53935"}function E(e){return e.brand?.accent??e.colors.primary}function j(e,t,n){const o=t?.trim().toLowerCase()===e.trim().toLowerCase();return t&&!o?t:n}function Y(e){return e.colors.textAlt??e.colors.text}function H(e){return e.colors.textAltMuted??e.colors.textMuted}function R(e){return e.colors.selectionCard??e.colors.surface??e.colors.backgroundAlt}function G(e){return e.colors.matchupHeader??e.colors.backgroundAlt}function W(e){return e.colors.selectionProp??e.colors.background}function I(e){return{textMuted:e.colors.textMuted,border:e.colors.border,background:e.colors.background,backgroundAlt:e.colors.backgroundAlt,primary:e.colors.primary,selectionCard:R(e)}}function U(e,t="light"){return e?K(e)?"dark"===t?e.dark:e.light:e:Z}function K(e){return"light"in e&&"dark"in e&&!("colors"in e)}var Z={name:"default",colorScheme:"light",colors:{primary:"#3b82f6",primaryHover:"#2563eb",primaryText:"#ffffff",payoutWinning:"#22c55e",payoutNone:"#e5e7eb",success:"#10b981",successBg:"#dcfce7",successText:"#166534",error:"#ef4444",errorBg:"#fee2e2",errorText:"#991b1b",warning:"#f59e0b",warningBg:"#fef3c7",warningText:"#92400e",info:"#3b82f6",infoBg:"#dbeafe",infoText:"#1e3a8a",border:"#d1d5db",borderFocus:"#3b82f6",background:"#ffffff",backgroundAlt:"#f9fafb",selectionCard:"#f9fafb",matchupHeader:"#eff6ff",selectionProp:"#ffffff",text:"#111827",textAlt:"#111827",textAltMuted:"#9ca3af",textMuted:"#6b7280",buttonPrimary:"#3b82f6",buttonPrimaryHover:"#2563eb",buttonPrimaryText:"#ffffff",buttonSecondary:"#e5e7eb",buttonSecondaryHover:"#d1d5db",buttonSecondaryText:"#374151"}},$={name:"green",colorScheme:"dark",fonts:{body:"Inter",heading:"Inter",mono:"JetBrainsMono"},colors:{primary:"#00E676",primaryHover:"#00C853",primaryText:"#0a0a0a",payoutWinning:"#34d399",payoutNone:"#3f3f46",success:"#00E676",successBg:"#0d2818",successText:"#a7f3d0",error:"#ff5252",errorBg:"#2d1215",errorText:"#fca5a5",warning:"#ffab40",warningBg:"#2d1f0a",warningText:"#fde68a",info:"#40c4ff",infoBg:"#0a1e2d",infoText:"#bae6fd",border:"#2a2a2e",borderFocus:"#00E676",background:"#121214",backgroundAlt:"#1a1a1e",selectionCard:"#1e1e22",matchupHeader:"#0f2419",selectionProp:"#161618",text:"#e4e4e7",textAlt:"#e4e4e7",textAltMuted:"#a1a1aa",textMuted:"#71717a",heading:"#ffffff",label:"#a1a1aa",value:"#00E676",buttonPrimary:"#00E676",buttonPrimaryHover:"#00C853",buttonPrimaryText:"#0a0a0a",buttonSecondary:"#27272a",buttonSecondaryHover:"#3f3f46",buttonSecondaryText:"#e4e4e7"},brand:{accent:"#DFFF1A"}},q={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"}},V={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"}},X={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"}},Q={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"}},J={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"}},_={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"}},ee={light:Z,dark:q},te={light:X,dark:$},ne={light:Q,dark:V},oe={light:J,dark:_};function re(e){return{default:Z,green:$,"green-light":X,dark:q,gold:V,"gold-light":Q,yesno:_,"yesno-light":J}[e]||Z}function le(e){return{default:ee,green:te,gold:ne,yesno:oe}[e]||ee}var ae={default:Z,green:$,"green-light":X,dark:q,gold:V,"gold-light":Q,yesno:_,"yesno-light":J},ie={default:ee,green:te,gold:ne,yesno:oe};function se(e,t="light"){return U(e,t)}function ce(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 de={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:48},ue={xs:4,sm:8,md:12,lg:16,xl:24,pill:999},me={xs:11,sm:13,md:14,lg:16,xl:18,xxl:22,display:28},pe={min:44};function fe(e){const t="dark"===e.colorScheme,n=e.colors;return{space:{...de},radius:{...ue},fontSize:{...me},touchTarget:{...pe},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??ce(n.border,t?.6:.5)},isDark:t}}function he(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 xe(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 ge(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 ${ce(o,.9)}`,`0 0 0 ${n+5}px ${ce(o,.18)}`].join(", ")}function ye(e){return e.fonts?.body??"inherit"}function be(e){return e.fonts?.heading??e.fonts?.body??"inherit"}function we(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)}function ke(e="default"){const t=re(e);return l(()=>{we(t)},[t]),t}var ve="game-icon:",Ne={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>'},Fe={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"},Be={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 Ce(e){if(e.quick_pick_only)return"quickpick";const t=Be[e.rule?.trim().toLowerCase()??""];if(t)return t;const n=(e.game_name??"").toLowerCase().replace(/[^a-z0-9]+/g,"");return Fe[n]??"unknown"}function Ae(e){return`${ve}${Ce(e)}`}function Me(e){if(!function(e){return e.startsWith(ve)}(e))return null;const t=e.slice(10);return Ne[t]??Ne.unknown}var Se={text:"YES",tone:"yes"},ze={text:"NO",tone:"no"},Le=[{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"}],Pe=["zero","one","two","three","four","five","six","seven","eight"],De=[{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."}],Oe=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."}],Te={perfect_pick:{summary:["Perfect Pick is the multi you already know, with one big difference. You pick ",Se," or ",ze," across your legs, every leg has to land, and one perfect card takes the prize."],steps:De,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 ",Se," or ",ze," on each matchup, land every leg, and the card pays."],steps:De,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},total_points:{summary:["Total Points is all about the scoreboard. Call ",Se," or ",ze," on each total, land every leg, and the card pays."],steps:De,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},quickpick:{summary:["QuickPick fills the card for you. We generate the ",Se," and ",ze," 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 ",Se," or ",ze," 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:Oe("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 ",Se," or ",ze," on every leg — reach the first rung and you start winning, and every rung after that stacks another prize on top."],steps:Oe("ladder"),demoPrompt:"Try a {n}-leg ladder — the climb starts at {n1} right."},game_set:{summary:["Game Set Bet is straight sets. Pick ",Se," or ",ze," on every leg — each extra leg doubles the prize, and a clean card takes the lot."],steps:Oe("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 ",Se," or ",ze," on every leg — land them all and the entry pays the dividend you picked."],steps:Oe("dividend"),demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},mirror:{summary:["Mirror pays both ways. Pick ",Se," or ",ze," 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:Oe("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 ",Se," or ",ze," across the game — land every leg and the card pays."],steps:De,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."}};function Ee(e){if(!e)return null;const t=Ce(e),n=Te[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),Le.length)}}(e),a=e=>e.replace(/\{min\}/g,String(o>0?o:2)).replace(/\{max\}/g,String(r>0?r:12));return{id:t,...n,steps:n.steps.map(e=>({...e,detail:a(e.detail)})),demoLegs:Le.slice(0,l),demoPrompt:a(n.demoPrompt).replace(/\{n1\}/g,Pe[l-1]??String(l-1)).replace(/\{n\}/g,Pe[l]??String(l))}}var je=n(function({theme:t,variant:n="primary",size:o="md",disabled:r,block:l,radius:a="md",onPress:i,onDoubleClick:s,type:c="button",className:d,style:m,children:p,ariaLabel:f},h){const x=fe(t),g=t.colors,[y,b]=e.useState(!1),[w,k]=e.useState(!1),[v,N]=e.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:ce(g.text,x.isDark?.08:.05),fg:g.text,border:"transparent"},danger:{bg:g.error,bgHover:ce(g.error,.85),fg:(g.errorText&&(g.errorText,g.error),"#ffffff"),border:g.error}}[n];/* @__PURE__ */
7
- return u("button",{ref:h,type:c,disabled:r,"aria-label":f,className:d,onClick:r?void 0:i,onDoubleClick:r?void 0:s,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:l?"100%":void 0,minHeight:F[o].h,padding:`0 ${F[o].px}px`,fontSize:F[o].fs,fontWeight:500,fontFamily:"inherit",lineHeight:1.2,color:C.fg,background:y&&!r?C.bgHover:C.bg,border:`1px solid ${C.border}`,borderRadius:B[a],cursor:r?"not-allowed":"pointer",opacity:r?.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?ge(t):"none",outline:"none",...m},children:p})}),Ye={xs:{padding:"3px 10px",fontSize:11},sm:{padding:"6px 14px",fontSize:13},md:{padding:"8px 18px",fontSize:14}};function He(e,t,n,o,r){const l=fe(e);return{appearance:"none",padding:Ye[o].padding,borderRadius:l.radius.sm,fontSize:Ye[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 Re({theme:e,value:t,onYes:n,onNo:o,size:r="md",disabled:l,yesLabel:a="Yes",noLabel:i="No",className:s,style:c}){/* @__PURE__ */
8
- return m("div",{className:s,style:{display:"flex",gap:8,flexShrink:0,...c},children:[/* @__PURE__ */u("button",{type:"button","aria-pressed":"yes"===t,disabled:l,onClick:l?void 0:n,style:He(e,"yes"===t,O(e),r,l),children:a}),/* @__PURE__ */u("button",{type:"button","aria-pressed":"no"===t,disabled:l,onClick:l?void 0:o,style:He(e,"no"===t,T(e),r,l),children:i})]})}function Ge({theme:e,value:t,size:n="md",style:o}){const r=fe(e);/* @__PURE__ */
9
- return u("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?O(e):T(e),...o},children:"yes"===t?"Yes":"No"})}function We({segments:t,theme:n}){/* @__PURE__ */
10
- return u("p",{className:"m-0 text-[14px] leading-[1.55]",style:{color:n.colors.text},children:t.map((t,o)=>"string"==typeof t?/* @__PURE__ */u(e.Fragment,{children:t},o):/* @__PURE__ */u("span",{className:"font-extrabold",style:{color:"yes"===t.tone?O(n):T(n)},children:t.text},o))})}function Ie({panel:e,theme:t,dividends:n,bodyFont:o,headingFont:r,className:l=""}){const a=t.colors,i=t.brand?.accent??a.primaryText,s=R(t),[d,p]=c("learn"),[f,h]=c(()=>e.demoLegs.map(()=>null)),[x,g]=c(!1),y=e.demoLegs.length,b=f.filter(e=>null!=e).length,w=b===y,k=e.demoLegs.filter((e,t)=>f[t]===e.outcome).length,v=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,k,y),N=(e,t)=>{x||h(n=>n.map((n,o)=>o===e?t:n))},F=x?"Settled":`${b} of ${y} called`,B=!x&&w,C=e=>({fontFamily:r,backgroundColor:e?a.primary:"transparent",color:e?a.primaryText:a.textMuted,cursor:"pointer"});/* @__PURE__ */
1
+ import e,{createContext as t,forwardRef as n,useCallback as o,useContext as r,useEffect as l,useLayoutEffect as a,useMemo as i,useRef as s,useState as c}from"react";import{Fragment as d,jsx as u,jsxs as m}from"react/jsx-runtime";import{createPortal as p}from"react-dom";var h="#C9CDD2";function f(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 x(e){return`<table class="props">\n${e.map(e=>{return`<tr><td class="q">${t=e.question,t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}</td><td class="yes">YES</td><td class="no">NO</td></tr>`;var t}).join("\n")}\n</table>`}var g='\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 y(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 b=/^<(main|section|article|div|style|table|h[1-6]|p|ul|ol|hr)\b/i,w=/<(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 k(e){const t=e.trim();if(!t)return!1;if(v(t))return!0;const n=y(t);return!!b.test(n)||w.test(t)}function v(e){return/^<!DOCTYPE\s+html/i.test(e)||/^<html[\s>]/i.test(e)}function N(e){const t=e.trim();if(!t)return"";if(v(t))return t;const n=function(e){return/class=["']logo["']/i.test(e)?e:/<div class=["']masthead["']>/i.test(e)?e.replace(/(<div class=["']masthead["']>)/i,'$1\n <img class="logo" src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%202400%20500%22%20width%3D%222400%22%20height%3D%22500%22%3E%0A%20%20%3Ctitle%3EYESNO%20Multi%20Logo%20%E2%80%94%20Horizontal%20Master%3C%2Ftitle%3E%0A%20%20%3Cdesc%3EYESNO%20Multi%20master%20logo.%20Horizontal%20pipe%20lockup%3A%20YESNO%20wordmark%2C%20stacked%20tile%20icon%2C%20pipe%20divider%2C%20Multi%20extension%2C%20TM.%3C%2Fdesc%3E%0A%0A%20%20%3C!--%20YESNO%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAA68AAADMCAYAAACcEJWAAABCUUlEQVR4nO3dd7xcRfnH8U9ooU%2BQDiIdpHcRRbEgII69IQ5SRRCQgPSiCNKlinQBZUQRUJRBwYIiSBWUDqIUKQJCyFBMQkjy%2B2NOfoaQ3Oy9d3efc3a%2F79drXze5udn5brm7%2B5wz88wIREREpOOcDwsDSwALAQ4YVX1dAJhzmstcwAhgYnV5rfo6DngRGDvN1%2BeA53KKU7p2Q0REeojzYQFgJcrr82LVZfFp%2FrwwMDcwcpqvUy9zUV6fJ0xzGT%2FNn8cAz1K9Vk%2Fz52eBf%2BYUX%2BzGbewlI6wDiIiI9ALnw4LAKtNcVgaWAZYGlqJ86OmE14CngCeBJ4CHgQeAB4GHcorjOzSuiEhjOB%2BWA9YEVqW8Rk%2F9uqRhrP8AD1WXv1df78sp%2FsMwU62peBURERkk58NiwAbTXNYH3mYaasYmA%2F8Ebgduqy5%2FVUErIr3M%2BTAfsCGwCfDO6rK4aajBeR64FbgFuBm4Laf4sm2kelDxKiIiMgvOh6WBzarL%2ByhH65tqIuVD0e%2Bqy605xddtI4mIDJ3zYTZgY8ADWwHrALObhmqvycC9wLVAAv6cU5xkG8lG3xevzocLgR2sc7TohznF7a1D9BLnw8VAsM7Rogtyiju344qcD1of18dyin3%2F2j8r1QehTYCPVpfVbRN11MvAb4ErgJRTfMk4T9cYvRZ%2BNqd4ucG4gs1jrtfcznA%2BOGBLSsH6YWAR20Rd9SL%2FK2R%2FnVMcY5yna%2Fr%2Bl8n5sARljvkC1llaMAXYJKd4q3WQXuB82JgyFaMJvwcvA6vkFJ9px5WpeO1v%2BiA1Y86H2YH3A9tSCtZ%2B%2BiA01QRKIftT4PKc4jjjPB1l9Fr4HLB6TvEFg7H7norXZnM%2BzAFsDewIfITS5K7fTQKuAS4Ersopvmacp6N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2BBNwW05xsm0kEZHWOR9mBzYBPkJ5nV6L3po5M5nSa%2BBaSsF6Y07xddtINlS8ioiIDJLzYRnKB6Wpl%2FVoxpnZKcAj%2FK9YvRF4IKc4xTSViEgbVQccN6K8Pr8T2JhmTRkfA9wK3ALcDNxadWPueypeRUREhsn5MBJYHVijuqxZfX0bNkf%2FJwGPUo7UT3t5IKf4X4M8IiKmnA8rUF6bV6V0Mp76dXHDWC8AD1WXv1df78sp%2Ft0wU62peBUREekQ58McwNKUIvZtwDLAEpS1WQtN83UBYCQwJ%2BUM7pyUvhQTgfHTXcZVl7HAv2dyebrXm3aIiLSD88FRloIsSTk7uxiloJ3654UpXehHzuAyF%2FA65bV5wnSX8ZTuv89Segk8N82fnwH%2BmVMc043b2Ev%2BD9aR9w7mNio3AAAAAElFTkSuQmCC%22%20x%3D%2240%22%20y%3D%22148%22%20width%3D%22940%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20Stacked%20tile%20icon%2C%20vector%20%E2%80%94%20proportional%20to%20wordmark%20height%20--%3E%0A%20%20%3Cg%20transform%3D%22translate(1040%2C%20130)%22%3E%0A%20%20%20%20%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%2F%3E%0A%20%20%20%20%3Crect%20x%3D%2240%22%20y%3D%2240%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%20opacity%3D%220.55%22%2F%3E%0A%20%20%20%20%3Crect%20x%3D%2280%22%20y%3D%2280%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%20opacity%3D%220.30%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%0A%20%20%3C!--%20Pipe%20divider%20in%20teal-700%20--%3E%0A%20%20%3Crect%20x%3D%221380%22%20y%3D%22150%22%20width%3D%226%22%20height%3D%22200%22%20fill%3D%22%2314687C%22%2F%3E%0A%0A%20%20%3C!--%20Multi%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAlkAAADMCAYAAABAzLaeAAAcwklEQVR4nO3de7hdVXnv8W8uJECCAwJSJYAgpIpaiNVSK4FWactt6FGb4FEHSdVCLJKICSRIn16O55weTkK4i8q1lYGiqNUyQKwWL9QLpVYLKhYUQUAqtzAEAcMl%2FWNObKC57LX3eueYc67f53nWg8Le4%2Feuy977XWONOcYkRERExsj5sN5y%2FJziJMvxRZo0uXQBIiIiIn00tXQBIiIiIiVYz8xqJktERETEwFTDLu6wnOLVRmPLCHE%2BrAGWWYyt9R8iImLFcibrfYZjy4hwPuwAHFO6DhERkUFZNlkHOR9ebTi%2BjIYlwMzSRYiIiAzKek3WycbjS485H7alarJEREQ6x7rJOsL5sK9xhvTX0cBOpYsQEREZjyauLjypgQzpGefDVsDy0nWIiIiMVxNN1pHOh70ayJF%2BeRuwW%2BkiRERExquJJmsKsKKBHOkJ58MkYGXpOkRERCaiqR3fFzkf%2FiqneHdDedJtbwReXLoIEZFh0rmPo6epHd%2BnY7SZpPSSZrFERKTzmjxW5131xpIim%2BR8OBjYv3QdIiIiE9VkkzUT7XkkW6aTAkREpBeaPiB6qfNhRsOZ0hHOh1cCB5euQ0REZBiabrJ2pNpgUmRjNIslIiK90XSTBbDc%2BTCtQK60mPPhRcAbStchIiIyLCWarF2BowrkSrutpMzrUURExESpP2ornQ%2F6gyoAOB92BULpOkRERIapVKMzB5hfKFvaZzmwVekiREREhqnkbJIOjhacD7oYQkREeqlkk%2FVy58OhBfOlHZYC2tZDRER6p%2FS6KF2yP8LqPdOOK12HiIiIhdJN1kHOhwMK1yDlLAZmlS5CRETEQukmCzSbNZLqvdJ0aLiIiPTW1NIFAEc4H%2FbNKd5QuhBp1FHA7NJFiIjI6MopTrIcvw0zWaArDUdKvUfaitJ1iIiI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M8BLcorn6pgcabuc4meBF1P9TdHrtUPUZNlaA0xkfccTwGlDqkUEgJzitcBc4H8zekfxXAf8Xk7xjfW6F5FOyCmuzSkeDfwW1RWw0gFqsgzVH0F8bAJDfFQfY4iFnOIvc4p%2FAbwE%2BAjwZOGSrN0EHJlTfFVOUYuJpbNyit%2FKKR4GHAB8mv7%2F7Haamix7qxjf9O56YPWQaxF5hpziD3OKi4B9gEj%2FfmF%2FCfDAS3OKl5cuRmRYcopfzyn%2BEbAX8NdUeylKy6jJMpZT%2FC5w1Ti%2B9cr6e0XM5RRvySkeRTWzdSHDuWijlAeAD1FdMfjanOKVWnclfZVTvD2n%2BGfAnsBBVFcj%2FrBsVWPyGNXPaq9NKl2AiLSP88EBC4FAtf1D2z0KfB64BEg5xXWWYfXjs%2Bewx80pfmfYY8pocj7MobrIZR7wKmAOzU%2BsrKU6ZP024Jb6dnP9zztG4c2PmiwR2SznwwuA%2BcChVL%2Bwty5b0a%2FcQnWg7ueAL%2BcUHytcj0hrOR%2B2AV5GtTRgj%2Fo2G9gJmAU4YDowDZhKdeHVOqqLY56%2BraPaVujB%2BrZ2g%2F99P3A38FOqxuou%2FUyqyRKRAdS%2FqF9N9c54f%2BCVwC4NRN8H3EB1deB1wDdzij9rIFdEZNzUZInIhDgfnkP17vhFwO7ArlSN107A9vVtW6p3yFsBU6jeFf%2Byvq0DHgLupdpw8R7gP4BbqT5auDmnuLap%2ByMiMiz%2FCXQ4TDPqI2KNAAAAAElFTkSuQmCC%22%20x%3D%221430%22%20y%3D%22148%22%20width%3D%22601%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20TM%20superscript%20at%20top-right%20of%20Multi%20--%3E%0A%20%20%3Ctext%20x%3D%222045%22%20y%3D%22190%22%20font-family%3D%22Manrope%2C%20Poppins%2C%20sans-serif%22%20font-size%3D%2256%22%20font-weight%3D%22600%22%20fill%3D%22%230F4C5C%22%3ETM%3C%2Ftext%3E%0A%3C%2Fsvg%3E%0A" alt="YESNO Multi" />'):e}(function(e){return/<table\s+class=["']props["']/i.test(e)?e:function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=0;for(;o<t.length;){const e=f(t[o]);if(e){const r=[e];let l=o+1;for(;l<t.length;){const e=f(t[l]);if(!e)break;r.push(e),l+=1}n.push(x(r)),o=l;continue}n.push(t[o]),o+=1}return n.join("\n")}(function(e){const t=/<p(?:\s[^>]*)?>([\s\S]*?)<\/p>/gi;let n,o="",r=0;const l=[],a=()=>{0!==l.length&&(o+=x([...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=>f(e));i.length>0&&i.every(e=>null!==e)?l.push(...i):(a(),o+=n[0]),r=t.lastIndex}return a(),o+=e.slice(r),o}(e))}(function(e){const t=y(e),n=t.match(/^<main[^>]*>([\s\S]*)<\/main>$/i);return n?n[1].trim():t}(t)));return`<!DOCTYPE html>\n<html lang="en-AU">\n<head>\n<meta charset="UTF-8">\n<meta name="viewport" content="width=device-width, initial-scale=1.0">\n<title>YES NO - How to Play</title>\n<style>${g}</style>\n</head>\n<body>\n<main class="page">\n${n}\n</main>\n</body>\n</html>`}function C({content:e,className:t=""}){const n=N(e);return n?/* @__PURE__ */u("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 F=/^(#{1,3})\s+(.+)$/,B=/^[-*]\s+(.+)$/,A=/^-{3,}$/;function M({rows:e,className:t=""}){return 0===e.length?null:/* @__PURE__ */u("table",{className:`w-full border-collapse my-2 ${t}`,style:{fontSize:15},children:/* @__PURE__ */u("tbody",{children:e.map((e,t)=>/* @__PURE__ */m("tr",{children:[
2
+ /* @__PURE__ */u("td",{className:"align-middle",style:{width:"64%",backgroundColor:"#F9FAFB",border:`1px solid ${h}`,padding:"11px 14px"},children:e.question}),
3
+ /* @__PURE__ */u("td",{className:"align-middle text-center font-bold tracking-wide",style:{backgroundColor:"#DCFCE7",color:"#166534",border:`1px solid ${h}`,padding:"11px 14px"},children:"YES"}),
4
+ /* @__PURE__ */u("td",{className:"align-middle text-center font-bold tracking-wide",style:{backgroundColor:"#FEE2E2",color:"#991B1B",border:`1px solid ${h}`,padding:"11px 14px"},children:"NO"})]},t))})})}function S({text:e,colors:t,bodyFont:n}){const o=function(e){const t=[],n=/\*\*(.+?)\*\*/g;let o,r=0;for(;null!==(o=n.exec(e));)o.index>r&&t.push({text:e.slice(r,o.index),bold:!1}),t.push({text:o[1],bold:!0}),r=o.index+o[0].length;return r<e.length&&t.push({text:e.slice(r),bold:!1}),0===t.length&&t.push({text:e,bold:!1}),t}(e);/* @__PURE__ */
5
+ return u(d,{children:o.map((e,o)=>/* @__PURE__ */u("span",{style:{fontWeight:e.bold?700:400,color:e.bold?t.text:t.textMuted,fontFamily:n},children:e.text},o))})}function z({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=>f(e));if(t.every(e=>null!==e))return n.push({type:"propsTable",rows:t}),void(o=[])}const t=o.join(" ").trim();t&&n.push({type:"paragraph",text:t}),o=[]},a=()=>{r.length>0&&(n.push({type:"list",items:[...r]}),r=[])};for(const i of t){const e=i.trim();if(!e){a(),l();continue}const t=e.match(F);if(t){a(),l(),n.push({type:"heading",level:Math.min(t[1].length,3),text:t[2].trim()});continue}if(A.test(e)){a(),l(),n.push({type:"hr"});continue}const s=e.match(B);s?(l(),r.push(s[1].trim())):(a(),o.push(e))}return a(),l(),n}(e);/* @__PURE__ */
6
+ return u("div",{className:`flex flex-col gap-4 ${r}`,style:{fontFamily:n},children:l.map((e,r)=>"heading"===e.type?/* @__PURE__ */u("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:/* @__PURE__ */u(S,{text:e.text,colors:t,bodyFont:o??n})},r):"paragraph"===e.type?/* @__PURE__ */u("p",{className:"text-sm leading-relaxed",style:{color:t.textMuted,margin:0,fontFamily:n},children:/* @__PURE__ */u(S,{text:e.text,colors:t,bodyFont:n})},r):"list"===e.type?/* @__PURE__ */u("ul",{className:"text-sm leading-relaxed pl-5",style:{color:t.textMuted,margin:0,fontFamily:n},children:e.items.map((e,o)=>/* @__PURE__ */u("li",{style:{marginBottom:6},children:/* @__PURE__ */u(S,{text:e,colors:t,bodyFont:n})},o))},r):"propsTable"===e.type?/* @__PURE__ */u(M,{rows:e.rows},r):/* @__PURE__ */u("hr",{style:{border:"none",borderTop:`1px solid ${t.border}`,margin:"4px 0"}},r))})}function L(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 P={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:48},T={xs:4,sm:8,md:12,lg:16,xl:24,pill:999},D={xs:11,sm:13,md:14,lg:16,xl:18,xxl:22,display:28},O={min:44};function E(e){const t="dark"===e.colorScheme,n=e.colors;return{space:{...P},radius:{...T},fontSize:{...D},touchTarget:{...O},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??L(n.border,t?.6:.5)},isDark:t}}function j(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 Y(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 H(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 ${L(o,.9)}`,`0 0 0 ${n+5}px ${L(o,.18)}`].join(", ")}function R(e){return e.colors.heading??e.colors.text}function G(e){return e.colors.label??e.colors.text}function W(e){return e.colors.value??e.colors.text}function I(e){return e.colors.productYes??"#00C853"}function U(e){return e.colors.productNo??"#E53935"}function $(e){return e.brand?.accent??e.colors.primary}function K(e,t,n){const o=t?.trim().toLowerCase()===e.trim().toLowerCase();return t&&!o?t:n}function Z(e){return e.colors.textAlt??e.colors.text}function q(e){return e.colors.textAltMuted??e.colors.textMuted}function V(e){return e.colors.selectionCard??e.colors.surface??e.colors.backgroundAlt}function X(e){return e.colors.matchupHeader??e.colors.backgroundAlt}function Q(e){return e.colors.selectionProp??e.colors.background}function J(e){return{textMuted:e.colors.textMuted,border:e.colors.border,background:e.colors.background,backgroundAlt:e.colors.backgroundAlt,primary:e.colors.primary,selectionCard:V(e)}}function _(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"}},ne={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"}},oe={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"}},re={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"}},le={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"}},ae={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"}},ie={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"}},se={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"}},ce={light:te,dark:oe},de={light:le,dark:ne},ue={light:ae,dark:re},me={light:ie,dark:se};function pe(e){return{default:te,green:ne,"green-light":le,dark:oe,gold:re,"gold-light":ae,yesno:se,"yesno-light":ie}[e]||te}function he(e){return{default:ce,green:de,gold:ue,yesno:me}[e]||ce}var fe={default:te,green:ne,"green-light":le,dark:oe,gold:re,"gold-light":ae,yesno:se,"yesno-light":ie},xe={default:ce,green:de,gold:ue,yesno:me};function ge(e,t="light"){return _(e,t)}function ye(e){return e.fonts?.body??"inherit"}function be(e){return e.fonts?.heading??e.fonts?.body??"inherit"}function we(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)}function ke(e="default"){const t=pe(e);return l(()=>{we(t)},[t]),t}var ve="game-icon:",Ne={perfect_pick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Perfect Pick.\n Single-glyph identifier ("100%") on a transparent background.\n\n Themable: the digits use currentColor (primary tone) and the\n trailing % uses the icon-accent CSS variable (default #DFFF1A).\n\n Laid out with geometry, not font metrics: two separate single-chunk <text>\n elements at explicit x, each pinned with textLength, and an explicit baseline\n y instead of dominant-baseline. react-native-svg anchors each <tspan> as its\n own chunk and ignores letter-spacing, so the old one-text/two-tspan version\n drifted off centre on native and pushed the % outside the viewBox. Combined\n extent is 8..92, centred on 50, whatever font actually resolves.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <text x="8" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="56"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">100</text>\n <text x="66" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="26"\n lengthAdjust="spacingAndGlyphs"\n fill="var(--icon-accent, #DFFF1A)">%</text>\n</svg>',head_to_head:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Head to Head.\n Two arrowheads clashing across a citron diamond. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Source design lives in an 80×60 box; centre it in 100×100 by\n shifting (10, 20) so the diamond at (40,30) lands at (50,50). --\x3e\n \x3c!-- Themable: arrowheads use currentColor (primary tone), the\n centre diamond uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(10, 20)">\n <path d="M 6 14 L 32 30 L 6 46 L 18 30 Z" fill="currentColor"/>\n <path d="M 74 14 L 48 30 L 74 46 L 62 30 Z" fill="currentColor"/>\n <polygon points="40,20 50,30 40,40 30,30" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',total_points:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Total Points.\n Sigma glyph with italic X superscript. Transparent background;\n rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Sigma + italic X superscript, centred together in the viewBox.\n Sigma 90×98 × 0.55 = 49.5×53.9. Translating to (15, 22) puts the\n sigma centre at (~40, 49) and leaves room for the X glyph at the\n upper right so the combined mark balances around (50, 50). --\x3e\n \x3c!-- Themable: sigma uses currentColor (primary), X superscript\n uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(15, 22) scale(0.55)">\n <path d="M 0,0 L 90,0 L 90,15 L 25,15 L 58,49 L 25,83 L 90,83 L 90,98 L 0,98 L 49,49 Z"\n fill="currentColor"/>\n </g>\n <text x="75" y="30"\n font-family="Manrope, Poppins, sans-serif"\n font-size="22"\n font-style="italic"\n font-weight="400"\n text-anchor="middle"\n dominant-baseline="central"\n fill="var(--icon-accent, #DFFF1A)">X</text>\n</svg>',quickpick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — QuickPick.\n Lightning bolt glyph. Transparent background; rendered onto the\n programmatic Press-to-Play tile.\n\n Themable: bolt fill uses currentColor (primary tone); edge stroke uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(28, 16) scale(0.55)">\n <path d="M 50 8 L 5 80 L 32 80 L 22 132 L 75 50 L 47 50 L 60 8 Z"\n fill="currentColor"\n stroke="var(--icon-accent, #DFFF1A)"\n stroke-width="3.5"\n stroke-linejoin="round"/>\n </g>\n</svg>',safety_net:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Safety Net.\n The brand basketball rim + curved diamond-mesh net catching a citron ball,\n taken from the YESNO Safety Net lockup / app icon. Transparent background;\n rendered on Press-to-Play tiles and brand lockups.\n\n Themable: net uses currentColor (teal on light, white on teal tile);\n ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(-2, -6.2) scale(1.3)">\n <line x1="9" y1="18" x2="71" y2="18" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>\n <path d="M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/>\n <ellipse cx="40" cy="64" rx="18" ry="4.5" fill="none" stroke="currentColor" stroke-width="2.2"/>\n <circle cx="40" cy="50" r="8" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',ladder:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n The sub-brand staircase: four offset rungs climbing to the top, from the\n YESNO Ladder lockup ("Climb the ladder. Stack the prizes."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: alternating rungs use currentColor (primary tone) and the\n icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="4" y="76" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="20" y="54" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="36" y="32" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="52" y="10" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',game_set:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Game Set Bet.\n The sub-brand tennis ball: citron ball with the S-curve seam, from the\n Game Set Bet lockup / app icon ("Game. Set. Bet."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the seam and the ball\'s rim use currentColor (teal on light, paper\n on the teal app-icon tile); the ball uses the icon-accent CSS variable\n (default #DFFF1A). The rim is what keeps the ball readable on themes whose\n chip colour sits near the accent (e.g. citron on the green theme\'s #00E676).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(4, 4) scale(1.15)">\n <circle cx="40" cy="40" r="34" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4.5"/>\n <path d="M40 8 C12 14 11 40 40 40 C69 40 68 66 40 72" fill="none" stroke="currentColor" stroke-width="4.5" stroke-linecap="round"/>\n </g>\n</svg>',pick_your_dividend:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n Splayed ladder rails and rungs with the citron ball resting at the top —\n the stacked-multi that pays every rung your streak reaches. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n\n Themable: rails/rungs use currentColor (primary tone); the ball uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <line x1="36" y1="16" x2="27" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="64" y1="16" x2="73" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="33.8" y1="34" x2="66.2" y2="34" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n <line x1="31.5" y1="52" x2="68.5" y2="52" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.8"/>\n <line x1="29.3" y1="70" x2="70.7" y2="70" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.6"/>\n <circle cx="50" cy="20" r="9" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Mirror.\n Two offset square-stacks reflected across a central seam, from the YESNO\n Mirror Standard mark ("Get them all right, you win. All wrong, you win.").\n Transparent background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left stack --\x3e\n <rect x="6" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="14" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- right stack — the reflection across x=50 --\x3e\n <rect x="66" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="58" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',same_game_multi:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon - Same Game Multi.\n Three proposition legs contained inside one rounded fixture card: many\n picks, one game. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the fixture and leg marks use currentColor (primary tone); the\n locked lead leg uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="14" y="14" width="72" height="72" rx="13" fill="none" stroke="currentColor" stroke-width="6"/>\n <circle cx="31" cy="35" r="6" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="43" y="31" width="31" height="8" rx="4" fill="currentColor"/>\n <circle cx="31" cy="51" r="6" fill="currentColor" opacity="0.8"/>\n <rect x="43" y="47" width="25" height="8" rx="4" fill="currentColor" opacity="0.8"/>\n <circle cx="31" cy="67" r="6" fill="currentColor" opacity="0.6"/>\n <rect x="43" y="63" width="19" height="8" rx="4" fill="currentColor" opacity="0.6"/>\n</svg>',six_again:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — 6 Again.\n Three stacked cards — the restart, the set again — with the citron six on the\n front of the deck. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the stack uses currentColor (primary tone); the front card carries\n the icon-accent CSS variable (default #DFFF1A) with a currentColor rim, and\n the numeral is knocked out in currentColor. Accent-as-card rather than\n accent-as-numeral because the numeral is small: on themes where the accent\n sits near the icon colour (orange on white in green-light) an accent numeral\n washes out, while an accent card stays legible and its rim keeps the card\n readable when the accent sits near the chip colour instead.\n\n The numeral is laid out with geometry, not font metrics: a single-chunk\n <text> pinned with textLength at an explicit x and baseline y, because\n react-native-svg anchors each chunk itself and ignores text-anchor drift.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="32" y="8" width="60" height="60" rx="13" fill="currentColor" opacity="0.3"/>\n <rect x="24" y="16" width="60" height="60" rx="13" fill="currentColor" opacity="0.55"/>\n <rect x="16" y="24" width="60" height="60" rx="13" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4"/>\n <text x="35" y="68"\n font-family="Manrope, Poppins, sans-serif"\n font-size="40"\n font-weight="800"\n textLength="22"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">6</text>\n</svg>',unknown:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Unknown game fallback.\n Question mark glyph on a transparent background.\n\n Themable: the mark uses currentColor (primary tone) and the dot uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <path\n d="M 28 42 C 28 26 36 16 46 16 C 58 16 66 26 66 38 C 66 48 58 54 50 58 L 50 68"\n fill="none"\n stroke="currentColor"\n stroke-width="8"\n stroke-linecap="round"\n stroke-linejoin="round"\n />\n <circle cx="50" cy="82" r="5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>'},Ce={perfectpick:"perfect_pick",headtohead:"head_to_head",totalpoints:"total_points",quickpick:"quickpick",safetynet:"safety_net",gameset:"game_set",gamesetbet:"game_set",pickyourdividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",mirrorstandard:"mirror",samegame:"same_game_multi",samegamemulti:"same_game_multi",sixagain:"six_again"},Fe={safety_net:"safety_net",game_set:"game_set",pick_your_dividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",same_game_multi:"same_game_multi",six_again:"six_again"};function Be(e){if(e.quick_pick_only)return"quickpick";const t=Fe[e.rule?.trim().toLowerCase()??""];if(t)return t;const n=(e.game_name??"").toLowerCase().replace(/[^a-z0-9]+/g,"");return Ce[n]??"unknown"}function Ae(e){return`${ve}${Be(e)}`}function Me(e){if(!function(e){return e.startsWith(ve)}(e))return null;const t=e.slice(10);return Ne[t]??Ne.unknown}var Se={text:"YES",tone:"yes"},ze={text:"NO",tone:"no"},Le=[{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"}],Pe=["zero","one","two","three","four","five","six","seven","eight"],Te=[{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."}],De=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."}],Oe={perfect_pick:{summary:["Perfect Pick is the multi you already know, with one big difference. You pick ",Se," or ",ze," across your legs, every leg has to land, and one perfect card takes the prize."],steps:Te,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 ",Se," or ",ze," on each matchup, land every leg, and the card pays."],steps:Te,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},total_points:{summary:["Total Points is all about the scoreboard. Call ",Se," or ",ze," on each total, land every leg, and the card pays."],steps:Te,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},quickpick:{summary:["QuickPick fills the card for you. We generate the ",Se," and ",ze," 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 ",Se," or ",ze," 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:De("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 ",Se," or ",ze," on every leg — reach the first rung and you start winning, and every rung after that stacks another prize on top."],steps:De("ladder"),demoPrompt:"Try a {n}-leg ladder — the climb starts at {n1} right."},game_set:{summary:["Game Set Bet is straight sets. Pick ",Se," or ",ze," on every leg — each extra leg doubles the prize, and a clean card takes the lot."],steps:De("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 ",Se," or ",ze," on every leg — land them all and the entry pays the dividend you picked."],steps:De("dividend"),demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},mirror:{summary:["Mirror pays both ways. Pick ",Se," or ",ze," 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:De("card"),demoPrompt:"Try a {n}-leg mirror — sweep it either way."},six_again:{summary:["6 Again is one six-leg card with boosts riding on it. Pick ",Se," or ",ze," on all six calls — land the lot and the card pays. Golden Point doubles a winning card, and the Captain’s Challenge collects even when one call gets away."],steps:[{title:"Set your play",detail:"Choose your stake, then switch on the boosts you want."},{title:"Make your six calls",detail:"YES or NO on every call, {min} of them."},{title:"Check the slip",detail:"Your stake is locked from the setup — review every pick."},{title:"Place your entry",detail:"Confirm and you are on."}],demoPrompt:"Try a {n}-leg card — call every leg, then run it."},same_game_multi:{summary:["Same Game Multi keeps every leg inside one fixture. Pick ",Se," or ",ze," across the game — land every leg and the card pays."],steps:Te,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."}};function Ee(e){if(!e)return null;const t=Be(e),n=Oe[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),Le.length)}}(e),a=e=>e.replace(/\{min\}/g,String(o>0?o:2)).replace(/\{max\}/g,String(r>0?r:12));return{id:t,...n,steps:n.steps.map(e=>({...e,detail:a(e.detail)})),demoLegs:Le.slice(0,l),demoPrompt:a(n.demoPrompt).replace(/\{n1\}/g,Pe[l-1]??String(l-1)).replace(/\{n\}/g,Pe[l]??String(l))}}function je({theme:e,level:t="flat",padding:n="md",radius:o="md",as:r="div",className:l,style:a,children:i,onClick:s}){const c=E(e),d={none:0,sm:c.space.sm,md:c.space.lg,lg:c.space.xl},m={none:0,sm:c.radius.sm,md:c.radius.md,lg:c.radius.lg,pill:c.radius.pill},p="elevated"===t?c.surface.surfaceElevated:c.surface.surface,h="flat"===t?"none":"raised"===t?j(e):Y(e);/* @__PURE__ */
7
+ return u(r,{className:l,onClick:s,style:{background:p,border:`1px solid ${e.colors.border}`,borderRadius:m[o],padding:d[n],boxShadow:h,color:e.colors.text,...a},children:i})}var Ye=n(function({theme:t,variant:n="primary",size:o="md",disabled:r,block:l,radius:a="md",onPress:i,onDoubleClick:s,type:c="button",className:d,style:m,children:p,ariaLabel:h},f){const x=E(t),g=t.colors,[y,b]=e.useState(!1),[w,k]=e.useState(!1),[v,N]=e.useState(!1),C={sm:{h:36,px:x.space.md,fs:x.fontSize.sm},md:{h:x.touchTarget.min,px:x.space.lg,fs:x.fontSize.md},lg:{h:52,px:x.space.xl,fs:x.fontSize.lg}},F={sm:x.radius.sm,md:x.radius.md,lg:x.radius.lg,pill:x.radius.pill},B={primary:{bg:g.buttonPrimary,bgHover:g.buttonPrimaryHover,fg:g.buttonPrimaryText,border:g.buttonPrimary},secondary:{bg:g.buttonSecondary,bgHover:g.buttonSecondaryHover,fg:g.buttonSecondaryText,border:g.border},ghost:{bg:"transparent",bgHover:L(g.text,x.isDark?.08:.05),fg:g.text,border:"transparent"},danger:{bg:g.error,bgHover:L(g.error,.85),fg:(g.errorText&&(g.errorText,g.error),"#ffffff"),border:g.error}}[n];/* @__PURE__ */
8
+ return u("button",{ref:f,type:c,disabled:r,"aria-label":h,className:d,onClick:r?void 0:i,onDoubleClick:r?void 0:s,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:l?"100%":void 0,minHeight:C[o].h,padding:`0 ${C[o].px}px`,fontSize:C[o].fs,fontWeight:500,fontFamily:"inherit",lineHeight:1.2,color:B.fg,background:y&&!r?B.bgHover:B.bg,border:`1px solid ${B.border}`,borderRadius:F[a],cursor:r?"not-allowed":"pointer",opacity:r?.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?H(t):"none",outline:"none",...m},children:p})}),He={xs:{padding:"3px 10px",fontSize:11},sm:{padding:"6px 14px",fontSize:13},md:{padding:"8px 18px",fontSize:14}};function Re(e,t,n,o,r,l){const a=E(e);return{appearance:"none",padding:He[o].padding,borderRadius:a.radius.sm,fontSize:He[o].fontSize,fontWeight:600,fontFamily:"inherit",lineHeight:1.2,cursor:r?"not-allowed":"pointer",color:t?"#ffffff":e.colors.text,background:t?n:"transparent",border:`1px solid ${t?"transparent":e.colors.border}`,transition:`background-color ${a.motion.durationFast}ms ${a.motion.easing}, color ${a.motion.durationFast}ms ${a.motion.easing}, border-color ${a.motion.durationFast}ms ${a.motion.easing}`,opacity:r?.5:1,...l?{flex:1}:null}}function Ge({theme:e,value:t,onYes:n,onNo:o,size:r="md",stretch:l,disabled:a,yesLabel:i="Yes",noLabel:s="No",className:c,style:d}){/* @__PURE__ */
9
+ return m("div",{className:c,style:{display:"flex",gap:8,flexShrink:0,...l?{width:"100%"}:null,...d},children:[/* @__PURE__ */u("button",{type:"button","aria-pressed":"yes"===t,disabled:a,onClick:a?void 0:n,style:Re(e,"yes"===t,I(e),r,a,l),children:i}),/* @__PURE__ */u("button",{type:"button","aria-pressed":"no"===t,disabled:a,onClick:a?void 0:o,style:Re(e,"no"===t,U(e),r,a,l),children:s})]})}function We({theme:e,value:t,size:n="md",style:o}){const r=E(e);/* @__PURE__ */
10
+ return u("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?I(e):U(e),...o},children:"yes"===t?"Yes":"No"})}var Ie=/\b(YES|NO)\b/,Ue={verticalAlign:"-2px",margin:"0 1px"};function $e(t,n,o){return t.split(Ie).map((t,r)=>"YES"===t||"NO"===t?/* @__PURE__ */u(We,{theme:n,value:"YES"===t?"yes":"no",size:"sm",style:Ue},`${o}-${r}`):/* @__PURE__ */u(e.Fragment,{children:t},`${o}-${r}`))}function Ke({segments:t,theme:n}){/* @__PURE__ */
11
+ return u("p",{className:"m-0 text-[14px] leading-[1.55]",style:{color:n.colors.text},children:t.map((t,o)=>"string"==typeof t?/* @__PURE__ */u(e.Fragment,{children:$e(t,n,o)},o):/* @__PURE__ */u(We,{theme:n,value:t.tone,size:"sm",style:Ue},o))})}function Ze({panel:e,theme:t,dividends:n,bodyFont:o,headingFont:r,className:l=""}){const a=t.colors,i=t.brand?.accent??a.primaryText,s=V(t),[d,p]=c("learn"),[h,f]=c(()=>e.demoLegs.map(()=>null)),[x,g]=c(!1),y=e.demoLegs.length,b=h.filter(e=>null!=e).length,w=b===y,k=e.demoLegs.filter((e,t)=>h[t]===e.outcome).length,v=function(e,t,n){const o=t===n,r=`${t} of ${n}`;switch(e){case"mirror":return o?{won:!0,message:`All ${n} right — that is the sweep, the card pays.`}:0===t?{won:!0,message:`All ${n} wrong — a full mirror sweep pays the same as perfect.`}:{won:!1,message:`${r} is a split card. Mirror pays all right or all wrong — nothing in between.`};case"ladder":return o?{won:!0,message:`Top rung — all ${n} right stacks every prize on the ladder into one payout.`}:t>=n-1?{won:!0,message:`${r} reaches a rung — it pays, and every extra leg right stacks the next prize on top.`}:{won:!1,message:`${r} does not reach the first rung — the climb starts at ${n-1} right.`};case"safety_net":return o?{won:!0,message:`Clean sweep — all ${n} right takes the full prize.`}:t===n-1?{won:!0,message:"One miss — the net catches it and the entry still pays."}:{won:!1,message:`${r} is more than the net holds — one miss is covered, two is not.`};case"six_again":return o?{won:!0,message:`All ${n} right — the card pays, and Golden Point doubles it.`}:t===n-1?{won:!1,message:`${r} — one call away. The Captain’s Challenge is the boost that collects on this card.`}:{won:!1,message:`${r} — every call has to land. Flip the misses and the card pays.`};case"game_set":return o?{won:!0,message:`Game, set, bet — all ${n} legs landed and the card pays.`}:{won:!1,message:`${r} — every leg has to land. Flip the misses and it is straight sets.`};case"pick_your_dividend":return o?{won:!0,message:`All ${n} right — the entry pays the dividend you picked.`}:{won:!1,message:`${r} — every leg has to land to collect your dividend.`};default:return o?{won:!0,message:`Perfect card — all ${n} legs landed, the prize is yours.`}:{won:!1,message:`${r} — one miss breaks a perfect card. Flip the misses and it pays.`}}}(e.id,k,y),N=(e,t)=>{x||f(n=>n.map((n,o)=>o===e?t:n))},C=x?"Settled":`${b} of ${y} called`,F=!x&&w,B=e=>({fontFamily:r,backgroundColor:e?a.primary:"transparent",color:e?a.primaryText:a.textMuted,cursor:"pointer"});/* @__PURE__ */
11
12
  return m("div",{className:l,style:{fontFamily:o},children:[
12
13
  /* @__PURE__ */u("style",{children:"@keyframes ynhtp-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}"}),
13
14
  /* @__PURE__ */m("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:[
14
- /* @__PURE__ */u("button",{type:"button",role:"tab","aria-selected":"learn"===d,onClick:()=>p("learn"),className:"rounded-md px-2 py-1.5 text-[11px] font-extrabold uppercase tracking-[0.1em] transition-colors",style:C("learn"===d),children:"How it works"}),
15
- /* @__PURE__ */u("button",{type:"button",role:"tab","aria-selected":"try"===d,onClick:()=>p("try"),className:"rounded-md px-2 py-1.5 text-[11px] font-extrabold uppercase tracking-[0.1em] transition-colors",style:C("try"===d),children:"Quick demo"}),n&&/* @__PURE__ */u("button",{type:"button",role:"tab","aria-selected":"pay"===d,onClick:()=>p("pay"),className:"rounded-md px-2 py-1.5 text-[11px] font-extrabold uppercase tracking-[0.1em] transition-colors",style:C("pay"===d),children:"Dividends"})]}),"pay"===d&&n,"learn"===d&&/* @__PURE__ */m("div",{children:[
16
- /* @__PURE__ */u(We,{segments:e.summary,theme:t}),
17
- /* @__PURE__ */m("ol",{className:"relative m-0 mt-3 list-none p-0",children:[/* @__PURE__ */u("span",{"aria-hidden":!0,className:"absolute left-[17px] top-4 bottom-4 w-px",style:{backgroundColor:ce(a.primary,.25)}}),e.steps.map((e,t)=>/* @__PURE__ */m("li",{className:"relative flex flex-col justify-center gap-0.5 py-2 pl-[50px]",children:[
18
- /* @__PURE__ */u("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 ${ce(a.primary,.35)}`},children:t+1}),
15
+ /* @__PURE__ */u("button",{type:"button",role:"tab","aria-selected":"learn"===d,onClick:()=>p("learn"),className:"rounded-md px-2 py-1.5 text-[11px] font-extrabold uppercase tracking-[0.1em] transition-colors",style:B("learn"===d),children:"How it works"}),
16
+ /* @__PURE__ */u("button",{type:"button",role:"tab","aria-selected":"try"===d,onClick:()=>p("try"),className:"rounded-md px-2 py-1.5 text-[11px] font-extrabold uppercase tracking-[0.1em] transition-colors",style:B("try"===d),children:"Quick demo"}),n&&/* @__PURE__ */u("button",{type:"button",role:"tab","aria-selected":"pay"===d,onClick:()=>p("pay"),className:"rounded-md px-2 py-1.5 text-[11px] font-extrabold uppercase tracking-[0.1em] transition-colors",style:B("pay"===d),children:"Dividends"})]}),"pay"===d&&n,"learn"===d&&/* @__PURE__ */m("div",{children:[
17
+ /* @__PURE__ */u(Ke,{segments:e.summary,theme:t}),
18
+ /* @__PURE__ */m("ol",{className:"relative m-0 mt-3 list-none p-0",children:[/* @__PURE__ */u("span",{"aria-hidden":!0,className:"absolute left-[17px] top-4 bottom-4 w-px",style:{backgroundColor:L(a.primary,.25)}}),e.steps.map((e,n)=>/* @__PURE__ */m("li",{className:"relative flex flex-col justify-center gap-0.5 py-2 pl-[50px]",children:[
19
+ /* @__PURE__ */u("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 ${L(a.primary,.35)}`},children:n+1}),
19
20
  /* @__PURE__ */u("b",{className:"block text-[14.5px] font-bold leading-snug",style:{color:a.primary,fontFamily:r},children:e.title}),
20
- /* @__PURE__ */u("span",{className:"text-[13px] leading-snug",style:{color:a.textMuted},children:e.detail})]},e.title))]}),
21
- /* @__PURE__ */u("button",{type:"button",onClick:()=>p("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"===d&&/* @__PURE__ */m("div",{className:"overflow-hidden rounded-xl border",style:{borderColor:a.border,backgroundColor:s,boxShadow:he(t)},children:[
22
- /* @__PURE__ */u("div",{className:"px-3.5 pt-3 sm:px-4",children:/* @__PURE__ */m("div",{className:"flex items-start justify-between gap-2.5",children:[/* @__PURE__ */u("p",{className:"m-0 min-w-0 flex-1 text-[12.5px] leading-snug",style:{color:a.textMuted},children:x?"Here is how it settled.":e.demoPrompt}),/* @__PURE__ */u("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:B?a.primary:ce(a.border,.9),color:B?a.primaryText:a.textMuted,backgroundColor:B?a.primary:"transparent"},children:F})]})}),
23
- /* @__PURE__ */u("div",{className:"mt-1.5 px-3.5 sm:px-4",children:e.demoLegs.map((e,n)=>{const o=f[n]===e.outcome;/* @__PURE__ */
24
- return m("div",{className:"flex items-center justify-between gap-3 py-2.5",style:{borderTop:0===n?"none":`1px solid ${ce(a.border,.7)}`},children:[/* @__PURE__ */m("div",{className:"flex min-w-0 flex-1 items-start gap-2.5",children:[/* @__PURE__ */u("span",{className:"mt-0.5 flex h-[18px] w-[18px] shrink-0 items-center justify-center rounded-full text-[10px] font-extrabold",style:x?{backgroundColor:o?a.success:a.error,color:"#fff",animation:"ynhtp-in .28s ease both",animationDelay:100*n+"ms"}:{border:`1.5px solid ${f[n]?a.primary:a.border}`,color:f[n]?a.primary:a.textMuted},children:x?o?"✓":"✗":n+1}),/* @__PURE__ */u("span",{className:"min-w-0 text-[13px] font-semibold leading-snug",style:{color:a.text},children:e.question})]}),x?/* @__PURE__ */u("span",{style:{animation:"ynhtp-in .28s ease both",animationDelay:100*n+"ms"},children:/* @__PURE__ */u(Ge,{theme:t,size:"sm",value:e.outcome})}):/* @__PURE__ */u(Re,{theme:t,size:"sm",value:f[n],onYes:()=>N(n,"yes"),onNo:()=>N(n,"no")})]},e.question)})}),
25
- /* @__PURE__ */u("div",{className:"mx-3.5 sm:mx-4",style:{borderTop:`1.5px dashed ${ce(a.border,.9)}`}}),
26
- /* @__PURE__ */u("div",{className:"px-3.5 pb-3.5 pt-3 sm:px-4",children:x?/* @__PURE__ */m("div",{children:[/* @__PURE__ */m("div",{className:"flex items-center gap-3 rounded-lg px-3 py-2.5",style:{backgroundColor:v.won?a.successBg:a.errorBg,animation:"ynhtp-in .3s ease both",animationDelay:100*y+60+"ms"},children:[/* @__PURE__ */u("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:v.won?a.successText:a.errorText,color:v.won?a.successText:a.errorText,fontFamily:r},children:v.won?"Winner":"No win"}),/* @__PURE__ */u("p",{className:"m-0 text-[12.5px] font-semibold leading-snug",style:{color:v.won?a.successText:a.errorText},children:v.message})]}),/* @__PURE__ */u("button",{type:"button",onClick:()=>{h(e.demoLegs.map(()=>null)),g(!1)},className:"mt-2 text-[11.5px] font-bold",style:{color:a.textMuted,cursor:"pointer"},children:"↺ Deal it again"})]}):/* @__PURE__ */u(je,{theme:t,size:"sm",block:!0,disabled:!w,onPress:()=>g(!0),children:"Run the demo"})})]})]})}function Ue({open:e,onClose:t,title:n="How to Play",content:o,panel:r,theme:a,extra:i,colors:c,bodyFont:p,headingFont:f}){const h=s(null);return l(()=>{if(!e)return;const n=e=>{"Escape"===e.key&&t()};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e,t]),l(()=>{if(!e)return;const t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[e]),e?/* @__PURE__ */u("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:/* @__PURE__ */m("div",{ref:h,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:c.background,borderColor:c.border,fontFamily:p,maxHeight:"88dvh"},children:[
27
- /* @__PURE__ */u("div",{className:"shrink-0 border-b px-4 pb-4 pt-3 text-left sm:px-6 sm:pt-4",style:{borderColor:c.border,backgroundColor:c.backgroundAlt},children:/* @__PURE__ */u("h2",{id:"how-to-play-title",className:"text-lg font-bold",style:{color:c.text,fontFamily:f??p},children:n})}),
28
- /* @__PURE__ */u("div",{className:"overflow-y-auto flex-1 min-h-0",children:r&&a?/* @__PURE__ */u("div",{className:"px-4 sm:px-6 py-5",children:/* @__PURE__ */u(Ie,{panel:r,theme:a,dividends:i,bodyFont:p,headingFont:f})}):/* @__PURE__ */m(d,{children:[o&&k(o)?/* @__PURE__ */u(F,{content:o,className:"min-h-[60vh]"}):/* @__PURE__ */u("div",{className:"px-4 sm:px-6 py-5",children:/* @__PURE__ */u(z,{content:o??"",colors:c,bodyFont:p,headingFont:f})}),i&&/* @__PURE__ */u("div",{className:"px-4 sm:px-6 pb-5",children:i})]})}),
29
- /* @__PURE__ */u("div",{className:"px-4 sm:px-6 py-4 border-t shrink-0",style:{borderColor:c.border,backgroundColor:c.backgroundAlt,paddingBottom:"max(1rem, env(safe-area-inset-bottom))"},children:/* @__PURE__ */u("button",{type:"button",onClick:t,className:"w-full rounded-xl px-5 py-3 text-sm font-bold",style:{color:c.primaryText,backgroundColor:c.primary,border:"none",cursor:"pointer",fontFamily:p},children:"Got it"})})]})}):null}function Ke({content:t,panel:n,theme:o,extra:r,title:l,label:a="How to Play",variant:i="pill",colors:s,bodyFont:c,headingFont:p,className:f=""}){const[h,x]=e.useState(!1);return t?.trim()||n&&o||r?/* @__PURE__ */m(d,{children:["icon"===i?/* @__PURE__ */u("button",{type:"button",onClick:()=>x(!0),"aria-label":a,title:a,className:`inline-flex h-[21px] w-[21px] shrink-0 items-center justify-center rounded-full border text-[12px] font-extrabold leading-none transition-colors ${f}`,style:{color:s.primary,borderColor:s.primary,backgroundColor:`${s.primary}14`,cursor:"pointer",fontFamily:c},onMouseEnter:e=>{e.currentTarget.style.color=s.primaryText,e.currentTarget.style.backgroundColor=s.primary},onMouseLeave:e=>{e.currentTarget.style.color=s.primary,e.currentTarget.style.backgroundColor=`${s.primary}14`},children:"?"}):/* @__PURE__ */m("button",{type:"button",onClick:()=>x(!0),className:`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full border text-xs font-semibold ${f}`,style:{color:s.primary,borderColor:s.primary,backgroundColor:`${s.primary}10`,cursor:"pointer",fontFamily:c},children:[a,/* @__PURE__ */u("span",{"aria-hidden":"true",children:"?"})]}),/* @__PURE__ */u(Ue,{open:h,onClose:()=>x(!1),title:l,content:t??void 0,panel:n,theme:o,extra:r,colors:s,bodyFont:c,headingFont:p})]}):null}function Ze({label:e,category:t,icon:n,theme:o,disabled:r=!1}){const l=o.colors,a=be(o),i=r?l.textMuted:l.textAlt??l.text,s=r?l.border:o.brand?.chip??l.primary,c=r?l.textMuted:o.brand?.icon??l.primaryText??l.buttonPrimaryText;/* @__PURE__ */
21
+ /* @__PURE__ */u("span",{className:"text-[13px] leading-snug",style:{color:a.textMuted},children:$e(e.detail,t,n)})]},e.title))]}),
22
+ /* @__PURE__ */u("button",{type:"button",onClick:()=>p("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"===d&&/* @__PURE__ */m("div",{className:"overflow-hidden rounded-xl border",style:{borderColor:a.border,backgroundColor:s,boxShadow:j(t)},children:[
23
+ /* @__PURE__ */u("div",{className:"px-3.5 pt-3 sm:px-4",children:/* @__PURE__ */m("div",{className:"flex items-start justify-between gap-2.5",children:[/* @__PURE__ */u("p",{className:"m-0 min-w-0 flex-1 text-[12.5px] leading-snug",style:{color:a.textMuted},children:x?"Here is how it settled.":e.demoPrompt}),/* @__PURE__ */u("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:L(a.border,.9),color:F?a.primaryText:a.textMuted,backgroundColor:F?a.primary:"transparent"},children:C})]})}),
24
+ /* @__PURE__ */u("div",{className:"mt-1.5 px-3.5 sm:px-4",children:e.demoLegs.map((e,n)=>{const o=h[n]===e.outcome;/* @__PURE__ */
25
+ return m("div",{className:"flex items-center justify-between gap-3 py-2.5",style:{borderTop:0===n?"none":`1px solid ${L(a.border,.7)}`},children:[/* @__PURE__ */m("div",{className:"flex min-w-0 flex-1 items-start gap-2.5",children:[/* @__PURE__ */u("span",{className:"mt-0.5 flex h-[18px] w-[18px] shrink-0 items-center justify-center rounded-full text-[10px] font-extrabold",style:x?{backgroundColor:o?a.success:a.error,color:"#fff",animation:"ynhtp-in .28s ease both",animationDelay:100*n+"ms"}:{border:`1.5px solid ${h[n]?a.primary:a.border}`,color:h[n]?a.primary:a.textMuted},children:x?o?"✓":"✗":n+1}),/* @__PURE__ */u("span",{className:"min-w-0 text-[13px] font-semibold leading-snug",style:{color:a.text},children:e.question})]}),x?/* @__PURE__ */u("span",{style:{animation:"ynhtp-in .28s ease both",animationDelay:100*n+"ms"},children:/* @__PURE__ */u(We,{theme:t,size:"sm",value:e.outcome})}):/* @__PURE__ */u(Ge,{theme:t,size:"sm",value:h[n],onYes:()=>N(n,"yes"),onNo:()=>N(n,"no")})]},e.question)})}),
26
+ /* @__PURE__ */u("div",{className:"mx-3.5 sm:mx-4",style:{borderTop:`1.5px dashed ${L(a.border,.9)}`}}),
27
+ /* @__PURE__ */u("div",{className:"px-3.5 pb-3.5 pt-3 sm:px-4",children:x?/* @__PURE__ */m("div",{children:[/* @__PURE__ */m("div",{className:"flex items-center gap-3 rounded-lg px-3 py-2.5",style:{backgroundColor:v.won?a.successBg:a.errorBg,animation:"ynhtp-in .3s ease both",animationDelay:100*y+60+"ms"},children:[/* @__PURE__ */u("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:v.won?a.successText:a.errorText,color:v.won?a.successText:a.errorText,fontFamily:r},children:v.won?"Winner":"No win"}),/* @__PURE__ */u("p",{className:"m-0 text-[12.5px] font-semibold leading-snug",style:{color:v.won?a.successText:a.errorText},children:v.message})]}),/* @__PURE__ */u("button",{type:"button",onClick:()=>{f(e.demoLegs.map(()=>null)),g(!1)},className:"mt-2 text-[11.5px] font-bold",style:{color:a.textMuted,cursor:"pointer"},children:"↺ Try again"})]}):/* @__PURE__ */u(Ye,{theme:t,size:"sm",block:!0,disabled:!w,onPress:()=>g(!0),children:"Run the demo"})})]})]})}function qe({open:e,onClose:t,title:n="How to Play",content:o,panel:r,theme:a,extra:i,colors:c,bodyFont:p,headingFont:h}){const f=s(null);return l(()=>{if(!e)return;const n=e=>{"Escape"===e.key&&t()};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e,t]),l(()=>{if(!e)return;const t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[e]),e?/* @__PURE__ */u("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:/* @__PURE__ */m("div",{ref:f,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:c.background,borderColor:c.border,fontFamily:p,maxHeight:"88dvh"},children:[
28
+ /* @__PURE__ */u("div",{className:"shrink-0 border-b px-4 pb-4 pt-3 text-left sm:px-6 sm:pt-4",style:{borderColor:c.border,backgroundColor:c.backgroundAlt},children:/* @__PURE__ */u("h2",{id:"how-to-play-title",className:"text-lg font-bold",style:{color:c.text,fontFamily:h??p},children:n})}),
29
+ /* @__PURE__ */u("div",{className:"overflow-y-auto flex-1 min-h-0",children:r&&a?/* @__PURE__ */u("div",{className:"px-4 sm:px-6 py-5",children:/* @__PURE__ */u(Ze,{panel:r,theme:a,dividends:i,bodyFont:p,headingFont:h})}):/* @__PURE__ */m(d,{children:[o&&k(o)?/* @__PURE__ */u(C,{content:o,className:"min-h-[60vh]"}):/* @__PURE__ */u("div",{className:"px-4 sm:px-6 py-5",children:/* @__PURE__ */u(z,{content:o??"",colors:c,bodyFont:p,headingFont:h})}),i&&/* @__PURE__ */u("div",{className:"px-4 sm:px-6 pb-5",children:i})]})}),
30
+ /* @__PURE__ */u("div",{className:"px-4 sm:px-6 py-4 border-t shrink-0",style:{borderColor:c.border,backgroundColor:c.backgroundAlt,paddingBottom:"max(1rem, env(safe-area-inset-bottom))"},children:/* @__PURE__ */u("button",{type:"button",onClick:t,className:"w-full rounded-full px-5 py-3.5 text-sm font-extrabold uppercase tracking-[0.08em] transition-[opacity,transform] duration-150 hover:opacity-[0.92] active:scale-[0.99] active:opacity-[0.88]",style:{color:c.primaryText,backgroundColor:c.primary,border:"none",cursor:"pointer",fontFamily:p},children:"Got it"})})]})}):null}function Ve({content:t,panel:n,theme:o,extra:r,title:l,label:a="How to Play",variant:i="pill",colors:s,bodyFont:c,headingFont:p,className:h=""}){const[f,x]=e.useState(!1);return t?.trim()||n&&o||r?/* @__PURE__ */m(d,{children:["icon"===i?/* @__PURE__ */u("button",{type:"button",onClick:()=>x(!0),"aria-label":a,title:a,className:`inline-flex h-[21px] w-[21px] shrink-0 items-center justify-center rounded-full border text-[12px] font-extrabold leading-none transition-colors ${h}`,style:{color:s.primary,borderColor:s.primary,backgroundColor:`${s.primary}14`,cursor:"pointer",fontFamily:c},onMouseEnter:e=>{e.currentTarget.style.color=s.primaryText,e.currentTarget.style.backgroundColor=s.primary},onMouseLeave:e=>{e.currentTarget.style.color=s.primary,e.currentTarget.style.backgroundColor=`${s.primary}14`},children:"?"}):/* @__PURE__ */m("button",{type:"button",onClick:()=>x(!0),className:`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full border text-xs font-semibold ${h}`,style:{color:s.primary,borderColor:s.primary,backgroundColor:`${s.primary}10`,cursor:"pointer",fontFamily:c},children:[a,/* @__PURE__ */u("span",{"aria-hidden":"true",children:"?"})]}),/* @__PURE__ */u(qe,{open:f,onClose:()=>x(!1),title:l,content:t??void 0,panel:n,theme:o,extra:r,colors:s,bodyFont:c,headingFont:p})]}):null}function Xe({label:e,category:t,icon:n,theme:o,disabled:r=!1}){const l=o.colors,a=be(o),i=r?l.textMuted:l.textAlt??l.text,s=r?l.border:o.brand?.chip??l.primary,c=r?l.textMuted:o.brand?.icon??l.primaryText??l.buttonPrimaryText;/* @__PURE__ */
30
31
  return m("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:a},children:[
31
32
  /* @__PURE__ */m("span",{className:"shrink-0","aria-label":"YESNO",style:{letterSpacing:-1,whiteSpace:"nowrap"},children:[/* @__PURE__ */u("span",{style:{fontWeight:900},children:"YES"}),/* @__PURE__ */u("span",{style:{fontWeight:300},children:"NO"})]}),
32
- /* @__PURE__ */u("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:s,color:c,transform:"translateY(-0.02em)"},children:n??/* @__PURE__ */u($e,{category:t,size:"0.6em",color:c})}),
33
- /* @__PURE__ */m("span",{className:"min-w-0 break-words font-medium",style:{fontWeight:500},children:[e,/* @__PURE__ */u("span",{style:{fontSize:"0.3em",fontWeight:600,marginLeft:"0.2em",display:"inline-block",transform:"translateY(-1.8em)"},children:"TM"})]})]})}function $e({category:e,size:t=14,color:n="currentColor"}){const o={width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0};switch(e){case"casino":/* @__PURE__ */return m("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:n,"aria-hidden":!0,children:[
33
+ /* @__PURE__ */u("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:s,color:c,transform:"translateY(-0.02em)"},children:n??/* @__PURE__ */u(Qe,{category:t,size:"0.6em",color:c})}),
34
+ /* @__PURE__ */m("span",{className:"min-w-0 break-words font-medium",style:{fontWeight:500},children:[e,/* @__PURE__ */u("span",{style:{fontSize:"0.3em",fontWeight:600,marginLeft:"0.2em",display:"inline-block",transform:"translateY(-1.8em)"},children:"TM"})]})]})}function Qe({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":/* @__PURE__ */return m("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:n,"aria-hidden":!0,children:[
34
35
  /* @__PURE__ */u("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"}),
35
36
  /* @__PURE__ */u("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"}),
36
37
  /* @__PURE__ */u("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":/* @__PURE__ */return m("svg",{...o,children:[/* @__PURE__ */u("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"}),/* @__PURE__ */u("path",{d:"M22 14v-2a3 3 0 0 0 -3 -3"})]});case"women":/* @__PURE__ */return m("svg",{...o,children:[
@@ -39,352 +40,419 @@ return m("span",{className:"font-display max-w-full text-base min-[400px]:text-l
39
40
  /* @__PURE__ */u("path",{d:"M9 18h6"})]});default:/* @__PURE__ */return m("svg",{...o,children:[
40
41
  /* @__PURE__ */u("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),
41
42
  /* @__PURE__ */u("path",{d:"M12 7l4.76 3.45l-1.76 5.55h-6l-1.76 -5.55l4.76 -3.45"}),
42
- /* @__PURE__ */u("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 qe({size:e=20,color:t="currentColor",className:n=""}){/* @__PURE__ */
43
- return u("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:/* @__PURE__ */u("path",{d:"M21 4H3l7.2 8.5V19l3.6 2v-8.5L21 4z"})})}function Ve({size:e=20,color:t="currentColor",className:n=""}){/* @__PURE__ */
44
- return u("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:/* @__PURE__ */u("path",{d:"m9 6 6 6-6 6"})})}function Xe({size:e=20,color:t="currentColor",className:n=""}){/* @__PURE__ */
45
- return m("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:[/* @__PURE__ */u("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"}),/* @__PURE__ */u("path",{d:"M8 11V7a4 4 0 1 1 8 0v4"})]})}function Qe({groups:t,theme:n,bodyFont:r,className:a=""}){const i=n.colors,d=s(null),[p,f]=c(!1),[h,x]=c(!1),[g,y]=c(!1);l(()=>{if("undefined"==typeof window||!window.matchMedia)return;const e=window.matchMedia("(pointer: coarse)"),t=()=>y(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);const b=o(()=>{const e=d.current;if(!e)return;const t=e.scrollWidth-e.clientWidth;f(e.scrollLeft>2),x(e.scrollLeft<t-2)},[]);l(()=>{b(),window.addEventListener("resize",b);const e=d.current;let t;if(e&&"undefined"!=typeof ResizeObserver){t=new ResizeObserver(b),t.observe(e);for(const n of Array.from(e.children))t.observe(n)}return()=>{window.removeEventListener("resize",b),t?.disconnect()}},[b,t.length]);const w=e=>{const t=d.current;t&&t.scrollBy({left:e*Math.round(.7*t.clientWidth),behavior:"smooth"})},k=s({down:!1,lastX:0,travelled:0}),v=()=>{k.current.down=!1},N=i.background??"#fff",F={width:44,height:44,cursor:"pointer",background:"none",border:"none",padding:0},B={width:26,height:26,border:`1px solid ${i.border}`,backgroundColor:N,color:i.primary,boxShadow:"0 4px 10px -4px rgba(15, 76, 92, 0.55)"};return 0===t.length?null:/* @__PURE__ */m("div",{className:`relative min-w-0 ${a}`,style:{fontFamily:r},children:[p&&/* @__PURE__ */u("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-y-0 left-0 z-[2] w-10",style:{background:`linear-gradient(to right, ${N}, transparent)`}}),p&&!g&&/* @__PURE__ */u("button",{type:"button","aria-label":"Scroll left",onClick:()=>w(-1),className:"absolute top-1/2 z-[3] flex -translate-y-1/2 items-center justify-center active:scale-90",style:{...F,left:-11},children:/* @__PURE__ */u("span",{className:"flex items-center justify-center rounded-full",style:B,children:/* @__PURE__ */u(Ve,{size:14,className:"rotate-180"})})}),h&&/* @__PURE__ */u("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-y-0 right-0 z-[2] w-10",style:{background:`linear-gradient(to left, ${N}, transparent)`}}),h&&!g&&/* @__PURE__ */u("button",{type:"button","aria-label":"Scroll right",onClick:()=>w(1),className:"absolute top-1/2 z-[3] flex -translate-y-1/2 items-center justify-center active:scale-90",style:{...F,right:-11},children:/* @__PURE__ */u("span",{className:"flex items-center justify-center rounded-full",style:B,children:/* @__PURE__ */u(Ve,{size:14})})}),
46
- /* @__PURE__ */u("div",{ref:d,onScroll:b,onPointerDown:e=>{"touch"!==e.pointerType&&(k.current={down:!0,lastX:e.clientX,travelled:0})},onPointerMove:e=>{const t=k.current;if(!t.down)return;const n=t.lastX-e.clientX;t.lastX=e.clientX,t.travelled+=Math.abs(n),d.current&&(d.current.scrollLeft+=n)},onPointerUp:v,onPointerCancel:v,onPointerLeave:v,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:k.current.down?"grabbing":"grab"},children:t.map((t,n)=>/* @__PURE__ */m(e.Fragment,{children:[n>0&&/* @__PURE__ */u("span",{"aria-hidden":!0,className:"h-5 w-px flex-none",style:{backgroundColor:i.border}}),t.label&&/* @__PURE__ */u("span",{className:"flex-none text-[10px] font-extrabold uppercase tracking-[0.14em]",style:{color:i.textMuted},children:t.label}),t.options.map(e=>{const n=e.value===t.value;/* @__PURE__ */
47
- return u("button",{type:"button",onClick:()=>{k.current.travelled>4||t.onChange(e.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:r,border:`1px solid ${n?i.primary:i.border}`,backgroundColor:n?i.primary:N,color:n?i.primaryText:i.primary,cursor:"pointer"},children:e.label},e.value??"__all")})]},t.label??n))})]})}function Je({label:e,options:t,value:n,onChange:o,theme:r,bodyFont:l,className:a=""}){/* @__PURE__ */
48
- return u(Qe,{groups:[{label:e,options:t,value:n,onChange:o}],theme:r,bodyFont:l,className:a})}function _e(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function et(e){return(e.description??e.proposition??"").trim()}var tt={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function nt(e){return"composite_and"===(t=_e(e))||"composite_or"===t;var t}function ot(e){const t=e.source_data;if(!t)return[];try{const e=JSON.parse(t)?.composite?.components;return Array.isArray(e)?e.filter(e=>"number"==typeof e&&Number.isFinite(e)):[]}catch{return[]}}function rt(e){const t=e.home_team?.trim(),n=e.away_team?.trim();if(t&&n)return`${t} vs ${n}`;if(t)return t;if(n)return n;const o=e.eventId??e.event_id;return o?.trim()?o.trim():null}function lt(e,t){if(!nt(e))return null;const n=function(e){return nt(e)?("composite_and"===(t=_e(e))?"AND":"composite_or"===t?"OR":null)||function(e){const t=e.source_data;if(!t)return null;try{const e=JSON.parse(t)?.composite?.operator;if("and"===e)return"AND";if("or"===e)return"OR"}catch{return null}return null}(e):null;var t}(e);if(!n)return null;const o=ot(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:et(o),eventLabel:rt(o)})}if(e.length>=2)return{operator:n,legs:e}}const r=function(e,t){const n=e.trim();if(!n)return null;const o=n.split(tt[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(et(e),n);return r?{operator:n,legs:r.map(e=>({text:e,eventLabel:null}))}:null}var at="#0F4C5C",it={aussierules_afl:"AFL",rugbyleague_nrl:"NRL",basketball_nba:"NBA",basketball_ncaab:"CBB",americanfootball_nfl:"NFL",americanfootball_ncaaf:"CFB",soccer_epl:"EPL",soccer_italy_serie_a:"SEA",soccer_spain_la_liga:"LIG",soccer_germany_bundesliga:"BUN",soccer_usa_mls:"MLS",baseball_mlb:"MLB",icehockey_nhl:"NHL",horse_racing_aus:"RLT",roulette:"RLT",dice:"DCE",cointrio:"CT3"},st={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner"};function ct(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=it[e];if(o)return o;if(t&&e.startsWith(`${t}_`)){const n=e.slice(t.length+1).replace(/_/g," ").split(/\s+/).filter(Boolean).map(e=>e[0]).join("").slice(0,4).toUpperCase();if(n)return n}return e.startsWith("casino_")?e.slice(7,11).toUpperCase()||"CSN":e.slice(0,3).toUpperCase()||"·"}function dt(e,t){const n=t>0?Math.floor(t/68):e;return Math.max(2,Math.min(Math.ceil(e/2),n))}function ut(e){return!!e.is_composite_component||!!(t=_e(e))&&t.startsWith("co_");var t}function mt(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0}function pt(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function ft(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}function ht(e){const t=Number.isInteger(e);return new Intl.NumberFormat("en-AU",{style:"currency",currency:"AUD",minimumFractionDigits:t?0:2,maximumFractionDigits:2}).format(e)}function xt(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 gt(e){return e.reduce((t,n)=>{const o=yt(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function yt(e,t){if(e.sport)return e.sport;if(nt(e)&&t)for(const n of ot(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var bt=["sports","casino","racing"];function wt(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=_e(e).toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"sports"}function kt(e){return"racing"===wt(e)}function vt(e){const t={};for(const n of e){const e=wt(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function Nt(e){const t=vt(e);return bt.filter(e=>(t[e]?.length??0)>0)}function Ft(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 Ct(e,t,n){const o=n?.min_propositions??null,r=n?.max_propositions??null,l=(n?.allowed_propositions??e.allowed_propositions)?.filter(e=>(null==o||e>=o)&&(null==r||e<=r));if(l&&l.length>0)return null!=t&&l.includes(t)?{min:t,max:t}:{min:Math.min(...l),max:Math.max(...l)};const a=e.min_propositions??e.num_propositions??0,i=e.max_propositions??e.num_propositions??0;return{min:null!=o?Math.max(a,o):a,max:null!=r&&i>0?Math.min(i,r):r??i}}function At(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 Mt(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 St(e,t,n){const o=t?.[e];return o||Mt(e,n)}function zt(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 Lt(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function Pt(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function Dt(e,t,n){return!t||!!e&&(Pt(e,t,n)||Pt(t,e,n))}function Ot(e,t){return t.find(t=>t.id===e)}function Tt(e,t){let n=e;return t?.category&&(n=n.filter(e=>wt(e)===t.category)),t?.sport&&(n=n.filter(n=>nt(n)?function(e,t,n,o){if(Dt(e.sport,t,n))return!0;if(!o)return!1;for(const r of ot(e)){const e=Ot(r,o);if(e&&Dt(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):Dt(n.sport,t.sport,t.sportBaseKey))),n}function Et(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t?t:"sports"}(e)===t}function jt(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>Pt(t,e,n))}function Yt(e,t,n){return!(n?.category&&!Et(e,n.category))&&!(n?.sport&&!jt(e,n.sport,n.sportBaseKey))&&Tt(Rt(t,e),n).length>0}function Ht(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!Et(e,t.category)||t.sport&&!jt(e,t.sport,t.sportBaseKey))):e}function Rt(e,t,n){const o=t.allowed_sports,r=o&&o.length>0,l=t.allowed_markets&&t.allowed_markets.length>0;return r||l?e.filter(a=>{if(ut(a))return!1;if(r)if(nt(a)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>Pt(e.sport,t,n)))return!0;if(!o)return!1;for(const r of ot(e)){const e=Ot(r,o);if(e?.sport&&t.some(t=>Pt(e.sport,t,n)))return!0}return!1}(a,o,n,e))return!1}else if(!a.sport||!o.some(e=>Pt(a.sport,e,n)))return!1;return!(l&&!function(e,t){const n=t.allowed_markets;if(!n||0===n.length)return!0;const o=_e(e);return!!o&&n.includes(o)}(a,t))}):e.filter(e=>!ut(e))}function Gt(e,t){const n=e.available_days;if(!n)return!0;if(0===n.length)return!0;const o=((t??/* @__PURE__ */new Date).getDay()+6)%7;return n.includes(o)}var Wt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function It(e,t="#ffffff",n="#1a1a1a"){if(!e)return n;const o=function(e){const t=e.trim().toLowerCase(),n=t.match(/^#([0-9a-f]{3,8})$/);if(n){let e=n[1];return 3!==e.length&&4!==e.length||(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}const o=t.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);return o?[Number(o[1]),Number(o[2]),Number(o[3])]:null}(e);if(!o)return n;const[r,l,a]=o.map(e=>{const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)});return.2126*r+.7152*l+.0722*a>.4?n:t}function Ut(e,t,n){return function(e,t,n){return"racing"===e||!(!t?.length||!t.every(kt))||!!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 Kt(e){const t=[];for(const n of e){const e=n.home_team&&n.away_team&&!kt(n)?`${n.home_team} vs ${n.away_team}`:n.away_team||n.home_team||n.eventId||null,o=t[t.length-1],r=null===e?null:t.find(t=>t.key===e);r?r.props.push(n):null===e&&null===o?.key?o.props.push(n):t.push({key:e,props:[n]})}return t}function Zt(e,t){if(e===t)return[e];if(t<e)return[e];const n=[];for(let o=e;o<=t;o++)n.push(o);return n}function $t(e,t){const n=[...e].sort(()=>Math.random()-.5).slice(0,t),o=[],r=[];for(const l of n)Math.random()<.5?o.push(l):r.push(l);return{yesPicks:o,noPicks:r}}var qt=/* @__PURE__ */new Map,Vt=/* @__PURE__ */new Map;function Xt(e,t,n){return`data:image/svg+xml;utf8,${encodeURIComponent(function(e,t,n){let o=e.replace(/<\?xml[^?]*\?>/g,"").replace(/<!--[\s\S]*?-->/g,"");const r=["width:100%","height:100%","display:block"];t&&r.push(`color:${t}`),n&&r.push(`--icon-accent:${n}`);const l=`style="${r.join(";")}"`;return o=o.replace(/<svg\b([^>]*)>/,(e,t)=>`<svg${t.replace(/\s+style\s*=\s*"[^"]*"/i,"")} ${l}>`),o}(e,t,n))}`}function Qt({iconUrl:t,width:n,height:o,iconColor:r,accentColor:l,ariaLabel:a,style:i}){const s=Me(t),[c,d]=e.useState(()=>s??qt.get(t)??null);e.useEffect(()=>{const e=Me(t);if(e)return void d(e);if(qt.has(t))return void d(qt.get(t));let n=!1;return function(e){const t=qt.get(e);if(void 0!==t)return Promise.resolve(t);const n=Vt.get(e);if(n)return n;const o=fetch(e,{credentials:"omit"}).then(e=>{if(!e.ok)throw new Error(`SVG fetch failed: ${e.status}`);return e.text()}).then(t=>(qt.set(e,t),Vt.delete(e),t)).catch(t=>{throw Vt.delete(e),t});return Vt.set(e,o),o}(t).then(e=>{n||d(e)}).catch(()=>{n||d(null)}),()=>{n=!0}},[t]);const m={display:"inline-block",width:n,height:o,lineHeight:0,...i};/* @__PURE__ */
49
- return u("img",c?{src:Xt(c,r,l),alt:a??"","aria-hidden":!a||void 0,role:a?"img":"presentation","aria-label":a||void 0,style:{...m,objectFit:"contain"}}:{src:t,alt:a??"","aria-hidden":!a||void 0,style:{...m,objectFit:"contain"}})}function Jt({iconUrl:e,gameName:t,onPress:n,size:o=120,brandColor:r="#0F4C5C",cardColor:l="#DDD9D2",iconColor:a,accentColor:i,captionColor:s="#14687C",className:c,ariaLabel:d}){const p=(t||"").toUpperCase(),f=o/360,h=a??l,x=j(r,i,h),g=n=>/* @__PURE__ */m("div",{style:{position:"relative",width:o,height:o},children:[/* @__PURE__ */m("svg",{viewBox:"0 0 360 360",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%",role:"img","aria-label":d??`Press to play ${t}`,children:[
43
+ /* @__PURE__ */u("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 Je({size:e=20,color:t="currentColor",className:n=""}){/* @__PURE__ */
44
+ return u("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:/* @__PURE__ */u("path",{d:"M21 4H3l7.2 8.5V19l3.6 2v-8.5L21 4z"})})}function _e({size:e=20,color:t="currentColor",className:n=""}){/* @__PURE__ */
45
+ return u("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:/* @__PURE__ */u("path",{d:"m9 6 6 6-6 6"})})}function et({size:e=20,color:t="currentColor",className:n=""}){/* @__PURE__ */
46
+ return m("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:[/* @__PURE__ */u("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"}),/* @__PURE__ */u("path",{d:"M8 11V7a4 4 0 1 1 8 0v4"})]})}function tt({size:e=20,color:t="currentColor",filled:n=!1,className:o=""}){/* @__PURE__ */
47
+ return u("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:n?t:"none",stroke:t,strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round",className:o,"aria-hidden":!0,children:/* @__PURE__ */u("path",{d:"M12 3.6l2.6 5.28 5.83.85-4.22 4.11.997 5.8L12 16.9l-5.2 2.74.99-5.8L3.57 9.73l5.83-.85L12 3.6z"})})}function nt({theme:e,itemCount:t=0,contentClassName:n="gap-2 px-0.5 py-0.5",className:r="",children:a}){const i=e.colors,d=s(null),[p,h]=c(!1),[f,x]=c(!1),[g,y]=c(!1);l(()=>{if("undefined"==typeof window||!window.matchMedia)return;const e=window.matchMedia("(pointer: coarse)"),t=()=>y(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);const b=o(()=>{const e=d.current;if(!e)return;const t=e.scrollWidth-e.clientWidth;h(e.scrollLeft>2),x(e.scrollLeft<t-2)},[]);l(()=>{b(),window.addEventListener("resize",b);const e=d.current;let t;if(e&&"undefined"!=typeof ResizeObserver){t=new ResizeObserver(b),t.observe(e);for(const n of Array.from(e.children))t.observe(n)}return()=>{window.removeEventListener("resize",b),t?.disconnect()}},[b,t]);const w=e=>{const t=d.current;t&&t.scrollBy({left:e*Math.round(.7*t.clientWidth),behavior:"smooth"})},k=s({down:!1,lastX:0,travelled:0}),v=()=>{k.current.down=!1},N=o(()=>k.current.travelled>4,[]),C=i.background??"#fff",F={width:44,height:44,cursor:"pointer",background:"none",border:"none",padding:0},B={width:26,height:26,border:`1px solid ${i.border}`,backgroundColor:C,color:i.primary,boxShadow:"0 4px 10px -4px rgba(15, 76, 92, 0.55)"};/* @__PURE__ */
48
+ return m("div",{className:`relative min-w-0 ${r}`,children:[p&&/* @__PURE__ */u("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-y-0 left-0 z-[2] w-10",style:{background:`linear-gradient(to right, ${C}, transparent)`}}),p&&!g&&/* @__PURE__ */u("button",{type:"button","aria-label":"Scroll left",onClick:()=>w(-1),className:"absolute top-1/2 z-[3] flex -translate-y-1/2 items-center justify-center active:scale-90",style:{...F,left:-11},children:/* @__PURE__ */u("span",{className:"flex items-center justify-center rounded-full",style:B,children:/* @__PURE__ */u(_e,{size:14,className:"rotate-180"})})}),f&&/* @__PURE__ */u("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-y-0 right-0 z-[2] w-10",style:{background:`linear-gradient(to left, ${C}, transparent)`}}),f&&!g&&/* @__PURE__ */u("button",{type:"button","aria-label":"Scroll right",onClick:()=>w(1),className:"absolute top-1/2 z-[3] flex -translate-y-1/2 items-center justify-center active:scale-90",style:{...F,right:-11},children:/* @__PURE__ */u("span",{className:"flex items-center justify-center rounded-full",style:B,children:/* @__PURE__ */u(_e,{size:14})})}),
49
+ /* @__PURE__ */u("div",{ref:d,onScroll:b,onPointerDown:e=>{"touch"!==e.pointerType&&(k.current={down:!0,lastX:e.clientX,travelled:0})},onPointerMove:e=>{const t=k.current;if(!t.down)return;const n=t.lastX-e.clientX;t.lastX=e.clientX,t.travelled+=Math.abs(n),d.current&&(d.current.scrollLeft+=n)},onPointerUp:v,onPointerCancel:v,onPointerLeave:v,className:`flex cursor-grab select-none items-stretch overflow-x-auto [-webkit-overflow-scrolling:touch] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden active:cursor-grabbing ${n}`,children:a(N)})]})}function ot({groups:t,theme:n,bodyFont:o,className:r=""}){const l=n.colors,a=l.background??"#fff";return 0===t.length?null:/* @__PURE__ */u(nt,{theme:n,itemCount:t.length,className:r,contentClassName:"items-center gap-2 px-0.5 py-0.5",children:n=>t.map((t,r)=>/* @__PURE__ */m(e.Fragment,{children:[r>0&&/* @__PURE__ */u("span",{"aria-hidden":!0,className:"h-5 w-px flex-none self-center",style:{backgroundColor:l.border}}),t.label&&/* @__PURE__ */u("span",{className:"flex-none self-center text-[10px] font-extrabold uppercase tracking-[0.14em]",style:{color:l.textMuted,fontFamily:o},children:t.label}),t.options.map(e=>{const r=e.value===t.value;/* @__PURE__ */
50
+ return u("button",{type:"button",onClick:()=>{n()||t.onChange(e.value)},className:"flex-none self-center whitespace-nowrap rounded-full px-3.5 py-1.5 text-[12px] font-bold tracking-[-0.01em] transition-colors active:translate-y-px",style:{fontFamily:o,border:`1px solid ${r?l.primary:l.border}`,backgroundColor:r?l.primary:a,color:r?l.primaryText:l.primary,cursor:"pointer"},children:e.label},e.value??"__all")})]},t.label??r))})}function rt({label:e,options:t,value:n,onChange:o,theme:r,bodyFont:l,className:a=""}){/* @__PURE__ */
51
+ return u(ot,{groups:[{label:e,options:t,value:n,onChange:o}],theme:r,bodyFont:l,className:a})}function lt(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function at(e){return(e.description??e.proposition??"").trim()}var it={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function st(e){return"composite_and"===(t=lt(e))||"composite_or"===t;var t}function ct(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 dt(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 ut(e,t){if(!st(e))return null;const n=function(e){return st(e)?("composite_and"===(t=lt(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=ct(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:at(o),eventLabel:dt(o),prop:o})}if(e.length>=2)return{operator:n,legs:e}}const r=function(e,t){const n=e.trim();if(!n)return null;const o=n.split(it[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(at(e),n);return r?{operator:n,legs:r.map(e=>({text:e,eventLabel:null,prop:null}))}:null}var mt="#0F4C5C",pt={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"},ht={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner"};function ft(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=pt[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 xt(e,t){return e>0?`${e} today`:t>0?`${t} picks`:"No picks"}function gt(e,t){const n=t>0?Math.floor(t/68):e;return Math.max(2,Math.min(Math.ceil(e/2),n))}function yt(e){return!!e.is_composite_component||!!(t=lt(e))&&t.startsWith("co_");var t}function bt(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0}function wt(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function kt(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}function vt(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 Nt(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 Ct(e){return e.reduce((t,n)=>{const o=Ft(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function Ft(e,t){if(e.sport)return e.sport;if(st(e)&&t)for(const n of ct(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var Bt=["sports","casino","racing"];function At(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=(lt(e)??"").toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"sports"}function Mt(e){return"racing"===At(e)}function St(e){const t={};for(const n of e){const e=At(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function zt(e){const t=St(e);return Bt.filter(e=>(t[e]?.length??0)>0)}function Lt(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";default:return"Choose a Sport"}}function Pt(e,t,n,o){return o&&o.length>0?o.includes(e):!(void 0!==t&&e<t||void 0!==n&&e>n)}function Tt(e,t,n){const o=n?.min_propositions??null,r=n?.max_propositions??null,l=(n?.allowed_propositions??e.allowed_propositions)?.filter(e=>(null==o||e>=o)&&(null==r||e<=r));if(l&&l.length>0)return null!=t&&l.includes(t)?{min:t,max:t}:{min:Math.min(...l),max:Math.max(...l)};const a=e.min_propositions??e.num_propositions??0,i=e.max_propositions??e.num_propositions??0;return{min:null!=o?Math.max(a,o):a,max:null!=r&&i>0?Math.min(i,r):r??i}}function Dt(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 Ot(e,t,n){return"racing"===e||!(!t?.length||!t.every(Mt))||!!n&&Boolean(t?.some(e=>e.sport===n||(e.sport||"").startsWith(`${n}_`)))}function Et(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 jt(e,t,n){const o=t?.[e];return o||Et(e,n)}function Yt(e,t){const n=t?.[e];return n||function(e){return{sports:"Sports",casino:"Casino",racing:"Racing"}[e]??e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}(e)}function Ht(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function Rt(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function Gt(e,t,n){return!t||!!e&&(Rt(e,t,n)||Rt(t,e,n))}function Wt(e,t){return t.find(t=>t.id===e)}function It(e,t){let n=e;return t?.category&&(n=n.filter(e=>At(e)===t.category)),t?.sport&&(n=n.filter(n=>st(n)?function(e,t,n,o){if(Gt(e.sport,t,n))return!0;if(!o)return!1;for(const r of ct(e)){const e=Wt(r,o);if(e&&Gt(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):Gt(n.sport,t.sport,t.sportBaseKey))),n}function Ut(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t?t:"sports"}(e)===t}function $t(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>Rt(t,e,n))}function Kt(e,t,n){return!(n?.category&&!Ut(e,n.category))&&!(n?.sport&&!$t(e,n.sport,n.sportBaseKey))&&It(Vt(t,e),n).length>0}function Zt(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!Ut(e,t.category)||t.sport&&!$t(e,t.sport,t.sportBaseKey))):e}function qt(e,t){if(e.sport||!st(e))return e;const n=Ft(e,t);return"Other"===n?e:{...e,sport:n}}function Vt(e,t,n){const o=t.allowed_sports,r=o&&o.length>0,l=t.allowed_markets&&t.allowed_markets.length>0;return r||l?e.filter(a=>{if(yt(a))return!1;if(r)if(st(a)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>Rt(e.sport,t,n)))return!0;if(!o)return!1;for(const r of ct(e)){const e=Wt(r,o);if(e?.sport&&t.some(t=>Rt(e.sport,t,n)))return!0}return!1}(a,o,n,e))return!1}else if(!a.sport||!o.some(e=>Rt(a.sport,e,n)))return!1;return!(l&&!function(e,t){const n=t.allowed_markets;if(!n||0===n.length)return!0;const o=lt(e);return!!o&&n.includes(o)}(a,t))}).map(t=>qt(t,e)):e.filter(e=>!yt(e)).map(t=>qt(t,e))}function Xt(e,t){const n=e.available_days;if(!n)return!0;if(0===n.length)return!0;const o=((t??/* @__PURE__ */new Date).getDay()+6)%7;return n.includes(o)}var Qt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function Jt(e,t="#ffffff",n="#1a1a1a"){if(!e)return n;const o=function(e){const t=e.trim().toLowerCase(),n=t.match(/^#([0-9a-f]{3,8})$/);if(n){let e=n[1];return 3!==e.length&&4!==e.length||(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}const o=t.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);return o?[Number(o[1]),Number(o[2]),Number(o[3])]:null}(e);if(!o)return n;const[r,l,a]=o.map(e=>{const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)});return.2126*r+.7152*l+.0722*a>.4?n:t}function _t(e,t,n){return Ot(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 en(e){const t=[];for(const n of e){const e=n.home_team&&n.away_team&&!Mt(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 tn(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 nn(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 on=/* @__PURE__ */new Map,rn=/* @__PURE__ */new Map;function ln(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 an({iconUrl:t,width:n,height:o,iconColor:r,accentColor:l,ariaLabel:a,style:i}){const s=Me(t),[c,d]=e.useState(()=>s??on.get(t)??null);e.useEffect(()=>{const e=Me(t);if(e)return void d(e);if(on.has(t))return void d(on.get(t));let n=!1;return function(e){const t=on.get(e);if(void 0!==t)return Promise.resolve(t);const n=rn.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=>(on.set(e,t),rn.delete(e),t)).catch(t=>{throw rn.delete(e),t});return rn.set(e,o),o}(t).then(e=>{n||d(e)}).catch(()=>{n||d(null)}),()=>{n=!0}},[t]);const m={display:"inline-block",width:n,height:o,lineHeight:0,...i};/* @__PURE__ */
52
+ return u("img",c?{src:ln(c,r,l),alt:a??"","aria-hidden":!a||void 0,role:a?"img":"presentation","aria-label":a||void 0,style:{...m,objectFit:"contain"}}:{src:t,alt:a??"","aria-hidden":!a||void 0,style:{...m,objectFit:"contain"}})}function sn({iconUrl:e,gameName:t,onPress:n,size:o=120,brandColor:r="#0F4C5C",cardColor:l="#DDD9D2",iconColor:a,accentColor:i,captionColor:s="#14687C",className:c,ariaLabel:d}){const p=(t||"").toUpperCase(),h=o/360,f=a??l,x=K(r,i,f),g=n=>/* @__PURE__ */m("div",{style:{position:"relative",width:o,height:o},children:[/* @__PURE__ */m("svg",{viewBox:"0 0 360 360",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%",role:"img","aria-label":d??`Press to play ${t}`,children:[
50
53
  /* @__PURE__ */u("rect",{x:"2",y:"2",width:"356",height:"356",rx:"78",fill:l,stroke:r,strokeWidth:"4"}),
51
54
  /* @__PURE__ */u("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:/* @__PURE__ */u("rect",{x:"40",y:"5",width:"210",height:"210",rx:"42",fill:r,opacity:"0.30"})}),
52
55
  /* @__PURE__ */u("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:/* @__PURE__ */u("rect",{x:"40",y:"5",width:"210",height:"210",rx:"42",fill:r,opacity:"0.55"})}),
53
56
  /* @__PURE__ */u("rect",{x:"40",y:"5",width:"210",height:"210",rx:"42",fill:r}),
54
57
  /* @__PURE__ */u("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"}),
55
- /* @__PURE__ */u("text",{x:"180",y:"338",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"18",letterSpacing:"2",textAnchor:"middle",fontWeight:500,fill:s,children:p})]}),/* @__PURE__ */u("div",{style:{position:"absolute",left:60*f,top:25*f,width:170*f,height:170*f,pointerEvents:"none"},children:/* @__PURE__ */u(Qt,{iconUrl:e,width:"100%",height:"100%",iconColor:h,accentColor:x})})]});return n?/* @__PURE__ */u(_t,{size:o,onPress:n,className:c,ariaLabel:d??`Press to play ${t}`,renderInner:g}):/* @__PURE__ */u("div",{className:c,style:{width:o,height:o},children:g(!1)})}function _t({size:e,onPress:t,className:n,ariaLabel:o,renderInner:r}){const[l,a]=c(!1),[i,s]=c(!1);/* @__PURE__ */
56
- return u("button",{type:"button",onClick:t,"aria-label":o,className:n,onMouseEnter:()=>a(!0),onMouseLeave:()=>{a(!1),s(!1)},onMouseDown:()=>s(!0),onMouseUp:()=>s(!1),onTouchStart:()=>s(!0),onTouchEnd:()=>s(!1),onBlur:()=>{s(!1),a(!1)},style:{width:e,height:e,padding:0,background:"transparent",border:0,cursor:"pointer",borderRadius:e/360*78,transform:i?"scale(0.96)":"scale(1)",transition:"transform 140ms ease-out"},children:r(l||i)})}function en(e){return e.selectionCard??e.backgroundAlt}function tn({color:e,size:t=20,label:n="Loading"}){/* @__PURE__ */
57
- return u("div",{role:"status","aria-label":n,className:"inline-flex items-center justify-center",children:/* @__PURE__ */m("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:[/* @__PURE__ */u("circle",{cx:"12",cy:"12",r:"10",strokeOpacity:"0.25"}),/* @__PURE__ */u("path",{d:"M12 2a10 10 0 0 1 10 10",strokeLinecap:"round"})]})})}function nn({color:e="#ffffff",size:t=18}){/* @__PURE__ */
58
- return u(tn,{color:e,size:t,label:"Loading"})}function on({color:e,className:t="",style:n}){/* @__PURE__ */
59
- return u("span",{className:`inline-block animate-pulse rounded-md ${t}`,style:{backgroundColor:e,opacity:.35,...n},"aria-hidden":!0})}function rn({className:e="",bodyFont:t,children:n}){/* @__PURE__ */
60
- return u("div",{className:`flex flex-col min-h-full w-full min-w-0 ${e}`,style:{fontFamily:t},children:/* @__PURE__ */u("div",{className:"flex-1 w-full min-w-0",children:n})})}function ln({colors:e,count:t=2}){/* @__PURE__ */
61
- return u("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)=>/* @__PURE__ */m("div",{className:"flex flex-col items-start justify-center gap-2 sm:gap-3 rounded-2xl border p-3.5 sm:p-5 w-full min-h-[112px] sm:min-h-[140px]",style:{backgroundColor:en(e),borderColor:e.border},children:[/* @__PURE__ */u(on,{color:e.textMuted,className:"h-5 w-[11rem] max-w-full"}),/* @__PURE__ */u(on,{color:e.textMuted,className:"h-3 w-24 max-w-[70%]"})]},n))})}function an({colors:e,count:t=4}){/* @__PURE__ */
62
- return u("div",{className:"grid grid-cols-2 gap-3 w-full","aria-hidden":!0,children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */m("div",{className:"flex flex-col items-center gap-2 rounded-2xl border px-3 py-3 sm:flex-row sm:gap-3.5 sm:px-4 sm:py-4 w-full min-w-0",style:{backgroundColor:en(e),borderColor:e.border},children:[/* @__PURE__ */u(on,{color:e.textMuted,className:"h-10 w-10 sm:h-12 sm:w-12 rounded-xl shrink-0"}),/* @__PURE__ */m("div",{className:"flex w-full min-w-0 flex-col items-center gap-1.5 sm:w-auto sm:items-start",children:[/* @__PURE__ */u(on,{color:e.textMuted,className:"h-3.5 w-20 max-w-full"}),/* @__PURE__ */u(on,{color:e.textMuted,className:"h-2.5 w-12 max-w-[80%]"})]})]},n))})}function sn({colors:e,count:t=3}){/* @__PURE__ */
63
- return u("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)=>/* @__PURE__ */m("div",{className:"flex min-h-16 items-center justify-between gap-3 rounded-2xl border px-3.5 py-3.5 sm:px-5 sm:py-4 w-full",style:{backgroundColor:en(e),borderColor:e.border},children:[/* @__PURE__ */m("div",{className:"min-w-0 flex-1",children:[/* @__PURE__ */u("div",{className:"rounded-xl px-3 py-2.5",style:{backgroundColor:e.backgroundAlt},children:/* @__PURE__ */u(on,{color:e.textMuted,className:"h-4 w-44 max-w-full"})}),/* @__PURE__ */u(on,{color:e.textMuted,className:"h-3 w-40 max-w-[80%] mt-2"})]}),/* @__PURE__ */u(on,{color:e.textMuted,className:"h-5 w-5 rounded shrink-0"})]},n))})}function cn({colors:e,tileSize:t=116}){/* @__PURE__ */
64
- return m("div",{className:"flex flex-col items-center rounded-3xl border px-5 pt-[22px] pb-5 w-[86%] max-w-[380px] mx-auto",style:{borderColor:e.border,backgroundColor:en(e)},"aria-hidden":!0,children:[
65
- /* @__PURE__ */u(on,{color:e.textMuted,className:"rounded-2xl",style:{width:t,height:t}}),
66
- /* @__PURE__ */u(on,{color:e.textMuted,className:"h-3 w-11 mt-3"}),
67
- /* @__PURE__ */u(on,{color:e.textMuted,className:"h-5 w-36 max-w-[80%] mt-2"}),
68
- /* @__PURE__ */u(on,{color:e.textMuted,className:"h-3 w-48 max-w-[90%] mt-3"}),
69
- /* @__PURE__ */u(on,{color:e.textMuted,className:"h-3 w-40 max-w-[75%] mt-1.5"})]})}function dn({colors:e}){/* @__PURE__ */
70
- return u("div",{className:"grid grid-cols-3 gap-2 mb-3 w-full","aria-hidden":!0,children:[0,1,2].map(t=>/* @__PURE__ */u(on,{color:e.textMuted,className:"h-[38px] w-full rounded-full"},t))})}function un({colors:e,count:t=3,tileSize:n=116,showTierTabs:o=!1}){/* @__PURE__ */
71
- return m("div",{className:"flex flex-col w-full","aria-hidden":!0,children:[o&&/* @__PURE__ */u(dn,{colors:e}),
72
- /* @__PURE__ */u(cn,{colors:e,tileSize:n}),t>1&&/* @__PURE__ */m(d,{children:[/* @__PURE__ */u("div",{className:"flex items-center justify-center gap-2.5 pt-4 pb-2",children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */u(on,{color:e.textMuted,className:"rounded-full",style:{width:0===n?22:7,height:7}},n))}),/* @__PURE__ */m("div",{className:"mt-1 pt-2.5",style:{borderTop:`1px solid ${e.border}`},children:[/* @__PURE__ */u(on,{color:e.textMuted,className:"h-2.5 w-16 mb-2"}),/* @__PURE__ */u("div",{className:"grid gap-1",style:{gridTemplateColumns:"repeat(auto-fit, minmax(84px, 1fr))"},children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */m("div",{className:"flex flex-col items-center gap-1.5 px-1 py-1.5",children:[/* @__PURE__ */u(on,{color:e.textMuted,className:"h-[52px] w-[52px] rounded-2xl"}),/* @__PURE__ */u(on,{color:e.textMuted,className:"h-2.5 w-12"})]},n))})]})]})]})}function mn({colors:e,groups:t=2,rowsPerGroup:n=2}){/* @__PURE__ */
73
- return m("div",{className:"space-y-4 sm:space-y-6 pb-16 w-full","aria-hidden":!0,children:[/* @__PURE__ */u(on,{color:e.textMuted,className:"h-7 w-[4.5rem] rounded-full"}),/* @__PURE__ */u("div",{className:"space-y-4",children:Array.from({length:t}).map((t,o)=>/* @__PURE__ */m("div",{className:"rounded-xl border overflow-hidden w-full",style:{borderColor:e.border,backgroundColor:en(e)},children:[/* @__PURE__ */m("div",{className:"px-4 py-3 flex flex-col gap-1.5",style:{backgroundColor:e.backgroundAlt},children:[/* @__PURE__ */u(on,{color:e.textMuted,className:"h-4 w-44 max-w-[80%]"}),/* @__PURE__ */u(on,{color:e.textMuted,className:"h-3 w-24"})]}),/* @__PURE__ */u("div",{className:"divide-y",style:{borderColor:e.border},children:Array.from({length:n}).map((t,n)=>/* @__PURE__ */m("div",{className:"flex items-center justify-between gap-3 px-4 py-3 sm:py-3.5",style:{borderColor:e.border},children:[/* @__PURE__ */u(on,{color:e.textMuted,className:"h-4 flex-1 max-w-[58%]"}),/* @__PURE__ */m("div",{className:"flex gap-1.5 shrink-0",children:[/* @__PURE__ */u(on,{color:e.textMuted,className:"h-7 w-11 sm:h-8 sm:w-12 rounded-lg"}),/* @__PURE__ */u(on,{color:e.textMuted,className:"h-7 w-11 sm:h-8 sm:w-12 rounded-lg"})]})]},n))})]},o))})]})}function pn({colors:e}){/* @__PURE__ */
74
- return u("div",{className:"flex border-b mb-4 w-full",style:{borderColor:e.border},"aria-hidden":!0,children:[0,1].map(t=>/* @__PURE__ */m("div",{className:"flex items-center gap-2 px-4 py-2.5 border-b-2 border-transparent",children:[/* @__PURE__ */u(on,{color:e.textMuted,className:"h-3.5 w-[4.25rem]"}),/* @__PURE__ */u(on,{color:e.textMuted,className:"h-5 min-w-[1.25rem] w-5 rounded-full"})]},t))})}function fn({colors:e}){/* @__PURE__ */
75
- return m("div",{className:"rounded-lg border overflow-hidden w-full",style:{borderColor:e.border,backgroundColor:en(e)},"aria-hidden":!0,children:[/* @__PURE__ */m("div",{className:"w-full px-4 py-3 flex items-center justify-between gap-3",children:[/* @__PURE__ */m("div",{className:"min-w-0 flex-1 flex flex-col gap-1.5",children:[/* @__PURE__ */u(on,{color:e.textMuted,className:"h-[18px] w-40 max-w-[75%]"}),/* @__PURE__ */u(on,{color:e.textMuted,className:"h-3 w-32 max-w-[65%]"})]}),/* @__PURE__ */m("div",{className:"flex items-center gap-3 shrink-0",children:[/* @__PURE__ */u(on,{color:e.textMuted,className:"h-3.5 w-10"}),/* @__PURE__ */u(on,{color:e.textMuted,className:"h-6 w-[3.75rem] rounded-full"})]})]}),/* @__PURE__ */u("div",{className:"border-t divide-y w-full",style:{borderColor:e.border},children:[0,1,2].map(t=>/* @__PURE__ */m("div",{className:"px-4 py-2.5 flex items-center justify-between gap-3",children:[/* @__PURE__ */m("div",{className:"flex-1 min-w-0 flex flex-col gap-1",children:[/* @__PURE__ */u(on,{color:e.textMuted,className:"h-3.5 w-[88%]"}),/* @__PURE__ */u(on,{color:e.textMuted,className:"h-3 w-[70%]"})]}),/* @__PURE__ */u(on,{color:e.textMuted,className:"h-5 w-10 rounded shrink-0"})]},t))})]})}function hn({colors:e,rows:t=2}){/* @__PURE__ */
76
- return m("div",{className:"w-full flex flex-col","aria-hidden":!0,children:[/* @__PURE__ */u(pn,{colors:e}),/* @__PURE__ */u("div",{className:"space-y-3 w-full",children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */u(fn,{colors:e},n))})]})}function xn({colors:e,bodyFont:t,message:n,className:o="",variant:r="category",showLogoArea:l=!1,gameCardCount:a=3,categoryCount:i=2,showTierTabs:s=!1}){const c=(()=>{switch(r){case"sport":/* @__PURE__ */return u(an,{colors:e,count:Math.max(i,2)});case"event":/* @__PURE__ */return u(sn,{colors:e});case"games":/* @__PURE__ */return u(un,{colors:e,count:a,showTierTabs:s});case"propositions":/* @__PURE__ */return u(mn,{colors:e});case"entries":/* @__PURE__ */return u(hn,{colors:e,rows:2});default:/* @__PURE__ */return u(ln,{colors:e,count:i})}})(),d=n?.trim()||"Loading";/* @__PURE__ */
77
- return u(rn,{className:o,bodyFont:t,children:/* @__PURE__ */m("div",{role:"status","aria-live":"polite","aria-label":d,className:"w-full min-w-0",children:[n?.trim()?/* @__PURE__ */u("p",{className:"text-sm text-center mb-4",style:{color:e.textMuted,fontFamily:t,margin:0},children:n}):null,c]})})}function gn(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function yn(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function bn(e){if(!e||e.quick_pick_only)return!1;const t=yn(e.selection_scope);if("samegamemulti"===yn(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(yn);return n.includes("samegame")||n.includes("samegamemulti")}function wn(e){return(e.eventId??e.event_id)?.trim()||null}function kn(e){const t=/* @__PURE__ */new Map;for(const n of e){if(!Bn(n))continue;const e=wn(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=vn(o.homeTeam,n.home_team),o.awayTeam=vn(o.awayTeam,n.away_team),o.sport=vn(o.sport,n.sport),o.league=vn(o.league,n.league),o.commenceTime=Fn(o.commenceTime,n.commence_time)):t.set(e,{id:e,homeTeam:n.home_team?.trim()||void 0,awayTeam:n.away_team?.trim()||void 0,commenceTime:n.commence_time?.trim()||void 0,sport:n.sport?.trim()||void 0,league:n.league?.trim()||void 0,propositionCount:1})}return[...t.values()].sort((e,t)=>{const n=Nn(e.commenceTime),o=Nn(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function vn(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function Nn(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function Fn(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=Nn(e),r=Nn(n);return r!==o?r<o?n:e:e.localeCompare(n)<=0?e:n}function Bn(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function Cn(e,t){return t?e.filter(e=>Bn(e)&&wn(e)===t):[]}function An(e,t){return!!t&&e.length>0&&e.every(e=>Bn(e)&&wn(e)===t)}var Mn={signature:1,premier:2,exclusive:3},Sn=[{id:"signature",label:"Signature Games",shortLabel:"Signature",level:1},{id:"premier",label:"Premier Games",shortLabel:"Premier",level:2},{id:"exclusive",label:"Exclusive Games",shortLabel:"Exclusive",level:3}];function zn(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function Ln(e,t){return e.filter(e=>zn(e)===t)}function Pn(e){const t=new Set(e.map(zn));return Sn.filter(e=>t.has(e.level))}function Dn(e){return Pn(e)[0]?.id??"signature"}var On=4,Tn=6,En=[4,12],jn=[5,10,20,50];function Yn(e){return!!e&&!e.quick_pick_only&&"safety_net"===(e.rule??"").trim().toLowerCase()}function Hn(e){const t=e.payout_structure;return{margin:e.operator_margin??0,perLegProbability:t?.per_leg_probability??.5,perfectMultiple:t?.perfect_prize?.stake_multiple??25,perfectBaseLegs:t?.perfect_prize?.base_legs??6,nearMissBudgetFraction:t?.near_miss?.budget_fraction??.5,roundTo:t?.round_to??5}}function Rn(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)}function Gn(e,t){if(t<0||t>e)return 0;let n=1;for(let o=0;o<t;o+=1)n=n*(e-o)/(o+1);return Math.round(n)}function Wn(e,t,n,o){const r=Math.max(0,Math.min(n,t)),l=e*o.perfectMultiple*Math.pow(2,t-o.perfectBaseLegs),a=r>0?e*(1-o.margin)*o.nearMissBudgetFraction/r:0,i=Math.pow(1/o.perLegProbability,t),s=[];let c=Gn(t,0);for(let d=1;d<=r;d+=1)c+=Gn(t,d),s.push(Rn(a*i/c,o.roundTo));return{legs:t,stake:e,allowedMisses:r,perfect:l,nearMiss:s,sweep:l+s.reduce((e,t)=>e+t,0)}}function In(e,t){if(t<0||t>e.allowedMisses)return 0;let n=0===t?e.perfect:0;for(let o=Math.max(1,t);o<=e.nearMiss.length;o+=1)n+=e.nearMiss[o-1];return n}function Un(e){return e.includes(8)?8:e[Math.floor(e.length/2)]}function Kn(e){return e.toLowerCase().replace(/[^a-z]+/g," ").trim()}function Zn(e,t){const n=Kn(t);return e.permitted_rules?.find(e=>Kn(e.name??"").includes(n))??null}function $n(e,t,n){const o=t?.min_propositions??n,r=t?.max_propositions??null;return e.filter(e=>e>=o&&(null==r||e<=r))}function qn(e){if(!Yn(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??En[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??En[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n),r=Zn(e,"Extra Shot"),l=Zn(e,"Double Shot"),a=$n(o,r,4).filter(e=>e>1),i=$n(o,l,6).filter(e=>e>2);if(0===a.length)return null;const s=[{id:"extra_shot",label:"Extra Shot",allowedMisses:1,stat:"Bigger payout",explain:"Miss one leg and you win the All but 1 prize. Get every leg right and you win both — the Perfect prize on top.",legOptions:a,defaultLegs:Un(a),ruleId:r?.id??null}],c=!e.permitted_rules?.length||!!l;i.length>0&&c&&s.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:i,defaultLegs:Un(i),ruleId:l?.id??null});const d=Math.max(e.min_bet??5,.01),u=e.max_bet??null,m=jn.filter(e=>null===u||e<=u);return{modes:s,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:Hn(e)}}function Vn(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function Xn(e,t,n){const o=Math.max(0,e-t),r=Wn(20,e,o,n),l=[];for(let a=0;a<=o;a+=1){const t=Math.round(In(r,a));l.push({misses:a,label:`${e-a}/${e}`,multiplier:t/20,payout20:t})}return l}function Qn(e,t){return[{id:"net-1",label:"Extra Shot",stat:"Bigger payout",detail:["One wrong wins a prize","Perfect wins both","Miss twice and the ticket does not pay"],dividends:Xn(e,e-1,t),expectedCorrect:e-1},{id:"net-2",label:"Double Shot",stat:"Safer play",detail:["Two wrong wins a prize","One wrong wins two","Perfect wins all three"],dividends:Xn(e,e-2,t),expectedCorrect:e-2}]}function Jn(e,t){if(!e||e.quick_pick_only)return null;const n=function(e){return(e??"").trim().toLowerCase()}(e.rule),o=t??e.num_propositions??e.min_propositions??e.allowed_propositions?.[0]??0;return"safety_net"===n&&o>0?function(e,t){return{mode:"selection",kind:"safety_net",title:"Choose your safety net",headline:"2 Ways to PLAY, more ways to PAY",heroTagline:"The wider the safety net, the more misses it catches. The narrower it is, the bigger the top prize.",legCount:t,options:Qn(t,Hn(e)),continueLabel:"Continue to picks"}}(e,o):"exact"===n&&o>0?function(e,t){return{mode:"selection",kind:"exact",title:"All or nothing",headline:"Get it PERFECT, take the top PAY",heroTagline:"Every pick has to land. Miss a single one and the ticket is gone — but a clean sweep pays the biggest prize.",legCount:t,options:Vn(t),continueLabel:"Continue to picks"}}(0,o):"pick"===n&&o>0?function(e,t){return{mode:"description",kind:"pick",title:"How it plays",headline:"Every hit PLAYS, every hit PAYS",heroTagline:"No all-or-nothing — your multiplier climbs with every correct pick.",legCount:t,highlights:["Make your yes/no picks across the available markets","Each correct pick pushes your multiplier higher","Land fewer than the full card and you can still cash"],continueLabel:"Continue to picks"}}(0,o):null}function _n(e){return null!=Jn(e)}var eo=[2500,5e3,7500,1e4,12500,15e3,2e4],to=[12,11,10,9,8,7,6];function no(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function oo(e){return Math.round(100*e)/100}function ro(e,t,n=.21875){const o=Math.pow(2,t),r=e/(1-n)/o,l=Number.isInteger(r),a=oo(r),i=l?r:oo(.96*r);return{legs:t,exactStake:a,stake:i,margin:1-e/(i*o),multiple:e/i,oddsOneIn:o,discounted:!l}}function lo(e,t=to){return{dividend:e,rungs:t.map(t=>ro(e,t))}}function ao(e,t){if(!no(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,r=to.filter(e=>e>=n&&e<=o);if(0===r.length)return null;const l=t?.dividends??eo;return{dividends:l.map(e=>lo(e,r)),defaultDividend:l.includes(1e4)?1e4:l[Math.floor(l.length/2)],defaultLegs:r.includes(9)?9:r[Math.floor(r.length/2)],tagline:"The dividend is set. The win is yours to build."}}function io(e,t){const n=e.allowed_propositions&&e.allowed_propositions.length>0?e.allowed_propositions.map(Number):[],o=e.min_propositions??e.num_propositions??null,r=e.max_propositions??e.num_propositions??null,l=0===n.length&&null!==o&&null!==r&&r>0,a=n.length>0?n:l?Zt(o,r):[],i=/* @__PURE__ */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||i.set(e,{count:e,payout:Number.isFinite(t)?t:0,betAmount:Number.isFinite(n)&&n>0?n:20})}for(const h of a){const e=Number(h);i.has(e)||i.set(e,{count:e,payout:0,betAmount:20})}const s=Array.from(i.values()).sort((e,t)=>e.count-t.count),c=a.length>0?Math.max(...a.map(Number)):0,d=no(e)?ao(e):null,u=d?d.dividends.map(e=>({dividend:e.dividend,stakeFrom:Math.min(...e.rungs.map(e=>e.stake))})):void 0,m=d?[]:s.map(e=>({count:e.count,payout20:e.payout>0&&e.betAmount>0?e.payout/e.betAmount*20:0})),p=Jn(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:a.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 so({tiers:e,modes:t,pydDividends:n,onPlayCount:o,minBet:r=1,maxBet:l=null,colors:a,bodyFont:i,headingFont:s}){const p=e=>Math.min(Math.max(e,r),l??1/0),[f,h]=c(()=>String(p(20))),x=parseFloat(f),g=p(Number.isFinite(x)&&x>0?x:20),y=g/20,b=!!(t?.length||n?.length||e.some(e=>e.payout20>0)),w=!!t?.length;if(!b)return null;const k=/* @__PURE__ */m("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",
78
- /* @__PURE__ */m("span",{className:"inline-flex items-center not-italic",style:{fontWeight:700,fontSize:11},children:["$",/* @__PURE__ */u("input",{type:"number",min:r,max:l??void 0,value:f,onChange:e=>h(e.target.value),onBlur:()=>h(String(g)),"aria-label":"Example bet amount",style:{width:74,marginLeft:2,padding:"2px 5px",borderRadius:6,border:`1px solid ${a.border}`,backgroundColor:a.background??"#fff",color:a.text,fontSize:11,fontWeight:600,fontStyle:"normal",fontFamily:i}})]}),"bet",null!=l?` (${ht(r)}–${ht(l)})`:` (min ${ht(r)})`,"."]}),v={marginTop:10,borderRadius:14,border:`1px solid ${a.border}`,backgroundColor:a.backgroundAlt??"#FCFBF9",padding:"12px 14px",textAlign:"left",fontFamily:i};/* @__PURE__ */
79
- return m("div",{className:"w-full",children:[w&&/* @__PURE__ */u("div",{className:"text-[11px] font-bold uppercase",style:{color:a.textMuted,letterSpacing:"0.14em"},children:"Compare dividends"}),/* @__PURE__ */u("div",{style:v,children:t?.length?t.map((e,n)=>/* @__PURE__ */m("div",{style:{borderTop:0===n?"none":`1px solid ${a.border}`,paddingTop:0===n?0:8,marginTop:0===n?0:8},children:[
80
- /* @__PURE__ */u("div",{className:"text-[11px] font-bold mb-1",style:{color:a.text,fontFamily:s},children:e.label}),e.tiers.map(e=>/* @__PURE__ */m("div",{className:"flex items-center justify-between py-1",style:{gap:14},children:[/* @__PURE__ */m("span",{style:{color:a.textMuted,fontSize:11,flex:1},children:[e.label," correct"]}),/* @__PURE__ */u("span",{style:{fontWeight:700,color:a.heading??a.text,fontSize:12},children:ht(e.payout20*y)})]},e.label)),n===t.length-1&&k]},e.id)):/* @__PURE__ */m(d,n?.length?{children:[
81
- /* @__PURE__ */m("div",{className:"flex items-center justify-between pb-1 mb-1",style:{borderBottom:`1px solid ${a.border}`},children:[/* @__PURE__ */u("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Dividend"}),/* @__PURE__ */u("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Stake from"})]}),n.map(e=>/* @__PURE__ */m("div",{className:"flex items-center justify-between py-1",children:[/* @__PURE__ */u("span",{style:{fontWeight:700,color:a.heading??a.text,fontSize:12},children:ht(e.dividend)}),/* @__PURE__ */u("span",{style:{fontWeight:600,color:a.text,fontSize:12},children:ht(e.stakeFrom)})]},e.dividend)),
82
- /* @__PURE__ */u("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."})]}:{children:[
83
- /* @__PURE__ */m("div",{className:"flex items-center justify-between pb-1 mb-1",style:{borderBottom:`1px solid ${a.border}`},children:[/* @__PURE__ */u("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Legs played"}),/* @__PURE__ */u("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Payout"})]}),e.map(e=>{const t=/* @__PURE__ */m(d,{children:[/* @__PURE__ */m("span",{style:{fontWeight:600,color:o?a.primary:a.text,fontSize:12},children:[e.count," legs"]}),/* @__PURE__ */u("span",{style:{fontWeight:600,color:e.payout20>0?a.text:a.textMuted,fontSize:12},children:e.payout20>0?ht(e.payout20*y):"—"})]});return o?/* @__PURE__ */u("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):/* @__PURE__ */u("div",{className:"flex items-center justify-between py-1",children:t},e.count)}),k]})})]})}function co({tabs:e,active:t,onChange:n,colors:o,bodyFont:r}){return e.length<=1?null:/* @__PURE__ */u("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;/* @__PURE__ */
84
- return m("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 ${ce(o.primary,.55)}, 0 7px 12px -4px ${ce(o.primary,.35)}`:`0 4px 0 ${ce(o.border,.9)}, 0 6px 10px -4px ${ce(o.primary,.18)}`,cursor:"pointer"},children:[/* @__PURE__ */u("span",{className:"hidden min-[380px]:inline",children:e.label}),/* @__PURE__ */u("span",{className:"min-[380px]:hidden",children:e.shortLabel})]},e.id)})})}function uo({iconUrl:e,size:t,brandColor:n,iconColor:o,accentColor:r}){/* @__PURE__ */
58
+ /* @__PURE__ */u("text",{x:"180",y:"338",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"18",letterSpacing:"2",textAnchor:"middle",fontWeight:500,fill:s,children:p})]}),/* @__PURE__ */u("div",{style:{position:"absolute",left:60*h,top:25*h,width:170*h,height:170*h,pointerEvents:"none"},children:/* @__PURE__ */u(an,{iconUrl:e,width:"100%",height:"100%",iconColor:f,accentColor:x})})]});return n?/* @__PURE__ */u(cn,{size:o,onPress:n,className:c,ariaLabel:d??`Press to play ${t}`,renderInner:g}):/* @__PURE__ */u("div",{className:c,style:{width:o,height:o},children:g(!1)})}function cn({size:e,onPress:t,className:n,ariaLabel:o,renderInner:r}){const[l,a]=c(!1),[i,s]=c(!1);/* @__PURE__ */
59
+ return u("button",{type:"button",onClick:t,"aria-label":o,className:n,onMouseEnter:()=>a(!0),onMouseLeave:()=>{a(!1),s(!1)},onMouseDown:()=>s(!0),onMouseUp:()=>s(!1),onTouchStart:()=>s(!0),onTouchEnd:()=>s(!1),onBlur:()=>{s(!1),a(!1)},style:{width:e,height:e,padding:0,background:"transparent",border:0,cursor:"pointer",borderRadius:e/360*78,transform:i?"scale(0.96)":"scale(1)",transition:"transform 140ms ease-out"},children:r(l||i)})}function dn(e){return e.selectionCard??e.backgroundAlt}function un({color:e,size:t=20,label:n="Loading"}){/* @__PURE__ */
60
+ return u("div",{role:"status","aria-label":n,className:"inline-flex items-center justify-center",children:/* @__PURE__ */m("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:[/* @__PURE__ */u("circle",{cx:"12",cy:"12",r:"10",strokeOpacity:"0.25"}),/* @__PURE__ */u("path",{d:"M12 2a10 10 0 0 1 10 10",strokeLinecap:"round"})]})})}function mn({color:e="#ffffff",size:t=18}){/* @__PURE__ */
61
+ return u(un,{color:e,size:t,label:"Loading"})}function pn({color:e,className:t="",style:n}){/* @__PURE__ */
62
+ return u("span",{className:`inline-block animate-pulse rounded-md ${t}`,style:{backgroundColor:e,opacity:.35,...n},"aria-hidden":!0})}function hn({className:e="",bodyFont:t,children:n}){/* @__PURE__ */
63
+ return u("div",{className:`flex flex-col min-h-full w-full min-w-0 ${e}`,style:{fontFamily:t},children:/* @__PURE__ */u("div",{className:"flex-1 w-full min-w-0",children:n})})}function fn({colors:e,count:t=2}){/* @__PURE__ */
64
+ return u("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)=>/* @__PURE__ */m("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:dn(e),borderColor:e.border},children:[/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-5 w-[11rem] max-w-full"}),/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-3 w-24 max-w-[70%]"})]},n))})}function xn({colors:e,count:t=4}){/* @__PURE__ */
65
+ return u("div",{className:"grid grid-cols-2 gap-3 w-full","aria-hidden":!0,children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */m("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:dn(e),borderColor:e.border},children:[/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-10 w-10 sm:h-12 sm:w-12 rounded-xl shrink-0"}),/* @__PURE__ */m("div",{className:"flex w-full min-w-0 flex-col items-center gap-1.5 sm:w-auto sm:items-start",children:[/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-3.5 w-20 max-w-full"}),/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-2.5 w-12 max-w-[80%]"})]})]},n))})}function gn({colors:e,count:t=3}){/* @__PURE__ */
66
+ return u("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)=>/* @__PURE__ */m("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:dn(e),borderColor:e.border},children:[/* @__PURE__ */m("div",{className:"min-w-0 flex-1",children:[/* @__PURE__ */u("div",{className:"rounded-xl px-3 py-2.5",style:{backgroundColor:e.backgroundAlt},children:/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-4 w-44 max-w-full"})}),/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-3 w-40 max-w-[80%] mt-2"})]}),/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-5 w-5 rounded shrink-0"})]},n))})}function yn({colors:e,tileSize:t=116}){/* @__PURE__ */
67
+ return m("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:dn(e)},"aria-hidden":!0,children:[
68
+ /* @__PURE__ */u(pn,{color:e.textMuted,className:"rounded-2xl",style:{width:t,height:t}}),
69
+ /* @__PURE__ */u(pn,{color:e.textMuted,className:"h-3 w-11 mt-3"}),
70
+ /* @__PURE__ */u(pn,{color:e.textMuted,className:"h-5 w-36 max-w-[80%] mt-2"}),
71
+ /* @__PURE__ */u(pn,{color:e.textMuted,className:"h-3 w-48 max-w-[90%] mt-3"}),
72
+ /* @__PURE__ */u(pn,{color:e.textMuted,className:"h-3 w-40 max-w-[75%] mt-1.5"})]})}function bn({colors:e}){/* @__PURE__ */
73
+ return u("div",{className:"grid grid-cols-3 gap-2 mb-3 w-full","aria-hidden":!0,children:[0,1,2].map(t=>/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-[38px] w-full rounded-full"},t))})}function wn({colors:e,count:t=3,tileSize:n=116,showTierTabs:o=!1}){/* @__PURE__ */
74
+ return m("div",{className:"flex flex-col w-full","aria-hidden":!0,children:[o&&/* @__PURE__ */u(bn,{colors:e}),
75
+ /* @__PURE__ */u(yn,{colors:e,tileSize:n}),t>1&&/* @__PURE__ */m(d,{children:[/* @__PURE__ */u("div",{className:"flex items-center justify-center gap-2.5 pt-4 pb-2",children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */u(pn,{color:e.textMuted,className:"rounded-full",style:{width:0===n?22:7,height:7}},n))}),/* @__PURE__ */m("div",{className:"mt-1 pt-2.5",style:{borderTop:`1px solid ${e.border}`},children:[/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-2.5 w-16 mb-2"}),/* @__PURE__ */u("div",{className:"grid gap-1",style:{gridTemplateColumns:"repeat(auto-fit, minmax(84px, 1fr))"},children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */m("div",{className:"flex flex-col items-center gap-1.5 px-1 py-1.5",children:[/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-[52px] w-[52px] rounded-2xl"}),/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-2.5 w-12"})]},n))})]})]})]})}function kn({colors:e,groups:t=2,rowsPerGroup:n=2}){/* @__PURE__ */
76
+ return m("div",{className:"space-y-4 sm:space-y-6 pb-16 w-full","aria-hidden":!0,children:[/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-7 w-[4.5rem] rounded-full"}),/* @__PURE__ */u("div",{className:"space-y-4",children:Array.from({length:t}).map((t,o)=>/* @__PURE__ */m("div",{className:"rounded-xl border overflow-hidden w-full",style:{borderColor:e.border,backgroundColor:dn(e)},children:[/* @__PURE__ */m("div",{className:"px-4 py-3 flex flex-col gap-1.5",style:{backgroundColor:e.backgroundAlt},children:[/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-4 w-44 max-w-[80%]"}),/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-3 w-24"})]}),/* @__PURE__ */u("div",{className:"divide-y",style:{borderColor:e.border},children:Array.from({length:n}).map((t,n)=>/* @__PURE__ */m("div",{className:"flex items-center justify-between gap-3 px-4 py-3 sm:py-3.5",style:{borderColor:e.border},children:[/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-4 flex-1 max-w-[58%]"}),/* @__PURE__ */m("div",{className:"flex gap-1.5 shrink-0",children:[/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-7 w-11 sm:h-8 sm:w-12 rounded-lg"}),/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-7 w-11 sm:h-8 sm:w-12 rounded-lg"})]})]},n))})]},o))})]})}function vn({colors:e}){/* @__PURE__ */
77
+ return u("div",{className:"flex border-b mb-4 w-full",style:{borderColor:e.border},"aria-hidden":!0,children:[0,1].map(t=>/* @__PURE__ */m("div",{className:"flex items-center gap-2 px-4 py-2.5 border-b-2 border-transparent",children:[/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-3.5 w-[4.25rem]"}),/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-5 min-w-[1.25rem] w-5 rounded-full"})]},t))})}function Nn({colors:e}){/* @__PURE__ */
78
+ return m("div",{className:"rounded-lg border overflow-hidden w-full",style:{borderColor:e.border,backgroundColor:dn(e)},"aria-hidden":!0,children:[/* @__PURE__ */m("div",{className:"w-full px-4 py-3 flex items-center justify-between gap-3",children:[/* @__PURE__ */m("div",{className:"min-w-0 flex-1 flex flex-col gap-1.5",children:[/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-[18px] w-40 max-w-[75%]"}),/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-3 w-32 max-w-[65%]"})]}),/* @__PURE__ */m("div",{className:"flex items-center gap-3 shrink-0",children:[/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-3.5 w-10"}),/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-6 w-[3.75rem] rounded-full"})]})]}),/* @__PURE__ */u("div",{className:"border-t divide-y w-full",style:{borderColor:e.border},children:[0,1,2].map(t=>/* @__PURE__ */m("div",{className:"px-4 py-2.5 flex items-center justify-between gap-3",children:[/* @__PURE__ */m("div",{className:"flex-1 min-w-0 flex flex-col gap-1",children:[/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-3.5 w-[88%]"}),/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-3 w-[70%]"})]}),/* @__PURE__ */u(pn,{color:e.textMuted,className:"h-5 w-10 rounded shrink-0"})]},t))})]})}function Cn({colors:e,rows:t=2}){/* @__PURE__ */
79
+ return m("div",{className:"w-full flex flex-col","aria-hidden":!0,children:[/* @__PURE__ */u(vn,{colors:e}),/* @__PURE__ */u("div",{className:"space-y-3 w-full",children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */u(Nn,{colors:e},n))})]})}function Fn({colors:e,bodyFont:t,message:n,className:o="",variant:r="category",showLogoArea:l=!1,gameCardCount:a=3,categoryCount:i=2,showTierTabs:s=!1}){const c=(()=>{switch(r){case"sport":/* @__PURE__ */return u(xn,{colors:e,count:Math.max(i,2)});case"event":/* @__PURE__ */return u(gn,{colors:e});case"games":/* @__PURE__ */return u(wn,{colors:e,count:a,showTierTabs:s});case"propositions":/* @__PURE__ */return u(kn,{colors:e});case"entries":/* @__PURE__ */return u(Cn,{colors:e,rows:2});default:/* @__PURE__ */return u(fn,{colors:e,count:i})}})(),d=n?.trim()||"Loading";/* @__PURE__ */
80
+ return u(hn,{className:o,bodyFont:t,children:/* @__PURE__ */m("div",{role:"status","aria-live":"polite","aria-label":d,className:"w-full min-w-0",children:[n?.trim()?/* @__PURE__ */u("p",{className:"text-sm text-center mb-4",style:{color:e.textMuted,fontFamily:t,margin:0},children:n}):null,c]})})}function Bn(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function An(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function Mn(e){if(!e||e.quick_pick_only)return!1;const t=An(e.selection_scope);if("samegamemulti"===An(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(An);return n.includes("samegame")||n.includes("samegamemulti")}function Sn(e){return(e.eventId??e.event_id)?.trim()||null}function zn(e){const t=/* @__PURE__ */new Map;for(const n of e){if(!Dn(n))continue;const e=Sn(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=Ln(o.homeTeam,n.home_team),o.awayTeam=Ln(o.awayTeam,n.away_team),o.sport=Ln(o.sport,n.sport),o.league=Ln(o.league,n.league),o.commenceTime=Tn(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=Pn(e.commenceTime),o=Pn(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function Ln(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function Pn(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function Tn(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=Pn(e),r=Pn(n);return r!==o?r<o?n:e:e.localeCompare(n)<=0?e:n}function Dn(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function On(e,t){return t?e.filter(e=>Dn(e)&&Sn(e)===t):[]}function En(e,t){return!!t&&e.length>0&&e.every(e=>Dn(e)&&Sn(e)===t)}var jn={signature:1,premier:2,exclusive:3},Yn=[{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 Hn(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function Rn(e,t){return e.filter(e=>Hn(e)===t)}function Gn(e){const t=new Set(e.map(Hn));return Yn.filter(e=>t.has(e.level))}function Wn(e){return Gn(e)[0]?.id??"signature"}var In=4,Un=6,$n=[4,12],Kn=[5,10,20,50];function Zn(e){return!!e&&!e.quick_pick_only&&"safety_net"===(e.rule??"").trim().toLowerCase()}function qn(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 Vn(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)}function Xn(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 Qn(e,t,n,o){const r=Math.max(0,Math.min(n,t)),l=e*o.perfectMultiple*Math.pow(2,t-o.perfectBaseLegs),a=r>0?e*(1-o.margin)*o.nearMissBudgetFraction/r:0,i=Math.pow(1/o.perLegProbability,t),s=[];let c=Xn(t,0);for(let d=1;d<=r;d+=1)c+=Xn(t,d),s.push(Vn(a*i/c,o.roundTo));return{legs:t,stake:e,allowedMisses:r,perfect:l,nearMiss:s,sweep:l+s.reduce((e,t)=>e+t,0)}}function Jn(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 _n(e){return e.includes(8)?8:e[Math.floor(e.length/2)]}function eo(e){return e.toLowerCase().replace(/[^a-z]+/g," ").trim()}function to(e,t){const n=eo(t);return e.permitted_rules?.find(e=>eo(e.name??"").includes(n))??null}function no(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 oo(e){if(!Zn(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??$n[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??$n[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=to(e,"Extra Shot"),l=to(e,"Double Shot"),a=no(o,r,4).filter(e=>e>1),i=no(o,l,6).filter(e=>e>2);if(0===a.length)return null;const s=[{id:"extra_shot",label:"Extra Shot",allowedMisses:1,stat:"Bigger payout",explain:"Miss one leg and you win the All but 1 prize. Get every leg right and you win both — the Perfect prize on top.",legOptions:a,defaultLegs:_n(a),ruleId:r?.id??null}],c=!e.permitted_rules?.length||!!l;i.length>0&&c&&s.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:i,defaultLegs:_n(i),ruleId:l?.id??null});const d=Math.max(e.min_bet??5,.01),u=e.max_bet??null,m=Kn.filter(e=>null===u||e<=u);return{modes:s,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:qn(e)}}function ro(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function lo(e,t,n){const o=Math.max(0,e-t),r=Qn(20,e,o,n),l=[];for(let a=0;a<=o;a+=1){const t=Math.round(Jn(r,a));l.push({misses:a,label:`${e-a}/${e}`,multiplier:t/20,payout20:t})}return l}function ao(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:lo(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:lo(e,e-2,t),expectedCorrect:e-2}]}function io(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:ao(t,qn(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:ro(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 so(e){return null!=io(e)}var co=[500,1e3,2500,5e3,7500,1e4,12500,15e3],uo=[12,11,10,9,8,7,6];function mo(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function po(e){return Math.round(100*e)/100}function ho(e,t,n=.21875){const o=Math.pow(2,t),r=e/(1-n)/o,l=Number.isInteger(r),a=po(r),i=l?r:po(.96*r);return{legs:t,exactStake:a,stake:i,margin:1-e/(i*o),multiple:e/i,oddsOneIn:o,discounted:!l}}function fo(e,t=uo){return{dividend:e,rungs:t.map(t=>ho(e,t))}}function xo(e,t){if(!mo(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,r=uo.filter(e=>e>=n&&e<=o);if(0===r.length)return null;const l=t?.dividends??co;return{dividends:l.map(e=>fo(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 go(e,t){const n=e.allowed_propositions&&e.allowed_propositions.length>0?e.allowed_propositions.map(Number):[],o=e.min_propositions??e.num_propositions??null,r=e.max_propositions??e.num_propositions??null,l=0===n.length&&null!==o&&null!==r&&r>0,a=n.length>0?n:l?tn(o,r):[],i=/* @__PURE__ */new Map;for(const f of t?.top_payouts??[]){const e=Number(f.proposition_count),t=Number(f.net_payout),n=Number(f.bet_amount??20);!Number.isFinite(e)||e<=0||i.set(e,{count:e,payout:Number.isFinite(t)?t:0,betAmount:Number.isFinite(n)&&n>0?n:20})}for(const f of a){const e=Number(f);i.has(e)||i.set(e,{count:e,payout:0,betAmount:20})}const s=Array.from(i.values()).sort((e,t)=>e.count-t.count),c=a.length>0?Math.max(...a.map(Number)):0,d=mo(e)?xo(e):null,u=d?d.dividends.map(e=>({dividend:e.dividend,stakeFrom:Math.min(...e.rungs.map(e=>e.stake))})):void 0,m=d?[]:s.map(e=>({count:e.count,payout20:e.payout>0&&e.betAmount>0?e.payout/e.betAmount*20:0})),p=io(e,c),h="safety_net"===p?.kind?(p.options??[]).flatMap(e=>e.dividends?.length?[{id:e.id,label:e.label,tiers:e.dividends.map(e=>({label:e.label,payout20:e.payout20}))}]:[]):[];return{legOptions:a.map(Number),maxLegCount:c,tiers:m,modes:h,pydDividends:u,hasGenericDividends:(n.length>0||l)&&m.some(e=>e.payout20>0),minBet:Math.max(e.min_bet??1,1),maxBet:e.max_bet??null}}function yo({tiers:e,modes:t,pydDividends:n,onPlayCount:o,minBet:r=1,maxBet:l=null,colors:a,bodyFont:i,headingFont:s}){const p=e=>Math.min(Math.max(e,r),l??1/0),[h,f]=c(()=>String(p(20))),x=parseFloat(h),g=p(Number.isFinite(x)&&x>0?x:20),y=g/20,b=!!(t?.length||n?.length||e.some(e=>e.payout20>0)),w=!!t?.length;if(!b)return null;const k=/* @__PURE__ */m("p",{className:"mb-2 flex items-center gap-1 text-[10px] italic",style:{color:a.textMuted,margin:"0 0 8px"},children:["Example values for a",
81
+ /* @__PURE__ */m("span",{className:"inline-flex items-center not-italic",style:{fontWeight:700,fontSize:11},children:["$",/* @__PURE__ */u("input",{type:"number",min:r,max:l??void 0,value:h,onChange:e=>f(e.target.value),onBlur:()=>f(String(g)),"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?` (${vt(r)}–${vt(l)})`:` (min ${vt(r)})`,"."]}),v={marginTop:10,borderRadius:14,border:`1px solid ${a.border}`,backgroundColor:a.backgroundAlt??"#FCFBF9",padding:"12px 14px",textAlign:"left",fontFamily:i};/* @__PURE__ */
82
+ return m("div",{className:"w-full",children:[w&&/* @__PURE__ */u("div",{className:"text-[11px] font-bold uppercase",style:{color:a.textMuted,letterSpacing:"0.14em"},children:"Compare dividends"}),/* @__PURE__ */m("div",{style:v,children:[!n?.length&&k,t?.length?t.map((e,t)=>/* @__PURE__ */m("div",{style:{borderTop:0===t?"none":`1px solid ${a.border}`,paddingTop:0===t?0:8,marginTop:0===t?0:8},children:[/* @__PURE__ */u("div",{className:"text-[11px] font-bold mb-1",style:{color:a.text,fontFamily:s},children:e.label}),e.tiers.map(e=>/* @__PURE__ */m("div",{className:"flex items-center justify-between py-1",style:{gap:14},children:[/* @__PURE__ */m("span",{style:{color:a.textMuted,fontSize:11,flex:1},children:[e.label," correct"]}),/* @__PURE__ */u("span",{style:{fontWeight:700,color:a.heading??a.text,fontSize:12},children:vt(e.payout20*y)})]},e.label))]},e.id)):/* @__PURE__ */m(d,n?.length?{children:[
83
+ /* @__PURE__ */m("div",{className:"flex items-center justify-between pb-1 mb-1",style:{borderBottom:`1px solid ${a.border}`},children:[/* @__PURE__ */u("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Dividend"}),/* @__PURE__ */u("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Stake from"})]}),n.map(e=>/* @__PURE__ */m("div",{className:"flex items-center justify-between py-1",children:[/* @__PURE__ */u("span",{style:{fontWeight:700,color:a.heading??a.text,fontSize:12},children:vt(e.dividend)}),/* @__PURE__ */u("span",{style:{fontWeight:600,color:a.text,fontSize:12},children:vt(e.stakeFrom)})]},e.dividend)),
84
+ /* @__PURE__ */u("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."})]}:{children:[/* @__PURE__ */m("div",{className:"flex items-center justify-between pb-1 mb-1",style:{borderBottom:`1px solid ${a.border}`},children:[/* @__PURE__ */u("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Legs played"}),/* @__PURE__ */u("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:a.primary},children:"Payout"})]}),e.map(e=>{const t=/* @__PURE__ */m(d,{children:[/* @__PURE__ */m("span",{style:{fontWeight:600,color:o?a.primary:a.text,fontSize:12},children:[e.count," legs"]}),/* @__PURE__ */u("span",{style:{fontWeight:600,color:e.payout20>0?a.text:a.textMuted,fontSize:12},children:e.payout20>0?vt(e.payout20*y):"—"})]});return o?/* @__PURE__ */u("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):/* @__PURE__ */u("div",{className:"flex items-center justify-between py-1",children:t},e.count)})]})]})]})}function bo({tabs:e,active:t,onChange:n,colors:o,bodyFont:r}){return e.length<=1?null:/* @__PURE__ */u("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;/* @__PURE__ */
85
+ return m("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 ${L(o.primary,.55)}, 0 7px 12px -4px ${L(o.primary,.35)}`:`0 4px 0 ${L(o.border,.9)}, 0 6px 10px -4px ${L(o.primary,.18)}`,cursor:"pointer"},children:[/* @__PURE__ */u("span",{className:"hidden min-[380px]:inline",children:e.label}),/* @__PURE__ */u("span",{className:"min-[380px]:hidden",children:e.shortLabel})]},e.id)})})}function wo({iconUrl:e,size:t,brandColor:n,iconColor:o,accentColor:r}){/* @__PURE__ */
85
86
  return m("div",{style:{position:"relative",width:t,height:t},children:[/* @__PURE__ */m("svg",{viewBox:"30 -5 280 280",width:"100%",height:"100%","aria-hidden":"true",style:{display:"block"},children:[
86
87
  /* @__PURE__ */u("rect",{x:"90",y:"55",width:"210",height:"210",rx:"42",fill:n,opacity:"0.3"}),
87
88
  /* @__PURE__ */u("rect",{x:"65",y:"30",width:"210",height:"210",rx:"42",fill:n,opacity:"0.55"}),
88
- /* @__PURE__ */u("rect",{x:"40",y:"5",width:"210",height:"210",rx:"42",fill:n})]}),/* @__PURE__ */u("div",{style:{position:"absolute",left:"10.7%",top:"10.7%",width:"60.7%",height:"60.7%",pointerEvents:"none"},children:/* @__PURE__ */u(Qt,{iconUrl:e,width:"100%",height:"100%",iconColor:o,accentColor:r})})]})}function mo({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:r,iconColor:a,accentColor:i,captionColor:d,bodyFont:f,legOptions:h,onPick:x,colors:g,menuShadow:y}){const[b,w]=c(!1),[k,v]=c(null),N=s(null),F=s(null);l(()=>{if(!b)return void v(null);const e=()=>{const e=N.current;if(!e||"undefined"==typeof window)return;const t=e.getBoundingClientRect(),n=40+40*h.length+12,o=window.innerHeight-t.bottom,r=o<n&&t.top>o;v({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;N.current?.contains(t)||F.current?.contains(t)||w(!1)};return document.addEventListener("mousedown",t),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0),document.removeEventListener("mousedown",t)}},[b,h.length]);const B=b&&k&&"undefined"!=typeof document?p(/* @__PURE__ */m("div",{ref:F,role:"menu",className:"rounded-lg overflow-y-auto overscroll-contain",style:{position:"fixed",maxHeight:k.avail,top:k.flipUp?void 0:k.bottom+6,bottom:k.flipUp?window.innerHeight-k.top+6:void 0,left:k.right,transform:"translateX(-100%)",zIndex:20,backgroundColor:g.background,border:`1px solid ${g.border}`,boxShadow:y,minWidth:180,fontFamily:f},children:[/* @__PURE__ */u("div",{className:"px-3 py-1.5 text-[10px] font-bold tracking-wider uppercase",style:{color:g.text,opacity:.55,borderBottom:`1px solid ${g.border}`},children:"How many picks?"}),h.map((e,t)=>/* @__PURE__ */m("button",{type:"button",role:"menuitem",onClick:()=>{w(!1),x(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 ${g.border}`},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=g.backgroundAlt},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},children:[/* @__PURE__ */m("span",{className:"text-sm font-semibold",style:{color:g.text},children:[e," picks"]}),/* @__PURE__ */u("span",{className:"text-[10px] font-bold tracking-wider",style:{background:ce(g.primary,.14),color:g.primary,padding:"2px 6px",borderRadius:4},children:"QP"})]},e))]}),document.body):null;/* @__PURE__ */
89
- return m("div",{ref:N,children:[/* @__PURE__ */u(Jt,{iconUrl:e,gameName:t,onPress:()=>w(e=>!e),size:n,brandColor:o,cardColor:r,iconColor:a,accentColor:i,captionColor:d}),B]})}function po({games:e,selectedGame:t,onSelectGame:n,loading:r,error:a,theme:p,colorScheme:f,showTier:h=!1,showCategory:x=!1,showTierFilter:g=!1,onPropositionCountChange:y,onPropositionCountSelected:b,onQuickPickGame:w,maxPayouts:k}){const v=se(p,f),N=v.colors,F=R(v),B=ye(v),C=be(v),A=L(v),M=xe(v),S=he(v),z=E(v),D=i(()=>Pn(e),[e]),[O,T]=c(()=>Dn(e));l(()=>{0!==D.length&&(D.some(e=>e.id===O)||T(D[0].id))},[D,O]);const j=i(()=>!g||D.length<=1?e:Ln(e,Mn[O]),[e,g,D.length,O]),Y=s(null),H=s(null),[G,W]=c(0),[U,K]=c(0),Z=(e,t)=>{e.quick_pick_only&&w&&t>0?w(e,t):(t>0&&!bn(e)&&y?.(t),n(e),b?.())},$=e=>{Z(e,io(e,k?.[e.id]).maxLegCount)};l(()=>{const e=Y.current;if(!e)return;W(e.getBoundingClientRect().width);const t=new ResizeObserver(e=>{for(const t of e)W(t.contentRect.width)});return t.observe(e),()=>t.disconnect()},[]);const q=s(()=>{}),V=o(e=>{H.current?.removeEventListener("scroll",q.current),H.current=e,e&&(q.current=()=>{const t=e.scrollLeft+e.clientWidth/2;let n=0,o=1/0;Array.from(e.children).forEach((e,r)=>{const l=e,a=Math.abs(l.offsetLeft+l.offsetWidth/2-t);a<o&&(o=a,n=r)}),K(n)},e.addEventListener("scroll",q.current,{passive:!0}),q.current())},[]);l(()=>{q.current()},[G,j.length]),l(()=>{H.current?.scrollTo({left:0}),K(0)},[O]);const X=e=>e.allowed_propositions&&e.allowed_propositions.length>0&&e.game_name.replace(/\s+\d+\s*$/,"").trim()||e.game_name,Q=e=>{const t=H.current,n=t?.children[e];t&&n&&t.scrollTo({left:n.offsetLeft-(t.clientWidth-n.offsetWidth)/2,behavior:"smooth"})};if(r)/* @__PURE__ */return u(xn,{colors:I(v),bodyFont:B,variant:"games",gameCardCount:Math.min(Math.max(e.length,2),4),showTierTabs:g&&D.length>1});if(a)/* @__PURE__ */return u("div",{className:"flex items-center justify-center p-8",style:{fontFamily:B},children:/* @__PURE__ */u("div",{style:{color:N.error},children:a})});if(0===e.length)/* @__PURE__ */return u("div",{className:"flex items-center justify-center p-8",style:{fontFamily:B},children:/* @__PURE__ */u("div",{style:{color:N.textMuted},children:"No games available"})});const J=G>0&&G<400,_=J?108:124,ee=G>0?Math.min(.86*G,380):0,te=ee>0?Math.max((G-ee)/2,4):4,ne=j.length>1,oe=ne&&te>=48,re=e=>({position:"absolute",top:"38%",width:44,height:44,borderRadius:"50%",border:`1px solid ${N.border}`,backgroundColor:ce(N.background??"#fff",.94),color:N.primary,fontSize:18,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center",cursor:e?"pointer":"default",opacity:e?1:.3,pointerEvents:e?"auto":"none",boxShadow:S,zIndex:1});/* @__PURE__ */
90
- return m("div",{ref:Y,className:"flex flex-col",style:{fontFamily:B},children:[g&&/* @__PURE__ */u(co,{tabs:D,active:O,onChange:T,colors:N,bodyFont:B}),0===j.length?/* @__PURE__ */u("div",{className:"flex items-center justify-center p-8",children:/* @__PURE__ */u("div",{style:{color:N.textMuted},children:"No games in this collection"})}):/* @__PURE__ */m(d,{children:[
91
- /* @__PURE__ */m("div",{style:{position:"relative"},children:[/* @__PURE__ */u("div",{ref:V,className:"blade-game-track",style:{display:"flex",alignItems:"stretch",gap:14,overflowX:"auto",overflowY:"hidden",scrollSnapType:"x mandatory",scrollbarWidth:"none",paddingLeft:te,paddingRight:te,paddingBottom:8,position:"relative"},children:j.map(e=>{const n=Gt(e),o=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>Wt[e]??`Day ${e}`);return 1===n.length?n[0]:n.slice(0,-1).join(", ")+" & "+n[n.length-1]}(e),r=t?.id===e.id,l=String(e.id),a=At(e),i=e.description||e.rule,s=e.call_to_action?.trim()||null,{legOptions:c,maxLegCount:d,tiers:p,modes:f,pydDividends:g,hasGenericDividends:y,minBet:b,maxBet:S}=io(e,k?.[e.id]),L=Ae(e),D=!n&&o?`Available ${o}`:null;/* @__PURE__ */
92
- return m("article",{className:"flex flex-col items-center text-center",style:{flex:ee>0?`0 0 ${ee}px`:"0 0 86%",scrollSnapAlign:"center",borderRadius:24,border:`1px solid ${r?N.primary:N.border}`,backgroundColor:r?N.infoBg:N.background??F,boxShadow:M,padding:"22px 20px 20px",opacity:n?1:.5,pointerEvents:n?"auto":"none"},children:[e.quick_pick_only&&w&&c.length>1?/* @__PURE__ */u(mo,{iconUrl:L,gameName:X(e),size:_,brandColor:N.primary,cardColor:F,iconColor:N.primaryText,accentColor:z,captionColor:N.textMuted,bodyFont:B,legOptions:c.map(Number),onPick:t=>Z(e,t),colors:N,menuShadow:M}):/* @__PURE__ */u(Jt,{iconUrl:L,gameName:X(e),onPress:()=>$(e),size:_,brandColor:N.primary,cardColor:F,iconColor:N.primaryText,accentColor:z,captionColor:N.primary}),
93
- /* @__PURE__ */m("div",{className:"mt-2",style:{fontFamily:C,fontSize:13,letterSpacing:"-0.04em",lineHeight:1},children:[/* @__PURE__ */u("span",{style:{fontWeight:800,color:N.primary},children:"YES"}),/* @__PURE__ */u("span",{style:{fontWeight:600,color:ce(N.primary,.85)},children:"NO"})]}),
94
- /* @__PURE__ */m("h3",{className:"flex items-center justify-center gap-1.5 font-semibold leading-tight px-1 mt-0.5",style:{fontFamily:C,fontSize:J?19:21,color:A,letterSpacing:"-0.01em"},children:[X(e),/* @__PURE__ */u(Ke,{variant:"icon",panel:Ee(e),content:i||"Pick outcomes and land the payout for this game.",theme:v,title:X(e),label:`How to play ${X(e)}`,extra:/* @__PURE__ */u(so,{tiers:y?p:[],modes:f,pydDividends:g,onPlayCount:c.length>1?t=>Z(e,t):void 0,minBet:b,maxBet:S,colors:N,bodyFont:B,headingFont:C}),colors:N,bodyFont:B,headingFont:C})]}),s&&/* @__PURE__ */u("p",{className:"mt-1.5 font-bold leading-snug",style:{fontSize:13,color:N.primary,maxWidth:"30ch"},children:s}),i&&/* @__PURE__ */u("p",{className:"mt-2 leading-relaxed",style:{fontSize:12.5,color:N.textMuted,maxWidth:"34ch"},children:i}),a.enabled&&/* @__PURE__ */m("span",{className:"inline-flex w-fit items-center gap-0.5 px-2 py-0.5 rounded-full mt-2",style:{backgroundColor:`${N.warning}15`,color:N.warning,fontSize:10,fontWeight:700},children:["★ ",a.progressive?a.amount>0?ht(a.amount):a.limit>0?`Up to ${ht(a.limit)}`:"Jackpot":ht(a.amount)]}),(x||h)&&/* @__PURE__ */m("div",{className:"flex flex-wrap gap-1 justify-center mt-2",children:[x&&e.category&&/* @__PURE__ */u("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:N.backgroundAlt,color:P(v)},children:e.category}),x&&/* @__PURE__ */u("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:N.backgroundAlt,color:P(v)},children:e.rule}),x&&e.lotto_type&&/* @__PURE__ */u("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:N.backgroundAlt,color:P(v)},children:e.lotto_type}),h&&null!=e.tier&&/* @__PURE__ */m("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:N.backgroundAlt,color:P(v)},children:["Tier ",e.tier]})]}),D&&/* @__PURE__ */u("div",{style:{marginTop:"auto",width:"100%",paddingTop:12},children:/* @__PURE__ */u("span",{className:"text-[11px] font-semibold leading-snug",style:{color:N.text},children:D})})]},l)})}),oe&&/* @__PURE__ */m(d,{children:[/* @__PURE__ */u("button",{type:"button","aria-label":"Previous game",onClick:()=>Q(U-1),style:{...re(U>0),left:2},children:"‹"}),/* @__PURE__ */u("button",{type:"button","aria-label":"Next game",onClick:()=>Q(U+1),style:{...re(U<j.length-1),right:2},children:"›"})]})]}),ne&&/* @__PURE__ */u("div",{className:"flex justify-center flex-wrap pt-1 pb-2",children:j.map((e,t)=>/* @__PURE__ */u("button",{type:"button","aria-label":`Go to ${X(e)}`,onClick:()=>Q(t),style:{padding:"18.5px 5px",margin:"-18.5px 0",background:"none",border:"none",cursor:"pointer",display:"flex",alignItems:"center"},children:/* @__PURE__ */u("span",{style:{display:"block",width:t===U?22:7,height:7,borderRadius:999,backgroundColor:t===U?N.primary:ce(N.primary,.25),transition:"width 200ms ease, background-color 200ms ease"}})},e.id))}),ne&&/* @__PURE__ */m("div",{style:{borderTop:`1px solid ${N.border}`,paddingTop:10,marginTop:2},children:[/* @__PURE__ */u("div",{className:"text-[10px] font-bold uppercase mb-2",style:{color:N.textMuted,letterSpacing:"0.16em",fontFamily:C},children:"All games"}),/* @__PURE__ */u("div",{className:"grid gap-1",style:{gridTemplateColumns:`repeat(${dt(j.length,G)}, minmax(0, 1fr))`},children:j.map((e,t)=>{const n=Gt(e);/* @__PURE__ */
95
- return m("button",{type:"button",onClick:()=>$(e),disabled:!n,"aria-current":t===U,className:"flex flex-col items-center gap-1 px-1 py-1.5 rounded-2xl",style:{border:`1px solid ${t===U?N.primary:"transparent"}`,cursor:n?"pointer":"not-allowed",opacity:n?1:.5,background:"transparent",transition:"border-color 150ms ease"},children:[/* @__PURE__ */u(uo,{iconUrl:Ae(e),size:J?44:52,brandColor:N.primary,iconColor:N.primaryText,accentColor:z}),/* @__PURE__ */u("span",{className:"text-[11px] font-bold leading-tight",style:{color:t===U?N.primary:A,fontFamily:C,letterSpacing:"-0.01em",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"hidden"},children:X(e)})]},e.id)})})]})]}),
96
- /* @__PURE__ */u("style",{children:".blade-game-track::-webkit-scrollbar{display:none}"})]})}var fo=class{constructor(e){this.inflight=/* @__PURE__ */new Map,this.cache=/* @__PURE__ */new Map,this.apiUrl=e.apiUrl,this.apiKey=e.apiKey,this.fetchImpl=e.fetchImpl??fetch.bind(globalThis),this.getAuthHeaders=e.getAuthHeaders}invalidateCache(){this.cache.clear()}invalidate(){this.invalidateCache()}async request(e,t,n){const o=`${this.apiUrl}${e}`,r=(t?.method??"GET").toUpperCase(),l="GET"===r,a=l,i=!l&&!n?.idempotent,s=`${r} ${o}`;if(a){const e=this.cache.get(s);if(e&&Date.now()-e.at<5e3)return e.value;const t=this.inflight.get(s);if(t)return t}const c=a?this.cache.get(s):void 0,d=(async()=>{let e;try{const n=this.getAuthHeaders?await this.getAuthHeaders():void 0;e=await this.fetchImpl(o,{...t,headers:{"Content-Type":"application/json",...this.apiKey?{"X-API-Key":this.apiKey}:{},...n??{},...c?.etag?{"If-None-Match":c.etag}:{},...t?.headers}})}catch(r){throw r}if(304===e.status&&c)return a&&this.cache.set(s,{at:Date.now(),value:c.value,etag:c.etag}),c.value;if(!e.ok){let t=`API request failed: ${e.status} ${e.statusText}`;try{const n=await e.json();422===e.status&&n.detail?Array.isArray(n.detail)?t=n.detail.map(e=>`${Array.isArray(e.loc)?e.loc.join("."):"field"}: ${e.msg}`).join("; "):"string"==typeof n.detail?t=n.detail:"object"==typeof n.detail&&(t=JSON.stringify(n.detail)):n.message?t=n.message:n.error&&(t=n.error)}catch{}throw new Error(t)}const n=await e.json();if(a){const t=e.headers.get("ETag")??void 0;this.cache.set(s,{at:Date.now(),value:n,etag:t})}return n})();return a?(this.inflight.set(s,d),d.catch(()=>{}).finally(()=>{this.inflight.delete(s)})):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),null!=e.rule_id&&(n.rule_id=e.rule_id);const o=(await this.request("/game-entries",{method:"POST",body:JSON.stringify(n)})).payload;return null!=o.stake&&null==o.bet_amount&&(o.bet_amount=Number(o.stake)),o}async getPayoutsDue(e){const t=new URLSearchParams;null!=e?.game_id&&t.set("game_id",String(e.game_id)),null!=e?.limit&&t.set("limit",String(e.limit)),null!=e?.offset&&t.set("offset",String(e.offset));const n=t.toString();return await this.request(n?`/game-entries/payouts/due?${n}`:"/game-entries/payouts/due")}async getEntryPayout(e){return(await this.request(`/game-entries/${e}/payout`)).payload}async markEntryPaidOut(e){const t=await this.request(`/game-entries/${e}/payout/mark-paid-out`,{method:"POST",body:JSON.stringify({})});return this.invalidate(),t.payload}async updateGameEntryResult(e,t){return(await this.request(`/game-entries/${e}/result`,{method:"POST",body:JSON.stringify(t)})).payload}async getGameMaxPayout(e,t){const n=null!=t?`?bet_amount=${encodeURIComponent(String(t))}`:"";return(await this.request(`/games/${e}/max-payout${n}`)).payload}async getGamesMaxPayouts(e,t){if(0===e.length)return{};const n=new URLSearchParams({ids:e.join(",")});null!=t&&n.set("bet_amount",String(t));const o=await this.request(`/games/max-payouts?${n.toString()}`),r={};for(const[l,a]of Object.entries(o.payload||{}))r[Number(l)]=a;return r}async getEntryPreview(e,t){return(await this.request(`/games/${e}/preview`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async evaluateRule(e,t){return(await this.request(`/games/${e}/evaluate-rule`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async calculatePayout(e,t){return(await this.request(`/games/${e}/calculate-payout`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}};function ho(e,t,n){const[r,a]=c([]),[i,d]=c(null),[u,m]=c(!n?.skip),[p,f]=c(null),h=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",x=s(t);x.current=t;const g=n?.skip??!1,y=o(async()=>{if(!g)try{m(!0),f(null);const t=await e.getGames(x.current);a(t.games),d(t.howToPlayMarkdown)}catch(t){f(t instanceof Error?t.message:"Failed to fetch games")}finally{m(!1)}},[e,h,g]);return l(()=>{y()},[y]),{games:r,howToPlayMarkdown:i,loading:u,error:p,refetch:o(async()=>{e.invalidate(),await y()},[e,y])}}function xo(e,t,n){const[r,a]=c([]),[i,d]=c(!n?.skip),[u,m]=c(null),p=n?.skip??!1,f=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",h=s(t);h.current=t;const x=o(async()=>{if(!p)try{d(!0),m(null);const t=await e.getPropositions(h.current);a(t)}catch(t){m(t instanceof Error?t.message:"Failed to fetch propositions")}finally{d(!1)}},[e,f,p]);return l(()=>{x()},[x]),{propositions:r,loading:i,error:u,refetch:o(async()=>{e.invalidate(),await x()},[e,x])}}function go(e,t){const[n,r]=c([]),[a,i]=c(!t?.skip),[s,d]=c(null),u=t?.skip??!1,m=o(async()=>{if(!u)try{i(!0),d(null),r(await e.getSports())}catch(t){d(t instanceof Error?t.message:"Failed to fetch sports")}finally{i(!1)}},[e,u]);return l(()=>{m()},[m]),{sports:n,loading:a,error:s,refetch:o(async()=>{e.invalidate(),await m()},[e,m])}}function yo(e,t,n){const[r,a]=c([]),[i,d]=c(!n?.skip),[u,m]=c(null),p=n?.skip??!1,f=t?`${t.user_id??""}_${t.pending??""}`:"",h=s(t);h.current=t;const x=o(async()=>{if(!p)try{d(!0),m(null);const t=await e.getGameEntries(h.current);a(t)}catch(t){m(t instanceof Error?t.message:"Failed to fetch entries")}finally{d(!1)}},[e,f,p]);return l(()=>{x()},[x]),{entries:r,loading:i,error:u,refetch:o(async()=>{e.invalidate(),await x()},[e,x])}}function bo(e,t,n){const[r,a]=c({}),[i,d]=c(!1),u=n?.skip??!1,m=n?.betAmount,p=s(/* @__PURE__ */new Set);return l(()=>{if(u||0===t.length)return;const n=t.filter(e=>!(e.id in r)&&!p.current.has(e.id));if(0===n.length)return;for(const e of n)p.current.add(e.id);let o=!1;return d(!0),(async()=>{try{const t=await e.getGamesMaxPayouts(n.map(e=>e.id),m);o||a(e=>({...e,...t}))}catch{}finally{o||d(!1)}})(),()=>{o=!0}},[e,t.map(e=>e.id).join(","),u,m]),{maxPayouts:r,loading:i,refetchGame:o(async(t,n)=>{if(!u)try{const o=await e.getGamesMaxPayouts([t],n??m);o[t]&&a(e=>({...e,[t]:o[t]}))}catch{}},[e,u,m])}}function wo(e){const[t,n]=c(!1),[o,r]=c(null),[l,a]=c(null);return{createEntry:async t=>{try{n(!0),r(null),await function(e=15e3){return"undefined"==typeof navigator||!1!==navigator.onLine||"undefined"==typeof window||"function"!=typeof window.addEventListener?Promise.resolve():new Promise(t=>{const n=()=>{window.removeEventListener("online",n),clearTimeout(o),t()},o=setTimeout(n,e);window.addEventListener("online",n)})}();const o=await e.createGameEntry(t);return a(o),o}catch(o){const e=o instanceof Error?o.message:"Failed to create entry";throw r(e),new Error(e)}finally{n(!1)}},loading:t,error:o,entry:l}}function ko(e){const[t,n]=c(e?"sport":"game"),[o,r]=c(null),[l,a]=c({}),[i,s]=c(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=>{s(e),n("success")},goBack:()=>{"confirm"===t?n("sport"):"sport"===t&&(n("game"),r(null),a({}))},reset:()=>{n("game"),r(null),a({}),s(null)},toggleSelection:(e,t)=>{a(n=>{const o={...n};return o[e]===t?delete o[e]:o[e]=t,o})}}}function vo(e){const[t,n]=c(!1),[r,l]=c(null),[a,i]=c(null);return{evaluate:o(async(t,o)=>{try{n(!0),l(null);const r=await e.evaluateRule(t,o);return i(r),r}catch(r){const e=r instanceof Error?r.message:"Failed to evaluate rule";throw l(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:r,result:a}}function No(e){const[t,n]=c(!1),[r,l]=c(null),[a,i]=c(null);return{calculate:o(async(t,o)=>{try{n(!0),l(null);const r=await e.calculatePayout(t,o);return i(r),r}catch(r){const e=r instanceof Error?r.message:"Failed to calculate payout";throw l(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:r,result:a}}function Fo(e){const[t,n]=c(!1),[r,l]=c(null),[a,i]=c(null);return{preview:o(async(t,o)=>{try{n(!0),l(null);const r=await e.getEntryPreview(t,o);return i(r),r}catch(r){const e=r instanceof Error?r.message:"Failed to preview entry";throw l(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:r,result:a}}var Bo={today:"Today",weekend:"This weekend",next7:"Next 7 days"},Co=["today","weekend","next7"];function Ao(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function Mo(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:Ao(n,1)};case"weekend":{const e=n.getDay(),t=Ao(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:Ao(t,2)}}case"next7":return{start:n,end:Ao(n,7)}}}(t,n);return o>=r&&o<l}var So=t(null),zo={};function Lo(){const e=r(So);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function Po({apiUrl:t,apiKey:n,fetchImpl:r,getAuthHeaders:a,userId:d,getUserBalance:m,children:p,theme:f,colorScheme:h,demoGames:x,demoPropositions:g,demoEntries:y,demoMaxPayouts:b,gameCategory:w,jurisdiction:k,initialGameId:v,filterSport:N,initialSport:F,initialEventId:B,initialEventLabel:C,sportBaseKey:A,disableQuickPick:M=!1,renderTeamLogo:S,onEntryPlaced:z,onBeforeSubmit:L,onCancel:P,onShare:D,onRecharge:O,onClearEventFilter:T,screenSize:E="desktop",howToPlayMarkdown:j,sportDisplayNames:Y,categoryDisplayNames:H}){const R=se(f,h),G=ye(R),W=be(R),I=!(!x||!g),U=i(()=>new fo({apiUrl:t,apiKey:n,fetchImpl:r,getAuthHeaders:a}),[t,n,r,a]),[K,Z]=c(0),$=s(0),[q,V]=c(0),[X,Q]=c([]),[J,_]=c({}),[ee,te]=c({}),[ne,oe]=c(void 0),[re,le]=c(null),[ae,ie]=c(void 0),ce=e.useCallback(async()=>{if(m)try{const e=await m();"number"==typeof e&&Number.isFinite(e)&&ie(e)}catch(e){}},[m]);l(()=>{m?ce():ie(void 0)},[m,ce]);const de=s(null),[ue,me]=c(null),[pe,fe]=c(F??null),[he,xe]=c(B??null);l(()=>{F&&fe(F)},[F]),l(()=>{xe(B??null)},[B]);const[ge,we]=c(B),ke=s(!1);l(()=>{if(!B)return we(void 0),void(ke.current=!1);ke.current||we(B)},[B]);const ve=w??ue??void 0,Ne=N??F??void 0,Fe=Lt(pe??Ne,A),Be=Lt(Ne,A)??Ne,Ce=pe??void 0,{games:Ae,howToPlayMarkdown:Me,loading:Se,error:ze}=ho(U,{category:ve,jurisdiction:k,sport:Fe},{skip:I}),{propositions:Le,loading:Pe,error:De}=xo(U,{category:ve,sport:Be,event_id:ge},{skip:I}),{sports:Oe,loading:Te}=go(U,{skip:I}),{createEntry:Ee,loading:je,error:Ye}=wo(U),{preview:He}=Fo(U),Re=i(()=>Ht((I?x:Ae)??[],{category:ve,sport:Fe??Ce,sportBaseKey:A}),[I,x,Ae,ve,Fe,Ce,A]),Ge=j??Me??null,{maxPayouts:We,refetchGame:Ie}=bo(U,Re??[],{skip:I,betAmount:20}),Ue=I?b??zo:We,Ke=I?g:Le,Ze=N?(Ke??[]).filter(e=>e.sport===N):Ke,$e=i(()=>Nt(Ze??[]),[Ze]),qe=i(()=>ve||(1===$e.length?$e[0]:void 0),[ve,$e]),Ve=i(()=>{const e=Ze??[];return qe?Tt(e,{category:qe,sportBaseKey:A}):e},[Ze,qe,A]),Xe=i(()=>Ce?Tt(Ve,{sport:Ce,sportBaseKey:A}):Ve,[Ve,Ce,A]),Qe=i(()=>({category:qe,sport:Ce,sportBaseKey:A}),[qe,Ce,A]),Je=i(()=>{const e=(Re??[]).filter(e=>e.active);if(!qe&&$e.length>1)return[];const t=qe?Ht(e,Qe):e;return qe||Ce?function(e,t,n){return n?.category||n?.sport?e.filter(e=>Yt(e,t,n)):e}(t,Xe,Qe):t},[Re,Xe,Qe,qe,Ce,$e.length]),{step:_e,selectedGame:et,selections:tt,placedEntry:nt,setGameOnly:ot,clearSelectedGame:rt,goToSportSelection:lt,goToConfirmation:at,goToSuccess:it,goBack:st,reset:ct,toggleSelection:dt}=ko(v),ut=e.useCallback(()=>{ke.current=!0,we(void 0),ct(),T?.()},[ct,T]),mt=!!ge,pt=mt?C:void 0,ft=!I&&(Se||Pe||!!et&&Te),ht=I?null:et?ze||De:ze,xt=i(()=>et?Rt(Xe,et,A):Xe,[et,Xe,A]),gt=i(()=>et?xt:Ve,[et,xt,Ve]),bt=i(()=>Tt(et?xt:Ve,{category:qe}),[et,xt,Ve,qe]),kt=i(()=>{const e=new Set(bt.map(e=>e.sport).filter(Boolean));return Oe.filter(t=>e.has(t.key))},[Oe,bt]),vt=i(()=>Tt(xt,{category:qe,sport:pe}),[xt,qe,pe]),Ft=i(()=>{if(!et||!bn(et))return[];const{min:e}=Ct(et,ne),t=ne??e;return kn(vt).filter(e=>e.propositionCount>=t)},[et,ne,vt]),At=i(()=>bn(et)?Cn(vt,he):vt,[et,vt,he]),Mt=Object.keys(tt).map(Number),Dt=Mt.length,Ot=i(()=>vt.filter(e=>Mt.includes(e.id)),[vt,Mt]);l(()=>{w||ue||1===$e.length&&me($e[0])},[w,ue,$e]),l(()=>{if(!et)return;const e=xt,t=new Set(e.map(wt));let n=ue;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==ue&&me(n));const o=n?e.filter(e=>wt(e)===n):e,r=new Set(function(e){const t=/* @__PURE__ */new Set;for(const n of e){const o=yt(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),l=et.allowed_sports;fe(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)},[et?.id,xt,ue]),l(()=>{et&&qe&&(Et(et,qe)||rt())},[et,qe,rt]),l(()=>{et&&(Yt(et,Xe,{category:qe,sport:pe,sportBaseKey:A})||rt())},[et,qe,pe,A,Xe,rt]),l(()=>{if(et){if(V(0),de.current){const{count:e}=de.current;return de.current=null,oe(e),void Z(e)}if(et.allowed_propositions&&et.allowed_propositions.length>0){const e=ne;null!=e&&et.allowed_propositions.includes(e)?Z(e):(oe(void 0),Z(0))}else oe(void 0),Z(et.num_propositions||et.max_propositions||0)}},[et]);const jt=(e,t,n)=>{const o=(Ue[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};l(()=>{if("sport"!==_e&&"confirm"!==_e||!et||I)return;const e=bn(et)&&he?At.length:Number.MAX_SAFE_INTEGER;let t;if(et.allowed_propositions&&et.allowed_propositions.length>0){const n=et.allowed_propositions?[...et.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void te({});const o=ne??n[0],r=n.filter(e=>e>o);if(0===r.length)return void te({});t=[o,...r]}else{const{min:n,max:o}=Ct(et),r=Math.min(o,e);if(n<=0||r<=n)return void te({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=jt(et.id,o,20);te(n)},[_e,et,ne,he,At.length,I,Ue]),l(()=>{if("confirm"!==_e||!et)return;const e=Mt.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=jt(et.id,r,q);_(n),e!==$.current?($.current=e,Z(e)):(K>e||K<=0&&e>0)&&Z(e);const o=q>0?q:Math.max(et.min_bet??20,.01);return(async()=>{try{const n=await He(et.id,{actual:K,predicted:K,total:e,bet_amount:o});if(t)return;Q(n.winning_counts)}catch{t||Q([])}})(),()=>{t=!0}},[_e,et,Mt.length,K,q,He,Ue]);const Gt=i(()=>{return t=re,(e=et)&&null!=t?e.permitted_rules?.find(e=>e.id===t)??null:null;var e,t},[et,re]),Wt=!bn(et)||An(Ot,he),It=et?Ct(et,void 0,Gt):null,Ut=!(!et||!Wt)&&(et.allowed_propositions&&et.allowed_propositions.length>0?null!=ne&&Dt===ne&&Bt(Dt,It?.min,It?.max):Bt(Dt,It?.min,It?.max)),Kt=et?.min_bet??0,Zt=Math.max(Kt,.01),$t=null==ae||q<=ae,qt=!je&&q>=Zt&&Ut&&$t,Vt=e=>{oe(e),Z(e);for(const t of Object.keys(tt))dt(Number(t),tt[Number(t)])},Xt=e=>{oe(e),Z(e)},Qt=e=>{xe(bn(e)?B??null:null),ot(e)},Jt=e=>{if(e!==he){for(const e of Object.keys(tt)){const t=Number(e);dt(t,tt[t])}xe(e)}},_t=(e,t)=>{de.current={count:t},ot(e),Ie(e.id);const n=e.allowed_sports??[];let o=null;pe&&n.some(e=>Pt(pe,e,A))?o=pe:1===n.length&&(o=n[0]),fe(o);for(const i of Object.keys(tt)){const e=Number(i);dt(e,tt[e])}let r=Tt(Rt(Ze??[],e,A),{category:qe,sport:o,sportBaseKey:A});const l=Math.max(0,Math.min(t,r.length)),a=[...r].sort(()=>Math.random()-.5).slice(0,l);for(const i of a)dt(i.id,Math.random()<.5?"yes":"no");at()},en=s(!1),tn=async()=>{if(et&&Ut&&!en.current){if(I){const e={id:Math.floor(1e4*Math.random()),game_id:et.id,user_id:d,proposition_ids:Mt,selections:tt,pending:!0,expected_correct:K,bet_amount:q};return z?.(e),it(e),void ce()}en.current=!0;try{L&&await L(q);const e=await Ee({game_id:et.id,user_id:d,proposition_ids:Mt,selections:tt,stake:q,rule_id:Gt?.id??null});z?.(e),it(e),ce()}catch(e){}finally{en.current=!1}}},nn=o(e=>Y?.[e]??kt.find(t=>t.key===e)?.label??St(e,void 0,A),[Y,kt,A]),on=o(e=>zt(e,H),[H]),rn=i(()=>({theme:R,bodyFont:G,headingFont:W,games:Je,propositions:At,propositionsForCategoryPicker:gt,propositionsForSportPicker:bt,sportSummaries:kt,loading:ft,error:ht,step:_e,selectedGame:et,selections:tt,placedEntry:nt,selectedPropositionIds:Mt,selectedPropositions:Ot,selectionValid:Ut,selectedRuleId:re,setSelectedRuleId:le,selectedRule:Gt,answeredCount:Dt,betAmount:q,setBetAmount:V,expectedCorrect:K,setExpectedCorrect:Z,selectedPropositionCount:ne,handlePropositionCountChange:Vt,upgradePropositionCount:Xt,winningCounts:X,payouts:J,overloadPayouts:ee,submitting:je,submitError:Ye,canSubmit:qt,gamePrice:Kt,userBalance:ae,hasSufficientBalance:$t,refreshUserBalance:ce,handleSubmit:tn,selectGame:Qt,goToSportSelection:()=>lt(),goToConfirmation:at,goBack:st,reset:ct,clearSelectedGame:rt,toggleSelection:dt,quickPickGame:_t,selectedCategory:ue,setSelectedCategory:me,selectedSport:pe,setSelectedSport:fe,selectedEventId:he,sameGameMultiEvents:Ft,selectSameGameMultiEvent:Jt,apiUrl:t,apiKey:n,fetchImpl:r,getAuthHeaders:a,userId:d,disableQuickPick:M,renderTeamLogo:S,filterSport:N,initialSport:F,initialEventId:B,sportBaseKey:A,gameCategory:w,eventFilterActive:mt,eventFilterLabel:pt,clearEventFilter:ut,screenSize:E,displaySportName:nn,displayCategoryName:on,maxPayouts:Ue??{},howToPlayMarkdown:Ge,onEntryPlaced:z,onCancel:P,onShare:D,onRecharge:O,demoEntries:y,demoGames:x,demoPropositions:g}),[R,G,W,Je,At,gt,bt,kt,ft,ht,_e,et,tt,nt,Mt,Ot,Ut,Dt,q,K,ne,re,Gt,X,J,ee,je,Ye,qt,Kt,t,n,d,ae,r,a,M,S,N,F,B,A,w,E,mt,pt,ut,ue,pe,he,Ft,Ue,Ge,z,P,D,O,T,y,x,g,nn,on]);/* @__PURE__ */
97
- return u(So.Provider,{value:rn,children:p})}function Do({onPress:t,onDoubleClick:n,label:o="QUICKPICK",size:l="md",yesColor:a,noColor:i,theme:s}){const c=r(So),d=s??c?.theme??Z,p=fe(d),f=d.colors,h=a??O(d),x=i??T(d),g="sm"===l,y=g?p.space.xs:p.space.sm,b=g?6:8,w=g?p.fontSize.sm:p.fontSize.md,k=g?8.5:10,[v,N]=e.useState(!1),[F,B]=e.useState(!1);/* @__PURE__ */
98
- return m("button",{type:"button",onClick:t,onDoubleClick:n,onMouseDown:()=>N(!0),onMouseUp:()=>N(!1),onMouseLeave:()=>N(!1),onFocus:e=>{e.target.matches(":focus-visible")&&B(!0)},onBlur:()=>B(!1),style:{appearance:"none",display:"inline-flex",flexDirection:"column",width:"100%",minWidth:92,padding:0,margin:0,border:`1px solid ${ce(f.border,.6)}`,background:"transparent",borderRadius:p.radius.sm,overflow:"hidden",cursor:"pointer",fontFamily:"inherit",transform:v?"scale(0.985)":"scale(1)",transition:`transform ${p.motion.durationFast}ms ${p.motion.easing}, box-shadow ${p.motion.durationFast}ms ${p.motion.easing}`,boxShadow:F?ge(d):"none",outline:"none",minHeight:p.touchTarget.min},children:[/* @__PURE__ */m("span",{style:{position:"relative",display:"flex",flex:1},children:[
99
- /* @__PURE__ */u("span",{"aria-hidden":!0,style:{position:"absolute",inset:0,background:h,clipPath:"polygon(0 0, 53% 0, 47% 100%, 0 100%)"}}),
89
+ /* @__PURE__ */u("rect",{x:"40",y:"5",width:"210",height:"210",rx:"42",fill:n})]}),/* @__PURE__ */u("div",{style:{position:"absolute",left:"10.7%",top:"10.7%",width:"60.7%",height:"60.7%",pointerEvents:"none"},children:/* @__PURE__ */u(an,{iconUrl:e,width:"100%",height:"100%",iconColor:o,accentColor:r})})]})}function ko({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:r,iconColor:a,accentColor:i,captionColor:d,bodyFont:h,legOptions:f,onPick:x,colors:g,menuShadow:y}){const[b,w]=c(!1),[k,v]=c(null),N=s(null),C=s(null);l(()=>{if(!b)return void v(null);const e=()=>{const e=N.current;if(!e||"undefined"==typeof window)return;const t=e.getBoundingClientRect(),n=40+40*f.length+12,o=window.innerHeight-t.bottom,r=o<n&&t.top>o;v({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;N.current?.contains(t)||C.current?.contains(t)||w(!1)};return document.addEventListener("mousedown",t),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0),document.removeEventListener("mousedown",t)}},[b,f.length]);const F=b&&k&&"undefined"!=typeof document?p(/* @__PURE__ */m("div",{ref:C,role:"menu",className:"rounded-lg overflow-y-auto overscroll-contain",style:{position:"fixed",maxHeight:k.avail,top:k.flipUp?void 0:k.bottom+6,bottom:k.flipUp?window.innerHeight-k.top+6:void 0,left:k.right,transform:"translateX(-100%)",zIndex:20,backgroundColor:g.background,border:`1px solid ${g.border}`,boxShadow:y,minWidth:180,fontFamily:h},children:[/* @__PURE__ */u("div",{className:"px-3 py-1.5 text-[10px] font-bold tracking-wider uppercase",style:{color:g.text,opacity:.55,borderBottom:`1px solid ${g.border}`},children:"How many picks?"}),f.map((e,t)=>/* @__PURE__ */m("button",{type:"button",role:"menuitem",onClick:()=>{w(!1),x(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 ${g.border}`},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=g.backgroundAlt},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},children:[/* @__PURE__ */m("span",{className:"text-sm font-semibold",style:{color:g.text},children:[e," picks"]}),/* @__PURE__ */u("span",{className:"text-[10px] font-bold tracking-wider",style:{background:L(g.primary,.14),color:g.primary,padding:"2px 6px",borderRadius:4},children:"QP"})]},e))]}),document.body):null;/* @__PURE__ */
90
+ return m("div",{ref:N,children:[/* @__PURE__ */u(sn,{iconUrl:e,gameName:t,onPress:()=>w(e=>!e),size:n,brandColor:o,cardColor:r,iconColor:a,accentColor:i,captionColor:d}),F]})}function vo({games:e,selectedGame:t,onSelectGame:n,loading:r,error:a,theme:p,colorScheme:h,showTier:f=!1,showCategory:x=!1,showTierFilter:g=!1,onPropositionCountChange:y,onPropositionCountSelected:b,onQuickPickGame:w,maxPayouts:k}){const v=ge(p,h),N=v.colors,C=V(v),F=ye(v),B=be(v),A=R(v),M=Y(v),S=j(v),z=$(v),P=i(()=>Gn(e),[e]),[T,D]=c(()=>Wn(e));l(()=>{0!==P.length&&(P.some(e=>e.id===T)||D(P[0].id))},[P,T]);const O=i(()=>!g||P.length<=1?e:Rn(e,jn[T]),[e,g,P.length,T]),E=s(null),H=s(null),[W,I]=c(0),[U,K]=c(0),Z=(e,t)=>{e.quick_pick_only&&w&&t>0?w(e,t):(t>0&&!Mn(e)&&y?.(t),n(e),b?.())},q=e=>{Z(e,go(e,k?.[e.id]).maxLegCount)};l(()=>{const e=E.current;if(!e)return;I(e.getBoundingClientRect().width);const t=new ResizeObserver(e=>{for(const t of e)I(t.contentRect.width)});return t.observe(e),()=>t.disconnect()},[]);const X=s(()=>{}),Q=o(e=>{H.current?.removeEventListener("scroll",X.current),H.current=e,e&&(X.current=()=>{const t=e.scrollLeft+e.clientWidth/2;let n=0,o=1/0;Array.from(e.children).forEach((e,r)=>{const l=e,a=Math.abs(l.offsetLeft+l.offsetWidth/2-t);a<o&&(o=a,n=r)}),K(n)},e.addEventListener("scroll",X.current,{passive:!0}),X.current())},[]);l(()=>{X.current()},[W,O.length]),l(()=>{H.current?.scrollTo({left:0}),K(0)},[T]);const _=e=>e.allowed_propositions&&e.allowed_propositions.length>0&&e.game_name.replace(/\s+\d+\s*$/,"").trim()||e.game_name,ee=e=>{const t=H.current,n=t?.children[e];t&&n&&t.scrollTo({left:n.offsetLeft-(t.clientWidth-n.offsetWidth)/2,behavior:"smooth"})};if(r)/* @__PURE__ */return u(Fn,{colors:J(v),bodyFont:F,variant:"games",gameCardCount:Math.min(Math.max(e.length,2),4),showTierTabs:g&&P.length>1});if(a)/* @__PURE__ */return u("div",{className:"flex items-center justify-center p-8",style:{fontFamily:F},children:/* @__PURE__ */u("div",{style:{color:N.error},children:a})});if(0===e.length)/* @__PURE__ */return u("div",{className:"flex items-center justify-center p-8",style:{fontFamily:F},children:/* @__PURE__ */u("div",{style:{color:N.textMuted},children:"No games available"})});const te=W>0&&W<400,ne=te?108:124,oe=W>0?Math.min(.86*W,380):0,re=oe>0?Math.max((W-oe)/2,4):4,le=O.length>1,ae=le&&re>=48,ie=e=>({position:"absolute",top:"38%",width:44,height:44,borderRadius:"50%",border:`1px solid ${N.border}`,backgroundColor:L(N.background??"#fff",.94),color:N.primary,fontSize:18,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center",cursor:e?"pointer":"default",opacity:e?1:.3,pointerEvents:e?"auto":"none",boxShadow:S,zIndex:1});/* @__PURE__ */
91
+ return m("div",{ref:E,className:"flex flex-col",style:{fontFamily:F},children:[g&&/* @__PURE__ */u(bo,{tabs:P,active:T,onChange:D,colors:N,bodyFont:F}),0===O.length?/* @__PURE__ */u("div",{className:"flex items-center justify-center p-8",children:/* @__PURE__ */u("div",{style:{color:N.textMuted},children:"No games in this collection"})}):/* @__PURE__ */m(d,{children:[
92
+ /* @__PURE__ */m("div",{style:{position:"relative"},children:[/* @__PURE__ */u("div",{ref:Q,className:"blade-game-track",style:{display:"flex",alignItems:"stretch",gap:14,overflowX:"auto",overflowY:"hidden",scrollSnapType:"x mandatory",scrollbarWidth:"none",paddingLeft:re,paddingRight:re,paddingBottom:8,position:"relative"},children:O.map(e=>{const n=Xt(e),o=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>Qt[e]??`Day ${e}`);return 1===n.length?n[0]:n.slice(0,-1).join(", ")+" & "+n[n.length-1]}(e),r=t?.id===e.id,l=String(e.id),a=Dt(e),i=e.description||e.rule,s=e.call_to_action?.trim()||null,{legOptions:c,maxLegCount:d,tiers:p,modes:h,pydDividends:g,hasGenericDividends:y,minBet:b,maxBet:S}=go(e,k?.[e.id]),P=Ae(e),T=!n&&o?`Available ${o}`:null;/* @__PURE__ */
93
+ return m("article",{className:"flex flex-col items-center text-center",style:{flex:oe>0?`0 0 ${oe}px`:"0 0 86%",scrollSnapAlign:"center",borderRadius:24,border:`1px solid ${r?N.primary:N.border}`,backgroundColor:r?N.infoBg:N.background??C,boxShadow:M,padding:"22px 20px 20px",opacity:n?1:.5,pointerEvents:n?"auto":"none"},children:[e.quick_pick_only&&w&&c.length>1?/* @__PURE__ */u(ko,{iconUrl:P,gameName:_(e),size:ne,brandColor:N.primary,cardColor:C,iconColor:N.primaryText,accentColor:z,captionColor:N.textMuted,bodyFont:F,legOptions:c.map(Number),onPick:t=>Z(e,t),colors:N,menuShadow:M}):/* @__PURE__ */u(sn,{iconUrl:P,gameName:_(e),onPress:()=>q(e),size:ne,brandColor:N.primary,cardColor:C,iconColor:N.primaryText,accentColor:z,captionColor:N.primary}),
94
+ /* @__PURE__ */m("div",{className:"mt-2",style:{fontFamily:B,fontSize:13,letterSpacing:"-0.04em",lineHeight:1},children:[/* @__PURE__ */u("span",{style:{fontWeight:800,color:N.primary},children:"YES"}),/* @__PURE__ */u("span",{style:{fontWeight:600,color:L(N.primary,.85)},children:"NO"})]}),
95
+ /* @__PURE__ */m("h3",{className:"flex items-center justify-center gap-1.5 font-semibold leading-tight px-1 mt-0.5",style:{fontFamily:B,fontSize:te?19:21,color:A,letterSpacing:"-0.01em"},children:[_(e),/* @__PURE__ */u(Ve,{variant:"icon",panel:Ee(e),content:i||"Pick outcomes and land the payout for this game.",theme:v,title:_(e),label:`How to play ${_(e)}`,extra:/* @__PURE__ */u(yo,{tiers:y?p:[],modes:h,pydDividends:g,onPlayCount:c.length>1?t=>Z(e,t):void 0,minBet:b,maxBet:S,colors:N,bodyFont:F,headingFont:B}),colors:N,bodyFont:F,headingFont:B})]}),s&&/* @__PURE__ */u("p",{className:"mt-1.5 font-bold leading-snug",style:{fontSize:13,color:N.primary,maxWidth:"30ch"},children:s}),i&&/* @__PURE__ */u("p",{className:"mt-2 leading-relaxed",style:{fontSize:12.5,color:N.textMuted,maxWidth:"34ch"},children:i}),a.enabled&&/* @__PURE__ */m("span",{className:"inline-flex w-fit items-center gap-0.5 px-2 py-0.5 rounded-full mt-2",style:{backgroundColor:`${N.warning}15`,color:N.warning,fontSize:10,fontWeight:700},children:["★ ",a.progressive?a.amount>0?vt(a.amount):a.limit>0?`Up to ${vt(a.limit)}`:"Jackpot":vt(a.amount)]}),(x||f)&&/* @__PURE__ */m("div",{className:"flex flex-wrap gap-1 justify-center mt-2",children:[x&&e.category&&/* @__PURE__ */u("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:N.backgroundAlt,color:G(v)},children:e.category}),x&&/* @__PURE__ */u("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:N.backgroundAlt,color:G(v)},children:e.rule}),x&&e.lotto_type&&/* @__PURE__ */u("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:N.backgroundAlt,color:G(v)},children:e.lotto_type}),f&&null!=e.tier&&/* @__PURE__ */m("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:N.backgroundAlt,color:G(v)},children:["Tier ",e.tier]})]}),T&&/* @__PURE__ */u("div",{style:{marginTop:"auto",width:"100%",paddingTop:12},children:/* @__PURE__ */u("span",{className:"text-[11px] font-semibold leading-snug",style:{color:N.text},children:T})})]},l)})}),ae&&/* @__PURE__ */m(d,{children:[/* @__PURE__ */u("button",{type:"button","aria-label":"Previous game",onClick:()=>ee(U-1),style:{...ie(U>0),left:2},children:"‹"}),/* @__PURE__ */u("button",{type:"button","aria-label":"Next game",onClick:()=>ee(U+1),style:{...ie(U<O.length-1),right:2},children:"›"})]})]}),le&&/* @__PURE__ */u("div",{className:"flex justify-center flex-wrap pt-1 pb-2",children:O.map((e,t)=>/* @__PURE__ */u("button",{type:"button","aria-label":`Go to ${_(e)}`,onClick:()=>ee(t),style:{padding:"18.5px 5px",margin:"-18.5px 0",background:"none",border:"none",cursor:"pointer",display:"flex",alignItems:"center"},children:/* @__PURE__ */u("span",{style:{display:"block",width:t===U?22:7,height:7,borderRadius:999,backgroundColor:t===U?N.primary:L(N.primary,.25),transition:"width 200ms ease, background-color 200ms ease"}})},e.id))}),le&&/* @__PURE__ */m("div",{style:{borderTop:`1px solid ${N.border}`,paddingTop:10,marginTop:2},children:[/* @__PURE__ */u("div",{className:"text-[10px] font-bold uppercase mb-2",style:{color:N.textMuted,letterSpacing:"0.16em",fontFamily:B},children:"All games"}),/* @__PURE__ */u("div",{className:"grid gap-1",style:{gridTemplateColumns:`repeat(${gt(O.length,W)}, minmax(0, 1fr))`},children:O.map((e,t)=>{const n=Xt(e);/* @__PURE__ */
96
+ return m("button",{type:"button",onClick:()=>q(e),disabled:!n,"aria-current":t===U,className:"flex flex-col items-center gap-1 px-1 py-1.5 rounded-2xl",style:{border:`1px solid ${t===U?N.primary:"transparent"}`,cursor:n?"pointer":"not-allowed",opacity:n?1:.5,background:"transparent",transition:"border-color 150ms ease"},children:[/* @__PURE__ */u(wo,{iconUrl:Ae(e),size:te?44:52,brandColor:N.primary,iconColor:N.primaryText,accentColor:z}),/* @__PURE__ */u("span",{className:"text-[11px] font-bold leading-tight",style:{color:t===U?N.primary:A,fontFamily:B,letterSpacing:"-0.01em",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,overflow:"hidden"},children:_(e)})]},e.id)})})]})]}),
97
+ /* @__PURE__ */u("style",{children:".blade-game-track::-webkit-scrollbar{display:none}"})]})}var No={today:"Today",weekend:"This weekend",next7:"Next 7 days"},Co=["today","weekend","next7"];function Fo(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function Bo(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:Fo(n,1)};case"weekend":{const e=n.getDay(),t=Fo(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:Fo(t,2)}}case"next7":return{start:n,end:Fo(n,7)}}}(t,n);return o>=r&&o<l}var Ao=class{constructor(e){this.inflight=/* @__PURE__ */new Map,this.cache=/* @__PURE__ */new Map,this.apiUrl=e.apiUrl,this.apiKey=e.apiKey,this.fetchImpl=e.fetchImpl??fetch.bind(globalThis),this.getAuthHeaders=e.getAuthHeaders}invalidateCache(){this.cache.clear()}invalidate(){this.invalidateCache()}async request(e,t,n){const o=`${this.apiUrl}${e}`,r=(t?.method??"GET").toUpperCase(),l="GET"===r,a=l,i=!l&&!n?.idempotent,s=`${r} ${o}`;if(a){const e=this.cache.get(s);if(e&&Date.now()-e.at<5e3)return e.value;const t=this.inflight.get(s);if(t)return t}const c=a?this.cache.get(s):void 0,d=(async()=>{let e;try{const n=this.getAuthHeaders?await this.getAuthHeaders():void 0;e=await this.fetchImpl(o,{...t,headers:{"Content-Type":"application/json",...this.apiKey?{"X-API-Key":this.apiKey}:{},...n??{},...c?.etag?{"If-None-Match":c.etag}:{},...t?.headers}})}catch(r){throw r}if(304===e.status&&c)return a&&this.cache.set(s,{at:Date.now(),value:c.value,etag:c.etag}),c.value;if(!e.ok){let t=`API request failed: ${e.status} ${e.statusText}`;try{const n=await e.json();422===e.status&&n.detail?Array.isArray(n.detail)?t=n.detail.map(e=>`${Array.isArray(e.loc)?e.loc.join("."):"field"}: ${e.msg}`).join("; "):"string"==typeof n.detail?t=n.detail:"object"==typeof n.detail&&(t=JSON.stringify(n.detail)):n.message?t=n.message:n.error&&(t=n.error)}catch{}throw new Error(t)}const n=await e.json();if(a){const t=e.headers.get("ETag")??void 0;this.cache.set(s,{at:Date.now(),value:n,etag:t})}return n})();return a?(this.inflight.set(s,d),d.catch(()=>{}).finally(()=>{this.inflight.delete(s)})):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),null!=e.rule_id&&(n.rule_id=e.rule_id);const o=(await this.request("/game-entries",{method:"POST",body:JSON.stringify(n)})).payload;return null!=o.stake&&null==o.bet_amount&&(o.bet_amount=Number(o.stake)),o}async getPayoutsDue(e){const t=new URLSearchParams;null!=e?.game_id&&t.set("game_id",String(e.game_id)),null!=e?.limit&&t.set("limit",String(e.limit)),null!=e?.offset&&t.set("offset",String(e.offset));const n=t.toString();return await this.request(n?`/game-entries/payouts/due?${n}`:"/game-entries/payouts/due")}async getEntryPayout(e){return(await this.request(`/game-entries/${e}/payout`)).payload}async markEntryPaidOut(e){const t=await this.request(`/game-entries/${e}/payout/mark-paid-out`,{method:"POST",body:JSON.stringify({})});return this.invalidate(),t.payload}async updateGameEntryResult(e,t){return(await this.request(`/game-entries/${e}/result`,{method:"POST",body:JSON.stringify(t)})).payload}async getGameMaxPayout(e,t){const n=null!=t?`?bet_amount=${encodeURIComponent(String(t))}`:"";return(await this.request(`/games/${e}/max-payout${n}`)).payload}async getGamesMaxPayouts(e,t){if(0===e.length)return{};const n=new URLSearchParams({ids:e.join(",")});null!=t&&n.set("bet_amount",String(t));const o=await this.request(`/games/max-payouts?${n.toString()}`),r={};for(const[l,a]of Object.entries(o.payload||{}))r[Number(l)]=a;return r}async getEntryPreview(e,t){return(await this.request(`/games/${e}/preview`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async evaluateRule(e,t){return(await this.request(`/games/${e}/evaluate-rule`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}async calculatePayout(e,t){return(await this.request(`/games/${e}/calculate-payout`,{method:"POST",body:JSON.stringify(t)},{idempotent:!0})).payload}};function Mo(e,t,n){const[r,a]=c([]),[i,d]=c(null),[u,m]=c(!n?.skip),[p,h]=c(null),f=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",x=s(t);x.current=t;const g=n?.skip??!1,y=o(async()=>{if(!g)try{m(!0),h(null);const t=await e.getGames(x.current);a(t.games),d(t.howToPlayMarkdown)}catch(t){h(t instanceof Error?t.message:"Failed to fetch games")}finally{m(!1)}},[e,f,g]);return l(()=>{y()},[y]),{games:r,howToPlayMarkdown:i,loading:u,error:p,refetch:o(async()=>{e.invalidate(),await y()},[e,y])}}function So(e,t,n){const[r,a]=c([]),[i,d]=c(!n?.skip),[u,m]=c(null),p=n?.skip??!1,h=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",f=s(t);f.current=t;const x=o(async()=>{if(!p)try{d(!0),m(null);const t=await e.getPropositions(f.current);a(t)}catch(t){m(t instanceof Error?t.message:"Failed to fetch propositions")}finally{d(!1)}},[e,h,p]);return l(()=>{x()},[x]),{propositions:r,loading:i,error:u,refetch:o(async()=>{e.invalidate(),await x()},[e,x])}}function zo(e,t){const[n,r]=c([]),[a,i]=c(!t?.skip),[s,d]=c(null),u=t?.skip??!1,m=o(async()=>{if(!u)try{i(!0),d(null),r(await e.getSports())}catch(t){d(t instanceof Error?t.message:"Failed to fetch sports")}finally{i(!1)}},[e,u]);return l(()=>{m()},[m]),{sports:n,loading:a,error:s,refetch:o(async()=>{e.invalidate(),await m()},[e,m])}}function Lo(e,t,n){const[r,a]=c([]),[i,d]=c(!n?.skip),[u,m]=c(null),p=n?.skip??!1,h=t?`${t.user_id??""}_${t.pending??""}`:"",f=s(t);f.current=t;const x=o(async()=>{if(!p)try{d(!0),m(null);const t=await e.getGameEntries(f.current);a(t)}catch(t){m(t instanceof Error?t.message:"Failed to fetch entries")}finally{d(!1)}},[e,h,p]);return l(()=>{x()},[x]),{entries:r,loading:i,error:u,refetch:o(async()=>{e.invalidate(),await x()},[e,x])}}function Po(e,t,n){const[r,a]=c({}),[i,d]=c(!1),u=n?.skip??!1,m=n?.betAmount,p=s(/* @__PURE__ */new Set);return l(()=>{if(u||0===t.length)return;const n=t.filter(e=>!(e.id in r)&&!p.current.has(e.id));if(0===n.length)return;for(const e of n)p.current.add(e.id);let o=!1;return d(!0),(async()=>{try{const t=await e.getGamesMaxPayouts(n.map(e=>e.id),m);o||a(e=>({...e,...t}))}catch{}finally{o||d(!1)}})(),()=>{o=!0}},[e,t.map(e=>e.id).join(","),u,m]),{maxPayouts:r,loading:i,refetchGame:o(async(t,n)=>{if(!u)try{const o=await e.getGamesMaxPayouts([t],n??m);o[t]&&a(e=>({...e,[t]:o[t]}))}catch{}},[e,u,m])}}function To(e){const[t,n]=c(!1),[r,l]=c(null),[a,i]=c(null);return{createEntry:async t=>{try{n(!0),l(null),await function(e=15e3){return"undefined"==typeof navigator||!1!==navigator.onLine||"undefined"==typeof window||"function"!=typeof window.addEventListener?Promise.resolve():new Promise(t=>{const n=()=>{window.removeEventListener("online",n),clearTimeout(o),t()},o=setTimeout(n,e);window.addEventListener("online",n)})}();const o=await e.createGameEntry(t);return i(o),o}catch(o){const e=o instanceof Error?o.message:"Failed to create entry";throw l(e),new Error(e)}finally{n(!1)}},loading:t,error:r,entry:a,clearSubmitError:o(()=>l(null),[])}}function Do(e){const[t,n]=c(e?"sport":"game"),[o,r]=c(null),[l,a]=c({}),[i,s]=c(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=>{s(e),n("success")},goBack:()=>{"confirm"===t?n("sport"):"sport"===t&&(n("game"),r(null),a({}))},reset:()=>{n("game"),r(null),a({}),s(null)},toggleSelection:(e,t)=>{a(n=>{const o={...n};return o[e]===t?delete o[e]:o[e]=t,o})}}}function Oo(e){const[t,n]=c(!1),[r,l]=c(null),[a,i]=c(null);return{evaluate:o(async(t,o)=>{try{n(!0),l(null);const r=await e.evaluateRule(t,o);return i(r),r}catch(r){const e=r instanceof Error?r.message:"Failed to evaluate rule";throw l(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:r,result:a}}function Eo(e){const[t,n]=c(!1),[r,l]=c(null),[a,i]=c(null);return{calculate:o(async(t,o)=>{try{n(!0),l(null);const r=await e.calculatePayout(t,o);return i(r),r}catch(r){const e=r instanceof Error?r.message:"Failed to calculate payout";throw l(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:r,result:a}}function jo(e){const[t,n]=c(!1),[r,l]=c(null),[a,i]=c(null);return{preview:o(async(t,o)=>{try{n(!0),l(null);const r=await e.getEntryPreview(t,o);return i(r),r}catch(r){const e=r instanceof Error?r.message:"Failed to preview entry";throw l(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:r,result:a}}var Yo=[1,5,10,20,50,100],Ho=[4,12];function Ro(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function Go(e,t,n){const o=n?.operatorMargin??.2,r=n?.perLegProbability??.5,l=Math.round(Math.pow(1/r,t)),a=(1-o)*Math.pow(1/r,t);return{legs:t,stake:e,prize:Math.round(e*a*100)/100,multiple:a,oddsOneIn:l}}function Wo(e){if(!Ro(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Ho[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Ho[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n);if(0===o.length)return null;const r=Math.max(e.min_bet??1,.01),l=e.max_bet??null,a=Yo.filter(e=>e>=r&&(null===l||e<=l));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(20,r),l??20),minStake:r,maxStake:l,quickStakes:a,tagline:"Two steps to your multi. Tweak legs and stake — the prize updates as you go.",operatorMargin:e.operator_margin??.2,perLegProbability:e.payout_structure?.per_leg_probability??.5}}var Io=50,Uo=[25,50,75,100],$o=[{legs:4,firstPayingTier:3,tiers50:[[3,60],[4,340]]},{legs:6,firstPayingTier:4,tiers50:[[4,40],[5,110],[6,850]]},{legs:8,firstPayingTier:5,tiers50:[[5,30],[6,70],[7,300],[8,2100]]},{legs:9,firstPayingTier:5,tiers50:[[5,10],[6,40],[7,100],[8,350],[9,4500]]},{legs:10,firstPayingTier:6,tiers50:[[6,15],[7,45],[8,140],[9,800],[10,1e4]]}];function Ko(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function Zo(e,t){return Math.round(e*t/50*100)/100}function qo(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:Zo(o,t),cumulative:Zo(n,t)}))}function Vo(e,t){return Zo(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function Xo(e,t,n){return Zo(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)}function Qo(e){if(!Ko(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=$o.filter(e=>t&&t.length>0?t.includes(e.legs):e.legs>=n&&e.legs<=o);if(0===r.length)return null;const l=e.min_bet??Uo[0],a=e.max_bet??Uo[Uo.length-1],i=Uo.filter(e=>e>=l&&e<=a);return{ladders:r,defaultLegs:r.some(e=>8===e.legs)?8:r[Math.floor(r.length/2)].legs,defaultStake:i.includes(50)?50:i[0]??50,stakes:i.length>0?i:Uo,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}var Jo=.21875,_o=[1,5,10,20,50],er=[4,12];function tr(e){return(e??"").trim().toLowerCase()}var nr={straight:"mirror",double:"double_mirror",triple:"triple_mirror"};function or(e){if(!e||e.quick_pick_only)return!1;const t=tr(e.rule);return Object.values(nr).includes(t)}function rr(e,t,n){const o=n?.operatorMargin??.21875,r=n?.perLegProbability??.5,l=Math.round(Math.pow(2,t)),a=Math.pow(r,t)+Math.pow(1-r,t),i=Math.round(1/a),s=(1-o)*Math.pow(2,t-1);return{legs:t,stake:e,prize:Math.round(e*s*100)/100,multiple:s,totalOutcomes:l,winningOutcomes:2,oddsOneIn:i}}function lr(e){if(!or(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??er[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??er[1],o=ir(function(e){const t=tr(e?.rule);return Object.keys(nr).find(e=>nr[e]===t)??"straight"}(e)),r=(e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n)).filter(e=>e>=o.minLegs);if(0===r.length)return null;const l=Math.max(e.min_bet??1,.01),a=e.max_bet??null,i=_o.filter(e=>e>=l&&(null===a||e<=a));return{variant:o,legOptions:r,defaultLegs:r.includes(8)?8:r[Math.floor(r.length/2)],defaultStake:Math.min(Math.max(20,l),a??20),minStake:l,maxStake:a,quickStakes:i,tagline:o.tagline,operatorMargin:e.operator_margin??.21875,perLegProbability:e.payout_structure?.per_leg_probability??.5}}var ar=[{id:"straight",name:"Straight Mirror",depth:1,minLegs:4,waysToWin:"2 ways to win",description:"All or nothing. Get every call right, or every call wrong. Both pay the same.",tagline:"Call every leg. Get them all right, you win — all wrong, you win the same.",tierNames:["Perfect"]},{id:"double",name:"Double Mirror",depth:2,minLegs:6,waysToWin:"4 ways to win",description:"Perfect, or one off, at either edge. All right or all wrong, plus the near miss on each side.",tagline:"Perfect, or one off, at either edge — four ways to land a win.",tierNames:["Perfect","Near"]},{id:"triple",name:"Triple Mirror",depth:3,minLegs:9,waysToWin:"6 ways to win",description:"Within two of a clean sweep, either way. Longer legs only, so you still miss the middle.",tagline:"Within two of a clean sweep, either way — six ways to land a win.",tierNames:["Perfect","Near","Third"]}];function ir(e){return ar.find(t=>t.id===e)??ar[0]}function sr(e,t){if(t<0||t>e)return 0;const n=Math.min(t,e-t);let o=1;for(let r=0;r<n;r++)o=o*(e-r)/(r+1);return Math.round(o)}var cr=.21875,dr=6,ur=5,mr=1,pr=2;function hr(e){return!!e&&!e.quick_pick_only&&"six_again"===(e.rule??"").trim().toLowerCase()}var fr={golden_point:!1,captains_challenge:!1};function xr(e,t,n){const o=1+(t.golden_point?1:0)+(t.captains_challenge?1:0),r=e*n.baseMultiple*(t.golden_point?n.goldenPointFactor:1),l=t.captains_challenge?e*n.challengeMultiple:0;return{legs:n.legs,unit:e,stake:e*o,base:r,challenge:l,perfect:r+l,lowestWinningCount:n.legs-(t.captains_challenge?n.challengeMisses:0),ruleId:gr(t,n)}}function gr(e,t){return e.captains_challenge?e.golden_point?t.ruleIds.goldenChallenge:t.ruleIds.challenge:t.ruleIds.base}function yr(e,t){const n=xr(1,e,t);return{perfect:n.perfect/n.stake,challenge:n.challenge/n.stake}}function br(e,t){return e.permitted_rules?.find(e=>t((e.name??"").toLowerCase().replace(/[^a-z]+/g," ").trim()))??null}function wr(e){if(!hr(e)||!e)return null;const t=e.num_propositions??e.min_propositions??6;if(t<2)return null;const n=e.operator_margin??.21875,o=Math.max(e.min_bet??10,.01),r=null!=e.max_bet?Math.max(o,Math.floor(e.max_bet/3/o)*o):Math.max(o,100),l=br(e,e=>e.includes("challenge")&&!e.includes("golden")),a=br(e,e=>e.includes("challenge")&&e.includes("golden")),i=br(e,e=>!e.includes("challenge"))??null;return{legs:t,unitMin:o,unitStep:o,unitMax:r,defaultUnit:o,baseMultiple:Math.round(Math.pow(2,t)*(1-n)*100)/100,challengeMultiple:5,challengeMisses:1,goldenPointFactor:2,boosts:[{id:"golden_point",label:"Golden Point",costUnits:1},{id:"captains_challenge",label:"Captain's Challenge",costUnits:1}],tagline:"Set your play, then pick your six. Every call a yes or a no.",ruleIds:{base:i?.id??e.default_rule_id??null,challenge:l?.id??null,goldenChallenge:a?.id??null}}}function kr(e){return e?.quick_pick_only?"quick_pick":Ro(e)?"game_set":mo(e)?"pick_your_dividend":Ko(e)?"ladder":or(e)?"mirror":Zn(e)?"safety_net":hr(e)?"six_again":Mn(e)?"selections":so(e)?"rule_setup":"selections"}function vr(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 Nr(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||Mn(e)||vr(e))}function Cr(e){switch(kr(e)){case"ladder":return{belowRequiredHint:(e,t)=>`Drop to Ladder ${e} or add another pick to stay on Ladder ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay on Ladder ${e}.`,switchTierLabel:e=>`Switch to Ladder ${e}`,overloadTitle:"Add more picks to climb higher",tableColumnLabel:"Ladder",tierButtonLabel:e=>`Ladder ${e}`};case"game_set":case"pick_your_dividend":case"mirror":case"safety_net":case"six_again":return{belowRequiredHint:(e,t)=>`Drop to ${e} legs or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e} legs.`,switchTierLabel:e=>`Switch to ${e} legs`,overloadTitle:"Add more legs to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`${e} legs`};default:return{belowRequiredHint:(e,t)=>`Drop to a ${e}-leg multi or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e}.`,switchTierLabel:e=>`Switch to ${e}-leg`,overloadTitle:"Add more picks to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`Multi ${e}`}}}function Fr(e){const t=kr(e);return"six_again"===t||"pick_your_dividend"===t}function Br(e){return"six_again"===kr(e)?"Set by your ticket and boosts.":"Set by your dividend ladder rung."}function Ar(e,t,n){if(!e||t<=0||n<=0)return 0;switch(kr(e)){case"game_set":return Go(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize;case"mirror":return rr(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize;case"pick_your_dividend":return function(e,t,n=co){if(!(e>0&&t>0))return 0;for(const o of n)if(Math.abs(ho(o,e).stake-t)<.005)return o;return 0}(t,n);default:return 0}}var Mr=t(null),Sr={};function zr(){const e=r(Mr);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function Lr({apiUrl:t,apiKey:n,fetchImpl:r,getAuthHeaders:a,userId:d,getUserBalance:m,children:p,theme:h,colorScheme:f,demoGames:x,demoPropositions:g,demoEntries:y,demoMaxPayouts:b,gameCategory:w,jurisdiction:k,initialGameId:v,filterSport:N,initialSport:C,initialEventId:F,initialEventLabel:B,sportBaseKey:A,disableQuickPick:M=!1,renderTeamLogo:S,renderPropositionSilk:z,selectionVariant:L,disableEventSwipe:P,enableSportFavourites:T,onEntryPlaced:D,onBeforeSubmit:O,onCancel:E,onShare:j,onRecharge:Y,onClearEventFilter:H,screenSize:R="desktop",howToPlayMarkdown:G,sportDisplayNames:W,categoryDisplayNames:I}){const U=ge(h,f),$=ye(U),K=be(U),Z=!(!x||!g),q=i(()=>new Ao({apiUrl:t,apiKey:n,fetchImpl:r,getAuthHeaders:a}),[t,n,r,a]),[V,X]=c(0),Q=s(0),[J,_]=c(0),[ee,te]=c([]),[ne,oe]=c({}),[re,le]=c({}),[ae,ie]=c(void 0),[se,ce]=c(null),[de,ue]=c(void 0),me=e.useCallback(async()=>{if(m)try{const e=await m();"number"==typeof e&&Number.isFinite(e)&&ue(e)}catch(e){}},[m]);l(()=>{m?me():ue(void 0)},[m,me]);const pe=s(null),he=s(null),[fe,xe]=c(null),[we,ke]=c(C??null),[ve,Ne]=c(F??null);l(()=>{C&&ke(C)},[C]),l(()=>{Ne(F??null)},[F]);const[Ce,Fe]=c(F),Be=s(!1);l(()=>{if(!F)return Fe(void 0),void(Be.current=!1);Be.current||Fe(F)},[F]);const Ae=w??fe??void 0,Me=Ht(we??N??C??void 0,A),Se=Ht(N,A)??N,ze=we??void 0,{games:Le,howToPlayMarkdown:Pe,loading:Te,error:De}=Mo(q,{category:Ae,jurisdiction:k,sport:Me},{skip:Z}),{propositions:Oe,loading:Ee,error:je}=So(q,{category:Ae,sport:Se,event_id:Ce},{skip:Z}),{sports:Ye,loading:He}=zo(q,{skip:Z}),{createEntry:Re,loading:Ge,error:We,clearSubmitError:Ie}=To(q),{preview:Ue}=jo(q),$e=i(()=>Zt((Z?x:Le)??[],{category:Ae,sport:Me??ze,sportBaseKey:A}),[Z,x,Le,Ae,Me,ze,A]),Ke=G??Pe??null,{maxPayouts:Ze,refetchGame:qe}=Po(q,$e??[],{skip:Z,betAmount:20}),Ve=Z?b??Sr:Ze,Xe=Z?g:Oe,Qe=N?(Xe??[]).filter(e=>e.sport===N):Xe,Je=i(()=>zt(Qe??[]),[Qe]),_e=i(()=>Ae||(1===Je.length?Je[0]:void 0),[Ae,Je]),et=i(()=>{const e=Qe??[];return _e?It(e,{category:_e,sportBaseKey:A}):e},[Qe,_e,A]),tt=i(()=>ze?It(et,{sport:ze,sportBaseKey:A}):et,[et,ze,A]),nt=i(()=>({category:_e,sport:ze,sportBaseKey:A}),[_e,ze,A]),ot=i(()=>{const e=($e??[]).filter(e=>e.active);if(!_e&&Je.length>1)return[];const t=_e?Zt(e,nt):e;return _e||ze?function(e,t,n){return n?.category||n?.sport?e.filter(e=>Kt(e,t,n)):e}(t,tt,nt):t},[$e,tt,nt,_e,ze,Je.length]),{step:rt,selectedGame:lt,selections:at,placedEntry:it,setGameOnly:dt,clearSelectedGame:ut,goToSportSelection:mt,goToConfirmation:pt,goToSuccess:ht,goBack:ft,reset:xt,toggleSelection:gt}=Do(v),yt=e.useCallback(()=>{Be.current=!0,Fe(void 0),xt(),H?.()},[xt,H]),bt=!!Ce,wt=bt?B:void 0,kt=!Z&&(Te||Ee||!!lt&&He),vt=Z?null:lt?De||je:De,Nt=i(()=>lt?Vt(tt,lt,A):tt,[lt,tt,A]),Ct=i(()=>{const e=lt?Vt(et,lt,A):et,t=lt?.allowed_sports,n=/* @__PURE__ */new Map;for(const o of e){const r=Ft(o,e);"Other"!==r&&(t?.length&&!t.includes(r)||n.set(r,(n.get(r)??0)+1))}return Array.from(n.entries()).sort((e,t)=>t[1]-e[1]).map(([e,t])=>({key:e,count:t}))},[lt,et,A]),Bt=i(()=>Ct.map(e=>e.key),[Ct]),Mt=i(()=>lt?Nt:et,[lt,Nt,et]),St=i(()=>It(lt?Nt:et,{category:_e}),[lt,Nt,et,_e]),Lt=i(()=>{const e=new Set(Bt);return Ye.filter(t=>e.has(t.key))},[Ye,Bt]),Dt=i(()=>It(Nt,{category:_e,sport:we}),[Nt,_e,we]),Ot=i(()=>{if(!lt||!Mn(lt))return[];const{min:e}=Tt(lt,ae),t=ae??e;return zn(Dt).filter(e=>e.propositionCount>=t)},[lt,ae,Dt]),Et=i(()=>Mn(lt)?On(Dt,ve):Dt,[lt,Dt,ve]),Gt=function(e,t){const[n,o]=c([]),r=s(/* @__PURE__ */new Set),a=i(()=>{const e=/* @__PURE__ */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]),d=i(()=>e?function(e){const t=/* @__PURE__ */new Set;for(const n of e)if(st(n))for(const e of ct(n))t.add(e);return[...t]}(t).filter(e=>!a.has(e)):[],[e,t,a]);return l(()=>{if(!e||0===d.length)return;const t=d.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,d]),a}(Z?null:q,Et),Wt=Object.keys(at).map(Number),$t=Wt.length,qt=i(()=>Dt.filter(e=>Wt.includes(e.id)),[Dt,Wt]);l(()=>{w||fe||1===Je.length&&xe(Je[0])},[w,fe,Je]),l(()=>{if(!lt)return;const e=Nt,t=new Set(e.map(At));let n=fe;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==fe&&xe(n));const o=n?e.filter(e=>At(e)===n):e,r=new Set(function(e){const t=/* @__PURE__ */new Set;for(const n of e){const o=Ft(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),l=lt.allowed_sports;ke(e=>e&&r.has(e)&&(!l?.length||l.includes(e))?e:1===l?.length&&r.has(l[0])?l[0]:1===r.size?Array.from(r)[0]:(()=>{const e=/* @__PURE__ */new Map;for(const r of o){const t=Ft(r,o);"Other"!==t&&(l?.length&&!l.includes(t)||e.set(t,(e.get(t)??0)+1))}let t=null,n=0;for(const[o,r]of e)r>n&&(t=o,n=r);return t})())},[lt?.id,Nt,fe]),l(()=>{Ie()},[lt?.id,rt,Ie]),l(()=>{lt&&_e&&(Ut(lt,_e)||ut())},[lt,_e,ut]),l(()=>{lt&&(Kt(lt,tt,{category:_e,sport:we,sportBaseKey:A})||ut())},[lt,_e,we,A,tt,ut]),l(()=>{if(lt){const e=pe.current,t=he.current!==lt.id;if(he.current=lt.id,null!=e?.stake&&e.stake>0?_(e.stake):t&&_(Math.max(20,lt.min_bet??0)),e){const{count:t}=e;return pe.current=null,ie(t),void X(t)}if(lt.allowed_propositions&&lt.allowed_propositions.length>0){const e=ae;null!=e&&lt.allowed_propositions.includes(e)?X(e):(ie(void 0),X(0))}else ie(void 0),X(lt.num_propositions||lt.max_propositions||0)}},[lt]);const Xt=(e,t,n)=>{const o=(Ve[e]?.top_payouts??[]).find(e=>e.proposition_count===t),r=o&&o.bet_amount&&o.bet_amount>0?o.bet_amount:20,l=o&&r>0?o.net_payout/r*n:0;return l>0?l:Ar(($e??[]).find(t=>t.id===e)??(lt?.id===e?lt:null),t,n)};l(()=>{if("sport"!==rt&&"confirm"!==rt||!lt||Z)return;const e=Mn(lt)&&ve?Et.length:Number.MAX_SAFE_INTEGER;let t;if(lt.allowed_propositions&&lt.allowed_propositions.length>0){const n=lt.allowed_propositions?[...lt.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void le({});const o=ae??n[0],r=n.filter(e=>e>o);if(0===r.length)return void le({});t=[o,...r]}else{const{min:n,max:o}=Tt(lt),r=Math.min(o,e);if(n<=0||r<=n)return void le({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=Xt(lt.id,o,20);le(n)},[rt,lt,ae,ve,Et.length,Z,Ve]),l(()=>{if("confirm"!==rt||!lt)return;const e=Wt.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=Xt(lt.id,r,J);oe(n),e!==Q.current?(Q.current=e,X(e)):(V>e||V<=0&&e>0)&&X(e);const o=J>0?J:Math.max(lt.min_bet??20,.01);return(async()=>{try{const n=await Ue(lt.id,{actual:V,predicted:V,total:e,bet_amount:o,rule_id:se});if(t)return;if(te(n.winning_counts),J>0&&n.payouts){const e={};for(const[t,o]of Object.entries(n.payouts)){const n=Number(t);e[n]=o>0?o:Xt(lt.id,n,J)}oe(e)}}catch{t||te([])}})(),()=>{t=!0}},[rt,lt,Wt.length,V,J,Ue,Ve,se]);const Qt=i(()=>{return t=se,(e=lt)&&null!=t?e.permitted_rules?.find(e=>e.id===t)??null:null;var e,t},[lt,se]),Jt=!Mn(lt)||En(qt,ve),_t=lt?Tt(lt,void 0,Qt):null,en=!(!lt||!Jt)&&(lt.allowed_propositions&&lt.allowed_propositions.length>0?null!=ae&&$t===ae&&Pt($t,_t?.min,_t?.max):Pt($t,_t?.min,_t?.max)),tn=lt?.min_bet??0,nn=Math.max(tn,.01),on=null==de||J<=de,rn=!Ge&&J>=nn&&en&&on,ln=e=>{ie(e),X(e);for(const t of Object.keys(at))gt(Number(t),at[Number(t)])},an=e=>{ie(e),X(e)},sn=e=>{Ne(Mn(e)?F??null:null),dt(e)},cn=e=>{if(e!==ve){for(const e of Object.keys(at)){const t=Number(e);gt(t,at[t])}Ne(e)}},dn=(e,t,n)=>{pe.current={count:t,stake:n},dt(e),qe(e.id);const o=e.allowed_sports??[];let r=null;we&&o.some(e=>Rt(we,e,A))?r=we:1===o.length&&(r=o[0]),ke(r);for(const s of Object.keys(at)){const e=Number(s);gt(e,at[e])}let l=It(Vt(Qe??[],e,A),{category:_e,sport:r,sportBaseKey:A});const a=Math.max(0,Math.min(t,l.length)),i=[...l].sort(()=>Math.random()-.5).slice(0,a);for(const s of i)gt(s.id,Math.random()<.5?"yes":"no");pt()},un=s(!1),mn=async()=>{if(lt&&en&&!un.current){if(Z){const e={id:Math.floor(1e4*Math.random()),game_id:lt.id,user_id:d,proposition_ids:Wt,selections:at,pending:!0,expected_correct:V,bet_amount:J};return D?.(e),ht(e),void me()}un.current=!0;try{O&&await O(J);const e=await Re({game_id:lt.id,user_id:d,proposition_ids:Wt,selections:at,stake:J,rule_id:Qt?.id??null});D?.(e),ht(e),me()}catch(e){}finally{un.current=!1}}},pn=o(e=>W?.[e]??Lt.find(t=>t.key===e)?.label??jt(e,void 0,A),[W,Lt,A]),hn=o(e=>Yt(e,I),[I]),fn=i(()=>({theme:U,bodyFont:$,headingFont:K,games:ot,propositions:Et,compositeComponentById:Gt,propositionsForCategoryPicker:Mt,sportsForSelectedGame:Bt,sportOptions:Ct,propositionsForSportPicker:St,sportSummaries:Lt,loading:kt,error:vt,step:rt,selectedGame:lt,selections:at,placedEntry:it,selectedPropositionIds:Wt,selectedPropositions:qt,selectionValid:en,selectedRuleId:se,setSelectedRuleId:ce,selectedRule:Qt,answeredCount:$t,betAmount:J,setBetAmount:_,expectedCorrect:V,setExpectedCorrect:X,selectedPropositionCount:ae,handlePropositionCountChange:ln,upgradePropositionCount:an,winningCounts:ee,payouts:ne,overloadPayouts:re,submitting:Ge,submitError:We,canSubmit:rn,gamePrice:tn,userBalance:de,hasSufficientBalance:on,refreshUserBalance:me,handleSubmit:mn,selectGame:sn,goToSportSelection:()=>mt(),goToConfirmation:pt,goBack:ft,reset:xt,clearSelectedGame:ut,toggleSelection:gt,quickPickGame:dn,selectedCategory:fe,setSelectedCategory:xe,selectedSport:we,setSelectedSport:ke,selectedEventId:ve,sameGameMultiEvents:Ot,selectSameGameMultiEvent:cn,apiUrl:t,apiKey:n,fetchImpl:r,getAuthHeaders:a,userId:d,disableQuickPick:M,renderTeamLogo:S,renderPropositionSilk:z,selectionVariant:L,disableEventSwipe:P,enableSportFavourites:T,filterSport:N,initialSport:C,initialEventId:F,sportBaseKey:A,gameCategory:w,eventFilterActive:bt,eventFilterLabel:wt,clearEventFilter:yt,screenSize:R,displaySportName:pn,displayCategoryName:hn,maxPayouts:Ve??{},howToPlayMarkdown:Ke,onEntryPlaced:D,onCancel:E,onShare:j,onRecharge:Y,demoEntries:y,demoGames:x,demoPropositions:g}),[U,$,K,ot,Et,Gt,Mt,St,Bt,Ct,Lt,kt,vt,rt,lt,at,it,Wt,qt,en,$t,J,V,ae,se,Qt,ee,ne,re,Ge,We,rn,tn,t,n,d,de,r,a,M,S,z,L,P,T,N,C,F,A,w,R,bt,wt,yt,fe,we,ve,Ot,Ve,Ke,D,E,j,Y,H,y,x,g,pn,hn]);/* @__PURE__ */
98
+ return u(Mr.Provider,{value:fn,children:p})}function Pr({onPress:t,onDoubleClick:n,label:o="QUICKPICK",size:l="md",yesColor:a,noColor:i,theme:s}){const c=r(Mr),d=s??c?.theme??te,p=E(d),h=d.colors,f=a??I(d),x=i??U(d),g="sm"===l,y=g?p.space.xs:p.space.sm,b=g?6:8,w=g?p.fontSize.sm:p.fontSize.md,k=g?8.5:10,[v,N]=e.useState(!1),[C,F]=e.useState(!1);/* @__PURE__ */
99
+ return m("button",{type:"button",onClick:t,onDoubleClick:n,onMouseDown:()=>N(!0),onMouseUp:()=>N(!1),onMouseLeave:()=>N(!1),onFocus:e=>{e.target.matches(":focus-visible")&&F(!0)},onBlur:()=>F(!1),style:{appearance:"none",display:"inline-flex",flexDirection:"column",width:"100%",minWidth:92,padding:0,margin:0,border:`1px solid ${L(h.border,.6)}`,background:"transparent",borderRadius:p.radius.sm,overflow:"hidden",cursor:"pointer",fontFamily:"inherit",transform:v?"scale(0.985)":"scale(1)",transition:`transform ${p.motion.durationFast}ms ${p.motion.easing}, box-shadow ${p.motion.durationFast}ms ${p.motion.easing}`,boxShadow:C?H(d):"none",outline:"none",minHeight:p.touchTarget.min},children:[/* @__PURE__ */m("span",{style:{position:"relative",display:"flex",flex:1},children:[
100
+ /* @__PURE__ */u("span",{"aria-hidden":!0,style:{position:"absolute",inset:0,background:f,clipPath:"polygon(0 0, 53% 0, 47% 100%, 0 100%)"}}),
100
101
  /* @__PURE__ */u("span",{"aria-hidden":!0,style:{position:"absolute",inset:0,background:x,clipPath:"polygon(53% 0, 100% 0, 100% 100%, 47% 100%)"}}),
101
102
  /* @__PURE__ */u("span",{style:{position:"relative",flex:1,textAlign:"center",padding:`${b}px ${y}px`,color:"#ffffff",fontSize:w,fontWeight:600,letterSpacing:.2,whiteSpace:"nowrap"},children:"Yes"}),
102
103
  /* @__PURE__ */u("span",{style:{position:"relative",flex:1,textAlign:"center",padding:`${b}px ${y}px`,color:"#ffffff",fontSize:w,fontWeight:600,letterSpacing:.2,whiteSpace:"nowrap"},children:"No"}),
103
- /* @__PURE__ */u("svg",{"aria-hidden":"true",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none"},preserveAspectRatio:"none",children:/* @__PURE__ */u("line",{x1:"53%",y1:"0",x2:"47%",y2:"100%",stroke:"rgba(255,255,255,0.85)",strokeWidth:"1.5"})})]}),/* @__PURE__ */u("span",{style:{background:f.buttonSecondary,color:f.buttonSecondaryText,fontSize:k,letterSpacing:"0.14em",padding:"3px 0 4px",textAlign:"center",fontWeight:700,fontFamily:d.fonts?.mono??"inherit"},children:o})]})}function Oo(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 To({matchup:e,renderTeamLogo:t,altText:n,mutedColor:o,size:r="sm"}){const[l,a=""]=e.split(" vs "),i="md"===r?"text-sm sm:text-base":"text-sm";if(!(a.length>0))/* @__PURE__ */return u("span",{className:`font-semibold ${i} leading-snug break-words`,style:{color:n},children:e});const s=(e,n)=>/* @__PURE__ */m("span",{className:`inline-flex items-center gap-1 leading-snug min-w-0 max-w-full ${n}`,children:[t?.(e),/* @__PURE__ */u("span",{className:"break-words min-w-0",children:e})]});/* @__PURE__ */
104
+ /* @__PURE__ */u("svg",{"aria-hidden":"true",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none"},preserveAspectRatio:"none",children:/* @__PURE__ */u("line",{x1:"53%",y1:"0",x2:"47%",y2:"100%",stroke:"rgba(255,255,255,0.85)",strokeWidth:"1.5"})})]}),/* @__PURE__ */u("span",{style:{background:h.buttonSecondary,color:h.buttonSecondaryText,fontSize:k,letterSpacing:"0.14em",padding:"3px 0 4px",textAlign:"center",fontWeight:700,fontFamily:d.fonts?.mono??"inherit"},children:o})]})}var Tr=3;function Dr(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 Or(e,t,n){const[r,a]=c([]),[d,u]=c([]),[m,p]=c([]),[h,f]=c([]),[x,g]=c(null),y=i(()=>{const t=/* @__PURE__ */new Map;for(const n of e)t.set(n.id,n);return t},[e]),b=i(()=>e.filter(e=>null!=t[e.id]),[e,t]),w=i(()=>e.map(e=>e.id).join(","),[e]),k=s(null);l(()=>{if(k.current===w)return;k.current=w;const n=e.filter(e=>!(e.id in t)),o=e.filter(e=>null!=t[e.id]);a(n.map(e=>e.id)),u(Dr(n,o).slice(0,3).map(e=>e.id)),p([]),f([]),g(null)},[w,e,t]);const v=i(()=>{const e=new Set(m);return[...Dr(r.map(e=>y.get(e)).filter(e=>Boolean(e)).filter(t=>!e.has(t.id)),b).map(e=>e.id),...m.filter(e=>r.includes(e))]},[r,y,b,m]);l(()=>{u(e=>{const t=new Set(r),n=e.filter(e=>t.has(e));if(0===h.length&&!x){const t=v.slice(0,3);return t.length===n.length&&t.every((e,t)=>e===n[t])?n.length===e.length?e:n:t}if(n.length>=Math.min(3,r.length))return n.length===e.length?e:n;const o=[...n];for(const r of v){if(o.length>=3)break;o.includes(r)||o.push(r)}return o})},[r,v,h,x]);const N=i(()=>d.map(e=>y.get(e)).filter(e=>Boolean(e)),[d,y]),C=o((e,t)=>{g(null),t&&n(e,t),f(n=>[...n,{id:e,answer:t}]),u(t=>t.filter(t=>t!==e)),p(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]}),a(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]})},[n]),F=o(()=>{const e=h[h.length-1];e&&(e.answer&&n(e.id,e.answer),g({id:e.id,from:"yes"===e.answer?"right":"no"===e.answer?"left":"up"}),f(e=>e.slice(0,-1)),p(t=>t.filter(t=>t!==e.id)),a(t=>[e.id,...t.filter(t=>t!==e.id)]),u(t=>[e.id,...t.filter(t=>t!==e.id)].slice(0,3)))},[h,n]);return{visible:N,canSkip:r.length>1,canUndo:h.length>0,restored:x,resolve:C,undo:F}}var Er={stiffness:420,damping:34},jr={stiffness:280,damping:28},Yr="#00C853",Hr="#E53935";function Rr(e){return"up"===e?{x:0,y:-720}:{x:"right"===e?640:-640,y:70}}function Gr(e){return e<0?0:e>1?1:e}function Wr(e,t,n){return n&&-t>Math.abs(e)}function Ir({prop:e,theme:t,depth:n=0,enterFrom:a,canSkip:i=!1,onResolve:c,registerApi:p,onDragStateChange:h,children:f}){const x=r(Mr),g=t??x?.theme??te,y=be(g),b=g.colors.productYes??Yr,w=g.colors.productNo??Hr,k=s(null),v=s(null),N=s(null),C=s(null),F=0===n,B=s(!1),A=s({x:0,y:0}),M=s({x:0,y:0}),S=s(null),z=s(0),L=s(null),P=s(null),T=s(i);T.current=i;const D=s(h);D.current=h;const O=o(()=>{const e=k.current;if(!e)return;const{x:t,y:n}=A.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=Wr(t,n,T.current);r(v.current,l?0:Gr((t-24)/108)),r(N.current,l?0:Gr((-t-24)/108)),r(C.current,l?Gr((-n-30)/90):0)},[]),E=o(()=>{for(const e of[k.current,v.current,N.current,C.current])e&&(e.style.transition="none")},[]),j=o(()=>{null!=L.current&&(cancelAnimationFrame(L.current),L.current=null)},[]),Y=o(e=>{j(),E();let t=null;const n=o=>{const r=Math.min(null==t?1/60:(o-t)/1e3,1/30);t=o;const l=A.current,a=M.current;if(a.x+=(-e.stiffness*l.x-e.damping*a.x)*r,a.y+=(-e.stiffness*l.y-e.damping*a.y)*r,l.x+=a.x*r,l.y+=a.y*r,Math.abs(l.x)<.5&&Math.abs(l.y)<.5&&Math.abs(a.x)<2&&Math.abs(a.y)<2)return l.x=0,l.y=0,a.x=0,a.y=0,O(),void(L.current=null);O(),L.current=requestAnimationFrame(n)};L.current=requestAnimationFrame(n)},[E,O,j]),H=o(t=>{if(B.current)return;if("up"===t&&!T.current)return;B.current=!0,j();const n="right"===t?"yes":"left"===t?"no":null,o=Rr(t),r=k.current;r&&(r.style.transition="transform 260ms cubic-bezier(0.32, 0, 0.67, 0)");for(const e of[v.current,N.current,C.current])e&&(e.style.transition="opacity 260ms linear");A.current={...o},O(),P.current=setTimeout(()=>c(e.id,n),260)},[c,O,e.id,j]);l(()=>()=>{P.current&&clearTimeout(P.current),null!=L.current&&cancelAnimationFrame(L.current),S.current&&D.current?.(!1)},[]),l(()=>{if(!a)return j(),A.current={x:0,y:0},M.current={x:0,y:0},E(),void O();const e=Rr(a);A.current={x:e.x,y:e.y},M.current={x:0,y:0},E(),O(),Y(jr)},[a,E,O,Y,j]),l(()=>{if(F&&p)return p({fly:H}),()=>p(null)},[H,F,p]);const R="pointer-events-none absolute top-5 rounded-xl border-4 px-3 py-1 text-2xl font-extrabold uppercase tracking-widest";/* @__PURE__ */
105
+ return u("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:F?"auto":"none"},"aria-hidden":!F,children:/* @__PURE__ */m("div",{ref:k,className:"relative w-full"+(F?" cursor-grab active:cursor-grabbing":""),style:{touchAction:"pan-y",willChange:"transform",userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none"},onPointerDown:e=>{if(F&&!B.current&&!S.current){j(),E(),S.current={pointerId:e.pointerId,originX:e.clientX,originY:e.clientY,baseX:A.current.x,baseY:A.current.y},M.current={x:0,y:0},z.current=e.timeStamp;try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}D.current?.(!0)}},onPointerMove:e=>{const t=S.current;if(!t||t.pointerId!==e.pointerId||B.current)return;const n=t.baseX+(e.clientX-t.originX),o=Math.min(t.baseY+(e.clientY-t.originY),0),r=e.timeStamp-z.current;if(r>0){const t=1-Math.exp(-r/40);M.current.x+=((n-A.current.x)/r*1e3-M.current.x)*t,M.current.y+=((o-A.current.y)/r*1e3-M.current.y)*t,z.current=e.timeStamp}A.current.x=n,A.current.y=o,O()},onPointerUp:e=>{const t=S.current;if(!t||t.pointerId!==e.pointerId)return;S.current=null,D.current?.(!1);try{e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}catch{}if(B.current)return;e.timeStamp-z.current>90&&(M.current={x:0,y:0});const n=A.current,o=M.current;if(Wr(n.x,n.y,T.current)){if(n.y<-110||o.y<-620)return H("up")}else{if(n.x>110||o.x>620)return H("right");if(n.x<-110||o.x<-620)return H("left")}Y(Er)},onPointerCancel:e=>{const t=S.current;t&&t.pointerId===e.pointerId&&(S.current=null,M.current={x:0,y:0},D.current?.(!1),B.current||Y(Er))},onDragStart:e=>e.preventDefault(),children:[f,F&&/* @__PURE__ */m(d,{children:[
106
+ /* @__PURE__ */u("div",{ref:v,className:`${R} left-5`,style:{opacity:0,transform:"rotate(-12deg)",color:b,borderColor:b,fontFamily:y},children:"Yes"}),
107
+ /* @__PURE__ */u("div",{ref:N,className:`${R} right-5`,style:{opacity:0,transform:"rotate(12deg)",color:w,borderColor:w,fontFamily:y},children:"No"}),i&&/* @__PURE__ */u("div",{ref:C,className:"pointer-events-none absolute inset-x-0 bottom-6 flex justify-center",style:{opacity:0},children:/* @__PURE__ */u("span",{className:"rounded-full px-3 py-1 text-xs font-semibold uppercase tracking-widest",style:{color:g.colors.primary,border:`1px solid ${g.colors.border}`,background:g.colors.background},children:"Skip"})})]})]})})}function Ur({prop:e}){const{theme:t,renderTeamLogo:n,renderPropositionSilk:o,displaySportName:r,gameCategory:l,compositeComponentById:a}=zr(),i=t.colors,s=be(t),c=ut(e,a),d=lt(e),p=("racing"===l?[e.away_team?.trim()||e.home_team?.trim()]:[e.home_team?.trim(),e.away_team?.trim()]).filter(Boolean),h=(t,r)=>t&&o?.(t,r)||rl(t??e,n,p.join(" vs "))||null;/* @__PURE__ */
108
+ return m("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-3xl border",style:{backgroundColor:V(t),borderColor:i.border,boxShadow:"0 18px 40px -24px rgba(10,20,22,0.45)"},children:[
109
+ /* @__PURE__ */u("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 px-5 py-3",style:{backgroundColor:X(t)},children:p.length>0?p.map((e,o)=>/* @__PURE__ */m("span",{className:"inline-flex items-center gap-1.5 text-sm font-semibold",style:{color:Z(t)},children:[o>0&&/* @__PURE__ */u("span",{className:"mr-1 text-xs font-normal",style:{color:q(t)},children:"vs"}),n?.(e),e]},`${e}-${o}`)):/* @__PURE__ */u("span",{className:"text-sm font-semibold",style:{color:Z(t)},children:e.league??r(e.sport??"")})}),
110
+ /* @__PURE__ */m("div",{className:"flex flex-1 flex-col justify-center gap-3 px-5 py-3 sm:gap-4 sm:py-6",children:[/* @__PURE__ */m("div",{className:"flex min-w-0 items-start gap-2",children:[!c&&h(e,32),c?/* @__PURE__ */m("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:[/* @__PURE__ */m("span",{className:"text-xs font-bold uppercase tracking-widest",style:{color:G(t)},children:["All ","OR"===c.operator?"or any of these":"of these"]}),/* @__PURE__ */u("ul",{className:"flex flex-col gap-2",children:c.legs.map((e,n)=>/* @__PURE__ */m("li",{className:"flex items-start gap-2",children:[
111
+ /* @__PURE__ */u("span",{"aria-hidden":!0,className:"text-base font-bold leading-snug",style:{color:i.primary},children:"OR"===c.operator?"/":"+"}),h(e.prop,24),
112
+ /* @__PURE__ */m("span",{className:"flex min-w-0 flex-col",children:[e.eventLabel&&/* @__PURE__ */u("span",{className:"text-[10px] font-semibold uppercase tracking-wide leading-tight",style:{color:i.textMuted},children:e.eventLabel}),/* @__PURE__ */u("span",{className:"text-base font-bold leading-snug",style:{color:W(t),fontFamily:s},children:e.text})]})]},n))})]}):/* @__PURE__ */u("p",{className:"min-w-0 flex-1 text-xl font-extrabold leading-snug tracking-tight sm:text-2xl",style:{color:W(t),fontFamily:s},children:e.description??e.proposition})]}),e.outcome_description&&e.outcome_description!==e.description&&/* @__PURE__ */u("p",{className:"text-sm leading-snug",style:{color:i.textMuted},children:e.outcome_description})]}),
113
+ /* @__PURE__ */m("div",{className:"flex flex-wrap items-center gap-2 border-t px-5 py-3 text-[11px]",style:{borderColor:i.borderSubtle??i.border,color:i.textMuted},children:[e.sport&&/* @__PURE__ */u("span",{className:"rounded-full px-2 py-0.5 font-semibold uppercase tracking-wide",style:{backgroundColor:i.infoBg,color:i.infoText},children:r(e.sport)}),d&&/* @__PURE__ */u("span",{className:"uppercase tracking-wide",children:d.replace(/[_-]+/g," ")}),e.commence_time&&/* @__PURE__ */u("span",{className:"ml-auto",children:Nt(e.commence_time)})]})]})}function $r({onBack:e,onNext:t,viewSwitch:n,onDragStateChange:r,className:a=""}){const{theme:i,propositions:c,selections:p,toggleSelection:h,selectedGame:f,selectedPropositionCount:x,answeredCount:g,selectionValid:y,goToConfirmation:b,goToSportSelection:w,loading:k,error:v,selectedRule:N}=zr(),C=i.colors,F=ye(i),B=be(i),A=C.productYes??Yr,M=C.productNo??Hr,S=s(null);l(()=>{f||(w(),e?.())},[w,e,f]);const{visible:z,canSkip:L,canUndo:P,restored:T,resolve:D,undo:O}=Or(c,p,h),E=f?Tt(f,x??void 0,N):{min:0,max:0},j=E.max,Y=j>0&&g>=j,H=(()=>{if(!f)return null;if(E.min>0&&E.min===E.max)return E.min;const e=kr(f);return null!=x&&x>0&&("game_set"===e||"pick_your_dividend"===e||vr(f))?x:j>0?j:null})(),G=s(g);l(()=>{const e=G.current;if(G.current=g,null==H||e>=H||g!==H)return;const n=setTimeout(()=>{b(),t?.()},420);return()=>clearTimeout(n)},[g,b,t,H]);const W=!Y&&z.length>0;l(()=>{if(!W)return;const e=e=>{const t=e.target;if(!t||!/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName)){switch(e.key){case"ArrowRight":S.current?.fly("right");break;case"ArrowLeft":S.current?.fly("left");break;case"ArrowUp":S.current?.fly("up");break;case"ArrowDown":case"Backspace":O();break;default:return}e.preventDefault()}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[W,O]);const I=o(e=>{S.current=e},[]);if(!f)return null;const U=(e,t,n,o)=>/* @__PURE__ */u("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:C.border,color:C.textMuted,background:C.background},children:/* @__PURE__ */u("span",{"aria-hidden":!0,children:t})});/* @__PURE__ */
114
+ return m("div",{className:`flex w-full flex-col ${a}`,style:{fontFamily:F},children:[n&&/* @__PURE__ */u("div",{className:"flex shrink-0 justify-end pb-3",children:n}),k?/* @__PURE__ */u("p",{className:"py-10 text-center text-sm",style:{color:C.textMuted},children:"Loading…"}):v?/* @__PURE__ */u("div",{className:"rounded-xl p-4 text-center",style:{background:C.errorBg,border:`1px solid ${C.error}`},children:/* @__PURE__ */u("p",{className:"text-sm",style:{color:C.errorText??C.error},children:v})}):/* @__PURE__ */m(d,{children:[/* @__PURE__ */u("div",{className:"flex min-h-0 flex-1 flex-col justify-center pb-3 pt-2 sm:pb-8 sm:pt-3",children:W?/* @__PURE__ */u("div",{className:"relative mx-auto w-full",style:{height:"clamp(14rem, 44dvh, 26rem)",maxWidth:384},children:z.map((e,t)=>/* @__PURE__ */u(Ir,{prop:e,depth:t,canSkip:L,enterFrom:T?.id===e.id?T.from:null,onResolve:D,registerApi:0===t?I:void 0,onDragStateChange:0===t?r:void 0,children:/* @__PURE__ */u(Ur,{prop:e})},e.id))}):/* @__PURE__ */m("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:V(i),border:`1px dashed ${C.border}`},children:[
115
+ /* @__PURE__ */u("p",{className:"text-base font-extrabold",style:{color:R(i),fontFamily:B},children:Y?"Card full":"That’s the last one"}),
116
+ /* @__PURE__ */u("p",{className:"text-sm",style:{color:C.textMuted},children:Y?`You've picked all ${j} legs for ${f.game_name}. Undo a swipe to change one, or lock it in.`:y?"You've been through every proposition. Lock your card in, or undo to revisit a pick.":`No propositions left to answer${E.min>0?` — this game needs at least ${E.min}`:""}. Undo a swipe or head back to widen the pool.`}),P&&/* @__PURE__ */u("button",{type:"button",onClick:O,className:"rounded-full border px-5 py-2 text-sm font-semibold",style:{borderColor:C.border,color:C.text},children:"Undo last swipe"})]})}),/* @__PURE__ */m("div",{className:"shrink-0 rounded-2xl border px-3 pb-2.5 pt-3",style:{backgroundColor:V(i),borderColor:C.border},children:[/* @__PURE__ */m("div",{className:"mx-auto flex max-w-sm items-center justify-center gap-3",children:[U("Undo last swipe","↺",O,!P),
117
+ /* @__PURE__ */u("button",{type:"button",onClick:()=>S.current?.fly("left"),disabled:!W,className:"flex h-14 flex-1 items-center justify-center rounded-full text-lg font-extrabold uppercase tracking-wider text-white transition-transform active:scale-95 disabled:opacity-35",style:{backgroundColor:M,fontFamily:B},children:"No"}),
118
+ /* @__PURE__ */u("button",{type:"button",onClick:()=>S.current?.fly("right"),disabled:!W,className:"flex h-14 flex-1 items-center justify-center rounded-full text-lg font-extrabold uppercase tracking-wider text-white transition-transform active:scale-95 disabled:opacity-35",style:{backgroundColor:A,fontFamily:B},children:"Yes"}),U("Skip this proposition","↑",()=>S.current?.fly("up"),!W||!L)]}),/* @__PURE__ */u("p",{className:"mt-2 text-center text-[11px]",style:{color:C.textMuted},children:L?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})]})]})}function Kr({propositions:e,title:t,onClose:n}){const{theme:r,selections:a,toggleSelection:i}=zr(),c=r.colors,{visible:d,canSkip:p,canUndo:h,restored:f,resolve:x,undo:g}=Or(e,a,i),y=s(null),b=s(null),w=o(e=>{b.current=e},[]),k=o(()=>b.current?.fly("up"),[]),v=q(r),N=be(r),C=d.length>0,F=V(r),B=o(()=>y.current?.close(),[]);l(()=>{y.current?.showModal()},[]),l(()=>{const e=e=>{const t=e.target;if(!t||!/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName)){switch(e.key){case"ArrowRight":b.current?.fly("right");break;case"ArrowLeft":b.current?.fly("left");break;case"ArrowUp":b.current?.fly("up");break;case"ArrowDown":case"Backspace":g();break;default:return}e.preventDefault()}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[g]);const A="flex h-11 w-11 items-center justify-center rounded-full border text-lg transition-transform active:scale-95 disabled:opacity-35",M={borderColor:c.border,color:c.textMuted,background:c.background,cursor:"pointer"},S=(e,t,n)=>/* @__PURE__ */u("button",{type:"button",onClick:()=>b.current?.fly(e),disabled:!C,className:"flex h-14 flex-1 items-center justify-center rounded-full text-lg font-extrabold uppercase tracking-wider text-white transition-transform active:scale-95 disabled:opacity-35",style:{backgroundColor:n,fontFamily:N,cursor:"pointer"},children:t});/* @__PURE__ */
119
+ return m("dialog",{ref:y,onClose:n,onClick:e=>{e.target===y.current&&B()},className:"m-auto w-[min(100vw-2rem,420px)] overflow-hidden rounded-3xl border p-4 backdrop:bg-black/60",style:{backgroundColor:F,borderColor:c.border,color:Z(r)},children:[
120
+ /* @__PURE__ */m("div",{className:"flex items-center gap-2 mb-3",children:[/* @__PURE__ */u("span",{className:"flex-1 min-w-0 truncate text-sm font-bold",style:{fontFamily:N},children:t}),/* @__PURE__ */u("button",{type:"button",onClick:B,"aria-label":"Close",className:"h-8 w-8 shrink-0 rounded-full border text-base leading-none",style:{borderColor:c.border,color:v,cursor:"pointer"},children:"×"})]}),
121
+ /* @__PURE__ */u("div",{className:"flex flex-col justify-center pb-3 pt-1",children:C?/* @__PURE__ */u("div",{className:"relative mx-auto w-full",style:{height:"clamp(14rem, 44dvh, 26rem)"},children:d.map((e,t)=>/* @__PURE__ */u(Ir,{prop:e,depth:t,canSkip:p,enterFrom:f?.id===e.id?f.from:null,onResolve:x,registerApi:0===t?w:void 0,children:/* @__PURE__ */u(Ur,{prop:e})},e.id))}):/* @__PURE__ */m("div",{className:"mx-auto flex w-full flex-col items-center gap-3 rounded-3xl px-6 py-10 text-center",style:{background:F,border:`1px dashed ${c.border}`},children:[/* @__PURE__ */u("p",{className:"text-base font-extrabold",style:{color:R(r),fontFamily:N},children:"That’s the last one"}),/* @__PURE__ */u("p",{className:"text-sm",style:{color:c.textMuted},children:"You’ve been through every proposition on this fixture. Close to go back to the card, or undo to revisit a pick."})]})}),
122
+ /* @__PURE__ */m("div",{className:"shrink-0 pt-6",children:[/* @__PURE__ */m("div",{className:"mx-auto flex items-center justify-center gap-3",children:[
123
+ /* @__PURE__ */u("button",{type:"button",onClick:g,disabled:!h,"aria-label":"Undo last swipe",className:A,style:M,children:/* @__PURE__ */u("span",{"aria-hidden":!0,children:"↺"})}),S("left","No",U(r)),S("right","Yes",I(r)),
124
+ /* @__PURE__ */u("button",{type:"button",onClick:k,disabled:!C||!p,"aria-label":"Skip this proposition",className:A,style:M,children:/* @__PURE__ */u("span",{"aria-hidden":!0,children:"↑"})})]}),/* @__PURE__ */u("p",{className:"mt-2 text-center text-[11px]",style:{color:c.textMuted},children:p?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})]})}var Zr=["split","split-inline","compact"];function qr(e){return new Intl.DateTimeFormat("en-AU",{weekday:"short",day:"numeric",month:"short"}).format(e).replace(",","")}function Vr(e){return new Intl.DateTimeFormat("en-AU",{hour:"numeric",minute:"2-digit",hour12:!0}).format(e).replace(/\s/g,"").toLowerCase()}function Xr(e){const t=(e??"").trim().split(/\s+/).filter(Boolean);return(t[t.length-1]??"").slice(0,3).toUpperCase()}function Qr(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}function Jr(e){const t=e?.trim();if(t&&"undefined"!==t&&"null"!==t)return t}function _r(e,t=!1){const n=Object.entries(e).map(([e,n])=>function(e,t,n){const[o,r]=n?[]:e.split(" vs ").map(Jr),l=t.map(Qr).filter(e=>null!==e),a=l.length>0?new Date(Math.min(...l.map(e=>e.getTime()))):null;return{key:e,title:n||!o?n?e:Jr(t[0]?.league??void 0)??"":[o,r].filter(Boolean).join(" vs "),home:o,away:r,racing:n,date:a,props:t}}(e,n,t)),o=n.filter(e=>null!==e.date).sort((e,t)=>e.date.getTime()-t.date.getTime()),r=n.filter(e=>null===e.date),l=/* @__PURE__ */new Map;for(const i of o){const e=i.date.toDateString(),t=l.get(e);t?t.events.push(i):l.set(e,{key:e,label:qr(i.date),events:[i]})}const a=[...l.values()];return r.length>0&&a.push({key:"undated",label:"",events:r}),a}var el={split:"text-[13px] font-bold leading-snug",compact:"text-[11px] font-bold leading-snug"};function tl({variant:t,groups:n,racing:o,selections:r,onToggleSelection:l,atMax:a,theme:i,renderTeamLogo:s,componentById:p,disableEventSwipe:h=!1}){const f=i.colors,x=V(i),g=X(i),y=f.borderSubtle??f.border,b=Z(i),w=q(i),k=W(i),v=G(i),N=R(i),C=be(i),[F,B]=c(null),[A,M]=c(/* @__PURE__ */new Set),[S,z]=c(/* @__PURE__ */new Set),L=e=>t=>e(e=>{const n=new Set(e);return n.delete(t)||n.add(t),n}),P=L(M),T=L(z),D=e.useMemo(()=>_r(n,o),[n,o]),O=e=>a&&!(e.id in r),E=(e,t)=>{O(e)||l(e.id,t)},j=(e,t)=>e?s?.(e,t)??null:null,Y=(e,t,n)=>/* @__PURE__ */u(Ge,{theme:i,size:t,stretch:n,disabled:O(e),value:r[e.id]??null,onYes:()=>E(e,"yes"),onNo:()=>E(e,"no")}),H=(e,t)=>/* @__PURE__ */m("span",{className:"min-w-0 flex-1 flex items-start gap-2",children:[o?rl(e,s,null):null,/* @__PURE__ */u(il,{prop:e,colors:f,componentById:p,textClass:el[t],textColor:k})]}),I=e=>{if(h)return null;const t=e.props.filter(e=>!O(e));return 0===t.length?null:/* @__PURE__ */m("button",{type:"button",onClick:()=>B(e),"aria-label":`Swipe ${t.length} proposition${1===t.length?"":"s"}`,className:"group flex h-7 shrink-0 items-center rounded-full border px-1.5 transition-transform active:scale-95",style:{borderColor:y,color:v,cursor:"pointer"},children:[/* @__PURE__ */u(nl,{}),/* @__PURE__ */u("span",{"aria-hidden":!0,className:"max-w-0 overflow-hidden whitespace-nowrap text-[10px] font-bold uppercase tracking-wider opacity-0 transition-all duration-150 group-hover:max-w-16 group-hover:pl-1 group-hover:opacity-100 group-focus-visible:max-w-16 group-focus-visible:pl-1 group-focus-visible:opacity-100",children:"Swipe"})]})},U=(e,t,n)=>/* @__PURE__ */u("button",{type:"button",onClick:()=>P(e.key),"aria-expanded":t,"aria-controls":n,"aria-label":`${t?"Hide":"Show"} ${e.props.length} proposition${1===e.props.length?"":"s"}`,className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full border transition-transform active:scale-95",style:{borderColor:y,color:v,cursor:"pointer"},children:/* @__PURE__ */u(ol,{rotated:!t})}),$=e=>{if(!e.home&&!e.away)/* @__PURE__ */return u("span",{className:"text-[11.5px] font-bold truncate",style:{color:b},children:e.title});const t=[e.home,e.away].filter(Boolean).join(" v "),n=S.has(e.key);/* @__PURE__ */
125
+ return u("button",{type:"button",onClick:()=>T(e.key),title:t,"aria-label":t,"aria-pressed":n,className:"min-w-0 text-[11.5px] font-bold leading-tight",style:{color:b,fontFamily:C,cursor:"pointer"},children:/* @__PURE__ */m(d,n?{children:[e.home,
126
+ /* @__PURE__ */u("span",{className:"text-[9px] font-semibold px-1",style:{color:w},children:"v"}),e.away]}:{children:[Xr(e.home),
127
+ /* @__PURE__ */u("span",{className:"text-[9px] font-semibold px-0.5",style:{color:w},children:"v"}),Xr(e.away)]})})},K=e=>"compact"===t?(e=>/* @__PURE__ */m("div",{className:"rounded-2xl border overflow-hidden divide-y mb-2",style:{borderColor:f.border,backgroundColor:x},children:[/* @__PURE__ */m("div",{className:"flex items-center gap-1.5 min-w-0 px-3 py-2",style:{borderColor:y,backgroundColor:g},children:[!e.racing&&j(e.home,18),$(e),!e.racing&&j(e.away,18),e.date&&/* @__PURE__ */u("span",{className:"text-[9px] font-medium whitespace-nowrap ml-0.5",style:{color:w},children:Vr(e.date)}),
128
+ /* @__PURE__ */u("span",{className:"ml-auto",children:I(e)})]}),e.props.map(e=>/* @__PURE__ */m("div",{className:"grid grid-cols-[1fr_auto] gap-2 items-center px-3 py-2.5",style:{borderColor:y,opacity:O(e)?.45:1},children:[/* @__PURE__ */u("div",{className:"min-w-0 flex",children:H(e,"compact")}),Y(e,"xs")]},e.id))]},e.key))(e):((e,t)=>{const n=!A.has(e.key),o=`variant-split-${e.key}`,r=`${e.props.length} proposition${1===e.props.length?"":"s"}`;/* @__PURE__ */
129
+ return m("div",n?{className:"grid grid-cols-[80px_1fr] items-stretch rounded-2xl border overflow-hidden mb-2",style:{borderColor:f.border,backgroundColor:x},children:[/* @__PURE__ */m("div",{className:"flex flex-col items-center justify-center gap-1.5 text-center min-w-0 border-r px-2 py-3",style:{borderColor:y,backgroundColor:g},children:[!e.racing&&/* @__PURE__ */m("span",{className:"flex items-center gap-0.5",children:[j(e.home,24),j(e.away,24)]}),$(e),e.date&&/* @__PURE__ */u("span",{className:"text-[9.5px] font-medium",style:{color:w},children:Vr(e.date)}),I(e)]}),/* @__PURE__ */m("div",{id:o,className:"flex flex-col min-w-0 divide-y",style:{borderColor:y},children:[/* @__PURE__ */m("div",{className:"flex items-center gap-2 px-3 py-1.5",children:[/* @__PURE__ */u("span",{className:"text-[10px] font-semibold",style:{color:w},children:r}),/* @__PURE__ */u("span",{className:"ml-auto",children:U(e,n,o)})]}),/* @__PURE__ */u("div",{className:"flex flex-col justify-center gap-3 px-3 py-2.5",children:e.props.map(e=>/* @__PURE__ */m("div",{className:t?"grid grid-cols-[1fr_auto] gap-2.5 items-center":"flex flex-col gap-2.5",style:{opacity:O(e)?.45:1},children:[/* @__PURE__ */u("span",{className:"min-w-0 flex",children:H(e,"split")}),t?Y(e,"xs"):Y(e,"sm",!0)]},e.id))})]})]}:{className:"flex items-center rounded-2xl border overflow-hidden mb-2",style:{borderColor:f.border,backgroundColor:x},children:[
130
+ /* @__PURE__ */m("div",{className:"flex items-center gap-1 self-stretch border-r px-2 py-1.5",style:{borderColor:y,backgroundColor:g},children:[!e.racing&&/* @__PURE__ */m(d,{children:[j(e.home,16),j(e.away,16)]}),$(e)]}),
131
+ /* @__PURE__ */u("span",{id:o,className:"px-3 text-[11px] font-semibold",style:{color:w},children:r}),
132
+ /* @__PURE__ */u("span",{className:"ml-auto pr-2",children:U(e,n,o)})]},e.key)})(e,"split-inline"===t);/* @__PURE__ */
133
+ return m("div",{className:"pb-4",children:[D.map(e=>{/* @__PURE__ */return m("div",{children:[e.label&&(t=e.label,/* @__PURE__ */m("div",{className:"flex items-center gap-2 mt-4 mb-2 first:mt-0",children:[/* @__PURE__ */u("span",{className:"text-[11px] font-bold tracking-wide",style:{color:N,fontFamily:C},children:t}),/* @__PURE__ */u("span",{className:"flex-1 h-px",style:{backgroundColor:y}})]})),e.events.map(K)]},e.key);var t}),F&&/* @__PURE__ */u(Kr,{propositions:F.props.filter(e=>!O(e)),title:F.title,onClose:()=>B(null)})]})}function nl(){/* @__PURE__ */
134
+ return m("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[/* @__PURE__ */u("rect",{x:"3",y:"5",width:"12",height:"16",rx:"2"}),/* @__PURE__ */u("path",{d:"M8.5 3h7a2 2 0 0 1 2 2v12"})]})}function ol({rotated:e}){/* @__PURE__ */
135
+ return u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,style:{transform:e?"rotate(-90deg)":void 0,transition:"transform 0.15s ease"},children:/* @__PURE__ */u("path",{d:"m6 9 6 6 6-6"})})}function rl(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 ll({matchup:e,renderTeamLogo:t,altText:n,mutedColor:o,size:r="sm"}){const[l,a=""]=e.split(" vs "),i="md"===r?"text-sm sm:text-base":"text-sm";if(!(a.length>0))/* @__PURE__ */return u("span",{className:`font-semibold ${i} leading-snug break-words`,style:{color:n},children:e});const s=(e,n)=>/* @__PURE__ */m("span",{className:`inline-flex items-center gap-1 leading-snug min-w-0 max-w-full ${n}`,children:[t?.(e),/* @__PURE__ */u("span",{className:"break-words min-w-0",children:e})]});/* @__PURE__ */
104
136
  return m("span",{className:`font-semibold ${i} 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:[s(l,"col-start-2 row-start-1"),
105
- /* @__PURE__ */u("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"}),s(a,"col-start-2 row-start-2")]})}function Eo({label:e,colors:t}){const n="OR"===e?"If either wins, you win.":"Both must win for Yes.",[r,a]=c(!1),[i,d]=c({top:0,left:0}),p=s(null),f=o(()=>{const e=p.current;if(!e)return;const t=e.getBoundingClientRect();d({top:t.bottom+4,left:t.left})},[]);return l(()=>{if(!r)return;f();const e=()=>f();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[r,f]),/* @__PURE__ */m("span",{className:"relative inline-flex flex-shrink-0",onMouseEnter:()=>{f(),a(!0)},onMouseLeave:()=>a(!1),children:[/* @__PURE__ */u("button",{ref:p,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:ce(t.primary,.14),border:`1px solid ${ce(t.primary,.45)}`},"aria-label":n,"aria-expanded":r,onClick:e=>{e.stopPropagation(),f(),a(e=>!e)},children:e}),r&&/* @__PURE__ */u("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:i.top,left:i.left,color:t.text,backgroundColor:t.backgroundAlt??"#fff",border:`1px solid ${t.border??ce(t.primary,.3)}`},children:n})]})}function jo({prop:t,colors:n,size:o="sm",componentById:r}){const l=lt(t,r),a=t.description??t.proposition??"",i="md"===o?"text-sm sm:text-base font-medium":"text-xs sm:text-sm",s=n.textMuted??n.textAltMuted??n.text;if(!l)/* @__PURE__ */return u("span",{className:i,style:{color:n.text},children:a});const{operator:c,legs:d}=l;return d.some(e=>e.eventLabel)?/* @__PURE__ */u("div",{className:"min-w-0 flex-1 flex flex-col gap-2",children:d.map((e,t)=>/* @__PURE__ */m("div",{className:"min-w-0",children:[t>0&&/* @__PURE__ */u("div",{className:"mb-1 flex items-center",children:/* @__PURE__ */u(Eo,{label:c,colors:n})}),e.eventLabel&&/* @__PURE__ */u("div",{className:"text-[10px] sm:text-xs font-semibold uppercase tracking-wide leading-tight break-words",style:{color:s},children:e.eventLabel}),
106
- /* @__PURE__ */u("span",{className:i,style:{color:n.text},children:e.text})]},t))}):/* @__PURE__ */u("div",{className:"min-w-0 flex-1",children:/* @__PURE__ */u("div",{className:"flex flex-wrap items-center gap-x-1.5 gap-y-1",children:d.map((t,o)=>/* @__PURE__ */m(e.Fragment,{children:[o>0&&/* @__PURE__ */u(Eo,{label:c,colors:n}),/* @__PURE__ */u("span",{className:i,style:{color:n.text},children:t.text})]},o))})})}function Yo({game:t,propositions:n,selections:o,onToggleSelection:a,onNext:p,onBack:f,loading:h,error:x,theme:g,colorScheme:y,hideActions:b=!1,initialSport:w,renderTeamLogo:k,disableQuickPick:v=!1,selectedPropositionCount:N,onPropositionCountChange:F,gameCategory:B,headerExtra:C}){const A=r(So),M=A?.sportBaseKey,S=function(e,t){const[n,o]=c([]),r=s(/* @__PURE__ */new Set),a=i(()=>{const e=/* @__PURE__ */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]),d=i(()=>e?function(e){const t=/* @__PURE__ */new Set;for(const n of e)if(nt(n))for(const e of ot(n))t.add(e);return[...t]}(t).filter(e=>!a.has(e)):[],[e,t,a]);return l(()=>{if(!e||0===d.length)return;const t=d.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,d]),a}(i(()=>A?.apiUrl?new fo({apiUrl:A.apiUrl,apiKey:A.apiKey,fetchImpl:A.fetchImpl,getAuthHeaders:A.getAuthHeaders}):null,[A?.apiUrl,A?.apiKey,A?.fetchImpl,A?.getAuthHeaders]),n),z=se(g,y),P=z.colors,D=R(z),O=W(z),T=P.matchupHeader??(t.color?ce(t.color,.14):G(z)),E=P.textAlt??P.text,j=he(z),Y=ye(z);be(z),L(z);const H=!!(t.allowed_propositions&&t.allowed_propositions.length>0),{min:U,max:K}=Ct(t,N),Z=U,$=K,[q,V]=e.useState(()=>new Set(Object.keys(Ut(n,B,M)))),X=Z>0&&Z===$,Q=Z||1,J=$||n.length,_=$||Z||n.length,[ee,te]=e.useState(_),ne=Object.keys(o).length,oe=$>0&&ne>=$,re=H?null!=N&&ne===N:Bt(ne,t.min_propositions,t.max_propositions);t.min_bet,$>0?Math.max(2,2*$):Math.max(2,2*ne);const le=e.useRef(ne),ae=H?null!=N&&ne===N:$>0&&ne===$;l(()=>{ae&&ne>le.current&&p?.(),le.current=ne},[ne,ae]);const ie=(e,t)=>{!(e in o)&&oe||a(e,t)};l(()=>{const e=$||n.length,t=Z||1;te(n=>X?$:Math.max(t,Math.min(n,e)))},[n.length,Z,$,X]);const de=i(()=>/* @__PURE__ */new Date,[]),ue=i(()=>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 Co){let e=0,l=0;for(const o of n)if(Mo(o.commence_time,r,t)?e+=1:l+=1,e>0&&l>0)break;e>0&&l>0&&o.push({id:r,label:Bo[r]})}return o}(n,de),[n,de]),[me,pe]=c(null);l(()=>{me&&!ue.some(e=>e.id===me)&&pe(null)},[ue,me]);const fe=i(()=>function(e,t,n){return t?e.filter(e=>Mo(e.commence_time,t,n)):e.slice()}(n,me,de),[n,me,de]),xe=i(()=>Ut(fe,B,M),[fe,B,M]),ge=i(()=>{const e=/* @__PURE__ */new Set;for(const t of fe){const n=_e(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[fe]),[we,ke]=c(null),[ve,Ne]=c(!1);l(()=>{we&&!ge.includes(we)&&ke(null)},[ge,we]);const Fe=i(()=>{if(!we)return xe;const e={};for(const[t,n]of Object.entries(xe)){const o=n.filter(e=>_e(e)===we);o.length>0&&(e[t]=o)}return e},[xe,we]),Be=Object.keys(Fe);if(e.useEffect(()=>{const e=Object.keys(Fe);e.length>0&&V(t=>e.every(e=>t.has(e))?t:new Set(e))},[Fe]),h)/* @__PURE__ */return u(xn,{colors:I(z),bodyFont:Y,variant:"propositions"});if(x)/* @__PURE__ */return u("div",{className:"flex items-center justify-center p-8",style:{fontFamily:Y},children:/* @__PURE__ */u("div",{style:{color:P.error},children:x})});const Ce=!v&&n.length>0,Ae=ue.length>0||ge.length>1,Me=(null!=me?1:0)+(null!=we?1:0);/* @__PURE__ */
107
- return m("div",{className:"space-y-4 sm:space-y-6 pb-16",style:{fontFamily:Y},children:[(Ae||C)&&/* @__PURE__ */m("div",{className:"flex items-center justify-between gap-2",children:[/* @__PURE__ */u("div",{className:"flex items-center gap-2",children:Ae&&/* @__PURE__ */m(d,{children:[/* @__PURE__ */m("button",{type:"button",onClick:()=>Ne(e=>!e),"aria-expanded":ve,className:"inline-flex items-center gap-1.5 rounded-full px-3 py-1.5 text-[11px] font-bold transition-colors",style:{fontFamily:Y,border:`1px solid ${Me>0?P.primary:P.border}`,backgroundColor:Me>0?P.primary:P.background??"#fff",color:Me>0?P.primaryText:P.text,cursor:"pointer"},children:[
108
- /* @__PURE__ */u(qe,{size:13}),"Filter",Me>0&&/* @__PURE__ */m("span",{children:["· ",Me]}),
109
- /* @__PURE__ */u("span",{className:"inline-flex transition-transform",style:{transform:`rotate(${ve?-90:90}deg)`,opacity:.75},children:/* @__PURE__ */u(Ve,{size:13})})]}),Me>0&&/* @__PURE__ */u("button",{type:"button",onClick:()=>{pe(null),ke(null)},className:"text-[11px] font-semibold",style:{color:P.textMuted,cursor:"pointer"},children:"Clear"})]})}),C]}),ve&&Ae&&/* @__PURE__ */m("div",{className:"space-y-2.5",children:[ue.length>0&&/* @__PURE__ */u(Je,{label:"When",options:[{value:null,label:"All dates"},...ue.map(e=>({value:e.id,label:e.label}))],value:me,onChange:e=>pe(e),theme:z,bodyFont:Y}),ge.length>1&&/* @__PURE__ */u(Je,{label:"Market",options:[{value:null,label:"All markets"},...ge.map(e=>{return{value:e,label:(t=e,t.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))};var t})],value:we,onChange:ke,theme:z,bodyFont:Y})]}),Ce&&/* @__PURE__ */u("div",{className:"flex flex-wrap items-center justify-end gap-2",children:/* @__PURE__ */m("div",{className:"flex items-center gap-1.5 sm:gap-2 flex-shrink-0",children:[!X&&/* @__PURE__ */m("div",{className:"flex items-center gap-1",children:[/* @__PURE__ */u("input",{type:"number",min:Q,max:J,value:ee,onChange:e=>{const t=parseInt(e.target.value,10);isNaN(t)||te(Math.max(Q,Math.min(J,t)))},className:"w-10 sm:w-14 px-1 sm:px-2 py-1 sm:py-1.5 rounded-lg text-xs sm:text-sm font-semibold text-center",style:{color:E,backgroundColor:P.backgroundAlt,border:`2px solid ${P.border}`}}),/* @__PURE__ */m("span",{className:"text-xs whitespace-nowrap",style:{color:P.textMuted},children:["/ ",n.length]})]}),/* @__PURE__ */u(Do,{onPress:()=>{const e=X?$:ee;for(const n of Object.keys(o)){const e=Number(n);a(e,o[e])}const{yesPicks:t,noPicks:r}=$t(n,e);for(const n of t)a(n.id,"yes");for(const n of r)a(n.id,"no");p?.()}})]})}),n.length>0&&/* @__PURE__ */u("div",{className:"space-y-4",children:Be.every(e=>1===Fe[e].length)?/* @__PURE__ */u("div",{className:"rounded-xl border overflow-hidden divide-y",style:{borderColor:P.border,backgroundColor:D,boxShadow:j},children:Be.map(e=>{const t=Fe[e][0],n="yes"===o[t.id],r="no"===o[t.id],l=t.id in o,a=oe&&!l;/* @__PURE__ */
110
- return m("div",{className:"transition-colors divide-y",style:{opacity:a?.45:1,borderColor:P.border},children:[/* @__PURE__ */m("div",{className:"px-4 py-2.5 sm:py-3 min-w-0",style:{backgroundColor:T},children:[/* @__PURE__ */u("div",{className:"min-w-0",children:/* @__PURE__ */u(To,{matchup:e,renderTeamLogo:k,altText:E,mutedColor:P.textAltMuted??P.textMuted??E})}),t.commence_time&&/* @__PURE__ */u("span",{className:"text-[11px] block mt-0.5",style:{color:P.textAltMuted??P.textMuted,opacity:.7},children:xt(t.commence_time)})]}),/* @__PURE__ */m("div",{className:"flex items-center justify-between gap-3 px-4 py-3 sm:py-3.5",style:{backgroundColor:O},children:[/* @__PURE__ */m("div",{className:"min-w-0 flex-1 flex items-start gap-2",children:[Oo(t,k,e),/* @__PURE__ */u(jo,{prop:t,colors:P,componentById:S})]}),/* @__PURE__ */u(Re,{theme:z,size:"sm",value:n?"yes":r?"no":null,onYes:()=>ie(t.id,"yes"),onNo:()=>ie(t.id,"no"),disabled:a})]})]},t.id)})}):Be.map(e=>{const t=Fe[e],n=q.has(e),r=t.filter(e=>e.id in o).length,l=t[0]?.commence_time;/* @__PURE__ */
111
- return m("div",{className:"rounded-xl border overflow-hidden",style:{borderColor:P.border,backgroundColor:D,boxShadow:j},children:[/* @__PURE__ */m("button",{type:"button",onClick:()=>{return t=e,V(e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n});var t},className:"w-full flex items-center justify-between px-4 py-3.5 transition-colors",style:{backgroundColor:T,cursor:"pointer"},children:[/* @__PURE__ */m("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[/* @__PURE__ */u("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:P.textAltMuted??P.textMuted,transform:n?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.15s ease"},"aria-hidden":!0,children:/* @__PURE__ */u("path",{d:"m6 9 6 6 6-6"})}),/* @__PURE__ */m("div",{className:"min-w-0",children:[/* @__PURE__ */u(To,{matchup:e,renderTeamLogo:k,altText:E,mutedColor:P.textAltMuted??P.textMuted??E,size:"md"}),l&&/* @__PURE__ */u("p",{className:"text-xs mt-0.5 text-left",style:{color:P.textAltMuted??P.textMuted,opacity:.7},children:xt(l)})]})]}),/* @__PURE__ */u("div",{className:"flex items-center gap-2 flex-shrink-0 ml-2",children:r>0&&/* @__PURE__ */m("span",{className:"text-xs px-2 py-0.5 rounded-full font-medium",style:{color:r>0?P.successText:P.textMuted,backgroundColor:r>0?P.successBg:P.backgroundAlt},children:[r,"/",t.length]})})]}),n&&/* @__PURE__ */u("div",{className:"divide-y",style:{borderColor:P.border},children:/* @__PURE__ */u(d,{children:t.map(t=>{const n="yes"===o[t.id],r="no"===o[t.id],l=t.id in o,a=oe&&!l;/* @__PURE__ */
112
- return u("div",{className:"px-4 py-3 sm:py-3.5 transition-colors",style:{backgroundColor:O,opacity:a?.45:1},children:/* @__PURE__ */m("div",{className:"flex flex-wrap justify-between items-start gap-x-2 gap-y-2 sm:gap-4",children:[/* @__PURE__ */m("div",{className:"flex-1 min-w-0 flex items-start gap-2",style:{minWidth:"8rem"},children:[Oo(t,k,e),/* @__PURE__ */u(jo,{prop:t,colors:P,size:"md",componentById:S})]}),/* @__PURE__ */u(Re,{theme:z,size:"sm",value:n?"yes":r?"no":null,onYes:()=>ie(t.id,"yes"),onNo:()=>ie(t.id,"no"),disabled:a})]})},t.id)})})})]},e)})}),0===n.length&&/* @__PURE__ */u("div",{className:"text-center p-8",style:{color:P.textMuted},children:"No propositions available at this time"}),!b&&/* @__PURE__ */m("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:P.border,backgroundColor:D},children:[/* @__PURE__ */u(je,{theme:z,variant:"secondary",onPress:f,children:"Back"}),/* @__PURE__ */u("div",{className:"flex items-center gap-2 sm:gap-3",children:/* @__PURE__ */u(je,{theme:z,variant:"primary",disabled:!re,onPress:p,children:"Wager"})})]})]})}function Ho({propositions:e,selections:t,onToggleSelection:n,onNext:o,onBack:r,theme:l,colorScheme:a,hideActions:i=!1,renderTeamLogo:s,allowAnswerToggle:p=!0,gameName:f,potentialPayout:h,defaultExpanded:x=!1,addMorePicks:g}){const y=se(l,a),b=y.colors,w=R(y),k=ye(y),v=be(y),N=L(y),F=b.textAlt??b.text,B=b.matchupHeader??G(y),C=W(y),[A,M]=c(null),[S,z]=c(x),P=e.filter(e=>e.id in t),D=P.length,O=Kt(P);/* @__PURE__ */
137
+ /* @__PURE__ */u("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"}),s(a,"col-start-2 row-start-2")]})}function al({label:e,colors:t}){const n="OR"===e?"If either wins, you win.":"Both must win for Yes.",[r,a]=c(!1),[i,d]=c({top:0,left:0}),p=s(null),h=o(()=>{const e=p.current;if(!e)return;const t=e.getBoundingClientRect();d({top:t.bottom+4,left:t.left})},[]);return l(()=>{if(!r)return;h();const e=()=>h();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[r,h]),/* @__PURE__ */m("span",{className:"relative inline-flex flex-shrink-0",onMouseEnter:()=>{h(),a(!0)},onMouseLeave:()=>a(!1),children:[/* @__PURE__ */u("button",{ref:p,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:L(t.primary,.14),border:`1px solid ${L(t.primary,.45)}`},"aria-label":n,"aria-expanded":r,onClick:e=>{e.stopPropagation(),h(),a(e=>!e)},children:e}),r&&/* @__PURE__ */u("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:i.top,left:i.left,color:t.text,backgroundColor:t.backgroundAlt??"#fff",border:`1px solid ${t.border??L(t.primary,.3)}`},children:n})]})}function il({prop:t,colors:n,size:o="sm",componentById:r,textClass:l,textColor:a}){const i=ut(t,r),s=t.description??t.proposition??"",c=l??("md"===o?"text-sm sm:text-base font-medium":"text-xs sm:text-sm"),d=a??n.text,p=n.textMuted??n.textAltMuted??n.text;if(!i)/* @__PURE__ */return u("span",{className:c,style:{color:d},children:s});const{operator:h,legs:f}=i;return f.some(e=>e.eventLabel)?/* @__PURE__ */u("div",{className:"min-w-0 flex-1 flex flex-col gap-2",children:f.map((e,t)=>/* @__PURE__ */m("div",{className:"min-w-0",children:[t>0&&/* @__PURE__ */u("div",{className:"mb-1 flex items-center",children:/* @__PURE__ */u(al,{label:h,colors:n})}),e.eventLabel&&/* @__PURE__ */u("div",{className:"text-[10px] sm:text-xs font-semibold uppercase tracking-wide leading-tight break-words",style:{color:p},children:e.eventLabel}),
138
+ /* @__PURE__ */u("span",{className:c,style:{color:d},children:e.text})]},t))}):/* @__PURE__ */u("div",{className:"min-w-0 flex-1",children:/* @__PURE__ */u("div",{className:"flex flex-wrap items-center gap-x-1.5 gap-y-1",children:f.map((t,o)=>/* @__PURE__ */m(e.Fragment,{children:[o>0&&/* @__PURE__ */u(al,{label:h,colors:n}),/* @__PURE__ */u("span",{className:c,style:{color:d},children:t.text})]},o))})})}function sl({game:t,propositions:n,selections:o,onToggleSelection:a,onNext:s,onBack:p,loading:h,error:f,theme:x,colorScheme:g,hideActions:y=!1,initialSport:b,renderTeamLogo:w,disableQuickPick:k=!1,selectedPropositionCount:v,onPropositionCountChange:N,gameCategory:C,headerExtra:F,variant:B,disableEventSwipe:A}){const M=r(Mr),S=M?.sportBaseKey,z=M?.compositeComponentById,P=B??M?.selectionVariant,T=A??M?.disableEventSwipe??!1,D=ge(x,g),O=D.colors,E=V(D),Y=Q(D),H=O.matchupHeader??(t.color?L(t.color,.14):X(D)),G=O.textAlt??O.text,W=j(D),I=ye(D);be(D),R(D);const U=!!(t.allowed_propositions&&t.allowed_propositions.length>0),{min:$,max:K}=Tt(t,v),Z=$,q=K,[_,ee]=e.useState(()=>new Set(Object.keys(_t(n,C,S)))),te=Z>0&&Z===q,ne=Z||1,oe=q||n.length,re=q||Z||n.length,[le,ae]=e.useState(re),ie=Object.keys(o).length,se=q>0&&ie>=q,ce=U?null!=v&&ie===v:Pt(ie,t.min_propositions,t.max_propositions);t.min_bet,q>0?Math.max(2,2*q):Math.max(2,2*ie);const de=e.useRef(ie),ue=U?null!=v&&ie===v:q>0&&ie===q;l(()=>{ue&&ie>de.current&&s?.(),de.current=ie},[ie,ue]);const me=(e,t)=>{!(e in o)&&se||a(e,t)};l(()=>{const e=q||n.length,t=Z||1;ae(n=>te?q:Math.max(t,Math.min(n,e)))},[n.length,Z,q,te]);const pe=i(()=>/* @__PURE__ */new Date,[]),he=i(()=>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 Co){let e=0,l=0;for(const o of n)if(Bo(o.commence_time,r,t)?e+=1:l+=1,e>0&&l>0)break;e>0&&l>0&&o.push({id:r,label:No[r]})}return o}(n,pe),[n,pe]),[fe,xe]=c(null);l(()=>{fe&&!he.some(e=>e.id===fe)&&xe(null)},[he,fe]);const we=i(()=>function(e,t,n){return t?e.filter(e=>Bo(e.commence_time,t,n)):e.slice()}(n,fe,pe),[n,fe,pe]),ke=i(()=>Ot(C,we,S),[C,we,S]),ve=i(()=>_t(we,C,S),[we,C,S]),Ne=i(()=>{const e=/* @__PURE__ */new Set;for(const t of we){const n=lt(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[we]),[Ce,Fe]=c(null),[Be,Ae]=c(!1);l(()=>{Ce&&!Ne.includes(Ce)&&Fe(null)},[Ne,Ce]);const Me=i(()=>{if(!Ce)return ve;const e={};for(const[t,n]of Object.entries(ve)){const o=n.filter(e=>lt(e)===Ce);o.length>0&&(e[t]=o)}return e},[ve,Ce]),Se=Object.keys(Me);if(e.useEffect(()=>{const e=Object.keys(Me);e.length>0&&ee(t=>e.every(e=>t.has(e))?t:new Set(e))},[Me]),h)/* @__PURE__ */return u(Fn,{colors:J(D),bodyFont:I,variant:"propositions"});if(f)/* @__PURE__ */return u("div",{className:"flex items-center justify-center p-8",style:{fontFamily:I},children:/* @__PURE__ */u("div",{style:{color:O.error},children:f})});const ze=!k&&n.length>0,Le=he.length>0||Ne.length>1,Pe=(null!=fe?1:0)+(null!=Ce?1:0);/* @__PURE__ */
139
+ return m("div",{className:"space-y-4 sm:space-y-6 pb-16",style:{fontFamily:I},children:[(Le||F)&&/* @__PURE__ */m("div",{className:"flex items-center justify-between gap-2",children:[/* @__PURE__ */u("div",{className:"flex items-center gap-2",children:Le&&/* @__PURE__ */m(d,{children:[/* @__PURE__ */m("button",{type:"button",onClick:()=>Ae(e=>!e),"aria-expanded":Be,className:"inline-flex items-center gap-1.5 rounded-full px-3 py-1.5 text-[11px] font-bold transition-colors",style:{fontFamily:I,border:`1px solid ${Pe>0?O.primary:O.border}`,backgroundColor:Pe>0?O.primary:O.background??"#fff",color:Pe>0?O.primaryText:O.text,cursor:"pointer"},children:[
140
+ /* @__PURE__ */u(Je,{size:13}),"Filter",Pe>0&&/* @__PURE__ */m("span",{children:["· ",Pe]}),
141
+ /* @__PURE__ */u("span",{className:"inline-flex transition-transform",style:{transform:`rotate(${Be?-90:90}deg)`,opacity:.75},children:/* @__PURE__ */u(_e,{size:13})})]}),Pe>0&&/* @__PURE__ */u("button",{type:"button",onClick:()=>{xe(null),Fe(null)},className:"text-[11px] font-semibold",style:{color:O.textMuted,cursor:"pointer"},children:"Clear"})]})}),F]}),Be&&Le&&/* @__PURE__ */m("div",{className:"space-y-2.5",children:[he.length>0&&/* @__PURE__ */u(rt,{label:"When",options:[{value:null,label:"All dates"},...he.map(e=>({value:e.id,label:e.label}))],value:fe,onChange:e=>xe(e),theme:D,bodyFont:I}),Ne.length>1&&/* @__PURE__ */u(rt,{label:"Market",options:[{value:null,label:"All markets"},...Ne.map(e=>{return{value:e,label:(t=e,t.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))};var t})],value:Ce,onChange:Fe,theme:D,bodyFont:I})]}),ze&&/* @__PURE__ */u("div",{className:"flex flex-wrap items-center justify-end gap-2",children:/* @__PURE__ */m("div",{className:"flex items-center gap-1.5 sm:gap-2 flex-shrink-0",children:[!te&&/* @__PURE__ */m("div",{className:"flex items-center gap-1",children:[/* @__PURE__ */u("input",{type:"number",min:ne,max:oe,value:le,onChange:e=>{const t=parseInt(e.target.value,10);isNaN(t)||ae(Math.max(ne,Math.min(oe,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:G,backgroundColor:O.backgroundAlt,border:`2px solid ${O.border}`}}),/* @__PURE__ */m("span",{className:"text-xs whitespace-nowrap",style:{color:O.textMuted},children:["/ ",n.length]})]}),/* @__PURE__ */u(Pr,{onPress:()=>{const e=te?q:le;for(const n of Object.keys(o)){const e=Number(n);a(e,o[e])}const{yesPicks:t,noPicks:r}=nn(n,e);for(const n of t)a(n.id,"yes");for(const n of r)a(n.id,"no");s?.()}})]})}),n.length>0&&P&&/* @__PURE__ */u(tl,{variant:P,groups:Me,racing:ke,selections:o,onToggleSelection:me,atMax:se,theme:D,renderTeamLogo:w,componentById:z,disableEventSwipe:T}),n.length>0&&!P&&/* @__PURE__ */u("div",{className:"space-y-4",children:Se.every(e=>1===Me[e].length)?/* @__PURE__ */u("div",{className:"rounded-xl border overflow-hidden divide-y",style:{borderColor:O.border,backgroundColor:E,boxShadow:W},children:Se.map(e=>{const t=Me[e][0],n="yes"===o[t.id],r="no"===o[t.id],l=t.id in o,a=se&&!l;/* @__PURE__ */
142
+ return m("div",{className:"transition-colors divide-y",style:{opacity:a?.45:1,borderColor:O.border},children:[/* @__PURE__ */m("div",{className:"px-4 py-2.5 sm:py-3 min-w-0",style:{backgroundColor:H},children:[/* @__PURE__ */u("div",{className:"min-w-0",children:/* @__PURE__ */u(ll,{matchup:e,renderTeamLogo:w,altText:G,mutedColor:O.textAltMuted??O.textMuted??G})}),t.commence_time&&/* @__PURE__ */u("span",{className:"text-[11px] block mt-0.5",style:{color:O.textAltMuted??O.textMuted,opacity:.7},children:Nt(t.commence_time)})]}),/* @__PURE__ */m("div",{className:"flex items-center justify-between gap-3 px-4 py-3 sm:py-3.5",style:{backgroundColor:Y},children:[/* @__PURE__ */m("div",{className:"min-w-0 flex-1 flex items-start gap-2",children:[rl(t,w,e),/* @__PURE__ */u(il,{prop:t,colors:O,componentById:z})]}),/* @__PURE__ */u(Ge,{theme:D,size:"sm",value:n?"yes":r?"no":null,onYes:()=>me(t.id,"yes"),onNo:()=>me(t.id,"no"),disabled:a})]})]},t.id)})}):Se.map(e=>{const t=Me[e],n=_.has(e),r=t.filter(e=>e.id in o).length,l=t[0]?.commence_time;/* @__PURE__ */
143
+ return m("div",{className:"rounded-xl border overflow-hidden",style:{borderColor:O.border,backgroundColor:E,boxShadow:W},children:[/* @__PURE__ */m("button",{type:"button",onClick:()=>{return t=e,ee(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:H,cursor:"pointer"},children:[/* @__PURE__ */m("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[/* @__PURE__ */u("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:O.textAltMuted??O.textMuted,transform:n?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.15s ease"},"aria-hidden":!0,children:/* @__PURE__ */u("path",{d:"m6 9 6 6 6-6"})}),/* @__PURE__ */m("div",{className:"min-w-0",children:[/* @__PURE__ */u(ll,{matchup:e,renderTeamLogo:w,altText:G,mutedColor:O.textAltMuted??O.textMuted??G,size:"md"}),l&&/* @__PURE__ */u("p",{className:"text-xs mt-0.5 text-left",style:{color:O.textAltMuted??O.textMuted,opacity:.7},children:Nt(l)})]})]}),/* @__PURE__ */u("div",{className:"flex items-center gap-2 flex-shrink-0 ml-2",children:r>0&&/* @__PURE__ */m("span",{className:"text-xs px-2 py-0.5 rounded-full font-medium",style:{color:r>0?O.successText:O.textMuted,backgroundColor:r>0?O.successBg:O.backgroundAlt},children:[r,"/",t.length]})})]}),n&&/* @__PURE__ */u("div",{className:"divide-y",style:{borderColor:O.border},children:/* @__PURE__ */u(d,{children:t.map(t=>{const n="yes"===o[t.id],r="no"===o[t.id],l=t.id in o,a=se&&!l;/* @__PURE__ */
144
+ return u("div",{className:"px-4 py-3 sm:py-3.5 transition-colors",style:{backgroundColor:Y,opacity:a?.45:1},children:/* @__PURE__ */m("div",{className:"flex flex-wrap justify-between items-start gap-x-2 gap-y-2 sm:gap-4",children:[/* @__PURE__ */m("div",{className:"flex-1 min-w-0 flex items-start gap-2",style:{minWidth:"8rem"},children:[rl(t,w,e),/* @__PURE__ */u(il,{prop:t,colors:O,size:"md",componentById:z})]}),/* @__PURE__ */u(Ge,{theme:D,size:"sm",value:n?"yes":r?"no":null,onYes:()=>me(t.id,"yes"),onNo:()=>me(t.id,"no"),disabled:a})]})},t.id)})})})]},e)})}),0===n.length&&/* @__PURE__ */u("div",{className:"text-center p-8",style:{color:O.textMuted},children:"No propositions available at this time"}),!y&&/* @__PURE__ */m("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:O.border,backgroundColor:E},children:[/* @__PURE__ */u(Ye,{theme:D,variant:"secondary",onPress:p,children:"Back"}),/* @__PURE__ */u("div",{className:"flex items-center gap-2 sm:gap-3",children:/* @__PURE__ */u(Ye,{theme:D,variant:"primary",disabled:!ce,onPress:s,children:"Wager"})})]})]})}function cl({propositions:e,selections:t,onToggleSelection:n,onNext:o,onBack:r,theme:l,colorScheme:a,hideActions:i=!1,renderTeamLogo:s,allowAnswerToggle:p=!0,gameName:h,potentialPayout:f,defaultExpanded:x=!1,addMorePicks:g}){const y=ge(l,a),b=y.colors,w=V(y),k=ye(y),v=be(y),N=R(y),C=b.textAlt??b.text,F=b.matchupHeader??X(y),B=Q(y),[A,M]=c(null),[S,z]=c(x),L=e.filter(e=>e.id in t),P=L.length,T=en(L);/* @__PURE__ */
113
145
  return m("div",{className:"space-y-4 sm:space-y-6 pb-16",style:{fontFamily:k},children:[
114
- /* @__PURE__ */m("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:w,borderColor:b.border,boxShadow:he(y)},children:[
115
- /* @__PURE__ */m("button",{type:"button",onClick:()=>z(e=>!e),"aria-expanded":S,"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:[/* @__PURE__ */m("div",{className:"flex items-center gap-2 min-w-0",children:[/* @__PURE__ */u("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:S?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.15s ease"},children:/* @__PURE__ */u("path",{d:"m6 9 6 6 6-6"})}),/* @__PURE__ */m("div",{className:"min-w-0",children:[/* @__PURE__ */m("h3",{className:"text-base sm:text-lg font-semibold flex items-center gap-2",style:{color:N,fontFamily:v},children:[/* @__PURE__ */u("span",{children:"Your Selections"}),/* @__PURE__ */u("span",{className:"text-xs font-semibold px-1.5 py-0.5 rounded-full",style:{color:b.primaryText,backgroundColor:b.primary},children:D})]}),f&&/* @__PURE__ */u("p",{className:"text-sm mt-0.5 truncate",style:{color:b.textMuted},children:f})]})]}),null!=h&&h>0&&/* @__PURE__ */m("div",{className:"text-right flex-shrink-0",children:[/* @__PURE__ */u("span",{className:"text-[10px] uppercase tracking-wide block",style:{color:b.textMuted},children:"Potential Payout"}),/* @__PURE__ */u("span",{className:"text-sm font-bold",style:{color:N},children:ht(h)})]})]}),g&&g.remaining>0&&/* @__PURE__ */m("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:[/* @__PURE__ */m("p",{className:"text-xs",style:{color:b.textMuted},children:[1===g.remaining?"Add ":"Add up to ",
146
+ /* @__PURE__ */m("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:w,borderColor:b.border,boxShadow:j(y)},children:[
147
+ /* @__PURE__ */m("button",{type:"button",onClick:()=>z(e=>!e),"aria-expanded":S,"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:[/* @__PURE__ */m("div",{className:"flex items-center gap-2 min-w-0",children:[/* @__PURE__ */u("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:S?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.15s ease"},children:/* @__PURE__ */u("path",{d:"m6 9 6 6 6-6"})}),/* @__PURE__ */m("div",{className:"min-w-0",children:[/* @__PURE__ */m("h3",{className:"text-base sm:text-lg font-semibold flex items-center gap-2",style:{color:N,fontFamily:v},children:[/* @__PURE__ */u("span",{children:"Your Selections"}),/* @__PURE__ */u("span",{className:"text-xs font-semibold px-1.5 py-0.5 rounded-full",style:{color:b.primaryText,backgroundColor:b.primary},children:P})]}),h&&/* @__PURE__ */u("p",{className:"text-sm mt-0.5 truncate",style:{color:b.textMuted},children:h})]})]}),null!=f&&f>0&&/* @__PURE__ */m("div",{className:"text-right flex-shrink-0",children:[/* @__PURE__ */u("span",{className:"text-[10px] uppercase tracking-wide block",style:{color:b.textMuted},children:"Potential Payout"}),/* @__PURE__ */u("span",{className:"text-sm font-bold",style:{color:N},children:vt(f)})]})]}),g&&g.remaining>0&&/* @__PURE__ */m("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:[/* @__PURE__ */m("p",{className:"text-xs",style:{color:b.textMuted},children:[1===g.remaining?"Add ":"Add up to ",
116
148
  /* @__PURE__ */m("span",{style:{color:b.primary,fontWeight:700},children:[g.remaining," more pick",1!==g.remaining?"s":""]}),null!=g.potentialPayout&&g.potentialPayout>0&&/* @__PURE__ */m(d,{children:[" ","to win up to"," ",
117
- /* @__PURE__ */u("span",{style:{color:N,fontWeight:700},children:ht(g.potentialPayout)})," ","with ",g.max," picks"]})]}),/* @__PURE__ */u("button",{type:"button",onClick:e=>{e.stopPropagation(),g.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"})]}),S&&(0===P.length?/* @__PURE__ */u("div",{className:"text-center py-8 mt-3 sm:mt-4",style:{color:b.textMuted},children:"No selections made yet"}):/* @__PURE__ */u("div",{id:"selection-review-list",className:"space-y-2 sm:space-y-3 mt-3 sm:mt-4",children:O.map(e=>/* @__PURE__ */m("div",{className:"rounded-lg overflow-hidden border",style:{borderColor:b.border},children:[e.key&&/* @__PURE__ */m("div",{className:"px-3 py-2 sm:px-3.5 sm:py-2.5 min-w-0",style:{backgroundColor:B},children:[/* @__PURE__ */u(To,{matchup:e.key,renderTeamLogo:s,altText:F,mutedColor:b.textAltMuted??b.textMuted??F}),e.props[0].commence_time&&/* @__PURE__ */u("span",{className:"text-[11px] block mt-0.5",style:{color:b.textAltMuted??b.textMuted,opacity:.7},children:xt(e.props[0].commence_time)})]}),e.props.map((o,l)=>{const a=t[o.id],i="yes"===a,c="no"===a;/* @__PURE__ */
118
- return m("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:C,borderTop:e.key||l>0?`1px solid ${b.border}`:void 0},children:[/* @__PURE__ */m("div",{className:"min-w-0 flex-1 flex items-start gap-2",children:[Oo(o,s,e.key),/* @__PURE__ */u("p",{className:"text-sm leading-snug break-words",style:{color:F},children:o.description})]}),/* @__PURE__ */m("div",{className:"flex items-center gap-1.5 flex-shrink-0 sm:gap-2",children:[p?/* @__PURE__ */u(Re,{theme:y,size:"sm",value:i?"yes":c?"no":null,onYes:e=>{e.stopPropagation(),n(o.id,"yes")},onNo:e=>{e.stopPropagation(),n(o.id,"no")}}):a&&/* @__PURE__ */u(Ge,{theme:y,value:"yes"===a?"yes":"no",size:"sm"}),/* @__PURE__ */u("button",{type:"button",onClick:e=>{e.stopPropagation(),n(o.id,t[o.id]),r()},onMouseEnter:()=>M(o.id),onMouseLeave:()=>M(null),className:"w-6 h-6 flex-shrink-0 flex items-center justify-center rounded-full transition-colors",style:{color:A===o.id?b.error:b.textAltMuted??b.textMuted,cursor:"pointer",backgroundColor:"transparent"},title:"Remove selection","aria-label":"Remove selection",children:/* @__PURE__ */u("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",strokeWidth:"2.5",viewBox:"0 0 24 24",children:/* @__PURE__ */u("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})]},o.id)})]},e.key??`solo-${e.props[0].id}`))}))]}),
119
- /* @__PURE__ */u("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:w,borderColor:b.border,boxShadow:he(y)},children:/* @__PURE__ */m("div",{className:"flex justify-between text-sm",children:[/* @__PURE__ */u("span",{style:{color:b.textMuted},children:"Total Selections"}),/* @__PURE__ */u("span",{className:"font-semibold",style:{color:b.text},children:P.length})]})}),!i&&/* @__PURE__ */m("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:[/* @__PURE__ */u(je,{theme:y,variant:"secondary",onPress:r,children:"Back"}),/* @__PURE__ */u(je,{theme:y,variant:"primary",disabled:0===P.length,onPress:o,children:"Place bet"})]})]})}function Ro({game:t,propositions:n,selections:o,onToggleSelection:r,onRemoveSelection:l,onSubmit:a,onBack:i,loading:s,error:p,expectedCorrect:f,onExpectedCorrectChange:h,betAmount:x,onBetAmountChange:g,theme:y,colorScheme:b,hideActions:w=!1,winningCounts:k,payouts:v,renderTeamLogo:N,showCustomAmount:F=!1,betAmountLocked:B=!1,betAmountLockedNote:C,canSubmit:A,authenticated:M=!0,userBalance:S,onRecharge:z,boostBanner:O}){const T=se(y,b),E=T.colors,j=R(T),Y=ye(T),H=be(T),I=L(T),U=P(T),K=D(T),Z=E.textAlt??E.text,$=n.length,q=t.min_bet??0,V=Math.max(q,.01),X=t.max_bet??null,Q=[5,10,20,50,100,200,500].filter(e=>e>=V&&(null===X||e<=X)).slice(0,4),J={};for(let e=0;e<=$;e++)J[e]=x*e;const _=v??J,ee=_[f]??0,te=At(t),ne=te.enabled&&f===$,[oe,re]=c(null),[le,ae]=c(!0),ie=s||x<V||!1===A,ce=null!=S&&x>S,de=w&&!!a&&M,ue=o?n.filter(e=>e.id in o):n,me=Kt(ue),pe=E.matchupHeader??G(T),fe=W(T),xe=Object.entries(_).map(([e,t])=>({correct:Number(e),payout:t})).filter(e=>e.correct>0&&e.payout>0).sort((e,t)=>e.correct-t.correct),ge=1===xe.length?xe[0].correct:null;return e.useEffect(()=>{null!==ge&&f!==ge&&h(ge)},[ge]),/* @__PURE__ */m("div",{className:"space-y-3 sm:space-y-4 pb-16",style:{fontFamily:Y},children:[
120
- /* @__PURE__ */m("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:j,borderColor:E.border,boxShadow:he(T)},children:[
121
- /* @__PURE__ */m("div",{className:"flex items-center justify-between gap-3",children:[/* @__PURE__ */m("button",{type:"button",onClick:()=>ae(e=>!e),"aria-expanded":le,"aria-controls":"entry-submission-selections","aria-label":le?"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:[/* @__PURE__ */u("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{color:E.textMuted,flexShrink:0,transform:le?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.15s ease"},children:/* @__PURE__ */u("path",{d:"m6 9 6 6 6-6"})}),/* @__PURE__ */u("h3",{className:"text-sm sm:text-base font-semibold",style:{color:I,fontFamily:H},children:le?"Hide Selections":"Review Selections"})]}),/* @__PURE__ */m("span",{className:"text-xs font-semibold px-2 py-0.5 rounded-full flex-shrink-0",style:{color:E.primary,backgroundColor:`${E.primary}15`},children:[ue.length," pick",1!==ue.length?"s":""]})]}),!le&&/* @__PURE__ */u("p",{className:"text-xs mt-2",style:{color:E.textMuted},children:"Tap to show your picks"}),le&&/* @__PURE__ */u("div",{id:"entry-submission-selections",className:"space-y-2 mt-3",children:me.map(e=>/* @__PURE__ */m("div",{className:"rounded-lg overflow-hidden border",style:{borderColor:E.border},children:[e.key&&/* @__PURE__ */m("div",{className:"px-3 py-2 min-w-0",style:{backgroundColor:pe},children:[/* @__PURE__ */u(To,{matchup:e.key,renderTeamLogo:N,altText:Z,mutedColor:E.textAltMuted??E.textMuted??Z}),e.props[0].commence_time&&/* @__PURE__ */u("span",{className:"text-[11px] block mt-0.5",style:{color:E.textAltMuted??E.textMuted,opacity:.7},children:xt(e.props[0].commence_time)})]}),e.props.map((t,n)=>{const a=o?.[t.id],i="yes"===a,s="no"===a,c=!!r;/* @__PURE__ */
122
- return m("div",{className:"flex items-center justify-between gap-2 px-3 py-2 cursor-default",style:{backgroundColor:fe,borderTop:e.key||n>0?`1px solid ${E.border}`:void 0},children:[/* @__PURE__ */m("div",{className:"min-w-0 flex-1 flex items-start gap-2",children:[Oo(t,N,e.key),/* @__PURE__ */u("p",{className:"text-xs sm:text-sm break-words leading-snug",style:{color:Z},children:t.description})]}),/* @__PURE__ */m("div",{className:"flex flex-shrink-0 items-center gap-1.5",children:[c?/* @__PURE__ */u(Re,{theme:T,size:"xs",value:i?"yes":s?"no":null,onYes:()=>r(t.id,"yes"),onNo:()=>r(t.id,"no")}):a?/* @__PURE__ */u(Ge,{theme:T,value:"yes"===a?"yes":"no",size:"sm",style:{flexShrink:0}}):null,le&&l&&/* @__PURE__ */u("button",{type:"button","aria-label":"Remove selection",onClick:()=>{a&&r?.(t.id,a),l(t.id)},onMouseEnter:()=>re(t.id),onMouseLeave:()=>re(null),className:"flex-shrink-0 flex items-center justify-center rounded-full transition-colors",style:{width:44,height:44,color:oe===t.id?"#fff":E.textMuted,backgroundColor:oe===t.id?E.error:"transparent",cursor:"pointer"},children:/* @__PURE__ */u("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",strokeWidth:"2.5",viewBox:"0 0 24 24",children:/* @__PURE__ */u("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})]},t.id)})]},e.key??`solo-${e.props[0].id}`))}),O&&/* @__PURE__ */u("div",{className:"mt-2",children:O})]}),de&&/* @__PURE__ */m("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:E.textMuted},children:[/* @__PURE__ */u("span",{"aria-hidden":!0,children:"↓"}),"Scroll down to set your bet and place your entry"]}),M?/* @__PURE__ */m(d,{children:[/* @__PURE__ */m("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:j,borderColor:E.border,boxShadow:he(T)},children:[
123
- /* @__PURE__ */m("div",{className:"flex items-center justify-between mb-3 sm:mb-4",children:[/* @__PURE__ */u("h3",{className:"text-base sm:text-lg font-semibold",style:{color:I,fontFamily:H},children:"How much are you betting?"}),null!=S&&/* @__PURE__ */m("span",{className:"text-xs font-semibold",style:{color:E.textMuted},children:["Balance: ",/* @__PURE__ */u("span",{style:{color:ce?E.error:E.success},children:ht(S)})]})]}),ce&&/* @__PURE__ */m("div",{className:"mb-3 px-3 py-2 rounded-lg flex items-center justify-between gap-3",style:{backgroundColor:E.errorBg??`${E.error}15`,color:E.errorText??E.error},children:[/* @__PURE__ */m("span",{className:"text-xs font-medium",children:["Insufficient balance. Your bet of ",ht(x)," exceeds your available ",ht(S),"."]}),z&&/* @__PURE__ */u("button",{type:"button",onClick:z,className:"text-xs font-semibold px-3 py-1 rounded-md whitespace-nowrap",style:{backgroundColor:E.error,color:E.buttonPrimaryText??"#fff",cursor:"pointer"},children:"Add funds"})]}),/* @__PURE__ */m("div",B?{className:"flex items-center justify-between gap-3 rounded-lg px-3 py-2.5",style:{backgroundColor:E.backgroundAlt,border:`1px solid ${E.border}`},children:[/* @__PURE__ */u("span",{className:"text-xs",style:{color:E.textMuted},children:C??"Stake is set for this ticket."}),/* @__PURE__ */u("span",{className:"text-lg font-bold tabular-nums",style:{color:I,fontFamily:H},children:ht(x)})]}:{className:"space-y-4",children:[F&&/* @__PURE__ */m("div",{children:[
124
- /* @__PURE__ */u("p",{className:"text-xs sm:text-sm font-semibold mb-2",style:{color:U},children:"Entry amount"}),
125
- /* @__PURE__ */m("div",{className:"relative",children:[/* @__PURE__ */u("span",{className:"absolute left-3 top-1/2 -translate-y-1/2",style:{color:E.textMuted},children:"$"}),/* @__PURE__ */u("input",{type:"number",inputMode:"decimal",min:V,max:X??void 0,step:"any",placeholder:"Enter amount","aria-label":"Entry amount",value:x||"",onChange:e=>{if(""===e.target.value)return void g(0);const t=Number(e.target.value);if(!Number.isFinite(t))return;const n=Math.max(0,Math.round(100*t)/100);g(null!==X?Math.min(n,X):n)},onFocus:e=>{e.currentTarget.style.borderColor=E.borderFocus??E.primary},onBlur:e=>{e.currentTarget.style.borderColor=E.border},className:"w-full pl-8 pr-4 py-3 border rounded-lg focus:outline-none text-lg font-semibold tabular-nums",style:{borderColor:E.border,color:Z,backgroundColor:E.backgroundAlt,fontFamily:Y,transition:"border-color .15s ease"}})]}),
126
- /* @__PURE__ */m("p",{className:"text-xs mt-1.5",style:{color:E.textMuted},children:["Minimum bet: ",ht(V),null!==X&&/* @__PURE__ */m(d,{children:[" · Maximum: ",ht(X)]})]}),x>0&&x<V&&/* @__PURE__ */m("p",{className:"text-xs mt-1",style:{color:E.error},children:["Bet amount must be at least ",ht(V)]})]}),/* @__PURE__ */m("div",{children:[(F||x>0)&&/* @__PURE__ */m("div",{className:"flex items-center justify-between mb-2",children:[F?/* @__PURE__ */u("p",{className:"text-xs sm:text-sm font-semibold",style:{color:U},children:"Add to bet"}):/* @__PURE__ */u("span",{}),x>0&&/* @__PURE__ */u("button",{type:"button",onClick:()=>g(0),className:"text-xs font-semibold px-2.5 py-1 rounded-md transition-colors",style:{color:E.textMuted,backgroundColor:E.backgroundAlt,border:`1.5px solid ${E.border}`,cursor:"pointer"},children:"Clear bet"})]}),/* @__PURE__ */u("div",{style:{display:"grid",gridTemplateColumns:`repeat(${Math.max(Q.length,1)}, minmax(0, 1fr))`,gap:8},children:Q.map(e=>{const t=null!==X&&x>=X;/* @__PURE__ */
127
- return m("button",{type:"button",onClick:()=>{const t=x+e;g(null!==X?Math.min(t,X):t)},disabled:t,className:"px-3 py-2.5 rounded-lg text-sm font-semibold transition-colors min-w-0",style:{color:Z,backgroundColor:"transparent",border:`1px solid ${E.border}`,cursor:t?"not-allowed":"pointer",opacity:t?.5:1},children:["+",ht(e)]},e)})})]})]})]}),/* @__PURE__ */u("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:j,borderColor:E.border,boxShadow:he(T)},children:(()=>{const e=w&&!!a,t=/* @__PURE__ */m(d,{children:[
128
- /* @__PURE__ */m("div",{className:"flex justify-between items-center text-sm mb-1",children:[/* @__PURE__ */u("span",{style:{color:U},children:"Bet"}),/* @__PURE__ */u("span",{className:"font-semibold",style:{color:K},children:ht(x)})]}),ee>0&&/* @__PURE__ */m("div",{className:"flex flex-wrap gap-x-2 justify-between items-center pt-2 border-t",style:{borderColor:E.border},children:[/* @__PURE__ */u("span",{className:"font-semibold text-sm",style:{color:U},children:"Potential Payout"}),/* @__PURE__ */m("span",{className:"font-bold text-lg",style:{color:I},children:[ht(ee),ne&&/* @__PURE__ */u("span",{className:"text-xs ml-1",style:{color:E.warning},children:"+ Jackpot"})]})]}),te.enabled&&/* @__PURE__ */m("div",{className:"flex justify-between items-center mt-2 rounded px-2 py-1.5",style:{backgroundColor:`${E.warning}08`,border:`1px solid ${E.warning}25`},children:[/* @__PURE__ */m("span",{className:"text-xs font-semibold",style:{color:E.warning},children:["★ ",te.progressive?"Progressive Jackpot":"Jackpot"]}),/* @__PURE__ */u("span",{className:"text-sm font-bold",style:{color:E.warning},children:te.progressive?te.amount>0?ht(te.amount):te.limit>0?`Up to ${ht(te.limit)}`:"Progressive":ht(te.amount)})]})]});return e?/* @__PURE__ */m("div",{className:"flex items-stretch gap-4",children:[
149
+ /* @__PURE__ */u("span",{style:{color:N,fontWeight:700},children:vt(g.potentialPayout)})," ","with ",g.max," picks"]})]}),/* @__PURE__ */u("button",{type:"button",onClick:e=>{e.stopPropagation(),g.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"})]}),S&&(0===L.length?/* @__PURE__ */u("div",{className:"text-center py-8 mt-3 sm:mt-4",style:{color:b.textMuted},children:"No selections made yet"}):/* @__PURE__ */u("div",{id:"selection-review-list",className:"space-y-2 sm:space-y-3 mt-3 sm:mt-4",children:T.map(e=>/* @__PURE__ */m("div",{className:"rounded-lg overflow-hidden border",style:{borderColor:b.border},children:[e.key&&/* @__PURE__ */m("div",{className:"px-3 py-2 sm:px-3.5 sm:py-2.5 min-w-0",style:{backgroundColor:F},children:[/* @__PURE__ */u(ll,{matchup:e.key,renderTeamLogo:s,altText:C,mutedColor:b.textAltMuted??b.textMuted??C}),e.props[0].commence_time&&/* @__PURE__ */u("span",{className:"text-[11px] block mt-0.5",style:{color:b.textAltMuted??b.textMuted,opacity:.7},children:Nt(e.props[0].commence_time)})]}),e.props.map((o,l)=>{const a=t[o.id],i="yes"===a,c="no"===a;/* @__PURE__ */
150
+ return m("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:B,borderTop:e.key||l>0?`1px solid ${b.border}`:void 0},children:[/* @__PURE__ */m("div",{className:"min-w-0 flex-1 flex items-start gap-2",children:[rl(o,s,e.key),/* @__PURE__ */u("p",{className:"text-sm leading-snug break-words",style:{color:C},children:o.description})]}),/* @__PURE__ */m("div",{className:"flex items-center gap-1.5 flex-shrink-0 sm:gap-2",children:[p?/* @__PURE__ */u(Ge,{theme:y,size:"sm",value:i?"yes":c?"no":null,onYes:e=>{e.stopPropagation(),n(o.id,"yes")},onNo:e=>{e.stopPropagation(),n(o.id,"no")}}):a&&/* @__PURE__ */u(We,{theme:y,value:"yes"===a?"yes":"no",size:"sm"}),/* @__PURE__ */u("button",{type:"button",onClick:e=>{e.stopPropagation(),n(o.id,t[o.id]),r()},onMouseEnter:()=>M(o.id),onMouseLeave:()=>M(null),className:"w-6 h-6 flex-shrink-0 flex items-center justify-center rounded-full transition-colors",style:{color:A===o.id?b.error:b.textAltMuted??b.textMuted,cursor:"pointer",backgroundColor:"transparent"},title:"Remove selection","aria-label":"Remove selection",children:/* @__PURE__ */u("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",strokeWidth:"2.5",viewBox:"0 0 24 24",children:/* @__PURE__ */u("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})]},o.id)})]},e.key??`solo-${e.props[0].id}`))}))]}),
151
+ /* @__PURE__ */u("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:w,borderColor:b.border,boxShadow:j(y)},children:/* @__PURE__ */m("div",{className:"flex justify-between text-sm",children:[/* @__PURE__ */u("span",{style:{color:b.textMuted},children:"Total Selections"}),/* @__PURE__ */u("span",{className:"font-semibold",style:{color:b.text},children:L.length})]})}),!i&&/* @__PURE__ */m("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:[/* @__PURE__ */u(Ye,{theme:y,variant:"secondary",onPress:r,children:"Back"}),/* @__PURE__ */u(Ye,{theme:y,variant:"primary",disabled:0===L.length,onPress:o,children:"Place bet"})]})]})}function dl({game:t,propositions:n,selections:o,onToggleSelection:r,onRemoveSelection:l,onSubmit:a,onBack:i,loading:s,error:p,expectedCorrect:h,onExpectedCorrectChange:f,betAmount:x,onBetAmountChange:g,theme:y,colorScheme:b,hideActions:w=!1,winningCounts:k,payouts:v,renderTeamLogo:N,showCustomAmount:C=!1,betAmountLocked:F=!1,betAmountLockedNote:B,canSubmit:A,authenticated:M=!0,userBalance:S,onRecharge:z,boostBanner:L}){const P=ge(y,b),T=P.colors,D=V(P),O=ye(P),E=be(P),Y=R(P),H=G(P),I=W(P),U=T.textAlt??T.text,$=n.length,K=t.min_bet??0,Z=Math.max(K,.01),q=t.max_bet??null,J=[5,10,20,50,100,200,500].filter(e=>e>=Z&&(null===q||e<=q)).slice(0,4),_={};for(let e=0;e<=$;e++)_[e]=x*e;const ee=v??_,te=ee[h]??0,ne=Dt(t),oe=ne.enabled&&h===$,[re,le]=c(null),[ae,ie]=c(!0),se=s||x<Z||!1===A,ce=null!=S&&x>S,de=w&&!!a&&M,ue=o?n.filter(e=>e.id in o):n,me=en(ue),pe=T.matchupHeader??X(P),he=Q(P),fe=Object.entries(ee).map(([e,t])=>({correct:Number(e),payout:t})).filter(e=>e.correct>0&&e.payout>0).sort((e,t)=>e.correct-t.correct),xe=1===fe.length?fe[0].correct:null;return e.useEffect(()=>{null!==xe&&h!==xe&&f(xe)},[xe]),/* @__PURE__ */m("div",{className:"space-y-3 sm:space-y-4 pb-16",style:{fontFamily:O},children:[L,
152
+ /* @__PURE__ */m("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:D,borderColor:T.border,boxShadow:j(P)},children:[
153
+ /* @__PURE__ */m("div",{className:"flex items-center justify-between gap-3",children:[/* @__PURE__ */m("button",{type:"button",onClick:()=>ie(e=>!e),"aria-expanded":ae,"aria-controls":"entry-submission-selections","aria-label":ae?"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:[/* @__PURE__ */u("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{color:T.textMuted,flexShrink:0,transform:ae?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.15s ease"},children:/* @__PURE__ */u("path",{d:"m6 9 6 6 6-6"})}),/* @__PURE__ */u("h3",{className:"text-sm sm:text-base font-semibold",style:{color:Y,fontFamily:E},children:ae?"Hide Selections":"Review Selections"})]}),/* @__PURE__ */m("span",{className:"text-xs font-semibold px-2 py-0.5 rounded-full flex-shrink-0",style:{color:T.primary,backgroundColor:`${T.primary}15`},children:[ue.length," pick",1!==ue.length?"s":""]})]}),!ae&&/* @__PURE__ */u("p",{className:"text-xs mt-2",style:{color:T.textMuted},children:"Tap to show your picks"}),ae&&/* @__PURE__ */u("div",{id:"entry-submission-selections",className:"space-y-2 mt-3",children:me.map(e=>/* @__PURE__ */m("div",{className:"rounded-lg overflow-hidden border",style:{borderColor:T.border},children:[e.key&&/* @__PURE__ */m("div",{className:"px-3 py-2 min-w-0",style:{backgroundColor:pe},children:[/* @__PURE__ */u(ll,{matchup:e.key,renderTeamLogo:N,altText:U,mutedColor:T.textAltMuted??T.textMuted??U}),e.props[0].commence_time&&/* @__PURE__ */u("span",{className:"text-[11px] block mt-0.5",style:{color:T.textAltMuted??T.textMuted,opacity:.7},children:Nt(e.props[0].commence_time)})]}),e.props.map((t,n)=>{const a=o?.[t.id],i="yes"===a,s="no"===a,c=!!r;/* @__PURE__ */
154
+ return m("div",{className:"flex items-center justify-between gap-2 px-3 py-2 cursor-default",style:{backgroundColor:he,borderTop:e.key||n>0?`1px solid ${T.border}`:void 0},children:[/* @__PURE__ */m("div",{className:"min-w-0 flex-1 flex items-start gap-2",children:[rl(t,N,e.key),/* @__PURE__ */u("p",{className:"text-xs sm:text-sm break-words leading-snug",style:{color:U},children:t.description})]}),/* @__PURE__ */m("div",{className:"flex flex-shrink-0 items-center gap-1.5",children:[c?/* @__PURE__ */u(Ge,{theme:P,size:"xs",value:i?"yes":s?"no":null,onYes:()=>r(t.id,"yes"),onNo:()=>r(t.id,"no")}):a?/* @__PURE__ */u(We,{theme:P,value:"yes"===a?"yes":"no",size:"sm",style:{flexShrink:0}}):null,ae&&l&&/* @__PURE__ */u("button",{type:"button","aria-label":"Remove selection",onClick:()=>{a&&r?.(t.id,a),l(t.id)},onMouseEnter:()=>le(t.id),onMouseLeave:()=>le(null),className:"flex-shrink-0 flex items-center justify-center",style:{width:44,height:44,background:"none",border:"none",padding:0,cursor:"pointer"},children:/* @__PURE__ */u("span",{className:"flex items-center justify-center rounded-full transition-colors",style:{width:26,height:26,color:re===t.id?"#fff":T.textMuted,backgroundColor:re===t.id?T.error:"transparent"},children:/* @__PURE__ */u("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",strokeWidth:"2.5",viewBox:"0 0 24 24",children:/* @__PURE__ */u("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})})]})]},t.id)})]},e.key??`solo-${e.props[0].id}`))})]}),de&&/* @__PURE__ */m("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:T.textMuted},children:[/* @__PURE__ */u("span",{"aria-hidden":!0,children:"↓"}),"Scroll down to set your bet and place your entry"]}),M?/* @__PURE__ */m(d,{children:[/* @__PURE__ */m("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:D,borderColor:T.border,boxShadow:j(P)},children:[
155
+ /* @__PURE__ */m("div",{className:"flex items-center justify-between mb-3 sm:mb-4",children:[/* @__PURE__ */u("h3",{className:"text-base sm:text-lg font-semibold",style:{color:Y,fontFamily:E},children:"How much are you betting?"}),null!=S&&/* @__PURE__ */m("span",{className:"text-xs font-semibold",style:{color:T.textMuted},children:["Balance: ",/* @__PURE__ */u("span",{style:{color:ce?T.error:T.success},children:vt(S)})]})]}),ce&&/* @__PURE__ */m("div",{className:"mb-3 px-3 py-2 rounded-lg flex items-center justify-between gap-3",style:{backgroundColor:T.errorBg??`${T.error}15`,color:T.errorText??T.error},children:[/* @__PURE__ */m("span",{className:"text-xs font-medium",children:["Insufficient balance. Your bet of ",vt(x)," exceeds your available ",vt(S),"."]}),z&&/* @__PURE__ */u("button",{type:"button",onClick:z,className:"text-xs font-semibold px-3 py-1 rounded-md whitespace-nowrap",style:{backgroundColor:T.error,color:T.buttonPrimaryText??"#fff",cursor:"pointer"},children:"Add funds"})]}),/* @__PURE__ */m("div",F?{className:"flex items-center justify-between gap-3 rounded-lg px-3 py-2.5",style:{backgroundColor:T.backgroundAlt,border:`1px solid ${T.border}`},children:[/* @__PURE__ */u("span",{className:"text-xs",style:{color:T.textMuted},children:B??"Stake is set for this ticket."}),/* @__PURE__ */u("span",{className:"text-lg font-bold tabular-nums",style:{color:Y,fontFamily:E},children:vt(x)})]}:{className:"space-y-4",children:[C&&/* @__PURE__ */m("div",{children:[
156
+ /* @__PURE__ */u("p",{className:"text-xs sm:text-sm font-semibold mb-2",style:{color:H},children:"Entry amount"}),
157
+ /* @__PURE__ */m("div",{className:"relative",children:[/* @__PURE__ */u("span",{className:"absolute left-3 top-1/2 -translate-y-1/2",style:{color:T.textMuted},children:"$"}),/* @__PURE__ */u("input",{type:"number",inputMode:"decimal",min:Z,max:q??void 0,step:"any",placeholder:"Enter amount","aria-label":"Entry amount",value:x||"",onChange:e=>{if(""===e.target.value)return void g(0);const t=Number(e.target.value);if(!Number.isFinite(t))return;const n=Math.max(0,Math.round(100*t)/100);g(null!==q?Math.min(n,q):n)},onFocus:e=>{e.currentTarget.style.borderColor=T.borderFocus??T.primary},onBlur:e=>{e.currentTarget.style.borderColor=T.border},className:"w-full pl-8 pr-4 py-3 border rounded-lg focus:outline-none text-lg font-semibold tabular-nums",style:{borderColor:T.border,color:U,backgroundColor:T.backgroundAlt,fontFamily:O,transition:"border-color .15s ease"}})]}),
158
+ /* @__PURE__ */m("p",{className:"text-xs mt-1.5",style:{color:T.textMuted},children:["Minimum bet: ",vt(Z),null!==q&&/* @__PURE__ */m(d,{children:[" · Maximum: ",vt(q)]})]}),x>0&&x<Z&&/* @__PURE__ */m("p",{className:"text-xs mt-1",style:{color:T.error},children:["Bet amount must be at least ",vt(Z)]})]}),/* @__PURE__ */m("div",{children:[(C||x>0)&&/* @__PURE__ */m("div",{className:"flex items-center justify-between mb-2",children:[C?/* @__PURE__ */u("p",{className:"text-xs sm:text-sm font-semibold",style:{color:H},children:"Add to bet"}):/* @__PURE__ */u("span",{}),x>0&&/* @__PURE__ */u("button",{type:"button",onClick:()=>g(0),className:"text-xs font-semibold px-2.5 py-1 rounded-md transition-colors",style:{color:T.textMuted,backgroundColor:T.backgroundAlt,border:`1.5px solid ${T.border}`,cursor:"pointer"},children:"Clear bet"})]}),/* @__PURE__ */u("div",{style:{display:"grid",gridTemplateColumns:`repeat(${Math.max(J.length,1)}, minmax(0, 1fr))`,gap:8},children:J.map(e=>{const t=null!==q&&x>=q;/* @__PURE__ */
159
+ return m("button",{type:"button",onClick:()=>{const t=x+e;g(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:U,backgroundColor:"transparent",border:`1px solid ${T.border}`,cursor:t?"not-allowed":"pointer",opacity:t?.5:1},children:["+",vt(e)]},e)})})]})]})]}),/* @__PURE__ */u("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:D,borderColor:T.border,boxShadow:j(P)},children:(()=>{const e=w&&!!a,t=/* @__PURE__ */m(d,{children:[
160
+ /* @__PURE__ */m("div",{className:"flex justify-between items-center text-sm mb-1",children:[/* @__PURE__ */u("span",{style:{color:H},children:"Bet"}),/* @__PURE__ */u("span",{className:"font-semibold",style:{color:I},children:vt(x)})]}),te>0&&/* @__PURE__ */m("div",{className:"flex flex-wrap gap-x-2 justify-between items-center pt-2 border-t",style:{borderColor:T.border},children:[/* @__PURE__ */u("span",{className:"font-semibold text-sm",style:{color:H},children:"Potential Payout"}),/* @__PURE__ */m("span",{className:"font-bold text-lg",style:{color:Y},children:[vt(te),oe&&/* @__PURE__ */u("span",{className:"text-xs ml-1",style:{color:T.warning},children:"+ Jackpot"})]})]}),ne.enabled&&/* @__PURE__ */m("div",{className:"flex justify-between items-center mt-2 rounded px-2 py-1.5",style:{backgroundColor:`${T.warning}08`,border:`1px solid ${T.warning}25`},children:[/* @__PURE__ */m("span",{className:"text-xs font-semibold",style:{color:T.warning},children:["★ ",ne.progressive?"Progressive Jackpot":"Jackpot"]}),/* @__PURE__ */u("span",{className:"text-sm font-bold",style:{color:T.warning},children:ne.progressive?ne.amount>0?vt(ne.amount):ne.limit>0?`Up to ${vt(ne.limit)}`:"Progressive":vt(ne.amount)})]})]});return e?/* @__PURE__ */m("div",{className:"flex items-stretch gap-4",children:[
129
161
  /* @__PURE__ */u("div",{className:"flex-1 min-w-0",children:t}),
130
- /* @__PURE__ */u("div",{className:"w-px self-stretch",style:{backgroundColor:E.border}}),
131
- /* @__PURE__ */u("button",{type:"button",onClick:a,disabled:ie,"aria-busy":s,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:E.buttonPrimaryText,backgroundColor:E.buttonPrimary,cursor:ie?"not-allowed":"pointer",minWidth:120},children:s?/* @__PURE__ */m("span",{className:"flex flex-col items-center gap-2",children:[/* @__PURE__ */u(nn,{color:E.buttonPrimaryText}),/* @__PURE__ */u("span",{children:"Placing Entry…"})]}):/* @__PURE__ */m(d,{children:[/* @__PURE__ */u("span",{className:"text-base font-bold leading-tight",children:"Place Entry"}),/* @__PURE__ */u("span",{className:"text-xs opacity-90 leading-tight mt-0.5",children:ht(x)})]})})]}):t})()})]}):/* @__PURE__ */m("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:j,borderColor:E.border,boxShadow:he(T)},children:[
132
- /* @__PURE__ */u("h3",{className:"text-base sm:text-lg font-semibold",style:{color:I,fontFamily:H},children:"Log in to place this entry"}),
133
- /* @__PURE__ */u("p",{className:"text-xs sm:text-sm mt-1 mb-4",style:{color:E.textMuted},children:"Your picks are held. Log in to set your bet and confirm."}),
134
- /* @__PURE__ */u("button",{type:"button",onClick:a,className:"w-full px-6 py-3 rounded-lg text-sm font-semibold transition-colors",style:{color:E.buttonPrimaryText,backgroundColor:E.buttonPrimary,cursor:"pointer"},children:"Log in"})]}),p&&/* @__PURE__ */u("div",{className:"rounded-lg p-3",style:{backgroundColor:E.errorBg,border:`1px solid ${E.error}`},children:/* @__PURE__ */u("p",{className:"text-sm",style:{color:E.errorText},children:p})}),!w&&/* @__PURE__ */m("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:E.border,backgroundColor:E.background},children:[/* @__PURE__ */u(je,{theme:T,variant:"secondary",disabled:s,onPress:i,children:"Back"}),/* @__PURE__ */u("button",{type:"button",onClick:a,disabled:ie,"aria-busy":s,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:E.buttonPrimaryText,backgroundColor:E.buttonPrimary,cursor:ie?"not-allowed":"pointer"},children:s?/* @__PURE__ */m(d,{children:[/* @__PURE__ */u(nn,{color:E.buttonPrimaryText}),/* @__PURE__ */u("span",{children:"Placing Entry…"})]}):/* @__PURE__ */u("span",{children:`Place Entry (${ht(x)})`})})]})]})}function Go({game:e,totalSelections:t,expectedCorrect:n,className:o="",onExpectedCorrectChange:r,theme:l=Z,colorWinning:a,colorNone:i,winningCounts:s,payouts:c}){const d=l.colors,p=a??d.payoutWinning,f=i??d.payoutNone,h=At(e);/* @__PURE__ */
162
+ /* @__PURE__ */u("div",{className:"w-px self-stretch",style:{backgroundColor:T.border}}),
163
+ /* @__PURE__ */u("button",{type:"button",onClick:a,disabled:se,"aria-busy":s,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:T.buttonPrimaryText,backgroundColor:T.buttonPrimary,cursor:se?"not-allowed":"pointer",minWidth:120},children:s?/* @__PURE__ */m("span",{className:"flex flex-col items-center gap-2",children:[/* @__PURE__ */u(mn,{color:T.buttonPrimaryText}),/* @__PURE__ */u("span",{children:"Placing Entry…"})]}):/* @__PURE__ */m(d,{children:[/* @__PURE__ */u("span",{className:"text-base font-bold leading-tight",children:"Place Entry"}),/* @__PURE__ */u("span",{className:"text-xs opacity-90 leading-tight mt-0.5",children:vt(x)})]})})]}):t})()})]}):/* @__PURE__ */m("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:D,borderColor:T.border,boxShadow:j(P)},children:[
164
+ /* @__PURE__ */u("h3",{className:"text-base sm:text-lg font-semibold",style:{color:Y,fontFamily:E},children:"Log in to place this entry"}),
165
+ /* @__PURE__ */u("p",{className:"text-xs sm:text-sm mt-1 mb-4",style:{color:T.textMuted},children:"Your picks are held. Log in to set your bet and confirm."}),
166
+ /* @__PURE__ */u("button",{type:"button",onClick:a,className:"w-full px-6 py-3 rounded-lg text-sm font-semibold transition-colors",style:{color:T.buttonPrimaryText,backgroundColor:T.buttonPrimary,cursor:"pointer"},children:"Log in"})]}),p&&/* @__PURE__ */u("div",{className:"rounded-lg p-3",style:{backgroundColor:T.errorBg,border:`1px solid ${T.error}`},children:/* @__PURE__ */u("p",{className:"text-sm",style:{color:T.errorText},children:p})}),!w&&/* @__PURE__ */m("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:T.border,backgroundColor:T.background},children:[/* @__PURE__ */u(Ye,{theme:P,variant:"secondary",disabled:s,onPress:i,children:"Back"}),/* @__PURE__ */u("button",{type:"button",onClick:a,disabled:se,"aria-busy":s,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:T.buttonPrimaryText,backgroundColor:T.buttonPrimary,cursor:se?"not-allowed":"pointer"},children:s?/* @__PURE__ */m(d,{children:[/* @__PURE__ */u(mn,{color:T.buttonPrimaryText}),/* @__PURE__ */u("span",{children:"Placing Entry…"})]}):/* @__PURE__ */u("span",{children:`Place Entry (${vt(x)})`})})]})]})}function ul({game:e,totalSelections:t,expectedCorrect:n,className:o="",onExpectedCorrectChange:r,theme:l=te,colorWinning:a,colorNone:i,winningCounts:s,payouts:c}){const d=l.colors,p=a??d.payoutWinning,h=i??d.payoutNone,f=Dt(e);/* @__PURE__ */
135
167
  return m("div",{className:`space-y-4 ${o}`,children:[
136
- /* @__PURE__ */u("h4",{className:"text-sm font-semibold text-center",style:{color:d.textMuted},children:"Payout Visualization"}),h.enabled&&/* @__PURE__ */m("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, ${d.warning}18, ${d.warning}08)`,color:d.warning,border:`1px solid ${d.warning}30`},children:[/* @__PURE__ */u("svg",{className:"w-4 h-4 flex-shrink-0",viewBox:"0 0 24 24",fill:"currentColor",children:/* @__PURE__ */u("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"})}),/* @__PURE__ */u("span",{children:h.progressive?h.amount>0?`Progressive Jackpot: ${ht(h.amount)}${h.limit>0?` (up to ${ht(h.limit)})`:""} for a perfect pick!`:h.limit>0?`Progressive Jackpot — up to ${ht(h.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${ht(h.amount)} for a perfect pick!`})]}),
137
- /* @__PURE__ */u("div",{className:"flex flex-wrap gap-1.5 sm:gap-2 justify-center",children:Array.from({length:t+1},(e,o)=>{const l=s.includes(o),a=c[o]??0,i=a>0,x=o===t,g=h.enabled&&x,y=g?d.warning:l?p:f,b=o===n;/* @__PURE__ */
138
- return m("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 ${g?"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:y,borderColor:g?d.warning:l?y:void 0,color:l||g?"#ffffff":d.textMuted,zIndex:b?10:g?6:l?5:1,...g?{"--tw-ring-color":`${d.warning}80`}:{},...b?{outline:`3px solid ${d.primary}`,outlineOffset:"3px"}:{}},title:g?h.progressive?`${o} correct wins PROGRESSIVE JACKPOT${h.amount>0?` (currently ${ht(h.amount)})`:""}${h.limit>0?` — up to ${ht(h.limit)}`:""} + ${ht(a)}\nClick to select`:`${o} correct wins JACKPOT ${ht(h.amount)} + ${ht(a)}\nClick to select`:l?`${o} correct wins ${ht(a)}\nClick to select`:i?`${o} correct pays ${ht(a)} but does not win\nClick to select`:`${o} correct - no payout\nClick to select`,children:[g&&/* @__PURE__ */u("div",{className:"absolute -top-1.5 -right-1.5",children:/* @__PURE__ */u("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:d.warning,stroke:d.warning,strokeWidth:"1",children:/* @__PURE__ */u("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"})})}),
139
- /* @__PURE__ */u("div",{className:"text-sm sm:text-base leading-none",children:o}),a>0?/* @__PURE__ */u("div",{className:"text-[7px] sm:text-[8px] font-normal leading-none",children:ht(a)}):null]},o)})}),
140
- /* @__PURE__ */u("div",{className:"text-xs text-center",style:{color:d.textMuted},children:/* @__PURE__ */m("p",{children:["Your expected: ",/* @__PURE__ */m("span",{className:"font-semibold",children:[n," correct"]})]})})]})}function Wo({iconUrl:e,gameName:t,chipColor:n,textColor:o,iconColor:r,accentColor:l,brandColor:a,height:i=56,showTrademark:s=!0,className:c,compact:p=!1,onPress:f}){const h=n??a??"#0F4C5C",x=.85*i,g=1.8*x,y=x/2,b=.05*x,w=.18*x,k={display:"inline-flex",alignItems:"center",flexWrap:"wrap",gap:.2*i,color:o??h,fontFamily:"Manrope, Poppins, sans-serif",fontSize:i,lineHeight:1.15,maxWidth:"100%",minWidth:0},v=/* @__PURE__ */m(d,{children:[
168
+ /* @__PURE__ */u("h4",{className:"text-sm font-semibold text-center",style:{color:d.textMuted},children:"Payout Visualization"}),f.enabled&&/* @__PURE__ */m("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, ${d.warning}18, ${d.warning}08)`,color:d.warning,border:`1px solid ${d.warning}30`},children:[/* @__PURE__ */u("svg",{className:"w-4 h-4 flex-shrink-0",viewBox:"0 0 24 24",fill:"currentColor",children:/* @__PURE__ */u("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"})}),/* @__PURE__ */u("span",{children:f.progressive?f.amount>0?`Progressive Jackpot: ${vt(f.amount)}${f.limit>0?` (up to ${vt(f.limit)})`:""} for a perfect pick!`:f.limit>0?`Progressive Jackpot — up to ${vt(f.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${vt(f.amount)} for a perfect pick!`})]}),
169
+ /* @__PURE__ */u("div",{className:"flex flex-wrap gap-1.5 sm:gap-2 justify-center",children:Array.from({length:t+1},(e,o)=>{const l=s.includes(o),a=c[o]??0,i=a>0,x=o===t,g=f.enabled&&x,y=g?d.warning:l?p:h,b=o===n;/* @__PURE__ */
170
+ return m("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 ${g?"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:y,borderColor:g?d.warning:l?y:void 0,color:l||g?"#ffffff":d.textMuted,zIndex:b?10:g?6:l?5:1,...g?{"--tw-ring-color":`${d.warning}80`}:{},...b?{outline:`3px solid ${d.primary}`,outlineOffset:"3px"}:{}},title:g?f.progressive?`${o} correct wins PROGRESSIVE JACKPOT${f.amount>0?` (currently ${vt(f.amount)})`:""}${f.limit>0?` — up to ${vt(f.limit)}`:""} + ${vt(a)}\nClick to select`:`${o} correct wins JACKPOT ${vt(f.amount)} + ${vt(a)}\nClick to select`:l?`${o} correct wins ${vt(a)}\nClick to select`:i?`${o} correct pays ${vt(a)} but does not win\nClick to select`:`${o} correct - no payout\nClick to select`,children:[g&&/* @__PURE__ */u("div",{className:"absolute -top-1.5 -right-1.5",children:/* @__PURE__ */u("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:d.warning,stroke:d.warning,strokeWidth:"1",children:/* @__PURE__ */u("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"})})}),
171
+ /* @__PURE__ */u("div",{className:"text-sm sm:text-base leading-none",children:o}),a>0?/* @__PURE__ */u("div",{className:"text-[7px] sm:text-[8px] font-normal leading-none",children:vt(a)}):null]},o)})}),
172
+ /* @__PURE__ */u("div",{className:"text-xs text-center",style:{color:d.textMuted},children:/* @__PURE__ */m("p",{children:["Your expected: ",/* @__PURE__ */m("span",{className:"font-semibold",children:[n," correct"]})]})})]})}function ml({iconUrl:e,gameName:t,chipColor:n,textColor:o,iconColor:r,accentColor:l,brandColor:a,height:i=56,showTrademark:s=!0,className:c,compact:p=!1,onPress:h}){const f=n??a??"#0F4C5C",x=.85*i,g=1.8*x,y=x/2,b=.05*x,w=.18*x,k={display:"inline-flex",alignItems:"center",flexWrap:"wrap",gap:.2*i,color:o??f,fontFamily:"Manrope, Poppins, sans-serif",fontSize:i,lineHeight:1.15,maxWidth:"100%",minWidth:0},v=/* @__PURE__ */m(d,{children:[
141
173
  /* @__PURE__ */m("span",{"aria-label":"YESNO",style:{letterSpacing:-1,whiteSpace:"nowrap"},children:[/* @__PURE__ */u("span",{style:{fontWeight:900},children:"YES"}),/* @__PURE__ */u("span",{style:{fontWeight:300},children:"NO"})]}),
142
- /* @__PURE__ */u("span",{role:"img","aria-label":t,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:g,height:x,borderRadius:y,backgroundColor:h,flexShrink:0,transform:`translateY(${.06*-i}px)`},children:/* @__PURE__ */u(Qt,{iconUrl:e,width:g-2*w,height:x-2*b,iconColor:r,accentColor:l})}),
143
- /* @__PURE__ */m("span",{style:{fontWeight:500,whiteSpace:"normal",wordBreak:"break-word",minWidth:0,flexShrink:1},children:[t,s&&/* @__PURE__ */u("span",{style:{fontSize:"0.3em",fontWeight:600,marginLeft:"0.2em",display:"inline-block",transform:"translateY(-1.8em)"},children:"TM"})]})]});return f?/* @__PURE__ */u("button",{type:"button",onClick:f,className:c,"aria-label":`Play ${t}`,"data-testid":"brand-logo-play",style:{...k,background:"none",border:"none",padding:0,cursor:"pointer",textAlign:"left"},children:v}):/* @__PURE__ */u("div",{className:c,style:k,children:v})}function Io({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,demoEntries:a,demoGames:d,demoPropositions:p,onSelectEntry:f,theme:h,colorScheme:x,className:g="",renderTeamLogo:y,filterSport:b}){const w=se(h,x),k=!!(a&&d&&p),v=w.colors,N=ye(w),F=be(w),[B,C]=c("pending"),[A,M]=c([]),S=i(()=>new fo({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:z,loading:L,error:P,refetch:D}=yo(S,{user_id:r},{skip:k}),{games:O,loading:T,error:E}=ho(S,void 0,{skip:k}),{propositions:j,loading:Y,error:H}=xo(S,void 0,{skip:k}),R=k?a:z,G=k?d:O,W=k?p:j,U=!k&&(L||T||Y),K=k?null:P||E||H,Z=i(()=>R.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}),[R]),$=i(()=>{const e=/* @__PURE__ */new Map;for(const t of G)e.set(t.id,t);return e},[G]),q=i(()=>{const e=/* @__PURE__ */new Map;for(const t of W)e.set(t.id,t);for(const t of Z)if(t.propositions)for(const n of t.propositions)e.has(n.id)||e.set(n.id,n);for(const t of A)e.set(t.id,t);return e},[W,Z,A]),V=s(/* @__PURE__ */new Set);l(()=>{if(U||k)return;const e=[];for(const n of Z)for(const t of n.proposition_ids??[])q.has(t)||V.current.has(t)||(e.push(t),V.current.add(t));if(0===e.length)return;let t=!1;return(async()=>{try{const n=await S.getPropositionsByIds(e);!t&&n.length>0&&M(e=>[...e,...n])}catch{}})(),()=>{t=!0}},[Z,q,U,k,S]);const X=i(()=>b?Z.filter(e=>{const t=e.proposition_ids??[];return 0===t.length||t.some(t=>(q.get(t)??e.propositions?.find(e=>e.id===t))?.sport===b)}):Z,[Z,b,q]),Q=i(()=>X.filter(e=>ft(e.pending)),[X]),J=i(()=>X.filter(e=>!ft(e.pending)),[X]),_="pending"===B?Q:J,ee=["flex-1",g].filter(Boolean).join(" ");return U?/* @__PURE__ */u("div",{className:ee,style:{fontFamily:N},role:"status","aria-label":"Loading entries",children:/* @__PURE__ */u(hn,{colors:I(w),rows:2})}):K?/* @__PURE__ */u("div",{className:ee,style:{fontFamily:N},children:/* @__PURE__ */m("div",{className:"rounded-lg p-4",style:{backgroundColor:v.errorBg,border:`1px solid ${v.error}`},children:[/* @__PURE__ */u("p",{style:{color:v.errorText},children:K}),/* @__PURE__ */u("button",{type:"button",onClick:D,className:"mt-2 text-sm font-medium underline",style:{color:v.error,cursor:"pointer"},children:"Try again"})]})}):/* @__PURE__ */m("div",{className:ee,style:{fontFamily:N},children:[
144
- /* @__PURE__ */u("div",{className:"flex border-b mb-4",style:{borderColor:v.border},role:"tablist",children:["pending","completed"].map(e=>{const t=B===e,n="pending"===e?Q.length:J.length;/* @__PURE__ */
145
- return m("button",{role:"tab","aria-selected":t,type:"button",onClick:()=>C(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?v.primary:"transparent",color:t?v.primary:v.textMuted,cursor:"pointer",fontFamily:F},children:["pending"===e?"Pending":"Completed",/* @__PURE__ */u("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?`${v.primary}15`:v.backgroundAlt,color:t?v.primary:v.textMuted},children:n})]},e)})}),0===_.length&&/* @__PURE__ */m("div",{className:"flex flex-col items-center justify-center py-12 px-4 text-center",children:[
146
- /* @__PURE__ */u("svg",{className:"w-12 h-12 mb-4",fill:"none",stroke:v.textMuted,strokeWidth:"1.5",viewBox:"0 0 24 24",children:/* @__PURE__ */u("path","pending"===B?{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6l4 2m6-2a10 10 0 1 1-20 0 10 10 0 0 1 20 0z"}:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m6 2a10 10 0 1 1-20 0 10 10 0 0 1 20 0z"})}),
147
- /* @__PURE__ */u("p",{className:"text-base font-medium",style:{color:v.text},children:"pending"===B?"No pending entries":"No completed entries"}),
148
- /* @__PURE__ */u("p",{className:"text-sm mt-1",style:{color:v.textMuted},children:"pending"===B?"Entries awaiting results will appear here":"Settled entries will appear here"})]}),
149
- /* @__PURE__ */u("div",{className:"space-y-3",children:_.map(e=>/* @__PURE__ */u(Uo,{entry:e,game:$.get(e.game_id),propositionsById:q,onSelect:f,theme:w,renderTeamLogo:y},e.id))})]})}function Uo({entry:e,game:t,propositionsById:n,onSelect:o,theme:r,renderTeamLogo:l}){const a=r.colors,s=R(r),p=be(r),f=e.proposition_ids??[],h=i(()=>f.map(e=>n.get(e)).filter(Boolean),[f,n]),x=f.length,g=i(()=>{const t=/* @__PURE__ */new Map;for(const n of e.propositions??[])t.set(n.id,n);return t},[e.propositions]),y=t=>{const o=e.selections?.[t];return null!=o?o:g.get(t)?.user_prediction??n.get(t)?.user_prediction},b=h.filter(e=>null!=e.result&&!e.is_voided).length,w=h.filter(e=>{if(null==e.result||e.is_voided)return!1;const t=y(e.id);return null!=t&&t===e.result}).length,k=null!=e.selections&&Object.keys(e.selections).length>0||(e.propositions??[]).some(e=>null!=e.user_prediction),v=ft(e.pending),N=!v&&pt(e.winning)>0,F=e.payout_status,B="fulfilled"===F&&N,C=v?"Pending":B?"Won — pay due":"paid_out"===F&&N?"Paid":N?"Won":"Lost",A=v||B?a.warningBg:N?a.successBg:a.errorBg,M=v||B?a.warningText:N?a.successText:a.errorText,[S,z]=c(!1),L=x>0;/* @__PURE__ */
150
- return m("div",{className:"rounded-xl border overflow-hidden transition-colors",style:{borderColor:a.border,backgroundColor:s,boxShadow:he(r)},children:[/* @__PURE__ */m("button",{type:"button","data-testid":"entry-card",onClick:()=>{L&&z(e=>!e),o?.({entry:e,game:t,propositions:h})},"aria-label":`Entry #${e.id}`,"aria-expanded":L?S:void 0,className:"w-full text-left px-4 py-3 flex items-center justify-between gap-3",style:{cursor:L||o?"pointer":"default",background:"none",border:"none"},children:[/* @__PURE__ */m("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?/* @__PURE__ */u(Wo,{iconUrl:Ae(t),gameName:n,height:18,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:r.brand?.accent}):/* @__PURE__ */u("h3",{className:"text-base font-semibold truncate",style:{color:a.text,fontFamily:p},children:n})})(),/* @__PURE__ */m("div",{className:"flex items-center gap-2 mt-0.5",children:[(e.created_at||e.entry_date)&&/* @__PURE__ */u("span",{className:"text-xs",style:{color:a.textMuted},children:xt(e.created_at||e.entry_date)}),x>0&&/* @__PURE__ */m(d,{children:[/* @__PURE__ */u("span",{className:"text-xs",style:{color:a.textMuted},children:"·"}),/* @__PURE__ */u("span",{className:"text-xs font-medium",style:{color:k&&b>0?w>0?a.success:a.error:a.textMuted},children:k&&b>0?`${w}/${x} correct`:`${x} pick${1!==x?"s":""}`})]})]})]}),/* @__PURE__ */m("div",{className:"flex items-center gap-3 flex-shrink-0",children:[
151
- /* @__PURE__ */m("div",{className:"text-right",children:[pt(e.bet_amount)>0&&/* @__PURE__ */u("p",{className:"text-xs",style:{color:a.textMuted},children:ht(pt(e.bet_amount))}),!v&&pt(e.winning)>0&&/* @__PURE__ */m("p",{className:"text-sm font-bold",style:{color:a.success},children:[ht(pt(e.winning)),(e.payout_jackpot??0)>0&&/* @__PURE__ */m("span",{className:"block text-xs font-normal",style:{color:a.textMuted},children:["incl. ",ht(pt(e.payout_jackpot))," jackpot"]})]})]}),
152
- /* @__PURE__ */u("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-bold uppercase tracking-wide",style:{backgroundColor:A,color:M},children:C}),L&&/* @__PURE__ */u("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:S?"rotate(180deg)":"none"},children:/* @__PURE__ */u("path",{d:"m6 9 6 6 6-6"})})]})]}),S&&x>0&&/* @__PURE__ */u("div",{className:"border-t divide-y",style:{borderColor:a.border},children:f.map(t=>{const o=(t=>n.get(t)??e.propositions?.find(e=>e.id===t))(t),i=y(t);if(!o)/* @__PURE__ */return m("div",{className:"px-4 py-2.5 flex items-center gap-3",style:{borderColor:a.border},children:[/* @__PURE__ */u("div",{className:"flex-1 min-w-0",children:/* @__PURE__ */m("p",{className:"text-sm",style:{color:a.textMuted},children:["Loading proposition #",t,"…"]})}),null!=i&&/* @__PURE__ */u(Ge,{theme:r,value:"yes"===i?"yes":"no",size:"sm"})]},t);const s=o.result,c=null!=s,d=!!o.is_voided,p=c&&!d&&null!=i&&i===s;let f,h,x;d?(f="Void",h=`${a.textMuted}20`,x=a.textMuted):c?p?(f="Won",h=a.successBg,x=a.successText):(f="Lost",h=a.errorBg,x=a.errorText):(f="Pending",h=a.warningBg,x=a.warningText);const g=kt(o)?void 0:o.home_team;/* @__PURE__ */
174
+ /* @__PURE__ */u("span",{role:"img","aria-label":t,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:g,height:x,borderRadius:y,backgroundColor:f,flexShrink:0,transform:`translateY(${.06*-i}px)`},children:/* @__PURE__ */u(an,{iconUrl:e,width:g-2*w,height:x-2*b,iconColor:r,accentColor:l})}),
175
+ /* @__PURE__ */m("span",{style:{fontWeight:500,whiteSpace:"normal",wordBreak:"break-word",minWidth:0,flexShrink:1},children:[t,s&&/* @__PURE__ */u("span",{style:{fontSize:"0.3em",fontWeight:600,marginLeft:"0.2em",display:"inline-block",transform:"translateY(-1.8em)"},children:"TM"})]})]});return h?/* @__PURE__ */u("button",{type:"button",onClick:h,className:c,"aria-label":`Play ${t}`,"data-testid":"brand-logo-play",style:{...k,background:"none",border:"none",padding:0,cursor:"pointer",textAlign:"left"},children:v}):/* @__PURE__ */u("div",{className:c,style:k,children:v})}function pl({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,demoEntries:a,demoGames:d,demoPropositions:p,onSelectEntry:h,theme:f,colorScheme:x,className:g="",renderTeamLogo:y,filterSport:b}){const w=ge(f,x),k=!!(a&&d&&p),v=w.colors,N=ye(w),C=be(w),[F,B]=c("pending"),[A,M]=c([]),S=i(()=>new Ao({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:z,loading:L,error:P,refetch:T}=Lo(S,{user_id:r},{skip:k}),{games:D,loading:O,error:E}=Mo(S,void 0,{skip:k}),{propositions:j,loading:Y,error:H}=So(S,void 0,{skip:k}),R=k?a:z,G=k?d:D,W=k?p:j,I=!k&&(L||O||Y),U=k?null:P||E||H,$=i(()=>R.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}),[R]),K=i(()=>{const e=/* @__PURE__ */new Map;for(const t of G)e.set(t.id,t);return e},[G]),Z=i(()=>{const e=/* @__PURE__ */new Map;for(const t of W)e.set(t.id,t);for(const t of $)if(t.propositions)for(const n of t.propositions)e.has(n.id)||e.set(n.id,n);for(const t of A)e.set(t.id,t);return e},[W,$,A]),q=s(/* @__PURE__ */new Set);l(()=>{if(I||k)return;const e=[];for(const n of $)for(const t of n.proposition_ids??[])Z.has(t)||q.current.has(t)||(e.push(t),q.current.add(t));if(0===e.length)return;let t=!1;return(async()=>{try{const n=await S.getPropositionsByIds(e);!t&&n.length>0&&M(e=>[...e,...n])}catch{}})(),()=>{t=!0}},[$,Z,I,k,S]);const V=i(()=>b?$.filter(e=>{const t=e.proposition_ids??[];return 0===t.length||t.some(t=>(Z.get(t)??e.propositions?.find(e=>e.id===t))?.sport===b)}):$,[$,b,Z]),X=i(()=>V.filter(e=>kt(e.pending)),[V]),Q=i(()=>V.filter(e=>!kt(e.pending)),[V]),_="pending"===F?X:Q,ee=["flex-1",g].filter(Boolean).join(" ");return I?/* @__PURE__ */u("div",{className:ee,style:{fontFamily:N},role:"status","aria-label":"Loading entries",children:/* @__PURE__ */u(Cn,{colors:J(w),rows:2})}):U?/* @__PURE__ */u("div",{className:ee,style:{fontFamily:N},children:/* @__PURE__ */m("div",{className:"rounded-lg p-4",style:{backgroundColor:v.errorBg,border:`1px solid ${v.error}`},children:[/* @__PURE__ */u("p",{style:{color:v.errorText},children:U}),/* @__PURE__ */u("button",{type:"button",onClick:T,className:"mt-2 text-sm font-medium underline",style:{color:v.error,cursor:"pointer"},children:"Try again"})]})}):/* @__PURE__ */m("div",{className:ee,style:{fontFamily:N},children:[
176
+ /* @__PURE__ */u("div",{className:"flex border-b mb-4",style:{borderColor:v.border},role:"tablist",children:["pending","completed"].map(e=>{const t=F===e,n="pending"===e?X.length:Q.length;/* @__PURE__ */
177
+ return m("button",{role:"tab","aria-selected":t,type:"button",onClick:()=>B(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?v.primary:"transparent",color:t?v.primary:v.textMuted,cursor:"pointer",fontFamily:C},children:["pending"===e?"Pending":"Completed",/* @__PURE__ */u("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?`${v.primary}15`:v.backgroundAlt,color:t?v.primary:v.textMuted},children:n})]},e)})}),0===_.length&&/* @__PURE__ */m("div",{className:"flex flex-col items-center justify-center py-12 px-4 text-center",children:[
178
+ /* @__PURE__ */u("svg",{className:"w-12 h-12 mb-4",fill:"none",stroke:v.textMuted,strokeWidth:"1.5",viewBox:"0 0 24 24",children:/* @__PURE__ */u("path","pending"===F?{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6l4 2m6-2a10 10 0 1 1-20 0 10 10 0 0 1 20 0z"}:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m6 2a10 10 0 1 1-20 0 10 10 0 0 1 20 0z"})}),
179
+ /* @__PURE__ */u("p",{className:"text-base font-medium",style:{color:v.text},children:"pending"===F?"No pending entries":"No completed entries"}),
180
+ /* @__PURE__ */u("p",{className:"text-sm mt-1",style:{color:v.textMuted},children:"pending"===F?"Entries awaiting results will appear here":"Settled entries will appear here"})]}),
181
+ /* @__PURE__ */u("div",{className:"space-y-3",children:_.map(e=>/* @__PURE__ */u(hl,{entry:e,game:K.get(e.game_id),propositionsById:Z,onSelect:h,theme:w,renderTeamLogo:y},e.id))})]})}function hl({entry:e,game:t,propositionsById:n,onSelect:o,theme:r,renderTeamLogo:l}){const a=r.colors,s=V(r),p=be(r),h=e.proposition_ids??[],f=i(()=>h.map(e=>n.get(e)).filter(Boolean),[h,n]),x=h.length,g=i(()=>{const t=/* @__PURE__ */new Map;for(const n of e.propositions??[])t.set(n.id,n);return t},[e.propositions]),y=t=>{const o=e.selections?.[t];return null!=o?o:g.get(t)?.user_prediction??n.get(t)?.user_prediction},b=f.filter(e=>null!=e.result&&!e.is_voided).length,w=f.filter(e=>{if(null==e.result||e.is_voided)return!1;const t=y(e.id);return null!=t&&t===e.result}).length,k=null!=e.selections&&Object.keys(e.selections).length>0||(e.propositions??[]).some(e=>null!=e.user_prediction),v=kt(e.pending),N=!v&&wt(e.winning)>0,C=e.payout_status,F="fulfilled"===C&&N,B=v?"Pending":F?"Won — pay due":"paid_out"===C&&N?"Paid":N?"Won":"Lost",A=v||F?a.warningBg:N?a.successBg:a.errorBg,M=v||F?a.warningText:N?a.successText:a.errorText,[S,z]=c(!1),L=x>0;/* @__PURE__ */
182
+ return m("div",{className:"rounded-xl border overflow-hidden transition-colors",style:{borderColor:a.border,backgroundColor:s,boxShadow:j(r)},children:[/* @__PURE__ */m("button",{type:"button","data-testid":"entry-card",onClick:()=>{L&&z(e=>!e),o?.({entry:e,game:t,propositions:f})},"aria-label":`Entry #${e.id}`,"aria-expanded":L?S:void 0,className:"w-full text-left px-4 py-3 flex items-center justify-between gap-3",style:{cursor:L||o?"pointer":"default",background:"none",border:"none"},children:[/* @__PURE__ */m("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?/* @__PURE__ */u(ml,{iconUrl:Ae(t),gameName:n,height:18,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:r.brand?.accent}):/* @__PURE__ */u("h3",{className:"text-base font-semibold truncate",style:{color:a.text,fontFamily:p},children:n})})(),/* @__PURE__ */m("div",{className:"flex items-center gap-2 mt-0.5",children:[(e.created_at||e.entry_date)&&/* @__PURE__ */u("span",{className:"text-xs",style:{color:a.textMuted},children:Nt(e.created_at||e.entry_date)}),x>0&&/* @__PURE__ */m(d,{children:[/* @__PURE__ */u("span",{className:"text-xs",style:{color:a.textMuted},children:"·"}),/* @__PURE__ */u("span",{className:"text-xs font-medium",style:{color:k&&b>0?w>0?a.success:a.error:a.textMuted},children:k&&b>0?`${w}/${x} correct`:`${x} pick${1!==x?"s":""}`})]})]})]}),/* @__PURE__ */m("div",{className:"flex items-center gap-3 flex-shrink-0",children:[
183
+ /* @__PURE__ */m("div",{className:"text-right",children:[wt(e.bet_amount)>0&&/* @__PURE__ */u("p",{className:"text-xs",style:{color:a.textMuted},children:vt(wt(e.bet_amount))}),!v&&wt(e.winning)>0&&/* @__PURE__ */m("p",{className:"text-sm font-bold",style:{color:a.success},children:[vt(wt(e.winning)),(e.payout_jackpot??0)>0&&/* @__PURE__ */m("span",{className:"block text-xs font-normal",style:{color:a.textMuted},children:["incl. ",vt(wt(e.payout_jackpot))," jackpot"]})]})]}),
184
+ /* @__PURE__ */u("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-bold uppercase tracking-wide",style:{backgroundColor:A,color:M},children:B}),L&&/* @__PURE__ */u("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:S?"rotate(180deg)":"none"},children:/* @__PURE__ */u("path",{d:"m6 9 6 6 6-6"})})]})]}),S&&x>0&&/* @__PURE__ */u("div",{className:"border-t divide-y",style:{borderColor:a.border},children:h.map(t=>{const o=(t=>n.get(t)??e.propositions?.find(e=>e.id===t))(t),i=y(t);if(!o)/* @__PURE__ */return m("div",{className:"px-4 py-2.5 flex items-center gap-3",style:{borderColor:a.border},children:[/* @__PURE__ */u("div",{className:"flex-1 min-w-0",children:/* @__PURE__ */m("p",{className:"text-sm",style:{color:a.textMuted},children:["Loading proposition #",t,"…"]})}),null!=i&&/* @__PURE__ */u(We,{theme:r,value:"yes"===i?"yes":"no",size:"sm"})]},t);const s=o.result,c=null!=s,d=!!o.is_voided,p=c&&!d&&null!=i&&i===s;let h,f,x;d?(h="Void",f=`${a.textMuted}20`,x=a.textMuted):c?p?(h="Won",f=a.successBg,x=a.successText):(h="Lost",f=a.errorBg,x=a.errorText):(h="Pending",f=a.warningBg,x=a.warningText);const g=Mt(o)?void 0:o.home_team;/* @__PURE__ */
153
185
  return m("div",{className:"px-4 py-2.5 flex items-center gap-3",style:{borderColor:a.border},children:[
154
- /* @__PURE__ */m("div",{className:"flex-1 min-w-0",children:[(o.home_team||o.away_team)&&/* @__PURE__ */m("p",{className:"text-sm font-medium leading-snug flex items-center gap-1.5",style:{color:a.text},children:[l&&g&&l(g),g&&/* @__PURE__ */u("span",{children:g}),g&&o.away_team&&/* @__PURE__ */u("span",{className:"text-xs font-normal",style:{color:a.textMuted},children:"vs"}),l&&o.away_team&&l(o.away_team),o.away_team&&/* @__PURE__ */u("span",{children:o.away_team})]}),(o.proposition||o.description)&&/* @__PURE__ */u("p",{className:"text-xs mt-0.5",style:{color:a.textMuted},children:o.proposition||o.description}),o.commence_time&&/* @__PURE__ */u("p",{className:"text-xs mt-0.5",style:{color:a.textMuted},children:xt(o.commence_time)})]}),
155
- /* @__PURE__ */m("div",{className:"flex flex-col items-center gap-0.5 flex-shrink-0",children:[/* @__PURE__ */u("span",{className:"text-[9px] uppercase tracking-wide font-semibold",style:{color:a.textMuted},children:"Pick"}),null!=i?/* @__PURE__ */u(Ge,{theme:r,value:"yes"===i?"yes":"no",size:"sm"}):/* @__PURE__ */u("span",{className:"text-xs",style:{color:a.textMuted},children:"—"})]}),
156
- /* @__PURE__ */m("div",{className:"flex flex-col items-center gap-0.5 flex-shrink-0",children:[/* @__PURE__ */u("span",{className:"text-[9px] uppercase tracking-wide font-semibold",style:{color:a.textMuted},children:"Result"}),/* @__PURE__ */u("span",{className:"px-2 py-0.5 rounded text-xs font-bold uppercase whitespace-nowrap",style:{backgroundColor:h,color:x},children:f})]})]},t)})})]})}function Ko({className:e=""}){const{theme:t,eventFilterActive:n,eventFilterLabel:o,clearEventFilter:r,gameCategory:l}=Lo();if(!n)return null;const a=t.colors,i=o??("racing"===l?"This race":"This event");/* @__PURE__ */
186
+ /* @__PURE__ */m("div",{className:"flex-1 min-w-0",children:[(o.home_team||o.away_team)&&/* @__PURE__ */m("p",{className:"text-sm font-medium leading-snug flex items-center gap-1.5",style:{color:a.text},children:[l&&g&&l(g),g&&/* @__PURE__ */u("span",{children:g}),g&&o.away_team&&/* @__PURE__ */u("span",{className:"text-xs font-normal",style:{color:a.textMuted},children:"vs"}),l&&o.away_team&&l(o.away_team),o.away_team&&/* @__PURE__ */u("span",{children:o.away_team})]}),(o.proposition||o.description)&&/* @__PURE__ */u("p",{className:"text-xs mt-0.5",style:{color:a.textMuted},children:o.proposition||o.description}),o.commence_time&&/* @__PURE__ */u("p",{className:"text-xs mt-0.5",style:{color:a.textMuted},children:Nt(o.commence_time)})]}),
187
+ /* @__PURE__ */m("div",{className:"flex flex-col items-center gap-0.5 flex-shrink-0",children:[/* @__PURE__ */u("span",{className:"text-[9px] uppercase tracking-wide font-semibold",style:{color:a.textMuted},children:"Pick"}),null!=i?/* @__PURE__ */u(We,{theme:r,value:"yes"===i?"yes":"no",size:"sm"}):/* @__PURE__ */u("span",{className:"text-xs",style:{color:a.textMuted},children:"—"})]}),
188
+ /* @__PURE__ */m("div",{className:"flex flex-col items-center gap-0.5 flex-shrink-0",children:[/* @__PURE__ */u("span",{className:"text-[9px] uppercase tracking-wide font-semibold",style:{color:a.textMuted},children:"Result"}),/* @__PURE__ */u("span",{className:"px-2 py-0.5 rounded text-xs font-bold uppercase whitespace-nowrap",style:{backgroundColor:f,color:x},children:h})]})]},t)})})]})}function fl({className:e=""}){const{theme:t,eventFilterActive:n,eventFilterLabel:o,clearEventFilter:r,gameCategory:l}=zr();if(!n)return null;const a=t.colors,i=o??("racing"===l?"This race":"This event");/* @__PURE__ */
157
189
  return m("div",{className:`mb-4 flex flex-col gap-2 rounded-xl border px-3 py-2.5 sm:flex-row sm:items-center sm:justify-between ${e}`,style:{borderColor:`${a.primary}33`,backgroundColor:`${a.surface}`},children:[/* @__PURE__ */m("div",{className:"min-w-0",children:[
158
190
  /* @__PURE__ */u("p",{className:"text-[10px] font-bold uppercase tracking-[0.12em]",style:{color:a.primary},children:"Event filter"}),
159
191
  /* @__PURE__ */u("p",{className:"truncate text-sm font-semibold",style:{color:a.text},children:i}),
160
- /* @__PURE__ */u("p",{className:"text-xs",style:{color:a.textMuted},children:"Only propositions from this event are shown."})]}),/* @__PURE__ */u("button",{type:"button",onClick:r,className:"shrink-0 self-start rounded-lg border px-3 py-1.5 text-xs font-semibold transition-opacity hover:opacity-90 sm:self-center",style:{borderColor:`${a.primary}44`,backgroundColor:a.background,color:a.text,cursor:"pointer"},children:"Show all events"})]})}function Zo({onBack:e,title:t="Go back",className:n=""}){const{theme:o}=Lo(),r=o.colors;/* @__PURE__ */
161
- return u("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:/* @__PURE__ */m("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[/* @__PURE__ */u("path",{d:"M19 12H5"}),/* @__PURE__ */u("path",{d:"m12 19-7-7 7-7"})]})})}function $o({onBack:e,label:t="Games"}){const{theme:n}=Lo(),o=n.colors;/* @__PURE__ */
162
- return m("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:[/* @__PURE__ */m("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:[/* @__PURE__ */u("path",{d:"M19 12H5"}),/* @__PURE__ */u("path",{d:"m12 19-7-7 7-7"})]}),t]})}function qo({onBack:e,hideActions:t,label:n,children:o,className:r=""}){const{theme:l}=Lo(),a=l.colors;return e||null!=n||o?/* @__PURE__ */m("div",{className:`flex items-center gap-1.5 mt-0.5 ${r}`,children:[e&&(null!=n?/* @__PURE__ */m("button",{type:"button",onClick:e,title:"Go back",className:"inline-flex min-w-0 items-center gap-1.5 text-left",style:{color:a.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=a.text,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=a.textMuted,e.currentTarget.style.transform="translateX(0)"},children:[/* @__PURE__ */m("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:[/* @__PURE__ */u("path",{d:"M19 12H5"}),/* @__PURE__ */u("path",{d:"m12 19-7-7 7-7"})]}),/* @__PURE__ */u("span",{className:"text-xs sm:text-sm break-words min-w-0",children:n})]}):/* @__PURE__ */u(Zo,{onBack:e})),!e&&null!=n&&/* @__PURE__ */u("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:a.textMuted},children:n}),o]}):null}var Vo=[1,5,10,20,50,100],Xo=[4,12];function Qo(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function Jo(e,t,n){const o=n?.operatorMargin??.2,r=n?.perLegProbability??.5,l=Math.round(Math.pow(1/r,t)),a=(1-o)*Math.pow(1/r,t);return{legs:t,stake:e,prize:Math.round(e*a*100)/100,multiple:a,oddsOneIn:l}}function _o(e){if(!Qo(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Xo[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Xo[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n);if(0===o.length)return null;const r=Math.max(e.min_bet??1,.01),l=e.max_bet??null,a=Vo.filter(e=>e>=r&&(null===l||e<=l));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(20,r),l??20),minStake:r,maxStake:l,quickStakes:a,tagline:"Two steps to your multi. Tweak legs and stake — the prize updates as you go.",operatorMargin:e.operator_margin??.2,perLegProbability:e.payout_structure?.per_leg_probability??.5}}var er=50,tr=[25,50,75,100],nr=[{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 or(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function rr(e,t){return Math.round(e*t/50*100)/100}function lr(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:rr(o,t),cumulative:rr(n,t)}))}function ar(e,t){return rr(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function ir(e,t,n){return rr(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)}function sr(e){if(!or(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=nr.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??tr[0],a=e.max_bet??tr[tr.length-1],i=tr.filter(e=>e>=l&&e<=a);return{ladders:r,defaultLegs:r.some(e=>8===e.legs)?8:r[Math.floor(r.length/2)].legs,defaultStake:i.includes(50)?50:i[0]??50,stakes:i.length>0?i:tr,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}var cr=.21875,dr=[1,5,10,20,50],ur=[4,12];function mr(e){return!!e&&!e.quick_pick_only&&"mirror"===(e.rule??"").trim().toLowerCase()}function pr(e,t,n){const o=n?.operatorMargin??.21875,r=n?.perLegProbability??.5,l=Math.round(Math.pow(2,t)),a=Math.pow(r,t)+Math.pow(1-r,t),i=Math.round(1/a),s=(1-o)*Math.pow(2,t-1);return{legs:t,stake:e,prize:Math.round(e*s*100)/100,multiple:s,totalOutcomes:l,winningOutcomes:2,oddsOneIn:i}}function fr(e){if(!mr(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??ur[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??ur[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n);if(0===o.length)return null;const r=Math.max(e.min_bet??1,.01),l=e.max_bet??null,a=dr.filter(e=>e>=r&&(null===l||e<=l));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(20,r),l??20),minStake:r,maxStake:l,quickStakes:a,tagline:"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 hr(e){return e?.quick_pick_only?"quick_pick":Qo(e)?"game_set":no(e)?"pick_your_dividend":or(e)?"ladder":mr(e)?"mirror":Yn(e)?"safety_net":bn(e)?"selections":_n(e)?"rule_setup":"selections"}function xr(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(bn(e))return!1;const t=!!(e.allowed_markets&&e.allowed_markets.length>0),n=!!(e.allowed_sports&&e.allowed_sports.length>0);return t||n}function gr(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||bn(e)||xr(e))}function yr(e){switch(hr(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 br({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,bodyFont:l,howToPlayMarkdown:a,selectedCategory:i,displayCategoryName:s}=Lo(),c=o.colors;/* @__PURE__ */
163
- return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */m("div",{className:"flex items-start justify-between gap-3",children:[/* @__PURE__ */u("h1",{className:"text-lg sm:text-xl md:text-2xl font-bold leading-tight break-words min-w-0",style:{color:L(o),fontFamily:r},children:"Choose your game"}),a?.trim()&&/* @__PURE__ */u(Ke,{content:a,title:"How to Play",colors:{text:c.text,textMuted:c.textMuted,border:c.border,background:c.background,backgroundAlt:c.backgroundAlt,primary:c.primary,primaryText:c.primaryText},bodyFont:l,headingFont:r,className:"shrink-0 mt-0.5"})]}),/* @__PURE__ */u(qo,{onBack:t,hideActions:n,label:i?s(i):void 0})]})}function wr({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=Lo(),r=n.colors;return e&&"mobile"!==o?/* @__PURE__ */u("div",{className:`flex items-center pt-4 ${t}`,children:/* @__PURE__ */u("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}function kr({onSelectGame:t,onGameSetup:n,onRuleSetup:o,onGameSetBet:r,onPickYourDividend:l,onLadder:a,onMirror:i,onSafetyNet:s,onQuickPick:c,onCancel:d,hideTitle:p,hideActions:f,showPerfectPickSetup:h=!1,showTierFilter:x=!1,className:g=""}){const y=Lo(),{theme:b,games:w,loading:k,error:v,selectedGame:N,selectedPropositionCount:F,handlePropositionCountChange:B,maxPayouts:C}=y;b.colors;const A=e.useRef(N);return A.current=N,/* @__PURE__ */m("div",{className:`flex flex-col min-h-full ${g}`,style:{fontFamily:y.bodyFont},children:[!p&&/* @__PURE__ */u("div",{className:"mb-4 sm:mb-6",children:/* @__PURE__ */u(br,{onBack:d,hideActions:f})}),
164
- /* @__PURE__ */u(Ko,{}),
165
- /* @__PURE__ */u("div",{className:"flex-1",children:/* @__PURE__ */u(po,{games:w,selectedGame:N,onSelectGame:e=>{A.current=e,y.selectGame(e)},loading:k,error:v,theme:b,showTierFilter:x,selectedPropositionCount:F,onPropositionCountChange:B,onPropositionCountSelected:()=>{const e=A.current;if("rule_setup"===hr(e)&&gr(e)&&!h)return y.goToSportSelection(),void t?.();const c=hr(e);if("quick_pick"===c||"selections"===c)return y.goToSportSelection(),void t?.();n?n(c):({game_set:r,pick_your_dividend:l,ladder:a,mirror:i,safety_net:s,rule_setup:o}[c]??o)?.()},onQuickPickGame:(e,t)=>{y.quickPickGame(e,t),c?.()},maxPayouts:C})})]})}var vr=3;function Nr(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 Fr(e,t,n){const[r,a]=c([]),[d,u]=c([]),[m,p]=c([]),[f,h]=c([]),[x,g]=c(null),y=i(()=>{const t=/* @__PURE__ */new Map;for(const n of e)t.set(n.id,n);return t},[e]),b=i(()=>e.filter(e=>null!=t[e.id]),[e,t]),w=i(()=>e.map(e=>e.id).join(","),[e]),k=s(null);l(()=>{if(k.current===w)return;k.current=w;const n=e.filter(e=>!(e.id in t)),o=e.filter(e=>null!=t[e.id]);a(n.map(e=>e.id)),u(Nr(n,o).slice(0,3).map(e=>e.id)),p([]),h([]),g(null)},[w,e,t]);const v=i(()=>{const e=new Set(m);return[...Nr(r.map(e=>y.get(e)).filter(e=>Boolean(e)).filter(t=>!e.has(t.id)),b).map(e=>e.id),...m.filter(e=>r.includes(e))]},[r,y,b,m]);l(()=>{u(e=>{const t=new Set(r),n=e.filter(e=>t.has(e));if(0===f.length&&!x){const t=v.slice(0,3);return t.length===n.length&&t.every((e,t)=>e===n[t])?n.length===e.length?e:n:t}if(n.length>=Math.min(3,r.length))return n.length===e.length?e:n;const o=[...n];for(const r of v){if(o.length>=3)break;o.includes(r)||o.push(r)}return o})},[r,v,f,x]);const N=i(()=>d.map(e=>y.get(e)).filter(e=>Boolean(e)),[d,y]),F=o((e,t)=>{g(null),t&&n(e,t),h(n=>[...n,{id:e,answer:t}]),u(t=>t.filter(t=>t!==e)),p(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]}),a(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]})},[n]),B=o(()=>{const e=f[f.length-1];e&&(e.answer&&n(e.id,e.answer),g({id:e.id,from:"yes"===e.answer?"right":"no"===e.answer?"left":"up"}),h(e=>e.slice(0,-1)),p(t=>t.filter(t=>t!==e.id)),a(t=>[e.id,...t.filter(t=>t!==e.id)]),u(t=>[e.id,...t.filter(t=>t!==e.id)].slice(0,3)))},[f,n]);return{visible:N,canSkip:r.length>1,canUndo:f.length>0,restored:x,resolve:F,undo:B}}var Br={stiffness:420,damping:34},Cr={stiffness:280,damping:28},Ar="#00C853",Mr="#E53935";function Sr(e){return"up"===e?{x:0,y:-720}:{x:"right"===e?640:-640,y:70}}function zr(e){return e<0?0:e>1?1:e}function Lr(e,t,n){return n&&-t>Math.abs(e)}function Pr({prop:e,theme:t,depth:n=0,enterFrom:a,canSkip:i=!1,onResolve:c,registerApi:p,onDragStateChange:f,children:h}){const x=r(So),g=t??x?.theme??Z,y=be(g),b=g.colors.productYes??Ar,w=g.colors.productNo??Mr,k=s(null),v=s(null),N=s(null),F=s(null),B=0===n,C=s(!1),A=s({x:0,y:0}),M=s({x:0,y:0}),S=s(null),z=s(0),L=s(null),P=s(null),D=s(i);D.current=i;const O=s(f);O.current=f;const T=o(()=>{const e=k.current;if(!e)return;const{x:t,y:n}=A.current,o=Math.max(-16,Math.min(16,t/260*16));e.style.transform=`translate3d(${t}px, ${n}px, 0) rotate(${o}deg)`;const r=(e,t)=>{e&&(e.style.opacity=String(t))},l=Lr(t,n,D.current);r(v.current,l?0:zr((t-24)/108)),r(N.current,l?0:zr((-t-24)/108)),r(F.current,l?zr((-n-30)/90):0)},[]),E=o(()=>{for(const e of[k.current,v.current,N.current,F.current])e&&(e.style.transition="none")},[]),j=o(()=>{null!=L.current&&(cancelAnimationFrame(L.current),L.current=null)},[]),Y=o(e=>{j(),E();let t=null;const n=o=>{const r=Math.min(null==t?1/60:(o-t)/1e3,1/30);t=o;const l=A.current,a=M.current;if(a.x+=(-e.stiffness*l.x-e.damping*a.x)*r,a.y+=(-e.stiffness*l.y-e.damping*a.y)*r,l.x+=a.x*r,l.y+=a.y*r,Math.abs(l.x)<.5&&Math.abs(l.y)<.5&&Math.abs(a.x)<2&&Math.abs(a.y)<2)return l.x=0,l.y=0,a.x=0,a.y=0,T(),void(L.current=null);T(),L.current=requestAnimationFrame(n)};L.current=requestAnimationFrame(n)},[E,T,j]),H=o(t=>{if(C.current)return;if("up"===t&&!D.current)return;C.current=!0,j();const n="right"===t?"yes":"left"===t?"no":null,o=Sr(t),r=k.current;r&&(r.style.transition="transform 260ms cubic-bezier(0.32, 0, 0.67, 0)");for(const e of[v.current,N.current,F.current])e&&(e.style.transition="opacity 260ms linear");A.current={...o},T(),P.current=setTimeout(()=>c(e.id,n),260)},[c,T,e.id,j]);l(()=>()=>{P.current&&clearTimeout(P.current),null!=L.current&&cancelAnimationFrame(L.current),S.current&&O.current?.(!1)},[]),l(()=>{if(!a)return j(),A.current={x:0,y:0},M.current={x:0,y:0},E(),void T();const e=Sr(a);A.current={x:e.x,y:e.y},M.current={x:0,y:0},E(),T(),Y(Cr)},[a,E,T,Y,j]),l(()=>{if(B&&p)return p({fly:H}),()=>p(null)},[H,B,p]);const R="pointer-events-none absolute top-5 rounded-xl border-4 px-3 py-1 text-2xl font-extrabold uppercase tracking-widest";/* @__PURE__ */
166
- return u("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:B?"auto":"none"},"aria-hidden":!B,children:/* @__PURE__ */m("div",{ref:k,className:"relative w-full"+(B?" cursor-grab active:cursor-grabbing":""),style:{touchAction:"pan-y",willChange:"transform",userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none"},onPointerDown:e=>{if(B&&!C.current&&!S.current){j(),E(),S.current={pointerId:e.pointerId,originX:e.clientX,originY:e.clientY,baseX:A.current.x,baseY:A.current.y},M.current={x:0,y:0},z.current=e.timeStamp;try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}O.current?.(!0)}},onPointerMove:e=>{const t=S.current;if(!t||t.pointerId!==e.pointerId||C.current)return;const n=t.baseX+(e.clientX-t.originX),o=t.baseY+(e.clientY-t.originY),r=e.timeStamp-z.current;if(r>0){const t=1-Math.exp(-r/40);M.current.x+=((n-A.current.x)/r*1e3-M.current.x)*t,M.current.y+=((o-A.current.y)/r*1e3-M.current.y)*t,z.current=e.timeStamp}A.current.x=n,A.current.y=o,T()},onPointerUp:e=>{const t=S.current;if(!t||t.pointerId!==e.pointerId)return;S.current=null,O.current?.(!1);try{e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}catch{}if(C.current)return;e.timeStamp-z.current>90&&(M.current={x:0,y:0});const n=A.current,o=M.current;if(Lr(n.x,n.y,D.current)){if(n.y<-110||o.y<-620)return H("up")}else{if(n.x>110||o.x>620)return H("right");if(n.x<-110||o.x<-620)return H("left")}Y(Br)},onPointerCancel:e=>{const t=S.current;t&&t.pointerId===e.pointerId&&(S.current=null,M.current={x:0,y:0},O.current?.(!1),C.current||Y(Br))},onDragStart:e=>e.preventDefault(),children:[h,B&&/* @__PURE__ */m(d,{children:[
167
- /* @__PURE__ */u("div",{ref:v,className:`${R} left-5`,style:{opacity:0,transform:"rotate(-12deg)",color:b,borderColor:b,fontFamily:y},children:"Yes"}),
168
- /* @__PURE__ */u("div",{ref:N,className:`${R} right-5`,style:{opacity:0,transform:"rotate(12deg)",color:w,borderColor:w,fontFamily:y},children:"No"}),i&&/* @__PURE__ */u("div",{ref:F,className:"pointer-events-none absolute inset-x-0 bottom-6 flex justify-center",style:{opacity:0},children:/* @__PURE__ */u("span",{className:"rounded-full px-3 py-1 text-xs font-semibold uppercase tracking-widest",style:{color:g.colors.primary,border:`1px solid ${g.colors.border}`,background:g.colors.background},children:"Skip"})})]})]})})}function Dr({prop:e}){const{theme:t,renderTeamLogo:n,displaySportName:o,gameCategory:r}=Lo(),l=t.colors,a=be(t),i=lt(e),s=_e(e),c=("racing"===r?[e.away_team?.trim()||e.home_team?.trim()]:[e.home_team?.trim(),e.away_team?.trim()]).filter(Boolean);/* @__PURE__ */
169
- return m("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-3xl border",style:{backgroundColor:R(t),borderColor:l.border,boxShadow:"0 18px 40px -24px rgba(10,20,22,0.45)"},children:[
170
- /* @__PURE__ */u("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 px-5 py-3",style:{backgroundColor:G(t)},children:c.length>0?c.map((e,o)=>/* @__PURE__ */m("span",{className:"inline-flex items-center gap-1.5 text-sm font-semibold",style:{color:Y(t)},children:[o>0&&/* @__PURE__ */u("span",{className:"mr-1 text-xs font-normal",style:{color:H(t)},children:"vs"}),n?.(e),e]},`${e}-${o}`)):/* @__PURE__ */u("span",{className:"text-sm font-semibold",style:{color:Y(t)},children:e.league??o(e.sport??"")})}),
171
- /* @__PURE__ */m("div",{className:"flex flex-1 flex-col justify-center gap-3 px-5 py-3 sm:gap-4 sm:py-6",children:[/* @__PURE__ */m("div",{className:"flex min-w-0 items-start gap-2",children:[Oo(e,n,c.join(" vs ")),i?/* @__PURE__ */m("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:[/* @__PURE__ */m("span",{className:"text-xs font-bold uppercase tracking-widest",style:{color:P(t)},children:["All ","OR"===i.operator?"or any of these":"of these"]}),/* @__PURE__ */u("ul",{className:"flex flex-col gap-2",children:i.legs.map((e,n)=>/* @__PURE__ */m("li",{className:"flex gap-2 text-base font-bold leading-snug",style:{color:D(t),fontFamily:a},children:[/* @__PURE__ */u("span",{"aria-hidden":!0,style:{color:l.primary},children:"OR"===i.operator?"/":"+"}),e.text]},n))})]}):/* @__PURE__ */u("p",{className:"min-w-0 flex-1 text-xl font-extrabold leading-snug tracking-tight sm:text-2xl",style:{color:D(t),fontFamily:a},children:e.description??e.proposition})]}),e.outcome_description&&e.outcome_description!==e.description&&/* @__PURE__ */u("p",{className:"text-sm leading-snug",style:{color:l.textMuted},children:e.outcome_description})]}),
172
- /* @__PURE__ */m("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&&/* @__PURE__ */u("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)}),s&&/* @__PURE__ */u("span",{className:"uppercase tracking-wide",children:s.replace(/[_-]+/g," ")}),e.commence_time&&/* @__PURE__ */u("span",{className:"ml-auto",children:xt(e.commence_time)})]})]})}function Or({onBack:e,onNext:t,viewSwitch:n,onDragStateChange:r,className:a=""}){const{theme:i,propositions:c,selections:p,toggleSelection:f,selectedGame:h,selectedPropositionCount:x,answeredCount:g,selectionValid:y,goToConfirmation:b,goToSportSelection:w,loading:k,error:v,selectedRule:N}=Lo(),F=i.colors,B=ye(i),C=be(i),A=F.productYes??Ar,M=F.productNo??Mr,S=s(null);l(()=>{h||(w(),e?.())},[w,e,h]);const{visible:z,canSkip:P,canUndo:D,restored:O,resolve:T,undo:E}=Fr(c,p,f),j=h?Ct(h,x??void 0,N):{min:0,max:0},Y=j.max,H=Y>0&&g>=Y,G=(()=>{if(!h)return null;if(j.min>0&&j.min===j.max)return j.min;const e=hr(h);return null!=x&&x>0&&("game_set"===e||"pick_your_dividend"===e||xr(h))?x:Y>0?Y:null})(),W=s(g);l(()=>{const e=W.current;if(W.current=g,null==G||e>=G||g!==G)return;const n=setTimeout(()=>{b(),t?.()},420);return()=>clearTimeout(n)},[g,b,t,G]);const I=!H&&z.length>0;l(()=>{if(!I)return;const e=e=>{const t=e.target;if(!t||!/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName)){switch(e.key){case"ArrowRight":S.current?.fly("right");break;case"ArrowLeft":S.current?.fly("left");break;case"ArrowUp":S.current?.fly("up");break;case"ArrowDown":case"Backspace":E();break;default:return}e.preventDefault()}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[I,E]);const U=o(e=>{S.current=e},[]);if(!h)return null;const K=(e,t,n,o)=>/* @__PURE__ */u("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:F.border,color:F.textMuted,background:F.background},children:/* @__PURE__ */u("span",{"aria-hidden":!0,children:t})});/* @__PURE__ */
173
- return m("div",{className:`flex w-full flex-col ${a}`,style:{fontFamily:B},children:[n&&/* @__PURE__ */u("div",{className:"flex shrink-0 justify-end pb-3",children:n}),k?/* @__PURE__ */u("p",{className:"py-10 text-center text-sm",style:{color:F.textMuted},children:"Loading…"}):v?/* @__PURE__ */u("div",{className:"rounded-xl p-4 text-center",style:{background:F.errorBg,border:`1px solid ${F.error}`},children:/* @__PURE__ */u("p",{className:"text-sm",style:{color:F.errorText??F.error},children:v})}):/* @__PURE__ */m(d,{children:[/* @__PURE__ */u("div",{className:"flex min-h-0 flex-1 flex-col justify-center pb-3 pt-2 sm:pb-8 sm:pt-3",children:I?/* @__PURE__ */u("div",{className:"relative mx-auto w-full",style:{height:"clamp(14rem, 44dvh, 26rem)",maxWidth:384},children:z.map((e,t)=>/* @__PURE__ */u(Pr,{prop:e,depth:t,canSkip:P,enterFrom:O?.id===e.id?O.from:null,onResolve:T,registerApi:0===t?U:void 0,onDragStateChange:0===t?r:void 0,children:/* @__PURE__ */u(Dr,{prop:e})},e.id))}):/* @__PURE__ */m("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:R(i),border:`1px dashed ${F.border}`},children:[
174
- /* @__PURE__ */u("p",{className:"text-base font-extrabold",style:{color:L(i),fontFamily:C},children:H?"Card full":"That’s the last one"}),
175
- /* @__PURE__ */u("p",{className:"text-sm",style:{color:F.textMuted},children:H?`You've picked all ${Y} legs for ${h.game_name}. Undo a swipe to change one, or lock it in.`:y?"You've been through every proposition. Lock your card in, or undo to revisit a pick.":`No propositions left to answer${j.min>0?` — this game needs at least ${j.min}`:""}. Undo a swipe or head back to widen the pool.`}),D&&/* @__PURE__ */u("button",{type:"button",onClick:E,className:"rounded-full border px-5 py-2 text-sm font-semibold",style:{borderColor:F.border,color:F.text},children:"Undo last swipe"})]})}),/* @__PURE__ */m("div",{className:"shrink-0",children:[/* @__PURE__ */m("div",{className:"mx-auto flex max-w-sm items-center justify-center gap-3",children:[K("Undo last swipe","↺",E,!D),
176
- /* @__PURE__ */u("button",{type:"button",onClick:()=>S.current?.fly("left"),disabled:!I,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:M,fontFamily:C},children:"No"}),
177
- /* @__PURE__ */u("button",{type:"button",onClick:()=>S.current?.fly("right"),disabled:!I,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:A,fontFamily:C},children:"Yes"}),K("Skip this proposition","↑",()=>S.current?.fly("up"),!I||!P)]}),/* @__PURE__ */u("p",{className:"mt-2 text-center text-[11px]",style:{color:F.textMuted},children:P?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})]})]})}function Tr({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",className:r,title:l,sportBaseKey:a}){const i=ct(e,a,t),s=function(e){return e.length<=3?92:4===e.length?72:56}(i),c=l??`${i} button`;/* @__PURE__ */
192
+ /* @__PURE__ */u("p",{className:"text-xs",style:{color:a.textMuted},children:"Only propositions from this event are shown."})]}),/* @__PURE__ */u("button",{type:"button",onClick:r,className:"shrink-0 self-start rounded-lg border px-3 py-1.5 text-xs font-semibold transition-opacity hover:opacity-90 sm:self-center",style:{borderColor:`${a.primary}44`,backgroundColor:a.background,color:a.text,cursor:"pointer"},children:"Show all events"})]})}function xl({onBack:e,title:t="Go back",className:n=""}){const{theme:o}=zr(),r=o.colors;/* @__PURE__ */
193
+ return u("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:/* @__PURE__ */m("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[/* @__PURE__ */u("path",{d:"M19 12H5"}),/* @__PURE__ */u("path",{d:"m12 19-7-7 7-7"})]})})}function gl({onBack:e,label:t="Games"}){const{theme:n}=zr(),o=n.colors;/* @__PURE__ */
194
+ return m("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:[/* @__PURE__ */m("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:[/* @__PURE__ */u("path",{d:"M19 12H5"}),/* @__PURE__ */u("path",{d:"m12 19-7-7 7-7"})]}),t]})}function yl({onBack:e,hideActions:t,label:n,children:o,className:r=""}){const{theme:l}=zr(),a=l.colors;return e||null!=n||o?/* @__PURE__ */m("div",{className:`flex items-center gap-1.5 mt-0.5 ${r}`,children:[e&&(null!=n?/* @__PURE__ */m("button",{type:"button",onClick:e,title:"Go back",className:"inline-flex min-w-0 items-center gap-1.5 text-left",style:{color:a.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=a.text,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=a.textMuted,e.currentTarget.style.transform="translateX(0)"},children:[/* @__PURE__ */m("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:[/* @__PURE__ */u("path",{d:"M19 12H5"}),/* @__PURE__ */u("path",{d:"m12 19-7-7 7-7"})]}),/* @__PURE__ */u("span",{className:"text-xs sm:text-sm break-words min-w-0",children:n})]}):/* @__PURE__ */u(xl,{onBack:e})),!e&&null!=n&&/* @__PURE__ */u("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:a.textMuted},children:n}),o]}):null}function bl({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,bodyFont:l,howToPlayMarkdown:a,selectedCategory:i,displayCategoryName:s}=zr(),c=o.colors;/* @__PURE__ */
195
+ return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */m("div",{className:"flex items-start justify-between gap-3",children:[/* @__PURE__ */u("h1",{className:"text-lg sm:text-xl md:text-2xl font-bold leading-tight break-words min-w-0",style:{color:R(o),fontFamily:r},children:"Choose your game"}),a?.trim()&&/* @__PURE__ */u(Ve,{content:a,title:"How to Play",colors:{text:c.text,textMuted:c.textMuted,border:c.border,background:c.background,backgroundAlt:c.backgroundAlt,primary:c.primary,primaryText:c.primaryText},bodyFont:l,headingFont:r,className:"shrink-0 mt-0.5"})]}),/* @__PURE__ */u(yl,{onBack:t,hideActions:n,label:i?s(i):void 0})]})}function wl({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=zr(),r=n.colors;return e&&"mobile"!==o?/* @__PURE__ */u("div",{className:`flex items-center pt-4 ${t}`,children:/* @__PURE__ */u("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}function kl({onSelectGame:t,onGameSetup:n,onRuleSetup:o,onGameSetBet:r,onPickYourDividend:l,onLadder:a,onMirror:i,onSafetyNet:s,onQuickPick:c,onCancel:d,hideTitle:p,hideActions:h,showPerfectPickSetup:f=!1,showTierFilter:x=!1,className:g=""}){const y=zr(),{theme:b,games:w,loading:k,error:v,selectedGame:N,selectedPropositionCount:C,handlePropositionCountChange:F,maxPayouts:B}=y;b.colors;const A=e.useRef(N);return A.current=N,/* @__PURE__ */m("div",{className:`flex flex-col min-h-full ${g}`,style:{fontFamily:y.bodyFont},children:[!p&&/* @__PURE__ */u("div",{className:"mb-4 sm:mb-6",children:/* @__PURE__ */u(bl,{onBack:d,hideActions:h})}),
196
+ /* @__PURE__ */u(fl,{}),
197
+ /* @__PURE__ */u("div",{className:"flex-1",children:/* @__PURE__ */u(vo,{games:w,selectedGame:N,onSelectGame:e=>{A.current=e,y.selectGame(e)},loading:k,error:v,theme:b,showTierFilter:x,selectedPropositionCount:C,onPropositionCountChange:F,onPropositionCountSelected:()=>{const e=A.current;if("rule_setup"===kr(e)&&Nr(e)&&!f)return y.goToSportSelection(),void t?.();const c=kr(e);if("quick_pick"===c||"selections"===c)return y.goToSportSelection(),void t?.();n?n(c):({game_set:r,pick_your_dividend:l,ladder:a,mirror:i,safety_net:s,rule_setup:o}[c]??o)?.()},onQuickPickGame:(e,t)=>{y.quickPickGame(e,t),c?.()},maxPayouts:B})})]})}function vl({className:e="",onBack:t,hideActions:n}){const{theme:o}=zr(),r=be(o),l=o.colors;/* @__PURE__ */
198
+ return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("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"}),/* @__PURE__ */u(yl,{onBack:t,hideActions:n})]})}function Nl({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=zr(),r=n.colors;return e&&"mobile"!==o?/* @__PURE__ */u("div",{className:`flex items-center pt-4 ${t}`,children:/* @__PURE__ */u("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}function Cl({onSelectCategory:e,onCancel:t,hideTitle:n,hideActions:o,renderCategoryIcon:r,getCategoryTagline:l,className:a=""}){const{theme:i,propositionsForCategoryPicker:s,loading:c,setSelectedCategory:d,setSelectedSport:p,clearSelectedGame:h,displayCategoryName:f}=zr(),x=i.colors,g=V(i),y=ye(i);St(s);const b=zt(s);return c?/* @__PURE__ */u(Fn,{colors:J(i),bodyFont:y,className:a,variant:"category",categoryCount:b.length>0?b.length:2}):/* @__PURE__ */m("div",{className:`flex flex-col min-h-full ${a}`,style:{fontFamily:y},children:[!n&&/* @__PURE__ */u("div",{className:"mb-2",children:/* @__PURE__ */u(vl,{onBack:t,hideActions:o})}),/* @__PURE__ */u("div",{className:"flex-1",children:/* @__PURE__ */u("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 ht[e]??""}(t);/* @__PURE__ */
199
+ return m("button",{type:"button",onClick:()=>{d(t),p(null),h(),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:g,borderColor:x.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=x.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=x.border},children:[/* @__PURE__ */u(Xe,{label:f(t),category:t,icon:r?.(t),theme:i}),n?/* @__PURE__ */u("span",{className:"text-[10px] sm:text-xs font-medium uppercase tracking-[0.08em] sm:tracking-[0.1em] break-words",style:{color:x.primary},children:n}):null]},t)})})})]})}function Fl(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 Bl({name:e,renderTeamLogo:t,muted:n}){return e?/* @__PURE__ */m("span",{className:"inline-flex min-w-0 max-w-full items-center gap-1.5",children:[t?.(e),/* @__PURE__ */u("span",{className:"break-words text-sm font-semibold sm:text-base",children:e})]}):/* @__PURE__ */u("span",{className:"text-sm font-semibold",style:{color:n},children:"TBC"})}function Al({onSelectEvent:t,className:n=""}){const{theme:o,loading:r,sameGameMultiEvents:l,selectSameGameMultiEvent:a,renderTeamLogo:i,displaySportName:s}=zr(),[c,d]=e.useState(null),p=o.colors,h=ye(o),f=be(o),x=V(o),g=X(o);return r?/* @__PURE__ */u(Fn,{colors:J(o),bodyFont:h,className:n,variant:"event"}):/* @__PURE__ */m("section",{className:n,"aria-label":"Available fixtures",style:{fontFamily:h},children:[/* @__PURE__ */u("p",{className:"mb-4 text-sm leading-relaxed",style:{color:p.textMuted},children:"All picks in your multi must come from one game."}),0===l.length?/* @__PURE__ */u("div",{role:"status",className:"rounded-2xl border p-6 text-center text-sm",style:{borderColor:p.border,backgroundColor:x,color:p.textMuted},children:"No fixtures with available propositions."}):/* @__PURE__ */u("div",{className:"grid grid-cols-1 gap-2.5 sm:gap-3",children:l.map(e=>/* @__PURE__ */m("button",{type:"button","aria-label":`Select ${Bn(e)}`,onClick:()=>{a(e.id),t?.(e.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:p.border,backgroundColor:x,boxShadow:c===e.id?H(o):"none",color:p.text,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=p.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=p.border},onFocus:t=>{d(e.id),t.currentTarget.style.borderColor=p.primary},onBlur:e=>{d(null),e.currentTarget.style.borderColor=p.border},children:[/* @__PURE__ */m("div",{className:"min-w-0 flex-1",children:[/* @__PURE__ */m("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:g,color:p.text,fontFamily:f},children:[
200
+ /* @__PURE__ */u(Bl,{name:e.homeTeam,renderTeamLogo:i,muted:p.textMuted}),
201
+ /* @__PURE__ */u("span",{className:"text-xs font-normal",style:{color:p.textMuted},children:"vs"}),
202
+ /* @__PURE__ */u(Bl,{name:e.awayTeam,renderTeamLogo:i,muted:p.textMuted})]}),/* @__PURE__ */m("p",{className:"mt-2 text-[11px] font-medium sm:text-xs",style:{color:p.textMuted},children:[Fl(e.commenceTime)," · ",e.propositionCount," proposition",1===e.propositionCount?"":"s",(e.league||e.sport)&&` · ${e.league?.toUpperCase()??s(e.sport)}`]})]}),/* @__PURE__ */u(_e,{size:22,color:p.textMuted,className:"shrink-0 transition-transform group-hover:translate-x-0.5"})]},e.id))})]})}function Ml({counts:t,onPick:n,onDoubleAction:o,colors:r,align:l="right",direction:a="down",menuShadow:i="0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}){const[s,c]=e.useState(!1),[d,p]=e.useState(!1),[h,f]=e.useState(null),x=e.useRef(null),g=e.useRef(null),y=e.useRef(null),b=36+36*t.length+12,w="up"===a||d?"up":"down";e.useEffect(()=>{if(!s)return p(!1),void f(null);const e=x.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<b&&o>n;p(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;x.current?.contains(t)||g.current?.contains(t)||c(!1)};return document.addEventListener("mousedown",n),()=>{window.removeEventListener("resize",t),window.removeEventListener("scroll",t,!0),document.removeEventListener("mousedown",n)}},[s,b]);const k=s?/* @__PURE__ */m("div",{ref:g,role:"menu",className:"rounded-lg overflow-y-auto overscroll-contain",style:{position:"absolute",top:"up"===w?void 0:"calc(100% + 6px)",bottom:"up"===w?"calc(100% + 6px)":void 0,left:"left"===l?0:void 0,right:"right"===l?0:void 0,maxHeight:h??void 0,zIndex:20,backgroundColor:r.background,border:`1px solid ${r.border}`,boxShadow:i,minWidth:160},children:[/* @__PURE__ */u("div",{className:"px-3 py-1.5 text-[10px] font-bold tracking-wider uppercase",style:{color:r.text,opacity:.55,borderBottom:`1px solid ${r.border}`},children:"How many picks?"}),t.map(e=>/* @__PURE__ */m("button",{type:"button",role:"menuitem",onClick:()=>{n(e),c(!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 ${r.border}`},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=r.backgroundAlt},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},children:[/* @__PURE__ */m("span",{className:"text-sm font-semibold",style:{color:r.text},children:[e," picks"]}),/* @__PURE__ */u("span",{className:"text-[10px] font-bold tracking-wider",style:{background:r.backgroundAlt,color:r.text,padding:"2px 6px",borderRadius:4},children:"QP"})]},e))]}):null;/* @__PURE__ */
203
+ return m("div",{ref:x,className:"flex-shrink-0 relative",children:[/* @__PURE__ */u(Pr,{onPress:()=>{o?null==y.current&&(y.current=window.setTimeout(()=>{y.current=null,c(e=>!e)},220)):c(e=>!e)},onDoubleClick:o?()=>{null!=y.current&&(window.clearTimeout(y.current),y.current=null),c(!1),o?.()}:void 0}),k]})}var Sl="Your stake";function zl(e,t){const n=e?.top_payouts?.find(e=>Number(e.proposition_count)===t);if(!n)return 0;const o=n.bet_amount&&n.bet_amount>0?n.bet_amount:20,r=Number(n.net_payout);return Number.isFinite(r)?r/o*20:0}function Ll({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",className:r,title:l,sportBaseKey:a}){const i=ft(e,a,t),s=function(e){return e.length<=3?92:4===e.length?72:56}(i),c=l??`${i} button`;/* @__PURE__ */
178
204
  return m("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":c,children:[
179
205
  /* @__PURE__ */u("title",{children:c}),
180
- /* @__PURE__ */u("rect",{x:"2",y:"2",width:"356",height:"356",rx:"78",fill:"#DDD9D2",stroke:at,strokeWidth:"4"}),
181
- /* @__PURE__ */u("rect",{x:"50",y:"10",width:"260",height:"260",rx:"52",fill:at,opacity:"0.30"}),
182
- /* @__PURE__ */u("rect",{x:"50",y:"35",width:"260",height:"260",rx:"52",fill:at,opacity:"0.55"}),
183
- /* @__PURE__ */u("rect",{x:"50",y:"60",width:"260",height:"260",rx:"52",fill:at}),
184
- /* @__PURE__ */u("text",{x:"180",y:"220",fontFamily:"Manrope, Poppins, sans-serif",fontSize:s,letterSpacing:"-3",textAnchor:"middle",fontWeight:800,fill:"#DFFF1A",children:i}),o&&/* @__PURE__ */m(d,{children:[/* @__PURE__ */u("text",{x:"180",y:"345",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"24",letterSpacing:"-0.5",textAnchor:"middle",fontWeight:700,fill:at,children:o}),/* @__PURE__ */u("text",{x:"262",y:"333",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"10",fontWeight:600,fill:at,children:"TM"})]})]})}function Er({className:e="",onBack:t,hideActions:n,backLabel:o="Category"}){const{theme:r,selectedCategory:l}=Lo(),a=r.colors,i=be(r);/* @__PURE__ */
185
- return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("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:i},children:Ft(l)}),/* @__PURE__ */u(qo,{onBack:t,hideActions:n,label:t?o:void 0})]})}function jr({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=Lo(),r=n.colors;return e&&"mobile"!==o?/* @__PURE__ */u("div",{className:`flex items-center pt-4 ${t}`,children:/* @__PURE__ */u("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}function Yr({onSelectSport:t,onCancel:n,hideTitle:o,hideActions:r,renderSportLogo:l,renderSportTagline:a,backLabel:i,comingSoonSports:s,className:c=""}){const{theme:d,propositionsForSportPicker:p,sportSummaries:f,loading:h,setSelectedSport:x,clearSelectedGame:g,selectedCategory:y,sportBaseKey:b,displaySportName:w}=Lo(),k=d.colors,v=R(d),N=ye(d),F=be(d),B=L(d),C=gt(p),A=Object.keys(C),[M,S]=e.useState(!1),z=e.useRef(null),P=e.useCallback(e=>{if(z.current?.disconnect(),z.current=null,!e)return;const t=()=>S(e.clientWidth<440);t(),"undefined"!=typeof ResizeObserver&&(z.current=new ResizeObserver(t),z.current.observe(e))},[]);return h?/* @__PURE__ */u(xn,{colors:I(d),bodyFont:N,className:c,variant:"sport",categoryCount:A.length>0?A.length:2}):/* @__PURE__ */m("div",{className:`flex flex-col min-h-full ${c}`,style:{fontFamily:N},children:[!o&&/* @__PURE__ */u("div",{className:"mb-2",children:/* @__PURE__ */u(Er,{onBack:n,hideActions:r,backLabel:i})}),/* @__PURE__ */u("div",{className:"flex-1",children:/* @__PURE__ */m("div",{ref:P,className:"grid gap-3 "+(M?"grid-cols-1":"grid-cols-2"),children:[A.map(e=>{const n=f.find(t=>t.key===e),o=n?.active_props??C[e].length,r=a?.(e,o)??(n?`${i=n.games_today} game${1===i?"":"s"} today · ${s=n.active_props} pick${1===s?"":"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,y));var i,s;const c=w(e),p=n?n.games_today>0:o>0;/* @__PURE__ */
186
- return m("button",{type:"button",onClick:()=>{x(e),g(),t?.(e)},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:v,borderColor:k.border,boxShadow:he(d),cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=k.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=k.border},children:[l?/* @__PURE__ */u("span",{className:"shrink-0",children:l(e)}):/* @__PURE__ */u(Tr,{gameKey:e,size:48,footer:null,sportBaseKey:b,title:`${c} button`,className:"h-10 w-10 shrink-0 sm:h-12 sm:w-12"}),
187
- /* @__PURE__ */m("div",{className:"flex min-w-0 flex-1 flex-col",children:[/* @__PURE__ */u("span",{className:"max-w-full truncate text-sm font-extrabold leading-tight tracking-tight sm:text-base",style:{color:B,fontFamily:F},children:c}),/* @__PURE__ */m("span",{className:"mt-1 flex max-w-full items-center gap-1.5 text-[0.58rem] font-bold uppercase tracking-[0.12em]",style:{color:k.primary},children:[p&&/* @__PURE__ */u("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full",style:{backgroundColor:k.success}}),/* @__PURE__ */u("span",{className:"truncate",children:r})]})]}),
188
- /* @__PURE__ */u(Ve,{size:20,color:k.textMuted,className:"shrink-0 transition-transform group-hover:translate-x-0.5"})]},e)}),s?.map(e=>{const{game:t,league:n}=function(e,t){const n=e.match(/^(.*?)\s*\(([^)]+)\)\s*$/);return n?{game:n[1].trim(),league:n[2].trim()}:{game:e,league:t}}(e.label,e.short??ct(e.key,b));/* @__PURE__ */
189
- return m("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:ce(k.backgroundAlt,.4),borderColor:ce(k.border,.7)},children:[
190
- /* @__PURE__ */u("div",{className:"shrink-0",style:{opacity:.6,filter:"grayscale(1)"},children:l?l(e.key):/* @__PURE__ */u(Tr,{gameKey:e.key,short:e.short,size:48,footer:null,sportBaseKey:b,title:`${e.label} button`,className:"h-10 w-10 shrink-0 sm:h-12 sm:w-12"})}),
191
- /* @__PURE__ */m("div",{className:"flex min-w-0 flex-1 flex-col",children:[/* @__PURE__ */m("span",{className:"max-w-full truncate text-sm font-extrabold leading-tight tracking-tight sm:text-base",style:{color:k.textMuted,fontFamily:F},children:[t,n&&n!==t?/* @__PURE__ */m("span",{className:"font-bold",children:[" · ",n]}):null]}),/* @__PURE__ */u("span",{className:"mt-1 max-w-full truncate text-[0.58rem] font-bold uppercase tracking-[0.12em]",style:{color:k.textMuted},children:(o=e.seasonStart,o?`Starts ${o}`:"Coming soon")})]}),
192
- /* @__PURE__ */m("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:k.backgroundAlt,color:k.textMuted},children:[/* @__PURE__ */u(Xe,{size:12,color:k.textMuted}),"Soon"]})]},e.key);var o})]})})]})}function Hr({className:e="",onBack:t,hideActions:n}){const{theme:o}=Lo(),r=be(o),l=o.colors;/* @__PURE__ */
193
- return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("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"}),/* @__PURE__ */u(qo,{onBack:t,hideActions:n})]})}function Rr({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=Lo(),r=n.colors;return e&&"mobile"!==o?/* @__PURE__ */u("div",{className:`flex items-center pt-4 ${t}`,children:/* @__PURE__ */u("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}function Gr({onSelectCategory:e,onCancel:t,hideTitle:n,hideActions:o,renderCategoryIcon:r,getCategoryTagline:l,className:a=""}){const{theme:i,propositionsForCategoryPicker:s,loading:c,setSelectedCategory:d,setSelectedSport:p,clearSelectedGame:f,displayCategoryName:h}=Lo(),x=i.colors,g=R(i),y=ye(i);vt(s);const b=Nt(s);return c?/* @__PURE__ */u(xn,{colors:I(i),bodyFont:y,className:a,variant:"category",categoryCount:b.length>0?b.length:2}):/* @__PURE__ */m("div",{className:`flex flex-col min-h-full ${a}`,style:{fontFamily:y},children:[!n&&/* @__PURE__ */u("div",{className:"mb-2",children:/* @__PURE__ */u(Hr,{onBack:t,hideActions:o})}),/* @__PURE__ */u("div",{className:"flex-1",children:/* @__PURE__ */u("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 st[e]??""}(t);/* @__PURE__ */
194
- return m("button",{type:"button",onClick:()=>{d(t),p(null),f(),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:g,borderColor:x.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=x.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=x.border},children:[/* @__PURE__ */u(Ze,{label:h(t),category:t,icon:r?.(t),theme:i}),n?/* @__PURE__ */u("span",{className:"text-[10px] sm:text-xs font-medium uppercase tracking-[0.08em] sm:tracking-[0.1em] break-words",style:{color:x.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 Ir({name:e,renderTeamLogo:t,muted:n}){return e?/* @__PURE__ */m("span",{className:"inline-flex min-w-0 max-w-full items-center gap-1.5",children:[t?.(e),/* @__PURE__ */u("span",{className:"break-words text-sm font-semibold sm:text-base",children:e})]}):/* @__PURE__ */u("span",{className:"text-sm font-semibold",style:{color:n},children:"TBC"})}function Ur({onSelectEvent:t,className:n=""}){const{theme:o,loading:r,sameGameMultiEvents:l,selectSameGameMultiEvent:a,renderTeamLogo:i,displaySportName:s}=Lo(),[c,d]=e.useState(null),p=o.colors,f=ye(o),h=be(o),x=R(o),g=G(o);return r?/* @__PURE__ */u(xn,{colors:I(o),bodyFont:f,className:n,variant:"event"}):/* @__PURE__ */m("section",{className:n,"aria-label":"Available fixtures",style:{fontFamily:f},children:[/* @__PURE__ */u("p",{className:"mb-4 text-sm leading-relaxed",style:{color:p.textMuted},children:"All picks in your multi must come from one game."}),0===l.length?/* @__PURE__ */u("div",{role:"status",className:"rounded-2xl border p-6 text-center text-sm",style:{borderColor:p.border,backgroundColor:x,color:p.textMuted},children:"No fixtures with available propositions."}):/* @__PURE__ */u("div",{className:"grid grid-cols-1 gap-2.5 sm:gap-3",children:l.map(e=>/* @__PURE__ */m("button",{type:"button","aria-label":`Select ${gn(e)}`,onClick:()=>{a(e.id),t?.(e.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:p.border,backgroundColor:x,boxShadow:c===e.id?ge(o):"none",color:p.text,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=p.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=p.border},onFocus:t=>{d(e.id),t.currentTarget.style.borderColor=p.primary},onBlur:e=>{d(null),e.currentTarget.style.borderColor=p.border},children:[/* @__PURE__ */m("div",{className:"min-w-0 flex-1",children:[/* @__PURE__ */m("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:g,color:p.text,fontFamily:h},children:[
195
- /* @__PURE__ */u(Ir,{name:e.homeTeam,renderTeamLogo:i,muted:p.textMuted}),
196
- /* @__PURE__ */u("span",{className:"text-xs font-normal",style:{color:p.textMuted},children:"vs"}),
197
- /* @__PURE__ */u(Ir,{name:e.awayTeam,renderTeamLogo:i,muted:p.textMuted})]}),/* @__PURE__ */m("p",{className:"mt-2 text-[11px] font-medium sm:text-xs",style:{color:p.textMuted},children:[Wr(e.commenceTime)," · ",e.propositionCount," proposition",1===e.propositionCount?"":"s",(e.league||e.sport)&&` · ${e.league?.toUpperCase()??s(e.sport)}`]})]}),/* @__PURE__ */u(Ve,{size:22,color:p.textMuted,className:"shrink-0 transition-transform group-hover:translate-x-0.5"})]},e.id))})]})}function Kr({counts:t,onPick:n,onDoubleAction:o,colors:r,align:l="right",direction:a="down",menuShadow:i="0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}){const[s,c]=e.useState(!1),[d,p]=e.useState(!1),[f,h]=e.useState(null),x=e.useRef(null),g=e.useRef(null),y=e.useRef(null),b=36+36*t.length+12,w="up"===a||d?"up":"down";e.useEffect(()=>{if(!s)return p(!1),void h(null);const e=x.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<b&&o>n;p(r),h(Math.max((r?o:n)-12,132))};t(),window.addEventListener("resize",t),window.addEventListener("scroll",t,!0);const n=e=>{const t=e.target;x.current?.contains(t)||g.current?.contains(t)||c(!1)};return document.addEventListener("mousedown",n),()=>{window.removeEventListener("resize",t),window.removeEventListener("scroll",t,!0),document.removeEventListener("mousedown",n)}},[s,b]);const k=s?/* @__PURE__ */m("div",{ref:g,role:"menu",className:"rounded-lg overflow-y-auto overscroll-contain",style:{position:"absolute",top:"up"===w?void 0:"calc(100% + 6px)",bottom:"up"===w?"calc(100% + 6px)":void 0,left:"left"===l?0:void 0,right:"right"===l?0:void 0,maxHeight:f??void 0,zIndex:20,backgroundColor:r.background,border:`1px solid ${r.border}`,boxShadow:i,minWidth:160},children:[/* @__PURE__ */u("div",{className:"px-3 py-1.5 text-[10px] font-bold tracking-wider uppercase",style:{color:r.text,opacity:.55,borderBottom:`1px solid ${r.border}`},children:"How many picks?"}),t.map(e=>/* @__PURE__ */m("button",{type:"button",role:"menuitem",onClick:()=>{n(e),c(!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 ${r.border}`},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=r.backgroundAlt},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},children:[/* @__PURE__ */m("span",{className:"text-sm font-semibold",style:{color:r.text},children:[e," picks"]}),/* @__PURE__ */u("span",{className:"text-[10px] font-bold tracking-wider",style:{background:r.backgroundAlt,color:r.text,padding:"2px 6px",borderRadius:4},children:"QP"})]},e))]}):null;/* @__PURE__ */
198
- return m("div",{ref:x,className:"flex-shrink-0 relative",children:[/* @__PURE__ */u(Do,{onPress:()=>{o?null==y.current&&(y.current=window.setTimeout(()=>{y.current=null,c(e=>!e)},220)):c(e=>!e)},onDoubleClick:o?()=>{null!=y.current&&(window.clearTimeout(y.current),y.current=null),c(!1),o?.()}:void 0}),k]})}function Zr({className:e="",onBack:t,onNext:n,hideActions:o}){const{theme:r,headingFont:l,bodyFont:a,selectedGame:i,propositions:s,selections:c,toggleSelection:d,selectedPropositionCount:p,disableQuickPick:f,answeredCount:h,goToConfirmation:x,selectedEventId:g,sameGameMultiEvents:y,selectSameGameMultiEvent:b,selectedRule:w,howToPlayMarkdown:k,maxPayouts:v}=Lo(),N=r.colors,F=Ee(i),B=io(i??{},i?v?.[i.id]:void 0),C=bn(i)&&!g,A=y.find(e=>e.id===g),M=i?Ct(i,p,w):{min:0,max:0},S=M.min,z=bn(i)&&g?Math.min(M.max,s.length):M.max,P=S>0&&S===z,D=!(i?.allowed_propositions&&i.allowed_propositions.length>0)&&S>0&&z>S,O=P?z:z||s.length,T=e=>{const t=Math.max(0,Math.min(e??O,s.length));for(const l of Object.keys(c)){const e=Number(l);d(e,c[e])}const n=[...s].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")},E=!f&&s.length>0,j=D?Array.from({length:z-S+1},(e,t)=>S+t).filter(e=>e<=s.length):[],Y=h>0?h:S||O;/* @__PURE__ */
199
- return m("div",{className:`flex items-center justify-between gap-3 pl-2 ${e}`,children:[/* @__PURE__ */m("div",{children:[/* @__PURE__ */u("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:L(r),fontFamily:l},children:C?"Choose a Game":"Select Propositions"}),i&&/* @__PURE__ */u(qo,{onBack:g?()=>b(null):t,hideActions:o,label:A?gn(A):i.game_name,children:(F||k?.trim())&&/* @__PURE__ */u(Ke,{variant:"icon",content:k,panel:F,theme:r,title:`${i.game_name} — How to Play`,extra:/* @__PURE__ */u(so,{tiers:B.hasGenericDividends?B.tiers:[],modes:B.modes,pydDividends:B.pydDividends,minBet:B.minBet,maxBet:B.maxBet,colors:N,bodyFont:a,headingFont:l}),colors:{text:N.text,textMuted:N.textMuted,border:N.border,background:N.background,backgroundAlt:N.backgroundAlt,primary:N.primary,primaryText:N.primaryText},bodyFont:a,headingFont:l})})]}),E&&(j.length>1?/* @__PURE__ */u(Kr,{counts:j,onPick:e=>{T(e),x(),n?.()},onDoubleAction:()=>{T(Y),x(),n?.()},colors:N,menuShadow:xe(r)}):/* @__PURE__ */u("div",{className:"flex-shrink-0",children:/* @__PURE__ */u(Do,{onPress:()=>{T(),x(),n?.()}})}))]})}function $r({onNext:e,onBack:t,hideButtons:n=!1,className:o=""}){const{theme:r,selectionValid:l,answeredCount:a,selectedGame:i,selectedPropositionCount:s,selectedEventId:c,propositions:d,goToConfirmation:p,selectedRule:f}=Lo(),h=r.colors,x=R(r),g=h.textAlt??h.textMuted,y=i?Ct(i,s,f):{min:0,max:0},b=y.min,w=bn(i)&&c?Math.min(y.max,d.length):y.max,k=!!(i?.allowed_propositions&&i.allowed_propositions.length>0),v=!k&&b>0&&w>b&&a>=b&&a<w,N=w-a,F=!k&&b>0&&w>b,B=i?F?b:w||b||i.num_propositions||0:0,C=F?w:B,A=C>0?Math.min(a/C,1):0,M=F&&w>0?b/w*100:0,S=Math.max(0,b-a),z=l&&!!e,L=0===a?"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?a>=b?`${a} of maximum ${w}`:`${a} of minimum ${b}`:`${a} / ${B||d.length} picks`;/* @__PURE__ */
200
- return u("div",{className:o,children:/* @__PURE__ */u("div",{className:"rounded-xl border overflow-hidden mb-4",style:{borderColor:a>0?h.primary:h.border,backgroundColor:x,boxShadow:he(r)},children:/* @__PURE__ */m("div",{className:"w-full p-4 sm:p-5",style:{backgroundColor:a>0?`${h.primary}10`:"transparent"},children:[
201
- /* @__PURE__ */m("div",{className:"flex items-center justify-between gap-2 mb-3",children:[
202
- /* @__PURE__ */u("span",{className:"text-sm font-semibold shrink-0",style:{color:a>0?h.primary:g},children:P}),z?/* @__PURE__ */m("button",{type:"button",onClick:()=>{p(),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 ",a]}):/* @__PURE__ */u("span",{className:"text-xs font-semibold text-right",style:{color:A>=1?h.success:h.primary,animation:"fadeSlideIn 0.3s ease-out"},children:L},L),
203
- /* @__PURE__ */u("style",{children:"@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }"})]}),
204
- /* @__PURE__ */m("div",{className:"relative w-full h-2 rounded-full overflow-hidden",style:{backgroundColor:h.background},children:[/* @__PURE__ */u("div",{className:"h-full rounded-full transition-all duration-300",style:{width:`${Math.min(100*A,100)}%`,backgroundColor:l?h.success:h.primary}}),F&&/* @__PURE__ */u("div",{"aria-hidden":!0,title:`Minimum ${b}`,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&&/* @__PURE__ */m("div",{className:"flex items-center justify-between mt-1.5",children:[/* @__PURE__ */u("span",{className:"text-[11px]",style:{color:a>=b?h.success:h.textMuted},children:a>=b?`✓ Minimum ${b} reached`:`Minimum ${b}`}),/* @__PURE__ */m("span",{className:"text-[11px]",style:{color:h.textMuted},children:["Max ",w]})]})]})})})}function qr({view:e,onChange:t}){const{theme:n}=Lo(),o=n.colors,r=(n,r)=>{const l=e===n;/* @__PURE__ */
206
+ /* @__PURE__ */u("rect",{x:"2",y:"2",width:"356",height:"356",rx:"78",fill:"#DDD9D2",stroke:mt,strokeWidth:"4"}),
207
+ /* @__PURE__ */u("rect",{x:"50",y:"10",width:"260",height:"260",rx:"52",fill:mt,opacity:"0.30"}),
208
+ /* @__PURE__ */u("rect",{x:"50",y:"35",width:"260",height:"260",rx:"52",fill:mt,opacity:"0.55"}),
209
+ /* @__PURE__ */u("rect",{x:"50",y:"60",width:"260",height:"260",rx:"52",fill:mt}),
210
+ /* @__PURE__ */u("text",{x:"180",y:"220",fontFamily:"Manrope, Poppins, sans-serif",fontSize:s,letterSpacing:"-3",textAnchor:"middle",fontWeight:800,fill:"#DFFF1A",children:i}),o&&/* @__PURE__ */m(d,{children:[/* @__PURE__ */u("text",{x:"180",y:"345",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"24",letterSpacing:"-0.5",textAnchor:"middle",fontWeight:700,fill:mt,children:o}),/* @__PURE__ */u("text",{x:"262",y:"333",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"10",fontWeight:600,fill:mt,children:"TM"})]})]})}var Pl="yesno:favourite-sport",Tl=null;function Dl(){try{return globalThis.localStorage??null}catch{return null}}function Ol({label:t="Pick your sport",sublabel:n,renderSportLogo:o,className:r=""}){const{theme:l,sportOptions:a,sportSummaries:i,selectedSport:s,setSelectedSport:c,sportBaseKey:d,displaySportName:p,selections:h,toggleSelection:f,enableSportFavourites:x}=zr(),g=l.colors,y=V(l),b=ye(l),w=be(l),k=R(l),v=$(l),[N,C]=e.useState(null);if(e.useEffect(()=>{C(x?function(){try{const e=Dl()?.getItem(Pl);if(e)return e}catch{}return Tl}():null)},[x]),a.length<2)return null;const F=N?[...a].sort((e,t)=>Number(t.key===N)-Number(e.key===N)):a,B=void 0===n?x?"Tap to select. Star your favourite to pin it up front.":"Tap to select.":n;/* @__PURE__ */
211
+ return m("div",{className:`min-w-0 ${r}`,style:{fontFamily:b},children:[t&&/* @__PURE__ */u("div",{className:"pl-0.5 text-sm font-extrabold leading-tight tracking-tight",style:{color:k,fontFamily:w},children:t}),B&&/* @__PURE__ */u("div",{className:"mb-1.5 pl-0.5 text-[12px] leading-snug",style:{color:g.textMuted},children:B}),
212
+ /* @__PURE__ */u(nt,{theme:l,itemCount:F.length,contentClassName:"gap-2.5 px-0.5 pb-2.5 pt-1",children:e=>F.map(({key:t,count:n})=>{const r=i.find(e=>e.key===t),a=r?.games_today??0,b=s===t,F=N===t,B=r?.label??p(t);/* @__PURE__ */
213
+ return m("div",{className:"relative flex-none",style:{width:88},children:[/* @__PURE__ */m("button",{type:"button","aria-pressed":b,onClick:()=>{e()||(e=>{if(e!==s){for(const e of Object.keys(h)){const t=Number(e);f(t,h[t])}c(e)}})(t)},className:"flex w-full flex-col items-center gap-1.5 rounded-2xl border px-1.5 pb-2 text-center transition-transform active:scale-[0.97]",style:{minHeight:44,paddingTop:x?26:12,backgroundColor:y,borderColor:b?g.primary:g.border,boxShadow:b?`inset 0 0 0 2px ${g.primary}, ${j(l)}`:j(l),cursor:"pointer"},children:[
214
+ /* @__PURE__ */m("span",{className:"relative block leading-none",children:[o?o(t):/* @__PURE__ */u(Ll,{gameKey:t,size:40,footer:null,sportBaseKey:d,title:`${B} button`}),a>0&&/* @__PURE__ */u("span",{"aria-hidden":!0,className:"absolute -right-0.5 -top-0.5 h-2.5 w-2.5 rounded-full",style:{backgroundColor:g.success,border:`2px solid ${y}`}})]}),
215
+ /* @__PURE__ */u("span",{className:"line-clamp-2 max-w-full text-[11px] font-extrabold leading-tight tracking-tight",style:{color:b?k:g.text,fontFamily:w},children:B}),
216
+ /* @__PURE__ */u("span",{className:"max-w-full truncate text-[9px] font-bold uppercase tracking-[0.1em]",style:{color:b?g.primary:L(g.textMuted,.9)},children:xt(a,n)})]}),x&&/* @__PURE__ */u("button",{type:"button","aria-pressed":F,"aria-label":F?`Unpin ${B}`:`Pin ${B} to the front`,onClick:()=>{e()||(e=>{const t=N===e?null:e;C(t),function(e){Tl=e;try{e?Dl()?.setItem(Pl,e):Dl()?.removeItem(Pl)}catch{}}(t)})(t)},className:"absolute left-0 top-0 z-[1] flex h-8 w-8 items-center justify-center active:scale-90",style:{background:"none",border:"none",padding:0,cursor:"pointer"},children:/* @__PURE__ */u("span",{className:"flex h-5 w-5 items-center justify-center rounded-full border",style:{backgroundColor:F?L(v,.22):y,borderColor:F?v:g.border},children:/* @__PURE__ */u(tt,{size:12,filled:F,color:F?k:L(g.textMuted,.6)})})})]},t)})})]})}function El(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 jl({iconUrl:e,size:t=56}){const{theme:n}=zr(),o=n.colors,r=n.brand?.chip??o.primary,l=n.brand?.icon??o.primaryText,a=K(r,$(n),l);/* @__PURE__ */
217
+ return u("span",{"aria-hidden":!0,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:t,height:t,borderRadius:.3*t,backgroundColor:r,border:`1px solid ${El(l,.16)}`,flexShrink:0,boxShadow:`0 8px 18px -12px ${El(r,.9)}`},children:/* @__PURE__ */u(an,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:l,accentColor:a})})}function Yl({eyebrow:e,iconUrl:t,gameName:n,tagline:o,className:r=""}){const{theme:l,screenSize:a}=zr(),i=l.colors,s=be(l),c="mobile"===a;/* @__PURE__ */
218
+ return m("header",{className:`mb-4 flex flex-col items-center text-center sm:mb-7 ${r}`,children:[e&&/* @__PURE__ */u("h2",{className:"mb-4 hidden text-center text-xs font-bold uppercase tracking-[0.18em] sm:mb-5 sm:block",style:{color:i.primary,fontFamily:s},children:e}),
219
+ /* @__PURE__ */u(ml,{iconUrl:t,gameName:n,height:c?20:32,chipColor:i.primary,textColor:i.text,iconColor:i.primaryText,accentColor:l.brand?.accent,compact:c}),o&&/* @__PURE__ */u("p",{className:"mt-2 max-w-sm text-[13px] leading-snug sm:mt-3 sm:text-[15px] sm:leading-relaxed",style:{color:i.textMuted},children:o})]})}function Hl({className:e=""}){/* @__PURE__ */
220
+ return u(Ol,{className:`mb-4 ${e}`})}function Rl({smGridClassName:e,ariaLabel:t,children:n}){/* @__PURE__ */
221
+ return u("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 Gl="w-[124px] shrink-0 snap-start sm:w-auto sm:shrink";function Wl({legs:e,prizeBall:t=!0}){const{theme:n}=zr(),o=n.colors.primary,r=$(n);/* @__PURE__ */
222
+ return m("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:e}).map((e,t)=>/* @__PURE__ */u("span",{style:{width:5,height:5,borderRadius:1.5,backgroundColor:o,opacity:.85}},t)),t&&/* @__PURE__ */u("span",{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}})]})}function Il({tile:e,label:t,stat:n,detail:o,onSelect:r,children:l}){const{theme:a}=zr(),i=a.colors,s=be(a),c=R(a),d=i.primary,p=i.selectionCard??i.backgroundAlt;/* @__PURE__ */
223
+ return m("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:p,borderColor:i.border,boxShadow:`0 10px 24px -20px ${El(c,.7)}`},onMouseEnter:e=>{e.currentTarget.style.borderColor=d,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${El(d,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=i.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${El(c,.7)}`},children:[/* @__PURE__ */m("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,
224
+ /* @__PURE__ */m("div",{className:"flex min-w-0 flex-1 flex-col gap-1 sm:gap-1.5",children:[/* @__PURE__ */m("span",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[/* @__PURE__ */u("span",{className:"text-base font-extrabold leading-tight tracking-tight sm:text-xl",style:{color:c,fontFamily:s},children:t}),n&&/* @__PURE__ */u("span",{className:"rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em]",style:{backgroundColor:El(d,.12),color:d},children:n})]}),o&&o.length>0&&/* @__PURE__ */u("div",{className:"flex flex-col gap-0.5",children:o.map((e,t)=>/* @__PURE__ */u("span",{className:"text-xs leading-snug sm:text-[13px] "+(0===t?"":"hidden sm:block"),style:{color:i.textMuted},children:e},e))})]}),
225
+ /* @__PURE__ */u("span",{className:"shrink-0 self-center transition-transform group-hover:translate-x-0.5",style:{color:d},"aria-hidden":!0,children:/* @__PURE__ */u("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:/* @__PURE__ */u("path",{d:"m9 6 6 6-6 6"})})})]}),l&&/* @__PURE__ */u("div",{className:"mt-3 border-t pt-3",style:{borderColor:El(c,.08)},children:l})]})}function Ul(){/* @__PURE__ */
226
+ return u("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 $l(e){const t=kr(e);return"selections"===t||"rule_setup"===t&&Nr(e)}function Kl({onChange:t}){const{theme:n,selectedGame:o,selectedSport:r,sportSummaries:l,displaySportName:a,headingFont:i,games:s,selectGame:c}=zr(),d=n.colors,[p,h]=e.useState(!1),f=e.useRef(null);if(e.useEffect(()=>{if(!p)return;const e=e=>{f.current?.contains(e.target)||h(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[p]),!o)return null;const x=s.filter($l),g=r?l.find(e=>e.key===r)?.label??a(r):null;/* @__PURE__ */
227
+ return m(je,{theme:n,level:"raised",padding:"sm",radius:"lg",className:"mb-4 flex items-center gap-3",children:[
228
+ /* @__PURE__ */u(jl,{iconUrl:Ae(o),size:44}),
229
+ /* @__PURE__ */m("div",{className:"min-w-0",children:[/* @__PURE__ */u("div",{className:"truncate text-[15px] font-bold leading-tight",style:{color:R(n),fontFamily:i},children:o.game_name}),g&&/* @__PURE__ */u("div",{className:"truncate text-[13px] leading-tight",style:{color:d.textMuted},children:g})]}),
230
+ /* @__PURE__ */m("div",{className:"relative ml-auto shrink-0",ref:f,children:[/* @__PURE__ */u(Ye,{theme:n,variant:"ghost",size:"sm",radius:"pill",onPress:()=>x.length>1?h(e=>!e):t(),ariaLabel:x.length>1&&p?"Hide games":"Change game",children:"Change"}),p&&x.length>1&&/* @__PURE__ */u("div",{role:"listbox","aria-label":"Choose a game",className:"absolute right-0 z-[1] mt-1 max-h-72 w-60 overflow-y-auto rounded-xl border py-1 shadow-lg",style:{backgroundColor:d.background,borderColor:d.border},children:x.map(e=>{const t=e.id===o.id;/* @__PURE__ */
231
+ return m("button",{type:"button",role:"option","aria-selected":t,onClick:()=>(e=>{h(!1),e.id!==o.id&&c(e)})(e),className:"flex w-full items-center gap-2 px-3 py-2 text-left text-[13px]",style:{color:t?d.primary:d.text,fontWeight:t?700:500,backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[/* @__PURE__ */u("span",{className:"min-w-0 flex-1 truncate",children:e.game_name}),t&&/* @__PURE__ */u("span",{"aria-hidden":!0,children:"✓"})]},e.id)})})]})]})}function Zl({className:e="",onBack:t,onNext:n,hideActions:o}){const{theme:r,headingFont:l,bodyFont:a,selectedGame:i,propositions:s,selections:c,toggleSelection:d,selectedPropositionCount:p,disableQuickPick:h,answeredCount:f,goToConfirmation:x,selectedEventId:g,sameGameMultiEvents:y,selectSameGameMultiEvent:b,selectedRule:w,howToPlayMarkdown:k,maxPayouts:v}=zr(),N=r.colors,C=Ee(i),F=go(i??{},i?v?.[i.id]:void 0),B=Mn(i)&&!g,A=y.find(e=>e.id===g),M=i?Tt(i,p,w):{min:0,max:0},S=M.min,z=Mn(i)&&g?Math.min(M.max,s.length):M.max,L=S>0&&S===z,P=!(i?.allowed_propositions&&i.allowed_propositions.length>0)&&S>0&&z>S,T=L?z:z||s.length,D=e=>{const t=Math.max(0,Math.min(e??T,s.length));for(const l of Object.keys(c)){const e=Number(l);d(e,c[e])}const n=[...s].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")},O=!h&&s.length>0,E=P?Array.from({length:z-S+1},(e,t)=>S+t).filter(e=>e<=s.length):[],j=f>0?f:S||T;/* @__PURE__ */
232
+ return m("div",{className:`flex items-center justify-between gap-3 pl-2 ${e}`,children:[/* @__PURE__ */m("div",{children:[/* @__PURE__ */u("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:R(r),fontFamily:l},children:B?"Choose a Game":"Select Propositions"}),i&&/* @__PURE__ */u(yl,{onBack:g?()=>b(null):t,hideActions:o,label:A?Bn(A):i.game_name,children:(C||k?.trim())&&/* @__PURE__ */u(Ve,{variant:"icon",content:k,panel:C,theme:r,title:`${i.game_name} — How to Play`,extra:/* @__PURE__ */u(yo,{tiers:F.hasGenericDividends?F.tiers:[],modes:F.modes,pydDividends:F.pydDividends,minBet:F.minBet,maxBet:F.maxBet,colors:N,bodyFont:a,headingFont:l}),colors:{text:N.text,textMuted:N.textMuted,border:N.border,background:N.background,backgroundAlt:N.backgroundAlt,primary:N.primary,primaryText:N.primaryText},bodyFont:a,headingFont:l})})]}),O&&(E.length>1?/* @__PURE__ */u(Ml,{counts:E,onPick:e=>{D(e),x(),n?.()},onDoubleAction:()=>{D(j),x(),n?.()},colors:N,menuShadow:Y(r)}):/* @__PURE__ */u("div",{className:"flex-shrink-0",children:/* @__PURE__ */u(Pr,{onPress:()=>{D(),x(),n?.()}})}))]})}function ql({number:e,color:t,size:n=34,label:o,onSelect:r,onHover:l}){const a=(e,o)=>({position:"absolute",left:e,top:.4*e,width:n,height:n,borderRadius:.26*n,backgroundColor:t,opacity:o});/* @__PURE__ */
233
+ return m("button",{type:"button","aria-label":o,onClick:r,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onFocus:()=>l(!0),onBlur:()=>l(!1),style:{position:"relative",width:n+.2*n,height:1.3*n,flex:"0 0 auto",padding:0,border:"none",background:"none",cursor:"pointer",animation:"blade-slip-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1)"},children:[
234
+ /* @__PURE__ */u("span",{style:a(.44*n,.3)}),
235
+ /* @__PURE__ */u("span",{style:a(.22*n,.55)}),
236
+ /* @__PURE__ */u("span",{style:{position:"absolute",left:0,top:0,width:n,height:n,borderRadius:.26*n,backgroundColor:t,color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontSize:n*(e>9?.42:.5),fontWeight:800,letterSpacing:"-0.02em"},children:e})]})}function Vl({onNext:t,onBack:n,hideButtons:o=!1,className:r=""}){const{theme:l,headingFont:a,selectedGame:i,selectedPropositionCount:s,selectedEventId:c,propositions:d,goToConfirmation:p,selectedRule:h,maxPayouts:f,betAmount:x,setBetAmount:g,selections:y,gamePrice:b,toggleSelection:w}=zr(),k=l.colors,v=i?Tt(i,s,h):{min:0,max:0},N=v.min,C=Mn(i)&&c?Math.min(v.max,d.length):v.max,F=e.useRef(!1);e.useEffect(()=>{F.current=!1},[i?.id]),e.useEffect(()=>{x<=0&&!F.current&&g(Math.max(20,b))},[x,b,g]);const B=e.useRef([]);B.current=function(e,t){const n=Object.keys(t).map(Number),o=new Set(n),r=e.filter(e=>o.has(e)),l=n.filter(e=>!r.includes(e)).sort((e,t)=>e-t);return 0===l.length&&r.length===e.length?e:[...r,...l]}(B.current,y);const A=function({selections:e,order:t,minReq:n,maxReq:o,stake:r,payout20:l=0}){const a=[];for(const u of t){const t=e[u];t&&a.push({id:u,number:a.length+1,side:t})}const i=a.length,s=i>=n,c=Math.max(0,n-i),d=s?l*(r/20):0;return{legs:a,count:i,dividend:d,dividendText:vt(d),ctaLabel:s?`Continue with ${i} ›`:0===i?`Select at least ${n}`:`Add ${c} more to continue`,ctaDisabled:!s,atMax:o>0&&i>=o}}({selections:y,order:B.current,minReq:N,maxReq:C,stake:x,payout20:i?zl(f?.[i.id],B.current.length):0}),M=I(l),S=U(l),z=k.primaryText,L=K(k.primary,$(l),k.primaryText),P="text-[10px] font-bold uppercase tracking-[0.08em]",T=Fr(i),[D,O]=e.useState(null),E=A.legs.find(e=>e.id===D)??null,j=E?d.find(e=>e.id===E.id)?.description??d.find(e=>e.id===E.id)?.proposition??"":"",Y=e.useRef(null),H=A.legs[A.legs.length-1]?.side;return function(t,n,o){const r=e.useRef(null),l=e.useRef(t);e.useEffect(()=>{const e=e=>{r.current={x:e.clientX,y:e.clientY}};return document.addEventListener("pointerdown",e,!0),()=>document.removeEventListener("pointerdown",e,!0)},[]),e.useEffect(()=>{const e=t>l.current;l.current=t;const a=r.current,i=n.current?.lastElementChild;if(!e||!a||!i)return;if(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches)return;const s=i.getBoundingClientRect(),c=s.height||44,d=document.createElement("div");d.setAttribute("aria-hidden","true"),Object.assign(d.style,{position:"fixed",left:a.x-c/2+"px",top:a.y-c/2+"px",width:`${c}px`,height:`${c}px`,borderRadius:.26*c+"px",backgroundColor:o,boxShadow:"0 9px 14px rgba(10,49,56,0.4)",pointerEvents:"none",zIndex:"3",transition:"transform 0.42s cubic-bezier(0.34,0.82,0.3,1), opacity 0.42s ease-in"}),document.body.appendChild(d);const u=s.left+s.width/2-a.x,m=s.top+s.height/2-a.y,p=requestAnimationFrame(()=>{d.style.transform=`translate(${u}px, ${m}px) scale(0.5) rotate(-8deg)`,d.style.opacity="0"}),h=()=>d.remove();d.addEventListener("transitionend",h);const f=window.setTimeout(h,700);return()=>{cancelAnimationFrame(p),window.clearTimeout(f),h()}},[t])}(A.count,Y,"no"===H?S:M),/* @__PURE__ */m("div",{className:r,style:{fontFamily:a},children:[
237
+ /* @__PURE__ */u("style",{children:"@keyframes blade-slip-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}"}),
238
+ /* @__PURE__ */u("div",{ref:Y,className:"flex items-center overflow-x-auto min-h-[44px] pb-1.5",style:{scrollbarWidth:"none"},children:0===A.legs.length?/* @__PURE__ */u("span",{className:"text-[13px]",style:{color:k.textMuted},children:"Tap Yes or No to start building your multi."}):A.legs.map(e=>/* @__PURE__ */u(ql,{number:e.number,color:"yes"===e.side?M:S,label:`Remove leg ${e.number}, answered ${e.side}`,onSelect:()=>{O(t=>t===e.id?null:t),w(e.id,e.side)},onHover:t=>O(n=>t?e.id:n===e.id?null:n)},e.id))}),E&&/* @__PURE__ */m("div",{className:"flex items-center gap-2 mb-2 text-[12px]",style:{color:k.text},children:[/* @__PURE__ */u("span",{className:"px-1.5 py-0.5 rounded font-bold text-[10px] uppercase",style:{backgroundColor:"yes"===E.side?M:S,color:"#fff"},children:E.side}),/* @__PURE__ */u("span",{className:"truncate",children:j})]}),
239
+ /* @__PURE__ */m("div",{className:"flex flex-wrap items-center gap-2.5 mb-2",children:[/* @__PURE__ */m("div",{className:"flex items-center gap-2 flex-none",children:[/* @__PURE__ */u("span",{className:P,style:{color:k.textMuted},children:Sl}),/* @__PURE__ */m("div",T?{className:"flex items-center gap-2 rounded-[10px] px-3 py-2",style:{border:`1px solid ${k.border}`,backgroundColor:k.backgroundAlt},title:Br(i),children:[/* @__PURE__ */u("span",{className:"text-[15px] font-extrabold",style:{color:k.text},children:vt(x)}),/* @__PURE__ */u("span",{className:"text-[10px]",style:{color:k.textMuted},children:"locked"})]}:{className:"flex items-center rounded-[10px] overflow-hidden w-[108px]",style:{border:`1px solid ${k.border}`,backgroundColor:k.background},children:[/* @__PURE__ */u("span",{className:"pl-3 text-base font-extrabold",style:{color:k.text},children:"$"}),/* @__PURE__ */u("input",{type:"number",min:1,step:1,inputMode:"decimal","aria-label":Sl,value:x>0?String(x):"",onChange:e=>{F.current=!0,g(Math.max(0,parseFloat(e.target.value)||0))},className:"flex-1 min-w-0 bg-transparent outline-none border-0 py-2 pl-1 pr-2 text-[15px] font-extrabold",style:{color:k.text,fontFamily:a}})]})]}),/* @__PURE__ */m("div",{className:"flex items-baseline justify-end gap-2 rounded-[10px] px-3 py-1.5",style:{backgroundColor:k.primary,flex:"1 1 150px",minWidth:0},children:[/* @__PURE__ */u("span",{className:P,style:{color:z,opacity:.7},children:"Potential dividend"}),/* @__PURE__ */u("span",{className:"text-xl font-extrabold leading-none",style:{color:L},children:A.dividendText})]})]}),!o&&/* @__PURE__ */u(Ye,{theme:l,block:!0,size:"md",radius:"lg",disabled:A.ctaDisabled,onPress:()=>{p(),t?.()},children:A.ctaLabel})]})}function Xl({view:e,onChange:t}){const{theme:n}=zr(),o=n.colors,r=(n,r)=>{const l=e===n;/* @__PURE__ */
205
240
  return u("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)};/* @__PURE__ */
206
- return m("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 Vr({onNext:t,onBack:n,hideTitle:o,hideActions:r,defaultView:l="list",view:a,onViewChange:i,hideViewSwitch:s,onSwipeDragStateChange:c,className:p=""}){const f=Lo(),{selectedRule:h}=f,{theme:x,bodyFont:g,selectedGame:y,propositions:b,propositionsForSportPicker:w,selections:k,toggleSelection:v,loading:N,error:F,renderTeamLogo:B,filterSport:C,initialSport:A,gameCategory:M,selectedPropositionCount:S,handlePropositionCountChange:z,goToConfirmation:L,goBack:P,selectedCategory:D,setSelectedCategory:O,selectedSport:T,setSelectedSport:E,selectedEventId:j,propositionsForCategoryPicker:Y,answeredCount:H}=f;x.colors;const[R,G]=e.useState(l),W=a??R,I=e.useCallback(e=>{void 0===a&&G(e),i?.(e)},[a,i]);e.useEffect(()=>{y||(f.goToSportSelection(),n?.())},[y,f,n]);const U=e.useMemo(()=>{if(!y)return null;const{min:e,max:t}=Ct(y,S??void 0,h);if(e>0&&e===t)return e;const n=hr(y);return null!=S&&S>0&&("game_set"===n||"pick_your_dividend"===n||"safety_net"===n||xr(y))?S:null},[y,S]),K=e.useRef(H);e.useEffect(()=>{const e=K.current;K.current=H,null!=U&&e<U&&H===U&&(L(),t?.())},[H,U]);const Z=e.useMemo(()=>Nt(Y??[]),[Y]);e.useEffect(()=>{y&&1===Z.length&&D!==Z[0]&&O(Z[0])},[y,Z,D,O]);const $=e.useMemo(()=>{const e=/* @__PURE__ */new Set;for(const t of w??[])t.sport&&e.add(t.sport);return Array.from(e)},[w]);if(e.useEffect(()=>{y&&(Z.length>1&&!D||1===$.length&&T!==$[0]&&E($[0]))},[y,Z,D,$,T,E]),!y)return null;const q=Z.length>1&&!D,V=!q&&$.length>1&&!T,X=!q&&!V&&bn(y)&&!j,Q=(()=>{if(!bn(y)||!j)return y;const e=Math.min(y.max_propositions??b.length,b.length);return{...y,max_propositions:e,allowed_propositions:y.allowed_propositions?.filter(t=>t<=e)}})(),J=()=>{P(),n?.()};/* @__PURE__ */
207
- return m("div",{className:`flex flex-col min-h-full ${p}`,style:{fontFamily:g},children:[!o&&/* @__PURE__ */u("div",{className:"mb-6",children:/* @__PURE__ */u(Zr,{onBack:r?J:void 0,onNext:r?t:void 0,hideActions:r})}),!bn(y)&&/* @__PURE__ */u(Ko,{}),
208
- /* @__PURE__ */u("div",{className:"flex-1",children:q?/* @__PURE__ */u(Gr,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>O(e)}):V?/* @__PURE__ */u(Yr,{hideTitle:!0,hideActions:!0,onSelectSport:e=>E(e)}):X?/* @__PURE__ */u(Ur,{}):"swipe"===W?/* @__PURE__ */u(Or,{onBack:J,onNext:t,viewSwitch:s?void 0:/* @__PURE__ */u(qr,{view:W,onChange:I}),onDragStateChange:c}):/* @__PURE__ */u(d,{children:/* @__PURE__ */u(Yo,{game:Q,propositions:b,selections:k,onToggleSelection:v,onNext:()=>{L(),t?.()},onBack:J,loading:N,error:F,theme:x,hideActions:!0,initialSport:C??A,renderTeamLogo:B,disableQuickPick:!0,selectedPropositionCount:S,onPropositionCountChange:z,gameCategory:M,headerExtra:s?void 0:/* @__PURE__ */u(qr,{view:W,onChange:I})})})}),!r&&!q&&!V&&!X&&/* @__PURE__ */u("div",{className:"mt-6",children:/* @__PURE__ */u($r,{onNext:t,onBack:n})})]})}function Xr({count:e,payout20:t,selected:n,onSelect:o,colors:r,bodyFont:l,extraBetAmount:a,buttonLabel:i,hidePayouts:s}){const c=null!=a&&20!==a,p=null!=t&&t>0&&c?t*(a/20):null;/* @__PURE__ */
209
- return m("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */u("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}`}),!s&&null!=t&&t>0&&/* @__PURE__ */m(d,{children:[/* @__PURE__ */m("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]}),c?null!=p&&/* @__PURE__ */u("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${r.primary}12`,color:r.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:ht(p)}):/* @__PURE__ */u("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${r.primary}12`,color:r.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:ht(t)})]})]})}function Qr({tiers:e,selectedCount:t,onSelect:n,colors:o,bodyFont:r,extraBetAmount:l,buttonLabel:a,columnLabel:i="Legs",buildYourOwn:s,quickPickOnly:p,onQuickPick:f,collapsible:h,expanded:x,onExpandedChange:g,summaryTiers:y}){const[b,w]=c(!1),k=x??b,v=e.some(e=>e.payout20>0),N=null!=l&&20!==l,F=N?`$${Math.round(l)} returns`:"$20 returns",B=!!h&&!k,C=v&&!B,A=(y??e).reduce((e,t)=>t.payout20>e?t.payout20:e,0),M=N&&A>0?A*(l/20):A,S=e.length>0?82*e.length+8*Math.max(0,e.length-1):82;/* @__PURE__ */
210
- return m("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"stretch"},children:[/* @__PURE__ */m("div",{style:{display:"flex",flexDirection:"row",gap:8,overflowX:p?"visible":"auto",overflowY:"visible",alignItems:"flex-start",paddingBottom:6},children:[/* @__PURE__ */m("div",{style:{display:"flex",flexDirection:"column",gap:8,flexShrink:0,width:70},children:[/* @__PURE__ */u("div",{className:"py-1.5 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:p?"Quick Pick":i}),C&&/* @__PURE__ */m(d,{children:[/* @__PURE__ */u("div",{className:"py-1 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:"Dividend"}),/* @__PURE__ */u("div",{className:"py-1 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:F})]})]}),p?/* @__PURE__ */m("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"flex-start",width:S},children:[/* @__PURE__ */u(Kr,{counts:(y??e).map(e=>e.count),onPick:e=>f?f(e):n(e),align:"left",direction:"up",colors:{background:o.background??"#ffffff",backgroundAlt:o.backgroundAlt??"#f3f4f6",border:o.border??"#e5e7eb",text:o.text??"#111827"}}),v&&!B&&/* @__PURE__ */u("div",{style:{display:"flex",flexDirection:"row",gap:8},children:e.map(e=>/* @__PURE__ */u("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:null!=e.payout20&&e.payout20>0?/* @__PURE__ */m(d,{children:[/* @__PURE__ */m("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]}),/* @__PURE__ */u("span",{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:ht(N?e.payout20*(l/20):e.payout20)})]}):/* @__PURE__ */m(d,{children:[/* @__PURE__ */m("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]}),/* @__PURE__ */u("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))})]}):s?/* @__PURE__ */m("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"flex-start",width:S},children:[/* @__PURE__ */u("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"}),v&&!B&&/* @__PURE__ */u("div",{style:{display:"flex",flexDirection:"row",gap:8},children:e.map(e=>/* @__PURE__ */u("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:null!=e.payout20&&e.payout20>0?/* @__PURE__ */m(d,{children:[/* @__PURE__ */m("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]}),/* @__PURE__ */u("span",N?{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:ht(e.payout20*(l/20))}:{className:"inline-flex items-center justify-center px-2 py-1 rounded-md text-xs font-bold",style:{backgroundColor:`${o.primary}12`,color:o.primary,whiteSpace:"nowrap",alignSelf:"stretch",textAlign:"center"},children:ht(e.payout20)})]}):/* @__PURE__ */m(d,{children:[/* @__PURE__ */m("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]}),/* @__PURE__ */u("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=>/* @__PURE__ */u(Xr,{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:B},e.count))]}),h&&(v?/* @__PURE__ */m("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 self-start max-w-full",style:{fontFamily:r},children:[/* @__PURE__ */m("span",{className:"text-xs font-semibold leading-snug",style:{color:o.text},children:["Win up to ",
211
- /* @__PURE__ */u("span",{style:{color:o.heading??o.text??o.primary},children:ht(M)}),
212
- /* @__PURE__ */u("span",{style:{color:o.textMuted},children:` for $${N?Math.round(l):20}`})]}),/* @__PURE__ */u("button",{type:"button",onClick:()=>{return e=!k,void 0===x&&w(e),void g?.(e);var e},"aria-expanded":k,className:"text-xs font-semibold rounded-md transition-colors shrink-0",style:{background:k?o.buttonSecondary:o.background??"#ffffff",border:`1px solid ${k?o.primary??o.border:o.border}`,padding:"4px 10px",cursor:"pointer",color:o.text,fontFamily:r,lineHeight:1.35},children:k?"Hide dividends":"Show dividends"})]}):/* @__PURE__ */u("div",{"aria-hidden":"true",className:"text-xs font-semibold self-start",style:{padding:"2px 0",visibility:"hidden",fontFamily:r},children:"Show dividends"}))]})}function Jr(e){return{game_id:e.selectedGame.id,rule_id:e.selectedRule?.id??null,proposition_ids:e.selectedPropositionIds,selections:e.selections,stake:e.betAmount}}function _r({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,selectedGame:l,selectedEventId:a,propositions:i,selections:s,toggleSelection:c,upgradePropositionCount:d,selectedPropositionCount:p,disableQuickPick:f,answeredCount:h,selectedRule:x}=Lo(),g=o.colors,y=l?Ct(l,p,x):{min:0,max:0},b=y.min,w=bn(l)&&a?Math.min(y.max,i.length):y.max,k=b>0&&b===w,v=!(l?.allowed_propositions&&l.allowed_propositions.length>0)&&b>0&&w>b,N=k?w:w||i.length,F=e=>{const t=Math.max(0,Math.min(e??N,i.length));for(const r of Object.keys(s)){const e=Number(r);c(e,s[e])}const{yesPicks:n,noPicks:o}=$t(i,t);for(const r of n)c(r.id,"yes");for(const r of o)c(r.id,"no");d(t)},B=!f&&i.length>0,C=v?Array.from({length:w-b+1},(e,t)=>b+t):[],A=h>0?h:b||N;/* @__PURE__ */
213
- return m("div",{className:`flex items-center justify-between gap-3 pl-2 ${e}`,children:[/* @__PURE__ */m("div",{children:[/* @__PURE__ */u("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:L(o),fontFamily:r},children:"Place Your Wager"}),l&&/* @__PURE__ */u(qo,{onBack:t,hideActions:n,label:l.game_name})]}),B&&(C.length>1?/* @__PURE__ */u(Kr,{counts:C,onPick:e=>F(e),onDoubleAction:()=>F(A),colors:g,menuShadow:xe(o)}):/* @__PURE__ */u("div",{className:"flex-shrink-0",children:/* @__PURE__ */u(Do,{onPress:()=>F()})}))]})}function el({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,className:r=""}){const l=Lo(),{theme:a,selectedGame:i,expectedCorrect:s,betAmount:c,submitting:d,submitError:p,canSubmit:f,payouts:h,selectedPropositionIds:x,screenSize:g}=l,y=a.colors;if(!i)return null;const b=h[s]??0,w=At(i),k=s===x.length,v=w?.enabled&&k;/* @__PURE__ */
214
- return m("div",{className:`flex items-center justify-between pt-4 ${r}`,children:[e&&"mobile"!==g&&/* @__PURE__ */u(je,{theme:a,variant:"secondary",onPress:e,children:"Back"}),/* @__PURE__ */m("div",{className:"flex items-center gap-3",children:[p&&/* @__PURE__ */u("span",{className:"text-xs",style:{color:y.error},children:p}),(b>0||v)&&/* @__PURE__ */m("div",{className:"text-right leading-tight hidden sm:block",children:[/* @__PURE__ */u("span",{className:"text-[10px] uppercase tracking-wide block",style:{color:y.textMuted},children:"Potential winnings"}),/* @__PURE__ */m("span",{className:"text-sm font-bold",style:{color:y.heading??y.text},children:[ht(b),v&&/* @__PURE__ */u("span",{style:{color:y.warning},children:" + Jackpot"})]})]}),
215
- /* @__PURE__ */u(je,{theme:a,variant:"primary",disabled:!f,onPress:async()=>{n?(await l.handleSubmit(),t?.()):o?.(Jr(l))},children:n?d?"Placing…":`Place Entry (${ht(c)})`:"Log in to place entry"})]})]})}function tl({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,hideTitle:r,hideActions:a,className:i=""}){const s=Lo(),{theme:c,bodyFont:p,selectedGame:f,selectedPropositions:h,selections:x,propositions:g,disableQuickPick:y,selectedPropositionCount:b,selectedEventId:w,expectedCorrect:k,setExpectedCorrect:v,betAmount:N,setBetAmount:F,submitting:B,submitError:C,canSubmit:A,winningCounts:M,payouts:S,overloadPayouts:z,renderTeamLogo:L,userBalance:P,onRecharge:D,goBack:O,toggleSelection:T,upgradePropositionCount:E,goToSportSelection:j,selectedRule:Y}=s,H=c.colors;if(l(()=>{f||(j(),e?.())},[f,j,e]),!f)return null;const R=!!(f.allowed_propositions&&f.allowed_propositions.length>0),G=Ct(f,b,Y),W=G.min,I=bn(f)&&w?Math.min(G.max,g.length):G.max,U=Object.keys(x).length,K=W>0&&U<W,Z=!R&&W>0&&I>W&&U>=W&&U<I,$=R?[...f.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(b??0)):[],q=R&&$.length>0&&!K,V=Z||q,X=I-U;H.textAlt??H.text,W>0&&W===I||I||g.length;const Q=()=>{O(),e?.()},J=(R?[...f.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===U&&e<(b??1/0)),_=R&&U<Math.min(...f.allowed_propositions??[1/0]),ee=R&&K&&!_,te=yr(f),ne=function(e,t,n,o){const r=e?.description?.trim();if(r)return r;const l=(t??[]).filter(e=>Number.isFinite(e)).sort((e,t)=>e-t);if(0===l.length||n<=0)return null;const a=l[0];if(a>=n)return"Get every pick right to win.";if(!l.every((e,t)=>e===a+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 i=l.map(e=>o?.[e]).filter(e=>Number.isFinite(e));if(i.length===l.length&&i.length>1&&i.every((e,t)=>0===t||e>i[t-1]))return`Get ${a} of your ${n} picks right to start winning — every pick after that grows the prize.`;const s=n-a;return`Get ${a} of your ${n} picks right to win — up to ${1===s?"one miss":`${s} misses`} still pays.`}(Y,M,U,S),oe=null!=J?te.belowRequiredHint(J,b??W):te.belowRequiredAddOnlyHint(b??W);return l(()=>{!K||R&&!_||Q()},[K,R,_]),/* @__PURE__ */m("div",{className:`flex flex-col min-h-full ${i}`,style:{fontFamily:p},children:[!r&&/* @__PURE__ */u("div",{className:"mb-6",children:/* @__PURE__ */u(_r,{onBack:e,hideActions:a})}),
216
- /* @__PURE__ */u("div",{className:"flex-1",children:/* @__PURE__ */u(Ro,{game:f,propositions:h,selections:x,onToggleSelection:T,onRemoveSelection:()=>{},onSubmit:async()=>{n?(await s.handleSubmit(),t?.()):o?.(Jr(s))},onBack:Q,loading:B,error:C,expectedCorrect:k,onExpectedCorrectChange:v,betAmount:N,onBetAmountChange:F,theme:c,showCustomAmount:!0,betAmountLocked:no(f),betAmountLockedNote:"Set by your dividend ladder rung.",hideActions:!0,winningCounts:M,payouts:S,renderTeamLogo:L,canSubmit:A,authenticated:n,userBalance:P,onRecharge:D,boostBanner:/* @__PURE__ */m(d,{children:[ne&&/* @__PURE__ */m("div",{className:"p-3 rounded-lg border mb-2",style:{backgroundColor:`${H.primary}08`,borderColor:`${H.primary}30`},children:[/* @__PURE__ */u("p",{className:"text-[10px] font-bold uppercase tracking-[0.1em] mb-1",style:{color:H.textMuted},children:"How you win"}),/* @__PURE__ */u("p",{className:"text-xs sm:text-sm",style:{color:H.text},children:ne})]}),ee&&/* @__PURE__ */m("div",{className:"p-3 rounded-lg border flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3",style:{backgroundColor:`${H.warning}10`,borderColor:`${H.warning}40`},children:[/* @__PURE__ */m("p",{className:"text-xs sm:text-sm",style:{color:H.text},children:["You have ",
217
- /* @__PURE__ */m("span",{style:{fontWeight:700},children:[U," pick",1!==U?"s":""]}),"."," ",oe]}),/* @__PURE__ */m("div",{className:"flex gap-2 flex-shrink-0",children:[/* @__PURE__ */u("button",{type:"button",onClick:Q,className:"px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:H.buttonSecondaryText,backgroundColor:H.buttonSecondary,cursor:"pointer"},children:"Add a pick"}),null!=J&&/* @__PURE__ */u("button",{type:"button",onClick:()=>E(J),className:"px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:H.buttonPrimaryText,backgroundColor:H.buttonPrimary,cursor:"pointer"},children:te.switchTierLabel(J)})]})]}),V&&/* @__PURE__ */u("div",{className:"p-3 rounded-lg border",style:{backgroundColor:`${H.primary}08`,borderColor:`${H.primary}30`},children:q?(()=>{const e=b??U,t=z[e],n=N>0?N:20,o=null!=t&&t>0?t*(n/20):null;/* @__PURE__ */
241
+ return m("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 Ql({onNext:t,onBack:n,hideTitle:o,hideActions:r,defaultView:l="list",view:a,onViewChange:i,hideViewSwitch:s,onSwipeDragStateChange:c,className:p=""}){const h=zr(),{selectedRule:f}=h,{theme:x,bodyFont:g,selectedGame:y,propositions:b,selections:w,toggleSelection:k,loading:v,error:N,renderTeamLogo:C,filterSport:F,initialSport:B,gameCategory:A,selectedPropositionCount:M,handlePropositionCountChange:S,goToConfirmation:z,goBack:L,selectedCategory:P,setSelectedCategory:T,selectedSport:D,selectedEventId:O,propositionsForCategoryPicker:E,answeredCount:j}=h;x.colors;const[Y,H]=e.useState(l),R=a??Y,G=e.useCallback(e=>{void 0===a&&H(e),i?.(e)},[a,i]);e.useEffect(()=>{y||(h.goToSportSelection(),n?.())},[y,h,n]);const W=e.useMemo(()=>{if(!y)return null;const{min:e,max:t}=Tt(y,M??void 0,f);if(e>0&&e===t)return e;const n=kr(y);return null!=M&&M>0&&("game_set"===n||"pick_your_dividend"===n||"safety_net"===n||vr(y))?M:null},[y,M]),I=e.useRef(j);e.useEffect(()=>{const e=I.current;I.current=j,null!=W&&e<W&&j===W&&(z(),t?.())},[j,W]);const U=e.useMemo(()=>zt(E??[]),[E]);if(e.useEffect(()=>{y&&1===U.length&&P!==U[0]&&T(U[0])},[y,U,P,T]),!y)return null;const $=U.length>1&&!P,K=!$&&Mn(y)&&!O,Z=(()=>{if(!Mn(y)||!O)return y;const e=Math.min(y.max_propositions??b.length,b.length);return{...y,max_propositions:e,allowed_propositions:y.allowed_propositions?.filter(t=>t<=e)}})(),q=()=>{L(),n?.()};/* @__PURE__ */
242
+ return m("div",{className:`flex flex-col min-h-full ${p}`,style:{fontFamily:g},children:[!o&&/* @__PURE__ */u("div",{className:"mb-6",children:/* @__PURE__ */u(Zl,{onBack:r?q:void 0,onNext:r?t:void 0,hideActions:r})}),!Mn(y)&&/* @__PURE__ */u(fl,{}),
243
+ /* @__PURE__ */u("div",{className:"flex-1",children:$?/* @__PURE__ */u(Cl,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>T(e)}):K?/* @__PURE__ */u(Al,{}):"swipe"===R?/* @__PURE__ */u($r,{onBack:q,onNext:t,viewSwitch:s?void 0:/* @__PURE__ */u(Xl,{view:R,onChange:G}),onDragStateChange:c}):/* @__PURE__ */m(d,{children:[/* @__PURE__ */u(Kl,{onChange:q}),/* @__PURE__ */u(sl,{game:Z,propositions:b,selections:w,onToggleSelection:k,onNext:()=>{z(),t?.()},onBack:q,loading:v,error:N,theme:x,hideActions:!0,initialSport:F??B,renderTeamLogo:C,disableQuickPick:!0,selectedPropositionCount:M,onPropositionCountChange:S,gameCategory:A,headerExtra:s?void 0:/* @__PURE__ */u(Xl,{view:R,onChange:G})})]})}),!r&&!$&&!K&&/* @__PURE__ */u("div",{className:"mt-6",children:/* @__PURE__ */u(Vl,{onNext:t,onBack:n})})]})}function Jl({count:e,payout20:t,selected:n,onSelect:o,colors:r,bodyFont:l,extraBetAmount:a,buttonLabel:i,hidePayouts:s}){const c=null!=a&&20!==a,p=null!=t&&t>0&&c?t*(a/20):null;/* @__PURE__ */
244
+ return m("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */u("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}`}),!s&&null!=t&&t>0&&/* @__PURE__ */m(d,{children:[/* @__PURE__ */m("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]}),c?null!=p&&/* @__PURE__ */u("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:vt(p)}):/* @__PURE__ */u("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:vt(t)})]})]})}function _l({tiers:e,selectedCount:t,onSelect:n,colors:o,bodyFont:r,extraBetAmount:l,buttonLabel:a,columnLabel:i="Legs",buildYourOwn:s,quickPickOnly:p,onQuickPick:h,collapsible:f,expanded:x,onExpandedChange:g,summaryTiers:y}){const[b,w]=c(!1),k=x??b,v=e.some(e=>e.payout20>0),N=null!=l&&20!==l,C=N?`$${Math.round(l)} returns`:"$20 returns",F=!!f&&!k,B=v&&!F,A=(y??e).reduce((e,t)=>t.payout20>e?t.payout20:e,0),M=N&&A>0?A*(l/20):A,S=e.length>0?82*e.length+8*Math.max(0,e.length-1):82;/* @__PURE__ */
245
+ return m("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"stretch"},children:[/* @__PURE__ */m("div",{style:{display:"flex",flexDirection:"row",gap:8,overflowX:p?"visible":"auto",overflowY:"visible",alignItems:"flex-start",paddingBottom:6},children:[/* @__PURE__ */m("div",{style:{display:"flex",flexDirection:"column",gap:8,flexShrink:0,width:70},children:[/* @__PURE__ */u("div",{className:"py-1.5 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:p?"Quick Pick":i}),B&&/* @__PURE__ */m(d,{children:[/* @__PURE__ */u("div",{className:"py-1 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:"Dividend"}),/* @__PURE__ */u("div",{className:"py-1 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:C})]})]}),p?/* @__PURE__ */m("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"flex-start",width:S},children:[/* @__PURE__ */u(Ml,{counts:(y??e).map(e=>e.count),onPick:e=>h?h(e):n(e),align:"left",direction:"up",colors:{background:o.background??"#ffffff",backgroundAlt:o.backgroundAlt??"#f3f4f6",border:o.border??"#e5e7eb",text:o.text??"#111827"}}),v&&!F&&/* @__PURE__ */u("div",{style:{display:"flex",flexDirection:"row",gap:8},children:e.map(e=>/* @__PURE__ */u("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:null!=e.payout20&&e.payout20>0?/* @__PURE__ */m(d,{children:[/* @__PURE__ */m("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]}),/* @__PURE__ */u("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:vt(N?e.payout20*(l/20):e.payout20)})]}):/* @__PURE__ */m(d,{children:[/* @__PURE__ */m("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]}),/* @__PURE__ */u("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))})]}):s?/* @__PURE__ */m("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"flex-start",width:S},children:[/* @__PURE__ */u("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"}),v&&!F&&/* @__PURE__ */u("div",{style:{display:"flex",flexDirection:"row",gap:8},children:e.map(e=>/* @__PURE__ */u("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:null!=e.payout20&&e.payout20>0?/* @__PURE__ */m(d,{children:[/* @__PURE__ */m("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]}),/* @__PURE__ */u("span",N?{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:vt(e.payout20*(l/20))}:{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:vt(e.payout20)})]}):/* @__PURE__ */m(d,{children:[/* @__PURE__ */m("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]}),/* @__PURE__ */u("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=>/* @__PURE__ */u(Jl,{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:F},e.count))]}),f&&(v?/* @__PURE__ */m("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 self-start max-w-full",style:{fontFamily:r},children:[/* @__PURE__ */m("span",{className:"text-xs font-semibold leading-snug",style:{color:o.text},children:["Win up to ",
246
+ /* @__PURE__ */u("span",{style:{color:o.heading??o.text??o.primary},children:vt(M)}),
247
+ /* @__PURE__ */u("span",{style:{color:o.textMuted},children:` for $${N?Math.round(l):20}`})]}),/* @__PURE__ */u("button",{type:"button",onClick:()=>{return e=!k,void 0===x&&w(e),void g?.(e);var e},"aria-expanded":k,className:"text-xs font-semibold rounded-md transition-colors shrink-0",style:{background:k?o.buttonSecondary:o.background??"#ffffff",border:`1px solid ${k?o.primary??o.border:o.border}`,padding:"4px 10px",cursor:"pointer",color:o.text,fontFamily:r,lineHeight:1.35},children:k?"Hide dividends":"Show dividends"})]}):/* @__PURE__ */u("div",{"aria-hidden":"true",className:"text-xs font-semibold self-start",style:{padding:"2px 0",visibility:"hidden",fontFamily:r},children:"Show dividends"}))]})}function ea(e){return{game_id:e.selectedGame.id,rule_id:e.selectedRule?.id??null,proposition_ids:e.selectedPropositionIds,selections:e.selections,stake:e.betAmount}}function ta({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,selectedGame:l,selectedEventId:a,propositions:i,selections:s,toggleSelection:c,upgradePropositionCount:d,selectedPropositionCount:p,disableQuickPick:h,answeredCount:f,selectedRule:x}=zr(),g=o.colors,y=l?Tt(l,p,x):{min:0,max:0},b=y.min,w=Mn(l)&&a?Math.min(y.max,i.length):y.max,k=b>0&&b===w,v=!(l?.allowed_propositions&&l.allowed_propositions.length>0)&&b>0&&w>b,N=k?w:w||i.length,C=e=>{const t=Math.max(0,Math.min(e??N,i.length));for(const r of Object.keys(s)){const e=Number(r);c(e,s[e])}const{yesPicks:n,noPicks:o}=nn(i,t);for(const r of n)c(r.id,"yes");for(const r of o)c(r.id,"no");d(t)},F=!h&&i.length>0,B=v?Array.from({length:w-b+1},(e,t)=>b+t):[],A=f>0?f:b||N;/* @__PURE__ */
248
+ return m("div",{className:`flex items-center justify-between gap-3 pl-2 ${e}`,children:[/* @__PURE__ */m("div",{children:[/* @__PURE__ */u("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:R(o),fontFamily:r},children:"Place Your Wager"}),l&&/* @__PURE__ */u(yl,{onBack:t,hideActions:n,label:l.game_name})]}),F&&(B.length>1?/* @__PURE__ */u(Ml,{counts:B,onPick:e=>C(e),onDoubleAction:()=>C(A),colors:g,menuShadow:Y(o)}):/* @__PURE__ */u("div",{className:"flex-shrink-0",children:/* @__PURE__ */u(Pr,{onPress:()=>C()})}))]})}function na({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,className:r=""}){const l=zr(),{theme:a,selectedGame:i,expectedCorrect:s,betAmount:c,submitting:d,submitError:p,canSubmit:h,payouts:f,selectedPropositionIds:x,screenSize:g}=l,y=a.colors;if(!i)return null;const b=f[s]??0,w=Dt(i),k=s===x.length,v=w?.enabled&&k;/* @__PURE__ */
249
+ return m("div",{className:`flex items-center justify-between pt-4 ${r}`,children:[e&&"mobile"!==g&&/* @__PURE__ */u(Ye,{theme:a,variant:"secondary",onPress:e,children:"Back"}),/* @__PURE__ */m("div",{className:"flex items-center gap-3",children:[p&&/* @__PURE__ */u("span",{className:"text-xs",style:{color:y.error},children:p}),(b>0||v)&&/* @__PURE__ */m("div",{className:"text-right leading-tight hidden sm:block",children:[/* @__PURE__ */u("span",{className:"text-[10px] uppercase tracking-wide block",style:{color:y.textMuted},children:"Potential winnings"}),/* @__PURE__ */m("span",{className:"text-sm font-bold",style:{color:y.heading??y.text},children:[vt(b),v&&/* @__PURE__ */u("span",{style:{color:y.warning},children:" + Jackpot"})]})]}),
250
+ /* @__PURE__ */u(Ye,{theme:a,variant:"primary",disabled:!h,onPress:async()=>{n?(await l.handleSubmit(),t?.()):o?.(ea(l))},children:n?d?"Placing…":`Place Entry (${vt(c)})`:"Log in to place entry"})]})]})}function oa({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,hideTitle:r,hideActions:a,className:i=""}){const s=zr(),{theme:c,bodyFont:p,selectedGame:h,selectedPropositions:f,selections:x,propositions:g,disableQuickPick:y,selectedPropositionCount:b,selectedEventId:w,expectedCorrect:k,setExpectedCorrect:v,betAmount:N,setBetAmount:C,submitting:F,submitError:B,canSubmit:A,winningCounts:M,payouts:S,overloadPayouts:z,renderTeamLogo:L,userBalance:P,onRecharge:T,goBack:D,toggleSelection:O,upgradePropositionCount:E,goToSportSelection:j,selectedRule:Y}=s,H=c.colors;if(l(()=>{h||(j(),e?.())},[h,j,e]),!h)return null;const G=!!(h.allowed_propositions&&h.allowed_propositions.length>0),W=Tt(h,b,Y),I=W.min,U=Mn(h)&&w?Math.min(W.max,g.length):W.max,$=Object.keys(x).length,K=I>0&&$<I,Z=!G&&I>0&&U>I&&$>=I&&$<U,q=G?[...h.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(b??0)):[],V=G&&q.length>0&&!K,X=Z||V,Q=U-$;H.textAlt??H.text,I>0&&I===U||U||g.length;const J=()=>{D(),e?.()},_=(G?[...h.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===$&&e<(b??1/0)),ee=G&&$<Math.min(...h.allowed_propositions??[1/0]),te=G&&K&&!ee,ne=Cr(h),oe=function(e,t,n,o){const r=e?.description?.trim();if(r)return r;const l=(t??[]).filter(e=>Number.isFinite(e)).sort((e,t)=>e-t);if(0===l.length||n<=0)return null;const a=l[0];if(a>=n)return"Get every pick right to win.";if(!l.every((e,t)=>e===a+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 i=l.map(e=>o?.[e]).filter(e=>Number.isFinite(e));if(i.length===l.length&&i.length>1&&i.every((e,t)=>0===t||e>i[t-1]))return`Get ${a} of your ${n} picks right to start winning — every pick after that grows the prize.`;const s=n-a;return`Get ${a} of your ${n} picks right to win — up to ${1===s?"one miss":`${s} misses`} still pays.`}(Y,M,$,S),re=S[$]||Ar(h,$,N),le=(M??[]).length>1?"Top prize":"That pays",ae=null!=_?ne.belowRequiredHint(_,b??I):ne.belowRequiredAddOnlyHint(b??I);return l(()=>{!K||G&&!ee||J()},[K,G,ee]),/* @__PURE__ */m("div",{className:`flex flex-col min-h-full ${i}`,style:{fontFamily:p},children:[!r&&/* @__PURE__ */u("div",{className:"mb-6",children:/* @__PURE__ */u(ta,{onBack:e,hideActions:a})}),
251
+ /* @__PURE__ */u("div",{className:"flex-1",children:/* @__PURE__ */u(dl,{game:h,propositions:f,selections:x,onToggleSelection:O,onRemoveSelection:()=>{},onSubmit:async()=>{n?(await s.handleSubmit(),t?.()):o?.(ea(s))},onBack:J,loading:F,error:B,expectedCorrect:k,onExpectedCorrectChange:v,betAmount:N,onBetAmountChange:C,theme:c,showCustomAmount:!0,betAmountLocked:Fr(h),betAmountLockedNote:Br(h),hideActions:!0,winningCounts:M,payouts:S,renderTeamLogo:L,canSubmit:A,authenticated:n,userBalance:P,onRecharge:T,boostBanner:/* @__PURE__ */m(d,{children:[(oe||re>0)&&/* @__PURE__ */m("div",{className:"p-3 rounded-lg border mb-2",style:{backgroundColor:`${H.primary}08`,borderColor:`${H.primary}30`},children:[
252
+ /* @__PURE__ */u("p",{className:"text-[10px] font-bold uppercase tracking-[0.1em] mb-1",style:{color:H.textMuted},children:"How you win"}),oe&&/* @__PURE__ */u("p",{className:"text-xs sm:text-sm",style:{color:H.text},children:oe}),re>0&&/* @__PURE__ */m("p",{className:"text-xs sm:text-sm mt-1.5",style:{color:H.textMuted},children:[le," ",
253
+ /* @__PURE__ */u("span",{className:"font-bold",style:{color:R(c)},children:vt(re)})]})]}),te&&/* @__PURE__ */m("div",{className:"p-3 rounded-lg border flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3",style:{backgroundColor:`${H.warning}10`,borderColor:`${H.warning}40`},children:[/* @__PURE__ */m("p",{className:"text-xs sm:text-sm",style:{color:H.text},children:["You have ",
254
+ /* @__PURE__ */m("span",{style:{fontWeight:700},children:[$," pick",1!==$?"s":""]}),"."," ",ae]}),/* @__PURE__ */m("div",{className:"flex gap-2 flex-shrink-0",children:[/* @__PURE__ */u("button",{type:"button",onClick:J,className:"px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:H.buttonSecondaryText,backgroundColor:H.buttonSecondary,cursor:"pointer"},children:"Add a pick"}),null!=_&&/* @__PURE__ */u("button",{type:"button",onClick:()=>E(_),className:"px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:H.buttonPrimaryText,backgroundColor:H.buttonPrimary,cursor:"pointer"},children:ne.switchTierLabel(_)})]})]}),X&&/* @__PURE__ */u("div",{className:"p-3 rounded-lg border",style:{backgroundColor:`${H.primary}08`,borderColor:`${H.primary}30`},children:V?(()=>{const e=b??$,t=z[e],n=N>0?N:20,o=null!=t&&t>0?t*(n/20):null;/* @__PURE__ */
218
255
  return m("div",{children:[
219
- /* @__PURE__ */u("p",{className:"text-sm font-semibold mb-1",style:{color:H.primary},children:te.overloadTitle}),null!=o&&/* @__PURE__ */m("p",{className:"text-xs mb-2",style:{color:H.textMuted},children:["Currently winning up to"," ",
220
- /* @__PURE__ */u("span",{style:{color:H.heading??H.text,fontWeight:700},children:ht(o)})," ","with ",e," picks"]}),
221
- /* @__PURE__ */u(Qr,{tiers:$.map(e=>({count:e,payout20:z[e]??0})),selectedCount:void 0,onSelect:e=>{E(e),Q()},colors:H,bodyFont:s.bodyFont,extraBetAmount:20!==n?n:void 0,columnLabel:te.tableColumnLabel,buttonLabel:te.tierButtonLabel})]})})():/* @__PURE__ */m("div",{className:"flex items-center justify-between gap-3",children:[/* @__PURE__ */m("p",{className:"text-xs",style:{color:H.textMuted},children:[1===X?"Add ":"Add up to ",/* @__PURE__ */m("span",{style:{color:H.primary,fontWeight:700},children:[X," more pick",1!==X?"s":""]})]}),/* @__PURE__ */u("button",{type:"button",onClick:Q,className:"flex-shrink-0 px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:H.buttonPrimaryText,backgroundColor:H.buttonPrimary,cursor:"pointer"},children:"Add picks"})]})})]})})}),a&&C&&/* @__PURE__ */u("div",{className:"mt-3 flex justify-end",children:/* @__PURE__ */u("span",{className:"text-xs",style:{color:H.error},children:C})})]})}function nl({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,placedEntry:l}=Lo(),a=o.colors;/* @__PURE__ */
222
- return m("div",{className:`flex items-center justify-between gap-3 pl-2 ${e}`,children:[/* @__PURE__ */m("div",{className:"min-w-0",children:[/* @__PURE__ */u("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:L(o),fontFamily:r},children:"Entry Placed!"}),/* @__PURE__ */u(qo,{onBack:t,hideActions:n,children:/* @__PURE__ */u("p",{className:"text-sm",style:{color:a.textMuted},children:l?/* @__PURE__ */m(d,{children:["Entry"," ",
223
- /* @__PURE__ */m("span",{className:"font-mono font-semibold",style:{color:a.primary},children:["#",l.id]})," ","successfully submitted"]}):"Your entry has been successfully submitted"})})]}),/* @__PURE__ */u("div",{className:"w-12 h-12 sm:w-14 sm:h-14 rounded-full flex items-center justify-center flex-shrink-0",style:{backgroundColor:`${a.success}20`},children:/* @__PURE__ */u("svg",{className:"w-6 h-6 sm:w-7 sm:h-7",fill:"none",stroke:a.success,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24",children:/* @__PURE__ */u("path",{d:"M5 13l4 4L19 7"})})})]})}function ol({onPlayAgain:e,onDone:t,onShare:n,className:o=""}){const{theme:r,reset:l,placedEntry:a,selectedGame:i,selectedPropositions:s,selections:c,betAmount:d}=Lo();return r.colors,/* @__PURE__ */m("div",{className:`flex items-center justify-between pt-4 ${o}`,children:[/* @__PURE__ */u(je,{theme:r,variant:"secondary",onPress:()=>{l(),e?.()},children:"Place Another"}),t&&/* @__PURE__ */u(je,{theme:r,variant:"primary",onPress:t,children:"Done"})]})}function rl({onPlayAgain:t,onDone:n,onBack:o,onShare:r,hideTitle:l,hideActions:a,className:i=""}){const s=Lo(),{theme:c,bodyFont:p,headingFont:f,selectedGame:h,placedEntry:x,betAmount:g,selectedPropositionIds:y,selectedPropositions:b,selections:w,payouts:k,onShare:v}=s,N=c.colors,F=R(c),B=N.textAlt??N.text,C=x?.proposition_ids?x.proposition_ids.length:y.length,A=k[C]??null,M=e.useRef(!1);return e.useEffect(()=>{x&&h?M.current=!1:(s.goToSportSelection(),M.current||(M.current=!0,t?t():n?.()))},[x,h,s,t,n]),x?/* @__PURE__ */m("div",{className:`flex flex-col min-h-full ${i}`,style:{fontFamily:p},children:[!l&&/* @__PURE__ */u("div",{className:"mb-6",children:/* @__PURE__ */u(nl,{onBack:o,hideActions:a})}),/* @__PURE__ */m("div",{className:"flex-1 space-y-3 sm:space-y-4",children:[/* @__PURE__ */m("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:F,borderColor:N.border,boxShadow:he(c)},children:[/* @__PURE__ */m("div",{className:"flex items-center justify-between gap-3 mb-3",children:[(()=>{const e=h?h.allowed_propositions&&h.allowed_propositions.length>0&&h.game_name.replace(/\s+\d+\s*$/,"").trim()||h.game_name:"Entry summary";return h?/* @__PURE__ */u("div",{className:"min-w-0 flex-1",children:/* @__PURE__ */u(Wo,{iconUrl:Ae(h),gameName:e,height:18,chipColor:N.primary,textColor:N.text,iconColor:N.primaryText,accentColor:c.brand?.accent})}):/* @__PURE__ */u("h3",{className:"text-sm sm:text-base font-semibold min-w-0 flex-1 truncate",style:{color:L(c),fontFamily:f},children:e})})(),/* @__PURE__ */m("span",{className:"text-xs font-semibold px-2 py-0.5 rounded-full flex-shrink-0",style:{color:N.primary,backgroundColor:`${N.primary}15`},children:[C," pick",1!==C?"s":""]})]}),/* @__PURE__ */m("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:[
224
- /* @__PURE__ */m("div",{children:[/* @__PURE__ */u("div",{className:"text-[10px] uppercase tracking-wide font-semibold",style:{color:N.textMuted},children:"Selections"}),/* @__PURE__ */u("div",{className:"text-sm font-semibold mt-0.5",style:{color:B},children:C})]}),g>0&&/* @__PURE__ */m("div",{children:[/* @__PURE__ */u("div",{className:"text-[10px] uppercase tracking-wide font-semibold",style:{color:N.textMuted},children:"Wager"}),/* @__PURE__ */u("div",{className:"text-sm font-semibold mt-0.5",style:{color:B},children:ht(g)})]}),null!=A&&A>0&&/* @__PURE__ */m("div",{children:[/* @__PURE__ */u("div",{className:"text-[10px] uppercase tracking-wide font-semibold",style:{color:N.textMuted},children:"Potential win"}),/* @__PURE__ */u("div",{className:"text-sm font-bold mt-0.5",style:{color:N.heading??N.text},children:ht(A)})]})]})]}),b.length>0&&/* @__PURE__ */m("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:F,borderColor:N.border,boxShadow:he(c)},children:[/* @__PURE__ */u("h4",{className:"text-sm sm:text-base font-semibold mb-2",style:{color:L(c),fontFamily:f},children:"Your picks"}),/* @__PURE__ */u("div",{className:"space-y-1.5",children:b.map((e,t)=>{const n=w?.[e.id],o="yes"===n;/* @__PURE__ */
256
+ /* @__PURE__ */u("p",{className:"text-sm font-semibold mb-1",style:{color:H.primary},children:ne.overloadTitle}),null!=o&&/* @__PURE__ */m("p",{className:"text-xs mb-2",style:{color:H.textMuted},children:["Currently winning up to"," ",
257
+ /* @__PURE__ */u("span",{style:{color:H.heading??H.text,fontWeight:700},children:vt(o)})," ","with ",e," picks"]}),
258
+ /* @__PURE__ */u(_l,{tiers:q.map(e=>({count:e,payout20:z[e]??0})),selectedCount:void 0,onSelect:e=>{E(e),J()},colors:H,bodyFont:s.bodyFont,extraBetAmount:20!==n?n:void 0,columnLabel:ne.tableColumnLabel,buttonLabel:ne.tierButtonLabel})]})})():/* @__PURE__ */m("div",{className:"flex items-center justify-between gap-3",children:[/* @__PURE__ */m("p",{className:"text-xs",style:{color:H.textMuted},children:[1===Q?"Add ":"Add up to ",/* @__PURE__ */m("span",{style:{color:H.primary,fontWeight:700},children:[Q," more pick",1!==Q?"s":""]})]}),/* @__PURE__ */u("button",{type:"button",onClick:J,className:"flex-shrink-0 px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:H.buttonPrimaryText,backgroundColor:H.buttonPrimary,cursor:"pointer"},children:"Add picks"})]})})]})})}),a&&B&&/* @__PURE__ */u("div",{className:"mt-3 flex justify-end",children:/* @__PURE__ */u("span",{className:"text-xs",style:{color:H.error},children:B})})]})}function ra({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,placedEntry:l}=zr(),a=o.colors;/* @__PURE__ */
259
+ return m("div",{className:`flex items-center justify-between gap-3 pl-2 ${e}`,children:[/* @__PURE__ */m("div",{className:"min-w-0",children:[/* @__PURE__ */u("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:R(o),fontFamily:r},children:"Entry Placed!"}),/* @__PURE__ */u(yl,{onBack:t,hideActions:n,children:/* @__PURE__ */u("p",{className:"text-sm",style:{color:a.textMuted},children:l?/* @__PURE__ */m(d,{children:["Entry"," ",
260
+ /* @__PURE__ */m("span",{className:"font-mono font-semibold",style:{color:a.primary},children:["#",l.id]})," ","successfully submitted"]}):"Your entry has been successfully submitted"})})]}),/* @__PURE__ */u("div",{className:"w-12 h-12 sm:w-14 sm:h-14 rounded-full flex items-center justify-center flex-shrink-0",style:{backgroundColor:`${a.success}20`},children:/* @__PURE__ */u("svg",{className:"w-6 h-6 sm:w-7 sm:h-7",fill:"none",stroke:a.success,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24",children:/* @__PURE__ */u("path",{d:"M5 13l4 4L19 7"})})})]})}function la({onPlayAgain:e,onDone:t,onShare:n,className:o=""}){const{theme:r,reset:l,placedEntry:a,selectedGame:i,selectedPropositions:s,selections:c,betAmount:d}=zr();return r.colors,/* @__PURE__ */m("div",{className:`flex items-center justify-between pt-4 ${o}`,children:[/* @__PURE__ */u(Ye,{theme:r,variant:"secondary",onPress:()=>{l(),e?.()},children:"Place Another"}),t&&/* @__PURE__ */u(Ye,{theme:r,variant:"primary",onPress:t,children:"Done"})]})}function aa({onPlayAgain:t,onDone:n,onBack:o,onShare:r,hideTitle:l,hideActions:a,className:i=""}){const s=zr(),{theme:c,bodyFont:p,headingFont:h,selectedGame:f,placedEntry:x,betAmount:g,selectedPropositionIds:y,selectedPropositions:b,selections:w,payouts:k,onShare:v}=s,N=c.colors,C=V(c),F=N.textAlt??N.text,B=x?.proposition_ids?x.proposition_ids.length:y.length,A=k[B]??null,M=e.useRef(!1);return e.useEffect(()=>{x&&f?M.current=!1:(s.goToSportSelection(),M.current||(M.current=!0,t?t():n?.()))},[x,f,s,t,n]),x?/* @__PURE__ */m("div",{className:`flex flex-col min-h-full ${i}`,style:{fontFamily:p},children:[!l&&/* @__PURE__ */u("div",{className:"mb-6",children:/* @__PURE__ */u(ra,{onBack:o,hideActions:a})}),/* @__PURE__ */m("div",{className:"flex-1 space-y-3 sm:space-y-4",children:[/* @__PURE__ */m("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:C,borderColor:N.border,boxShadow:j(c)},children:[/* @__PURE__ */m("div",{className:"flex items-center justify-between gap-3 mb-3",children:[(()=>{const e=f?f.allowed_propositions&&f.allowed_propositions.length>0&&f.game_name.replace(/\s+\d+\s*$/,"").trim()||f.game_name:"Entry summary";return f?/* @__PURE__ */u("div",{className:"min-w-0 flex-1",children:/* @__PURE__ */u(ml,{iconUrl:Ae(f),gameName:e,height:18,chipColor:N.primary,textColor:N.text,iconColor:N.primaryText,accentColor:c.brand?.accent})}):/* @__PURE__ */u("h3",{className:"text-sm sm:text-base font-semibold min-w-0 flex-1 truncate",style:{color:R(c),fontFamily:h},children:e})})(),/* @__PURE__ */m("span",{className:"text-xs font-semibold px-2 py-0.5 rounded-full flex-shrink-0",style:{color:N.primary,backgroundColor:`${N.primary}15`},children:[B," pick",1!==B?"s":""]})]}),/* @__PURE__ */m("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:[
261
+ /* @__PURE__ */m("div",{children:[/* @__PURE__ */u("div",{className:"text-[10px] uppercase tracking-wide font-semibold",style:{color:N.textMuted},children:"Selections"}),/* @__PURE__ */u("div",{className:"text-sm font-semibold mt-0.5",style:{color:F},children:B})]}),g>0&&/* @__PURE__ */m("div",{children:[/* @__PURE__ */u("div",{className:"text-[10px] uppercase tracking-wide font-semibold",style:{color:N.textMuted},children:"Wager"}),/* @__PURE__ */u("div",{className:"text-sm font-semibold mt-0.5",style:{color:F},children:vt(g)})]}),null!=A&&A>0&&/* @__PURE__ */m("div",{children:[/* @__PURE__ */u("div",{className:"text-[10px] uppercase tracking-wide font-semibold",style:{color:N.textMuted},children:"Potential win"}),/* @__PURE__ */u("div",{className:"text-sm font-bold mt-0.5",style:{color:N.heading??N.text},children:vt(A)})]})]})]}),b.length>0&&/* @__PURE__ */m("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:C,borderColor:N.border,boxShadow:j(c)},children:[/* @__PURE__ */u("h4",{className:"text-sm sm:text-base font-semibold mb-2",style:{color:R(c),fontFamily:h},children:"Your picks"}),/* @__PURE__ */u("div",{className:"space-y-1.5",children:b.map((e,t)=>{const n=w?.[e.id],o="yes"===n;/* @__PURE__ */
225
262
  return m("div",{className:"flex items-center gap-2 py-2 px-3 rounded",style:{backgroundColor:N.backgroundAlt},children:[
226
263
  /* @__PURE__ */u("span",{className:"flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-[10px] font-bold",style:{backgroundColor:N.primary,color:N.primaryText},children:t+1}),
227
- /* @__PURE__ */m("div",{className:"flex-1 min-w-0",children:[/* @__PURE__ */m("p",{className:"text-xs sm:text-sm font-medium truncate",style:{color:B},children:[!kt(e)&&/* @__PURE__ */m(d,{children:[e.home_team," ",
228
- /* @__PURE__ */u("span",{style:{color:N.textMuted},children:"vs"})," "]}),e.away_team]}),/* @__PURE__ */u("p",{className:"text-[11px] truncate",style:{color:N.textMuted},children:e.description})]}),null!=n&&/* @__PURE__ */u(Ge,{theme:c,value:o?"yes":"no",size:"sm",style:{flexShrink:0}})]},e.id)})})]})]})]}):null}function ll({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r}=Lo();/* @__PURE__ */
229
- return m("div",{className:`pl-2 ${e}`,children:[/* @__PURE__ */u("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:L(o),fontFamily:r},children:"Your Entries"}),/* @__PURE__ */u(qo,{onBack:t,hideActions:n})]})}function al({className:e="",onSelectEntry:t,onBack:n,hideTitle:o,hideActions:r}){const{theme:l,bodyFont:a,apiUrl:i,apiKey:s,fetchImpl:c,getAuthHeaders:d,userId:p,demoEntries:f,demoGames:h,demoPropositions:x,renderTeamLogo:g,filterSport:y}=Lo();/* @__PURE__ */
230
- return m("div",{className:`flex flex-col min-h-full ${e}`,style:{fontFamily:a},children:[!o&&/* @__PURE__ */u("div",{className:"mb-6",children:/* @__PURE__ */u(ll,{onBack:n,hideActions:r})}),/* @__PURE__ */u("div",{className:"flex-1",children:/* @__PURE__ */u(Io,{apiUrl:i,apiKey:s,fetchImpl:c,getAuthHeaders:d,userId:p,demoEntries:f,demoGames:h,demoPropositions:x,onSelectEntry:t,theme:l,renderTeamLogo:g,filterSport:y})})]})}function il(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 sl(){/* @__PURE__ */
231
- return u("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 cl({ink:e,ball:t,size:n,balls:o=1}){/* @__PURE__ */
264
+ /* @__PURE__ */m("div",{className:"flex-1 min-w-0",children:[/* @__PURE__ */m("p",{className:"text-xs sm:text-sm font-medium truncate",style:{color:F},children:[!Mt(e)&&/* @__PURE__ */m(d,{children:[e.home_team," ",
265
+ /* @__PURE__ */u("span",{style:{color:N.textMuted},children:"vs"})," "]}),e.away_team]}),/* @__PURE__ */u("p",{className:"text-[11px] truncate",style:{color:N.textMuted},children:e.description})]}),null!=n&&/* @__PURE__ */u(We,{theme:c,value:o?"yes":"no",size:"sm",style:{flexShrink:0}})]},e.id)})})]})]})]}):null}function ia({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r}=zr();/* @__PURE__ */
266
+ return m("div",{className:`pl-2 ${e}`,children:[/* @__PURE__ */u("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:R(o),fontFamily:r},children:"Your Entries"}),/* @__PURE__ */u(yl,{onBack:t,hideActions:n})]})}function sa({className:e="",onSelectEntry:t,onBack:n,hideTitle:o,hideActions:r}){const{theme:l,bodyFont:a,apiUrl:i,apiKey:s,fetchImpl:c,getAuthHeaders:d,userId:p,demoEntries:h,demoGames:f,demoPropositions:x,renderTeamLogo:g,filterSport:y}=zr();/* @__PURE__ */
267
+ return m("div",{className:`flex flex-col min-h-full ${e}`,style:{fontFamily:a},children:[!o&&/* @__PURE__ */u("div",{className:"mb-6",children:/* @__PURE__ */u(ia,{onBack:n,hideActions:r})}),/* @__PURE__ */u("div",{className:"flex-1",children:/* @__PURE__ */u(pl,{apiUrl:i,apiKey:s,fetchImpl:c,getAuthHeaders:d,userId:p,demoEntries:h,demoGames:f,demoPropositions:x,onSelectEntry:t,theme:l,renderTeamLogo:g,filterSport:y})})]})}function ca({className:e="",onBack:t,hideActions:n,backLabel:o="Category"}){const{theme:r,selectedCategory:l}=zr(),a=r.colors,i=be(r);/* @__PURE__ */
268
+ return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("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:i},children:Lt(l)}),/* @__PURE__ */u(yl,{onBack:t,hideActions:n,label:t?o:void 0})]})}function da({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=zr(),r=n.colors;return e&&"mobile"!==o?/* @__PURE__ */u("div",{className:`flex items-center pt-4 ${t}`,children:/* @__PURE__ */u("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}function ua({onSelectSport:t,onCancel:n,hideTitle:o,hideActions:r,renderSportLogo:l,renderSportTagline:a,backLabel:i,comingSoonSports:s,className:c=""}){const{theme:d,propositionsForSportPicker:p,sportSummaries:h,loading:f,setSelectedSport:x,clearSelectedGame:g,selectedCategory:y,sportBaseKey:b,displaySportName:w}=zr(),k=d.colors,v=V(d),N=ye(d),C=be(d),F=R(d),B=Ct(p),A=Object.keys(B),[M,S]=e.useState(!1),z=e.useRef(null),P=e.useCallback(e=>{if(z.current?.disconnect(),z.current=null,!e)return;const t=()=>S(e.clientWidth<440);t(),"undefined"!=typeof ResizeObserver&&(z.current=new ResizeObserver(t),z.current.observe(e))},[]);return f?/* @__PURE__ */u(Fn,{colors:J(d),bodyFont:N,className:c,variant:"sport",categoryCount:A.length>0?A.length:2}):/* @__PURE__ */m("div",{className:`flex flex-col min-h-full ${c}`,style:{fontFamily:N},children:[!o&&/* @__PURE__ */u("div",{className:"mb-2",children:/* @__PURE__ */u(ca,{onBack:n,hideActions:r,backLabel:i})}),/* @__PURE__ */u("div",{className:"flex-1",children:/* @__PURE__ */m("div",{ref:P,className:"grid gap-3 "+(M?"grid-cols-1":"grid-cols-2"),children:[A.map(e=>{const n=h.find(t=>t.key===e),o=n?.active_props??B[e].length,r=a?.(e,o)??(n?`${i=n.games_today} game${1===i?"":"s"} today · ${s=n.active_props} pick${1===s?"":"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,y));var i,s;const c=w(e),p=n?n.games_today>0:o>0;/* @__PURE__ */
269
+ return m("button",{type:"button",onClick:()=>{x(e),g(),t?.(e)},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:v,borderColor:k.border,boxShadow:j(d),cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=k.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=k.border},children:[l?/* @__PURE__ */u("span",{className:"shrink-0",children:l(e)}):/* @__PURE__ */u(Ll,{gameKey:e,size:48,footer:null,sportBaseKey:b,title:`${c} button`,className:"h-10 w-10 shrink-0 sm:h-12 sm:w-12"}),
270
+ /* @__PURE__ */m("div",{className:"flex min-w-0 flex-1 flex-col",children:[/* @__PURE__ */u("span",{className:"max-w-full truncate text-sm font-extrabold leading-tight tracking-tight sm:text-base",style:{color:F,fontFamily:C},children:c}),/* @__PURE__ */m("span",{className:"mt-1 flex max-w-full items-center gap-1.5 text-[0.58rem] font-bold uppercase tracking-[0.12em]",style:{color:k.primary},children:[p&&/* @__PURE__ */u("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full",style:{backgroundColor:k.success}}),/* @__PURE__ */u("span",{className:"truncate",children:r})]})]}),
271
+ /* @__PURE__ */u(_e,{size:20,color:k.textMuted,className:"shrink-0 transition-transform group-hover:translate-x-0.5"})]},e)}),s?.map(e=>{const{game:t,league:n}=function(e,t){const n=e.match(/^(.*?)\s*\(([^)]+)\)\s*$/);return n?{game:n[1].trim(),league:n[2].trim()}:{game:e,league:t}}(e.label,e.short??ft(e.key,b));/* @__PURE__ */
272
+ return m("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:L(k.backgroundAlt,.4),borderColor:L(k.border,.7)},children:[
273
+ /* @__PURE__ */u("div",{className:"shrink-0",style:{opacity:.6,filter:"grayscale(1)"},children:l?l(e.key):/* @__PURE__ */u(Ll,{gameKey:e.key,short:e.short,size:48,footer:null,sportBaseKey:b,title:`${e.label} button`,className:"h-10 w-10 shrink-0 sm:h-12 sm:w-12"})}),
274
+ /* @__PURE__ */m("div",{className:"flex min-w-0 flex-1 flex-col",children:[/* @__PURE__ */m("span",{className:"max-w-full truncate text-sm font-extrabold leading-tight tracking-tight sm:text-base",style:{color:k.textMuted,fontFamily:C},children:[t,n&&n!==t?/* @__PURE__ */m("span",{className:"font-bold",children:[" · ",n]}):null]}),/* @__PURE__ */u("span",{className:"mt-1 max-w-full truncate text-[0.58rem] font-bold uppercase tracking-[0.12em]",style:{color:k.textMuted},children:(o=e.seasonStart,o?`Starts ${o}`:"Coming soon")})]}),
275
+ /* @__PURE__ */m("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:k.backgroundAlt,color:k.textMuted},children:[/* @__PURE__ */u(et,{size:12,color:k.textMuted}),"Soon"]})]},e.key);var o})]})})]})}function ma(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 pa(){/* @__PURE__ */
276
+ return u("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 ha({ink:e,ball:t,size:n,balls:o=1}){/* @__PURE__ */
232
277
  return m("svg",{width:n,height:n,viewBox:"2 12 76 62",fill:"none","aria-hidden":!0,children:[
233
278
  /* @__PURE__ */u("line",{x1:"9",y1:"18",x2:"71",y2:"18",stroke:e,strokeWidth:"2.5",strokeLinecap:"round"}),
234
279
  /* @__PURE__ */u("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"}),
235
280
  /* @__PURE__ */u("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"}),
236
- /* @__PURE__ */u("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)=>/* @__PURE__ */u("circle",{cx:e.cx,cy:e.cy,r:e.r,fill:t},n))]})}function dl({ink:e,ball:t,size:n}){/* @__PURE__ */
281
+ /* @__PURE__ */u("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)=>/* @__PURE__ */u("circle",{cx:e.cx,cy:e.cy,r:e.r,fill:t},n))]})}function fa({ink:e,ball:t,size:n}){/* @__PURE__ */
237
282
  return m("svg",{width:n,height:n,viewBox:"0 0 100 100",fill:"none","aria-hidden":!0,children:[
238
283
  /* @__PURE__ */u("circle",{cx:"50",cy:"50",r:"34",stroke:e,strokeWidth:3,opacity:.9}),
239
284
  /* @__PURE__ */u("circle",{cx:"50",cy:"50",r:"23",stroke:e,strokeWidth:3,opacity:.65}),
240
285
  /* @__PURE__ */u("circle",{cx:"50",cy:"50",r:"8",fill:t}),
241
286
  /* @__PURE__ */u("line",{x1:"80",y1:"20",x2:"55",y2:"45",stroke:e,strokeWidth:4,strokeLinecap:"round"}),
242
- /* @__PURE__ */u("path",{d:"M50 50 l8 -3 -3 8 z",fill:e})]})}function ul({ink:e,ball:t,size:n}){const o=[{x:16,h:22},{x:40,h:40},{x:64,h:60}];/* @__PURE__ */
287
+ /* @__PURE__ */u("path",{d:"M50 50 l8 -3 -3 8 z",fill:e})]})}function xa({ink:e,ball:t,size:n}){const o=[{x:16,h:22},{x:40,h:40},{x:64,h:60}];/* @__PURE__ */
243
288
  return m("svg",{width:n,height:n,viewBox:"0 0 100 100",fill:"none","aria-hidden":!0,children:[
244
289
  /* @__PURE__ */u("line",{x1:"10",y1:"84",x2:"90",y2:"84",stroke:e,strokeWidth:"2",opacity:"0.5"}),o.map((n,r)=>/* @__PURE__ */u("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)),
245
290
  /* @__PURE__ */u("path",{d:"M14 60 L38 48 L62 30 L86 14",stroke:e,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),
246
- /* @__PURE__ */u("path",{d:"M86 14 l-9 1 M86 14 l1 9",stroke:e,strokeWidth:"3",strokeLinecap:"round"})]})}function ml({kind:e,balls:t,...n}){return"safety_net"===e?/* @__PURE__ */u(cl,{...n,balls:t}):/* @__PURE__ */u("pick"===e?ul:dl,{...n})}function pl({kind:e,size:t=56,balls:n}){const{theme:o}=Lo(),r=o.colors,l=o.brand?.chip??r.primary,a=o.brand?.icon??r.primaryText,i=E(o);/* @__PURE__ */
247
- return u("span",{"aria-hidden":!0,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:t,height:t,borderRadius:.3*t,backgroundColor:l,border:`1px solid ${il(a,.16)}`,flexShrink:0,boxShadow:`0 8px 18px -12px ${il(l,.9)}`},children:/* @__PURE__ */u(ml,{kind:e,ink:a,ball:i,balls:n,size:Math.round(.68*t)})})}function fl({option:e,renderDividends:t}){const{theme:n}=Lo(),o=n.colors,r=be(n),l=o.primary,a=E(n),i=e.dividends??[];return t?/* @__PURE__ */u(d,{children:t(e)}):/* @__PURE__ */m("div",{className:"flex flex-col gap-1.5",children:[/* @__PURE__ */m("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:o.textMuted},children:[/* @__PURE__ */u("span",{children:"If you land"}),/* @__PURE__ */m("span",{children:["$",20," returns"]})]}),i.map((t,n)=>{const i=e.tierLegs?.[n];/* @__PURE__ */
248
- return m("div",{className:"flex items-center justify-between gap-3",children:[/* @__PURE__ */m("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[/* @__PURE__ */u("span",{className:"text-xs sm:text-[13px]",style:{color:o.text},children:t.label}),null!=i&&i>0&&/* @__PURE__ */m("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:i}).map((e,t)=>/* @__PURE__ */u("span",{style:{width:5,height:5,borderRadius:1.5,backgroundColor:l,opacity:.85}},t)),0===t.misses&&/* @__PURE__ */u("span",{style:{width:7,height:7,borderRadius:999,backgroundColor:a,marginLeft:2}})]})]}),/* @__PURE__ */u("span",{className:"text-sm font-extrabold tabular-nums sm:text-base",style:{color:l,fontFamily:r},children:ht(t.payout20)})]},t.misses)})]})}function hl({option:e,renderDividends:t}){const{theme:n}=Lo(),r=n.colors,i=ye(n),f=xe(n),h=e.dividends??[],x=h.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[g,y]=c(!1),b=s(null),w=s(null),[k,v]=c(null),N=40+36*Math.max(h.length,1)+12,F=o(()=>{const e=b.current;if(!e||"undefined"==typeof window)return;const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom,o=t.top,r=n<N&&o>n;v({left:t.left,top:r?t.top-6:t.bottom+6,flipUp:r})},[N]);a(()=>{if(!g)return void v(null);F();const e=()=>y(!1),t=()=>F();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[g,F]),l(()=>{if(!g)return;const e=e=>{const t=e.target;b.current?.contains(t)||w.current?.contains(t)||y(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[g]);const B=g&&k&&"undefined"!=typeof document?p(/* @__PURE__ */u("div",{ref:w,role:"listbox",className:"rounded-lg overflow-hidden",style:{position:"fixed",left:k.left,top:k.top,transform:k.flipUp?"translateY(-100%)":void 0,zIndex:9999,backgroundColor:r.background,border:`1px solid ${r.border}`,boxShadow:f,minWidth:220,fontFamily:i},children:t?/* @__PURE__ */u("div",{className:"px-3 py-2",children:t(e)}):/* @__PURE__ */m(d,{children:[/* @__PURE__ */m("div",{className:"px-3 py-1.5 text-[10px] font-bold tracking-wider uppercase",style:{color:r.text,opacity:.55,borderBottom:`1px solid ${r.border}`},children:["Dividends for $",20]}),h.map((e,t)=>/* @__PURE__ */m("div",{className:"flex items-center justify-between px-3 py-2",style:{borderTop:0===t?"none":`1px solid ${r.border}`,gap:14},children:[/* @__PURE__ */u("span",{style:{fontWeight:700,color:r.text,fontSize:13},children:e.label}),/* @__PURE__ */u("span",{style:{fontWeight:700,color:e.payout20>0?r.heading??r.text:r.textMuted,fontSize:13,textAlign:"right"},children:e.payout20>0?ht(e.payout20):"—"})]},e.misses))]})}),document.body):null;/* @__PURE__ */
291
+ /* @__PURE__ */u("path",{d:"M86 14 l-9 1 M86 14 l1 9",stroke:e,strokeWidth:"3",strokeLinecap:"round"})]})}function ga({kind:e,balls:t,...n}){return"safety_net"===e?/* @__PURE__ */u(ha,{...n,balls:t}):/* @__PURE__ */u("pick"===e?xa:fa,{...n})}function ya({kind:e,size:t=56,balls:n}){const{theme:o}=zr(),r=o.colors,l=o.brand?.chip??r.primary,a=o.brand?.icon??r.primaryText,i=$(o);/* @__PURE__ */
292
+ return u("span",{"aria-hidden":!0,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:t,height:t,borderRadius:.3*t,backgroundColor:l,border:`1px solid ${ma(a,.16)}`,flexShrink:0,boxShadow:`0 8px 18px -12px ${ma(l,.9)}`},children:/* @__PURE__ */u(ga,{kind:e,ink:a,ball:i,balls:n,size:Math.round(.68*t)})})}function ba({option:e,renderDividends:t}){const{theme:n}=zr(),o=n.colors,r=be(n),l=o.primary,a=$(n),i=e.dividends??[];return t?/* @__PURE__ */u(d,{children:t(e)}):/* @__PURE__ */m("div",{className:"flex flex-col gap-1.5",children:[/* @__PURE__ */m("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:o.textMuted},children:[/* @__PURE__ */u("span",{children:"If you land"}),/* @__PURE__ */m("span",{children:["$",20," returns"]})]}),i.map((t,n)=>{const i=e.tierLegs?.[n];/* @__PURE__ */
293
+ return m("div",{className:"flex items-center justify-between gap-3",children:[/* @__PURE__ */m("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[/* @__PURE__ */u("span",{className:"text-xs sm:text-[13px]",style:{color:o.text},children:t.label}),null!=i&&i>0&&/* @__PURE__ */m("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:i}).map((e,t)=>/* @__PURE__ */u("span",{style:{width:5,height:5,borderRadius:1.5,backgroundColor:l,opacity:.85}},t)),0===t.misses&&/* @__PURE__ */u("span",{style:{width:7,height:7,borderRadius:999,backgroundColor:a,marginLeft:2}})]})]}),/* @__PURE__ */u("span",{className:"text-sm font-extrabold tabular-nums sm:text-base",style:{color:l,fontFamily:r},children:vt(t.payout20)})]},t.misses)})]})}function wa({option:e,renderDividends:t}){const{theme:n}=zr(),r=n.colors,i=ye(n),h=Y(n),f=e.dividends??[],x=f.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[g,y]=c(!1),b=s(null),w=s(null),[k,v]=c(null),N=40+36*Math.max(f.length,1)+12,C=o(()=>{const e=b.current;if(!e||"undefined"==typeof window)return;const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom,o=t.top,r=n<N&&o>n;v({left:t.left,top:r?t.top-6:t.bottom+6,flipUp:r})},[N]);a(()=>{if(!g)return void v(null);C();const e=()=>y(!1),t=()=>C();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[g,C]),l(()=>{if(!g)return;const e=e=>{const t=e.target;b.current?.contains(t)||w.current?.contains(t)||y(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[g]);const F=g&&k&&"undefined"!=typeof document?p(/* @__PURE__ */u("div",{ref:w,role:"listbox",className:"rounded-lg overflow-hidden",style:{position:"fixed",left:k.left,top:k.top,transform:k.flipUp?"translateY(-100%)":void 0,zIndex:9999,backgroundColor:r.background,border:`1px solid ${r.border}`,boxShadow:h,minWidth:220,fontFamily:i},children:t?/* @__PURE__ */u("div",{className:"px-3 py-2",children:t(e)}):/* @__PURE__ */m(d,{children:[/* @__PURE__ */m("div",{className:"px-3 py-1.5 text-[10px] font-bold tracking-wider uppercase",style:{color:r.text,opacity:.55,borderBottom:`1px solid ${r.border}`},children:["Dividends for $",20]}),f.map((e,t)=>/* @__PURE__ */m("div",{className:"flex items-center justify-between px-3 py-2",style:{borderTop:0===t?"none":`1px solid ${r.border}`,gap:14},children:[/* @__PURE__ */u("span",{style:{fontWeight:700,color:r.text,fontSize:13},children:e.label}),/* @__PURE__ */u("span",{style:{fontWeight:700,color:e.payout20>0?r.heading??r.text:r.textMuted,fontSize:13,textAlign:"right"},children:e.payout20>0?vt(e.payout20):"—"})]},e.misses))]})}),document.body):null;/* @__PURE__ */
249
294
  return m("div",{className:"flex w-full justify-center",children:[/* @__PURE__ */m("div",{className:"flex flex-wrap items-center justify-center gap-x-2 gap-y-1 max-w-full",style:{fontFamily:i},children:[x>0&&/* @__PURE__ */m("span",{className:"text-xs font-semibold leading-snug",style:{color:r.text},children:["Win up to ",
250
- /* @__PURE__ */u("span",{style:{color:r.heading??r.text},children:ht(x)}),
251
- /* @__PURE__ */m("span",{style:{color:r.textMuted},children:[" for $",20]})]}),/* @__PURE__ */u("button",{ref:b,type:"button",onClick:()=>y(e=>!e),"aria-expanded":g,"aria-haspopup":"listbox",className:"text-xs font-semibold rounded-md transition-colors shrink-0",style:{background:g?r.buttonSecondary:r.background??"#ffffff",border:`1px solid ${g?r.primary??r.border:r.border}`,padding:"4px 10px",cursor:"pointer",color:r.text,fontFamily:i,lineHeight:1.35},children:g?"Hide dividends":"Show dividends"})]}),B]})}function xl({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=Lo(),l=r.colors,a=be(r),i=L(r),s=l.primary,c=l.selectionCard??l.backgroundAlt,d="safety_net"===e?Math.max(1,(t.detail?.length??2)-1):void 0,p=!!o||(t.dividends?.length??0)>0,f=p&&!!t.dividendsInline;/* @__PURE__ */
252
- return m("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:c,borderColor:l.border,boxShadow:`0 10px 24px -20px ${il(i,.7)}`},onMouseEnter:e=>{e.currentTarget.style.borderColor=s,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${il(s,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=l.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${il(i,.7)}`},children:[/* @__PURE__ */m("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:[
253
- /* @__PURE__ */u(pl,{kind:e,balls:d,size:60}),
295
+ /* @__PURE__ */u("span",{style:{color:r.heading??r.text},children:vt(x)}),
296
+ /* @__PURE__ */m("span",{style:{color:r.textMuted},children:[" for $",20]})]}),/* @__PURE__ */u("button",{ref:b,type:"button",onClick:()=>y(e=>!e),"aria-expanded":g,"aria-haspopup":"listbox",className:"text-xs font-semibold rounded-md transition-colors shrink-0",style:{background:g?r.buttonSecondary:r.background??"#ffffff",border:`1px solid ${g?r.primary??r.border:r.border}`,padding:"4px 10px",cursor:"pointer",color:r.text,fontFamily:i,lineHeight:1.35},children:g?"Hide dividends":"Show dividends"})]}),F]})}function ka({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=zr(),l=r.colors,a=be(r),i=R(r),s=l.primary,c=l.selectionCard??l.backgroundAlt,d="safety_net"===e?Math.max(1,(t.detail?.length??2)-1):void 0,p=!!o||(t.dividends?.length??0)>0,h=p&&!!t.dividendsInline;/* @__PURE__ */
297
+ return m("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:c,borderColor:l.border,boxShadow:`0 10px 24px -20px ${ma(i,.7)}`},onMouseEnter:e=>{e.currentTarget.style.borderColor=s,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${ma(s,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=l.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${ma(i,.7)}`},children:[/* @__PURE__ */m("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:[
298
+ /* @__PURE__ */u(ya,{kind:e,balls:d,size:60}),
254
299
  /* @__PURE__ */m("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[
255
- /* @__PURE__ */u("span",{className:"text-lg font-extrabold leading-none tracking-tight sm:text-xl",style:{color:i,fontFamily:a},children:t.label}),t.stat&&/* @__PURE__ */u("span",{className:"w-fit rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em]",style:{backgroundColor:il(s,.12),color:s},children:t.stat}),t.detail&&t.detail.length>0&&/* @__PURE__ */u("div",{className:"flex flex-col gap-0.5",style:{minHeight:"3.75rem"},children:t.detail.map(e=>/* @__PURE__ */u("span",{className:"text-xs leading-snug sm:text-[13px]",style:{color:l.textMuted},children:e},e))})]}),
256
- /* @__PURE__ */u("span",{className:"shrink-0 self-center transition-transform group-hover:translate-x-0.5",style:{color:s},"aria-hidden":!0,children:/* @__PURE__ */u("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:/* @__PURE__ */u("path",{d:"m9 6 6 6-6 6"})})})]}),p&&/* @__PURE__ */u("div",{className:"mt-3 border-t pt-3",style:{borderColor:il(i,.08)},children:/* @__PURE__ */u(f?fl:hl,{option:t,renderDividends:o})})]})}function gl({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r,selectedPropositionCount:l}=Lo(),a=be(o),i=o.colors,s=Jn(r,l);/* @__PURE__ */
257
- return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("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:a},children:s?.title??"About this game"}),/* @__PURE__ */u(qo,{onBack:t,hideActions:n,label:r?`${r.game_name}${s?.subtitle?` · ${s.subtitle}`:""}`:void 0})]})}function yl({onContinue:e,canContinue:t,continueLabel:n="Continue",className:o=""}){const{theme:r,screenSize:l}=Lo(),a=r.colors;return e&&"mobile"!==l?/* @__PURE__ */u("div",{className:`flex items-center justify-end pt-4 ${o}`,children:/* @__PURE__ */u("button",{type:"button",onClick:e,disabled:!t,className:"px-5 py-2.5 rounded-lg text-sm font-semibold transition-colors disabled:opacity-45",style:{color:a.buttonPrimaryText,backgroundColor:a.buttonPrimary,cursor:t?"pointer":"not-allowed"},children:n})}):null}function bl({onContinue:e,onBack:t,hideTitle:n,config:o,renderDividends:r,backLabel:l="Games",className:a=""}){const{theme:s,selectedGame:c,selectedPropositionCount:d,setExpectedCorrect:p,handlePropositionCountChange:f,screenSize:h}=Lo(),x=s.colors,g="mobile"===h,y=ye(s),b=be(s),w=L(s),k=E(s),v=i(()=>o??Jn(c,d),[o,c,d]),N=v?.options??[],F=t=>{null!=t?.expectedCorrect&&p(t.expectedCorrect),null!=t?.propositionCount&&f(t.propositionCount),e?.()};if(!c||!v)/* @__PURE__ */return u("div",{className:a,style:{color:x.textMuted,fontFamily:y},children:"No rule setup required."});const B=v.kind,C=v.headline??v.heroTitle,A=v.continueLabel??"Continue";/* @__PURE__ */
300
+ /* @__PURE__ */u("span",{className:"text-lg font-extrabold leading-none tracking-tight sm:text-xl",style:{color:i,fontFamily:a},children:t.label}),t.stat&&/* @__PURE__ */u("span",{className:"w-fit rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em]",style:{backgroundColor:ma(s,.12),color:s},children:t.stat}),t.detail&&t.detail.length>0&&/* @__PURE__ */u("div",{className:"flex flex-col gap-0.5",style:{minHeight:"3.75rem"},children:t.detail.map(e=>/* @__PURE__ */u("span",{className:"text-xs leading-snug sm:text-[13px]",style:{color:l.textMuted},children:e},e))})]}),
301
+ /* @__PURE__ */u("span",{className:"shrink-0 self-center transition-transform group-hover:translate-x-0.5",style:{color:s},"aria-hidden":!0,children:/* @__PURE__ */u("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:/* @__PURE__ */u("path",{d:"m9 6 6 6-6 6"})})})]}),p&&/* @__PURE__ */u("div",{className:"mt-3 border-t pt-3",style:{borderColor:ma(i,.08)},children:/* @__PURE__ */u(h?ba:wa,{option:t,renderDividends:o})})]})}function va({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r,selectedPropositionCount:l}=zr(),a=be(o),i=o.colors,s=io(r,l);/* @__PURE__ */
302
+ return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("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:a},children:s?.title??"About this game"}),/* @__PURE__ */u(yl,{onBack:t,hideActions:n,label:r?`${r.game_name}${s?.subtitle?` · ${s.subtitle}`:""}`:void 0})]})}function Na({onContinue:e,canContinue:t,continueLabel:n="Continue",className:o=""}){const{theme:r,screenSize:l}=zr(),a=r.colors;return e&&"mobile"!==l?/* @__PURE__ */u("div",{className:`flex items-center justify-end pt-4 ${o}`,children:/* @__PURE__ */u("button",{type:"button",onClick:e,disabled:!t,className:"px-5 py-2.5 rounded-lg text-sm font-semibold transition-colors disabled:opacity-45",style:{color:a.buttonPrimaryText,backgroundColor:a.buttonPrimary,cursor:t?"pointer":"not-allowed"},children:n})}):null}function Ca({onContinue:e,onBack:t,hideTitle:n,config:o,renderDividends:r,backLabel:l="Games",className:a=""}){const{theme:s,selectedGame:c,selectedPropositionCount:d,setExpectedCorrect:p,handlePropositionCountChange:h,screenSize:f}=zr(),x=s.colors,g="mobile"===f,y=ye(s),b=be(s),w=R(s),k=$(s),v=i(()=>o??io(c,d),[o,c,d]),N=v?.options??[],C=t=>{null!=t?.expectedCorrect&&p(t.expectedCorrect),null!=t?.propositionCount&&h(t.propositionCount),e?.()};if(!c||!v)/* @__PURE__ */return u("div",{className:a,style:{color:x.textMuted,fontFamily:y},children:"No rule setup required."});const F=v.kind,B=v.headline??v.heroTitle,A=v.continueLabel??"Continue";/* @__PURE__ */
258
303
  return m("div",{className:`blade-rp flex min-h-full w-full flex-col ${a}`,style:{fontFamily:y},children:[
259
- /* @__PURE__ */u(sl,{}),t&&/* @__PURE__ */u($o,{onBack:t,label:l}),
304
+ /* @__PURE__ */u(pa,{}),t&&/* @__PURE__ */u(gl,{onBack:t,label:l}),
260
305
  /* @__PURE__ */m("div",{className:"mx-auto flex w-full max-w-3xl flex-1 flex-col",children:[!n&&/* @__PURE__ */u("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:x.primary,fontFamily:b},children:v.title}),
261
306
  /* @__PURE__ */m("header",{className:"blade-rp-in mb-6 flex flex-col items-center text-center sm:mb-7",children:[
262
- /* @__PURE__ */u(Wo,{iconUrl:Ae(c),gameName:c.game_name,height:g?24:32,chipColor:x.primary,textColor:x.text,iconColor:x.primaryText,accentColor:s.brand?.accent,compact:g}),v.subtitle&&/* @__PURE__ */u("p",{className:"mt-2 text-xs sm:text-sm",style:{color:x.textMuted},children:v.subtitle}),(C||v.heroTagline)&&/* @__PURE__ */u("p",{className:"mt-3 max-w-sm text-sm leading-relaxed sm:text-[15px]",style:{color:x.textMuted},children:v.heroTagline??C})]}),N.length>0?/* @__PURE__ */u("div",{className:N.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:N.map((e,t)=>/* @__PURE__ */u("div",{className:"blade-rp-in flex h-full min-h-0",style:{animationDelay:.06+.07*t+"s"},children:/* @__PURE__ */u(xl,{kind:B,option:e,onSelect:()=>F(e),renderDividends:r})},e.id))}):v.highlights&&v.highlights.length>0&&/* @__PURE__ */u("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:x.selectionCard??x.backgroundAlt,borderColor:x.border,boxShadow:`0 10px 24px -20px ${il(w,.7)}`,animationDelay:".06s"},onMouseEnter:e=>{e.currentTarget.style.borderColor=x.primary,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${il(x.primary,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=x.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${il(w,.7)}`},children:/* @__PURE__ */m("button",{type:"button",onClick:()=>F(),"aria-label":A,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:[
263
- /* @__PURE__ */u(pl,{kind:B,size:60}),
307
+ /* @__PURE__ */u(ml,{iconUrl:Ae(c),gameName:c.game_name,height:g?24:32,chipColor:x.primary,textColor:x.text,iconColor:x.primaryText,accentColor:s.brand?.accent,compact:g}),v.subtitle&&/* @__PURE__ */u("p",{className:"mt-2 text-xs sm:text-sm",style:{color:x.textMuted},children:v.subtitle}),(B||v.heroTagline)&&/* @__PURE__ */u("p",{className:"mt-3 max-w-sm text-sm leading-relaxed sm:text-[15px]",style:{color:x.textMuted},children:v.heroTagline??B})]}),
308
+ /* @__PURE__ */u(Hl,{className:"blade-rp-in"}),N.length>0?/* @__PURE__ */u("div",{className:N.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:N.map((e,t)=>/* @__PURE__ */u("div",{className:"blade-rp-in flex h-full min-h-0",style:{animationDelay:.06+.07*t+"s"},children:/* @__PURE__ */u(ka,{kind:F,option:e,onSelect:()=>C(e),renderDividends:r})},e.id))}):v.highlights&&v.highlights.length>0&&/* @__PURE__ */u("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:x.selectionCard??x.backgroundAlt,borderColor:x.border,boxShadow:`0 10px 24px -20px ${ma(w,.7)}`,animationDelay:".06s"},onMouseEnter:e=>{e.currentTarget.style.borderColor=x.primary,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${ma(x.primary,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=x.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${ma(w,.7)}`},children:/* @__PURE__ */m("button",{type:"button",onClick:()=>C(),"aria-label":A,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:[
309
+ /* @__PURE__ */u(ya,{kind:F,size:60}),
264
310
  /* @__PURE__ */u("span",{className:"flex min-w-0 flex-1 flex-col gap-2",children:v.highlights.map(e=>/* @__PURE__ */m("span",{className:"flex items-start gap-3",children:[/* @__PURE__ */u("span",{className:"mt-[7px] h-1.5 w-1.5 shrink-0 rounded-full",style:{backgroundColor:k},"aria-hidden":!0}),/* @__PURE__ */u("span",{className:"text-sm leading-snug sm:text-[15px]",style:{color:w},children:e})]},e))}),
265
- /* @__PURE__ */u("span",{className:"shrink-0 self-center transition-transform group-hover:translate-x-0.5",style:{color:x.primary},"aria-hidden":!0,children:/* @__PURE__ */u("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:/* @__PURE__ */u("path",{d:"m9 6 6 6-6 6"})})})]})})]})]})}function wl(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 kl({iconUrl:e,size:t=56}){const{theme:n}=Lo(),o=n.colors,r=n.brand?.chip??o.primary,l=n.brand?.icon??o.primaryText,a=j(r,E(n),l);/* @__PURE__ */
266
- return u("span",{"aria-hidden":!0,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:t,height:t,borderRadius:.3*t,backgroundColor:r,border:`1px solid ${wl(l,.16)}`,flexShrink:0,boxShadow:`0 8px 18px -12px ${wl(r,.9)}`},children:/* @__PURE__ */u(Qt,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:l,accentColor:a})})}function vl({eyebrow:e,iconUrl:t,gameName:n,tagline:o,className:r=""}){const{theme:l,screenSize:a}=Lo(),i=l.colors,s=be(l),c="mobile"===a;/* @__PURE__ */
267
- return m("header",{className:`mb-4 flex flex-col items-center text-center sm:mb-7 ${r}`,children:[e&&/* @__PURE__ */u("h2",{className:"mb-4 hidden text-center text-xs font-bold uppercase tracking-[0.18em] sm:mb-5 sm:block",style:{color:i.primary,fontFamily:s},children:e}),
268
- /* @__PURE__ */u(Wo,{iconUrl:t,gameName:n,height:c?20:32,chipColor:i.primary,textColor:i.text,iconColor:i.primaryText,accentColor:l.brand?.accent,compact:c}),o&&/* @__PURE__ */u("p",{className:"mt-2 max-w-sm text-[13px] leading-snug sm:mt-3 sm:text-[15px] sm:leading-relaxed",style:{color:i.textMuted},children:o})]})}function Nl({smGridClassName:e,ariaLabel:t,children:n}){/* @__PURE__ */
269
- return u("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 Fl="w-[124px] shrink-0 snap-start sm:w-auto sm:shrink";function Bl({legs:e,prizeBall:t=!0}){const{theme:n}=Lo(),o=n.colors.primary,r=E(n);/* @__PURE__ */
270
- return m("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:e}).map((e,t)=>/* @__PURE__ */u("span",{style:{width:5,height:5,borderRadius:1.5,backgroundColor:o,opacity:.85}},t)),t&&/* @__PURE__ */u("span",{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}})]})}function Cl({tile:e,label:t,stat:n,detail:o,onSelect:r,children:l}){const{theme:a}=Lo(),i=a.colors,s=be(a),c=L(a),d=i.primary,p=i.selectionCard??i.backgroundAlt;/* @__PURE__ */
271
- return m("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:p,borderColor:i.border,boxShadow:`0 10px 24px -20px ${wl(c,.7)}`},onMouseEnter:e=>{e.currentTarget.style.borderColor=d,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${wl(d,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=i.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${wl(c,.7)}`},children:[/* @__PURE__ */m("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,
272
- /* @__PURE__ */m("div",{className:"flex min-w-0 flex-1 flex-col gap-1 sm:gap-1.5",children:[/* @__PURE__ */m("span",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[/* @__PURE__ */u("span",{className:"text-base font-extrabold leading-tight tracking-tight sm:text-xl",style:{color:c,fontFamily:s},children:t}),n&&/* @__PURE__ */u("span",{className:"rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em]",style:{backgroundColor:wl(d,.12),color:d},children:n})]}),o&&o.length>0&&/* @__PURE__ */u("div",{className:"flex flex-col gap-0.5",children:o.map((e,t)=>/* @__PURE__ */u("span",{className:"text-xs leading-snug sm:text-[13px] "+(0===t?"":"hidden sm:block"),style:{color:i.textMuted},children:e},e))})]}),
273
- /* @__PURE__ */u("span",{className:"shrink-0 self-center transition-transform group-hover:translate-x-0.5",style:{color:d},"aria-hidden":!0,children:/* @__PURE__ */u("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:/* @__PURE__ */u("path",{d:"m9 6 6 6-6 6"})})})]}),l&&/* @__PURE__ */u("div",{className:"mt-3 border-t pt-3",style:{borderColor:wl(c,.08)},children:l})]})}function Al(){/* @__PURE__ */
274
- return u("style",{id:"blade-gmc-styles",children:"\n.blade-gmc-card{transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s cubic-bezier(.2,.8,.2,1),border-color .18s cubic-bezier(.2,.8,.2,1)}\n.blade-gmc-strip{scrollbar-width:none}\n.blade-gmc-strip::-webkit-scrollbar{display:none}\n.blade-gmc-card:hover{transform:translateY(-2px)}\n.blade-gmc-card:active{transform:translateY(0) scale(.995)}\n@media (prefers-reduced-motion:reduce){.blade-gmc-card{transition:none}}\n"})}function Ml({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Lo(),l=be(o),a=o.colors;/* @__PURE__ */
275
- return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:a.primary,fontFamily:l},children:"The fastest multi"}),/* @__PURE__ */u(qo,{onBack:t,hideActions:n,label:r?.game_name})]})}function Sl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:s,selectedGame:d,selectedPropositionCount:p,handlePropositionCountChange:f,setExpectedCorrect:h,setBetAmount:x,quickPickGame:g,goToSportSelection:y}=Lo(),b=s.colors,w=ye(s),k=be(s),v=L(s),N=R(s),F=i(()=>r??_o(d),[r,d]),[B,C]=c(()=>F?null!=p&&F.legOptions.includes(p)?p:F.defaultLegs:8),[A,M]=c(()=>F?.defaultStake??20);if(!d||!Qo(d)||!F)/* @__PURE__ */return u("div",{className:a,style:{color:b.textMuted,fontFamily:w},children:"No game set available."});const S=Jo(A,B,{operatorMargin:F.operatorMargin,perLegProbability:F.perLegProbability}),z=A>=F.minStake,P=(e,t)=>/* @__PURE__ */m("div",{className:"mb-2 flex items-baseline justify-between",children:[/* @__PURE__ */u("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:e}),/* @__PURE__ */u("span",{className:"text-xs font-semibold tabular-nums",style:{color:v},children:t})]});/* @__PURE__ */
311
+ /* @__PURE__ */u("span",{className:"shrink-0 self-center transition-transform group-hover:translate-x-0.5",style:{color:x.primary},"aria-hidden":!0,children:/* @__PURE__ */u("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:/* @__PURE__ */u("path",{d:"m9 6 6 6-6 6"})})})]})})]})]})}function Fa({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=zr(),l=be(o),a=o.colors;/* @__PURE__ */
312
+ return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:a.primary,fontFamily:l},children:"The fastest multi"}),/* @__PURE__ */u(yl,{onBack:t,hideActions:n,label:r?.game_name})]})}function Ba({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:s,selectedGame:d,selectedPropositionCount:p,handlePropositionCountChange:h,setExpectedCorrect:f,setBetAmount:x,quickPickGame:g,goToSportSelection:y}=zr(),b=s.colors,w=ye(s),k=be(s),v=R(s),N=V(s),C=i(()=>r??Wo(d),[r,d]),[F,B]=c(()=>C?null!=p&&C.legOptions.includes(p)?p:C.defaultLegs:8),[A,M]=c(()=>C?.defaultStake??20);if(!d||!Ro(d)||!C)/* @__PURE__ */return u("div",{className:a,style:{color:b.textMuted,fontFamily:w},children:"No game set available."});const S=Go(A,F,{operatorMargin:C.operatorMargin,perLegProbability:C.perLegProbability}),z=A>=C.minStake,L=(e,t)=>/* @__PURE__ */m("div",{className:"mb-2 flex items-baseline justify-between",children:[/* @__PURE__ */u("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:e}),/* @__PURE__ */u("span",{className:"text-xs font-semibold tabular-nums",style:{color:v},children:t})]});/* @__PURE__ */
276
313
  return m("div",{className:`blade-gsb flex min-h-full w-full flex-col ${a}`,style:{fontFamily:w},children:[
277
314
  /* @__PURE__ */u("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"}),
278
- /* @__PURE__ */u(Al,{}),n&&/* @__PURE__ */u($o,{onBack:n,label:l}),
315
+ /* @__PURE__ */u(Ul,{}),n&&/* @__PURE__ */u(gl,{onBack:n,label:l}),
279
316
  /* @__PURE__ */m("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[
280
- /* @__PURE__ */u(vl,{className:"blade-gsb-in",eyebrow:o?null:"The fastest multi",iconUrl:Ae(d),gameName:d.game_name,tagline:F.tagline}),
281
- /* @__PURE__ */m("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 ${wl(v,.7)}`,animationDelay:".06s"},children:[P("Legs",`${B} legs`),
282
- /* @__PURE__ */u("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Number of legs",children:F.legOptions.map(e=>{const t=e===B;/* @__PURE__ */
283
- return u("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)})}),
317
+ /* @__PURE__ */u(Yl,{className:"blade-gsb-in",eyebrow:o?null:"The fastest multi",iconUrl:Ae(d),gameName:d.game_name,tagline:C.tagline}),
318
+ /* @__PURE__ */u(Hl,{}),
319
+ /* @__PURE__ */m("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 ${El(v,.7)}`,animationDelay:".06s"},children:[L("Legs",`${F} legs`),
320
+ /* @__PURE__ */u("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Number of legs",children:C.legOptions.map(e=>{const t=e===F;/* @__PURE__ */
321
+ return u("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>B(e),className:"min-w-[40px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border,color:t?b.primaryText:b.textMuted,cursor:"pointer"},children:e},e)})}),
284
322
  /* @__PURE__ */m("div",{className:"mt-2 flex items-baseline justify-between text-[11px] italic",style:{color:b.textMuted},children:[/* @__PURE__ */u("span",{children:"Easier to land"}),/* @__PURE__ */u("span",{children:"Bigger prize"})]}),
285
- /* @__PURE__ */m("div",{className:"mt-4",children:[P("Stake",ht(A)),
286
- /* @__PURE__ */m("div",{className:"relative",children:[/* @__PURE__ */u("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 font-bold",style:{color:b.textMuted},children:"$"}),/* @__PURE__ */u("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"}})]}),
287
- /* @__PURE__ */u("div",{className:"mt-2 flex flex-wrap gap-1.5",children:F.quickStakes.map(e=>{const t=e===A;/* @__PURE__ */
288
- return m("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)})}),!z&&A>0&&/* @__PURE__ */m("p",{className:"mt-2 text-xs",style:{color:b.error},children:["Minimum stake is ",ht(F.minStake),"."]})]}),
289
- /* @__PURE__ */m("div",{className:"mt-4 border-t pt-3",style:{borderColor:wl(v,.08)},children:[
290
- /* @__PURE__ */m("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:[/* @__PURE__ */m("span",{children:["If all ",B," land"]}),/* @__PURE__ */m("span",{children:[ht(A)," returns"]})]}),
291
- /* @__PURE__ */m("div",{className:"mt-1.5 flex items-center justify-between gap-3",children:[/* @__PURE__ */m("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[/* @__PURE__ */u("span",{className:"text-xs sm:text-[13px]",style:{color:b.text},children:"Perfect ticket"}),/* @__PURE__ */u(Bl,{legs:B})]}),/* @__PURE__ */u("span",{className:"text-xl font-extrabold tabular-nums sm:text-2xl",style:{color:b.primary,fontFamily:k},children:ht(S.prize)})]}),
292
- /* @__PURE__ */m("p",{className:"mt-1.5 text-[11px] tabular-nums",style:{color:b.textMuted},children:[(D=S.multiple,`×${(Math.round(10*D)/10).toLocaleString("en-US",{maximumFractionDigits:1})}`)," your stake · total return, stake included"]}),
323
+ /* @__PURE__ */m("div",{className:"mt-4",children:[L("Stake",vt(A)),
324
+ /* @__PURE__ */m("div",{className:"relative",children:[/* @__PURE__ */u("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 font-bold",style:{color:b.textMuted},children:"$"}),/* @__PURE__ */u("input",{type:"number",inputMode:"decimal",min:C.minStake,max:C.maxStake??void 0,step:"any",placeholder:"Enter stake","aria-label":"Stake amount",value:A||"",onChange:e=>{if(""===e.target.value)return void M(0);const t=Number(e.target.value);Number.isFinite(t)&&M((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==C.maxStake?Math.min(t,C.maxStake):t})(t))},onFocus:e=>{e.currentTarget.style.borderColor=b.borderFocus??b.primary},onBlur:e=>{e.currentTarget.style.borderColor=b.border},className:"w-full rounded-lg border py-3 pl-8 pr-4 text-lg font-semibold tabular-nums focus:outline-none",style:{borderColor:b.border,color:b.textAlt??b.text,backgroundColor:b.backgroundAlt,fontFamily:w,transition:"border-color .15s ease"}})]}),
325
+ /* @__PURE__ */u("div",{className:"mt-2 flex flex-wrap gap-1.5",children:C.quickStakes.map(e=>{const t=e===A;/* @__PURE__ */
326
+ return m("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)})}),!z&&A>0&&/* @__PURE__ */m("p",{className:"mt-2 text-xs",style:{color:b.error},children:["Minimum stake is ",vt(C.minStake),"."]})]}),
327
+ /* @__PURE__ */m("div",{className:"mt-4 border-t pt-3",style:{borderColor:El(v,.08)},children:[
328
+ /* @__PURE__ */m("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:[/* @__PURE__ */m("span",{children:["If all ",F," land"]}),/* @__PURE__ */m("span",{children:[vt(A)," returns"]})]}),
329
+ /* @__PURE__ */m("div",{className:"mt-1.5 flex items-center justify-between gap-3",children:[/* @__PURE__ */m("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[/* @__PURE__ */u("span",{className:"text-xs sm:text-[13px]",style:{color:b.text},children:"Perfect ticket"}),/* @__PURE__ */u(Wl,{legs:F})]}),/* @__PURE__ */u("span",{className:"text-xl font-extrabold tabular-nums sm:text-2xl",style:{color:b.primary,fontFamily:k},children:vt(S.prize)})]}),
330
+ /* @__PURE__ */m("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"]}),
293
331
  /* @__PURE__ */u("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."})]})]}),
294
- /* @__PURE__ */m("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[/* @__PURE__ */u("div",{className:"blade-gsb-in",style:{animationDelay:".13s"},children:/* @__PURE__ */u(Cl,{tile:/* @__PURE__ */u(kl,{iconUrl:Ae(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:()=>{z&&(f(B),h(B),x(A),y(),t?.())}})}),/* @__PURE__ */u("div",{className:"blade-gsb-in",style:{animationDelay:".2s"},children:/* @__PURE__ */u(Cl,{tile:/* @__PURE__ */u(kl,{iconUrl:`${ve}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{z&&(h(B),x(A),g(d,B),e?.())}})})]})]})]});var D}function zl({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Lo(),l=be(o),a=o.colors;/* @__PURE__ */
295
- return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:a.primary,fontFamily:l},children:"The dividend is set"}),/* @__PURE__ */u(qo,{onBack:t,hideActions:n,label:r?.game_name})]})}function Ll({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:s,selectedGame:d,selectedPropositionCount:p,handlePropositionCountChange:f,setExpectedCorrect:h,setBetAmount:x,quickPickGame:g,goToSportSelection:y}=Lo(),b=s.colors,w=ye(s),k=be(s),v=L(s),N=R(s),F=i(()=>r??ao(d),[r,d]),[B,C]=c(()=>F?.defaultDividend??1e4),[A,M]=c(()=>{const e=F?.dividends[0]?.rungs.map(e=>e.legs)??[];return null!=p&&e.includes(p)?p:F?.defaultLegs??9});if(!d||!no(d)||!F)/* @__PURE__ */return u("div",{className:a,style:{color:b.textMuted,fontFamily:w},children:"No dividend series available."});const S=F.dividends.find(e=>e.dividend===B)??F.dividends[0],z=S.rungs.find(e=>e.legs===A)??S.rungs[0],P=Math.max(...S.rungs.map(e=>e.legs)),D=Math.min(...S.rungs.map(e=>e.legs));/* @__PURE__ */
332
+ /* @__PURE__ */m("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[/* @__PURE__ */u("div",{className:"blade-gsb-in",style:{animationDelay:".13s"},children:/* @__PURE__ */u(Il,{tile:/* @__PURE__ */u(jl,{iconUrl:Ae(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:()=>{z&&(h(F),f(F),x(A),y(),t?.())}})}),/* @__PURE__ */u("div",{className:"blade-gsb-in",style:{animationDelay:".2s"},children:/* @__PURE__ */u(Il,{tile:/* @__PURE__ */u(jl,{iconUrl:`${ve}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{z&&(f(F),x(A),g(d,F,A),e?.())}})})]})]})]});var P}function Aa({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=zr(),l=be(o),a=o.colors;/* @__PURE__ */
333
+ return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:a.primary,fontFamily:l},children:"The dividend is set"}),/* @__PURE__ */u(yl,{onBack:t,hideActions:n,label:r?.game_name})]})}function Ma({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:s,selectedGame:d,selectedPropositionCount:p,handlePropositionCountChange:h,setExpectedCorrect:f,setBetAmount:x,quickPickGame:g,goToSportSelection:y}=zr(),b=s.colors,w=ye(s),k=be(s),v=R(s),N=V(s),C=i(()=>r??xo(d),[r,d]),[F,B]=c(()=>C?.defaultDividend??1e4),[A,M]=c(()=>{const e=C?.dividends[0]?.rungs.map(e=>e.legs)??[];return null!=p&&e.includes(p)?p:C?.defaultLegs??9});if(!d||!mo(d)||!C)/* @__PURE__ */return u("div",{className:a,style:{color:b.textMuted,fontFamily:w},children:"No dividend series available."});const S=C.dividends.find(e=>e.dividend===F)??C.dividends[0],z=S.rungs.find(e=>e.legs===A)??S.rungs[0],L=Math.max(...S.rungs.map(e=>e.legs)),P=Math.min(...S.rungs.map(e=>e.legs));/* @__PURE__ */
296
334
  return m("div",{className:`blade-pyd flex min-h-full w-full flex-col ${a}`,style:{fontFamily:w},children:[
297
335
  /* @__PURE__ */u("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"}),
298
- /* @__PURE__ */u(Al,{}),n&&/* @__PURE__ */u($o,{onBack:n,label:l}),
336
+ /* @__PURE__ */u(Ul,{}),n&&/* @__PURE__ */u(gl,{onBack:n,label:l}),
299
337
  /* @__PURE__ */m("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[
300
- /* @__PURE__ */u(vl,{className:"blade-pyd-in",eyebrow:o?null:"Pick your dividend",iconUrl:Ae(d),gameName:d.game_name,tagline:F.tagline}),
301
- /* @__PURE__ */m("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 ${wl(v,.7)}`,animationDelay:".06s"},children:[(O=ht(S.dividend),/* @__PURE__ */m("div",{className:"mb-2 flex items-baseline justify-between",children:[/* @__PURE__ */u("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:"Set dividend"}),O&&/* @__PURE__ */u("span",{className:"text-xs font-semibold tabular-nums",style:{color:v},children:O})]})),
302
- /* @__PURE__ */u(Nl,{smGridClassName:"sm:grid-cols-4",ariaLabel:"Set dividend",children:F.dividends.map(e=>{const t=e.dividend===B;/* @__PURE__ */
303
- return m("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>C(e.dividend),className:`rounded-xl border px-2 py-3 text-center transition-colors ${Fl}`,style:{backgroundColor:t?wl(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:[/* @__PURE__ */u("span",{className:"block text-base font-extrabold leading-none tracking-tight tabular-nums sm:text-xl",style:{color:v,fontFamily:k},children:ht(e.dividend)}),/* @__PURE__ */m("span",{className:"mt-1 block text-[10px]",style:{color:b.textMuted},children:["from ",ht(e.rungs[0]?.stake??0)]})]},e.dividend)})}),
338
+ /* @__PURE__ */u(Yl,{className:"blade-pyd-in",eyebrow:o?null:"Pick your dividend",iconUrl:Ae(d),gameName:d.game_name,tagline:C.tagline}),
339
+ /* @__PURE__ */u(Hl,{}),
340
+ /* @__PURE__ */m("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 ${El(v,.7)}`,animationDelay:".06s"},children:[(T=vt(S.dividend),/* @__PURE__ */m("div",{className:"mb-2 flex items-baseline justify-between",children:[/* @__PURE__ */u("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:"Set dividend"}),T&&/* @__PURE__ */u("span",{className:"text-xs font-semibold tabular-nums",style:{color:v},children:T})]})),
341
+ /* @__PURE__ */u(Rl,{smGridClassName:"sm:grid-cols-4",ariaLabel:"Set dividend",children:C.dividends.map(e=>{const t=e.dividend===F;/* @__PURE__ */
342
+ return m("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>B(e.dividend),className:`rounded-xl border px-2 py-3 text-center transition-colors ${Gl}`,style:{backgroundColor:t?El(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:[/* @__PURE__ */u("span",{className:"block text-base font-extrabold leading-none tracking-tight tabular-nums sm:text-xl",style:{color:v,fontFamily:k},children:vt(e.dividend)}),/* @__PURE__ */m("span",{className:"mt-1 block text-[10px]",style:{color:b.textMuted},children:["from ",vt(e.rungs[0]?.stake??0)]})]},e.dividend)})}),
304
343
  /* @__PURE__ */u("p",{className:"mt-2 text-[11px] italic",style:{color:b.textMuted},children:"One set amount — it does not move, whatever you spend."}),
305
- /* @__PURE__ */m("div",{className:"mt-4 border-t pt-3",style:{borderColor:wl(v,.08)},children:[
344
+ /* @__PURE__ */m("div",{className:"mt-4 border-t pt-3",style:{borderColor:El(v,.08)},children:[
306
345
  /* @__PURE__ */m("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:[/* @__PURE__ */u("span",{children:"Legs to land"}),/* @__PURE__ */u("span",{children:"Your stake"})]}),
307
346
  /* @__PURE__ */u("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;/* @__PURE__ */
308
- return m("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-1.5 text-left transition-colors sm:py-2",style:{backgroundColor:t?wl(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:[/* @__PURE__ */m("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[/* @__PURE__ */m("span",{className:"text-xs sm:text-[13px]",style:{color:b.text},children:[e.legs," legs",
309
- /* @__PURE__ */u("span",{className:"hidden sm:inline",children:e.legs===P?" · the long climb":e.legs===D?" · the sprint":""})]}),/* @__PURE__ */u(Bl,{legs:e.legs})]}),/* @__PURE__ */u("span",{className:"shrink-0 text-sm font-extrabold tabular-nums sm:text-base",style:{color:b.primary,fontFamily:k},children:ht(e.stake)})]},e.legs)})}),
347
+ return m("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-1.5 text-left transition-colors sm:py-2",style:{backgroundColor:t?El(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:[/* @__PURE__ */m("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[/* @__PURE__ */m("span",{className:"text-xs sm:text-[13px]",style:{color:b.text},children:[e.legs," legs",
348
+ /* @__PURE__ */u("span",{className:"hidden sm:inline",children:e.legs===L?" · the long climb":e.legs===P?" · the sprint":""})]}),/* @__PURE__ */u(Wl,{legs:e.legs})]}),/* @__PURE__ */u("span",{className:"shrink-0 text-sm font-extrabold tabular-nums sm:text-base",style:{color:b.primary,fontFamily:k},children:vt(e.stake)})]},e.legs)})}),
310
349
  /* @__PURE__ */u("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."})]})]}),
311
- /* @__PURE__ */m("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[/* @__PURE__ */u("div",{className:"blade-pyd-in",style:{animationDelay:".13s"},children:/* @__PURE__ */u(Cl,{tile:/* @__PURE__ */u(kl,{iconUrl:Ae(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${z.legs} legs`,`${ht(z.stake)} chasing the ${ht(S.dividend)}`],onSelect:()=>{var e;f((e=z).legs),h(e.legs),x(e.stake),y(),t?.()}})}),/* @__PURE__ */u("div",{className:"blade-pyd-in",style:{animationDelay:".2s"},children:/* @__PURE__ */u(Cl,{tile:/* @__PURE__ */u(kl,{iconUrl:`${ve}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${z.legs} legs at ${ht(z.stake)}`,"Straight to the bet slip"],onSelect:()=>{h(z.legs),x(z.stake),g(d,z.legs),e?.()}})})]})]})]});var O}function Pl({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Lo(),l=be(o),a=o.colors;/* @__PURE__ */
312
- return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:a.primary,fontFamily:l},children:"Every step pays"}),/* @__PURE__ */u(qo,{onBack:t,hideActions:n,label:r?.game_name})]})}function Dl({onQuickPick:t,onPickYourOwn:n,onBack:o,hideTitle:r,config:l,backLabel:a="Games",className:s=""}){const{theme:d,selectedGame:p,selectedPropositionCount:f,handlePropositionCountChange:h,setExpectedCorrect:x,setBetAmount:g,quickPickGame:y,goToSportSelection:b,screenSize:w}=Lo(),k=d.colors,v="mobile"===w,N=ye(d),F=be(d),B=L(d),C=E(d),A=R(d),M=i(()=>l??sr(p),[l,p]),[S,z]=c(()=>M?null!=f&&M.ladders.some(e=>e.legs===f)?f:M.defaultLegs:8),[P,D]=c(()=>M?.defaultStake??50),[O,T]=c(!1);if(!p||!or(p)||!M)/* @__PURE__ */return u("div",{className:s,style:{color:k.textMuted,fontFamily:N},children:"No ladders available."});const j=M.ladders.find(e=>e.legs===S)??M.ladders[0],Y=lr(j,P),H=ar(j,P),G=[...Y].reverse(),W=v&&G.length>4,I=W&&!O?G.slice(0,3):G,U=(e,t)=>/* @__PURE__ */m("div",{className:"mb-2 flex items-baseline justify-between",children:[/* @__PURE__ */u("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:k.textMuted},children:e}),t&&/* @__PURE__ */u("span",{className:"text-xs font-semibold tabular-nums",style:{color:B},children:t})]});/* @__PURE__ */
350
+ /* @__PURE__ */m("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[/* @__PURE__ */u("div",{className:"blade-pyd-in",style:{animationDelay:".13s"},children:/* @__PURE__ */u(Il,{tile:/* @__PURE__ */u(jl,{iconUrl:Ae(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${z.legs} legs`,`${vt(z.stake)} chasing the ${vt(S.dividend)}`],onSelect:()=>{var e;h((e=z).legs),f(e.legs),x(e.stake),y(),t?.()}})}),/* @__PURE__ */u("div",{className:"blade-pyd-in",style:{animationDelay:".2s"},children:/* @__PURE__ */u(Il,{tile:/* @__PURE__ */u(jl,{iconUrl:`${ve}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${z.legs} legs at ${vt(z.stake)}`,"Straight to the bet slip"],onSelect:()=>{f(z.legs),x(z.stake),g(d,z.legs,z.stake),e?.()}})})]})]})]});var T}function Sa({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=zr(),l=be(o),a=o.colors;/* @__PURE__ */
351
+ return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:a.primary,fontFamily:l},children:"Every step pays"}),/* @__PURE__ */u(yl,{onBack:t,hideActions:n,label:r?.game_name})]})}function za({onQuickPick:t,onPickYourOwn:n,onBack:o,hideTitle:r,config:l,backLabel:a="Games",className:s=""}){const{theme:d,selectedGame:p,selectedPropositionCount:h,handlePropositionCountChange:f,setExpectedCorrect:x,setBetAmount:g,quickPickGame:y,goToSportSelection:b,screenSize:w}=zr(),k=d.colors,v="mobile"===w,N=ye(d),C=be(d),F=R(d),B=$(d),A=V(d),M=i(()=>l??Qo(p),[l,p]),[S,z]=c(()=>M?null!=h&&M.ladders.some(e=>e.legs===h)?h:M.defaultLegs:8),[L,P]=c(()=>M?.defaultStake??50),[T,D]=c(!1);if(!p||!Ko(p)||!M)/* @__PURE__ */return u("div",{className:s,style:{color:k.textMuted,fontFamily:N},children:"No ladders available."});const O=M.ladders.find(e=>e.legs===S)??M.ladders[0],E=qo(O,L),j=Vo(O,L),Y=[...E].reverse(),H=v&&Y.length>4,G=H&&!T?Y.slice(0,3):Y,W=(e,t)=>/* @__PURE__ */m("div",{className:"mb-2 flex items-baseline justify-between",children:[/* @__PURE__ */u("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:k.textMuted},children:e}),t&&/* @__PURE__ */u("span",{className:"text-xs font-semibold tabular-nums",style:{color:F},children:t})]});/* @__PURE__ */
313
352
  return m("div",{className:`blade-lad flex min-h-full w-full flex-col ${s}`,style:{fontFamily:N},children:[
314
353
  /* @__PURE__ */u("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"}),
315
- /* @__PURE__ */u(Al,{}),o&&/* @__PURE__ */u($o,{onBack:o,label:a}),
354
+ /* @__PURE__ */u(Ul,{}),o&&/* @__PURE__ */u(gl,{onBack:o,label:a}),
316
355
  /* @__PURE__ */m("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[
317
- /* @__PURE__ */u(vl,{className:"blade-lad-in",eyebrow:r?null:"Climb the ladder. Stack the prizes.",iconUrl:Ae(p),gameName:p.game_name,tagline:M.tagline}),
318
- /* @__PURE__ */m("div",{className:"blade-lad-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:A,borderColor:k.border,boxShadow:`0 10px 24px -20px ${wl(B,.7)}`,animationDelay:".06s"},children:[U("Your bet",ht(P)),
319
- /* @__PURE__ */u("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Bet size",children:M.stakes.map(e=>{const t=e===P;/* @__PURE__ */
320
- return m("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>D(e),className:"min-w-[52px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?k.primary:"transparent",borderColor:t?k.primary:k.border,color:t?k.primaryText:k.textMuted,cursor:"pointer"},children:["$",e]},e)})}),
356
+ /* @__PURE__ */u(Yl,{className:"blade-lad-in",eyebrow:r?null:"Climb the ladder. Stack the prizes.",iconUrl:Ae(p),gameName:p.game_name,tagline:M.tagline}),
357
+ /* @__PURE__ */u(Hl,{}),
358
+ /* @__PURE__ */m("div",{className:"blade-lad-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:A,borderColor:k.border,boxShadow:`0 10px 24px -20px ${El(F,.7)}`,animationDelay:".06s"},children:[W("Your bet",vt(L)),
359
+ /* @__PURE__ */u("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Bet size",children:M.stakes.map(e=>{const t=e===L;/* @__PURE__ */
360
+ return m("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>P(e),className:"min-w-[52px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?k.primary:"transparent",borderColor:t?k.primary:k.border,color:t?k.primaryText:k.textMuted,cursor:"pointer"},children:["$",e]},e)})}),
321
361
  /* @__PURE__ */u("p",{className:"mt-2 text-[11px] italic",style:{color:k.textMuted},children:"Every prize scales with your bet."}),
322
- /* @__PURE__ */m("div",{className:"mt-4",children:[U(`${M.ladders.length} ladders to choose from`),/* @__PURE__ */u(Nl,{smGridClassName:"sm:grid-cols-5",ariaLabel:"Ladder",children:M.ladders.map(e=>{const t=e.legs===S;/* @__PURE__ */
323
- return m("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>z(e.legs),className:`rounded-xl border px-2 py-3 text-center transition-colors ${Fl}`,style:{backgroundColor:t?wl(k.primary,.08):"transparent",borderColor:t?k.primary:k.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=k.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=t?k.primary:k.border},children:[
362
+ /* @__PURE__ */m("div",{className:"mt-4",children:[W(`${M.ladders.length} ladders to choose from`),/* @__PURE__ */u(Rl,{smGridClassName:"sm:grid-cols-5",ariaLabel:"Ladder",children:M.ladders.map(e=>{const t=e.legs===S;/* @__PURE__ */
363
+ return m("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>z(e.legs),className:`rounded-xl border px-2 py-3 text-center transition-colors ${Gl}`,style:{backgroundColor:t?El(k.primary,.08):"transparent",borderColor:t?k.primary:k.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=k.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=t?k.primary:k.border},children:[
324
364
  /* @__PURE__ */m("span",{className:"block text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:k.primary},children:["Ladder ",e.legs]}),
325
- /* @__PURE__ */u("span",{className:"mt-1 block text-lg font-extrabold leading-none tracking-tight tabular-nums sm:text-xl",style:{color:B,fontFamily:F},children:ht(ar(e,P))}),
365
+ /* @__PURE__ */u("span",{className:"mt-1 block text-lg font-extrabold leading-none tracking-tight tabular-nums sm:text-xl",style:{color:F,fontFamily:C},children:vt(Vo(e,L))}),
326
366
  /* @__PURE__ */m("span",{className:"mt-1 block text-[10px]",style:{color:k.textMuted},children:["Win from ",e.firstPayingTier," right"]})]},e.legs)})})]}),
327
- /* @__PURE__ */m("div",{className:"mt-4 border-t pt-3",style:{borderColor:wl(B,.08)},children:[
328
- /* @__PURE__ */m("p",{className:"mb-2 text-xs",style:{color:k.text},children:["Ladder ",j.legs," wins from ",j.firstPayingTier," right — every tier stacks into the"," ",
329
- /* @__PURE__ */u("span",{style:{fontWeight:700,color:B},children:ht(H)})," Full Stack Prize."]}),
367
+ /* @__PURE__ */m("div",{className:"mt-4 border-t pt-3",style:{borderColor:El(F,.08)},children:[
368
+ /* @__PURE__ */m("p",{className:"mb-2 text-xs",style:{color:k.text},children:["Ladder ",O.legs," wins from ",O.firstPayingTier," right — every tier stacks into the"," ",
369
+ /* @__PURE__ */u("span",{style:{fontWeight:700,color:F},children:vt(j)})," Full Stack Prize."]}),
330
370
  /* @__PURE__ */m("div",{className:"grid items-center gap-x-3 gap-y-1.5 sm:gap-x-4",style:{gridTemplateColumns:"minmax(0,1fr) auto auto"},children:[
331
371
  /* @__PURE__ */u("span",{className:"text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:k.textMuted},children:"Get right"}),
332
372
  /* @__PURE__ */u("span",{className:"text-right text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:k.textMuted},children:"Tier pays"}),
333
- /* @__PURE__ */u("span",{className:"text-right text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:k.textMuted},children:"You collect"}),I.map(t=>{const n=t.atLeast===j.legs;/* @__PURE__ */
373
+ /* @__PURE__ */u("span",{className:"text-right text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:k.textMuted},children:"You collect"}),G.map(t=>{const n=t.atLeast===O.legs;/* @__PURE__ */
334
374
  return m(e.Fragment,{children:[
335
- /* @__PURE__ */m("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[/* @__PURE__ */m("span",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs sm:text-[13px]",style:{color:k.text},children:[t.atLeast," of ",j.legs,n&&/* @__PURE__ */u("span",{className:"hidden rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em] sm:inline",style:{backgroundColor:wl(C,.35),color:B},children:"Full stack"})]}),/* @__PURE__ */u(Bl,{legs:t.atLeast,prizeBall:n})]}),
336
- /* @__PURE__ */u("span",{className:"text-right text-[11px] tabular-nums",style:{color:k.textMuted},children:ht(t.prize)}),
337
- /* @__PURE__ */u("span",{className:"text-right text-sm font-extrabold tabular-nums sm:text-base",style:{color:k.primary,fontFamily:F},children:ht(t.cumulative)})]},t.atLeast)})]}),W&&/* @__PURE__ */u("button",{type:"button",onClick:()=>T(e=>!e),"aria-expanded":O,className:"mt-2 w-full rounded-lg border py-2 text-[11px] font-bold",style:{borderColor:k.border,color:k.primary,background:"transparent",cursor:"pointer"},children:O?"Show fewer tiers":`Show all ${G.length} tiers`}),
338
- /* @__PURE__ */m("p",{className:"mt-2 text-[11px] italic",style:{color:k.textMuted},children:["Land below ",j.firstPayingTier," right and the ticket does not pay."]})]})]}),
339
- /* @__PURE__ */m("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[/* @__PURE__ */u("div",{className:"blade-lad-in",style:{animationDelay:".13s"},children:/* @__PURE__ */u(Cl,{tile:/* @__PURE__ */u(kl,{iconUrl:Ae(p),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${j.legs} outcomes`,`Win from ${j.firstPayingTier} right — every tier stacks`],onSelect:()=>{h(j.legs),x(j.legs),g(P),b(),n?.()}})}),/* @__PURE__ */u("div",{className:"blade-lad-in",style:{animationDelay:".2s"},children:/* @__PURE__ */u(Cl,{tile:/* @__PURE__ */u(kl,{iconUrl:`${ve}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${j.legs} legs at ${ht(P)}`,"Straight to the bet slip"],onSelect:()=>{x(j.legs),g(P),y(p,j.legs),t?.()}})})]})]})]})}function Ol({legs:e,right:t}){const{theme:n}=Lo(),o=n.colors.primary,r=E(n);/* @__PURE__ */
340
- return m("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:e}).map((e,n)=>/* @__PURE__ */u("span",{style:{width:5,height:5,borderRadius:1.5,backgroundColor:t?o:"transparent",border:t?"none":`1px solid ${wl(o,.45)}`,opacity:t?.85:1}},n)),/* @__PURE__ */u("span",{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}})]})}function Tl({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Lo(),l=be(o),a=o.colors;/* @__PURE__ */
341
- return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:a.primary,fontFamily:l},children:"All right, or all wrong"}),/* @__PURE__ */u(qo,{onBack:t,hideActions:n,label:r?.game_name})]})}function El({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:s,selectedGame:d,selectedPropositionCount:p,handlePropositionCountChange:f,setExpectedCorrect:h,setBetAmount:x,quickPickGame:g,goToSportSelection:y}=Lo(),b=s.colors,w=ye(s),k=be(s),v=L(s),N=R(s),F=i(()=>r??fr(d),[r,d]),[B,C]=c(()=>F?null!=p&&F.legOptions.includes(p)?p:F.defaultLegs:8),[A,M]=c(()=>F?.defaultStake??20);if(!d||!mr(d)||!F)/* @__PURE__ */return u("div",{className:a,style:{color:b.textMuted,fontFamily:w},children:"No mirror available."});const S=pr(A,B,{operatorMargin:F.operatorMargin,perLegProbability:F.perLegProbability}),z=A>=F.minStake,P=(e,t)=>/* @__PURE__ */m("div",{className:"mb-2 flex items-baseline justify-between",children:[/* @__PURE__ */u("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:e}),/* @__PURE__ */u("span",{className:"text-xs font-semibold tabular-nums",style:{color:v},children:t})]}),D=e=>/* @__PURE__ */m("div",{className:"flex items-center justify-between gap-3",children:[/* @__PURE__ */m("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[/* @__PURE__ */u("span",{className:"text-xs sm:text-[13px]",style:{color:b.text},children:e?`All ${B} right`:`All ${B} wrong`}),/* @__PURE__ */u(Ol,{legs:B,right:e})]}),/* @__PURE__ */u("span",{className:"text-lg font-extrabold tabular-nums sm:text-xl",style:{color:b.primary,fontFamily:k},children:ht(S.prize)})]});/* @__PURE__ */
375
+ /* @__PURE__ */m("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[/* @__PURE__ */m("span",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs sm:text-[13px]",style:{color:k.text},children:[t.atLeast," of ",O.legs,n&&/* @__PURE__ */u("span",{className:"hidden rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em] sm:inline",style:{backgroundColor:El(B,.35),color:F},children:"Full stack"})]}),/* @__PURE__ */u(Wl,{legs:t.atLeast,prizeBall:n})]}),
376
+ /* @__PURE__ */u("span",{className:"text-right text-[11px] tabular-nums",style:{color:k.textMuted},children:vt(t.prize)}),
377
+ /* @__PURE__ */u("span",{className:"text-right text-sm font-extrabold tabular-nums sm:text-base",style:{color:k.primary,fontFamily:C},children:vt(t.cumulative)})]},t.atLeast)})]}),H&&/* @__PURE__ */u("button",{type:"button",onClick:()=>D(e=>!e),"aria-expanded":T,className:"mt-2 w-full rounded-lg border py-2 text-[11px] font-bold",style:{borderColor:k.border,color:k.primary,background:"transparent",cursor:"pointer"},children:T?"Show fewer tiers":`Show all ${Y.length} tiers`}),
378
+ /* @__PURE__ */m("p",{className:"mt-2 text-[11px] italic",style:{color:k.textMuted},children:["Land below ",O.firstPayingTier," right and the ticket does not pay."]})]})]}),
379
+ /* @__PURE__ */m("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[/* @__PURE__ */u("div",{className:"blade-lad-in",style:{animationDelay:".13s"},children:/* @__PURE__ */u(Il,{tile:/* @__PURE__ */u(jl,{iconUrl:Ae(p),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${O.legs} outcomes`,`Win from ${O.firstPayingTier} right — every tier stacks`],onSelect:()=>{f(O.legs),x(O.legs),g(L),b(),n?.()}})}),/* @__PURE__ */u("div",{className:"blade-lad-in",style:{animationDelay:".2s"},children:/* @__PURE__ */u(Il,{tile:/* @__PURE__ */u(jl,{iconUrl:`${ve}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${O.legs} legs at ${vt(L)}`,"Straight to the bet slip"],onSelect:()=>{x(O.legs),g(L),y(p,O.legs,L),t?.()}})})]})]})]})}function La({depth:e,theme:t}){const n=t.colors,o=$(t);/* @__PURE__ */
380
+ return u("span",{className:"mt-2 flex gap-[3px]","aria-hidden":!0,children:Array.from({length:9}).map((t,r)=>{const l=Math.min(r,8-r)<e;/* @__PURE__ */
381
+ return u("span",{className:"h-3.5 flex-1 rounded",style:{backgroundColor:l?r<4.5?n.primary:o:"transparent",border:l?"none":`1px solid ${n.border}`}},r)})})}function Pa({legs:e,right:t}){const{theme:n}=zr(),o=n.colors.primary,r=$(n);/* @__PURE__ */
382
+ return m("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:e}).map((e,n)=>/* @__PURE__ */u("span",{style:{width:5,height:5,borderRadius:1.5,backgroundColor:t?o:"transparent",border:t?"none":`1px solid ${El(o,.45)}`,opacity:t?.85:1}},n)),/* @__PURE__ */u("span",{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}})]})}function Ta({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=zr(),l=be(o),a=o.colors;/* @__PURE__ */
383
+ return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:a.primary,fontFamily:l},children:"All right, or all wrong"}),/* @__PURE__ */u(yl,{onBack:t,hideActions:n,label:r?.game_name})]})}function Da({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:s,selectedGame:d,selectedPropositionCount:p,handlePropositionCountChange:h,setExpectedCorrect:f,setBetAmount:x,quickPickGame:g,goToSportSelection:y}=zr(),b=s.colors,w=ye(s),k=be(s),v=R(s),N=V(s),C=i(()=>r??lr(d),[r,d]),[F,B]=c(()=>C?null!=p&&C.legOptions.includes(p)?p:C.defaultLegs:8),[A,M]=c(()=>C?.defaultStake??20);if(!d||!or(d)||!C)/* @__PURE__ */return u("div",{className:a,style:{color:b.textMuted,fontFamily:w},children:"No mirror available."});const S=C.variant,z=C.legOptions,L=z.includes(F)?F:z[0],P=function(e,t,n,o){const r=ir(e),l=t*(1-(o?.operatorMargin??.21875)),a=Math.round(Math.pow(2,n)),i=[];let s=0;for(let c=0;c<r.depth;c++){const e=sr(n,c),t=n-c===c?e:2*e;s+=t,i.push({distance:c,label:r.tierNames[c]??`Tier ${c+1}`,correctCounts:n-c===c?[c]:[n-c,c],prize:Math.round(l/r.depth*a/(2*e)*100)/100,outcomes:t})}return{variant:r.id,legs:n,stake:t,tiers:i,totalOutcomes:a,winningOutcomes:s,oddsOneIn:Math.round(a/s*1e4)/1e4}}(S.id,A,L,{operatorMargin:C.operatorMargin}),T=L-(S.depth-1),D=A>=C.minStake,O=(e,t)=>/* @__PURE__ */m("div",{className:"mb-2 flex items-baseline justify-between",children:[/* @__PURE__ */u("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:e}),/* @__PURE__ */u("span",{className:"text-xs font-semibold tabular-nums",style:{color:v},children:t})]});/* @__PURE__ */
342
384
  return m("div",{className:`blade-mir flex min-h-full w-full flex-col ${a}`,style:{fontFamily:w},children:[
343
385
  /* @__PURE__ */u("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"}),
344
- /* @__PURE__ */u(Al,{}),n&&/* @__PURE__ */u($o,{onBack:n,label:l}),
386
+ /* @__PURE__ */u(Ul,{}),n&&/* @__PURE__ */u(gl,{onBack:n,label:l}),
345
387
  /* @__PURE__ */m("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[
346
- /* @__PURE__ */u(vl,{className:"blade-mir-in",eyebrow:o?null:"All right, or all wrong",iconUrl:Ae(d),gameName:d.game_name,tagline:F.tagline}),
347
- /* @__PURE__ */m("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 ${wl(v,.7)}`,animationDelay:".06s"},children:[P("Legs",`${B} legs`),
348
- /* @__PURE__ */u("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Number of legs",children:F.legOptions.map(e=>{const t=e===B;/* @__PURE__ */
349
- return u("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)})}),
388
+ /* @__PURE__ */u(Yl,{className:"blade-mir-in",eyebrow:o?null:"All right, or all wrong",iconUrl:Ae(d),gameName:d.game_name,tagline:C.tagline}),
389
+ /* @__PURE__ */u(Hl,{}),
390
+ /* @__PURE__ */m("div",{className:"blade-mir-in mb-3",style:{animationDelay:".03s"},children:[O(S.name,S.waysToWin),
391
+ /* @__PURE__ */u(La,{depth:S.depth,theme:s}),
392
+ /* @__PURE__ */m("div",{className:"mt-1 flex items-baseline justify-between text-[9px] font-bold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:[
393
+ /* @__PURE__ */u("span",{children:"All wrong"}),
394
+ /* @__PURE__ */m("span",{children:[z[0],"–",z[z.length-1]," legs"]}),
395
+ /* @__PURE__ */u("span",{children:"All right"})]})]}),
396
+ /* @__PURE__ */m("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 ${El(v,.7)}`,animationDelay:".06s"},children:[O("Legs",`${L} legs`),
397
+ /* @__PURE__ */u("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Number of legs",children:z.map(e=>{const t=e===L;/* @__PURE__ */
398
+ return u("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>B(e),className:"min-w-[40px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border,color:t?b.primaryText:b.textMuted,cursor:"pointer"},children:e},e)})}),
350
399
  /* @__PURE__ */m("div",{className:"mt-2 flex items-baseline justify-between text-[11px] italic",style:{color:b.textMuted},children:[/* @__PURE__ */u("span",{children:"Easier to sweep"}),/* @__PURE__ */u("span",{children:"Bigger prize"})]}),
351
- /* @__PURE__ */m("div",{className:"mt-4",children:[P("Stake",ht(A)),
352
- /* @__PURE__ */m("div",{className:"relative",children:[/* @__PURE__ */u("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 font-bold",style:{color:b.textMuted},children:"$"}),/* @__PURE__ */u("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"}})]}),
353
- /* @__PURE__ */u("div",{className:"mt-2 flex flex-wrap gap-1.5",children:F.quickStakes.map(e=>{const t=e===A;/* @__PURE__ */
354
- return m("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)})}),!z&&A>0&&/* @__PURE__ */m("p",{className:"mt-2 text-xs",style:{color:b.error},children:["Minimum stake is ",ht(F.minStake),"."]})]}),
355
- /* @__PURE__ */m("div",{className:"mt-4 border-t pt-3",style:{borderColor:wl(v,.08)},children:[
356
- /* @__PURE__ */m("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:[/* @__PURE__ */u("span",{children:"Two ways to win"}),/* @__PURE__ */m("span",{children:[ht(A)," pays each"]})]}),
357
- /* @__PURE__ */m("div",{className:"mt-1.5 flex flex-col gap-2",children:[D(!0),D(!1)]}),
400
+ /* @__PURE__ */m("div",{className:"mt-4",children:[O("Stake",vt(A)),
401
+ /* @__PURE__ */m("div",{className:"relative",children:[/* @__PURE__ */u("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 font-bold",style:{color:b.textMuted},children:"$"}),/* @__PURE__ */u("input",{type:"number",inputMode:"decimal",min:C.minStake,max:C.maxStake??void 0,step:"any",placeholder:"Enter stake","aria-label":"Stake amount",value:A||"",onChange:e=>{if(""===e.target.value)return void M(0);const t=Number(e.target.value);Number.isFinite(t)&&M((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==C.maxStake?Math.min(t,C.maxStake):t})(t))},onFocus:e=>{e.currentTarget.style.borderColor=b.borderFocus??b.primary},onBlur:e=>{e.currentTarget.style.borderColor=b.border},className:"w-full rounded-lg border py-3 pl-8 pr-4 text-lg font-semibold tabular-nums focus:outline-none",style:{borderColor:b.border,color:b.textAlt??b.text,backgroundColor:b.backgroundAlt,fontFamily:w,transition:"border-color .15s ease"}})]}),
402
+ /* @__PURE__ */u("div",{className:"mt-2 flex flex-wrap gap-1.5",children:C.quickStakes.map(e=>{const t=e===A;/* @__PURE__ */
403
+ return m("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)})}),!D&&A>0&&/* @__PURE__ */m("p",{className:"mt-2 text-xs",style:{color:b.error},children:["Minimum stake is ",vt(C.minStake),"."]})]}),
404
+ /* @__PURE__ */m("div",{className:"mt-4 border-t pt-3",style:{borderColor:El(v,.08)},children:[
405
+ /* @__PURE__ */m("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:[/* @__PURE__ */u("span",{children:"What it pays"}),/* @__PURE__ */u("span",{children:S.waysToWin})]}),
406
+ /* @__PURE__ */u("div",{className:"mt-1.5 flex flex-col gap-2",children:P.tiers.map(e=>/* @__PURE__ */m("div",{className:"flex items-center justify-between gap-3",children:[/* @__PURE__ */m("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[/* @__PURE__ */m("span",{className:"text-xs sm:text-[13px]",style:{color:b.text},children:[e.correctCounts.map(e=>`${e}`).join(" or ")," of ",L," right"]}),/* @__PURE__ */u(Pa,{legs:L,right:0===e.distance})]}),/* @__PURE__ */u("span",{className:"text-lg font-extrabold tabular-nums sm:text-xl",style:{color:b.primary,fontFamily:k},children:vt(e.prize)})]},e.distance))}),
358
407
  /* @__PURE__ */u("p",{className:"mt-2 text-[11px] italic",style:{color:b.textMuted},children:"Anything in between — a split card — does not pay."})]})]}),
359
- /* @__PURE__ */m("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[/* @__PURE__ */u("div",{className:"blade-mir-in",style:{animationDelay:".13s"},children:/* @__PURE__ */u(Cl,{tile:/* @__PURE__ */u(kl,{iconUrl:Ae(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:()=>{z&&(f(B),h(B),x(A),y(),t?.())}})}),/* @__PURE__ */u("div",{className:"blade-mir-in",style:{animationDelay:".2s"},children:/* @__PURE__ */u(Cl,{tile:/* @__PURE__ */u(kl,{iconUrl:`${ve}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{z&&(h(B),x(A),g(d,B),e?.())}})})]})]})]})}function jl({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Lo(),l=be(o),a=o.colors;/* @__PURE__ */
360
- return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:a.primary,fontFamily:l},children:"Choose your safety net"}),/* @__PURE__ */u(qo,{onBack:t,hideActions:n,label:r?.game_name})]})}function Yl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:s,selectedGame:d,selectedPropositionCount:p,handlePropositionCountChange:f,setExpectedCorrect:h,setBetAmount:x,setSelectedRuleId:g,quickPickGame:y,goToSportSelection:b}=Lo(),w=s.colors,k=ye(s),v=be(s),N=L(s),F=R(s),B=i(()=>r??qn(d),[r,d]),[C,A]=c(()=>B?.defaultModeId??"extra_shot"),[M,S]=c(()=>{const e=B?.modes.find(e=>e.id===(B?.defaultModeId??"extra_shot"));return e?null!=p&&e.legOptions.includes(p)?p:e.defaultLegs:8}),[z,P]=c(()=>B?.defaultStake??20);if(!d||!Yn(d)||!B)/* @__PURE__ */return u("div",{className:a,style:{color:w.textMuted,fontFamily:k},children:"No safety net available."});const D=B.modes.find(e=>e.id===C)??B.modes[0],O=Wn(z,M,D.allowedMisses,B.pricing),T=e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==B.maxStake?Math.min(t,B.maxStake):t},E=z>=B.minStake,j=(e,t)=>/* @__PURE__ */m("div",{className:"mb-2 flex items-baseline justify-between",children:[/* @__PURE__ */u("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:w.textMuted},children:e}),/* @__PURE__ */u("span",{className:"text-xs font-semibold tabular-nums",style:{color:N},children:t})]}),Y=(e,t,n,o)=>/* @__PURE__ */u("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?w.primary:"transparent",borderColor:n?w.primary:w.border,color:n?w.primaryText:w.textMuted,cursor:"pointer"},children:t},e),H=[{label:"Perfect",amount:O.perfect},...O.nearMiss.map((e,t)=>({label:`All but ${t+1}`,amount:e}))];/* @__PURE__ */
408
+ /* @__PURE__ */m("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[/* @__PURE__ */u("div",{className:"blade-mir-in",style:{animationDelay:".13s"},children:/* @__PURE__ */u(Il,{tile:/* @__PURE__ */u(jl,{iconUrl:Ae(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:()=>{D&&(h(L),f(T),x(A),y(),t?.())}})}),/* @__PURE__ */u("div",{className:"blade-mir-in",style:{animationDelay:".2s"},children:/* @__PURE__ */u(Il,{tile:/* @__PURE__ */u(jl,{iconUrl:`${ve}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{D&&(f(T),x(A),g(d,L,A),e?.())}})})]})]})]})}function Oa({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=zr(),l=be(o),a=o.colors;/* @__PURE__ */
409
+ return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:a.primary,fontFamily:l},children:"Choose your safety net"}),/* @__PURE__ */u(yl,{onBack:t,hideActions:n,label:r?.game_name})]})}function Ea({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:s,selectedGame:d,selectedPropositionCount:p,handlePropositionCountChange:h,setExpectedCorrect:f,setBetAmount:x,setSelectedRuleId:g,quickPickGame:y,goToSportSelection:b}=zr(),w=s.colors,k=ye(s),v=be(s),N=R(s),C=V(s),F=i(()=>r??oo(d),[r,d]),[B,A]=c(()=>F?.defaultModeId??"extra_shot"),[M,S]=c(()=>{const e=F?.modes.find(e=>e.id===(F?.defaultModeId??"extra_shot"));return e?null!=p&&e.legOptions.includes(p)?p:e.defaultLegs:8}),[z,L]=c(()=>F?.defaultStake??20);if(!d||!Zn(d)||!F)/* @__PURE__ */return u("div",{className:a,style:{color:w.textMuted,fontFamily:k},children:"No safety net available."});const P=F.modes.find(e=>e.id===B)??F.modes[0],T=Qn(z,M,P.allowedMisses,F.pricing),D=e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==F.maxStake?Math.min(t,F.maxStake):t},O=z>=F.minStake,E=(e,t)=>/* @__PURE__ */m("div",{className:"mb-2 flex items-baseline justify-between",children:[/* @__PURE__ */u("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:w.textMuted},children:e}),/* @__PURE__ */u("span",{className:"text-xs font-semibold tabular-nums",style:{color:N},children:t})]}),j=(e,t,n,o)=>/* @__PURE__ */u("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?w.primary:"transparent",borderColor:n?w.primary:w.border,color:n?w.primaryText:w.textMuted,cursor:"pointer"},children:t},e),Y=[{label:"Perfect",amount:T.perfect},...T.nearMiss.map((e,t)=>({label:`All but ${t+1}`,amount:e}))];/* @__PURE__ */
361
410
  return m("div",{className:`blade-sn flex min-h-full w-full flex-col ${a}`,style:{fontFamily:k},children:[
362
411
  /* @__PURE__ */u("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"}),
363
- /* @__PURE__ */u(Al,{}),n&&/* @__PURE__ */u($o,{onBack:n,label:l}),
412
+ /* @__PURE__ */u(Ul,{}),n&&/* @__PURE__ */u(gl,{onBack:n,label:l}),
364
413
  /* @__PURE__ */m("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[
365
- /* @__PURE__ */u(vl,{className:"blade-sn-in",eyebrow:o?null:"Choose your safety net",iconUrl:Ae(d),gameName:d.game_name,tagline:B.tagline}),
366
- /* @__PURE__ */m("div",{className:"blade-sn-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:F,borderColor:w.border,boxShadow:`0 10px 24px -20px ${wl(N,.7)}`,animationDelay:".06s"},children:[j("Safety net",D.label),
367
- /* @__PURE__ */u("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Safety net mode",children:B.modes.map(e=>Y(e.id,e.label,e.id===D.id,()=>(e=>{const t=B.modes.find(t=>t.id===e);t&&(A(e),g(t.ruleId),t.legOptions.includes(M)||S(t.legOptions.reduce((e,t)=>Math.abs(t-M)<Math.abs(e-M)?t:e,t.legOptions[0])))})(e.id)))}),
368
- /* @__PURE__ */u("p",{className:"mt-2 text-xs leading-snug sm:text-[13px]",style:{color:w.textMuted},children:D.explain}),
369
- /* @__PURE__ */m("div",{className:"mt-4",children:[j("Legs",`${M} legs`),
370
- /* @__PURE__ */u("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Number of legs",children:D.legOptions.map(e=>Y(e,String(e),e===M,()=>S(e)))}),
414
+ /* @__PURE__ */u(Yl,{className:"blade-sn-in",eyebrow:o?null:"Choose your safety net",iconUrl:Ae(d),gameName:d.game_name,tagline:F.tagline}),
415
+ /* @__PURE__ */u(Hl,{}),
416
+ /* @__PURE__ */m("div",{className:"blade-sn-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:C,borderColor:w.border,boxShadow:`0 10px 24px -20px ${El(N,.7)}`,animationDelay:".06s"},children:[E("Safety net",P.label),
417
+ /* @__PURE__ */u("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Safety net mode",children:F.modes.map(e=>j(e.id,e.label,e.id===P.id,()=>(e=>{const t=F.modes.find(t=>t.id===e);t&&(A(e),g(t.ruleId),t.legOptions.includes(M)||S(t.legOptions.reduce((e,t)=>Math.abs(t-M)<Math.abs(e-M)?t:e,t.legOptions[0])))})(e.id)))}),
418
+ /* @__PURE__ */u("p",{className:"mt-2 text-xs leading-snug sm:text-[13px]",style:{color:w.textMuted},children:P.explain}),
419
+ /* @__PURE__ */m("div",{className:"mt-4",children:[E("Legs",`${M} legs`),
420
+ /* @__PURE__ */u("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Number of legs",children:P.legOptions.map(e=>j(e,String(e),e===M,()=>S(e)))}),
371
421
  /* @__PURE__ */m("div",{className:"mt-2 flex items-baseline justify-between text-[11px] italic",style:{color:w.textMuted},children:[/* @__PURE__ */u("span",{children:"Easier to land"}),/* @__PURE__ */u("span",{children:"Bigger prizes"})]})]}),
372
- /* @__PURE__ */m("div",{className:"mt-4",children:[j("Stake",ht(z)),
373
- /* @__PURE__ */m("div",{className:"relative",children:[/* @__PURE__ */u("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 font-bold",style:{color:w.textMuted},children:"$"}),/* @__PURE__ */u("input",{type:"number",inputMode:"decimal",min:B.minStake,max:B.maxStake??void 0,step:"any",placeholder:"Enter stake","aria-label":"Stake amount",value:z||"",onChange:e=>{if(""===e.target.value)return void P(0);const t=Number(e.target.value);Number.isFinite(t)&&P(T(t))},onFocus:e=>{e.currentTarget.style.borderColor=w.borderFocus??w.primary},onBlur:e=>{e.currentTarget.style.borderColor=w.border},className:"w-full rounded-lg border py-3 pl-8 pr-4 text-lg font-semibold tabular-nums focus:outline-none",style:{borderColor:w.border,color:w.textAlt??w.text,backgroundColor:w.backgroundAlt,fontFamily:k,transition:"border-color .15s ease"}})]}),
374
- /* @__PURE__ */u("div",{className:"mt-2 flex flex-wrap gap-1.5",children:B.quickAdds.map(e=>/* @__PURE__ */m("button",{type:"button",onClick:()=>P(T((z||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:w.border,color:w.textMuted,cursor:"pointer"},children:["+$",e]},e))}),!E&&z>0&&/* @__PURE__ */m("p",{className:"mt-2 text-xs",style:{color:w.error},children:["Minimum stake is ",ht(B.minStake),"."]})]}),
375
- /* @__PURE__ */m("div",{className:"mt-4 border-t pt-3",style:{borderColor:wl(N,.08)},children:[
376
- /* @__PURE__ */m("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:w.textMuted},children:[/* @__PURE__ */u("span",{children:"What you can win"}),/* @__PURE__ */m("span",{children:[ht(z)," returns"]})]}),
377
- /* @__PURE__ */m("div",{className:"mt-1.5 flex flex-col gap-1.5",children:[H.map(e=>/* @__PURE__ */m("div",{className:"flex items-center justify-between gap-3",children:[/* @__PURE__ */u("span",{className:"text-xs sm:text-[13px]",style:{color:w.text},children:e.label}),/* @__PURE__ */u("span",{className:"text-sm font-extrabold tabular-nums sm:text-base",style:{color:w.primary,fontFamily:v},children:ht(Math.round(e.amount))})]},e.label)),/* @__PURE__ */m("div",{className:"mt-1 flex items-center justify-between gap-3 rounded-xl px-3 py-2.5",style:{backgroundColor:w.primary},children:[/* @__PURE__ */m("span",{className:"flex min-w-0 flex-col gap-[2px]",children:[/* @__PURE__ */u("span",{className:"text-sm font-extrabold sm:text-[15px]",style:{color:w.primaryText,fontFamily:v},children:"Clean sweep"}),/* @__PURE__ */u("span",{className:"text-[10px] font-semibold uppercase tracking-[0.06em]",style:{color:w.primaryText,opacity:.75},children:"every leg right — all prizes"})]}),/* @__PURE__ */u("span",{className:"text-xl font-extrabold tabular-nums sm:text-2xl",style:{color:w.primaryText,fontFamily:v},children:ht(Math.round(O.sweep))})]})]}),
422
+ /* @__PURE__ */m("div",{className:"mt-4",children:[E("Stake",vt(z)),
423
+ /* @__PURE__ */m("div",{className:"relative",children:[/* @__PURE__ */u("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 font-bold",style:{color:w.textMuted},children:"$"}),/* @__PURE__ */u("input",{type:"number",inputMode:"decimal",min:F.minStake,max:F.maxStake??void 0,step:"any",placeholder:"Enter stake","aria-label":"Stake amount",value:z||"",onChange:e=>{if(""===e.target.value)return void L(0);const t=Number(e.target.value);Number.isFinite(t)&&L(D(t))},onFocus:e=>{e.currentTarget.style.borderColor=w.borderFocus??w.primary},onBlur:e=>{e.currentTarget.style.borderColor=w.border},className:"w-full rounded-lg border py-3 pl-8 pr-4 text-lg font-semibold tabular-nums focus:outline-none",style:{borderColor:w.border,color:w.textAlt??w.text,backgroundColor:w.backgroundAlt,fontFamily:k,transition:"border-color .15s ease"}})]}),
424
+ /* @__PURE__ */u("div",{className:"mt-2 flex flex-wrap gap-1.5",children:F.quickAdds.map(e=>/* @__PURE__ */m("button",{type:"button",onClick:()=>L(D((z||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:w.border,color:w.textMuted,cursor:"pointer"},children:["+$",e]},e))}),!O&&z>0&&/* @__PURE__ */m("p",{className:"mt-2 text-xs",style:{color:w.error},children:["Minimum stake is ",vt(F.minStake),"."]})]}),
425
+ /* @__PURE__ */m("div",{className:"mt-4 border-t pt-3",style:{borderColor:El(N,.08)},children:[
426
+ /* @__PURE__ */m("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:w.textMuted},children:[/* @__PURE__ */u("span",{children:"What you can win"}),/* @__PURE__ */m("span",{children:[vt(z)," returns"]})]}),
427
+ /* @__PURE__ */m("div",{className:"mt-1.5 flex flex-col gap-1.5",children:[Y.map(e=>/* @__PURE__ */m("div",{className:"flex items-center justify-between gap-3",children:[/* @__PURE__ */u("span",{className:"text-xs sm:text-[13px]",style:{color:w.text},children:e.label}),/* @__PURE__ */u("span",{className:"text-sm font-extrabold tabular-nums sm:text-base",style:{color:w.primary,fontFamily:v},children:vt(Math.round(e.amount))})]},e.label)),/* @__PURE__ */m("div",{className:"mt-1 flex items-center justify-between gap-3 rounded-xl px-3 py-2.5",style:{backgroundColor:w.primary},children:[/* @__PURE__ */m("span",{className:"flex min-w-0 flex-col gap-[2px]",children:[/* @__PURE__ */u("span",{className:"text-sm font-extrabold sm:text-[15px]",style:{color:w.primaryText,fontFamily:v},children:"Clean sweep"}),/* @__PURE__ */u("span",{className:"text-[10px] font-semibold uppercase tracking-[0.06em]",style:{color:w.primaryText,opacity:.75},children:"every leg right — all prizes"})]}),/* @__PURE__ */u("span",{className:"text-xl font-extrabold tabular-nums sm:text-2xl",style:{color:w.primaryText,fontFamily:v},children:vt(Math.round(T.sweep))})]})]}),
378
428
  /* @__PURE__ */u("p",{className:"mt-1.5 text-[11px]",style:{color:w.textMuted},children:"Total returns, stake included."}),
379
- /* @__PURE__ */m("p",{className:"mt-1 text-[11px] italic",style:{color:w.textMuted},children:["Miss ",1===D.allowedMisses?"two":"three"," or more and the ticket does not pay."]})]})]}),
380
- /* @__PURE__ */m("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[/* @__PURE__ */u("div",{className:"blade-sn-in",style:{animationDelay:".13s"},children:/* @__PURE__ */u(Cl,{tile:/* @__PURE__ */u(kl,{iconUrl:Ae(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:()=>{E&&(g(D.ruleId),f(M),h(M-D.allowedMisses),x(z),b(),t?.())}})}),/* @__PURE__ */u("div",{className:"blade-sn-in",style:{animationDelay:".2s"},children:/* @__PURE__ */u(Cl,{tile:/* @__PURE__ */u(kl,{iconUrl:`${ve}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{E&&(g(D.ruleId),h(M-D.allowedMisses),x(z),y(d,M),e?.())}})})]})]})]})}function Hl({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Lo(),l=be(o),a=o.colors;/* @__PURE__ */
381
- return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:a.primary,fontFamily:l},children:"All or nothing"}),/* @__PURE__ */u(qo,{onBack:t,hideActions:n,label:r?.game_name})]})}function Rl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,backLabel:r="Games",className:l=""}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:p,setExpectedCorrect:f,quickPickGame:h,goToSportSelection:x}=Lo(),g=a.colors,y=ye(a);be(a);const b=i(()=>{if(!s)return[];if(s.allowed_propositions&&s.allowed_propositions.length>0)return[...s.allowed_propositions].sort((e,t)=>e-t);const{min:e,max:t}=Ct(s);return Zt(e,t)},[s]),w=gr(s),k=b[0]??0,v=b[b.length-1]??0,[N]=c(()=>null!=d&&b.includes(d)?d:v),F=i(()=>Jn(s,N||void 0),[s,N]);if(!s||0===b.length||"exact"!==F?.kind)/* @__PURE__ */return u("div",{className:l,style:{color:g.textMuted,fontFamily:y},children:"No setup available."});const B=w?["Any yes/no props in the pool",`Pick ${k}–${v} legs — all must land`]:["A clean yes or no on every leg",`All ${N} have to land`],C=w?[`We fill ${N} legs across any markets`,"Straight to the bet slip"]:[`We fill all ${N} legs for you`,"Straight to the bet slip"];/* @__PURE__ */
429
+ /* @__PURE__ */m("p",{className:"mt-1 text-[11px] italic",style:{color:w.textMuted},children:["Miss ",1===P.allowedMisses?"two":"three"," or more and the ticket does not pay."]})]})]}),
430
+ /* @__PURE__ */m("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[/* @__PURE__ */u("div",{className:"blade-sn-in",style:{animationDelay:".13s"},children:/* @__PURE__ */u(Il,{tile:/* @__PURE__ */u(jl,{iconUrl:Ae(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&&(g(P.ruleId),h(M),f(M-P.allowedMisses),x(z),b(),t?.())}})}),/* @__PURE__ */u("div",{className:"blade-sn-in",style:{animationDelay:".2s"},children:/* @__PURE__ */u(Il,{tile:/* @__PURE__ */u(jl,{iconUrl:`${ve}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{O&&(g(P.ruleId),f(M-P.allowedMisses),x(z),y(d,M,z),e?.())}})})]})]})]})}function ja({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=zr(),l=be(o),a=o.colors;/* @__PURE__ */
431
+ return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:a.primary,fontFamily:l},children:"Set your play"}),/* @__PURE__ */u(yl,{onBack:t,hideActions:n,label:r?.game_name})]})}function Ya({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:a=""}){const{theme:s,selectedGame:d,handlePropositionCountChange:p,setExpectedCorrect:h,setBetAmount:f,setSelectedRuleId:x,quickPickGame:g,goToSportSelection:y}=zr(),b=s.colors,w=ye(s),k=be(s),v=R(s),N=V(s),C=K(b.primary,$(s),b.primaryText),F=i(()=>r??wr(d),[r,d]),[B,A]=c(()=>F?.defaultUnit??10),[M,S]=c(fr);if(!d||!hr(d)||!F)/* @__PURE__ */return u("div",{className:a,style:{color:b.textMuted,fontFamily:w},children:"No card available."});const z=xr(B,M,F),L=1*B,P=B>F.unitMin,T=B<F.unitMax,D=e=>A(t=>Math.min(F.unitMax,Math.max(F.unitMin,t+e*F.unitStep))),O=()=>{x(z.ruleId),h(z.lowestWinningCount),f(z.stake)},E=(e,t)=>/* @__PURE__ */m("div",{className:"mb-2 flex items-baseline justify-between",children:[/* @__PURE__ */u("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:b.textMuted},children:e}),/* @__PURE__ */u("span",{className:"text-xs font-semibold tabular-nums",style:{color:v},children:t})]}),j=(e,t,n,o)=>/* @__PURE__ */u("button",{type:"button",onClick:n,disabled:!t,"aria-label":o,className:"h-11 w-11 shrink-0 rounded-xl text-2xl font-extrabold leading-none transition-opacity",style:{backgroundColor:b.primary,color:b.primaryText,border:"none",opacity:t?1:.35,cursor:t?"pointer":"default"},children:e}),Y={golden_point:{sub:`Go for the decider. Double your win to ${vt(B*F.baseMultiple*F.goldenPointFactor)}.`},captains_challenge:{sub:`Collect ${vt(B*F.challengeMultiple)} whenever you land ${F.legs-F.challengeMisses} or ${F.legs} of ${F.legs}. Stacks on a winning slip.`}};/* @__PURE__ */
432
+ return m("div",{className:`blade-sx flex min-h-full w-full flex-col ${a}`,style:{fontFamily:w},children:[
433
+ /* @__PURE__ */u("style",{id:"blade-sx-styles",children:"\n.blade-sx{--e:cubic-bezier(.2,.8,.2,1)}\n.blade-sx-in{opacity:0;animation:blade-sx-in .5s var(--e) both}\n@keyframes blade-sx-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n@media (prefers-reduced-motion:reduce){.blade-sx *{animation:none!important}.blade-sx-in{opacity:1!important}}\n"}),
434
+ /* @__PURE__ */u(Ul,{}),n&&/* @__PURE__ */u(gl,{onBack:n,label:l}),
435
+ /* @__PURE__ */m("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[
436
+ /* @__PURE__ */u(Yl,{className:"blade-sx-in",eyebrow:o?null:"Set your play",iconUrl:Ae(d),gameName:d.game_name,tagline:F.tagline}),
437
+ /* @__PURE__ */u(Hl,{}),
438
+ /* @__PURE__ */m("div",{className:"blade-sx-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 ${El(v,.7)}`,animationDelay:".06s"},children:[
439
+ /* @__PURE__ */m("div",{className:"flex items-center justify-between gap-3 rounded-2xl px-4 py-3.5",style:{backgroundColor:b.primary},children:[/* @__PURE__ */m("span",{className:"flex min-w-0 flex-col",children:[/* @__PURE__ */u("span",{className:"text-[11px] font-semibold",style:{color:b.primaryText,opacity:.72},children:"Total stake"}),/* @__PURE__ */u("span",{className:"text-2xl font-extrabold tabular-nums",style:{color:b.primaryText,fontFamily:k},children:vt(z.stake)})]}),/* @__PURE__ */m("span",{className:"flex min-w-0 flex-col items-end",children:[/* @__PURE__ */u("span",{className:"text-[11px] font-semibold",style:{color:b.primaryText,opacity:.72},children:"To win"}),/* @__PURE__ */m("span",{className:"flex items-baseline gap-1.5",children:[/* @__PURE__ */u("span",{className:"text-[26px] font-extrabold leading-none tabular-nums",style:{color:C,fontFamily:k},children:vt(z.base)}),z.challenge>0&&/* @__PURE__ */m("span",{className:"rounded-md px-1.5 py-0.5 text-[11px] font-extrabold tabular-nums",style:{backgroundColor:C,color:v},children:["+",vt(z.challenge)]})]})]})]}),
440
+ /* @__PURE__ */m("div",{className:"mt-3",children:[E("Your stake",`steps of ${vt(F.unitStep)}`),/* @__PURE__ */m("div",{className:"flex items-center gap-3",children:[j("−",P,()=>D(-1),"Lower stake"),
441
+ /* @__PURE__ */m("div",{className:"flex-1 text-center",children:[/* @__PURE__ */u("div",{className:"text-2xl font-extrabold tabular-nums",style:{color:v,fontFamily:k},children:vt(B)}),/* @__PURE__ */u("div",{className:"text-[10px] font-bold uppercase tracking-[0.08em]",style:{color:b.textMuted},children:"per play"})]}),j("+",T,()=>D(1),"Raise stake")]})]}),
442
+ /* @__PURE__ */u("p",{className:"mt-2 min-h-[16px] text-center text-[11px] font-bold",style:{color:b.primary},children:z.challenge>0?`Captain's Challenge pays ${vt(z.challenge)} on ${F.legs-F.challengeMisses} or ${F.legs} of ${F.legs}.`:""}),
443
+ /* @__PURE__ */m("div",{className:"mt-4",children:[E("Boost your card",`${vt(L)} each`),/* @__PURE__ */u("div",{className:"flex flex-col gap-2",children:F.boosts.map(e=>{const t=M[e.id];/* @__PURE__ */
444
+ return m("button",{type:"button",role:"switch","aria-checked":t,onClick:()=>{return t=e.id,S(e=>({...e,[t]:!e[t]}));var t},className:"flex w-full items-center gap-3 rounded-2xl border px-3 py-3 text-left transition-colors",style:{backgroundColor:t?El(b.primary,.08):"transparent",borderColor:t?b.primary:b.border,cursor:"pointer"},children:[/* @__PURE__ */m("span",{className:"min-w-0 flex-1",children:[/* @__PURE__ */m("span",{className:"flex items-center gap-2",children:[/* @__PURE__ */u("span",{className:"text-sm font-extrabold sm:text-[15px]",style:{color:v,fontFamily:k},children:e.label}),/* @__PURE__ */m("span",{className:"rounded-md px-1.5 py-0.5 text-[10px] font-extrabold tabular-nums",style:{backgroundColor:El(b.primary,.12),color:b.primary},children:["+",vt(L*e.costUnits)]})]}),/* @__PURE__ */u("span",{className:"mt-1 block text-[11px] leading-snug sm:text-xs",style:{color:b.textMuted},children:Y[e.id].sub})]}),/* @__PURE__ */u("span",{className:"relative h-7 w-12 shrink-0 rounded-full transition-colors",style:{backgroundColor:t?b.primary:b.border},"aria-hidden":!0,children:/* @__PURE__ */u("span",{className:"absolute top-[3px] h-[22px] w-[22px] rounded-full transition-transform",style:{left:3,backgroundColor:b.background,transform:t?"translateX(20px)":"none"}})})]},e.id)})})]})]}),
445
+ /* @__PURE__ */m("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[/* @__PURE__ */u("div",{className:"blade-sx-in",style:{animationDelay:".13s"},children:/* @__PURE__ */u(Il,{tile:/* @__PURE__ */u(jl,{iconUrl:Ae(d),size:60}),label:`Pick my ${F.legs}`,stat:"Your calls",detail:["A clean yes or no on every call","You read the games, you make the calls"],onSelect:()=>{O(),p(F.legs),y(),t?.()}})}),/* @__PURE__ */u("div",{className:"blade-sx-in",style:{animationDelay:".2s"},children:/* @__PURE__ */u(Il,{tile:/* @__PURE__ */u(jl,{iconUrl:`${ve}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${F.legs} calls for you`,"Straight to the bet slip"],onSelect:()=>{O(),g(d,F.legs,z.stake),e?.()}})})]})]})]})}function Ha({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=zr(),l=be(o),a=o.colors;/* @__PURE__ */
446
+ return m("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:a.primary,fontFamily:l},children:"All or nothing"}),/* @__PURE__ */u(yl,{onBack:t,hideActions:n,label:r?.game_name})]})}function Ra({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,backLabel:r="Games",className:l=""}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:p,setExpectedCorrect:h,quickPickGame:f,goToSportSelection:x}=zr(),g=a.colors,y=ye(a);be(a);const b=i(()=>{if(!s)return[];if(s.allowed_propositions&&s.allowed_propositions.length>0)return[...s.allowed_propositions].sort((e,t)=>e-t);const{min:e,max:t}=Tt(s);return tn(e,t)},[s]),w=Nr(s),k=b[0]??0,v=b[b.length-1]??0,[N]=c(()=>null!=d&&b.includes(d)?d:v),C=i(()=>io(s,N||void 0),[s,N]);if(!s||0===b.length||"exact"!==C?.kind)/* @__PURE__ */return u("div",{className:l,style:{color:g.textMuted,fontFamily:y},children:"No setup available."});const F=w?["Any yes/no props in the pool",`Pick ${k}–${v} legs — all must land`]:["A clean yes or no on every leg",`All ${N} have to land`],B=w?[`We fill ${N} legs across any markets`,"Straight to the bet slip"]:[`We fill all ${N} legs for you`,"Straight to the bet slip"];/* @__PURE__ */
382
447
  return m("div",{className:`blade-pp flex min-h-full w-full flex-col ${l}`,style:{fontFamily:y},children:[
383
448
  /* @__PURE__ */u("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"}),
384
- /* @__PURE__ */u(Al,{}),n&&/* @__PURE__ */u($o,{onBack:n,label:r}),
385
- /* @__PURE__ */m("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[/* @__PURE__ */u(vl,{className:"blade-pp-in",eyebrow:o?null:F.title,iconUrl:Ae(s),gameName:s.game_name,tagline:F.heroTagline}),/* @__PURE__ */m("div",{className:"grid gap-3 sm:grid-cols-2",children:[/* @__PURE__ */u("div",{className:"blade-pp-in",style:{animationDelay:".13s"},children:/* @__PURE__ */u(Cl,{tile:/* @__PURE__ */u(kl,{iconUrl:Ae(s),size:60}),label:"Pick my own",stat:"Your calls",detail:B,onSelect:()=>{w||(p(N),f(N)),x(),t?.()}})}),/* @__PURE__ */u("div",{className:"blade-pp-in",style:{animationDelay:".2s"},children:/* @__PURE__ */u(Cl,{tile:/* @__PURE__ */u(kl,{iconUrl:`${ve}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:C,onSelect:()=>{f(N),h(s,N),e?.()}})})]})]})]})}function Gl({onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r="Games",className:l=""}){const{theme:a,selectedGame:i,goToSportSelection:s,bodyFont:c}=Lo(),d={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r,className:l};switch(hr(i)){case"game_set":/* @__PURE__ */return u(Sl,{...d});case"pick_your_dividend":/* @__PURE__ */return u(Ll,{...d});case"ladder":/* @__PURE__ */return u(Dl,{...d});case"mirror":/* @__PURE__ */return u(El,{...d});case"safety_net":/* @__PURE__ */return u(Yl,{...d});case"rule_setup":return"exact"===Jn(i)?.kind?/* @__PURE__ */u(Rl,{...d}):/* @__PURE__ */u(bl,{onBack:n,hideTitle:o,backLabel:r,className:l,onContinue:()=>{s(),e?.()}});default:/* @__PURE__ */return u("div",{className:l,style:{color:a.colors.textMuted,fontFamily:c},children:"No setup required — this game goes straight to picks."})}}function Wl({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0,className:l}){const{theme:a}=Lo(),i=L(a),s=E(a),c=a.colors.primaryHover??function(e){const t=/^#([0-9a-f]{6})$/i.exec(e?.trim()??"");if(!t)return e;const n=parseInt(t[1],16);return`rgba(${n>>16&255}, ${n>>8&255}, ${255&n}, 0.7)`}(i),d=be(a)??"Manrope, Poppins, sans-serif",p=n&&n.length>0?n:t.split(/\s+/),f=.72*o,h=.5*o,x=Math.min(.62*o/p.length,.3*o);/* @__PURE__ */
449
+ /* @__PURE__ */u(Ul,{}),n&&/* @__PURE__ */u(gl,{onBack:n,label:r}),
450
+ /* @__PURE__ */m("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[
451
+ /* @__PURE__ */u(Yl,{className:"blade-pp-in",eyebrow:o?null:C.title,iconUrl:Ae(s),gameName:s.game_name,tagline:C.heroTagline}),
452
+ /* @__PURE__ */u(Hl,{}),
453
+ /* @__PURE__ */m("div",{className:"grid gap-3 sm:grid-cols-2",children:[/* @__PURE__ */u("div",{className:"blade-pp-in",style:{animationDelay:".13s"},children:/* @__PURE__ */u(Il,{tile:/* @__PURE__ */u(jl,{iconUrl:Ae(s),size:60}),label:"Pick my own",stat:"Your calls",detail:F,onSelect:()=>{w||(p(N),h(N)),x(),t?.()}})}),/* @__PURE__ */u("div",{className:"blade-pp-in",style:{animationDelay:".2s"},children:/* @__PURE__ */u(Il,{tile:/* @__PURE__ */u(jl,{iconUrl:`${ve}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:B,onSelect:()=>{h(N),f(s,N),e?.()}})})]})]})]})}function Ga({onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r="Games",className:l=""}){const{theme:a,selectedGame:i,goToSportSelection:s,bodyFont:c}=zr(),d={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r,className:l};switch(kr(i)){case"game_set":/* @__PURE__ */return u(Ba,{...d});case"pick_your_dividend":/* @__PURE__ */return u(Ma,{...d});case"ladder":/* @__PURE__ */return u(za,{...d});case"mirror":/* @__PURE__ */return u(Da,{...d});case"safety_net":/* @__PURE__ */return u(Ea,{...d});case"six_again":/* @__PURE__ */return u(Ya,{...d});case"rule_setup":return"exact"===io(i)?.kind?/* @__PURE__ */u(Ra,{...d}):/* @__PURE__ */u(Ca,{onBack:n,hideTitle:o,backLabel:r,className:l,onContinue:()=>{s(),e?.()}});default:/* @__PURE__ */return u("div",{className:l,style:{color:a.colors.textMuted,fontFamily:c},children:"No setup required — this game goes straight to picks."})}}function Wa({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0,className:l}){const{theme:a}=zr(),i=R(a),s=$(a),c=a.colors.primaryHover??function(e){const t=/^#([0-9a-f]{6})$/i.exec(e?.trim()??"");if(!t)return e;const n=parseInt(t[1],16);return`rgba(${n>>16&255}, ${n>>8&255}, ${255&n}, 0.7)`}(i),d=be(a)??"Manrope, Poppins, sans-serif",p=n&&n.length>0?n:t.split(/\s+/),h=.72*o,f=.5*o,x=Math.min(.62*o/p.length,.3*o);/* @__PURE__ */
386
454
  return m("span",{role:"img","aria-label":`YESNO ${t}`,className:l,style:{display:"inline-flex",alignItems:"center",gap:.22*o,fontFamily:d,color:i},children:[
387
- /* @__PURE__ */u(Qt,{iconUrl:e,width:f,height:f,iconColor:i,accentColor:s,ariaLabel:""}),
388
- /* @__PURE__ */m("span",{"aria-hidden":!0,style:{fontSize:h,letterSpacing:.045*-h,lineHeight:1,whiteSpace:"nowrap"},children:[/* @__PURE__ */u("span",{style:{fontWeight:800},children:"YES"}),/* @__PURE__ */u("span",{style:{fontWeight:600},children:"NO"})]}),
455
+ /* @__PURE__ */u(an,{iconUrl:e,width:h,height:h,iconColor:i,accentColor:s,ariaLabel:""}),
456
+ /* @__PURE__ */m("span",{"aria-hidden":!0,style:{fontSize:f,letterSpacing:.045*-f,lineHeight:1,whiteSpace:"nowrap"},children:[/* @__PURE__ */u("span",{style:{fontWeight:800},children:"YES"}),/* @__PURE__ */u("span",{style:{fontWeight:600},children:"NO"})]}),
389
457
  /* @__PURE__ */u("span",{"aria-hidden":!0,style:{width:Math.max(2,Math.round(.045*o)),height:.78*o,backgroundColor:c,flexShrink:0}}),
390
- /* @__PURE__ */u("span",{"aria-hidden":!0,style:{display:"inline-flex",flexDirection:"column",fontSize:x,fontWeight:500,letterSpacing:.012*-x,lineHeight:1.14,textAlign:"left"},children:p.map((e,t)=>/* @__PURE__ */m("span",{style:{whiteSpace:"nowrap"},children:[e,r&&t===p.length-1&&/* @__PURE__ */u("sup",{style:{fontSize:.36*x,fontWeight:500,marginLeft:1},children:"™"})]},`${e}-${t}`))})]})}export{fo as BladeApiClient,Wl as BrandLockup,$e as CategoryIcon,Gr as CategoryPickerPage,Rr as CategoryPickerPageActions,Hr as CategoryPickerPageTitle,Ve as ChevronRightIcon,tl as ConfirmPage,el as ConfirmPageActions,_r as ConfirmPageTitle,Tn as DOUBLE_SHOT_MIN_LEGS,On as EXTRA_SHOT_MIN_LEGS,al as EntriesPage,ll as EntriesPageTitle,Ro as EntrySubmission,Ko as EventFilterBanner,Ur as EventPickerPage,Qe as FilterChipCarousel,Je as FilterChipRow,Mn as GAME_TIER_LEVEL,Sn as GAME_TIER_TABS,Io as GameEntries,Tr as GameLogo,kr as GamePage,wr as GamePageActions,br as GamePageTitle,po as GameSelector,Sl as GameSetBetPage,Ml as GameSetBetPageTitle,Gl as GameSetupPage,Ke as HowToPlayButton,Ue as HowToPlayModal,Ie as HowToPlayPanel,nr as LADDER_FAMILY,er as LADDER_REFERENCE_BET,tr as LADDER_STAKES,Dl as LadderPage,Pl as LadderPageTitle,Xe as LockIcon,cr as MIRROR_STANDARD_MARGIN,z as MarkdownContent,El as MirrorPage,Tl as MirrorPageTitle,to as PYD_LEG_RUNGS,eo as PYD_RETAIL_DIVIDENDS,Go as PayoutCircles,Rl as PerfectPickPage,Hl as PerfectPickPageTitle,Ll as PickYourDividendPage,zl as PickYourDividendPageTitle,Po as PlaceEntryProvider,Do as QuickPickButton,bl as RuleSetupPage,yl as RuleSetupPageActions,gl as RuleSetupPageTitle,Yl as SafetyNetPage,jl as SafetyNetPageTitle,Ho as SelectionReview,Vr as SelectionsPage,$r as SelectionsPageActions,Zr as SelectionsPageTitle,Yr as SportPickerPage,jr as SportPickerPageActions,Er as SportPickerPageTitle,rl as SuccessPage,ol as SuccessPageActions,nl as SuccessPageTitle,Pr as SwipeCard,Dr as SwipeCardFace,Or as SwipeDeck,vr as VISIBLE_DEPTH,Ze as YesNoCategoryLabel,we as applyTheme,Pn as availableGameTierTabs,It as contrastTextColour,q as darkTheme,Dn as defaultGameTierId,Z as defaultTheme,ee as defaultThemeSet,Ln as filterGamesByTierLevel,Cn as filterPropositionsToEvent,ht as formatCurrency,xt as formatDate,gn as formatSameGameMultiEventLabel,ar as fullStackPrize,_n as gameNeedsRuleSetup,Jo as gameSetPrize,yr as getConfirmBoostCopy,hr as getGameFlow,_o as getGameSetBetConfig,At as getJackpotInfo,sr as getLadderConfig,fr as getMirrorConfig,ao as getPickYourDividendConfig,wn as getPropositionEventId,Jn as getRuleSetupConfig,qn as getSafetyNetConfig,Hn as getSafetyNetPricing,Mt as getSportDisplayName,re as getTheme,le as getThemeSet,Q as goldLightTheme,V as goldTheme,ne as goldThemeSet,X as greenLightTheme,$ as greenTheme,te as greenThemeSet,gt as groupPropositionsBySport,kn as groupSameGameMultiEvents,xr as isFixedCardExactGame,Qo as isGameSetBetGame,or as isLadderGame,mr as isMirrorGame,gr as isOpenExactMultiGame,no as isPickYourDividendGame,Yn as isSafetyNetGame,bn as isSameGameMultiGame,Bn as isSelectableSameGameMultiProposition,K as isThemeSet,Bt as isValidSelectionCount,ir as ladderCollectAt,lr as ladderTiers,pr as mirrorPrize,An as propositionsBelongToEvent,lo as pydLadder,ro as pydRung,zt as resolveCategoryDisplayName,zn as resolveGameTierLevel,mt as resolvePrice,St as resolveSportDisplayName,U as resolveTheme,Rn as roundDividendAmount,In as safetyNetCollect,Wn as safetyNetTicket,E as themeAccent,ye as themeBodyFont,L as themeHeading,be as themeHeadingFont,P as themeLabel,ie as themeSets,Y as themeTextAlt,H as themeTextAltMuted,D as themeValue,ae as themes,ke as useBladeTheme,No as useCalculatePayout,wo as useCreateGameEntry,Fo as useEntryPreview,vo as useEvaluateRule,yo as useGameEntries,bo as useGameMaxPayouts,ho as useGames,Lo as usePlaceEntry,ko as usePlaceEntryFlow,xo as usePropositions,se as useResolvedTheme,go as useSports,Fr as useSwipeDeck};
458
+ /* @__PURE__ */u("span",{"aria-hidden":!0,style:{display:"inline-flex",flexDirection:"column",fontSize:x,fontWeight:500,letterSpacing:.012*-x,lineHeight:1.14,textAlign:"left"},children:p.map((e,t)=>/* @__PURE__ */m("span",{style:{whiteSpace:"nowrap"},children:[e,r&&t===p.length-1&&/* @__PURE__ */u("sup",{style:{fontSize:.36*x,fontWeight:500,marginLeft:1},children:"™"})]},`${e}-${t}`))})]})}export{Ao as BladeApiClient,Wa as BrandLockup,mr as CHALLENGE_MISSES,ur as CHALLENGE_MULTIPLE,Qe as CategoryIcon,Cl as CategoryPickerPage,Nl as CategoryPickerPageActions,vl as CategoryPickerPageTitle,_e as ChevronRightIcon,oa as ConfirmPage,na as ConfirmPageActions,ta as ConfirmPageTitle,Un as DOUBLE_SHOT_MIN_LEGS,In as EXTRA_SHOT_MIN_LEGS,sa as EntriesPage,ia as EntriesPageTitle,dl as EntrySubmission,fl as EventFilterBanner,Al as EventPickerPage,Kr as EventSwipeModal,ot as FilterChipCarousel,rt as FilterChipRow,jn as GAME_TIER_LEVEL,Yn as GAME_TIER_TABS,pr as GOLDEN_POINT_FACTOR,pl as GameEntries,Ll as GameLogo,kl as GamePage,wl as GamePageActions,bl as GamePageTitle,vo as GameSelector,Ba as GameSetBetPage,Fa as GameSetBetPageTitle,Ga as GameSetupPage,Ve as HowToPlayButton,qe as HowToPlayModal,Ze as HowToPlayPanel,$o as LADDER_FAMILY,Io as LADDER_REFERENCE_BET,Uo as LADDER_STAKES,za as LadderPage,Sa as LadderPageTitle,et as LockIcon,Jo as MIRROR_STANDARD_MARGIN,z as MarkdownContent,Da as MirrorPage,Ta as MirrorPageTitle,fr as NO_BOOSTS,uo as PYD_LEG_RUNGS,co as PYD_RETAIL_DIVIDENDS,ul as PayoutCircles,Ra as PerfectPickPage,Ha as PerfectPickPageTitle,Ma as PickYourDividendPage,Aa as PickYourDividendPageTitle,Lr as PlaceEntryProvider,Pr as QuickPickButton,Ca as RuleSetupPage,Na as RuleSetupPageActions,va as RuleSetupPageTitle,Zr as SELECTION_VARIANTS,dr as SIX_AGAIN_LEGS,cr as SIX_AGAIN_MARGIN,Ea as SafetyNetPage,Oa as SafetyNetPageTitle,nt as ScrollShelf,cl as SelectionReview,tl as SelectionVariantList,Ql as SelectionsPage,Vl as SelectionsPageActions,Zl as SelectionsPageTitle,Ya as SixAgainPage,ja as SixAgainPageTitle,ua as SportPickerPage,da as SportPickerPageActions,ca as SportPickerPageTitle,Ol as SportRail,tt as StarIcon,aa as SuccessPage,la as SuccessPageActions,ra as SuccessPageTitle,Ir as SwipeCard,Ur as SwipeCardFace,$r as SwipeDeck,Tr as VISIBLE_DEPTH,Xe as YesNoCategoryLabel,we as applyTheme,Gn as availableGameTierTabs,Jt as contrastTextColour,oe as darkTheme,Wn as defaultGameTierId,te as defaultTheme,ce as defaultThemeSet,Rn as filterGamesByTierLevel,On as filterPropositionsToEvent,vt as formatCurrency,Nt as formatDate,Bn as formatSameGameMultiEventLabel,Vo as fullStackPrize,so as gameNeedsRuleSetup,Go as gameSetPrize,Cr as getConfirmBoostCopy,kr as getGameFlow,Wo as getGameSetBetConfig,Dt as getJackpotInfo,Qo as getLadderConfig,lr as getMirrorConfig,xo as getPickYourDividendConfig,Sn as getPropositionEventId,io as getRuleSetupConfig,oo as getSafetyNetConfig,qn as getSafetyNetPricing,wr as getSixAgainConfig,Et as getSportDisplayName,pe as getTheme,he as getThemeSet,ae as goldLightTheme,re as goldTheme,ue as goldThemeSet,le as greenLightTheme,ne as greenTheme,de as greenThemeSet,Ct as groupPropositionsBySport,zn as groupSameGameMultiEvents,_r as groupSelectionDays,vr as isFixedCardExactGame,Ro as isGameSetBetGame,Ko as isLadderGame,or as isMirrorGame,Nr as isOpenExactMultiGame,mo as isPickYourDividendGame,Zn as isSafetyNetGame,Mn as isSameGameMultiGame,Dn as isSelectableSameGameMultiProposition,hr as isSixAgainGame,ee as isThemeSet,Pt as isValidSelectionCount,Xo as ladderCollectAt,qo as ladderTiers,rr as mirrorPrize,En as propositionsBelongToEvent,fo as pydLadder,ho as pydRung,Yt as resolveCategoryDisplayName,Hn as resolveGameTierLevel,bt as resolvePrice,jt as resolveSportDisplayName,_ as resolveTheme,Vn as roundDividendAmount,Jn as safetyNetCollect,Qn as safetyNetTicket,gr as sixAgainRuleId,yr as sixAgainStakeMultiples,xr as sixAgainTicket,$ as themeAccent,ye as themeBodyFont,R as themeHeading,be as themeHeadingFont,G as themeLabel,xe as themeSets,Z as themeTextAlt,q as themeTextAltMuted,W as themeValue,fe as themes,ke as useBladeTheme,Eo as useCalculatePayout,To as useCreateGameEntry,jo as useEntryPreview,Oo as useEvaluateRule,Lo as useGameEntries,Po as useGameMaxPayouts,Mo as useGames,zr as usePlaceEntry,Do as usePlaceEntryFlow,So as usePropositions,ge as useResolvedTheme,zo as useSports,Or as useSwipeDeck};