@simple-parlay/components 1.29.0

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 (127) hide show
  1. package/LICENSE +71 -0
  2. package/README.md +196 -0
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.js +1 -0
  5. package/dist/index.mjs +325 -0
  6. package/dist/react/components/BrandLockup.d.ts +18 -0
  7. package/dist/react/components/BrandLogo.d.ts +17 -0
  8. package/dist/react/components/CategoryPickerPage.d.ts +22 -0
  9. package/dist/react/components/ConfirmPage.d.ts +23 -0
  10. package/dist/react/components/EntriesPage.d.ts +19 -0
  11. package/dist/react/components/EntrySubmission.d.ts +2 -0
  12. package/dist/react/components/EventFilterBanner.d.ts +4 -0
  13. package/dist/react/components/EventPickerPage.d.ts +5 -0
  14. package/dist/react/components/GameEntries.d.ts +2 -0
  15. package/dist/react/components/GameLogo.d.ts +10 -0
  16. package/dist/react/components/GameModeCard.d.ts +34 -0
  17. package/dist/react/components/GamePage.d.ts +36 -0
  18. package/dist/react/components/GameSelector.d.ts +2 -0
  19. package/dist/react/components/GameSetBetPage.d.ts +21 -0
  20. package/dist/react/components/GameSetupPage.d.ts +27 -0
  21. package/dist/react/components/HowToPlayButton.d.ts +28 -0
  22. package/dist/react/components/HowToPlayPropsTable.d.ts +6 -0
  23. package/dist/react/components/HtmlContent.d.ts +5 -0
  24. package/dist/react/components/IconSvg.d.ts +11 -0
  25. package/dist/react/components/LadderPage.d.ts +21 -0
  26. package/dist/react/components/LoadingIndicators.d.ts +67 -0
  27. package/dist/react/components/MarkdownContent.d.ts +13 -0
  28. package/dist/react/components/MirrorPage.d.ts +21 -0
  29. package/dist/react/components/MultiLegTable.d.ts +40 -0
  30. package/dist/react/components/PageBackButton.d.ts +13 -0
  31. package/dist/react/components/PayoutCircles.d.ts +15 -0
  32. package/dist/react/components/PerfectPickPage.d.ts +22 -0
  33. package/dist/react/components/PickYourDividendPage.d.ts +21 -0
  34. package/dist/react/components/PickerBrand.d.ts +19 -0
  35. package/dist/react/components/PlaceEntryProvider.d.ts +137 -0
  36. package/dist/react/components/PressToPlayTile.d.ts +14 -0
  37. package/dist/react/components/QuickPickButton.d.ts +11 -0
  38. package/dist/react/components/QuickPickMenu.d.ts +17 -0
  39. package/dist/react/components/RuleSetupPage.d.ts +27 -0
  40. package/dist/react/components/SelectionReview.d.ts +2 -0
  41. package/dist/react/components/SelectionsPage.d.ts +25 -0
  42. package/dist/react/components/SportPickerPage.d.ts +27 -0
  43. package/dist/react/components/SportSelector.d.ts +2 -0
  44. package/dist/react/components/SuccessPage.d.ts +27 -0
  45. package/dist/react/components/_primitives/index.d.ts +91 -0
  46. package/dist/react/hooks/index.d.ts +1 -0
  47. package/dist/react/index.d.ts +74 -0
  48. package/dist/react/index.js +1 -0
  49. package/dist/react/index.mjs +325 -0
  50. package/dist/react/types/index.d.ts +8 -0
  51. package/dist/react/utils/api-client.d.ts +2 -0
  52. package/dist/react/utils/design.d.ts +55 -0
  53. package/dist/react/utils/dummy-data.d.ts +1 -0
  54. package/dist/react/utils/index.d.ts +2 -0
  55. package/dist/react/utils/themes.d.ts +13 -0
  56. package/dist/react-native/components/BrandLockup.d.ts +17 -0
  57. package/dist/react-native/components/BrandLogo.d.ts +16 -0
  58. package/dist/react-native/components/CategoryPickerPage.d.ts +17 -0
  59. package/dist/react-native/components/ConfirmPage.d.ts +19 -0
  60. package/dist/react-native/components/EntriesPage.d.ts +14 -0
  61. package/dist/react-native/components/EntrySubmission.d.ts +2 -0
  62. package/dist/react-native/components/EventFilterBanner.d.ts +4 -0
  63. package/dist/react-native/components/EventPickerPage.d.ts +4 -0
  64. package/dist/react-native/components/GameEntries.d.ts +2 -0
  65. package/dist/react-native/components/GameLogo.d.ts +9 -0
  66. package/dist/react-native/components/GameModeCard.d.ts +33 -0
  67. package/dist/react-native/components/GamePage.d.ts +33 -0
  68. package/dist/react-native/components/GameSelector.d.ts +2 -0
  69. package/dist/react-native/components/GameSetBetPage.d.ts +19 -0
  70. package/dist/react-native/components/GameSetupPage.d.ts +26 -0
  71. package/dist/react-native/components/HowToPlayButton.d.ts +17 -0
  72. package/dist/react-native/components/IconSvg.d.ts +9 -0
  73. package/dist/react-native/components/LadderPage.d.ts +19 -0
  74. package/dist/react-native/components/LoadingIndicators.d.ts +62 -0
  75. package/dist/react-native/components/MirrorPage.d.ts +19 -0
  76. package/dist/react-native/components/MultiLegTable.d.ts +37 -0
  77. package/dist/react-native/components/NativeMenuOverlay.d.ts +32 -0
  78. package/dist/react-native/components/PageBackButton.d.ts +25 -0
  79. package/dist/react-native/components/PayoutCircles.d.ts +14 -0
  80. package/dist/react-native/components/PerfectPickPage.d.ts +20 -0
  81. package/dist/react-native/components/PickYourDividendPage.d.ts +19 -0
  82. package/dist/react-native/components/PickerBrand.d.ts +18 -0
  83. package/dist/react-native/components/PlaceEntryProvider.d.ts +129 -0
  84. package/dist/react-native/components/PressToPlayTile.d.ts +13 -0
  85. package/dist/react-native/components/QuickPickButton.d.ts +11 -0
  86. package/dist/react-native/components/QuickPickMenu.d.ts +17 -0
  87. package/dist/react-native/components/RuleSetupPage.d.ts +23 -0
  88. package/dist/react-native/components/SelectionReview.d.ts +2 -0
  89. package/dist/react-native/components/SelectionsPage.d.ts +22 -0
  90. package/dist/react-native/components/SportPickerPage.d.ts +20 -0
  91. package/dist/react-native/components/SportSelector.d.ts +2 -0
  92. package/dist/react-native/components/SuccessPage.d.ts +24 -0
  93. package/dist/react-native/components/_primitives/index.d.ts +93 -0
  94. package/dist/react-native/hooks/index.d.ts +1 -0
  95. package/dist/react-native/index.d.ts +72 -0
  96. package/dist/react-native/index.js +1 -0
  97. package/dist/react-native/index.mjs +334 -0
  98. package/dist/react-native/types/index.d.ts +1 -0
  99. package/dist/react-native/utils/api-client.d.ts +2 -0
  100. package/dist/react-native/utils/dummy-data.d.ts +1 -0
  101. package/dist/react-native/utils/index.d.ts +2 -0
  102. package/dist/react-native/utils/themes.d.ts +5 -0
  103. package/dist/shared/api-client.d.ts +73 -0
  104. package/dist/shared/composite.d.ts +44 -0
  105. package/dist/shared/date-filters.d.ts +25 -0
  106. package/dist/shared/dummy-data.d.ts +9 -0
  107. package/dist/shared/game-flow.d.ts +39 -0
  108. package/dist/shared/game-icons.d.ts +10 -0
  109. package/dist/shared/game-set-bet.d.ts +48 -0
  110. package/dist/shared/game-tiers.d.ts +23 -0
  111. package/dist/shared/hooks.d.ts +100 -0
  112. package/dist/shared/how-to-play-html.d.ts +12 -0
  113. package/dist/shared/how-to-play-logo.d.ts +2 -0
  114. package/dist/shared/how-to-play-props-table.d.ts +21 -0
  115. package/dist/shared/how-to-play-styles.d.ts +2 -0
  116. package/dist/shared/ladder.d.ts +53 -0
  117. package/dist/shared/markdown.d.ts +24 -0
  118. package/dist/shared/mirror.d.ts +66 -0
  119. package/dist/shared/pick-your-dividend.d.ts +59 -0
  120. package/dist/shared/picker-brand.d.ts +11 -0
  121. package/dist/shared/rule-setup.d.ts +75 -0
  122. package/dist/shared/same-game-multi.d.ts +22 -0
  123. package/dist/shared/themes.d.ts +164 -0
  124. package/dist/shared/tokens.d.ts +64 -0
  125. package/dist/shared/types.d.ts +397 -0
  126. package/dist/shared/utils.d.ts +118 -0
  127. package/package.json +101 -0
package/dist/index.mjs ADDED
@@ -0,0 +1,325 @@
1
+ import e,{createContext as t,forwardRef as n,useCallback as o,useContext as r,useEffect as l,useLayoutEffect as i,useMemo as s,useRef as a,useState as c}from"react";import{Fragment as d,jsx as m,jsxs as u}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 b(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 y=/^<(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=b(t);return!!y.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();return t?v(t)?t:`<!DOCTYPE html>\n<html lang="en-AU">\n<head>\n<meta charset="UTF-8">\n<meta name="viewport" content="width=device-width, initial-scale=1.0">\n<title>YES NO - How to Play</title>\n<style>${g}</style>\n</head>\n<body>\n<main class="page">\n${n=function(e){return/<table\s+class=["']props["']/i.test(e)?e:function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=0;for(;o<t.length;){const e=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=[],i=()=>{0!==l.length&&(o+=x([...l]),l.length=0)};for(;null!==(n=t.exec(e));){o+=e.slice(r,n.index);const s=n[1].replace(/<br\s*\/?>/gi,"\n").trim().split("\n").map(e=>e.trim()).filter(Boolean).map(e=>h(e));s.length>0&&s.every(e=>null!==e)?l.push(...s):(i(),o+=n[0]),r=t.lastIndex}return i(),o+=e.slice(r),o}(e))}(function(e){const t=b(e),n=t.match(/^<main[^>]*>([\s\S]*)<\/main>$/i);return n?n[1].trim():t}(t)),/class=["']logo["']/i.test(n)?n:/<div class=["']masthead["']>/i.test(n)?n.replace(/(<div class=["']masthead["']>)/i,'$1\n <img class="logo" src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%202400%20500%22%20width%3D%222400%22%20height%3D%22500%22%3E%0A%20%20%3Ctitle%3EYESNO%20Multi%20Logo%20%E2%80%94%20Horizontal%20Master%3C%2Ftitle%3E%0A%20%20%3Cdesc%3EYESNO%20Multi%20master%20logo.%20Horizontal%20pipe%20lockup%3A%20YESNO%20wordmark%2C%20stacked%20tile%20icon%2C%20pipe%20divider%2C%20Multi%20extension%2C%20TM.%3C%2Fdesc%3E%0A%0A%20%20%3C!--%20YESNO%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAA68AAADMCAYAAACcEJWAAABCUUlEQVR4nO3dd7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9wK3ALcDNxadWPueypeRUREhsn5MBJYHVijuqxZfX0bNkf%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%2CiVBORw0KGgoAAAANSUhEUgAAAlkAAADMC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%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" />'):n}\n</main>\n</body>\n</html>`:"";var n}function F({content:e,className:t=""}){const n=N(e);return n?/* @__PURE__ */m("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(e){const t=[],n=/\*\*(.+?)\*\*/g;let o,r=0;for(;null!==(o=n.exec(e));)o.index>r&&t.push({text:e.slice(r,o.index),bold:!1}),t.push({text:o[1],bold:!0}),r=o.index+o[0].length;return r<e.length&&t.push({text:e.slice(r),bold:!1}),0===t.length&&t.push({text:e,bold:!1}),t}function S({rows:e,className:t=""}){return 0===e.length?null:/* @__PURE__ */m("table",{className:`w-full border-collapse my-2 ${t}`,style:{fontSize:15},children:/* @__PURE__ */m("tbody",{children:e.map((e,t)=>/* @__PURE__ */u("tr",{children:[
2
+ /* @__PURE__ */m("td",{className:"align-middle",style:{width:"64%",backgroundColor:"#F9FAFB",border:`1px solid ${f}`,padding:"11px 14px"},children:e.question}),
3
+ /* @__PURE__ */m("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__ */m("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 L({text:e,colors:t,bodyFont:n}){/* @__PURE__ */
5
+ return m(d,{children:M(e).map((e,o)=>/* @__PURE__ */m("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=[]},i=()=>{r.length>0&&(n.push({type:"list",items:[...r]}),r=[])};for(const s of t){const e=s.trim();if(!e){i(),l();continue}const t=e.match(B);if(t){i(),l(),n.push({type:"heading",level:Math.min(t[1].length,3),text:t[2].trim()});continue}if(A.test(e)){i(),l(),n.push({type:"hr"});continue}const a=e.match(C);a?(l(),r.push(a[1].trim())):(i(),o.push(e))}return i(),l(),n}(e);/* @__PURE__ */
6
+ return m("div",{className:`flex flex-col gap-4 ${r}`,style:{fontFamily:n},children:l.map((e,r)=>"heading"===e.type?/* @__PURE__ */m("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__ */m(L,{text:e.text,colors:t,bodyFont:o??n})},r):"paragraph"===e.type?/* @__PURE__ */m("p",{className:"text-sm leading-relaxed",style:{color:t.textMuted,margin:0,fontFamily:n},children:/* @__PURE__ */m(L,{text:e.text,colors:t,bodyFont:n})},r):"list"===e.type?/* @__PURE__ */m("ul",{className:"text-sm leading-relaxed pl-5",style:{color:t.textMuted,margin:0,fontFamily:n},children:e.items.map((e,o)=>/* @__PURE__ */m("li",{style:{marginBottom:6},children:/* @__PURE__ */m(L,{text:e,colors:t,bodyFont:n})},o))},r):"propsTable"===e.type?/* @__PURE__ */m(S,{rows:e.rows},r):/* @__PURE__ */m("hr",{style:{border:"none",borderTop:`1px solid ${t.border}`,margin:"4px 0"}},r))})}function P({open:e,onClose:t,title:n="How to Play",content:o,colors:r,bodyFont:i,headingFont:s}){const c=a(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__ */m("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__ */u("div",{ref:c,role:"dialog","aria-modal":"true","aria-labelledby":"how-to-play-title",className:"w-full sm:max-w-2xl max-h-[88vh] sm:max-h-[85vh] flex flex-col rounded-t-2xl sm:rounded-2xl border shadow-2xl overflow-hidden",style:{backgroundColor:r.background,borderColor:r.border,fontFamily:i},children:[
7
+ /* @__PURE__ */u("div",{className:"flex items-center justify-between px-4 sm:px-6 py-4 border-b shrink-0",style:{borderColor:r.border,backgroundColor:r.backgroundAlt},children:[/* @__PURE__ */m("h2",{id:"how-to-play-title",className:"text-lg font-bold",style:{color:r.text,fontFamily:s??i},children:n}),/* @__PURE__ */m("button",{type:"button",onClick:t,"aria-label":"Close",className:"w-9 h-9 rounded-full text-lg font-semibold",style:{color:r.textMuted,backgroundColor:r.background,border:`1px solid ${r.border}`,cursor:"pointer"},children:"×"})]}),k(o)?/* @__PURE__ */m("div",{className:"overflow-y-auto flex-1 min-h-0",children:/* @__PURE__ */m(F,{content:o,className:"min-h-[60vh]"})}):/* @__PURE__ */m("div",{className:"overflow-y-auto px-4 sm:px-6 py-5 flex-1 min-h-0",children:/* @__PURE__ */m(z,{content:o,colors:r,bodyFont:i,headingFont:s})}),
8
+ /* @__PURE__ */m("div",{className:"px-4 sm:px-6 py-4 border-t shrink-0",style:{borderColor:r.border,backgroundColor:r.backgroundAlt},children:/* @__PURE__ */m("button",{type:"button",onClick:t,className:"w-full sm:w-auto px-5 py-2.5 rounded-lg text-sm font-semibold",style:{color:r.primaryText,backgroundColor:r.primary,border:"none",cursor:"pointer",fontFamily:i},children:"Got it"})})]})}):null}function O({content:t,title:n,label:o="How to Play",colors:r,bodyFont:l,headingFont:i,className:s=""}){const[a,c]=e.useState(!1);return t?.trim()?/* @__PURE__ */u(d,{children:[/* @__PURE__ */u("button",{type:"button",onClick:()=>c(!0),className:`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full border text-xs font-semibold ${s}`,style:{color:r.primary,borderColor:r.primary,backgroundColor:`${r.primary}10`,cursor:"pointer",fontFamily:l},children:[o,/* @__PURE__ */m("span",{"aria-hidden":"true",children:"?"})]}),/* @__PURE__ */m(P,{open:a,onClose:()=>c(!1),title:n,content:t,colors:r,bodyFont:l,headingFont:i})]}):null}function D(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function E(e){return(e.description??e.proposition??"").trim()}var T={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function H(e){return"composite_and"===(t=D(e))||"composite_or"===t;var t}function j(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 Y(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 R(e,t){if(!H(e))return null;const n=function(e){return H(e)?("composite_and"===(t=D(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=j(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:E(o),eventLabel:Y(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(T[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(E(e),n);return r?{operator:n,legs:r.map(e=>({text:e,eventLabel:null}))}:null}var W="#0F4C5C",G={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"},I={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner"},U="game-icon:",K={perfect_pick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Perfect Pick.\n Single-glyph identifier ("100%") on a transparent background.\n\n Themable: the digits use currentColor (primary tone) and the\n trailing % uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <text x="50" y="50"\n font-family="Manrope, Poppins, sans-serif"\n font-size="32"\n letter-spacing="-1"\n text-anchor="middle"\n dominant-baseline="central"\n font-weight="800"\n fill="currentColor"><tspan fill="currentColor">100</tspan><tspan fill="var(--icon-accent, #DFFF1A)">%</tspan></text>\n</svg>',head_to_head:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Head to Head.\n Two arrowheads clashing across a citron diamond. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Source design lives in an 80×60 box; centre it in 100×100 by\n shifting (10, 20) so the diamond at (40,30) lands at (50,50). --\x3e\n \x3c!-- Themable: arrowheads use currentColor (primary tone), the\n centre diamond uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(10, 20)">\n <path d="M 6 14 L 32 30 L 6 46 L 18 30 Z" fill="currentColor"/>\n <path d="M 74 14 L 48 30 L 74 46 L 62 30 Z" fill="currentColor"/>\n <polygon points="40,20 50,30 40,40 30,30" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',total_points:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Total Points.\n Sigma glyph with italic X superscript. Transparent background;\n rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Sigma + italic X superscript, centred together in the viewBox.\n Sigma 90×98 × 0.55 = 49.5×53.9. Translating to (15, 22) puts the\n sigma centre at (~40, 49) and leaves room for the X glyph at the\n upper right so the combined mark balances around (50, 50). --\x3e\n \x3c!-- Themable: sigma uses currentColor (primary), X superscript\n uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(15, 22) scale(0.55)">\n <path d="M 0,0 L 90,0 L 90,15 L 25,15 L 58,49 L 25,83 L 90,83 L 90,98 L 0,98 L 49,49 Z"\n fill="currentColor"/>\n </g>\n <text x="75" y="30"\n font-family="Manrope, Poppins, sans-serif"\n font-size="22"\n font-style="italic"\n font-weight="400"\n text-anchor="middle"\n dominant-baseline="central"\n fill="var(--icon-accent, #DFFF1A)">X</text>\n</svg>',quickpick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — QuickPick.\n Lightning bolt glyph. Transparent background; rendered onto the\n programmatic Press-to-Play tile.\n\n Themable: bolt fill uses currentColor (primary tone); edge stroke uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(28, 16) scale(0.55)">\n <path d="M 50 8 L 5 80 L 32 80 L 22 132 L 75 50 L 47 50 L 60 8 Z"\n fill="currentColor"\n stroke="var(--icon-accent, #DFFF1A)"\n stroke-width="3.5"\n stroke-linejoin="round"/>\n </g>\n</svg>',safety_net:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Safety Net.\n The brand basketball rim + curved diamond-mesh net catching a citron ball,\n taken from the YESNO Safety Net lockup / app icon. Transparent background;\n rendered on Press-to-Play tiles and brand lockups.\n\n Themable: net uses currentColor (teal on light, white on teal tile);\n ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(-2, -6.2) scale(1.3)">\n <line x1="9" y1="18" x2="71" y2="18" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>\n <path d="M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/>\n <ellipse cx="40" cy="64" rx="18" ry="4.5" fill="none" stroke="currentColor" stroke-width="2.2"/>\n <circle cx="40" cy="50" r="8" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',ladder:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n The sub-brand staircase: four offset rungs climbing to the top, from the\n YESNO Ladder lockup ("Climb the ladder. Stack the prizes."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: alternating rungs use currentColor (primary tone) and the\n icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="4" y="76" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="20" y="54" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="36" y="32" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="52" y="10" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',game_set:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Game Set Bet.\n The sub-brand tennis ball: citron ball with the S-curve seam, from the\n Game Set Bet lockup / app icon ("Game. Set. Bet."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the seam uses currentColor (teal on light, paper on the teal\n app-icon tile); the ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(4, 4) scale(1.15)">\n <circle cx="40" cy="40" r="34" fill="var(--icon-accent, #DFFF1A)"/>\n <path d="M40 8 C12 14 11 40 40 40 C69 40 68 66 40 72" fill="none" stroke="currentColor" stroke-width="4.5" stroke-linecap="round"/>\n </g>\n</svg>',pick_your_dividend:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n Splayed ladder rails and rungs with the citron ball resting at the top —\n the stacked-multi that pays every rung your streak reaches. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n\n Themable: rails/rungs use currentColor (primary tone); the ball uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <line x1="36" y1="16" x2="27" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="64" y1="16" x2="73" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="33.8" y1="34" x2="66.2" y2="34" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n <line x1="31.5" y1="52" x2="68.5" y2="52" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.8"/>\n <line x1="29.3" y1="70" x2="70.7" y2="70" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.6"/>\n <circle cx="50" cy="20" r="9" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Mirror.\n Two offset square-stacks reflected across a central seam, from the YESNO\n Mirror Standard mark ("Get them all right, you win. All wrong, you win.").\n Transparent background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left stack --\x3e\n <rect x="6" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="14" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- right stack — the reflection across x=50 --\x3e\n <rect x="66" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="58" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',same_game_multi:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon - Same Game Multi.\n Three proposition legs contained inside one rounded fixture card: many\n picks, one game. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the fixture and leg marks use currentColor (primary tone); the\n locked lead leg uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="14" y="14" width="72" height="72" rx="13" fill="none" stroke="currentColor" stroke-width="6"/>\n <circle cx="31" cy="35" r="6" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="43" y="31" width="31" height="8" rx="4" fill="currentColor"/>\n <circle cx="31" cy="51" r="6" fill="currentColor" opacity="0.8"/>\n <rect x="43" y="47" width="25" height="8" rx="4" fill="currentColor" opacity="0.8"/>\n <circle cx="31" cy="67" r="6" fill="currentColor" opacity="0.6"/>\n <rect x="43" y="63" width="19" height="8" rx="4" fill="currentColor" opacity="0.6"/>\n</svg>',unknown:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Unknown game fallback.\n Question mark glyph on a transparent background.\n\n Themable: the mark uses currentColor (primary tone) and the dot uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <path\n d="M 28 42 C 28 26 36 16 46 16 C 58 16 66 26 66 38 C 66 48 58 54 50 58 L 50 68"\n fill="none"\n stroke="currentColor"\n stroke-width="8"\n stroke-linecap="round"\n stroke-linejoin="round"\n />\n <circle cx="50" cy="82" r="5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>'},Z={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"},V={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 q(e){return`${U}${function(e){if(e.quick_pick_only)return"quickpick";return V[e.rule?.trim().toLowerCase()??""]||(Z[t=e.game_name??"",t.toLowerCase().replace(/[^a-z0-9]+/g,"")]??"unknown");var t}(e)}`}function X(e){return function(e){return e.startsWith(U)}(e)?K[e.slice(10)]??K.unknown:null}function Q(e){return!!e.is_composite_component||!!(t=D(e))&&t.startsWith("co_");var t}function J(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0}function $(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function _(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}function ee(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 te(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 ne(e){return e.reduce((t,n)=>{const o=oe(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function oe(e,t){if(e.sport)return e.sport;if(H(e)&&t)for(const n of j(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var re=["sports","casino","racing"];function le(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=D(e).toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"sports"}function ie(e){const t={};for(const n of e){const e=le(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function se(e){const t=ie(e);return re.filter(e=>(t[e]?.length??0)>0)}function ae(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";default:return"Choose a Sport"}}function ce(e,t,n,o){return o&&o.length>0?o.includes(e):!(void 0!==t&&e<t||void 0!==n&&e>n)}function de(e,t){const n=e.allowed_propositions;return n&&n.length>0?null!=t&&n.includes(t)?{min:t,max:t}:{min:Math.min(...n),max:Math.max(...n)}:{min:e.min_propositions??e.num_propositions??0,max:e.max_propositions??e.num_propositions??0}}function me(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 ue(e,t){const n={basketball_nba:"NBA Basketball",americanfootball_nfl:"NFL Football",icehockey_nhl:"NHL Hockey",baseball_mlb:"MLB Baseball",soccer_epl:"Premier League",soccer_usa_mls:"MLS Soccer",horse_racing_aus:"Horse Racing",casino_blackjack:"Blackjack",casino_roulette:"Roulette",casino_slots:"Slots"};return e.startsWith("casino_")?n[e]??e.replace(/^casino_/,"").replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):t&&e.startsWith(`${t}_`)?e.slice(t.length+1).replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):n[e]||e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}function pe(e,t,n){const o=t?.[e];return o||ue(e,n)}function fe(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 he(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function xe(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function ge(e,t,n){return!t||!!e&&(xe(e,t,n)||xe(t,e,n))}function be(e,t){return t.find(t=>t.id===e)}function ye(e,t){let n=e;return t?.category&&(n=n.filter(e=>le(e)===t.category)),t?.sport&&(n=n.filter(n=>H(n)?function(e,t,n,o){if(ge(e.sport,t,n))return!0;if(!o)return!1;for(const r of j(e)){const e=be(r,o);if(e&&ge(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):ge(n.sport,t.sport,t.sportBaseKey))),n}function we(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t?t:"sports"}(e)===t}function ke(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>xe(t,e,n))}function ve(e,t,n){return!(n?.category&&!we(e,n.category))&&!(n?.sport&&!ke(e,n.sport,n.sportBaseKey))&&ye(Fe(t,e),n).length>0}function Ne(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!we(e,t.category)||t.sport&&!ke(e,t.sport,t.sportBaseKey))):e}function Fe(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(i=>{if(Q(i))return!1;if(r)if(H(i)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>xe(e.sport,t,n)))return!0;if(!o)return!1;for(const r of j(e)){const e=be(r,o);if(e?.sport&&t.some(t=>xe(e.sport,t,n)))return!0}return!1}(i,o,n,e))return!1}else if(!i.sport||!o.some(e=>xe(i.sport,e,n)))return!1;return!(l&&!function(e,t){const n=t.allowed_markets;if(!n||0===n.length)return!0;const o=D(e);return!!o&&n.includes(o)}(i,t))}):e.filter(e=>!Q(e))}var Be=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function Ce(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,i]=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*i>.4?n:t}function Ae(e,t,n){return function(e,t,n){return"racing"===e||!!n&&Boolean(t?.some(e=>e.sport===n||(e.sport||"").startsWith(`${n}_`)))}(t,e,n)?function(e){return e.reduce((e,t)=>{const n=t.away_team||t.eventId||"Race";return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e):function(e){return e.reduce((e,t)=>{const n=`${t.home_team} vs ${t.away_team}`;return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e)}function Me(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 Se(e,t){const n=[...e].sort(()=>Math.random()-.5).slice(0,t),o=[],r=[];for(const l of n)Math.random()<.5?o.push(l):r.push(l);return{yesPicks:o,noPicks:r}}function Le(e){return e.colors.heading??e.colors.text}function ze(e){return e.colors.label??e.colors.text}function Pe(e){return e.colors.value??e.colors.text}function Oe(e){return e.colors.productYes??"#00C853"}function De(e){return e.colors.productNo??"#E53935"}function Ee(e){return e.brand?.accent??e.colors.primary}function Te(e){return e.colors.textAlt??e.colors.text}function He(e){return e.colors.textAltMuted??e.colors.textMuted}function je(e){return e.colors.selectionCard??e.colors.surface??e.colors.backgroundAlt}function Ye(e){return e.colors.matchupHeader??e.colors.backgroundAlt}function Re(e){return{textMuted:e.colors.textMuted,border:e.colors.border,background:e.colors.background,backgroundAlt:e.colors.backgroundAlt,primary:e.colors.primary,selectionCard:je(e)}}function We(e,t="light"){return e?Ge(e)?"dark"===t?e.dark:e.light:e:Ie}function Ge(e){return"light"in e&&"dark"in e&&!("colors"in e)}var Ie={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"}},Ue={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"}},Ke={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"}},Ze={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"}},Ve={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"}},qe={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"}},Xe={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"}},Qe={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"}},Je={light:Ie,dark:Ke},$e={light:Ve,dark:Ue},_e={light:qe,dark:Ze},et={light:Xe,dark:Qe};function tt(e){return{default:Ie,green:Ue,"green-light":Ve,dark:Ke,gold:Ze,"gold-light":qe,yesno:Qe,"yesno-light":Xe}[e]||Ie}function nt(e){return{default:Je,green:$e,gold:_e,yesno:et}[e]||Je}var ot={default:Ie,green:Ue,"green-light":Ve,dark:Ke,gold:Ze,"gold-light":qe,yesno:Qe,"yesno-light":Xe},rt={default:Je,green:$e,gold:_e,yesno:et};function lt(e,t="light"){return We(e,t)}function it(e){return e.fonts?.body??"inherit"}function st(e){return e.fonts?.heading??e.fonts?.body??"inherit"}function at(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 ct(e="default"){const t=tt(e);return l(()=>{at(t)},[t]),t}var dt=/* @__PURE__ */new Map,mt=/* @__PURE__ */new Map;function ut(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 pt({iconUrl:t,width:n,height:o,iconColor:r,accentColor:l,ariaLabel:i,style:s}){const a=X(t),[c,d]=e.useState(()=>a??dt.get(t)??null);e.useEffect(()=>{const e=X(t);if(e)return void d(e);if(dt.has(t))return void d(dt.get(t));let n=!1;return function(e){const t=dt.get(e);if(void 0!==t)return Promise.resolve(t);const n=mt.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=>(dt.set(e,t),mt.delete(e),t)).catch(t=>{throw mt.delete(e),t});return mt.set(e,o),o}(t).then(e=>{n||d(e)}).catch(()=>{n||d(null)}),()=>{n=!0}},[t]);const u={display:"inline-block",width:n,height:o,lineHeight:0,...s};/* @__PURE__ */
9
+ return m("img",c?{src:ut(c,r,l),alt:i??"","aria-hidden":!i||void 0,role:i?"img":"presentation","aria-label":i||void 0,style:{...u,objectFit:"contain"}}:{src:t,alt:i??"","aria-hidden":!i||void 0,style:{...u,objectFit:"contain"}})}function ft({iconUrl:e,gameName:t,onPress:n,size:o=120,brandColor:r="#0F4C5C",cardColor:l="#DDD9D2",iconColor:i,accentColor:s,captionColor:a="#14687C",className:c,ariaLabel:d}){const p=(t||"").toUpperCase(),f=o/360,h=i??l,x=n=>/* @__PURE__ */u("div",{style:{position:"relative",width:o,height:o},children:[/* @__PURE__ */u("svg",{viewBox:"0 0 360 360",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%",role:"img","aria-label":d??`Press to play ${t}`,children:[
10
+ /* @__PURE__ */m("rect",{x:"2",y:"2",width:"356",height:"356",rx:"78",fill:l,stroke:r,strokeWidth:"4"}),
11
+ /* @__PURE__ */m("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__ */m("rect",{x:"40",y:"5",width:"210",height:"210",rx:"42",fill:r,opacity:"0.30"})}),
12
+ /* @__PURE__ */m("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__ */m("rect",{x:"40",y:"5",width:"210",height:"210",rx:"42",fill:r,opacity:"0.55"})}),
13
+ /* @__PURE__ */m("rect",{x:"40",y:"5",width:"210",height:"210",rx:"42",fill:r}),
14
+ /* @__PURE__ */m("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"}),
15
+ /* @__PURE__ */m("text",{x:"180",y:"338",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"18",letterSpacing:"2",textAnchor:"middle",fontWeight:500,fill:a,children:p})]}),/* @__PURE__ */m("div",{style:{position:"absolute",left:60*f,top:25*f,width:170*f,height:170*f,pointerEvents:"none"},children:/* @__PURE__ */m(pt,{iconUrl:e,width:"100%",height:"100%",iconColor:h,accentColor:s})})]});return n?/* @__PURE__ */m(ht,{size:o,onPress:n,className:c,ariaLabel:d??`Press to play ${t}`,renderInner:x}):/* @__PURE__ */m("div",{className:c,style:{width:o,height:o},children:x(!1)})}function ht({size:e,onPress:t,className:n,ariaLabel:o,renderInner:r}){const[l,i]=c(!1),[s,a]=c(!1);/* @__PURE__ */
16
+ return m("button",{type:"button",onClick:t,"aria-label":o,className:n,onMouseEnter:()=>i(!0),onMouseLeave:()=>{i(!1),a(!1)},onMouseDown:()=>a(!0),onMouseUp:()=>a(!1),onTouchStart:()=>a(!0),onTouchEnd:()=>a(!1),onBlur:()=>{a(!1),i(!1)},style:{width:e,height:e,padding:0,background:"transparent",border:0,cursor:"pointer",borderRadius:e/360*78,transform:s?"scale(0.96)":"scale(1)",transition:"transform 140ms ease-out"},children:r(l||s)})}function xt(e){return e.selectionCard??e.backgroundAlt}function gt({color:e,size:t=20,label:n="Loading"}){/* @__PURE__ */
17
+ return m("div",{role:"status","aria-label":n,className:"inline-flex items-center justify-center",children:/* @__PURE__ */u("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__ */m("circle",{cx:"12",cy:"12",r:"10",strokeOpacity:"0.25"}),/* @__PURE__ */m("path",{d:"M12 2a10 10 0 0 1 10 10",strokeLinecap:"round"})]})})}function bt({color:e="#ffffff",size:t=18}){/* @__PURE__ */
18
+ return m(gt,{color:e,size:t,label:"Loading"})}function yt({color:e,className:t="",style:n}){/* @__PURE__ */
19
+ return m("span",{className:`inline-block animate-pulse rounded-md ${t}`,style:{backgroundColor:e,opacity:.35,...n},"aria-hidden":!0})}function wt({className:e="",bodyFont:t,children:n}){/* @__PURE__ */
20
+ return m("div",{className:`flex flex-col min-h-full w-full min-w-0 ${e}`,style:{fontFamily:t},children:/* @__PURE__ */m("div",{className:"flex-1 w-full min-w-0",children:n})})}function kt({colors:e,count:t=2}){/* @__PURE__ */
21
+ return m("div",{className:"grid grid-cols-1 min-[400px]:grid-cols-2 gap-3 w-full","aria-hidden":!0,children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */u("div",{className:"flex flex-col items-start justify-center gap-3 rounded-2xl p-5 border-2 w-full min-h-[140px]",style:{backgroundColor:xt(e),borderColor:e.border},children:[/* @__PURE__ */m(yt,{color:e.textMuted,className:"h-5 w-[11rem] max-w-full"}),/* @__PURE__ */m(yt,{color:e.textMuted,className:"h-3 w-24 max-w-[70%]"})]},n))})}function vt({colors:e,count:t=3}){/* @__PURE__ */
22
+ return m("div",{className:"grid grid-cols-1 gap-3 w-full","aria-hidden":!0,children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */u("div",{className:"flex items-center justify-between rounded-2xl border-2 px-5 py-5 w-full",style:{backgroundColor:xt(e),borderColor:e.border},children:[/* @__PURE__ */u("div",{className:"flex items-center gap-4 min-w-0 flex-1",children:[/* @__PURE__ */m(yt,{color:e.textMuted,className:"h-14 w-14 rounded-2xl shrink-0"}),/* @__PURE__ */u("div",{className:"flex flex-col gap-2 min-w-0 flex-1",children:[/* @__PURE__ */m(yt,{color:e.textMuted,className:"h-5 w-36 max-w-[75%]"}),/* @__PURE__ */m(yt,{color:e.textMuted,className:"h-3 w-28 max-w-[60%]"})]})]}),/* @__PURE__ */m(yt,{color:e.textMuted,className:"h-5 w-5 rounded shrink-0"})]},n))})}function Nt({colors:e,tileSize:t=100}){/* @__PURE__ */
23
+ return m("div",{className:"flex flex-col rounded-xl border-2 p-4 gap-4 w-full",style:{borderColor:e.border,backgroundColor:xt(e),borderTopWidth:4,borderTopColor:e.primary},"aria-hidden":!0,children:/* @__PURE__ */u("div",{className:"flex items-start gap-3 text-left w-full",children:[/* @__PURE__ */u("div",{className:"flex flex-col gap-2 min-w-0 flex-1",children:[
24
+ /* @__PURE__ */m(yt,{color:e.textMuted,className:"h-7 w-36 max-w-[85%]"}),
25
+ /* @__PURE__ */m(yt,{color:e.textMuted,className:"h-3.5 w-full"}),
26
+ /* @__PURE__ */m(yt,{color:e.textMuted,className:"h-3.5 w-[82%]"}),
27
+ /* @__PURE__ */m(yt,{color:e.textMuted,className:"h-5 w-28 rounded-full"})]}),/* @__PURE__ */m(yt,{color:e.textMuted,className:"shrink-0 rounded-xl",style:{width:t,height:t}})]})})}function Ft({colors:e,count:t=3,tileSize:n=100}){/* @__PURE__ */
28
+ return m("div",{className:"flex flex-col gap-3 w-full","aria-hidden":!0,children:Array.from({length:t}).map((t,o)=>/* @__PURE__ */m(Nt,{colors:e,tileSize:n},o))})}function Bt({colors:e,rows:t=5}){/* @__PURE__ */
29
+ return m("div",{className:"space-y-4 sm:space-y-6 pb-16 w-full","aria-hidden":!0,children:/* @__PURE__ */m("div",{className:"rounded-lg border-2 overflow-hidden divide-y w-full",style:{borderColor:e.border,backgroundColor:xt(e)},children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */u("div",{className:"px-3 sm:px-4 py-2 sm:py-3 flex flex-col gap-2",style:{borderColor:e.border},children:[
30
+ /* @__PURE__ */m(yt,{color:e.textMuted,className:"h-3.5 w-[72%] max-w-full"}),
31
+ /* @__PURE__ */m(yt,{color:e.textMuted,className:"h-3 w-28"}),
32
+ /* @__PURE__ */u("div",{className:"flex items-center justify-between gap-2 pt-0.5",children:[/* @__PURE__ */m(yt,{color:e.textMuted,className:"h-3.5 flex-1 max-w-[58%]"}),/* @__PURE__ */u("div",{className:"flex gap-1.5 shrink-0",children:[/* @__PURE__ */m(yt,{color:e.textMuted,className:"h-7 w-11 sm:h-8 sm:w-12 rounded-lg"}),/* @__PURE__ */m(yt,{color:e.textMuted,className:"h-7 w-11 sm:h-8 sm:w-12 rounded-lg"})]})]})]},n))})})}function Ct({colors:e}){/* @__PURE__ */
33
+ return m("div",{className:"flex border-b mb-4 w-full",style:{borderColor:e.border},"aria-hidden":!0,children:[0,1].map(t=>/* @__PURE__ */u("div",{className:"flex items-center gap-2 px-4 py-2.5 border-b-2 border-transparent",children:[/* @__PURE__ */m(yt,{color:e.textMuted,className:"h-3.5 w-[4.25rem]"}),/* @__PURE__ */m(yt,{color:e.textMuted,className:"h-5 min-w-[1.25rem] w-5 rounded-full"})]},t))})}function At({colors:e}){/* @__PURE__ */
34
+ return u("div",{className:"rounded-lg border overflow-hidden w-full",style:{borderColor:e.border,backgroundColor:xt(e)},"aria-hidden":!0,children:[/* @__PURE__ */u("div",{className:"w-full px-4 py-3 flex items-center justify-between gap-3",children:[/* @__PURE__ */u("div",{className:"min-w-0 flex-1 flex flex-col gap-1.5",children:[/* @__PURE__ */m(yt,{color:e.textMuted,className:"h-[18px] w-40 max-w-[75%]"}),/* @__PURE__ */m(yt,{color:e.textMuted,className:"h-3 w-32 max-w-[65%]"})]}),/* @__PURE__ */u("div",{className:"flex items-center gap-3 shrink-0",children:[/* @__PURE__ */m(yt,{color:e.textMuted,className:"h-3.5 w-10"}),/* @__PURE__ */m(yt,{color:e.textMuted,className:"h-6 w-[3.75rem] rounded-full"})]})]}),/* @__PURE__ */m("div",{className:"border-t divide-y w-full",style:{borderColor:e.border},children:[0,1,2].map(t=>/* @__PURE__ */u("div",{className:"px-4 py-2.5 flex items-center justify-between gap-3",children:[/* @__PURE__ */u("div",{className:"flex-1 min-w-0 flex flex-col gap-1",children:[/* @__PURE__ */m(yt,{color:e.textMuted,className:"h-3.5 w-[88%]"}),/* @__PURE__ */m(yt,{color:e.textMuted,className:"h-3 w-[70%]"})]}),/* @__PURE__ */m(yt,{color:e.textMuted,className:"h-5 w-10 rounded shrink-0"})]},t))})]})}function Mt({colors:e,rows:t=2}){/* @__PURE__ */
35
+ return u("div",{className:"w-full flex flex-col","aria-hidden":!0,children:[/* @__PURE__ */m(Ct,{colors:e}),/* @__PURE__ */m("div",{className:"space-y-3 w-full",children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */m(At,{colors:e},n))})]})}function St({colors:e,bodyFont:t,message:n,className:o="",variant:r="category",showLogoArea:l=!1,gameCardCount:i=3,categoryCount:s=2}){const a=(()=>{switch(r){case"sport":/* @__PURE__ */return m(vt,{colors:e,count:s});case"games":/* @__PURE__ */return m(Ft,{colors:e,count:i});case"propositions":/* @__PURE__ */return m(Bt,{colors:e,rows:5});case"entries":/* @__PURE__ */return m(Mt,{colors:e,rows:2});default:/* @__PURE__ */return m(kt,{colors:e,count:s})}})();/* @__PURE__ */
36
+ return m(wt,{className:o,bodyFont:t,children:/* @__PURE__ */u("div",{role:"status","aria-live":"polite","aria-label":n?.trim()||"Loading",className:"w-full min-w-0",children:[n?.trim()?/* @__PURE__ */m("p",{className:"text-sm text-center mb-4",style:{color:e.textMuted,fontFamily:t,margin:0},children:n}):null,a]})})}function Lt(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 zt={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:48},Pt={xs:4,sm:8,md:12,lg:16,xl:24,pill:999},Ot={xs:11,sm:13,md:14,lg:16,xl:18,xxl:22,display:28},Dt={min:44};function Et(e){const t="dark"===e.colorScheme,n=e.colors;return{space:{...zt},radius:{...Pt},fontSize:{...Ot},touchTarget:{...Dt},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??Lt(n.border,t?.6:.5)},isDark:t}}function Tt(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 Ht(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 jt(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 ${Lt(o,.9)}`,`0 0 0 ${n+5}px ${Lt(o,.18)}`].join(", ")}var Yt=n(function({theme:t,variant:n="primary",size:o="md",disabled:r,block:l,radius:i="md",onPress:s,onDoubleClick:a,type:c="button",className:d,style:u,children:p,ariaLabel:f},h){const x=Et(t),g=t.colors,[b,y]=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:Lt(g.text,x.isDark?.08:.05),fg:g.text,border:"transparent"},danger:{bg:g.error,bgHover:Lt(g.error,.85),fg:(g.errorText&&(g.errorText,g.error),"#ffffff"),border:g.error}}[n];/* @__PURE__ */
37
+ return m("button",{ref:h,type:c,disabled:r,"aria-label":f,className:d,onClick:r?void 0:s,onDoubleClick:r?void 0:a,onMouseEnter:()=>y(!0),onMouseLeave:()=>{y(!1),k(!1)},onMouseDown:()=>k(!0),onMouseUp:()=>k(!1),onFocus:e=>{e.target.matches(":focus-visible")&&N(!0)},onBlur:()=>N(!1),style:{appearance:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8,width: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:b&&!r?C.bgHover:C.bg,border:`1px solid ${C.border}`,borderRadius:B[i],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?jt(t):"none",outline:"none",...u},children:p})}),Rt={xs:{padding:"3px 10px",fontSize:11},sm:{padding:"6px 14px",fontSize:13},md:{padding:"8px 18px",fontSize:14}};function Wt(e,t,n,o,r){const l=Et(e);return{appearance:"none",padding:Rt[o].padding,borderRadius:l.radius.sm,fontSize:Rt[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 Gt({theme:e,value:t,onYes:n,onNo:o,size:r="md",disabled:l,yesLabel:i="Yes",noLabel:s="No",className:a,style:c}){/* @__PURE__ */
38
+ return u("div",{className:a,style:{display:"flex",gap:8,flexShrink:0,...c},children:[/* @__PURE__ */m("button",{type:"button","aria-pressed":"yes"===t,disabled:l,onClick:l?void 0:n,style:Wt(e,"yes"===t,Oe(e),r,l),children:i}),/* @__PURE__ */m("button",{type:"button","aria-pressed":"no"===t,disabled:l,onClick:l?void 0:o,style:Wt(e,"no"===t,De(e),r,l),children:s})]})}function It({theme:e,value:t,size:n="md",style:o}){const r=Et(e);/* @__PURE__ */
39
+ return m("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?Oe(e):De(e),...o},children:"yes"===t?"Yes":"No"})}function Ut(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function Kt(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function Zt(e){if(!e||e.quick_pick_only)return!1;const t=Kt(e.selection_scope);if("samegamemulti"===Kt(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(Kt);return n.includes("samegame")||n.includes("samegamemulti")}function Vt(e){return(e.eventId??e.event_id)?.trim()||null}function qt(e){const t=/* @__PURE__ */new Map;for(const n of e){if(!$t(n))continue;const e=Vt(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=Xt(o.homeTeam,n.home_team),o.awayTeam=Xt(o.awayTeam,n.away_team),o.sport=Xt(o.sport,n.sport),o.league=Xt(o.league,n.league),o.commenceTime=Jt(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=Qt(e.commenceTime),o=Qt(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function Xt(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function Qt(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function Jt(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=Qt(e),r=Qt(n);return r!==o?r<o?n:e:e.localeCompare(n)<=0?e:n}function $t(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function _t(e,t){return t?e.filter(e=>$t(e)&&Vt(e)===t):[]}function en(e,t){return!!t&&e.length>0&&e.every(e=>$t(e)&&Vt(e)===t)}function tn(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function nn(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 on(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 rn(e,t,n){const o=Math.max(0,e-t),r=e=>n.roundTo>0?Math.round(e/n.roundTo)*n.roundTo:Math.round(e),l=20*n.perfectMultiple*Math.pow(2,e-n.perfectBaseLegs),i=20*(1-n.margin),s=o>0?i*n.nearMissBudgetFraction/o:0,a=Math.pow(1/n.perLegProbability,e),c=[];let d=0;for(let u=0;u<=o;u+=1)d+=on(e,u),u>=1&&(c[u]=r(s*a/d));const m=[];for(let u=0;u<=o;u+=1){let t=0===u?l:0;for(let e=Math.max(1,u);e<=o;e+=1)t+=c[e];const n=Math.round(t);m.push({misses:u,label:`${e-u}/${e}`,multiplier:n/20,payout20:n})}return m}function ln(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:rn(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:rn(e,e-2,t),expectedCorrect:e-2}]}function sn(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)}function an(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:ln(t,nn(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:tn(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 cn(e){return null!=an(e)}var dn=[2500,5e3,7500,1e4,12500,15e3,2e4],mn=[12,11,10,9,8,7,6];function un(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function pn(e){return Math.round(100*e)/100}function fn(e,t,n=.21875){const o=Math.pow(2,t),r=e/(1-n)/o,l=Number.isInteger(r),i=pn(r),s=l?r:pn(.96*r);return{legs:t,exactStake:i,stake:s,margin:1-e/(s*o),multiple:e/s,oddsOneIn:o,discounted:!l}}function hn(e,t=mn){return{dividend:e,rungs:t.map(t=>fn(e,t))}}function xn(e,t){if(!un(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,r=mn.filter(e=>e>=n&&e<=o);if(0===r.length)return null;const l=t?.dividends??dn;return{dividends:l.map(e=>hn(e,r)),defaultDividend:l.includes(1e4)?1e4:l[Math.floor(l.length/2)],defaultLegs:r.includes(9)?9:r[Math.floor(r.length/2)],tagline:"The dividend is set. The win is yours to build."}}var gn={signature:1,premier:2,exclusive:3},bn=[{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 yn(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function wn(e,t){return e.filter(e=>yn(e)===t)}function kn(e){const t=new Set(e.map(yn));return bn.filter(e=>t.has(e.level))}function vn(e){return kn(e)[0]?.id??"signature"}function Nn({howToPlay:e,maxPayout:t,tiers:n,modes:o,pydDividends:r,colors:i,bodyFont:s,headingFont:p,menuShadow:f,onOpenChange:h}){const[x,g]=c(null),[b,y]=c(!1),w=a(null),k=a(null),v=!!(o?.length||r?.length||n.some(e=>e.payout20>0)),N=!!o?.length,F=r?.length?Math.max(...r.map(e=>e.dividend)):0,B=N?`${o.length} payout options available`:r?.length?F>0?`Win up to ${ee(F)}`:null:t>0?`Win up to ${ee(t)} for $20`:null,C="pay"===x?"Hide dividends":N?"Compare dividends":"Show dividends";l(()=>{h?.(null!==x)},[x,h]),l(()=>{if(!x)return void y(!1);const e=w.current;if(e&&"undefined"!=typeof window){const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom;y(n<240&&t.top>n)}const t=e=>{const t=e.target;w.current?.contains(t)||k.current?.contains(t)||g(null)};return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[x]);const A=e=>({border:`1px solid ${e?i.primary:i.border}`,borderRadius:10,background:e?i.primary:i.backgroundAlt??"#FCFBF9",cursor:"pointer",padding:"9px 6px",fontFamily:s,fontWeight:700,fontSize:10,color:e?i.primaryText:i.text,display:"flex",alignItems:"center",justifyContent:"center",gap:4,lineHeight:1.1,textAlign:"center",minWidth:0}),M={position:"absolute",left:0,right:0,top:b?void 0:"calc(100% + 8px)",bottom:b?"calc(100% + 8px)":void 0,zIndex:30,borderRadius:10,border:`1px solid ${i.border}`,backgroundColor:i.background??"#fff",boxShadow:f,padding:"12px 14px",textAlign:"left",maxHeight:260,overflowY:"auto",fontFamily:s};/* @__PURE__ */
40
+ return u("div",{className:"w-full mt-1",style:{position:"relative"},ref:w,children:[v&&B&&/* @__PURE__ */m("div",{className:"mb-1.5 text-center",children:/* @__PURE__ */m("span",{className:"text-[11px] font-semibold leading-snug",style:{color:i.text},children:B})}),
41
+ /* @__PURE__ */u("div",{className:"grid grid-cols-2 gap-2",children:[/* @__PURE__ */u("button",{type:"button",style:A("how"===x),onClick:()=>g(e=>"how"===e?null:"how"),"aria-expanded":"how"===x,children:["How to Play",/* @__PURE__ */m("span",{"aria-hidden":"true",style:{fontSize:7,transform:"how"===x?"rotate(180deg)":void 0},children:"▼"})]}),v?/* @__PURE__ */u("button",{type:"button",style:A("pay"===x),onClick:()=>g(e=>"pay"===e?null:"pay"),"aria-expanded":"pay"===x,children:[C,/* @__PURE__ */m("span",{"aria-hidden":"true",style:{fontSize:7,transform:"pay"===x?"rotate(180deg)":void 0},children:"▼"})]}):/* @__PURE__ */m("div",{})]}),"how"===x&&/* @__PURE__ */m("div",{ref:k,role:"dialog",className:"text-[11.5px] leading-relaxed",style:{...M,color:i.textMuted},children:e}),"pay"===x&&v&&/* @__PURE__ */m("div",{ref:k,role:"dialog",style:M,children:o?.length?o.map((e,t)=>/* @__PURE__ */u("div",{style:{borderTop:0===t?"none":`1px solid ${i.border}`,paddingTop:0===t?0:8,marginTop:0===t?0:8},children:[/* @__PURE__ */m("div",{className:"text-[11px] font-bold mb-1",style:{color:i.text,fontFamily:p},children:e.label}),e.tiers.map(e=>/* @__PURE__ */u("div",{className:"flex items-center justify-between py-1",style:{gap:14},children:[/* @__PURE__ */u("span",{style:{color:i.textMuted,fontSize:11,flex:1},children:[e.label," correct"]}),/* @__PURE__ */m("span",{style:{fontWeight:700,color:i.heading??i.text,fontSize:12},children:ee(e.payout20)})]},e.label))]},e.id)):/* @__PURE__ */u(d,r?.length?{children:[
42
+ /* @__PURE__ */u("div",{className:"flex items-center justify-between pb-1 mb-1",style:{borderBottom:`1px solid ${i.border}`},children:[/* @__PURE__ */m("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:i.primary},children:"Dividend"}),/* @__PURE__ */m("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:i.primary},children:"Stake from"})]}),r.map(e=>/* @__PURE__ */u("div",{className:"flex items-center justify-between py-1",children:[/* @__PURE__ */m("span",{style:{fontWeight:700,color:i.heading??i.text,fontSize:12},children:ee(e.dividend)}),/* @__PURE__ */m("span",{style:{fontWeight:600,color:i.text,fontSize:12},children:ee(e.stakeFrom)})]},e.dividend)),
43
+ /* @__PURE__ */m("p",{className:"mt-2 text-[10px] italic",style:{color:i.textMuted},children:"You set the dividend before kick-off. Longer climbs start from a smaller stake."})]}:{children:[
44
+ /* @__PURE__ */u("div",{className:"flex items-center justify-between pb-1 mb-1",style:{borderBottom:`1px solid ${i.border}`},children:[/* @__PURE__ */m("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:i.primary},children:"Legs played"}),/* @__PURE__ */m("span",{className:"text-[10.5px] font-bold uppercase tracking-wide",style:{color:i.primary},children:"Payout"})]}),n.map(e=>/* @__PURE__ */u("div",{className:"flex items-center justify-between py-1",children:[/* @__PURE__ */u("span",{style:{fontWeight:600,color:i.text,fontSize:12},children:[e.count," legs"]}),/* @__PURE__ */m("span",{style:{fontWeight:600,color:e.payout20>0?i.text:i.textMuted,fontSize:12},children:e.payout20>0?ee(e.payout20):"—"})]},e.count)),
45
+ /* @__PURE__ */m("p",{className:"mt-2 text-[10px] italic",style:{color:i.textMuted},children:"Example values for a $20 bet."})]})})]})}function Fn({tabs:e,active:t,onChange:n,colors:o,bodyFont:r}){return e.length<=1?null:/* @__PURE__ */m("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__ */
46
+ return u("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 ${Lt(o.primary,.55)}, 0 7px 12px -4px ${Lt(o.primary,.35)}`:`0 4px 0 ${Lt(o.border,.9)}, 0 6px 10px -4px ${Lt(o.primary,.18)}`,cursor:"pointer"},children:[/* @__PURE__ */m("span",{className:"hidden min-[380px]:inline",children:e.label}),/* @__PURE__ */m("span",{className:"min-[380px]:hidden",children:e.shortLabel})]},e.id)})})}function Bn({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:r,iconColor:i,accentColor:s,captionColor:d,bodyFont:p,legOptions:f,onPick:h,colors:x,menuShadow:g}){const[b,y]=c(!1),[w,k]=c(!1),v=a(null),N=a(null);return l(()=>{if(!b)return void k(!1);const e=v.current;if(e&&"undefined"!=typeof window){const t=e.getBoundingClientRect(),n=40+40*f.length+12,o=window.innerHeight-t.bottom,r=t.top;k(o<n&&r>o)}const t=e=>{const t=e.target;v.current?.contains(t)||N.current?.contains(t)||y(!1)};return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[b,f.length]),/* @__PURE__ */u("div",{ref:v,style:{position:"relative"},children:[/* @__PURE__ */m(ft,{iconUrl:e,gameName:t,onPress:()=>y(e=>!e),size:n,brandColor:o,cardColor:r,iconColor:i,accentColor:s,captionColor:d}),b&&/* @__PURE__ */u("div",{ref:N,role:"menu",className:"rounded-lg overflow-hidden",style:{position:"absolute",top:w?void 0:"calc(100% + 6px)",bottom:w?"calc(100% + 6px)":void 0,right:0,zIndex:20,backgroundColor:x.background,border:`1px solid ${x.border}`,boxShadow:g,minWidth:180,fontFamily:p},children:[/* @__PURE__ */m("div",{className:"px-3 py-1.5 text-[10px] font-bold tracking-wider uppercase",style:{color:x.text,opacity:.55,borderBottom:`1px solid ${x.border}`},children:"How many picks?"}),f.map((e,t)=>/* @__PURE__ */u("button",{type:"button",role:"menuitem",onClick:()=>{y(!1),h(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 ${x.border}`},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=x.backgroundAlt},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},children:[/* @__PURE__ */u("span",{className:"text-sm font-semibold",style:{color:x.text},children:[e," picks"]}),/* @__PURE__ */m("span",{className:"text-[10px] font-bold tracking-wider",style:{background:Lt(x.primary,.14),color:x.primary,padding:"2px 6px",borderRadius:4},children:"QP"})]},e))]})]})}function Cn({games:e,selectedGame:t,onSelectGame:n,loading:o,error:r,theme:i,colorScheme:d,showTier:p=!1,showCategory:f=!1,showTierFilter:h=!1,selectedPropositionCount:x,onPropositionCountChange:g,onPropositionCountSelected:b,onQuickPickGame:y,maxPayouts:w}){const k=lt(i,d),v=k.colors,N=je(k),F=it(k),B=st(k),C=Le(k),A=Tt(k),M=Ht(k),S=Ee(k),L=s(()=>kn(e),[e]),[z,P]=c(()=>vn(e)),[O,D]=c(null);l(()=>{0!==L.length&&(L.some(e=>e.id===z)||P(L[0].id))},[L,z]);const E=s(()=>!h||L.length<=1?e:wn(e,gn[z]),[e,h,L.length,z]),T=a(null),[H,j]=c(0);l(()=>{const e=T.current;if(!e)return;j(e.getBoundingClientRect().width);const t=new ResizeObserver(e=>{for(const t of e)j(t.contentRect.width)});return t.observe(e),()=>t.disconnect()},[]);const Y=e=>e.allowed_propositions&&e.allowed_propositions.length>0&&e.game_name.replace(/\s+\d+\s*$/,"").trim()||e.game_name;if(o)/* @__PURE__ */return m(St,{colors:Re(k),bodyFont:F,variant:"games",gameCardCount:Math.min(Math.max(e.length,2),4)});if(r)/* @__PURE__ */return m("div",{className:"flex items-center justify-center p-8",style:{fontFamily:F},children:/* @__PURE__ */m("div",{style:{color:v.error},children:r})});if(0===e.length)/* @__PURE__ */return m("div",{className:"flex items-center justify-center p-8",style:{fontFamily:F},children:/* @__PURE__ */m("div",{style:{color:v.textMuted},children:"No games available"})});const R=H>0&&H<400,W=R?88:H>0&&H>=400&&H<480?96:104;/* @__PURE__ */
47
+ return u("div",{ref:T,className:"flex flex-col",style:{fontFamily:F},children:[h&&/* @__PURE__ */m(Fn,{tabs:L,active:z,onChange:P,colors:v,bodyFont:F}),0===E.length?/* @__PURE__ */m("div",{className:"flex items-center justify-center p-8",children:/* @__PURE__ */m("div",{style:{color:v.textMuted},children:"No games in this collection"})}):/* @__PURE__ */m("div",{className:"grid grid-cols-1 min-[420px]:grid-cols-2 gap-3",children:E.map(e=>{const o=function(e){const t=e.available_days;if(!t)return!0;if(0===t.length)return!0;const n=((/* @__PURE__ */new Date).getDay()+6)%7;return t.includes(n)}(e),r=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>Be[e]??`Day ${e}`);return 1===n.length?n[0]:n.slice(0,-1).join(", ")+" & "+n[n.length-1]}(e),l=t?.id===e.id,i=String(e.id),s=me(e),a=e.description||e.rule,c=e.allowed_propositions&&e.allowed_propositions.length>0?e.allowed_propositions:[],d=e.min_propositions??e.num_propositions??null,h=e.max_propositions??e.num_propositions??null,x=0===c.length&&null!==d&&null!==h&&h>0,L=x?Me(d,h):[],z=c.length>0?c:L,P=(()=>{const t=/* @__PURE__ */new Map;w?.[e.id]?.top_payouts?.length&&w[e.id].top_payouts.forEach(e=>{const n=Number(e.proposition_count),o=Number(e.net_payout),r=Number(e.bet_amount??20);!Number.isFinite(n)||n<=0||t.set(n,{count:n,payout:Number.isFinite(o)?o:0,betAmount:Number.isFinite(r)&&r>0?r:20})});for(const e of z){const n=Number(e);t.has(n)||t.set(n,{count:n,payout:0,betAmount:20})}return Array.from(t.values()).sort((e,t)=>e.count-t.count)})(),E=z.length>0?Math.max(...z.map(Number)):0,T=q(e),H=un(e)?xn(e):null,j=H?H.dividends.map(e=>({dividend:e.dividend,stakeFrom:Math.min(...e.rungs.map(e=>e.stake))})):void 0,G=H?[]:P.map(e=>({count:e.count,payout20:e.payout>0&&e.betAmount>0?e.payout/e.betAmount*20:0})),I=an(e,E),U="safety_net"===I?.kind?(I.options??[]).flatMap(e=>e.dividends?.length?[{id:e.id,label:e.label,tiers:e.dividends.map(e=>({label:e.label,payout20:e.payout20}))}]:[]):[],K=(c.length>0||x)&&G.some(e=>e.payout20>0),Z=!!a||U.length>0||K||!!j?.length,V=U.length>0?U.reduce((e,t)=>t.tiers.reduce((e,t)=>Math.max(e,t.payout20),e),0):G.reduce((e,t)=>t.payout20>e?t.payout20:e,0);/* @__PURE__ */
48
+ return u("div",{className:"flex flex-col items-center rounded-[18px] border px-3.5 pt-6 pb-5 gap-1 text-center transition-all",style:{borderColor:l?v.primary:v.border,backgroundColor:l?v.infoBg:v.background??N,boxShadow:A,opacity:o?1:.5,pointerEvents:o?"auto":"none",position:"relative",zIndex:O===i?1:void 0},children:[e.quick_pick_only&&y&&z.length>1?/* @__PURE__ */m(Bn,{iconUrl:T,gameName:Y(e),size:W,brandColor:v.primary,cardColor:N,iconColor:v.primaryText,accentColor:S,captionColor:v.textMuted,bodyFont:F,legOptions:z.map(Number),onPick:t=>y(e,t),colors:v,menuShadow:M}):/* @__PURE__ */m(ft,{iconUrl:T,gameName:Y(e),onPress:()=>{e.quick_pick_only&&y&&E>0?y(e,E):(E>0&&!Zt(e)&&g?.(E),n(e),b?.())},size:W,brandColor:v.primary,cardColor:N,iconColor:v.primaryText,accentColor:S,captionColor:v.primary}),
49
+ /* @__PURE__ */u("div",{className:"mt-1",style:{fontFamily:B,fontSize:12,letterSpacing:"-0.04em",lineHeight:1},children:[/* @__PURE__ */m("span",{style:{fontWeight:800,color:v.primary},children:"YES"}),/* @__PURE__ */m("span",{style:{fontWeight:600,color:Lt(v.primary,.85)},children:"NO"})]}),
50
+ /* @__PURE__ */m("div",{className:"font-semibold leading-tight px-1",style:{fontFamily:B,fontSize:R?15:17,color:C,letterSpacing:"-0.01em"},children:Y(e)}),s.enabled&&/* @__PURE__ */u("span",{className:"inline-flex w-fit items-center gap-0.5 px-2 py-0.5 rounded-full mt-1",style:{backgroundColor:`${v.warning}15`,color:v.warning,fontSize:10,fontWeight:700},children:["★ ",s.progressive?s.amount>0?ee(s.amount):s.limit>0?`Up to ${ee(s.limit)}`:"Jackpot":ee(s.amount)]}),!o&&r&&/* @__PURE__ */u("span",{className:"text-xs font-semibold mt-1",style:{color:v.textMuted},children:["Available ",r]}),Z&&/* @__PURE__ */m(Nn,{howToPlay:a||"Pick outcomes and land the payout for this game.",maxPayout:V,tiers:G,modes:U,pydDividends:j,colors:v,bodyFont:F,headingFont:B,menuShadow:M,onOpenChange:e=>D(t=>e?i:t===i?null:t)}),(f||p)&&/* @__PURE__ */u("div",{className:"flex flex-wrap gap-1 justify-center mt-2",children:[f&&e.category&&/* @__PURE__ */m("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:v.backgroundAlt,color:ze(k)},children:e.category}),f&&/* @__PURE__ */m("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:v.backgroundAlt,color:ze(k)},children:e.rule}),f&&e.lotto_type&&/* @__PURE__ */m("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:v.backgroundAlt,color:ze(k)},children:e.lotto_type}),p&&null!=e.tier&&/* @__PURE__ */u("span",{className:"px-1.5 py-0.5 rounded text-xs",style:{backgroundColor:v.backgroundAlt,color:ze(k)},children:["Tier ",e.tier]})]}),!x&&0===c.length&&/* @__PURE__ */m("div",{className:"mt-2 w-full",children:/* @__PURE__ */m(Yt,{theme:k,variant:"primary",size:"sm",onPress:()=>{n(e),b?.()},children:"Select game"})})]},i)})})]})}function An({propositions:e,selections:t,onToggleSelection:n,onNext:o,onBack:r,theme:l,colorScheme:i,hideActions:s=!1,renderTeamLogo:a,showHomeAway:p=!1,allowAnswerToggle:f=!0,gameName:h,potentialPayout:x,defaultExpanded:g=!1,addMorePicks:b}){const y=lt(l,i),w=y.colors,k=je(y),v=it(y),N=st(y),F=Le(y),B=w.textAlt??w.text,[C,A]=c(null),[M,S]=c(g),L=e.filter(e=>e.id in t),z=L.length;/* @__PURE__ */
51
+ return u("div",{className:"space-y-4 sm:space-y-6 pb-16",style:{fontFamily:v},children:[
52
+ /* @__PURE__ */u("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:k,borderColor:w.border,boxShadow:Tt(y)},children:[
53
+ /* @__PURE__ */u("button",{type:"button",onClick:()=>S(e=>!e),"aria-expanded":M,"aria-controls":"selection-review-list",className:"w-full flex items-center justify-between gap-3 text-left",style:{background:"none",border:"none",padding:0,cursor:"pointer",color:"inherit"},children:[/* @__PURE__ */u("div",{className:"flex items-center gap-2 min-w-0",children:[/* @__PURE__ */m("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{color:w.textMuted,flexShrink:0,transform:M?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.15s ease"},children:/* @__PURE__ */m("path",{d:"m6 9 6 6 6-6"})}),/* @__PURE__ */u("div",{className:"min-w-0",children:[/* @__PURE__ */u("h3",{className:"text-base sm:text-lg font-semibold flex items-center gap-2",style:{color:F,fontFamily:N},children:[/* @__PURE__ */m("span",{children:"Your Selections"}),/* @__PURE__ */m("span",{className:"text-xs font-semibold px-1.5 py-0.5 rounded-full",style:{color:w.primaryText,backgroundColor:w.primary},children:z})]}),h&&/* @__PURE__ */m("p",{className:"text-sm mt-0.5 truncate",style:{color:w.textMuted},children:h})]})]}),null!=x&&x>0&&/* @__PURE__ */u("div",{className:"text-right flex-shrink-0",children:[/* @__PURE__ */m("span",{className:"text-[10px] uppercase tracking-wide block",style:{color:w.textMuted},children:"Potential Payout"}),/* @__PURE__ */m("span",{className:"text-sm font-bold",style:{color:F},children:ee(x)})]})]}),b&&b.remaining>0&&/* @__PURE__ */u("div",{className:"mt-3 sm:mt-4 p-3 rounded-lg border flex items-center justify-between gap-3",style:{backgroundColor:`${w.primary}08`,borderColor:`${w.primary}30`},children:[/* @__PURE__ */u("p",{className:"text-xs",style:{color:w.textMuted},children:[1===b.remaining?"Add ":"Add up to ",
54
+ /* @__PURE__ */u("span",{style:{color:w.primary,fontWeight:700},children:[b.remaining," more pick",1!==b.remaining?"s":""]}),null!=b.potentialPayout&&b.potentialPayout>0&&/* @__PURE__ */u(d,{children:[" ","to win up to"," ",
55
+ /* @__PURE__ */m("span",{style:{color:F,fontWeight:700},children:ee(b.potentialPayout)})," ","with ",b.max," picks"]})]}),/* @__PURE__ */m("button",{type:"button",onClick:e=>{e.stopPropagation(),b.onAdd()},className:"flex-shrink-0 px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:w.buttonPrimaryText,backgroundColor:w.buttonPrimary,cursor:"pointer"},children:"Add picks"})]}),M&&(0===L.length?/* @__PURE__ */m("div",{className:"text-center py-8 mt-3 sm:mt-4",style:{color:w.textMuted},children:"No selections made yet"}):/* @__PURE__ */m("div",{id:"selection-review-list",className:"space-y-2 sm:space-y-3 mt-3 sm:mt-4",children:L.map((e,o)=>{const l=t[e.id],i="yes"===l,s="no"===l;/* @__PURE__ */
56
+ return m("div",{className:"p-3 sm:p-3.5 rounded-lg",style:{backgroundColor:w.backgroundAlt},children:/* @__PURE__ */u("div",{className:"flex items-start gap-2 sm:gap-3",children:[
57
+ /* @__PURE__ */m("div",{className:"flex-shrink-0 w-5 h-5 sm:w-6 sm:h-6 rounded-full flex items-center justify-center text-xs sm:text-sm font-semibold",style:{backgroundColor:w.primary,color:w.primaryText},children:o+1}),
58
+ /* @__PURE__ */u("div",{className:"flex-1 min-w-0",children:[/* @__PURE__ */u("p",p?{className:"font-semibold text-sm sm:text-base leading-snug flex flex-wrap items-center gap-x-1.5 gap-y-0.5",style:{color:B},children:[a&&e.home_team&&/* @__PURE__ */u("span",{className:"inline-flex items-center gap-1",children:[a(e.home_team),e.home_team]}),!a&&e.home_team,
59
+ /* @__PURE__ */m("span",{className:"font-normal text-xs",style:{color:w.textAltMuted??w.textMuted},children:"vs"}),a&&e.away_team&&/* @__PURE__ */u("span",{className:"inline-flex items-center gap-1",children:[a(e.away_team),e.away_team]}),!a&&e.away_team]}:{className:"font-semibold text-sm sm:text-base leading-snug flex items-center gap-2",style:{color:B},children:[a&&(e.outcome||e.description)&&a(e.outcome||e.description),e.description]}),p&&/* @__PURE__ */m("p",{className:"text-sm mt-1",style:{color:w.textAltMuted??w.textMuted},children:e.description}),
60
+ /* @__PURE__ */m("p",{className:"text-xs mt-0.5",style:{color:w.textAltMuted??w.textMuted,opacity:.7},children:e.commence_time&&te(e.commence_time)})]}),
61
+ /* @__PURE__ */u("div",{className:"flex items-center gap-2 flex-shrink-0",children:[f?/* @__PURE__ */m(Gt,{theme:y,size:"sm",value:i?"yes":s?"no":null,onYes:t=>{t.stopPropagation(),n(e.id,"yes")},onNo:t=>{t.stopPropagation(),n(e.id,"no")}}):l&&/* @__PURE__ */m(It,{theme:y,value:"yes"===l?"yes":"no",size:"sm"}),/* @__PURE__ */m("button",{type:"button",onClick:o=>{o.stopPropagation(),n(e.id,t[e.id]),r()},onMouseEnter:()=>A(e.id),onMouseLeave:()=>A(null),className:"w-5 h-5 flex items-center justify-center rounded-full transition-colors",style:{color:C===e.id?"#fff":w.textAltMuted??w.textMuted,cursor:"pointer",backgroundColor:C===e.id?w.error:w.backgroundAlt},title:"Remove selection",children:/* @__PURE__ */m("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",strokeWidth:"2.5",viewBox:"0 0 24 24",children:/* @__PURE__ */m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})]})},e.id)})}))]}),
62
+ /* @__PURE__ */m("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:k,borderColor:w.border,boxShadow:Tt(y)},children:/* @__PURE__ */u("div",{className:"flex justify-between text-sm",children:[/* @__PURE__ */m("span",{style:{color:w.textMuted},children:"Total Selections"}),/* @__PURE__ */m("span",{className:"font-semibold",style:{color:w.text},children:L.length})]})}),!s&&/* @__PURE__ */u("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:w.border,backgroundColor:w.background},children:[/* @__PURE__ */m(Yt,{theme:y,variant:"secondary",onPress:r,children:"Back"}),/* @__PURE__ */m(Yt,{theme:y,variant:"primary",disabled:0===L.length,onPress:o,children:"Place bet"})]})]})}function Mn({game:t,propositions:n,selections:o,onToggleSelection:r,onRemoveSelection:l,onSubmit:i,onBack:s,loading:a,error:p,expectedCorrect:f,onExpectedCorrectChange:h,betAmount:x,onBetAmountChange:g,theme:b,colorScheme:y,hideActions:w=!1,winningCounts:k,payouts:v,renderTeamLogo:N,showCustomAmount:F=!1,betAmountLocked:B=!1,betAmountLockedNote:C,canSubmit:A,userBalance:M,onRecharge:S,boostBanner:L}){const z=lt(b,y),P=z.colors,O=je(z),D=it(z),E=st(z),T=Le(z),H=ze(z),j=Pe(z),Y=P.textAlt??P.text,R=n.length,W=t.min_bet??0,G=Math.max(W,.01),I=t.max_bet??null,U=[5,10,20,50,100,200,500].filter(e=>e>=G&&(null===I||e<=I)).slice(0,4),K={};for(let e=0;e<=R;e++)K[e]=x*e;const Z=v??K,V=Z[f]??0,q=me(t),X=q.enabled&&f===R,[Q,J]=c(null),[$,_]=c(!0),te=a||x<G||!1===A,ne=null!=M&&x>M,oe=w&&!!i,re=o?n.filter(e=>e.id in o):n,le=Object.entries(Z).map(([e,t])=>({correct:Number(e),payout:t})).filter(e=>e.correct>0&&e.payout>0).sort((e,t)=>e.correct-t.correct),ie=1===le.length?le[0].correct:null;return e.useEffect(()=>{null!==ie&&f!==ie&&h(ie)},[ie]),/* @__PURE__ */u("div",{className:"space-y-3 sm:space-y-4 pb-16",style:{fontFamily:D},children:[
63
+ /* @__PURE__ */u("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:O,borderColor:P.border,boxShadow:Tt(z)},children:[
64
+ /* @__PURE__ */u("div",{className:"flex items-center justify-between gap-3",children:[/* @__PURE__ */u("button",{type:"button",onClick:()=>_(e=>!e),"aria-expanded":$,"aria-controls":"entry-submission-selections","aria-label":$?"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__ */m("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{color:P.textMuted,flexShrink:0,transform:$?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.15s ease"},children:/* @__PURE__ */m("path",{d:"m6 9 6 6 6-6"})}),/* @__PURE__ */m("h3",{className:"text-sm sm:text-base font-semibold",style:{color:T,fontFamily:E},children:"Review Selections"})]}),/* @__PURE__ */u("span",{className:"text-xs font-semibold px-2 py-0.5 rounded-full flex-shrink-0",style:{color:P.primary,backgroundColor:`${P.primary}15`},children:[re.length," pick",1!==re.length?"s":""]})]}),!$&&/* @__PURE__ */m("p",{className:"text-xs mt-2",style:{color:P.textMuted},children:"Tap to show your picks"}),$&&/* @__PURE__ */m("div",{id:"entry-submission-selections",className:"space-y-2 mt-3",children:re.map(e=>{const t=o?.[e.id],n="yes"===t,i="no"===t,s=!!r;/* @__PURE__ */
65
+ return u("div",{className:"flex items-start gap-2 py-2 px-3 rounded cursor-default",style:{backgroundColor:P.backgroundAlt},children:[
66
+ /* @__PURE__ */u("div",{className:"flex-1 min-w-0",children:[/* @__PURE__ */u("p",{className:"text-xs sm:text-sm font-medium break-words leading-snug",style:{color:Y},children:[e.home_team,e.away_team&&/* @__PURE__ */u(d,{children:[" ",
67
+ /* @__PURE__ */m("span",{style:{color:P.textMuted},children:"vs"})," ",e.away_team]})]}),/* @__PURE__ */m("p",{className:"text-[11px] break-words leading-snug mt-0.5",style:{color:P.textMuted},children:e.description})]}),s?/* @__PURE__ */m(Gt,{theme:z,size:"xs",value:n?"yes":i?"no":null,onYes:()=>r(e.id,"yes"),onNo:()=>r(e.id,"no")}):t?/* @__PURE__ */m(It,{theme:z,value:"yes"===t?"yes":"no",size:"sm",style:{flexShrink:0}}):null,$&&l&&/* @__PURE__ */m("button",{type:"button",onClick:()=>{t&&r?.(e.id,t),l(e.id)},onMouseEnter:()=>J(e.id),onMouseLeave:()=>J(null),className:"flex-shrink-0 w-4 h-4 flex items-center justify-center rounded-full transition-colors",style:{color:Q===e.id?"#fff":P.textMuted,backgroundColor:Q===e.id?P.error:"transparent",cursor:"pointer"},children:/* @__PURE__ */m("svg",{className:"w-2.5 h-2.5",fill:"none",stroke:"currentColor",strokeWidth:"2.5",viewBox:"0 0 24 24",children:/* @__PURE__ */m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]},e.id)})}),L&&/* @__PURE__ */m("div",{className:"mt-2",children:L})]}),oe&&/* @__PURE__ */u("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:P.textMuted},children:[/* @__PURE__ */m("span",{"aria-hidden":!0,children:"↓"}),"Scroll down to set your bet and place your entry"]}),
68
+ /* @__PURE__ */u("div",{className:"p-4 sm:p-6 rounded-xl border",style:{backgroundColor:O,borderColor:P.border,boxShadow:Tt(z)},children:[
69
+ /* @__PURE__ */u("div",{className:"flex items-center justify-between mb-3 sm:mb-4",children:[/* @__PURE__ */m("h3",{className:"text-base sm:text-lg font-semibold",style:{color:T,fontFamily:E},children:"How much are you betting?"}),null!=M&&/* @__PURE__ */u("span",{className:"text-xs font-semibold",style:{color:P.textMuted},children:["Balance: ",/* @__PURE__ */m("span",{style:{color:ne?P.error:P.success},children:ee(M)})]})]}),ne&&/* @__PURE__ */u("div",{className:"mb-3 px-3 py-2 rounded-lg flex items-center justify-between gap-3",style:{backgroundColor:P.errorBg??`${P.error}15`,color:P.errorText??P.error},children:[/* @__PURE__ */u("span",{className:"text-xs font-medium",children:["Insufficient balance. Your bet of ",ee(x)," exceeds your available ",ee(M),"."]}),S&&/* @__PURE__ */m("button",{type:"button",onClick:S,className:"text-xs font-semibold px-3 py-1 rounded-md whitespace-nowrap",style:{backgroundColor:P.error,color:P.buttonPrimaryText??"#fff",cursor:"pointer"},children:"Add funds"})]}),/* @__PURE__ */u("div",B?{className:"flex items-center justify-between gap-3 rounded-lg px-3 py-2.5",style:{backgroundColor:P.backgroundAlt,border:`1px solid ${P.border}`},children:[/* @__PURE__ */m("span",{className:"text-xs",style:{color:P.textMuted},children:C??"Stake is set for this ticket."}),/* @__PURE__ */m("span",{className:"text-lg font-bold tabular-nums",style:{color:T,fontFamily:E},children:ee(x)})]}:{className:"space-y-4",children:[F&&/* @__PURE__ */u("div",{children:[
70
+ /* @__PURE__ */m("p",{className:"text-xs sm:text-sm font-semibold mb-2",style:{color:H},children:"Entry amount"}),
71
+ /* @__PURE__ */u("div",{className:"relative",children:[/* @__PURE__ */m("span",{className:"absolute left-3 top-1/2 -translate-y-1/2",style:{color:P.textMuted},children:"$"}),/* @__PURE__ */m("input",{type:"number",inputMode:"decimal",min:G,max:I??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!==I?Math.min(n,I):n)},onFocus:e=>{e.currentTarget.style.borderColor=P.borderFocus??P.primary},onBlur:e=>{e.currentTarget.style.borderColor=P.border},className:"w-full pl-8 pr-4 py-3 border rounded-lg focus:outline-none text-lg font-semibold tabular-nums",style:{borderColor:P.border,color:Y,backgroundColor:P.backgroundAlt,fontFamily:D,transition:"border-color .15s ease"}})]}),
72
+ /* @__PURE__ */u("p",{className:"text-xs mt-1.5",style:{color:P.textMuted},children:["Minimum bet: ",ee(G),null!==I&&/* @__PURE__ */u(d,{children:[" · Maximum: ",ee(I)]})]}),x>0&&x<G&&/* @__PURE__ */u("p",{className:"text-xs mt-1",style:{color:P.error},children:["Bet amount must be at least ",ee(G)]})]}),/* @__PURE__ */u("div",{children:[(F||x>0)&&/* @__PURE__ */u("div",{className:"flex items-center justify-between mb-2",children:[F?/* @__PURE__ */m("p",{className:"text-xs sm:text-sm font-semibold",style:{color:H},children:"Add to bet"}):/* @__PURE__ */m("span",{}),x>0&&/* @__PURE__ */m("button",{type:"button",onClick:()=>g(0),className:"text-xs font-semibold px-2.5 py-1 rounded-md transition-colors",style:{color:P.textMuted,backgroundColor:P.backgroundAlt,border:`1.5px solid ${P.border}`,cursor:"pointer"},children:"Clear bet"})]}),/* @__PURE__ */m("div",{style:{display:"grid",gridTemplateColumns:`repeat(${Math.max(U.length,1)}, minmax(0, 1fr))`,gap:8},children:U.map(e=>{const t=null!==I&&x>=I;/* @__PURE__ */
73
+ return u("button",{type:"button",onClick:()=>{const t=x+e;g(null!==I?Math.min(t,I):t)},disabled:t,className:"px-3 py-2.5 rounded-lg text-sm font-semibold transition-colors min-w-0",style:{color:Y,backgroundColor:"transparent",border:`1px solid ${P.border}`,cursor:t?"not-allowed":"pointer",opacity:t?.5:1},children:["+",ee(e)]},e)})})]})]})]}),
74
+ /* @__PURE__ */m("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:O,borderColor:P.border,boxShadow:Tt(z)},children:(()=>{const e=w&&!!i,t=/* @__PURE__ */u(d,{children:[
75
+ /* @__PURE__ */u("div",{className:"flex justify-between items-center text-sm mb-1",children:[/* @__PURE__ */m("span",{style:{color:H},children:"Bet"}),/* @__PURE__ */m("span",{className:"font-semibold",style:{color:j},children:ee(x)})]}),V>0&&/* @__PURE__ */u("div",{className:"flex justify-between items-center pt-2 border-t",style:{borderColor:P.border},children:[/* @__PURE__ */m("span",{className:"font-semibold text-sm",style:{color:H},children:"Potential Payout"}),/* @__PURE__ */u("span",{className:"font-bold text-lg",style:{color:T},children:[ee(V),X&&/* @__PURE__ */m("span",{className:"text-xs ml-1",style:{color:P.warning},children:"+ Jackpot"})]})]}),q.enabled&&/* @__PURE__ */u("div",{className:"flex justify-between items-center mt-2 rounded px-2 py-1.5",style:{backgroundColor:`${P.warning}08`,border:`1px solid ${P.warning}25`},children:[/* @__PURE__ */u("span",{className:"text-xs font-semibold",style:{color:P.warning},children:["★ ",q.progressive?"Progressive Jackpot":"Jackpot"]}),/* @__PURE__ */m("span",{className:"text-sm font-bold",style:{color:P.warning},children:q.progressive?q.amount>0?ee(q.amount):q.limit>0?`Up to ${ee(q.limit)}`:"Progressive":ee(q.amount)})]})]});return e?/* @__PURE__ */u("div",{className:"flex items-stretch gap-4",children:[
76
+ /* @__PURE__ */m("div",{className:"flex-1 min-w-0",children:t}),
77
+ /* @__PURE__ */m("div",{className:"w-px self-stretch",style:{backgroundColor:P.border}}),
78
+ /* @__PURE__ */m("button",{type:"button",onClick:i,disabled:te,"aria-busy":a,className:"flex-shrink-0 flex flex-col items-center justify-center px-5 py-3 rounded-lg text-sm font-semibold transition-colors disabled:opacity-50 disabled:cursor-not-allowed",style:{color:P.buttonPrimaryText,backgroundColor:P.buttonPrimary,cursor:te?"not-allowed":"pointer",minWidth:120},children:a?/* @__PURE__ */u("span",{className:"flex flex-col items-center gap-2",children:[/* @__PURE__ */m(bt,{color:P.buttonPrimaryText}),/* @__PURE__ */m("span",{children:"Placing Entry…"})]}):/* @__PURE__ */u(d,{children:[/* @__PURE__ */m("span",{className:"text-base font-bold leading-tight",children:"Place Entry"}),/* @__PURE__ */m("span",{className:"text-xs opacity-90 leading-tight mt-0.5",children:ee(x)})]})})]}):t})()}),p&&/* @__PURE__ */m("div",{className:"rounded-lg p-3",style:{backgroundColor:P.errorBg,border:`1px solid ${P.error}`},children:/* @__PURE__ */m("p",{className:"text-sm",style:{color:P.errorText},children:p})}),!w&&/* @__PURE__ */u("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:P.background},children:[/* @__PURE__ */m(Yt,{theme:z,variant:"secondary",disabled:a,onPress:s,children:"Back"}),/* @__PURE__ */m("button",{type:"button",onClick:i,disabled:te,"aria-busy":a,className:"px-6 py-2.5 rounded-lg text-sm font-semibold transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",style:{color:P.buttonPrimaryText,backgroundColor:P.buttonPrimary,cursor:te?"not-allowed":"pointer"},children:a?/* @__PURE__ */u(d,{children:[/* @__PURE__ */m(bt,{color:P.buttonPrimaryText}),/* @__PURE__ */m("span",{children:"Placing Entry…"})]}):/* @__PURE__ */m("span",{children:`Place Entry (${ee(x)})`})})]})]})}function Sn({game:e,totalSelections:t,expectedCorrect:n,className:o="",onExpectedCorrectChange:r,theme:l=Ie,colorWinning:i,colorNone:s,winningCounts:a,payouts:c}){const d=l.colors,p=i??d.payoutWinning,f=s??d.payoutNone,h=me(e);/* @__PURE__ */
79
+ return u("div",{className:`space-y-4 ${o}`,children:[
80
+ /* @__PURE__ */m("h4",{className:"text-sm font-semibold text-center",style:{color:d.textMuted},children:"Payout Visualization"}),h.enabled&&/* @__PURE__ */u("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__ */m("svg",{className:"w-4 h-4 flex-shrink-0",viewBox:"0 0 24 24",fill:"currentColor",children:/* @__PURE__ */m("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__ */m("span",{children:h.progressive?h.amount>0?`Progressive Jackpot: ${ee(h.amount)}${h.limit>0?` (up to ${ee(h.limit)})`:""} for a perfect pick!`:h.limit>0?`Progressive Jackpot — up to ${ee(h.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${ee(h.amount)} for a perfect pick!`})]}),
81
+ /* @__PURE__ */m("div",{className:"flex flex-wrap gap-1.5 sm:gap-2 justify-center",children:Array.from({length:t+1},(e,o)=>{const l=a.includes(o),i=c[o]??0,s=i>0,x=o===t,g=h.enabled&&x,b=g?d.warning:l?p:f,y=o===n;/* @__PURE__ */
82
+ return u("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:b,borderColor:g?d.warning:l?b:void 0,color:l||g?"#ffffff":d.textMuted,zIndex:y?10:g?6:l?5:1,...g?{"--tw-ring-color":`${d.warning}80`}:{},...y?{outline:`3px solid ${d.primary}`,outlineOffset:"3px"}:{}},title:g?h.progressive?`${o} correct wins PROGRESSIVE JACKPOT${h.amount>0?` (currently ${ee(h.amount)})`:""}${h.limit>0?` — up to ${ee(h.limit)}`:""} + ${ee(i)}\nClick to select`:`${o} correct wins JACKPOT ${ee(h.amount)} + ${ee(i)}\nClick to select`:l?`${o} correct wins ${ee(i)}\nClick to select`:s?`${o} correct pays ${ee(i)} but does not win\nClick to select`:`${o} correct - no payout\nClick to select`,children:[g&&/* @__PURE__ */m("div",{className:"absolute -top-1.5 -right-1.5",children:/* @__PURE__ */m("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:d.warning,stroke:d.warning,strokeWidth:"1",children:/* @__PURE__ */m("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"})})}),
83
+ /* @__PURE__ */m("div",{className:"text-sm sm:text-base leading-none",children:o}),i>0?/* @__PURE__ */m("div",{className:"text-[7px] sm:text-[8px] font-normal leading-none",children:ee(i)}):null]},o)})}),
84
+ /* @__PURE__ */m("div",{className:"text-xs text-center",style:{color:d.textMuted},children:/* @__PURE__ */u("p",{children:["Your expected: ",/* @__PURE__ */u("span",{className:"font-semibold",children:[n," correct"]})]})})]})}var Ln=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,i=l,s=!l&&!n?.idempotent,a=`${r} ${o}`;if(i){const e=this.cache.get(a);if(e&&Date.now()-e.at<5e3)return e.value;const t=this.inflight.get(a);if(t)return t}const c=i?this.cache.get(a):void 0,d=(async()=>{let e;try{const n=this.getAuthHeaders?await this.getAuthHeaders():void 0;e=await this.fetchImpl(o,{...t,headers:{"Content-Type":"application/json",...this.apiKey?{"X-API-Key":this.apiKey}:{},...n??{},...c?.etag?{"If-None-Match":c.etag}:{},...t?.headers}})}catch(r){throw r}if(304===e.status&&c)return i&&this.cache.set(a,{at:Date.now(),value:c.value,etag:c.etag}),c.value;if(!e.ok){let t=`API request failed: ${e.status} ${e.statusText}`;try{const n=await e.json();422===e.status&&n.detail?Array.isArray(n.detail)?t=n.detail.map(e=>`${Array.isArray(e.loc)?e.loc.join("."):"field"}: ${e.msg}`).join("; "):"string"==typeof n.detail?t=n.detail:"object"==typeof n.detail&&(t=JSON.stringify(n.detail)):n.message?t=n.message:n.error&&(t=n.error)}catch{}throw new Error(t)}const n=await e.json();if(i){const t=e.headers.get("ETag")??void 0;this.cache.set(a,{at:Date.now(),value:n,etag:t})}return n})();return i?(this.inflight.set(a,d),d.catch(()=>{}).finally(()=>{this.inflight.delete(a)})):s&&d.finally(()=>this.invalidateCache()).catch(()=>{}),d}async getGames(e){const t=new URLSearchParams;e?.category&&t.append("category",e.category),e?.jurisdiction&&t.append("jurisdiction",e.jurisdiction),e?.sport&&t.append("sport",e.sport);const n=t.toString(),o=n?`/games?${n}`:"/games",r=await this.request(o);return{games:r.payload||[],howToPlayMarkdown:r.how_to_play_markdown??null}}async getGame(e){return(await this.request(`/games/${e}`)).payload}async getPropositions(e){const t=new URLSearchParams;e?.event_id&&t.append("event_id",e.event_id),e?.sport&&t.append("sport",e.sport),e?.category&&t.append("category",e.category);const n=t.toString(),o=n?`/propositions?${n}`:"/propositions";return(await this.request(o)).payload||[]}async getSports(){return(await this.request("/propositions/sports")).sports||[]}async getPropositionsByIds(e){if(0===e.length)return[];const t=new URLSearchParams({ids:e.join(","),include_expired:"true"});return(await this.request(`/propositions?${t.toString()}`)).payload||[]}async getProposition(e){const t=(await this.request(`/propositions/${e}?include_expired=true`)).payload;return Array.isArray(t)?t.find(t=>t.id===e)??t[0]:t}async getGameEntries(e){const t=new URLSearchParams;null!=e?.user_id&&t.append("user_id",String(e.user_id)),null!=e?.pending&&t.append("pending",String(e.pending));const n=t.toString(),o=n?`/game-entries?${n}`:"/game-entries";return((await this.request(o)).payload||[]).map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),null!=t.stake&&null==t.bet_amount&&(t.bet_amount=Number(t.stake)),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t})}async createGameEntry(e){const t=e.proposition_ids.map(t=>({proposition_id:t,user_prediction:e.selections?.[t]??"yes"})),n={game_id:e.game_id,user_id:e.user_id,propositions:t};null!=e.stake&&(n.stake=e.stake);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,i]of Object.entries(o.payload||{}))r[Number(l)]=i;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 zn(e,t,n){const[r,i]=c([]),[s,d]=c(null),[m,u]=c(!n?.skip),[p,f]=c(null),h=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",x=a(t);x.current=t;const g=n?.skip??!1,b=o(async()=>{if(!g)try{u(!0),f(null);const t=await e.getGames(x.current);i(t.games),d(t.howToPlayMarkdown)}catch(t){f(t instanceof Error?t.message:"Failed to fetch games")}finally{u(!1)}},[e,h,g]);return l(()=>{b()},[b]),{games:r,howToPlayMarkdown:s,loading:m,error:p,refetch:o(async()=>{e.invalidate(),await b()},[e,b])}}function Pn(e,t,n){const[r,i]=c([]),[s,d]=c(!n?.skip),[m,u]=c(null),p=n?.skip??!1,f=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",h=a(t);h.current=t;const x=o(async()=>{if(!p)try{d(!0),u(null),i(await e.getPropositions(h.current))}catch(t){u(t instanceof Error?t.message:"Failed to fetch propositions")}finally{d(!1)}},[e,f,p]);return l(()=>{x()},[x]),{propositions:r,loading:s,error:m,refetch:o(async()=>{e.invalidate(),await x()},[e,x])}}function On(e,t){const[n,r]=c([]),[i,s]=c(!t?.skip),[a,d]=c(null),m=t?.skip??!1,u=o(async()=>{if(!m)try{s(!0),d(null),r(await e.getSports())}catch(t){d(t instanceof Error?t.message:"Failed to fetch sports")}finally{s(!1)}},[e,m]);return l(()=>{u()},[u]),{sports:n,loading:i,error:a,refetch:o(async()=>{e.invalidate(),await u()},[e,u])}}function Dn(e,t,n){const[r,i]=c([]),[s,d]=c(!n?.skip),[m,u]=c(null),p=n?.skip??!1,f=t?`${t.user_id??""}_${t.pending??""}`:"",h=a(t);h.current=t;const x=o(async()=>{if(!p)try{d(!0),u(null),i(await e.getGameEntries(h.current))}catch(t){u(t instanceof Error?t.message:"Failed to fetch entries")}finally{d(!1)}},[e,f,p]);return l(()=>{x()},[x]),{entries:r,loading:s,error:m,refetch:o(async()=>{e.invalidate(),await x()},[e,x])}}function En(e,t,n){const[r,i]=c({}),[s,d]=c(!1),m=n?.skip??!1,u=n?.betAmount,p=a(/* @__PURE__ */new Set);return l(()=>{if(m||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),u);o||i(e=>({...e,...t}))}catch{}finally{o||d(!1)}})(),()=>{o=!0}},[e,t.map(e=>e.id).join(","),m,u]),{maxPayouts:r,loading:s,refetchGame:o(async(t,n)=>{if(!m)try{const o=await e.getGamesMaxPayouts([t],n??u);o[t]&&i(e=>({...e,[t]:o[t]}))}catch{}},[e,m,u])}}function Tn(e){const[t,n]=c(!1),[o,r]=c(null),[l,i]=c(null);return{createEntry:async t=>{try{n(!0),r(null);const o=await e.createGameEntry(t);return i(o),o}catch(o){const e=o instanceof Error?o.message:"Failed to create entry";throw r(e),new Error(e)}finally{n(!1)}},loading:t,error:o,entry:l}}function Hn(e){const[t,n]=c(e?"sport":"game"),[o,r]=c(null),[l,i]=c({}),[s,a]=c(null);return{step:t,selectedGame:o,selections:l,placedEntry:s,setGameOnly:e=>{r(e)},clearSelectedGame:()=>{r(null),i({})},goToSportSelection:e=>{e&&r(e),n("sport")},goToConfirmation:()=>{n("confirm")},goToSuccess:e=>{a(e),n("success")},goBack:()=>{"confirm"===t?n("sport"):"sport"===t&&(n("game"),r(null),i({}))},reset:()=>{n("game"),r(null),i({}),a(null)},toggleSelection:(e,t)=>{i(n=>{const o={...n};return o[e]===t?delete o[e]:o[e]=t,o})}}}function jn(e){const[t,n]=c(!1),[r,l]=c(null),[i,s]=c(null);return{evaluate:o(async(t,o)=>{try{n(!0),l(null);const r=await e.evaluateRule(t,o);return s(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:i}}function Yn(e){const[t,n]=c(!1),[r,l]=c(null),[i,s]=c(null);return{calculate:o(async(t,o)=>{try{n(!0),l(null);const r=await e.calculatePayout(t,o);return s(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:i}}function Rn(e){const[t,n]=c(!1),[r,l]=c(null),[i,s]=c(null);return{preview:o(async(t,o)=>{try{n(!0),l(null);const r=await e.getEntryPreview(t,o);return s(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:i}}function Wn({iconUrl:e,gameName:t,chipColor:n,textColor:o,iconColor:r,accentColor:l,brandColor:i,height:s=56,showTrademark:a=!0,className:c,compact:p=!1,onPress:f}){const h=n??i??"#0F4C5C",x=.85*s,g=1.8*x,b=x/2,y=.05*x,w=.18*x,k={display:"inline-flex",alignItems:"center",flexWrap:"wrap",gap:.2*s,color:o??h,fontFamily:"Manrope, Poppins, sans-serif",fontSize:s,lineHeight:1.15,maxWidth:"100%",minWidth:0},v=/* @__PURE__ */u(d,{children:[
85
+ /* @__PURE__ */u("span",{"aria-label":"YESNO",style:{letterSpacing:-1,whiteSpace:"nowrap"},children:[/* @__PURE__ */m("span",{style:{fontWeight:900},children:"YES"}),/* @__PURE__ */m("span",{style:{fontWeight:300},children:"NO"})]}),
86
+ /* @__PURE__ */m("span",{role:"img","aria-label":t,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:g,height:x,borderRadius:b,backgroundColor:h,flexShrink:0,transform:`translateY(${.06*-s}px)`},children:/* @__PURE__ */m(pt,{iconUrl:e,width:g-2*w,height:x-2*y,iconColor:r,accentColor:l})}),
87
+ /* @__PURE__ */u("span",{style:{fontWeight:500,whiteSpace:"normal",wordBreak:"break-word",minWidth:0,flexShrink:1},children:[t,a&&/* @__PURE__ */m("span",{style:{fontSize:"0.3em",fontWeight:600,marginLeft:"0.2em",display:"inline-block",transform:"translateY(-1.8em)"},children:"TM"})]})]});return f?/* @__PURE__ */m("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__ */m("div",{className:c,style:k,children:v})}function Gn({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,demoEntries:i,demoGames:d,demoPropositions:p,onSelectEntry:f,theme:h,colorScheme:x,className:g="",renderTeamLogo:b,filterSport:y}){const w=lt(h,x),k=!!(i&&d&&p),v=w.colors,N=it(w),F=st(w),[B,C]=c("pending"),[A,M]=c([]),S=s(()=>new Ln({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:L,loading:z,error:P,refetch:O}=Dn(S,{user_id:r},{skip:k}),{games:D,loading:E,error:T}=zn(S,void 0,{skip:k}),{propositions:H,loading:j,error:Y}=Pn(S,void 0,{skip:k}),R=k?i:L,W=k?d:D,G=k?p:H,I=!k&&(z||E||j),U=k?null:P||T||Y,K=s(()=>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]),Z=s(()=>{const e=/* @__PURE__ */new Map;for(const t of W)e.set(t.id,t);return e},[W]),V=s(()=>{const e=/* @__PURE__ */new Map;for(const t of G)e.set(t.id,t);for(const t of K)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},[G,K,A]),q=a(/* @__PURE__ */new Set);l(()=>{if(I||k)return;const e=[];for(const n of K)for(const t of n.proposition_ids??[])V.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}},[K,V,I,k,S]);const X=s(()=>y?K.filter(e=>{const t=e.proposition_ids??[];return 0===t.length||t.some(t=>(V.get(t)??e.propositions?.find(e=>e.id===t))?.sport===y)}):K,[K,y,V]),Q=s(()=>X.filter(e=>_(e.pending)),[X]),J=s(()=>X.filter(e=>!_(e.pending)),[X]),$="pending"===B?Q:J,ee=["flex-1",g].filter(Boolean).join(" ");return I?/* @__PURE__ */m("div",{className:ee,style:{fontFamily:N},role:"status","aria-label":"Loading entries",children:/* @__PURE__ */m(Mt,{colors:Re(w),rows:2})}):U?/* @__PURE__ */m("div",{className:ee,style:{fontFamily:N},children:/* @__PURE__ */u("div",{className:"rounded-lg p-4",style:{backgroundColor:v.errorBg,border:`1px solid ${v.error}`},children:[/* @__PURE__ */m("p",{style:{color:v.errorText},children:U}),/* @__PURE__ */m("button",{type:"button",onClick:O,className:"mt-2 text-sm font-medium underline",style:{color:v.error,cursor:"pointer"},children:"Try again"})]})}):/* @__PURE__ */u("div",{className:ee,style:{fontFamily:N},children:[
88
+ /* @__PURE__ */m("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__ */
89
+ return u("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__ */m("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__ */u("div",{className:"flex flex-col items-center justify-center py-12 px-4 text-center",children:[
90
+ /* @__PURE__ */m("svg",{className:"w-12 h-12 mb-4",fill:"none",stroke:v.textMuted,strokeWidth:"1.5",viewBox:"0 0 24 24",children:/* @__PURE__ */m("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"})}),
91
+ /* @__PURE__ */m("p",{className:"text-base font-medium",style:{color:v.text},children:"pending"===B?"No pending entries":"No completed entries"}),
92
+ /* @__PURE__ */m("p",{className:"text-sm mt-1",style:{color:v.textMuted},children:"pending"===B?"Entries awaiting results will appear here":"Settled entries will appear here"})]}),
93
+ /* @__PURE__ */m("div",{className:"space-y-3",children:$.map(e=>/* @__PURE__ */m(In,{entry:e,game:Z.get(e.game_id),propositionsById:V,onSelect:f,theme:w,renderTeamLogo:b},e.id))})]})}function In({entry:e,game:t,propositionsById:n,onSelect:o,theme:r,renderTeamLogo:l}){const i=r.colors,a=je(r),p=st(r),f=e.proposition_ids??[],h=s(()=>f.map(e=>n.get(e)).filter(Boolean),[f,n]),x=f.length,g=s(()=>{const t=/* @__PURE__ */new Map;for(const n of e.propositions??[])t.set(n.id,n);return t},[e.propositions]),b=t=>{const o=e.selections?.[t];return null!=o?o:g.get(t)?.user_prediction??n.get(t)?.user_prediction},y=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=b(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=_(e.pending),N=!v&&$(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?i.warningBg:N?i.successBg:i.errorBg,M=v||B?i.warningText:N?i.successText:i.errorText,[S,L]=c(!1),z=x>0;/* @__PURE__ */
94
+ return u("div",{className:"rounded-xl border overflow-hidden transition-colors",style:{borderColor:i.border,backgroundColor:a,boxShadow:Tt(r)},children:[/* @__PURE__ */u("button",{type:"button","data-testid":"entry-card",onClick:()=>{z&&L(e=>!e),o?.({entry:e,game:t,propositions:h})},"aria-label":`Entry #${e.id}`,"aria-expanded":z?S:void 0,className:"w-full text-left px-4 py-3 flex items-center justify-between gap-3",style:{cursor:z||o?"pointer":"default",background:"none",border:"none"},children:[/* @__PURE__ */u("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__ */m(Wn,{iconUrl:q(t),gameName:n,height:18,chipColor:i.primary,textColor:i.text,iconColor:i.primaryText,accentColor:r.brand?.accent}):/* @__PURE__ */m("h3",{className:"text-base font-semibold truncate",style:{color:i.text,fontFamily:p},children:n})})(),/* @__PURE__ */u("div",{className:"flex items-center gap-2 mt-0.5",children:[(e.created_at||e.entry_date)&&/* @__PURE__ */m("span",{className:"text-xs",style:{color:i.textMuted},children:te(e.created_at||e.entry_date)}),x>0&&/* @__PURE__ */u(d,{children:[/* @__PURE__ */m("span",{className:"text-xs",style:{color:i.textMuted},children:"·"}),/* @__PURE__ */m("span",{className:"text-xs font-medium",style:{color:k&&y>0?w>0?i.success:i.error:i.textMuted},children:k&&y>0?`${w}/${x} correct`:`${x} pick${1!==x?"s":""}`})]})]})]}),/* @__PURE__ */u("div",{className:"flex items-center gap-3 flex-shrink-0",children:[
95
+ /* @__PURE__ */u("div",{className:"text-right",children:[$(e.bet_amount)>0&&/* @__PURE__ */m("p",{className:"text-xs",style:{color:i.textMuted},children:ee($(e.bet_amount))}),!v&&$(e.winning)>0&&/* @__PURE__ */u("p",{className:"text-sm font-bold",style:{color:i.success},children:[ee($(e.winning)),(e.payout_jackpot??0)>0&&/* @__PURE__ */u("span",{className:"block text-xs font-normal",style:{color:i.textMuted},children:["incl. ",ee($(e.payout_jackpot))," jackpot"]})]})]}),
96
+ /* @__PURE__ */m("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}),z&&/* @__PURE__ */m("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,style:{color:i.textMuted,transition:"transform .2s ease",transform:S?"rotate(180deg)":"none"},children:/* @__PURE__ */m("path",{d:"m6 9 6 6 6-6"})})]})]}),S&&x>0&&/* @__PURE__ */m("div",{className:"border-t divide-y",style:{borderColor:i.border},children:f.map(t=>{const o=(t=>n.get(t)??e.propositions?.find(e=>e.id===t))(t),s=b(t);if(!o)/* @__PURE__ */return u("div",{className:"px-4 py-2.5 flex items-center gap-3",style:{borderColor:i.border},children:[/* @__PURE__ */m("div",{className:"flex-1 min-w-0",children:/* @__PURE__ */u("p",{className:"text-sm",style:{color:i.textMuted},children:["Loading proposition #",t,"…"]})}),null!=s&&/* @__PURE__ */m(It,{theme:r,value:"yes"===s?"yes":"no",size:"sm"})]},t);const a=o.result,c=null!=a,d=!!o.is_voided,p=c&&!d&&null!=s&&s===a;let f,h,x;return d?(f="Void",h=`${i.textMuted}20`,x=i.textMuted):c?p?(f="Won",h=i.successBg,x=i.successText):(f="Lost",h=i.errorBg,x=i.errorText):(f="Pending",h=i.warningBg,x=i.warningText),/* @__PURE__ */u("div",{className:"px-4 py-2.5 flex items-center gap-3",style:{borderColor:i.border},children:[
97
+ /* @__PURE__ */u("div",{className:"flex-1 min-w-0",children:[(o.home_team||o.away_team)&&/* @__PURE__ */u("p",{className:"text-sm font-medium leading-snug flex items-center gap-1.5",style:{color:i.text},children:[l&&o.home_team&&l(o.home_team),o.home_team&&/* @__PURE__ */m("span",{children:o.home_team}),o.home_team&&o.away_team&&/* @__PURE__ */m("span",{className:"text-xs font-normal",style:{color:i.textMuted},children:"vs"}),l&&o.away_team&&l(o.away_team),o.away_team&&/* @__PURE__ */m("span",{children:o.away_team})]}),(o.proposition||o.description)&&/* @__PURE__ */m("p",{className:"text-xs mt-0.5",style:{color:i.textMuted},children:o.proposition||o.description}),o.commence_time&&/* @__PURE__ */m("p",{className:"text-xs mt-0.5",style:{color:i.textMuted},children:te(o.commence_time)})]}),
98
+ /* @__PURE__ */u("div",{className:"flex flex-col items-center gap-0.5 flex-shrink-0",children:[/* @__PURE__ */m("span",{className:"text-[9px] uppercase tracking-wide font-semibold",style:{color:i.textMuted},children:"Pick"}),null!=s?/* @__PURE__ */m(It,{theme:r,value:"yes"===s?"yes":"no",size:"sm"}):/* @__PURE__ */m("span",{className:"text-xs",style:{color:i.textMuted},children:"—"})]}),
99
+ /* @__PURE__ */u("div",{className:"flex flex-col items-center gap-0.5 flex-shrink-0",children:[/* @__PURE__ */m("span",{className:"text-[9px] uppercase tracking-wide font-semibold",style:{color:i.textMuted},children:"Result"}),/* @__PURE__ */m("span",{className:"px-2 py-0.5 rounded text-xs font-bold uppercase whitespace-nowrap",style:{backgroundColor:h,color:x},children:f})]})]},t)})})]})}var Un=t(null);function Kn(){const e=r(Un);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function Zn({apiUrl:t,apiKey:n,fetchImpl:r,getAuthHeaders:i,userId:d,getUserBalance:u,children:p,theme:f,colorScheme:h,demoGames:x,demoPropositions:g,demoEntries:b,demoMaxPayouts:y,gameCategory:w,jurisdiction:k,initialGameId:v,filterSport:N,initialSport:F,initialEventId:B,initialEventLabel:C,sportBaseKey:A,showHomeAway:M=!1,disableQuickPick:S=!1,renderTeamLogo:L,onEntryPlaced:z,onBeforeSubmit:P,onCancel:O,onShare:D,onRecharge:E,onClearEventFilter:T,screenSize:H="desktop",howToPlayMarkdown:j,sportDisplayNames:Y,categoryDisplayNames:R}){const W=lt(f,h),G=it(W),I=st(W),U=!(!x||!g),K=s(()=>new Ln({apiUrl:t,apiKey:n,fetchImpl:r,getAuthHeaders:i}),[t,n,r,i]),[Z,V]=c(0),q=a(0),[X,Q]=c(0),[J,$]=c([]),[_,ee]=c({}),[te,ne]=c({}),[re,ie]=c(void 0),[ae,me]=c(void 0),ue=e.useCallback(async()=>{if(u)try{const e=await u();"number"==typeof e&&Number.isFinite(e)&&me(e)}catch(e){}},[u]);l(()=>{u?ue():me(void 0)},[u,ue]);const ge=a(null),[be,ke]=c(null),[Be,Ce]=c(F??null),[Ae,Me]=c(B??null);l(()=>{F&&Ce(F)},[F]),l(()=>{Me(B??null)},[B]);const[Se,Le]=c(B),ze=a(!1);l(()=>{if(!B)return Le(void 0),void(ze.current=!1);ze.current||Le(B)},[B]);const Pe=w??be??void 0,Oe=N??F??void 0,De=he(Be??Oe,A),Ee=he(Oe,A)??Oe,Te=Be??void 0,{games:He,howToPlayMarkdown:je,loading:Ye,error:Re}=zn(K,{category:Pe,jurisdiction:k,sport:De},{skip:U}),{propositions:We,loading:Ge,error:Ie}=Pn(K,{category:Pe,sport:Ee,event_id:Se},{skip:U}),{sports:Ue,loading:Ke}=On(K,{skip:U}),{createEntry:Ze,loading:Ve,error:qe}=Tn(K),{preview:Xe}=Rn(K),Qe=s(()=>Ne((U?x:He)??[],{category:Pe,sport:De??Te,sportBaseKey:A}),[U,x,He,Pe,De,Te,A]),Je=j??je??null,{maxPayouts:$e,refetchGame:_e}=En(K,Qe??[],{skip:U,betAmount:20}),et=U?y??{}:$e,tt=U?g:We,nt=N?(tt??[]).filter(e=>e.sport===N):tt,ot=s(()=>se(nt??[]),[nt]),rt=s(()=>Pe||(1===ot.length?ot[0]:void 0),[Pe,ot]),at=s(()=>{const e=nt??[];return rt?ye(e,{category:rt,sportBaseKey:A}):e},[nt,rt,A]),ct=s(()=>Te?ye(at,{sport:Te,sportBaseKey:A}):at,[at,Te,A]),dt=s(()=>({category:rt,sport:Te,sportBaseKey:A}),[rt,Te,A]),mt=s(()=>{const e=(Qe??[]).filter(e=>e.active);if(!rt&&ot.length>1)return[];const t=rt?Ne(e,dt):e;return rt||Te?function(e,t,n){return n?.category||n?.sport?e.filter(e=>ve(e,t,n)):e}(t,ct,dt):t},[Qe,ct,dt,rt,Te,ot.length]),{step:ut,selectedGame:pt,selections:ft,placedEntry:ht,setGameOnly:xt,clearSelectedGame:gt,goToSportSelection:bt,goToConfirmation:yt,goToSuccess:wt,goBack:kt,reset:vt,toggleSelection:Nt}=Hn(v),Ft=e.useCallback(()=>{ze.current=!0,Le(void 0),vt(),T?.()},[vt,T]),Bt=!!Se,Ct=Bt?C:void 0,At=!U&&(pt?Ye||Ge||Ke:Ye),Mt=U?null:pt?Re||Ie:Re,St=s(()=>pt?Fe(ct,pt,A):ct,[pt,ct,A]),Lt=s(()=>pt?St:at,[pt,St,at]),zt=s(()=>ye(pt?St:at,{category:rt}),[pt,St,at,rt]),Pt=s(()=>{const e=new Set(zt.map(e=>e.sport).filter(Boolean));return Ue.filter(t=>e.has(t.key))},[Ue,zt]),Ot=s(()=>ye(St,{category:rt,sport:Be}),[St,rt,Be]),Dt=s(()=>{if(!Zt(pt))return[];const{min:e}=de(pt,re),t=re??e;return qt(Ot).filter(e=>e.propositionCount>=t)},[pt,re,Ot]),Et=s(()=>Zt(pt)?_t(Ot,Ae):Ot,[pt,Ot,Ae]),Tt=Object.keys(ft).map(Number),Ht=Tt.length,jt=s(()=>Ot.filter(e=>Tt.includes(e.id)),[Ot,Tt]);l(()=>{w||be||1===ot.length&&ke(ot[0])},[w,be,ot]),l(()=>{if(!pt)return;const e=St,t=new Set(e.map(le));let n=be;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==be&&ke(n));const o=n?e.filter(e=>le(e)===n):e,r=new Set(function(e){const t=/* @__PURE__ */new Set;for(const n of e){const o=oe(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),l=pt.allowed_sports;Ce(e=>e&&r.has(e)?e:1===l?.length&&r.has(l[0])?l[0]:l&&l.length>1?e&&l.includes(e)&&r.has(e)?e:null:1===r.size?Array.from(r)[0]:null)},[pt?.id,St,be]),l(()=>{pt&&rt&&(we(pt,rt)||gt())},[pt,rt,gt]),l(()=>{pt&&(ve(pt,ct,{category:rt,sport:Be,sportBaseKey:A})||gt())},[pt,rt,Be,A,ct,gt]),l(()=>{if(pt){if(Q(0),ge.current){const{count:e}=ge.current;return ge.current=null,ie(e),void V(e)}if(pt.allowed_propositions&&pt.allowed_propositions.length>0){const e=re;null!=e&&pt.allowed_propositions.includes(e)?V(e):(ie(void 0),V(0))}else ie(void 0),V(pt.num_propositions||pt.max_propositions||0)}},[pt]);const Yt=(e,t,n)=>{const o=(et[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"!==ut&&"confirm"!==ut||!pt||U)return;const e=Zt(pt)&&Ae?Et.length:Number.MAX_SAFE_INTEGER;let t;if(pt.allowed_propositions&&pt.allowed_propositions.length>0){const n=pt.allowed_propositions?[...pt.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void ne({});const o=re??n[0],r=n.filter(e=>e>o);if(0===r.length)return void ne({});t=[o,...r]}else{const{min:n,max:o}=de(pt),r=Math.min(o,e);if(n<=0||r<=n)return void ne({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=Yt(pt.id,o,20);ne(n)},[ut,pt,re,Ae,Et.length,U,et]),l(()=>{if("confirm"!==ut||!pt)return;const e=Tt.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=Yt(pt.id,r,X);ee(n),e!==q.current?(q.current=e,V(e)):(Z>e||Z<=0&&e>0)&&V(e);const o=X>0?X:Math.max(pt.min_bet??20,.01);return(async()=>{try{const n=await Xe(pt.id,{actual:Z,predicted:Z,total:e,bet_amount:o});if(t)return;$(n.winning_counts)}catch{t||$([])}})(),()=>{t=!0}},[ut,pt,Tt.length,Z,X,Xe,et]);const Rt=!Zt(pt)||en(jt,Ae),Wt=!(!pt||!Rt)&&(pt.allowed_propositions&&pt.allowed_propositions.length>0?null!=re&&Ht===re:ce(Ht,pt.min_propositions,pt.max_propositions)),Gt=pt?.min_bet??0,It=Math.max(Gt,.01),Ut=null==ae||X<=ae,Kt=!Ve&&X>=It&&Wt&&Ut,Vt=e=>{ie(e),V(e);for(const t of Object.keys(ft))Nt(Number(t),ft[Number(t)])},Xt=e=>{ie(e),V(e)},Qt=e=>{Me(Zt(e)?B??null:null),xt(e)},Jt=e=>{if(e!==Ae){for(const e of Object.keys(ft)){const t=Number(e);Nt(t,ft[t])}Me(e)}},$t=(e,t)=>{ge.current={count:t},xt(e),_e(e.id);const n=e.allowed_sports??[];let o=null;Be&&n.some(e=>xe(Be,e,A))?o=Be:1===n.length&&(o=n[0]),Ce(o);for(const s of Object.keys(ft)){const e=Number(s);Nt(e,ft[e])}let r=ye(Fe(nt??[],e,A),{category:rt,sport:o,sportBaseKey:A});const l=Math.max(0,Math.min(t,r.length)),i=[...r].sort(()=>Math.random()-.5).slice(0,l);for(const s of i)Nt(s.id,Math.random()<.5?"yes":"no");yt()},tn=async()=>{if(pt&&Wt){if(U){const e={id:Math.floor(1e4*Math.random()),game_id:pt.id,user_id:d,proposition_ids:Tt,selections:ft,pending:!0,expected_correct:Z,bet_amount:X};return z?.(e),wt(e),void ue()}try{P&&await P(X);const e=await Ze({game_id:pt.id,user_id:d,proposition_ids:Tt,selections:ft,stake:X});z?.(e),wt(e),ue()}catch(e){}}},nn=o(e=>Y?.[e]??Pt.find(t=>t.key===e)?.label??pe(e,void 0,A),[Y,Pt,A]),on=o(e=>fe(e,R),[R]),rn=s(()=>({theme:W,bodyFont:G,headingFont:I,games:mt,propositions:Et,propositionsForCategoryPicker:Lt,propositionsForSportPicker:zt,sportSummaries:Pt,loading:At,error:Mt,step:ut,selectedGame:pt,selections:ft,placedEntry:ht,selectedPropositionIds:Tt,selectedPropositions:jt,selectionValid:Wt,answeredCount:Ht,betAmount:X,setBetAmount:Q,expectedCorrect:Z,setExpectedCorrect:V,selectedPropositionCount:re,handlePropositionCountChange:Vt,upgradePropositionCount:Xt,winningCounts:J,payouts:_,overloadPayouts:te,submitting:Ve,submitError:qe,canSubmit:Kt,gamePrice:Gt,userBalance:ae,hasSufficientBalance:Ut,refreshUserBalance:ue,handleSubmit:tn,selectGame:Qt,goToSportSelection:()=>bt(),goToConfirmation:yt,goBack:kt,reset:vt,clearSelectedGame:gt,toggleSelection:Nt,quickPickGame:$t,selectedCategory:be,setSelectedCategory:ke,selectedSport:Be,setSelectedSport:Ce,selectedEventId:Ae,sameGameMultiEvents:Dt,selectSameGameMultiEvent:Jt,apiUrl:t,apiKey:n,fetchImpl:r,getAuthHeaders:i,userId:d,showHomeAway:M,disableQuickPick:S,renderTeamLogo:L,filterSport:N,initialSport:F,initialEventId:B,sportBaseKey:A,gameCategory:w,eventFilterActive:Bt,eventFilterLabel:Ct,clearEventFilter:Ft,screenSize:H,displaySportName:nn,displayCategoryName:on,maxPayouts:et??{},howToPlayMarkdown:Je,onEntryPlaced:z,onCancel:O,onShare:D,onRecharge:E,demoEntries:b,demoGames:x,demoPropositions:g}),[W,G,I,mt,Et,Lt,zt,Pt,At,Mt,ut,pt,ft,ht,Tt,jt,Wt,Ht,X,Z,re,J,_,te,Ve,qe,Kt,Gt,t,n,d,ae,r,i,M,S,L,N,F,B,A,w,H,Bt,Ct,Ft,be,Be,Ae,Dt,et,Je,z,O,D,E,T,b,x,g,nn,on]);/* @__PURE__ */
100
+ return m(Un.Provider,{value:rn,children:p})}function Vn({onPress:t,onDoubleClick:n,label:o="QUICKPICK",size:l="md",yesColor:i,noColor:s,theme:a}){const c=r(Un),d=a??c?.theme??Ie,p=Et(d),f=d.colors,h=i??Oe(d),x=s??De(d),g="sm"===l,b=g?p.space.xs:p.space.sm,y=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__ */
101
+ return u("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 ${Lt(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?jt(d):"none",outline:"none",minHeight:p.touchTarget.min},children:[/* @__PURE__ */u("span",{style:{position:"relative",display:"flex",flex:1},children:[
102
+ /* @__PURE__ */m("span",{"aria-hidden":!0,style:{position:"absolute",inset:0,background:h,clipPath:"polygon(0 0, 53% 0, 47% 100%, 0 100%)"}}),
103
+ /* @__PURE__ */m("span",{"aria-hidden":!0,style:{position:"absolute",inset:0,background:x,clipPath:"polygon(53% 0, 100% 0, 100% 100%, 47% 100%)"}}),
104
+ /* @__PURE__ */m("span",{style:{position:"relative",flex:1,textAlign:"center",padding:`${y}px ${b}px`,color:"#ffffff",fontSize:w,fontWeight:600,letterSpacing:.2,whiteSpace:"nowrap"},children:"Yes"}),
105
+ /* @__PURE__ */m("span",{style:{position:"relative",flex:1,textAlign:"center",padding:`${y}px ${b}px`,color:"#ffffff",fontSize:w,fontWeight:600,letterSpacing:.2,whiteSpace:"nowrap"},children:"No"}),
106
+ /* @__PURE__ */m("svg",{"aria-hidden":"true",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none"},preserveAspectRatio:"none",children:/* @__PURE__ */m("line",{x1:"53%",y1:"0",x2:"47%",y2:"100%",stroke:"rgba(255,255,255,0.85)",strokeWidth:"1.5"})})]}),/* @__PURE__ */m("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 qn({className:e=""}){const{theme:t,eventFilterActive:n,eventFilterLabel:o,clearEventFilter:r,gameCategory:l}=Kn();if(!n)return null;const i=t.colors,s=o??("racing"===l?"This race":"This event");/* @__PURE__ */
107
+ return u("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:`${i.primary}33`,backgroundColor:`${i.surface}`},children:[/* @__PURE__ */u("div",{className:"min-w-0",children:[
108
+ /* @__PURE__ */m("p",{className:"text-[10px] font-bold uppercase tracking-[0.12em]",style:{color:i.primary},children:"Event filter"}),
109
+ /* @__PURE__ */m("p",{className:"truncate text-sm font-semibold",style:{color:i.text},children:s}),
110
+ /* @__PURE__ */m("p",{className:"text-xs",style:{color:i.textMuted},children:"Only propositions from this event are shown."})]}),/* @__PURE__ */m("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:`${i.primary}44`,backgroundColor:i.background,color:i.text,cursor:"pointer"},children:"Show all events"})]})}function Xn({onBack:e,title:t="Go back",className:n=""}){const{theme:o}=Kn(),r=o.colors;/* @__PURE__ */
111
+ return m("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__ */u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[/* @__PURE__ */m("path",{d:"M19 12H5"}),/* @__PURE__ */m("path",{d:"m12 19-7-7 7-7"})]})})}function Qn({onBack:e,hideActions:t,children:n,className:o=""}){const r=!!e;return r||n?/* @__PURE__ */u("div",{className:`flex items-center gap-1.5 mt-0.5 ${o}`,children:[r&&e&&/* @__PURE__ */m(Xn,{onBack:e}),n]}):null}var Jn=[1,5,10,20,50,100],$n=[4,12];function _n(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function eo(e,t,n){const o=n?.operatorMargin??.2,r=n?.perLegProbability??.5,l=Math.round(Math.pow(1/r,t)),i=(1-o)*Math.pow(1/r,t);return{legs:t,stake:e,prize:Math.round(e*i*100)/100,multiple:i,oddsOneIn:l}}function to(e){if(!_n(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);if(0===o.length)return null;const r=Math.max(e.min_bet??1,.01),l=e.max_bet??null,i=Jn.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:i,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 no=50,oo=[25,50,75,100],ro=[{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 lo(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function io(e,t){return Math.round(e*t/50*100)/100}function so(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:io(o,t),cumulative:io(n,t)}))}function ao(e,t){return io(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function co(e,t,n){return io(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)}function mo(e){if(!lo(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=ro.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??oo[0],i=e.max_bet??oo[oo.length-1],s=oo.filter(e=>e>=l&&e<=i);return{ladders:r,defaultLegs:r.some(e=>8===e.legs)?8:r[Math.floor(r.length/2)].legs,defaultStake:s.includes(50)?50:s[0]??50,stakes:s.length>0?s:oo,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}var uo=.21875,po=[1,5,10,20,50],fo=[4,12];function ho(e){return!!e&&!e.quick_pick_only&&"mirror"===(e.rule??"").trim().toLowerCase()}function xo(e,t,n){const o=n?.operatorMargin??.21875,r=n?.perLegProbability??.5,l=Math.round(Math.pow(2,t)),i=Math.pow(r,t)+Math.pow(1-r,t),s=Math.round(1/i),a=(1-o)*Math.pow(2,t-1);return{legs:t,stake:e,prize:Math.round(e*a*100)/100,multiple:a,totalOutcomes:l,winningOutcomes:2,oddsOneIn:s}}function go(e){if(!ho(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??fo[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??fo[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,i=po.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:i,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 bo(e){return e?.quick_pick_only?"quick_pick":_n(e)?"game_set":un(e)?"pick_your_dividend":lo(e)?"ladder":ho(e)?"mirror":Zt(e)?"selections":cn(e)?"rule_setup":"selections"}function yo(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(Zt(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 wo(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||Zt(e)||yo(e))}function ko(e){switch(bo(e)){case"ladder":return{belowRequiredHint:(e,t)=>`Drop to Ladder ${e} or add another pick to stay on Ladder ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay on Ladder ${e}.`,switchTierLabel:e=>`Switch to Ladder ${e}`,overloadTitle:"Add more picks to climb higher",tableColumnLabel:"Ladder",tierButtonLabel:e=>`Ladder ${e}`};case"game_set":case"pick_your_dividend":case"mirror":return{belowRequiredHint:(e,t)=>`Drop to ${e} legs or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e} legs.`,switchTierLabel:e=>`Switch to ${e} legs`,overloadTitle:"Add more legs to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`${e} legs`};default:return{belowRequiredHint:(e,t)=>`Drop to a ${e}-leg multi or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e}.`,switchTierLabel:e=>`Switch to ${e}-leg`,overloadTitle:"Add more picks to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`Multi ${e}`}}}function vo({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,bodyFont:l,howToPlayMarkdown:i,selectedCategory:s,displayCategoryName:a}=Kn(),c=o.colors;/* @__PURE__ */
112
+ return u("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */u("div",{className:"flex items-start justify-between gap-3",children:[/* @__PURE__ */m("h1",{className:"text-lg sm:text-xl md:text-2xl font-bold leading-tight break-words min-w-0",style:{color:Le(o),fontFamily:r},children:"Choose your game"}),i?.trim()&&/* @__PURE__ */m(O,{content:i,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__ */m(Qn,{onBack:t,hideActions:n,children:s&&/* @__PURE__ */m("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:c.textMuted},children:a(s)})})]})}function No({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=Kn(),r=n.colors;return e&&"mobile"!==o?/* @__PURE__ */m("div",{className:`flex items-center pt-4 ${t}`,children:/* @__PURE__ */m("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 Fo({onSelectGame:t,onRuleSetup:n,onGameSetBet:o,onPickYourDividend:r,onLadder:l,onMirror:i,onQuickPick:s,onCancel:a,hideTitle:c,hideActions:d,showPerfectPickSetup:p=!1,showTierFilter:f=!1,className:h=""}){const x=Kn(),{theme:g,games:b,loading:y,error:w,selectedGame:k,selectedPropositionCount:v,handlePropositionCountChange:N,maxPayouts:F}=x;g.colors;const B=e.useRef(k);return B.current=k,/* @__PURE__ */u("div",{className:`flex flex-col min-h-full ${h}`,style:{fontFamily:x.bodyFont},children:[!c&&/* @__PURE__ */m("div",{className:"mb-4 sm:mb-6",children:/* @__PURE__ */m(vo,{onBack:a,hideActions:d})}),
113
+ /* @__PURE__ */m(qn,{}),
114
+ /* @__PURE__ */m("div",{className:"flex-1",children:/* @__PURE__ */m(Cn,{games:b,selectedGame:k,onSelectGame:e=>{B.current=e,x.selectGame(e)},loading:y,error:w,theme:g,showTierFilter:f,selectedPropositionCount:v,onPropositionCountChange:N,onPropositionCountSelected:()=>{const e=B.current;if("rule_setup"===bo(e)&&wo(e)&&!p)return x.goToSportSelection(),void t?.();switch(bo(e)){case"game_set":return void o?.();case"pick_your_dividend":return void r?.();case"ladder":return void l?.();case"mirror":return void i?.();case"rule_setup":return void n?.();default:x.goToSportSelection(),t?.()}},onQuickPickGame:(e,t)=>{x.quickPickGame(e,t),s?.()},maxPayouts:F})})]})}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}function So(e,t,n){if(!t||n)return null;const o=e.outcome||e.description;return o?t(o):null}function Lo({matchup:e,renderTeamLogo:t,showHomeAway:n=!1,altText:o,mutedColor:r,size:l="sm"}){const[i,s=""]=e.split(" vs "),a=s.length>0,c="md"===l?"text-sm sm:text-base":"text-sm";if(!t&&!n)/* @__PURE__ */return m("span",{className:`font-semibold ${c} leading-snug break-words`,style:{color:o},children:e});const p=(e,o)=>/* @__PURE__ */u("span",{className:"inline-flex items-center gap-1 leading-snug min-w-0 max-w-full",children:[t?.(e),/* @__PURE__ */u("span",{className:"inline-flex flex-col min-w-0",children:[/* @__PURE__ */m("span",{className:"break-words",children:e}),n&&o&&/* @__PURE__ */m("span",{className:"text-[10px] font-normal uppercase tracking-wide",style:{color:r},children:o})]})]});/* @__PURE__ */
115
+ return u("span",{className:`font-semibold ${c} flex flex-col items-start gap-1 min-w-0 max-w-full sm:flex-row sm:flex-wrap sm:items-center sm:gap-x-1.5`,style:{color:o},children:[p(i,"Home"),a&&/* @__PURE__ */u(d,{children:[/* @__PURE__ */m("span",{className:"text-xs font-normal flex-shrink-0",style:{color:r},children:"vs"}),p(s,"Away")]})]})}function zo({label:e,colors:t}){const n="OR"===e?"If either wins, you win.":"Both must win for Yes.",[r,i]=c(!1),[s,d]=c({top:0,left:0}),p=a(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__ */u("span",{className:"relative inline-flex flex-shrink-0",onMouseEnter:()=>{f(),i(!0)},onMouseLeave:()=>i(!1),children:[/* @__PURE__ */m("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:Lt(t.primary,.14),border:`1px solid ${Lt(t.primary,.45)}`},"aria-label":n,"aria-expanded":r,onClick:e=>{e.stopPropagation(),f(),i(e=>!e)},children:e}),r&&/* @__PURE__ */m("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:s.top,left:s.left,color:t.text,backgroundColor:t.backgroundAlt??"#fff",border:`1px solid ${t.border??Lt(t.primary,.3)}`},children:n})]})}function Po({prop:t,colors:n,size:o="sm",componentById:r}){const l=R(t,r),i=t.description??t.proposition??"",s="md"===o?"text-sm sm:text-base font-medium":"text-xs sm:text-sm",a=n.textMuted??n.textAltMuted??n.text;if(!l)/* @__PURE__ */return m("span",{className:s,style:{color:n.text},children:i});const{operator:c,legs:d}=l;return d.some(e=>e.eventLabel)?/* @__PURE__ */m("div",{className:"min-w-0 flex-1 flex flex-col gap-2",children:d.map((e,t)=>/* @__PURE__ */u("div",{className:"min-w-0",children:[t>0&&/* @__PURE__ */m("div",{className:"mb-1 flex items-center",children:/* @__PURE__ */m(zo,{label:c,colors:n})}),e.eventLabel&&/* @__PURE__ */m("div",{className:"text-[10px] sm:text-xs font-semibold uppercase tracking-wide leading-tight break-words",style:{color:a},children:e.eventLabel}),
116
+ /* @__PURE__ */m("span",{className:s,style:{color:n.text},children:e.text})]},t))}):/* @__PURE__ */m("div",{className:"min-w-0 flex-1",children:/* @__PURE__ */m("div",{className:"flex flex-wrap items-center gap-x-1.5 gap-y-1",children:d.map((t,o)=>/* @__PURE__ */u(e.Fragment,{children:[o>0&&/* @__PURE__ */m(zo,{label:c,colors:n}),/* @__PURE__ */m("span",{className:s,style:{color:n.text},children:t.text})]},o))})})}function Oo({game:t,propositions:n,selections:o,onToggleSelection:i,onNext:p,onBack:f,loading:h,error:x,theme:g,colorScheme:b,hideActions:y=!1,initialSport:w,renderTeamLogo:k,disableQuickPick:v=!1,selectedPropositionCount:N,onPropositionCountChange:F,showHomeAway:B=!1,gameCategory:C}){const A=r(Un),M=A?.sportBaseKey,S=function(e,t){const[n,o]=c([]),r=a(/* @__PURE__ */new Set),i=s(()=>{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=s(()=>e?function(e){const t=/* @__PURE__ */new Set;for(const n of e)if(H(n))for(const e of j(n))t.add(e);return[...t]}(t).filter(e=>!i.has(e)):[],[e,t,i]);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]),i}(s(()=>A?.apiUrl?new Ln({apiUrl:A.apiUrl,apiKey:A.apiKey,fetchImpl:A.fetchImpl,getAuthHeaders:A.getAuthHeaders}):null,[A?.apiUrl,A?.apiKey,A?.fetchImpl,A?.getAuthHeaders]),n),L=lt(g,b),z=L.colors,P=je(L),O=(E=L).colors.selectionProp??E.colors.background;var E;const T=z.matchupHeader??(t.color?Lt(t.color,.14):Ye(L)),Y=z.textAlt??z.text,R=Tt(L),W=it(L);st(L),Le(L);const G=!!(t.allowed_propositions&&t.allowed_propositions.length>0),{min:I,max:U}=de(t,N),K=I,Z=U,[V,q]=e.useState(()=>new Set(Object.keys(Ae(n,C,M)))),X=K>0&&K===Z,Q=K||1,J=Z||n.length,$=Z||K||n.length,[_,ee]=e.useState($),ne=Object.keys(o).length,oe=Z>0&&ne>=Z,re=G?null!=N&&ne===N:ce(ne,t.min_propositions,t.max_propositions);t.min_bet,Z>0?Math.max(2,2*Z):Math.max(2,2*ne);const le=e.useRef(ne),ie=G?null!=N&&ne===N:Z>0&&ne===Z;l(()=>{ie&&ne>le.current&&p?.(),le.current=ne},[ne,ie]);const se=(e,t)=>{!(e in o)&&oe||i(e,t)};l(()=>{const e=Z||n.length,t=K||1;ee(n=>X?Z:Math.max(t,Math.min(n,e)))},[n.length,K,Z,X]);const ae=s(()=>/* @__PURE__ */new Date,[]),me=s(()=>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,ae),[n,ae]),[ue,pe]=c(null);l(()=>{ue&&!me.some(e=>e.id===ue)&&pe(null)},[me,ue]);const fe=s(()=>function(e,t,n){return t?e.filter(e=>Mo(e.commence_time,t,n)):e.slice()}(n,ue,ae),[n,ue,ae]),he=s(()=>Ae(fe,C,M),[fe,C,M]),xe=s(()=>{const e=/* @__PURE__ */new Set;for(const t of fe){const n=D(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[fe]),[ge,be]=c(null);l(()=>{ge&&!xe.includes(ge)&&be(null)},[xe,ge]);const ye=s(()=>{if(!ge)return he;const e={};for(const[t,n]of Object.entries(he)){const o=n.filter(e=>D(e)===ge);o.length>0&&(e[t]=o)}return e},[he,ge]),we=Object.keys(ye);if(e.useEffect(()=>{const e=Object.keys(ye);e.length>0&&q(t=>e.every(e=>t.has(e))?t:new Set(e))},[ye]),h)/* @__PURE__ */return m(St,{colors:Re(L),bodyFont:W,variant:"propositions"});if(x)/* @__PURE__ */return m("div",{className:"flex items-center justify-center p-8",style:{fontFamily:W},children:/* @__PURE__ */m("div",{style:{color:z.error},children:x})});const ke=!v&&n.length>0;/* @__PURE__ */
117
+ return u("div",{className:"space-y-4 sm:space-y-6 pb-16",style:{fontFamily:W},children:[me.length>0&&/* @__PURE__ */u("div",{className:"flex flex-wrap items-center gap-2",children:[
118
+ /* @__PURE__ */m("span",{className:"text-[11px] font-bold uppercase tracking-wide mr-0.5",style:{color:z.textMuted},children:"When"}),
119
+ /* @__PURE__ */m("button",{type:"button",onClick:()=>pe(null),className:"rounded-full px-3 py-1.5 text-[11px] font-bold transition-colors",style:{fontFamily:W,border:`1px solid ${null==ue?z.primary:z.border}`,backgroundColor:null==ue?z.primary:z.background??"#fff",color:null==ue?z.primaryText:z.text,cursor:"pointer"},children:"All dates"}),me.map(e=>{const t=ue===e.id;/* @__PURE__ */
120
+ return m("button",{type:"button",onClick:()=>pe(e.id),className:"rounded-full px-3 py-1.5 text-[11px] font-bold transition-colors",style:{fontFamily:W,border:`1px solid ${t?z.primary:z.border}`,backgroundColor:t?z.primary:z.background??"#fff",color:t?z.primaryText:z.text,cursor:"pointer"},children:e.label},e.id)})]}),xe.length>1&&/* @__PURE__ */u("div",{className:"flex flex-wrap gap-2",children:[/* @__PURE__ */m("button",{type:"button",onClick:()=>be(null),className:"rounded-full px-3 py-1.5 text-[11px] font-bold transition-colors",style:{fontFamily:W,border:`1px solid ${null==ge?z.primary:z.border}`,backgroundColor:null==ge?z.primary:z.background??"#fff",color:null==ge?z.primaryText:z.text,cursor:"pointer"},children:"All markets"}),xe.map(e=>{const t=ge===e;/* @__PURE__ */
121
+ return m("button",{type:"button",onClick:()=>be(e),className:"rounded-full px-3 py-1.5 text-[11px] font-bold transition-colors",style:{fontFamily:W,border:`1px solid ${t?z.primary:z.border}`,backgroundColor:t?z.primary:z.background??"#fff",color:t?z.primaryText:z.text,cursor:"pointer"},children:(n=e,n.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))},e);var n})]}),ke&&/* @__PURE__ */m("div",{className:"flex flex-wrap items-center justify-end gap-2",children:/* @__PURE__ */u("div",{className:"flex items-center gap-1.5 sm:gap-2 flex-shrink-0",children:[!X&&/* @__PURE__ */u("div",{className:"flex items-center gap-1",children:[/* @__PURE__ */m("input",{type:"number",min:Q,max:J,value:_,onChange:e=>{const t=parseInt(e.target.value,10);isNaN(t)||ee(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:Y,backgroundColor:z.backgroundAlt,border:`2px solid ${z.border}`}}),/* @__PURE__ */u("span",{className:"text-xs whitespace-nowrap",style:{color:z.textMuted},children:["/ ",n.length]})]}),/* @__PURE__ */m(Vn,{onPress:()=>{const e=X?Z:_;for(const n of Object.keys(o)){const e=Number(n);i(e,o[e])}const{yesPicks:t,noPicks:r}=Se(n,e);for(const n of t)i(n.id,"yes");for(const n of r)i(n.id,"no");p?.()}})]})}),n.length>0&&/* @__PURE__ */m("div",{className:"space-y-4",children:we.every(e=>1===ye[e].length)?/* @__PURE__ */m("div",{className:"rounded-xl border overflow-hidden divide-y",style:{borderColor:z.border,backgroundColor:P,boxShadow:R},children:we.map(e=>{const t=ye[e][0],n="yes"===o[t.id],r="no"===o[t.id],l=t.id in o,i=oe&&!l;/* @__PURE__ */
122
+ return u("div",{className:"transition-colors divide-y",style:{opacity:i?.45:1,borderColor:z.border},children:[/* @__PURE__ */u("div",{className:"px-4 py-2.5 sm:py-3 min-w-0",style:{backgroundColor:T},children:[/* @__PURE__ */m("div",{className:"min-w-0",children:/* @__PURE__ */m(Lo,{matchup:e,renderTeamLogo:k,altText:Y,mutedColor:z.textAltMuted??z.textMuted??Y})}),t.commence_time&&/* @__PURE__ */m("span",{className:"text-[11px] block mt-0.5",style:{color:z.textAltMuted??z.textMuted,opacity:.7},children:te(t.commence_time)})]}),/* @__PURE__ */u("div",{className:"flex items-center justify-between gap-3 px-4 py-3 sm:py-3.5",style:{backgroundColor:O},children:[/* @__PURE__ */u("div",{className:"min-w-0 flex-1 flex items-start gap-2",children:[So(t,k,B),/* @__PURE__ */m(Po,{prop:t,colors:z,componentById:S})]}),/* @__PURE__ */m(Gt,{theme:L,size:"sm",value:n?"yes":r?"no":null,onYes:()=>se(t.id,"yes"),onNo:()=>se(t.id,"no"),disabled:i})]})]},t.id)})}):we.map(e=>{const t=ye[e],n=V.has(e),r=t.filter(e=>e.id in o).length,l=t[0]?.commence_time;/* @__PURE__ */
123
+ return u("div",{className:"rounded-xl border overflow-hidden",style:{borderColor:z.border,backgroundColor:P,boxShadow:R},children:[/* @__PURE__ */u("button",{type:"button",onClick:()=>{return t=e,q(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__ */u("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[/* @__PURE__ */m("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:z.textAltMuted??z.textMuted,transform:n?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.15s ease"},"aria-hidden":!0,children:/* @__PURE__ */m("path",{d:"m6 9 6 6 6-6"})}),/* @__PURE__ */u("div",{className:"min-w-0",children:[/* @__PURE__ */m(Lo,{matchup:e,renderTeamLogo:k,showHomeAway:B,altText:Y,mutedColor:z.textAltMuted??z.textMuted??Y,size:"md"}),l&&/* @__PURE__ */m("p",{className:"text-xs mt-0.5 text-left",style:{color:z.textAltMuted??z.textMuted,opacity:.7},children:te(l)})]})]}),/* @__PURE__ */m("div",{className:"flex items-center gap-2 flex-shrink-0 ml-2",children:r>0&&/* @__PURE__ */u("span",{className:"text-xs px-2 py-0.5 rounded-full font-medium",style:{color:r>0?z.successText:z.textMuted,backgroundColor:r>0?z.successBg:z.backgroundAlt},children:[r,"/",t.length]})})]}),n&&/* @__PURE__ */m("div",{className:"divide-y",style:{borderColor:z.border},children:/* @__PURE__ */m(d,{children:t.map(e=>{const t="yes"===o[e.id],n="no"===o[e.id],r=e.id in o,l=oe&&!r;/* @__PURE__ */
124
+ return m("div",{className:"px-4 py-3 sm:py-3.5 transition-colors",style:{backgroundColor:O,opacity:l?.45:1},children:/* @__PURE__ */u("div",{className:"flex flex-wrap justify-between items-start gap-x-2 gap-y-2 sm:gap-4",children:[/* @__PURE__ */u("div",{className:"flex-1 min-w-0 flex items-start gap-2",style:{minWidth:"8rem"},children:[So(e,k,B),/* @__PURE__ */m(Po,{prop:e,colors:z,size:"md",componentById:S})]}),/* @__PURE__ */m(Gt,{theme:L,size:"sm",value:t?"yes":n?"no":null,onYes:()=>se(e.id,"yes"),onNo:()=>se(e.id,"no"),disabled:l})]})},e.id)})})})]},e)})}),0===n.length&&/* @__PURE__ */m("div",{className:"text-center p-8",style:{color:z.textMuted},children:"No propositions available at this time"}),!y&&/* @__PURE__ */u("div",{className:"sticky bottom-0 z-10 -mx-4 sm:-mx-6 px-4 sm:px-6 py-3 sm:py-4 border-t flex items-center justify-between gap-3",style:{borderColor:z.border,backgroundColor:P},children:[/* @__PURE__ */m(Yt,{theme:L,variant:"secondary",onPress:f,children:"Back"}),/* @__PURE__ */m("div",{className:"flex items-center gap-2 sm:gap-3",children:/* @__PURE__ */m(Yt,{theme:L,variant:"primary",disabled:!re,onPress:p,children:"Wager"})})]})]})}function Do({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",className:r,title:l,sportBaseKey:i}){const s=function(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=G[e];if(o)return o;if(t&&e.startsWith(`${t}_`)){const n=e.slice(t.length+1).replace(/_/g," ").split(/\s+/).filter(Boolean).map(e=>e[0]).join("").slice(0,4).toUpperCase();if(n)return n}return e.startsWith("casino_")?e.slice(7,11).toUpperCase()||"CSN":e.slice(0,3).toUpperCase()||"·"}(e,i,t),a=function(e){return e.length<=3?92:4===e.length?72:56}(s),c=l??`${s} button`;/* @__PURE__ */
125
+ return u("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:[
126
+ /* @__PURE__ */m("title",{children:c}),
127
+ /* @__PURE__ */m("rect",{x:"2",y:"2",width:"356",height:"356",rx:"78",fill:"#DDD9D2",stroke:W,strokeWidth:"4"}),
128
+ /* @__PURE__ */m("rect",{x:"50",y:"10",width:"260",height:"260",rx:"52",fill:W,opacity:"0.30"}),
129
+ /* @__PURE__ */m("rect",{x:"50",y:"35",width:"260",height:"260",rx:"52",fill:W,opacity:"0.55"}),
130
+ /* @__PURE__ */m("rect",{x:"50",y:"60",width:"260",height:"260",rx:"52",fill:W}),
131
+ /* @__PURE__ */m("text",{x:"180",y:"220",fontFamily:"Manrope, Poppins, sans-serif",fontSize:a,letterSpacing:"-3",textAnchor:"middle",fontWeight:800,fill:"#DFFF1A",children:s}),o&&/* @__PURE__ */u(d,{children:[/* @__PURE__ */m("text",{x:"180",y:"345",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"24",letterSpacing:"-0.5",textAnchor:"middle",fontWeight:700,fill:W,children:o}),/* @__PURE__ */m("text",{x:"262",y:"333",fontFamily:"Manrope, Poppins, sans-serif",fontSize:"10",fontWeight:600,fill:W,children:"TM"})]})]})}function Eo({label:e,category:t,icon:n,theme:o,disabled:r=!1}){const l=o.colors,i=st(o),s=r?l.textMuted:l.textAlt??l.text,a=r?l.border:o.brand?.chip??l.primary,c=r?l.textMuted:o.brand?.icon??l.primaryText??l.buttonPrimaryText;/* @__PURE__ */
132
+ return u("span",{className:"font-display max-w-full text-base min-[400px]:text-lg min-[480px]:text-xl",style:{display:"inline-flex",alignItems:"center",flexWrap:"wrap",gap:"0.25em",lineHeight:1.15,color:s,fontFamily:i},children:[
133
+ /* @__PURE__ */u("span",{className:"shrink-0","aria-label":"YESNO",style:{letterSpacing:-1,whiteSpace:"nowrap"},children:[/* @__PURE__ */m("span",{style:{fontWeight:900},children:"YES"}),/* @__PURE__ */m("span",{style:{fontWeight:300},children:"NO"})]}),
134
+ /* @__PURE__ */m("span",{role:"img","aria-label":e,className:"shrink-0",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1.6em",height:"0.85em",borderRadius:"0.425em",flexShrink:0,backgroundColor:a,color:c,transform:"translateY(-0.02em)"},children:n??/* @__PURE__ */m(To,{category:t,size:"0.6em",color:c})}),
135
+ /* @__PURE__ */u("span",{className:"min-w-0 break-words font-medium",style:{fontWeight:500},children:[e,/* @__PURE__ */m("span",{style:{fontSize:"0.3em",fontWeight:600,marginLeft:"0.2em",display:"inline-block",transform:"translateY(-1.8em)"},children:"TM"})]})]})}function To({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 u("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:n,"aria-hidden":!0,children:[
136
+ /* @__PURE__ */m("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"}),
137
+ /* @__PURE__ */m("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"}),
138
+ /* @__PURE__ */m("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 u("svg",{...o,children:[/* @__PURE__ */m("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__ */m("path",{d:"M22 14v-2a3 3 0 0 0 -3 -3"})]});case"women":/* @__PURE__ */return u("svg",{...o,children:[
139
+ /* @__PURE__ */m("path",{d:"M7 9a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"}),
140
+ /* @__PURE__ */m("path",{d:"M12 14v7"}),
141
+ /* @__PURE__ */m("path",{d:"M9 18h6"})]});default:/* @__PURE__ */return u("svg",{...o,children:[
142
+ /* @__PURE__ */m("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),
143
+ /* @__PURE__ */m("path",{d:"M12 7l4.76 3.45l-1.76 5.55h-6l-1.76 -5.55l4.76 -3.45"}),
144
+ /* @__PURE__ */m("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 Ho({size:e=20,color:t="currentColor",className:n=""}){/* @__PURE__ */
145
+ 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__ */m("path",{d:"m9 6 6 6-6 6"})})}function jo({className:e="",onBack:t,hideActions:n,backLabel:o="Category"}){const{theme:r,selectedCategory:l}=Kn(),i=r.colors,s=st(r);/* @__PURE__ */
146
+ return u("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */m("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:i.primary,fontFamily:s},children:ae(l)}),/* @__PURE__ */m(Qn,{onBack:t,hideActions:n,children:t&&/* @__PURE__ */m("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:i.textMuted},children:o})})]})}function Yo({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=Kn(),r=n.colors;return e&&"mobile"!==o?/* @__PURE__ */m("div",{className:`flex items-center pt-4 ${t}`,children:/* @__PURE__ */m("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 Ro({onSelectSport:e,onCancel:t,hideTitle:n,hideActions:o,renderSportLogo:r,renderSportTagline:l,backLabel:i,className:s=""}){const{theme:a,propositionsForSportPicker:c,sportSummaries:p,loading:f,setSelectedSport:h,clearSelectedGame:x,selectedCategory:g,sportBaseKey:b,displaySportName:y}=Kn(),w=a.colors,k=je(a),v=it(a),N=st(a),F=Le(a),B=ne(c),C=Object.keys(B);return f?/* @__PURE__ */m(St,{colors:Re(a),bodyFont:v,className:s,variant:"sport",categoryCount:C.length>0?C.length:2}):/* @__PURE__ */u("div",{className:`flex flex-col min-h-full ${s}`,style:{fontFamily:v},children:[!n&&/* @__PURE__ */m("div",{className:"mb-2",children:/* @__PURE__ */m(jo,{onBack:t,hideActions:o,backLabel:i})}),/* @__PURE__ */m("div",{className:"flex-1",children:/* @__PURE__ */m("div",{className:"grid grid-cols-1 gap-2.5 sm:gap-3",children:C.map(t=>{const n=p.find(e=>e.key===t),o=n?.active_props??B[t].length,i=l?.(t,o)??(n?`${s=n.games_today} game${1===s?"":"s"} today · ${a=n.active_props} pick${1===a?"":"s"} available`:function(e,t){return 0===e?"racing"===t?"No races today":"casino"===t?"No games today":"No picks available":"racing"===t?`${e} race${1===e?"":"s"} today`:"casino"===t?`${e} game${1===e?"":"s"} available`:`${e} pick${1===e?"":"s"} available`}(o,g));var s,a;const c=y(t);/* @__PURE__ */
147
+ return u("button",{type:"button",onClick:()=>{h(t),x(),e?.(t)},className:"group flex items-center justify-between gap-2 sm:gap-3 rounded-2xl border px-3.5 py-3.5 sm:px-5 sm:py-5 text-left transition-all min-w-0 w-full hover:shadow-md active:scale-[0.99]",style:{backgroundColor:k,borderColor:w.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=w.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=w.border},children:[
148
+ /* @__PURE__ */u("div",{className:"flex items-center gap-3 sm:gap-4 min-w-0 flex-1",children:[/* @__PURE__ */m("div",{className:"shrink-0",children:r?r(t):/* @__PURE__ */u(d,{children:[/* @__PURE__ */m(Do,{gameKey:t,size:44,footer:null,sportBaseKey:b,title:`${c} button`,className:"min-[400px]:hidden"}),/* @__PURE__ */m(Do,{gameKey:t,size:56,footer:null,sportBaseKey:b,title:`${c} button`,className:"hidden min-[400px]:block"})]})}),/* @__PURE__ */u("div",{className:"flex flex-col min-w-0 flex-1 gap-0.5",children:[/* @__PURE__ */m("span",{className:"text-base sm:text-lg font-extrabold tracking-tight break-words leading-tight",style:{color:F,fontFamily:N},children:c}),/* @__PURE__ */m("span",{className:"text-[10px] sm:text-xs font-medium uppercase tracking-[0.08em] sm:tracking-[0.1em] break-words",style:{color:w.primary},children:i})]})]}),
149
+ /* @__PURE__ */m(Ho,{size:20,color:w.textMuted,className:"shrink-0 min-[400px]:hidden group-hover:opacity-100"}),
150
+ /* @__PURE__ */m(Ho,{size:24,color:w.textMuted,className:"shrink-0 hidden min-[400px]:block group-hover:opacity-100"})]},t)})})})]})}function Wo({className:e="",onBack:t,hideActions:n}){const{theme:o}=Kn(),r=st(o),l=o.colors;/* @__PURE__ */
151
+ return u("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */m("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__ */m(Qn,{onBack:t,hideActions:n})]})}function Go({onCancel:e,className:t=""}){const{theme:n,screenSize:o}=Kn(),r=n.colors;return e&&"mobile"!==o?/* @__PURE__ */m("div",{className:`flex items-center pt-4 ${t}`,children:/* @__PURE__ */m("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 Io({onSelectCategory:e,onCancel:t,hideTitle:n,hideActions:o,renderCategoryIcon:r,getCategoryTagline:l,className:i=""}){const{theme:s,propositionsForCategoryPicker:a,loading:c,setSelectedCategory:d,setSelectedSport:p,clearSelectedGame:f,displayCategoryName:h}=Kn(),x=s.colors,g=je(s),b=it(s);ie(a);const y=se(a);return c?/* @__PURE__ */m(St,{colors:Re(s),bodyFont:b,className:i,variant:"category",categoryCount:y.length>0?y.length:2}):/* @__PURE__ */u("div",{className:`flex flex-col min-h-full ${i}`,style:{fontFamily:b},children:[!n&&/* @__PURE__ */m("div",{className:"mb-2",children:/* @__PURE__ */m(Wo,{onBack:t,hideActions:o})}),/* @__PURE__ */m("div",{className:"flex-1",children:/* @__PURE__ */m("div",{className:"grid grid-cols-1 min-[400px]:grid-cols-2 gap-2.5 sm:gap-3",children:y.map(t=>{const n=l?.(t)??function(e){return I[e]??""}(t);/* @__PURE__ */
152
+ return u("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__ */m(Eo,{label:h(t),category:t,icon:r?.(t),theme:s}),n?/* @__PURE__ */m("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 Uo(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 Ko({name:e,renderTeamLogo:t,muted:n}){return e?/* @__PURE__ */u("span",{className:"inline-flex min-w-0 max-w-full items-center gap-1.5",children:[t?.(e),/* @__PURE__ */m("span",{className:"break-words text-sm font-semibold sm:text-base",children:e})]}):/* @__PURE__ */m("span",{className:"text-sm font-semibold",style:{color:n},children:"TBC"})}function Zo({onSelectEvent:t,className:n=""}){const{theme:o,loading:r,sameGameMultiEvents:l,selectSameGameMultiEvent:i,renderTeamLogo:s,displaySportName:a}=Kn(),[c,d]=e.useState(null),p=o.colors,f=it(o),h=st(o),x=je(o),g=Ye(o);return r?/* @__PURE__ */m(St,{colors:Re(o),bodyFont:f,className:n,variant:"sport",categoryCount:2}):/* @__PURE__ */u("section",{className:n,"aria-label":"Available fixtures",style:{fontFamily:f},children:[/* @__PURE__ */m("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__ */m("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__ */m("div",{className:"grid grid-cols-1 gap-2.5 sm:gap-3",children:l.map(e=>/* @__PURE__ */u("button",{type:"button","aria-label":`Select ${Ut(e)}`,onClick:()=>{i(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?jt(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__ */u("div",{className:"min-w-0 flex-1",children:[/* @__PURE__ */u("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:[
153
+ /* @__PURE__ */m(Ko,{name:e.homeTeam,renderTeamLogo:s,muted:p.textMuted}),
154
+ /* @__PURE__ */m("span",{className:"text-xs font-normal",style:{color:p.textMuted},children:"vs"}),
155
+ /* @__PURE__ */m(Ko,{name:e.awayTeam,renderTeamLogo:s,muted:p.textMuted})]}),/* @__PURE__ */u("p",{className:"mt-2 text-[11px] font-medium sm:text-xs",style:{color:p.textMuted},children:[Uo(e.commenceTime)," · ",e.propositionCount," proposition",1===e.propositionCount?"":"s",(e.league||e.sport)&&` · ${e.league?.toUpperCase()??a(e.sport)}`]})]}),/* @__PURE__ */m(Ho,{size:22,color:p.textMuted,className:"shrink-0 transition-transform group-hover:translate-x-0.5"})]},e.id))})]})}function Vo({counts:t,onPick:n,onDoubleAction:o,colors:r,align:l="right",direction:i="down",menuShadow:s="0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}){const[a,c]=e.useState(!1),[d,p]=e.useState(!1),f=e.useRef(null),h=e.useRef(null),x=e.useRef(null),g=36+36*t.length+12,b="up"===i||d?"up":"down";e.useEffect(()=>{if(!a)return void p(!1);const e=f.current;if(e&&"undefined"!=typeof window){const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom,o=t.top;p(n<g&&o>n)}const t=e=>{const t=e.target;f.current?.contains(t)||h.current?.contains(t)||c(!1)};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[a,g]);const y=a?/* @__PURE__ */u("div",{ref:h,role:"menu",className:"rounded-lg overflow-hidden",style:{position:"absolute",top:"up"===b?void 0:"calc(100% + 6px)",bottom:"up"===b?"calc(100% + 6px)":void 0,left:"left"===l?0:void 0,right:"right"===l?0:void 0,zIndex:20,backgroundColor:r.background,border:`1px solid ${r.border}`,boxShadow:s,minWidth:160},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:"How many picks?"}),t.map(e=>/* @__PURE__ */u("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__ */u("span",{className:"text-sm font-semibold",style:{color:r.text},children:[e," picks"]}),/* @__PURE__ */m("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__ */
156
+ return u("div",{ref:f,className:"flex-shrink-0 relative",children:[/* @__PURE__ */m(Vn,{onPress:()=>{o?null==x.current&&(x.current=window.setTimeout(()=>{x.current=null,c(e=>!e)},220)):c(e=>!e)},onDoubleClick:o?()=>{null!=x.current&&(window.clearTimeout(x.current),x.current=null),c(!1),o?.()}:void 0}),y]})}function qo({className:e="",onBack:t,onNext:n,hideActions:o}){const{theme:r,headingFont:l,selectedGame:i,propositions:s,selections:a,toggleSelection:c,selectedPropositionCount:d,disableQuickPick:p,answeredCount:f,goToConfirmation:h,selectedEventId:x,sameGameMultiEvents:g,selectSameGameMultiEvent:b}=Kn(),y=r.colors,w=Zt(i)&&!x,k=g.find(e=>e.id===x),v=i?de(i,d):{min:0,max:0},N=v.min,F=Zt(i)&&x?Math.min(v.max,s.length):v.max,B=N>0&&N===F,C=!(i?.allowed_propositions&&i.allowed_propositions.length>0)&&N>0&&F>N,A=B?F:F||s.length,M=e=>{const t=Math.max(0,Math.min(e??A,s.length));for(const l of Object.keys(a)){const e=Number(l);c(e,a[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)c(l.id,"yes");for(const l of r)c(l.id,"no")},S=!p&&s.length>0,L=C?Array.from({length:F-N+1},(e,t)=>N+t).filter(e=>e<=s.length):[],z=f>0?f:N||A;/* @__PURE__ */
157
+ return u("div",{className:`flex items-center justify-between gap-3 pl-2 ${e}`,children:[/* @__PURE__ */u("div",{children:[/* @__PURE__ */m("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:Le(r),fontFamily:l},children:w?"Choose a Game":"Select Propositions"}),i&&/* @__PURE__ */m(Qn,{onBack:x?()=>b(null):t,hideActions:o,children:/* @__PURE__ */m("p",{className:"text-sm",style:{color:y.textMuted},children:k?Ut(k):i.game_name})})]}),S&&(L.length>1?/* @__PURE__ */m(Vo,{counts:L,onPick:e=>{M(e),h(),n?.()},onDoubleAction:()=>{M(z),h(),n?.()},colors:y,menuShadow:Ht(r)}):/* @__PURE__ */m("div",{className:"flex-shrink-0",children:/* @__PURE__ */m(Vn,{onPress:()=>{M(),h(),n?.()}})}))]})}function Xo({onNext:e,onBack:t,hideButtons:n=!1,className:o=""}){const{theme:r,selectionValid:l,answeredCount:i,selectedGame:s,selectedPropositionCount:a,selectedEventId:c,propositions:p,goToConfirmation:f,overloadPayouts:h,betAmount:x}=Kn(),g=r.colors,b=je(r),y=g.textAlt??g.textMuted,w=s?de(s,a):{min:0,max:0},k=w.min,v=Zt(s)&&c?Math.min(w.max,p.length):w.max,N=!!(s?.allowed_propositions&&s.allowed_propositions.length>0),F=!N&&k>0&&v>k&&i>=k&&i<v,B=v-i,C=!N&&k>0&&v>k,A=s?C?k:v||k||s.num_propositions||0:0,M=C?v:A,S=M>0?Math.min(i/M,1):0,L=C&&v>0?k/v*100:0,z=Math.max(0,k-i),P=l&&!!e,O=0===i?"Let's get started":C&&z>0?1===z?"1 to go — almost there":`${z} to go`:F?`${B} more pick${1!==B?"s":""} available`:S>=1?"✓ All selections made":S>=.75?"Almost there!":S>=.5?"Over halfway!":S>=.25?"Getting close":"Nice start",D=C?i>=k?`${i} of maximum ${v}`:`${i} of minimum ${k}`:`${i} / ${A||p.length} picks`,E=x>0?x:20,T=h[i],H=null!=T&&T>0?T*(E/20):null,j=h[i+1],Y=null!=j&&j>0?j*(E/20):null;/* @__PURE__ */
158
+ return m("div",{className:o,children:/* @__PURE__ */m("div",{className:"rounded-xl border overflow-hidden mb-4",style:{borderColor:i>0?g.primary:g.border,backgroundColor:b,boxShadow:Tt(r)},children:/* @__PURE__ */u("div",{className:"w-full p-4 sm:p-5",style:{backgroundColor:i>0?`${g.primary}10`:"transparent"},children:[
159
+ /* @__PURE__ */u("div",{className:"flex items-center justify-between gap-2 mb-3",children:[
160
+ /* @__PURE__ */m("span",{className:"text-sm font-semibold shrink-0",style:{color:i>0?g.primary:y},children:D}),P?/* @__PURE__ */u("button",{type:"button",onClick:()=>{f(),e?.()},className:"shrink-0 px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:g.buttonPrimaryText,backgroundColor:g.buttonPrimary,cursor:"pointer"},children:["Continue with ",i]}):/* @__PURE__ */m("span",{className:"text-xs font-semibold text-right",style:{color:S>=1?g.success:g.primary,animation:"fadeSlideIn 0.3s ease-out"},children:O},O),
161
+ /* @__PURE__ */m("style",{children:"@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }"})]}),
162
+ /* @__PURE__ */u("div",{className:"relative w-full h-2 rounded-full overflow-hidden",style:{backgroundColor:g.background},children:[/* @__PURE__ */m("div",{className:"h-full rounded-full transition-all duration-300",style:{width:`${Math.min(100*S,100)}%`,backgroundColor:l?g.success:g.primary}}),C&&/* @__PURE__ */m("div",{"aria-hidden":!0,title:`Minimum ${k}`,style:{position:"absolute",top:-1,bottom:-1,left:`${L}%`,width:2,marginLeft:-1,borderRadius:1,backgroundColor:b,boxShadow:`0 0 0 1px ${g.textMuted}55`}})]}),C&&/* @__PURE__ */u("div",{className:"flex items-center justify-between mt-1.5",children:[/* @__PURE__ */m("span",{className:"text-[11px]",style:{color:i>=k?g.success:g.textMuted},children:i>=k?`✓ Minimum ${k} reached`:`Minimum ${k}`}),/* @__PURE__ */u("span",{className:"text-[11px]",style:{color:g.textMuted},children:["Max ",v]})]}),F&&null!=Y&&i<v&&/* @__PURE__ */u("p",{className:"text-xs mt-2",style:{color:g.textMuted},children:["Play with"," ",
163
+ /* @__PURE__ */m("span",{style:{color:g.text,fontWeight:600},children:ee(E)}),/* @__PURE__ */u(d,null!=H?{children:[" ","to win up to"," ",
164
+ /* @__PURE__ */m("span",{style:{color:g.heading??g.text,fontWeight:700},children:ee(H)}),", add another pick to win up to"," ",
165
+ /* @__PURE__ */m("span",{style:{color:g.heading??g.text,fontWeight:700},children:ee(Y)})]}:{children:[" ","to win up to"," ",
166
+ /* @__PURE__ */m("span",{style:{color:g.heading??g.text,fontWeight:700},children:ee(Y)})]})]})]})})})}function Qo({onNext:t,onBack:n,hideTitle:o,hideActions:r,className:l=""}){const i=Kn(),{theme:s,bodyFont:a,selectedGame:c,propositions:p,propositionsForSportPicker:f,selections:h,toggleSelection:x,loading:g,error:b,showHomeAway:y,renderTeamLogo:w,filterSport:k,initialSport:v,gameCategory:N,selectedPropositionCount:F,handlePropositionCountChange:B,goToConfirmation:C,goBack:A,selectedCategory:M,setSelectedCategory:S,selectedSport:L,setSelectedSport:z,selectedEventId:P,propositionsForCategoryPicker:O,answeredCount:D}=i;s.colors,e.useEffect(()=>{c||(i.goToSportSelection(),n?.())},[c,i,n]);const E=e.useMemo(()=>{if(!c)return null;const{min:e,max:t}=de(c,F??void 0);if(e>0&&e===t)return e;const n=bo(c);return null!=F&&F>0&&("game_set"===n||"pick_your_dividend"===n||yo(c))?F:null},[c,F]),T=e.useRef(D);e.useEffect(()=>{const e=T.current;T.current=D,null!=E&&e<E&&D===E&&(C(),t?.())},[D,E]);const H=e.useMemo(()=>se(O??[]),[O]);e.useEffect(()=>{c&&1===H.length&&M!==H[0]&&S(H[0])},[c,H,M,S]);const j=e.useMemo(()=>{const e=/* @__PURE__ */new Set;for(const t of f??[])t.sport&&e.add(t.sport);return Array.from(e)},[f]);if(e.useEffect(()=>{c&&(H.length>1&&!M||1===j.length&&L!==j[0]&&z(j[0]))},[c,H,M,j,L,z]),!c)return null;const Y=H.length>1&&!M,R=!Y&&j.length>1&&!L,W=!Y&&!R&&Zt(c)&&!P,G=(()=>{if(!Zt(c)||!P)return c;const e=Math.min(c.max_propositions??p.length,p.length);return{...c,max_propositions:e,allowed_propositions:c.allowed_propositions?.filter(t=>t<=e)}})(),I=()=>{A(),n?.()};/* @__PURE__ */
167
+ return u("div",{className:`flex flex-col min-h-full ${l}`,style:{fontFamily:a},children:[!o&&/* @__PURE__ */m("div",{className:"mb-6",children:/* @__PURE__ */m(qo,{onBack:r?I:void 0,onNext:r?t:void 0,hideActions:r})}),!Zt(c)&&/* @__PURE__ */m(qn,{}),
168
+ /* @__PURE__ */m("div",{className:"flex-1",children:Y?/* @__PURE__ */m(Io,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>S(e)}):R?/* @__PURE__ */m(Ro,{hideTitle:!0,hideActions:!0,onSelectSport:e=>z(e)}):W?/* @__PURE__ */m(Zo,{}):/* @__PURE__ */m(d,{children:/* @__PURE__ */m(Oo,{game:G,propositions:p,selections:h,onToggleSelection:x,onNext:()=>{C(),t?.()},onBack:I,loading:g,error:b,theme:s,hideActions:!0,initialSport:k??v,renderTeamLogo:w,disableQuickPick:!0,selectedPropositionCount:F,onPropositionCountChange:B,showHomeAway:y,gameCategory:N})})}),!r&&!Y&&!R&&!W&&/* @__PURE__ */m("div",{className:"mt-6",children:/* @__PURE__ */m(Xo,{onNext:t,onBack:n})})]})}function Jo({count:e,payout20:t,selected:n,onSelect:o,colors:r,bodyFont:l,extraBetAmount:i,buttonLabel:s,hidePayouts:a}){const c=null!=i&&20!==i,p=null!=t&&t>0&&c?t*(i/20):null;/* @__PURE__ */
169
+ return u("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */m("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:s?s(e):`Multi ${e}`}),!a&&null!=t&&t>0&&/* @__PURE__ */u(d,{children:[/* @__PURE__ */u("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__ */m("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:ee(p)}):/* @__PURE__ */m("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:ee(t)})]})]})}function $o({tiers:e,selectedCount:t,onSelect:n,colors:o,bodyFont:r,extraBetAmount:l,buttonLabel:i,columnLabel:s="Legs",buildYourOwn:a,quickPickOnly:p,onQuickPick:f,collapsible:h,expanded:x,onExpandedChange:g,summaryTiers:b}){const[y,w]=c(!1),k=x??y,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=(b??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__ */
170
+ return u("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"stretch"},children:[/* @__PURE__ */u("div",{style:{display:"flex",flexDirection:"row",gap:8,overflowX:p?"visible":"auto",overflowY:"visible",alignItems:"flex-start",paddingBottom:6},children:[/* @__PURE__ */u("div",{style:{display:"flex",flexDirection:"column",gap:8,flexShrink:0,width:70},children:[/* @__PURE__ */m("div",{className:"py-1.5 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:p?"Quick Pick":s}),C&&/* @__PURE__ */u(d,{children:[/* @__PURE__ */m("div",{className:"py-1 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:"Dividend"}),/* @__PURE__ */m("div",{className:"py-1 text-xs",style:{color:o.textMuted,fontFamily:r,display:"flex",alignItems:"center"},children:F})]})]}),p?/* @__PURE__ */u("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"flex-start",width:S},children:[/* @__PURE__ */m(Vo,{counts:(b??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__ */m("div",{style:{display:"flex",flexDirection:"row",gap:8},children:e.map(e=>/* @__PURE__ */m("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:null!=e.payout20&&e.payout20>0?/* @__PURE__ */u(d,{children:[/* @__PURE__ */u("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__ */m("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:ee(N?e.payout20*(l/20):e.payout20)})]}):/* @__PURE__ */u(d,{children:[/* @__PURE__ */u("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__ */m("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))})]}):a?/* @__PURE__ */u("div",{style:{display:"flex",flexDirection:"column",gap:8,alignSelf:"flex-start",width:S},children:[/* @__PURE__ */m("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__ */m("div",{style:{display:"flex",flexDirection:"row",gap:8},children:e.map(e=>/* @__PURE__ */m("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",width:82},children:null!=e.payout20&&e.payout20>0?/* @__PURE__ */u(d,{children:[/* @__PURE__ */u("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__ */m("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:ee(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:ee(e.payout20)})]}):/* @__PURE__ */u(d,{children:[/* @__PURE__ */u("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__ */m("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__ */m(Jo,{count:e.count,payout20:e.payout20>0?e.payout20:null,selected:t===e.count,onSelect:()=>n(e.count),colors:o,bodyFont:r,extraBetAmount:l,buttonLabel:i,hidePayouts:B},e.count))]}),h&&(v?/* @__PURE__ */u("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 self-start max-w-full",style:{fontFamily:r},children:[/* @__PURE__ */u("span",{className:"text-xs font-semibold leading-snug",style:{color:o.text},children:["Win up to ",
171
+ /* @__PURE__ */m("span",{style:{color:o.heading??o.text??o.primary},children:ee(M)}),
172
+ /* @__PURE__ */m("span",{style:{color:o.textMuted},children:` for $${N?Math.round(l):20}`})]}),/* @__PURE__ */m("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__ */m("div",{"aria-hidden":"true",className:"text-xs font-semibold self-start",style:{padding:"2px 0",visibility:"hidden",fontFamily:r},children:"Show dividends"}))]})}function _o({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,selectedGame:l,selectedEventId:i,propositions:s,selections:a,toggleSelection:c,upgradePropositionCount:d,selectedPropositionCount:p,disableQuickPick:f,answeredCount:h}=Kn(),x=o.colors,g=l?de(l,p):{min:0,max:0},b=g.min,y=Zt(l)&&i?Math.min(g.max,s.length):g.max,w=b>0&&b===y,k=!(l?.allowed_propositions&&l.allowed_propositions.length>0)&&b>0&&y>b,v=w?y:y||s.length,N=e=>{const t=Math.max(0,Math.min(e??v,s.length));for(const r of Object.keys(a)){const e=Number(r);c(e,a[e])}const{yesPicks:n,noPicks:o}=Se(s,t);for(const r of n)c(r.id,"yes");for(const r of o)c(r.id,"no");d(t)},F=!f&&s.length>0,B=k?Array.from({length:y-b+1},(e,t)=>b+t):[],C=h>0?h:b||v;/* @__PURE__ */
173
+ return u("div",{className:`flex items-center justify-between gap-3 pl-2 ${e}`,children:[/* @__PURE__ */u("div",{children:[/* @__PURE__ */m("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:Le(o),fontFamily:r},children:"Place Your Wager"}),l&&/* @__PURE__ */m(Qn,{onBack:t,hideActions:n,children:/* @__PURE__ */m("p",{className:"text-sm",style:{color:x.textMuted},children:l.game_name})})]}),F&&(B.length>1?/* @__PURE__ */m(Vo,{counts:B,onPick:e=>N(e),onDoubleAction:()=>N(C),colors:x,menuShadow:Ht(o)}):/* @__PURE__ */m("div",{className:"flex-shrink-0",children:/* @__PURE__ */m(Vn,{onPress:()=>N()})}))]})}function er({onBack:e,onSubmitted:t,className:n=""}){const o=Kn(),{theme:r,selectedGame:l,expectedCorrect:i,betAmount:s,submitting:a,submitError:c,canSubmit:d,payouts:p,selectedPropositionIds:f,screenSize:h}=o,x=r.colors;if(!l)return null;const g=p[i]??0,b=me(l),y=i===f.length,w=b?.enabled&&y;/* @__PURE__ */
174
+ return u("div",{className:`flex items-center justify-between pt-4 ${n}`,children:[e&&"mobile"!==h&&/* @__PURE__ */m(Yt,{theme:r,variant:"secondary",onPress:e,children:"Back"}),/* @__PURE__ */u("div",{className:"flex items-center gap-3",children:[c&&/* @__PURE__ */m("span",{className:"text-xs",style:{color:x.error},children:c}),(g>0||w)&&/* @__PURE__ */u("div",{className:"text-right leading-tight hidden sm:block",children:[/* @__PURE__ */m("span",{className:"text-[10px] uppercase tracking-wide block",style:{color:x.textMuted},children:"Potential winnings"}),/* @__PURE__ */u("span",{className:"text-sm font-bold",style:{color:x.heading??x.text},children:[ee(g),w&&/* @__PURE__ */m("span",{style:{color:x.warning},children:" + Jackpot"})]})]}),
175
+ /* @__PURE__ */m(Yt,{theme:r,variant:"primary",disabled:!d,onPress:async()=>{await o.handleSubmit(),t?.()},children:a?"Placing…":`Place Entry (${ee(s)})`})]})]})}function tr({onBack:e,onSubmitted:t,hideTitle:n,hideActions:o,className:r=""}){const i=Kn(),{theme:s,bodyFont:a,selectedGame:c,selectedPropositions:p,selections:f,propositions:h,disableQuickPick:x,selectedPropositionCount:g,selectedEventId:b,expectedCorrect:y,setExpectedCorrect:w,betAmount:k,setBetAmount:v,submitting:N,submitError:F,canSubmit:B,winningCounts:C,payouts:A,overloadPayouts:M,renderTeamLogo:S,showHomeAway:L,userBalance:z,onRecharge:P,goBack:O,toggleSelection:D,upgradePropositionCount:E,goToSportSelection:T}=i,H=s.colors;if(l(()=>{c||(T(),e?.())},[c,T,e]),!c)return null;const j=!!(c.allowed_propositions&&c.allowed_propositions.length>0),Y=de(c,g),R=Y.min,W=Zt(c)&&b?Math.min(Y.max,h.length):Y.max,G=Object.keys(f).length,I=R>0&&G<R,U=!j&&R>0&&W>R&&G>=R&&G<W,K=j?[...c.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(g??0)):[],Z=j&&K.length>0&&!I,V=U||Z,q=W-G;H.textAlt??H.text,R>0&&R===W||W||h.length;const X=()=>{O(),e?.()},Q=(j?[...c.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===G&&e<(g??1/0)),J=j&&G<Math.min(...c.allowed_propositions??[1/0]),$=j&&I&&!J,_=ko(c),te=null!=Q?_.belowRequiredHint(Q,g??R):_.belowRequiredAddOnlyHint(g??R);return l(()=>{!I||j&&!J||(T(),e?.())},[I,j,J]),/* @__PURE__ */u("div",{className:`flex flex-col min-h-full ${r}`,style:{fontFamily:a},children:[!n&&/* @__PURE__ */m("div",{className:"mb-6",children:/* @__PURE__ */m(_o,{onBack:e,hideActions:o})}),
176
+ /* @__PURE__ */m("div",{className:"flex-1",children:/* @__PURE__ */m(Mn,{game:c,propositions:p,selections:f,onToggleSelection:D,onRemoveSelection:()=>{},onSubmit:async()=>{await i.handleSubmit(),t?.()},onBack:X,loading:N,error:F,expectedCorrect:y,onExpectedCorrectChange:w,betAmount:k,onBetAmountChange:v,theme:s,showCustomAmount:!0,betAmountLocked:un(c),betAmountLockedNote:"Set by your dividend ladder rung.",hideActions:!0,winningCounts:C,payouts:A,renderTeamLogo:S,showHomeAway:L,canSubmit:B,userBalance:z,onRecharge:P,boostBanner:/* @__PURE__ */u(d,{children:[$&&/* @__PURE__ */u("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__ */u("p",{className:"text-xs sm:text-sm",style:{color:H.text},children:["You have ",
177
+ /* @__PURE__ */u("span",{style:{fontWeight:700},children:[G," pick",1!==G?"s":""]}),"."," ",te]}),/* @__PURE__ */u("div",{className:"flex gap-2 flex-shrink-0",children:[/* @__PURE__ */m("button",{type:"button",onClick:X,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!=Q&&/* @__PURE__ */m("button",{type:"button",onClick:()=>E(Q),className:"px-3 py-1.5 rounded-lg text-xs font-semibold transition-colors",style:{color:H.buttonPrimaryText,backgroundColor:H.buttonPrimary,cursor:"pointer"},children:_.switchTierLabel(Q)})]})]}),V&&/* @__PURE__ */m("div",{className:"p-3 rounded-lg border",style:{backgroundColor:`${H.primary}08`,borderColor:`${H.primary}30`},children:Z?(()=>{const e=g??G,t=M[e],n=k>0?k:20,o=null!=t&&t>0?t*(n/20):null;/* @__PURE__ */
178
+ return u("div",{children:[
179
+ /* @__PURE__ */m("p",{className:"text-sm font-semibold mb-1",style:{color:H.primary},children:_.overloadTitle}),null!=o&&/* @__PURE__ */u("p",{className:"text-xs mb-2",style:{color:H.textMuted},children:["Currently winning up to"," ",
180
+ /* @__PURE__ */m("span",{style:{color:H.heading??H.text,fontWeight:700},children:ee(o)})," ","with ",e," picks"]}),
181
+ /* @__PURE__ */m($o,{tiers:K.map(e=>({count:e,payout20:M[e]??0})),selectedCount:void 0,onSelect:e=>{E(e),X()},colors:H,bodyFont:i.bodyFont,extraBetAmount:20!==n?n:void 0,columnLabel:_.tableColumnLabel,buttonLabel:_.tierButtonLabel})]})})():/* @__PURE__ */u("div",{className:"flex items-center justify-between gap-3",children:[/* @__PURE__ */u("p",{className:"text-xs",style:{color:H.textMuted},children:[1===q?"Add ":"Add up to ",
182
+ /* @__PURE__ */u("span",{style:{color:H.primary,fontWeight:700},children:[q," more pick",1!==q?"s":""]}),null!=M[W]&&M[W]>0&&/* @__PURE__ */u(d,{children:[" to win up to ",
183
+ /* @__PURE__ */m("span",{style:{color:H.heading??H.text,fontWeight:700},children:ee(M[W])})," with ",W," picks"]})]}),/* @__PURE__ */m("button",{type:"button",onClick:X,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"})]})})]})})}),o&&F&&/* @__PURE__ */m("div",{className:"mt-3 flex justify-end",children:/* @__PURE__ */m("span",{className:"text-xs",style:{color:H.error},children:F})})]})}function nr({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r,placedEntry:l}=Kn(),i=o.colors;/* @__PURE__ */
184
+ return u("div",{className:`flex items-center justify-between gap-3 pl-2 ${e}`,children:[/* @__PURE__ */u("div",{className:"min-w-0",children:[/* @__PURE__ */m("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:Le(o),fontFamily:r},children:"Entry Placed!"}),/* @__PURE__ */m(Qn,{onBack:t,hideActions:n,children:/* @__PURE__ */m("p",{className:"text-sm",style:{color:i.textMuted},children:l?/* @__PURE__ */u(d,{children:["Entry"," ",
185
+ /* @__PURE__ */u("span",{className:"font-mono font-semibold",style:{color:i.primary},children:["#",l.id]})," ","successfully submitted"]}):"Your entry has been successfully submitted"})})]}),/* @__PURE__ */m("div",{className:"w-12 h-12 sm:w-14 sm:h-14 rounded-full flex items-center justify-center flex-shrink-0",style:{backgroundColor:`${i.success}20`},children:/* @__PURE__ */m("svg",{className:"w-6 h-6 sm:w-7 sm:h-7",fill:"none",stroke:i.success,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24",children:/* @__PURE__ */m("path",{d:"M5 13l4 4L19 7"})})})]})}function or({onPlayAgain:e,onDone:t,onShare:n,className:o=""}){const{theme:r,reset:l,placedEntry:i,selectedGame:s,selectedPropositions:a,selections:c,betAmount:d}=Kn();return r.colors,/* @__PURE__ */u("div",{className:`flex items-center justify-between pt-4 ${o}`,children:[/* @__PURE__ */m(Yt,{theme:r,variant:"secondary",onPress:()=>{l(),e?.()},children:"Place Another"}),t&&/* @__PURE__ */m(Yt,{theme:r,variant:"primary",onPress:t,children:"Done"})]})}function rr({onPlayAgain:t,onDone:n,onBack:o,onShare:r,hideTitle:l,hideActions:i,className:s=""}){const a=Kn(),{theme:c,bodyFont:d,headingFont:p,selectedGame:f,placedEntry:h,betAmount:x,selectedPropositionIds:g,selectedPropositions:b,selections:y,payouts:w,onShare:k}=a,v=c.colors,N=je(c),F=v.textAlt??v.text,B=h?.proposition_ids?h.proposition_ids.length:g.length,C=w[B]??null,A=e.useRef(!1);return e.useEffect(()=>{h&&f?A.current=!1:(a.goToSportSelection(),A.current||(A.current=!0,t?t():n?.()))},[h,f,a,t,n]),h?/* @__PURE__ */u("div",{className:`flex flex-col min-h-full ${s}`,style:{fontFamily:d},children:[!l&&/* @__PURE__ */m("div",{className:"mb-6",children:/* @__PURE__ */m(nr,{onBack:o,hideActions:i})}),/* @__PURE__ */u("div",{className:"flex-1 space-y-3 sm:space-y-4",children:[/* @__PURE__ */u("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:N,borderColor:v.border,boxShadow:Tt(c)},children:[/* @__PURE__ */u("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__ */m("div",{className:"min-w-0 flex-1",children:/* @__PURE__ */m(Wn,{iconUrl:q(f),gameName:e,height:18,chipColor:v.primary,textColor:v.text,iconColor:v.primaryText,accentColor:c.brand?.accent})}):/* @__PURE__ */m("h3",{className:"text-sm sm:text-base font-semibold min-w-0 flex-1 truncate",style:{color:Le(c),fontFamily:p},children:e})})(),/* @__PURE__ */u("span",{className:"text-xs font-semibold px-2 py-0.5 rounded-full flex-shrink-0",style:{color:v.primary,backgroundColor:`${v.primary}15`},children:[B," pick",1!==B?"s":""]})]}),/* @__PURE__ */u("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:[
186
+ /* @__PURE__ */u("div",{children:[/* @__PURE__ */m("div",{className:"text-[10px] uppercase tracking-wide font-semibold",style:{color:v.textMuted},children:"Selections"}),/* @__PURE__ */m("div",{className:"text-sm font-semibold mt-0.5",style:{color:F},children:B})]}),x>0&&/* @__PURE__ */u("div",{children:[/* @__PURE__ */m("div",{className:"text-[10px] uppercase tracking-wide font-semibold",style:{color:v.textMuted},children:"Wager"}),/* @__PURE__ */m("div",{className:"text-sm font-semibold mt-0.5",style:{color:F},children:ee(x)})]}),null!=C&&C>0&&/* @__PURE__ */u("div",{children:[/* @__PURE__ */m("div",{className:"text-[10px] uppercase tracking-wide font-semibold",style:{color:v.textMuted},children:"Potential win"}),/* @__PURE__ */m("div",{className:"text-sm font-bold mt-0.5",style:{color:v.heading??v.text},children:ee(C)})]})]})]}),b.length>0&&/* @__PURE__ */u("div",{className:"p-4 sm:p-5 rounded-xl border",style:{backgroundColor:N,borderColor:v.border,boxShadow:Tt(c)},children:[/* @__PURE__ */m("h4",{className:"text-sm sm:text-base font-semibold mb-2",style:{color:Le(c),fontFamily:p},children:"Your picks"}),/* @__PURE__ */m("div",{className:"space-y-1.5",children:b.map((e,t)=>{const n=y?.[e.id],o="yes"===n;/* @__PURE__ */
187
+ return u("div",{className:"flex items-center gap-2 py-2 px-3 rounded",style:{backgroundColor:v.backgroundAlt},children:[
188
+ /* @__PURE__ */m("span",{className:"flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-[10px] font-bold",style:{backgroundColor:v.primary,color:v.primaryText},children:t+1}),
189
+ /* @__PURE__ */u("div",{className:"flex-1 min-w-0",children:[/* @__PURE__ */u("p",{className:"text-xs sm:text-sm font-medium truncate",style:{color:F},children:[e.home_team," ",
190
+ /* @__PURE__ */m("span",{style:{color:v.textMuted},children:"vs"})," ",e.away_team]}),/* @__PURE__ */m("p",{className:"text-[11px] truncate",style:{color:v.textMuted},children:e.description})]}),null!=n&&/* @__PURE__ */m(It,{theme:c,value:o?"yes":"no",size:"sm",style:{flexShrink:0}})]},e.id)})})]})]})]}):null}function lr({className:e="",onBack:t,hideActions:n}){const{theme:o,headingFont:r}=Kn();/* @__PURE__ */
191
+ return u("div",{className:`pl-2 ${e}`,children:[/* @__PURE__ */m("h1",{className:"text-xl sm:text-2xl font-bold",style:{color:Le(o),fontFamily:r},children:"Your Entries"}),/* @__PURE__ */m(Qn,{onBack:t,hideActions:n})]})}function ir({className:e="",onSelectEntry:t,onBack:n,hideTitle:o,hideActions:r}){const{theme:l,bodyFont:i,apiUrl:s,apiKey:a,fetchImpl:c,getAuthHeaders:d,userId:p,demoEntries:f,demoGames:h,demoPropositions:x,renderTeamLogo:g,showHomeAway:b,filterSport:y}=Kn();/* @__PURE__ */
192
+ return u("div",{className:`flex flex-col min-h-full ${e}`,style:{fontFamily:i},children:[!o&&/* @__PURE__ */m("div",{className:"mb-6",children:/* @__PURE__ */m(lr,{onBack:n,hideActions:r})}),/* @__PURE__ */m("div",{className:"flex-1",children:/* @__PURE__ */m(Gn,{apiUrl:s,apiKey:a,fetchImpl:c,getAuthHeaders:d,userId:p,demoEntries:f,demoGames:h,demoPropositions:x,onSelectEntry:t,theme:l,renderTeamLogo:g,showHomeAway:b,filterSport:y})})]})}function sr(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 ar(){/* @__PURE__ */
193
+ return m("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 cr({ink:e,ball:t,size:n,balls:o=1}){/* @__PURE__ */
194
+ return u("svg",{width:n,height:n,viewBox:"2 12 76 62",fill:"none","aria-hidden":!0,children:[
195
+ /* @__PURE__ */m("line",{x1:"9",y1:"18",x2:"71",y2:"18",stroke:e,strokeWidth:"2.5",strokeLinecap:"round"}),
196
+ /* @__PURE__ */m("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"}),
197
+ /* @__PURE__ */m("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"}),
198
+ /* @__PURE__ */m("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__ */m("circle",{cx:e.cx,cy:e.cy,r:e.r,fill:t},n))]})}function dr({ink:e,ball:t,size:n}){/* @__PURE__ */
199
+ return u("svg",{width:n,height:n,viewBox:"0 0 100 100",fill:"none","aria-hidden":!0,children:[
200
+ /* @__PURE__ */m("circle",{cx:"50",cy:"50",r:"34",stroke:e,strokeWidth:3,opacity:.9}),
201
+ /* @__PURE__ */m("circle",{cx:"50",cy:"50",r:"23",stroke:e,strokeWidth:3,opacity:.65}),
202
+ /* @__PURE__ */m("circle",{cx:"50",cy:"50",r:"8",fill:t}),
203
+ /* @__PURE__ */m("line",{x1:"80",y1:"20",x2:"55",y2:"45",stroke:e,strokeWidth:4,strokeLinecap:"round"}),
204
+ /* @__PURE__ */m("path",{d:"M50 50 l8 -3 -3 8 z",fill:e})]})}function mr({ink:e,ball:t,size:n}){const o=[{x:16,h:22},{x:40,h:40},{x:64,h:60}];/* @__PURE__ */
205
+ return u("svg",{width:n,height:n,viewBox:"0 0 100 100",fill:"none","aria-hidden":!0,children:[
206
+ /* @__PURE__ */m("line",{x1:"10",y1:"84",x2:"90",y2:"84",stroke:e,strokeWidth:"2",opacity:"0.5"}),o.map((n,r)=>/* @__PURE__ */m("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)),
207
+ /* @__PURE__ */m("path",{d:"M14 60 L38 48 L62 30 L86 14",stroke:e,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),
208
+ /* @__PURE__ */m("path",{d:"M86 14 l-9 1 M86 14 l1 9",stroke:e,strokeWidth:"3",strokeLinecap:"round"})]})}function ur({kind:e,balls:t,...n}){return"safety_net"===e?/* @__PURE__ */m(cr,{...n,balls:t}):/* @__PURE__ */m("pick"===e?mr:dr,{...n})}function pr({kind:e,size:t=56,balls:n}){const{theme:o}=Kn(),r=o.colors,l=o.brand?.chip??r.primary,i=o.brand?.icon??r.primaryText,s=Ee(o);/* @__PURE__ */
209
+ return m("span",{"aria-hidden":!0,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:t,height:t,borderRadius:.3*t,backgroundColor:l,border:`1px solid ${sr(i,.16)}`,flexShrink:0,boxShadow:`0 8px 18px -12px ${sr(l,.9)}`},children:/* @__PURE__ */m(ur,{kind:e,ink:i,ball:s,balls:n,size:Math.round(.68*t)})})}function fr({option:e,renderDividends:t}){const{theme:n}=Kn(),o=n.colors,r=st(n),l=o.primary,i=Ee(n),s=e.dividends??[];return t?/* @__PURE__ */m(d,{children:t(e)}):/* @__PURE__ */u("div",{className:"flex flex-col gap-1.5",children:[/* @__PURE__ */u("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:o.textMuted},children:[/* @__PURE__ */m("span",{children:"If you land"}),/* @__PURE__ */u("span",{children:["$",20," returns"]})]}),s.map((t,n)=>{const s=e.tierLegs?.[n];/* @__PURE__ */
210
+ return u("div",{className:"flex items-center justify-between gap-3",children:[/* @__PURE__ */u("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[/* @__PURE__ */m("span",{className:"text-xs sm:text-[13px]",style:{color:o.text},children:t.label}),null!=s&&s>0&&/* @__PURE__ */u("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:s}).map((e,t)=>/* @__PURE__ */m("span",{style:{width:5,height:5,borderRadius:1.5,backgroundColor:l,opacity:.85}},t)),0===t.misses&&/* @__PURE__ */m("span",{style:{width:7,height:7,borderRadius:999,backgroundColor:i,marginLeft:2}})]})]}),/* @__PURE__ */m("span",{className:"text-sm font-extrabold tabular-nums sm:text-base",style:{color:l,fontFamily:r},children:ee(t.payout20)})]},t.misses)})]})}function hr({option:e,renderDividends:t}){const{theme:n}=Kn(),r=n.colors,s=it(n),f=Ht(n),h=e.dividends??[],x=h.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[g,b]=c(!1),y=a(null),w=a(null),[k,v]=c(null),N=40+36*Math.max(h.length,1)+12,F=o(()=>{const e=y.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]);i(()=>{if(!g)return void v(null);F();const e=()=>b(!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;y.current?.contains(t)||w.current?.contains(t)||b(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[g]);const B=g&&k&&"undefined"!=typeof document?p(/* @__PURE__ */m("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:s},children:t?/* @__PURE__ */m("div",{className:"px-3 py-2",children:t(e)}):/* @__PURE__ */u(d,{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:["Dividends for $",20]}),h.map((e,t)=>/* @__PURE__ */u("div",{className:"flex items-center justify-between px-3 py-2",style:{borderTop:0===t?"none":`1px solid ${r.border}`,gap:14},children:[/* @__PURE__ */m("span",{style:{fontWeight:700,color:r.text,fontSize:13},children:e.label}),/* @__PURE__ */m("span",{style:{fontWeight:700,color:e.payout20>0?r.heading??r.text:r.textMuted,fontSize:13,textAlign:"right"},children:e.payout20>0?ee(e.payout20):"—"})]},e.misses))]})}),document.body):null;/* @__PURE__ */
211
+ return u("div",{className:"flex w-full justify-center",children:[/* @__PURE__ */u("div",{className:"flex flex-wrap items-center justify-center gap-x-2 gap-y-1 max-w-full",style:{fontFamily:s},children:[x>0&&/* @__PURE__ */u("span",{className:"text-xs font-semibold leading-snug",style:{color:r.text},children:["Win up to ",
212
+ /* @__PURE__ */m("span",{style:{color:r.heading??r.text},children:ee(x)}),
213
+ /* @__PURE__ */u("span",{style:{color:r.textMuted},children:[" for $",20]})]}),/* @__PURE__ */m("button",{ref:y,type:"button",onClick:()=>b(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:s,lineHeight:1.35},children:g?"Hide dividends":"Show dividends"})]}),B]})}function xr({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=Kn(),l=r.colors,i=st(r),s=Le(r),a=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__ */
214
+ return u("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 ${sr(s,.7)}`},onMouseEnter:e=>{e.currentTarget.style.borderColor=a,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${sr(a,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=l.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${sr(s,.7)}`},children:[/* @__PURE__ */u("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:[
215
+ /* @__PURE__ */m(pr,{kind:e,balls:d,size:60}),
216
+ /* @__PURE__ */u("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[
217
+ /* @__PURE__ */m("span",{className:"text-lg font-extrabold leading-none tracking-tight sm:text-xl",style:{color:s,fontFamily:i},children:t.label}),t.stat&&/* @__PURE__ */m("span",{className:"w-fit rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em]",style:{backgroundColor:sr(a,.12),color:a},children:t.stat}),t.detail&&t.detail.length>0&&/* @__PURE__ */m("div",{className:"flex flex-col gap-0.5",style:{minHeight:"3.75rem"},children:t.detail.map(e=>/* @__PURE__ */m("span",{className:"text-xs leading-snug sm:text-[13px]",style:{color:l.textMuted},children:e},e))})]}),
218
+ /* @__PURE__ */m("span",{className:"shrink-0 self-center transition-transform group-hover:translate-x-0.5",style:{color:a},"aria-hidden":!0,children:/* @__PURE__ */m("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:/* @__PURE__ */m("path",{d:"m9 6 6 6-6 6"})})})]}),p&&/* @__PURE__ */m("div",{className:"mt-3 border-t pt-3",style:{borderColor:sr(s,.08)},children:/* @__PURE__ */m(f?fr:hr,{option:t,renderDividends:o})})]})}function gr({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r,selectedPropositionCount:l}=Kn(),i=st(o),s=o.colors,a=an(r,l);/* @__PURE__ */
219
+ return u("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */m("h1",{className:"text-[10px] sm:text-xs font-bold uppercase tracking-[0.14em] sm:tracking-[0.18em] mb-3 sm:mb-4",style:{color:s.primary,fontFamily:i},children:a?.title??"About this game"}),/* @__PURE__ */m(Qn,{onBack:t,hideActions:n,children:r&&/* @__PURE__ */u("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:s.textMuted},children:[r.game_name,a?.subtitle?` · ${a.subtitle}`:""]})})]})}function br({onContinue:e,canContinue:t,continueLabel:n="Continue",className:o=""}){const{theme:r,screenSize:l}=Kn(),i=r.colors;return e&&"mobile"!==l?/* @__PURE__ */m("div",{className:`flex items-center justify-end pt-4 ${o}`,children:/* @__PURE__ */m("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:i.buttonPrimaryText,backgroundColor:i.buttonPrimary,cursor:t?"pointer":"not-allowed"},children:n})}):null}function yr({onContinue:e,onBack:t,hideTitle:n,config:o,renderDividends:r,backLabel:l="Games",className:i=""}){const{theme:a,selectedGame:c,selectedPropositionCount:d,setExpectedCorrect:p,handlePropositionCountChange:f,screenSize:h}=Kn(),x=a.colors,g="mobile"===h,b=it(a),y=st(a),w=Le(a),k=Ee(a),v=s(()=>o??an(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 m("div",{className:i,style:{color:x.textMuted,fontFamily:b},children:"No rule setup required."});const B=v.kind,C=v.headline??v.heroTitle,A=v.continueLabel??"Continue";/* @__PURE__ */
220
+ return u("div",{className:`blade-rp flex min-h-full w-full flex-col ${i}`,style:{fontFamily:b},children:[
221
+ /* @__PURE__ */m(ar,{}),t&&/* @__PURE__ */u("button",{type:"button",onClick:t,className:"mb-3 inline-flex items-center gap-1.5 self-start text-sm font-semibold",style:{color:x.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=x.primary,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=x.textMuted,e.currentTarget.style.transform="translateX(0)"},children:[/* @__PURE__ */u("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__ */m("path",{d:"M19 12H5"}),/* @__PURE__ */m("path",{d:"m12 19-7-7 7-7"})]}),l]}),
222
+ /* @__PURE__ */u("div",{className:"mx-auto flex w-full max-w-3xl flex-1 flex-col",children:[!n&&/* @__PURE__ */m("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:y},children:v.title}),
223
+ /* @__PURE__ */u("header",{className:"blade-rp-in mb-6 flex flex-col items-center text-center sm:mb-7",children:[
224
+ /* @__PURE__ */m(Wn,{iconUrl:q(c),gameName:c.game_name,height:g?24:32,chipColor:x.primary,textColor:x.text,iconColor:x.primaryText,accentColor:a.brand?.accent,compact:g}),v.subtitle&&/* @__PURE__ */m("p",{className:"mt-2 text-xs sm:text-sm",style:{color:x.textMuted},children:v.subtitle}),(C||v.heroTagline)&&/* @__PURE__ */m("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__ */m("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__ */m("div",{className:"blade-rp-in flex h-full min-h-0",style:{animationDelay:.06+.07*t+"s"},children:/* @__PURE__ */m(xr,{kind:B,option:e,onSelect:()=>F(e),renderDividends:r})},e.id))}):v.highlights&&v.highlights.length>0&&/* @__PURE__ */m("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 ${sr(w,.7)}`,animationDelay:".06s"},onMouseEnter:e=>{e.currentTarget.style.borderColor=x.primary,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${sr(x.primary,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=x.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${sr(w,.7)}`},children:/* @__PURE__ */u("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:[
225
+ /* @__PURE__ */m(pr,{kind:B,size:60}),
226
+ /* @__PURE__ */m("span",{className:"flex min-w-0 flex-1 flex-col gap-2",children:v.highlights.map(e=>/* @__PURE__ */u("span",{className:"flex items-start gap-3",children:[/* @__PURE__ */m("span",{className:"mt-[7px] h-1.5 w-1.5 shrink-0 rounded-full",style:{backgroundColor:k},"aria-hidden":!0}),/* @__PURE__ */m("span",{className:"text-sm leading-snug sm:text-[15px]",style:{color:w},children:e})]},e))}),
227
+ /* @__PURE__ */m("span",{className:"shrink-0 self-center transition-transform group-hover:translate-x-0.5",style:{color:x.primary},"aria-hidden":!0,children:/* @__PURE__ */m("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:/* @__PURE__ */m("path",{d:"m9 6 6 6-6 6"})})})]})})]})]})}function wr(e,t){const n=/^#([0-9a-f]{6})$/i.exec(e?.trim()??"");if(!n)return e;const o=parseInt(n[1],16);return`rgba(${o>>16&255}, ${o>>8&255}, ${255&o}, ${t})`}function kr({iconUrl:e,size:t=56}){const{theme:n}=Kn(),o=n.colors,r=n.brand?.chip??o.primary,l=n.brand?.icon??o.primaryText,i=Ee(n);/* @__PURE__ */
228
+ return m("span",{"aria-hidden":!0,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:t,height:t,borderRadius:.3*t,backgroundColor:r,border:`1px solid ${wr(l,.16)}`,flexShrink:0,boxShadow:`0 8px 18px -12px ${wr(r,.9)}`},children:/* @__PURE__ */m(pt,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:l,accentColor:i})})}function vr({legs:e,prizeBall:t=!0}){const{theme:n}=Kn(),o=n.colors.primary,r=Ee(n);/* @__PURE__ */
229
+ return u("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:e}).map((e,t)=>/* @__PURE__ */m("span",{style:{width:5,height:5,borderRadius:1.5,backgroundColor:o,opacity:.85}},t)),t&&/* @__PURE__ */m("span",{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}})]})}function Nr({tile:e,label:t,stat:n,detail:o,onSelect:r,children:l}){const{theme:i}=Kn(),s=i.colors,a=st(i),c=Le(i),d=s.primary;/* @__PURE__ */
230
+ return u("div",{className:"blade-gmc-card flex h-full flex-col rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:s.selectionCard??s.backgroundAlt,borderColor:s.border,boxShadow:`0 10px 24px -20px ${wr(c,.7)}`},onMouseEnter:e=>{e.currentTarget.style.borderColor=d,e.currentTarget.style.boxShadow=`0 18px 36px -24px ${wr(d,.95)}`},onMouseLeave:e=>{e.currentTarget.style.borderColor=s.border,e.currentTarget.style.boxShadow=`0 10px 24px -20px ${wr(c,.7)}`},children:[/* @__PURE__ */u("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,
231
+ /* @__PURE__ */u("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[
232
+ /* @__PURE__ */m("span",{className:"text-lg font-extrabold leading-none tracking-tight sm:text-xl",style:{color:c,fontFamily:a},children:t}),n&&/* @__PURE__ */m("span",{className:"w-fit rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em]",style:{backgroundColor:wr(d,.12),color:d},children:n}),o&&o.length>0&&/* @__PURE__ */m("div",{className:"flex flex-col gap-0.5",children:o.map(e=>/* @__PURE__ */m("span",{className:"text-xs leading-snug sm:text-[13px]",style:{color:s.textMuted},children:e},e))})]}),
233
+ /* @__PURE__ */m("span",{className:"shrink-0 self-center transition-transform group-hover:translate-x-0.5",style:{color:d},"aria-hidden":!0,children:/* @__PURE__ */m("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:/* @__PURE__ */m("path",{d:"m9 6 6 6-6 6"})})})]}),l&&/* @__PURE__ */m("div",{className:"mt-3 border-t pt-3",style:{borderColor:wr(c,.08)},children:l})]})}function Fr(){/* @__PURE__ */
234
+ return m("style",{id:"blade-gmc-styles",children:"\n.blade-gmc-card{transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s cubic-bezier(.2,.8,.2,1),border-color .18s cubic-bezier(.2,.8,.2,1)}\n.blade-gmc-card:hover{transform:translateY(-2px)}\n.blade-gmc-card:active{transform:translateY(0) scale(.995)}\n@media (prefers-reduced-motion:reduce){.blade-gmc-card{transition:none}}\n"})}function Br({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Kn(),l=st(o),i=o.colors;/* @__PURE__ */
235
+ return u("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */m("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:l},children:"The fastest multi"}),/* @__PURE__ */m(Qn,{onBack:t,hideActions:n,children:r&&/* @__PURE__ */m("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:i.textMuted},children:r.game_name})})]})}function Cr({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:i=""}){const{theme:a,selectedGame:d,selectedPropositionCount:p,handlePropositionCountChange:f,setExpectedCorrect:h,setBetAmount:x,quickPickGame:g,goToSportSelection:b,screenSize:y}=Kn(),w=a.colors,k="mobile"===y,v=it(a),N=st(a),F=Le(a),B=je(a),C=s(()=>r??to(d),[r,d]),[A,M]=c(()=>C?null!=p&&C.legOptions.includes(p)?p:C.defaultLegs:8),[S,L]=c(()=>C?.defaultStake??20);if(!d||!_n(d)||!C)/* @__PURE__ */return m("div",{className:i,style:{color:w.textMuted,fontFamily:v},children:"No game set available."});const z=eo(S,A,{operatorMargin:C.operatorMargin,perLegProbability:C.perLegProbability}),P=S>=C.minStake,O=(e,t)=>/* @__PURE__ */u("div",{className:"mb-2 flex items-baseline justify-between",children:[/* @__PURE__ */m("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:w.textMuted},children:e}),/* @__PURE__ */m("span",{className:"text-xs font-semibold tabular-nums",style:{color:F},children:t})]});/* @__PURE__ */
236
+ return u("div",{className:`blade-gsb flex min-h-full w-full flex-col ${i}`,style:{fontFamily:v},children:[
237
+ /* @__PURE__ */m("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"}),
238
+ /* @__PURE__ */m(Fr,{}),n&&/* @__PURE__ */u("button",{type:"button",onClick:n,className:"mb-3 inline-flex items-center gap-1.5 self-start text-sm font-semibold",style:{color:w.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=w.primary,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=w.textMuted,e.currentTarget.style.transform="translateX(0)"},children:[/* @__PURE__ */u("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__ */m("path",{d:"M19 12H5"}),/* @__PURE__ */m("path",{d:"m12 19-7-7 7-7"})]}),l]}),
239
+ /* @__PURE__ */u("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[!o&&/* @__PURE__ */m("h2",{className:"blade-gsb-in mb-4 text-center text-[10px] font-bold uppercase tracking-[0.14em] sm:mb-5 sm:text-xs sm:tracking-[0.18em]",style:{color:w.primary,fontFamily:N},children:"The fastest multi"}),
240
+ /* @__PURE__ */u("header",{className:"blade-gsb-in mb-6 flex flex-col items-center text-center sm:mb-7",children:[/* @__PURE__ */m(Wn,{iconUrl:q(d),gameName:d.game_name,height:k?24:32,chipColor:w.primary,textColor:w.text,iconColor:w.primaryText,accentColor:a.brand?.accent,compact:k}),/* @__PURE__ */m("p",{className:"mt-3 max-w-sm text-sm leading-relaxed sm:text-[15px]",style:{color:w.textMuted},children:C.tagline})]}),
241
+ /* @__PURE__ */u("div",{className:"blade-gsb-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:B,borderColor:w.border,boxShadow:`0 10px 24px -20px ${wr(F,.7)}`,animationDelay:".06s"},children:[O("Legs",`${A} legs`),
242
+ /* @__PURE__ */m("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Number of legs",children:C.legOptions.map(e=>{const t=e===A;/* @__PURE__ */
243
+ return m("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>M(e),className:"min-w-[40px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?w.primary:"transparent",borderColor:t?w.primary:w.border,color:t?w.primaryText:w.textMuted,cursor:"pointer"},children:e},e)})}),
244
+ /* @__PURE__ */u("div",{className:"mt-2 flex items-baseline justify-between text-[11px] italic",style:{color:w.textMuted},children:[/* @__PURE__ */m("span",{children:"Easier to land"}),/* @__PURE__ */m("span",{children:"Bigger prize"})]}),
245
+ /* @__PURE__ */u("div",{className:"mt-4",children:[O("Stake",ee(S)),
246
+ /* @__PURE__ */u("div",{className:"relative",children:[/* @__PURE__ */m("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 font-bold",style:{color:w.textMuted},children:"$"}),/* @__PURE__ */m("input",{type:"number",inputMode:"decimal",min:C.minStake,max:C.maxStake??void 0,step:"any",placeholder:"Enter stake","aria-label":"Stake amount",value:S||"",onChange:e=>{if(""===e.target.value)return void L(0);const t=Number(e.target.value);Number.isFinite(t)&&L((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=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:v,transition:"border-color .15s ease"}})]}),
247
+ /* @__PURE__ */m("div",{className:"mt-2 flex flex-wrap gap-1.5",children:C.quickStakes.map(e=>{const t=e===S;/* @__PURE__ */
248
+ return u("button",{type:"button",onClick:()=>L(e),className:"min-w-[48px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?w.primary:"transparent",borderColor:t?w.primary:w.border,color:t?w.primaryText:w.textMuted,cursor:"pointer"},children:["$",e]},e)})}),!P&&S>0&&/* @__PURE__ */u("p",{className:"mt-2 text-xs",style:{color:w.error},children:["Minimum stake is ",ee(C.minStake),"."]})]}),
249
+ /* @__PURE__ */u("div",{className:"mt-4 border-t pt-3",style:{borderColor:wr(F,.08)},children:[
250
+ /* @__PURE__ */u("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:w.textMuted},children:[/* @__PURE__ */u("span",{children:["If all ",A," land"]}),/* @__PURE__ */u("span",{children:[ee(S)," returns"]})]}),
251
+ /* @__PURE__ */u("div",{className:"mt-1.5 flex items-center justify-between gap-3",children:[/* @__PURE__ */u("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[/* @__PURE__ */m("span",{className:"text-xs sm:text-[13px]",style:{color:w.text},children:"Perfect ticket"}),/* @__PURE__ */m(vr,{legs:A})]}),/* @__PURE__ */m("span",{className:"text-xl font-extrabold tabular-nums sm:text-2xl",style:{color:w.primary,fontFamily:N},children:ee(z.prize)})]}),
252
+ /* @__PURE__ */u("p",{className:"mt-1.5 text-[11px] tabular-nums",style:{color:w.textMuted},children:[(D=z.multiple,`×${(Math.round(10*D)/10).toLocaleString("en-US",{maximumFractionDigits:1})}`)," your stake · total return, stake included"]}),
253
+ /* @__PURE__ */m("p",{className:"mt-1 text-[11px] italic",style:{color:w.textMuted},children:"All or nothing. Miss a single leg and the ticket does not pay."})]})]}),
254
+ /* @__PURE__ */u("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[/* @__PURE__ */m("div",{className:"blade-gsb-in",style:{animationDelay:".13s"},children:/* @__PURE__ */m(Nr,{tile:/* @__PURE__ */m(kr,{iconUrl:q(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:()=>{P&&(f(A),h(A),x(S),b(),t?.())}})}),/* @__PURE__ */m("div",{className:"blade-gsb-in",style:{animationDelay:".2s"},children:/* @__PURE__ */m(Nr,{tile:/* @__PURE__ */m(kr,{iconUrl:`${U}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{P&&(h(A),x(S),g(d,A),e?.())}})})]})]})]});var D}function Ar({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Kn(),l=st(o),i=o.colors;/* @__PURE__ */
255
+ return u("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */m("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:l},children:"The dividend is set"}),/* @__PURE__ */m(Qn,{onBack:t,hideActions:n,children:r&&/* @__PURE__ */m("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:i.textMuted},children:r.game_name})})]})}function Mr({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:i=""}){const{theme:a,selectedGame:d,selectedPropositionCount:p,handlePropositionCountChange:f,setExpectedCorrect:h,setBetAmount:x,quickPickGame:g,goToSportSelection:b,screenSize:y}=Kn(),w=a.colors,k="mobile"===y,v=it(a),N=st(a),F=Le(a),B=je(a),C=s(()=>r??xn(d),[r,d]),[A,M]=c(()=>C?.defaultDividend??1e4),[S,L]=c(()=>{const e=C?.dividends[0]?.rungs.map(e=>e.legs)??[];return null!=p&&e.includes(p)?p:C?.defaultLegs??9});if(!d||!un(d)||!C)/* @__PURE__ */return m("div",{className:i,style:{color:w.textMuted,fontFamily:v},children:"No dividend series available."});const z=C.dividends.find(e=>e.dividend===A)??C.dividends[0],P=z.rungs.find(e=>e.legs===S)??z.rungs[0],O=Math.max(...z.rungs.map(e=>e.legs)),D=Math.min(...z.rungs.map(e=>e.legs));/* @__PURE__ */
256
+ return u("div",{className:`blade-pyd flex min-h-full w-full flex-col ${i}`,style:{fontFamily:v},children:[
257
+ /* @__PURE__ */m("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"}),
258
+ /* @__PURE__ */m(Fr,{}),n&&/* @__PURE__ */u("button",{type:"button",onClick:n,className:"mb-3 inline-flex items-center gap-1.5 self-start text-sm font-semibold",style:{color:w.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=w.primary,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=w.textMuted,e.currentTarget.style.transform="translateX(0)"},children:[/* @__PURE__ */u("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__ */m("path",{d:"M19 12H5"}),/* @__PURE__ */m("path",{d:"m12 19-7-7 7-7"})]}),l]}),
259
+ /* @__PURE__ */u("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[!o&&/* @__PURE__ */m("h2",{className:"blade-pyd-in mb-4 text-center text-[10px] font-bold uppercase tracking-[0.14em] sm:mb-5 sm:text-xs sm:tracking-[0.18em]",style:{color:w.primary,fontFamily:N},children:"Pick your dividend"}),
260
+ /* @__PURE__ */u("header",{className:"blade-pyd-in mb-6 flex flex-col items-center text-center sm:mb-7",children:[/* @__PURE__ */m(Wn,{iconUrl:q(d),gameName:d.game_name,height:k?24:32,chipColor:w.primary,textColor:w.text,iconColor:w.primaryText,accentColor:a.brand?.accent,compact:k}),/* @__PURE__ */m("p",{className:"mt-3 max-w-sm text-sm leading-relaxed sm:text-[15px]",style:{color:w.textMuted},children:C.tagline})]}),
261
+ /* @__PURE__ */u("div",{className:"blade-pyd-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:B,borderColor:w.border,boxShadow:`0 10px 24px -20px ${wr(F,.7)}`,animationDelay:".06s"},children:[(E=ee(z.dividend),/* @__PURE__ */u("div",{className:"mb-2 flex items-baseline justify-between",children:[/* @__PURE__ */m("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:w.textMuted},children:"Set dividend"}),E&&/* @__PURE__ */m("span",{className:"text-xs font-semibold tabular-nums",style:{color:F},children:E})]})),
262
+ /* @__PURE__ */m("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-4",role:"radiogroup","aria-label":"Set dividend",children:C.dividends.map((e,t)=>{const n=e.dividend===A;/* @__PURE__ */
263
+ return u("button",{type:"button",role:"radio","aria-checked":n,onClick:()=>M(e.dividend),className:"rounded-xl border px-2 py-3 text-center transition-colors "+(t===C.dividends.length-1&&C.dividends.length%2==1?"col-span-2 sm:col-span-1":""),style:{backgroundColor:n?wr(w.primary,.08):"transparent",borderColor:n?w.primary:w.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=w.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=n?w.primary:w.border},children:[/* @__PURE__ */m("span",{className:"block text-xl font-extrabold leading-none tracking-tight tabular-nums",style:{color:F,fontFamily:N},children:ee(e.dividend)}),/* @__PURE__ */u("span",{className:"mt-1 block text-[10px]",style:{color:w.textMuted},children:["from ",ee(e.rungs[0]?.stake??0)]})]},e.dividend)})}),
264
+ /* @__PURE__ */m("p",{className:"mt-2 text-[11px] italic",style:{color:w.textMuted},children:"One set amount — it does not move, whatever you spend."}),
265
+ /* @__PURE__ */u("div",{className:"mt-4 border-t pt-3",style:{borderColor:wr(F,.08)},children:[
266
+ /* @__PURE__ */u("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:w.textMuted},children:[/* @__PURE__ */m("span",{children:"Legs to land"}),/* @__PURE__ */m("span",{children:"Your stake"})]}),
267
+ /* @__PURE__ */m("div",{className:"mt-1.5 flex flex-col gap-1.5",role:"radiogroup","aria-label":"Stake ladder",children:z.rungs.map(e=>{const t=e.legs===S;/* @__PURE__ */
268
+ return u("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>L(e.legs),className:"flex items-center justify-between gap-3 rounded-xl border px-3 py-2 text-left transition-colors",style:{backgroundColor:t?wr(w.primary,.08):"transparent",borderColor:t?w.primary:w.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=w.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=t?w.primary:w.border},children:[/* @__PURE__ */u("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[/* @__PURE__ */u("span",{className:"text-xs sm:text-[13px]",style:{color:w.text},children:[e.legs," legs",e.legs===O?" · the long climb":e.legs===D?" · the sprint":""]}),/* @__PURE__ */m(vr,{legs:e.legs})]}),/* @__PURE__ */m("span",{className:"shrink-0 text-sm font-extrabold tabular-nums sm:text-base",style:{color:w.primary,fontFamily:N},children:ee(e.stake)})]},e.legs)})}),
269
+ /* @__PURE__ */m("p",{className:"mt-2 text-[11px] italic",style:{color:w.textMuted},children:"Same dividend on every rung — a little for the long climb, more for the short one."})]})]}),
270
+ /* @__PURE__ */u("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[/* @__PURE__ */m("div",{className:"blade-pyd-in",style:{animationDelay:".13s"},children:/* @__PURE__ */m(Nr,{tile:/* @__PURE__ */m(kr,{iconUrl:q(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${P.legs} legs`,`${ee(P.stake)} chasing the ${ee(z.dividend)}`],onSelect:()=>{var e;f((e=P).legs),h(e.legs),x(e.stake),b(),t?.()}})}),/* @__PURE__ */m("div",{className:"blade-pyd-in",style:{animationDelay:".2s"},children:/* @__PURE__ */m(Nr,{tile:/* @__PURE__ */m(kr,{iconUrl:`${U}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${P.legs} legs at ${ee(P.stake)}`,"Straight to the bet slip"],onSelect:()=>{h(P.legs),x(P.stake),g(d,P.legs),e?.()}})})]})]})]});var E}function Sr({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Kn(),l=st(o),i=o.colors;/* @__PURE__ */
271
+ return u("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */m("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:l},children:"Every step pays"}),/* @__PURE__ */m(Qn,{onBack:t,hideActions:n,children:r&&/* @__PURE__ */m("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:i.textMuted},children:r.game_name})})]})}function Lr({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:i=""}){const{theme:a,selectedGame:d,selectedPropositionCount:p,handlePropositionCountChange:f,setExpectedCorrect:h,setBetAmount:x,quickPickGame:g,goToSportSelection:b,screenSize:y}=Kn(),w=a.colors,k="mobile"===y,v=it(a),N=st(a),F=Le(a),B=Ee(a),C=je(a),A=s(()=>r??mo(d),[r,d]),[M,S]=c(()=>A?null!=p&&A.ladders.some(e=>e.legs===p)?p:A.defaultLegs:8),[L,z]=c(()=>A?.defaultStake??50);if(!d||!lo(d)||!A)/* @__PURE__ */return m("div",{className:i,style:{color:w.textMuted,fontFamily:v},children:"No ladders available."});const P=A.ladders.find(e=>e.legs===M)??A.ladders[0],O=so(P,L),D=ao(P,L),E=(e,t)=>/* @__PURE__ */u("div",{className:"mb-2 flex items-baseline justify-between",children:[/* @__PURE__ */m("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:w.textMuted},children:e}),t&&/* @__PURE__ */m("span",{className:"text-xs font-semibold tabular-nums",style:{color:F},children:t})]});/* @__PURE__ */
272
+ return u("div",{className:`blade-lad flex min-h-full w-full flex-col ${i}`,style:{fontFamily:v},children:[
273
+ /* @__PURE__ */m("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"}),
274
+ /* @__PURE__ */m(Fr,{}),n&&/* @__PURE__ */u("button",{type:"button",onClick:n,className:"mb-3 inline-flex items-center gap-1.5 self-start text-sm font-semibold",style:{color:w.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=w.primary,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=w.textMuted,e.currentTarget.style.transform="translateX(0)"},children:[/* @__PURE__ */u("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__ */m("path",{d:"M19 12H5"}),/* @__PURE__ */m("path",{d:"m12 19-7-7 7-7"})]}),l]}),
275
+ /* @__PURE__ */u("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[!o&&/* @__PURE__ */m("h2",{className:"blade-lad-in mb-4 text-center text-[10px] font-bold uppercase tracking-[0.14em] sm:mb-5 sm:text-xs sm:tracking-[0.18em]",style:{color:w.primary,fontFamily:N},children:"Climb the ladder. Stack the prizes."}),
276
+ /* @__PURE__ */u("header",{className:"blade-lad-in mb-6 flex flex-col items-center text-center sm:mb-7",children:[/* @__PURE__ */m(Wn,{iconUrl:q(d),gameName:d.game_name,height:k?24:32,chipColor:w.primary,textColor:w.text,iconColor:w.primaryText,accentColor:a.brand?.accent,compact:k}),/* @__PURE__ */m("p",{className:"mt-3 max-w-sm text-sm leading-relaxed sm:text-[15px]",style:{color:w.textMuted},children:A.tagline})]}),
277
+ /* @__PURE__ */u("div",{className:"blade-lad-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 ${wr(F,.7)}`,animationDelay:".06s"},children:[E("Your bet",ee(L)),
278
+ /* @__PURE__ */m("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Bet size",children:A.stakes.map(e=>{const t=e===L;/* @__PURE__ */
279
+ return u("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>z(e),className:"min-w-[52px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?w.primary:"transparent",borderColor:t?w.primary:w.border,color:t?w.primaryText:w.textMuted,cursor:"pointer"},children:["$",e]},e)})}),
280
+ /* @__PURE__ */m("p",{className:"mt-2 text-[11px] italic",style:{color:w.textMuted},children:"Every prize scales with your bet."}),
281
+ /* @__PURE__ */u("div",{className:"mt-4",children:[E(`${A.ladders.length} ladders to choose from`),/* @__PURE__ */m("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-5",role:"radiogroup","aria-label":"Ladder",children:A.ladders.map((e,t)=>{const n=e.legs===M;/* @__PURE__ */
282
+ return u("button",{type:"button",role:"radio","aria-checked":n,onClick:()=>S(e.legs),className:"rounded-xl border px-2 py-3 text-center transition-colors "+(t===A.ladders.length-1&&A.ladders.length%2==1?"col-span-2 sm:col-span-1":""),style:{backgroundColor:n?wr(w.primary,.08):"transparent",borderColor:n?w.primary:w.border,cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.borderColor=w.primary},onMouseLeave:e=>{e.currentTarget.style.borderColor=n?w.primary:w.border},children:[
283
+ /* @__PURE__ */u("span",{className:"block text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:w.primary},children:["Ladder ",e.legs]}),
284
+ /* @__PURE__ */m("span",{className:"mt-1 block text-xl font-extrabold leading-none tracking-tight tabular-nums",style:{color:F,fontFamily:N},children:ee(ao(e,L))}),
285
+ /* @__PURE__ */u("span",{className:"mt-1 block text-[10px]",style:{color:w.textMuted},children:["Win from ",e.firstPayingTier," right"]})]},e.legs)})})]}),
286
+ /* @__PURE__ */u("div",{className:"mt-4 border-t pt-3",style:{borderColor:wr(F,.08)},children:[
287
+ /* @__PURE__ */u("p",{className:"mb-2 text-xs",style:{color:w.text},children:["Ladder ",P.legs," wins from ",P.firstPayingTier," right — every tier stacks into the"," ",
288
+ /* @__PURE__ */m("span",{style:{fontWeight:700,color:F},children:ee(D)})," Full Stack Prize."]}),
289
+ /* @__PURE__ */u("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:w.textMuted},children:[/* @__PURE__ */m("span",{children:"Get right"}),/* @__PURE__ */u("span",{className:"flex gap-4",children:[/* @__PURE__ */m("span",{children:"Tier pays"}),/* @__PURE__ */m("span",{children:"You collect"})]})]}),
290
+ /* @__PURE__ */m("div",{className:"mt-1.5 flex flex-col gap-1.5",children:[...O].reverse().map(e=>{const t=e.atLeast===P.legs;/* @__PURE__ */
291
+ return u("div",{className:"flex items-center justify-between gap-3",children:[/* @__PURE__ */u("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[/* @__PURE__ */u("span",{className:"flex items-center gap-2 text-xs sm:text-[13px]",style:{color:w.text},children:[e.atLeast," of ",P.legs,t&&/* @__PURE__ */m("span",{className:"rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-[0.08em]",style:{backgroundColor:wr(B,.35),color:F},children:"Full stack"})]}),/* @__PURE__ */m(vr,{legs:e.atLeast,prizeBall:t})]}),/* @__PURE__ */u("span",{className:"flex shrink-0 items-baseline gap-4",children:[/* @__PURE__ */m("span",{className:"text-[11px] tabular-nums",style:{color:w.textMuted},children:ee(e.prize)}),/* @__PURE__ */m("span",{className:"min-w-[64px] text-right text-sm font-extrabold tabular-nums sm:text-base",style:{color:w.primary,fontFamily:N},children:ee(e.cumulative)})]})]},e.atLeast)})}),
292
+ /* @__PURE__ */u("p",{className:"mt-2 text-[11px] italic",style:{color:w.textMuted},children:["Land below ",P.firstPayingTier," right and the ticket does not pay."]})]})]}),
293
+ /* @__PURE__ */u("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[/* @__PURE__ */m("div",{className:"blade-lad-in",style:{animationDelay:".13s"},children:/* @__PURE__ */m(Nr,{tile:/* @__PURE__ */m(kr,{iconUrl:q(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${P.legs} outcomes`,`Win from ${P.firstPayingTier} right — every tier stacks`],onSelect:()=>{f(P.legs),h(P.legs),x(L),b(),t?.()}})}),/* @__PURE__ */m("div",{className:"blade-lad-in",style:{animationDelay:".2s"},children:/* @__PURE__ */m(Nr,{tile:/* @__PURE__ */m(kr,{iconUrl:`${U}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${P.legs} legs at ${ee(L)}`,"Straight to the bet slip"],onSelect:()=>{h(P.legs),x(L),g(d,P.legs),e?.()}})})]})]})]})}function zr({legs:e,right:t}){const{theme:n}=Kn(),o=n.colors.primary,r=Ee(n);/* @__PURE__ */
294
+ return u("span",{className:"flex items-center gap-[3px]","aria-hidden":!0,children:[Array.from({length:e}).map((e,n)=>/* @__PURE__ */m("span",{style:{width:5,height:5,borderRadius:1.5,backgroundColor:t?o:"transparent",border:t?"none":`1px solid ${wr(o,.45)}`,opacity:t?.85:1}},n)),/* @__PURE__ */m("span",{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}})]})}function Pr({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Kn(),l=st(o),i=o.colors;/* @__PURE__ */
295
+ return u("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */m("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:l},children:"All right, or all wrong"}),/* @__PURE__ */m(Qn,{onBack:t,hideActions:n,children:r&&/* @__PURE__ */m("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:i.textMuted},children:r.game_name})})]})}function Or({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:l="Games",className:i=""}){const{theme:a,selectedGame:d,selectedPropositionCount:p,handlePropositionCountChange:f,setExpectedCorrect:h,setBetAmount:x,quickPickGame:g,goToSportSelection:b,screenSize:y}=Kn(),w=a.colors,k="mobile"===y,v=it(a),N=st(a),F=Le(a),B=je(a),C=s(()=>r??go(d),[r,d]),[A,M]=c(()=>C?null!=p&&C.legOptions.includes(p)?p:C.defaultLegs:8),[S,L]=c(()=>C?.defaultStake??20);if(!d||!ho(d)||!C)/* @__PURE__ */return m("div",{className:i,style:{color:w.textMuted,fontFamily:v},children:"No mirror available."});const z=xo(S,A,{operatorMargin:C.operatorMargin,perLegProbability:C.perLegProbability}),P=S>=C.minStake,O=(e,t)=>/* @__PURE__ */u("div",{className:"mb-2 flex items-baseline justify-between",children:[/* @__PURE__ */m("span",{className:"text-[10px] font-bold uppercase tracking-[0.1em]",style:{color:w.textMuted},children:e}),/* @__PURE__ */m("span",{className:"text-xs font-semibold tabular-nums",style:{color:F},children:t})]}),D=e=>/* @__PURE__ */u("div",{className:"flex items-center justify-between gap-3",children:[/* @__PURE__ */u("span",{className:"flex min-w-0 flex-col gap-[3px]",children:[/* @__PURE__ */m("span",{className:"text-xs sm:text-[13px]",style:{color:w.text},children:e?`All ${A} right`:`All ${A} wrong`}),/* @__PURE__ */m(zr,{legs:A,right:e})]}),/* @__PURE__ */m("span",{className:"text-lg font-extrabold tabular-nums sm:text-xl",style:{color:w.primary,fontFamily:N},children:ee(z.prize)})]});/* @__PURE__ */
296
+ return u("div",{className:`blade-mir flex min-h-full w-full flex-col ${i}`,style:{fontFamily:v},children:[
297
+ /* @__PURE__ */m("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"}),
298
+ /* @__PURE__ */m(Fr,{}),n&&/* @__PURE__ */u("button",{type:"button",onClick:n,className:"mb-3 inline-flex items-center gap-1.5 self-start text-sm font-semibold",style:{color:w.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=w.primary,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=w.textMuted,e.currentTarget.style.transform="translateX(0)"},children:[/* @__PURE__ */u("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__ */m("path",{d:"M19 12H5"}),/* @__PURE__ */m("path",{d:"m12 19-7-7 7-7"})]}),l]}),
299
+ /* @__PURE__ */u("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[!o&&/* @__PURE__ */m("h2",{className:"blade-mir-in mb-4 text-center text-[10px] font-bold uppercase tracking-[0.14em] sm:mb-5 sm:text-xs sm:tracking-[0.18em]",style:{color:w.primary,fontFamily:N},children:"All right, or all wrong"}),
300
+ /* @__PURE__ */u("header",{className:"blade-mir-in mb-6 flex flex-col items-center text-center sm:mb-7",children:[/* @__PURE__ */m(Wn,{iconUrl:q(d),gameName:d.game_name,height:k?24:32,chipColor:w.primary,textColor:w.text,iconColor:w.primaryText,accentColor:a.brand?.accent,compact:k}),/* @__PURE__ */m("p",{className:"mt-3 max-w-sm text-sm leading-relaxed sm:text-[15px]",style:{color:w.textMuted},children:C.tagline})]}),
301
+ /* @__PURE__ */u("div",{className:"blade-mir-in rounded-3xl border-2 px-4 py-4 sm:px-5 sm:py-5",style:{backgroundColor:B,borderColor:w.border,boxShadow:`0 10px 24px -20px ${wr(F,.7)}`,animationDelay:".06s"},children:[O("Legs",`${A} legs`),
302
+ /* @__PURE__ */m("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Number of legs",children:C.legOptions.map(e=>{const t=e===A;/* @__PURE__ */
303
+ return m("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>M(e),className:"min-w-[40px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?w.primary:"transparent",borderColor:t?w.primary:w.border,color:t?w.primaryText:w.textMuted,cursor:"pointer"},children:e},e)})}),
304
+ /* @__PURE__ */u("div",{className:"mt-2 flex items-baseline justify-between text-[11px] italic",style:{color:w.textMuted},children:[/* @__PURE__ */m("span",{children:"Easier to sweep"}),/* @__PURE__ */m("span",{children:"Bigger prize"})]}),
305
+ /* @__PURE__ */u("div",{className:"mt-4",children:[O("Stake",ee(S)),
306
+ /* @__PURE__ */u("div",{className:"relative",children:[/* @__PURE__ */m("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 font-bold",style:{color:w.textMuted},children:"$"}),/* @__PURE__ */m("input",{type:"number",inputMode:"decimal",min:C.minStake,max:C.maxStake??void 0,step:"any",placeholder:"Enter stake","aria-label":"Stake amount",value:S||"",onChange:e=>{if(""===e.target.value)return void L(0);const t=Number(e.target.value);Number.isFinite(t)&&L((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=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:v,transition:"border-color .15s ease"}})]}),
307
+ /* @__PURE__ */m("div",{className:"mt-2 flex flex-wrap gap-1.5",children:C.quickStakes.map(e=>{const t=e===S;/* @__PURE__ */
308
+ return u("button",{type:"button",onClick:()=>L(e),className:"min-w-[48px] flex-1 rounded-lg border px-1 py-2 text-sm font-bold transition-colors",style:{backgroundColor:t?w.primary:"transparent",borderColor:t?w.primary:w.border,color:t?w.primaryText:w.textMuted,cursor:"pointer"},children:["$",e]},e)})}),!P&&S>0&&/* @__PURE__ */u("p",{className:"mt-2 text-xs",style:{color:w.error},children:["Minimum stake is ",ee(C.minStake),"."]})]}),
309
+ /* @__PURE__ */u("div",{className:"mt-4 border-t pt-3",style:{borderColor:wr(F,.08)},children:[
310
+ /* @__PURE__ */u("div",{className:"flex items-baseline justify-between text-[10px] font-semibold uppercase tracking-[0.1em]",style:{color:w.textMuted},children:[/* @__PURE__ */m("span",{children:"Two ways to win"}),/* @__PURE__ */u("span",{children:[ee(S)," pays each"]})]}),
311
+ /* @__PURE__ */u("div",{className:"mt-1.5 flex flex-col gap-2",children:[D(!0),D(!1)]}),
312
+ /* @__PURE__ */m("p",{className:"mt-2 text-[11px] italic",style:{color:w.textMuted},children:"Anything in between — a split card — does not pay."})]})]}),
313
+ /* @__PURE__ */u("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:[/* @__PURE__ */m("div",{className:"blade-mir-in",style:{animationDelay:".13s"},children:/* @__PURE__ */m(Nr,{tile:/* @__PURE__ */m(kr,{iconUrl:q(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:()=>{P&&(f(A),h(A),x(S),b(),t?.())}})}),/* @__PURE__ */m("div",{className:"blade-mir-in",style:{animationDelay:".2s"},children:/* @__PURE__ */m(Nr,{tile:/* @__PURE__ */m(kr,{iconUrl:`${U}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{P&&(h(A),x(S),g(d,A),e?.())}})})]})]})]})}function Dr({className:e="",onBack:t,hideActions:n}){const{theme:o,selectedGame:r}=Kn(),l=st(o),i=o.colors;/* @__PURE__ */
314
+ return u("div",{className:`pl-0 sm:pl-2 ${e}`,children:[/* @__PURE__ */m("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:l},children:"All or nothing"}),/* @__PURE__ */m(Qn,{onBack:t,hideActions:n,children:r&&/* @__PURE__ */m("p",{className:"text-xs sm:text-sm break-words min-w-0",style:{color:i.textMuted},children:r.game_name})})]})}function Er({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,backLabel:r="Games",className:l=""}){const{theme:i,selectedGame:a,selectedPropositionCount:d,handlePropositionCountChange:p,setExpectedCorrect:f,quickPickGame:h,goToSportSelection:x,screenSize:g}=Kn(),b=i.colors,y="mobile"===g,w=it(i),k=st(i),v=s(()=>{if(!a)return[];if(a.allowed_propositions&&a.allowed_propositions.length>0)return[...a.allowed_propositions].sort((e,t)=>e-t);const{min:e,max:t}=de(a);return Me(e,t)},[a]),N=wo(a),F=v[0]??0,B=v[v.length-1]??0,[C]=c(()=>null!=d&&v.includes(d)?d:B),A=s(()=>an(a,C||void 0),[a,C]);if(!a||0===v.length||"exact"!==A?.kind)/* @__PURE__ */return m("div",{className:l,style:{color:b.textMuted,fontFamily:w},children:"No setup available."});const M=N?["Any yes/no props in the pool",`Pick ${F}–${B} legs — all must land`]:["A clean yes or no on every leg",`All ${C} have to land`],S=N?[`We fill ${C} legs across any markets`,"Straight to the bet slip"]:[`We fill all ${C} legs for you`,"Straight to the bet slip"];/* @__PURE__ */
315
+ return u("div",{className:`blade-pp flex min-h-full w-full flex-col ${l}`,style:{fontFamily:w},children:[
316
+ /* @__PURE__ */m("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"}),
317
+ /* @__PURE__ */m(Fr,{}),n&&/* @__PURE__ */u("button",{type:"button",onClick:n,className:"mb-3 inline-flex items-center gap-1.5 self-start text-sm font-semibold",style:{color:b.textMuted,background:"none",border:"none",padding:0,cursor:"pointer",transition:"color .15s ease, transform .15s ease"},onMouseEnter:e=>{e.currentTarget.style.color=b.primary,e.currentTarget.style.transform="translateX(-2px)"},onMouseLeave:e=>{e.currentTarget.style.color=b.textMuted,e.currentTarget.style.transform="translateX(0)"},children:[/* @__PURE__ */u("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__ */m("path",{d:"M19 12H5"}),/* @__PURE__ */m("path",{d:"m12 19-7-7 7-7"})]}),r]}),
318
+ /* @__PURE__ */u("div",{className:"mx-auto flex w-full flex-1 flex-col",children:[!o&&/* @__PURE__ */m("h2",{className:"blade-pp-in mb-4 text-center text-[10px] font-bold uppercase tracking-[0.14em] sm:mb-5 sm:text-xs sm:tracking-[0.18em]",style:{color:b.primary,fontFamily:k},children:A.title}),
319
+ /* @__PURE__ */u("header",{className:"blade-pp-in mb-6 flex flex-col items-center text-center sm:mb-7",children:[/* @__PURE__ */m(Wn,{iconUrl:q(a),gameName:a.game_name,height:y?24:32,chipColor:b.primary,textColor:b.text,iconColor:b.primaryText,accentColor:i.brand?.accent,compact:y}),A.heroTagline&&/* @__PURE__ */m("p",{className:"mt-3 max-w-sm text-sm leading-relaxed sm:text-[15px]",style:{color:b.textMuted},children:A.heroTagline})]}),
320
+ /* @__PURE__ */u("div",{className:"grid gap-3 sm:grid-cols-2",children:[/* @__PURE__ */m("div",{className:"blade-pp-in",style:{animationDelay:".13s"},children:/* @__PURE__ */m(Nr,{tile:/* @__PURE__ */m(kr,{iconUrl:q(a),size:60}),label:"Pick my own",stat:"Your calls",detail:M,onSelect:()=>{N||(p(C),f(C)),x(),t?.()}})}),/* @__PURE__ */m("div",{className:"blade-pp-in",style:{animationDelay:".2s"},children:/* @__PURE__ */m(Nr,{tile:/* @__PURE__ */m(kr,{iconUrl:`${U}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:S,onSelect:()=>{f(C),h(a,C),e?.()}})})]})]})]})}function Tr({onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r="Games",className:l=""}){const{theme:i,selectedGame:s,goToSportSelection:a,bodyFont:c}=Kn(),d={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r,className:l};switch(bo(s)){case"game_set":/* @__PURE__ */return m(Cr,{...d});case"pick_your_dividend":/* @__PURE__ */return m(Mr,{...d});case"ladder":/* @__PURE__ */return m(Lr,{...d});case"mirror":/* @__PURE__ */return m(Or,{...d});case"rule_setup":return"exact"===an(s)?.kind?/* @__PURE__ */m(Er,{...d}):/* @__PURE__ */m(yr,{onBack:n,hideTitle:o,backLabel:r,className:l,onContinue:()=>{a(),e?.()}});default:/* @__PURE__ */return m("div",{className:l,style:{color:i.colors.textMuted,fontFamily:c},children:"No setup required — this game goes straight to picks."})}}function Hr({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0,className:l}){const{theme:i}=Kn(),s=Le(i),a=Ee(i),c=i.colors.primaryHover??function(e){const t=/^#([0-9a-f]{6})$/i.exec(e?.trim()??"");if(!t)return e;const n=parseInt(t[1],16);return`rgba(${n>>16&255}, ${n>>8&255}, ${255&n}, 0.7)`}(s),d=st(i)??"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__ */
321
+ return u("span",{role:"img","aria-label":`YESNO ${t}`,className:l,style:{display:"inline-flex",alignItems:"center",gap:.22*o,fontFamily:d,color:s},children:[
322
+ /* @__PURE__ */m(pt,{iconUrl:e,width:f,height:f,iconColor:s,accentColor:a,ariaLabel:""}),
323
+ /* @__PURE__ */u("span",{"aria-hidden":!0,style:{fontSize:h,letterSpacing:.045*-h,lineHeight:1,whiteSpace:"nowrap"},children:[/* @__PURE__ */m("span",{style:{fontWeight:800},children:"YES"}),/* @__PURE__ */m("span",{style:{fontWeight:600},children:"NO"})]}),
324
+ /* @__PURE__ */m("span",{"aria-hidden":!0,style:{width:Math.max(2,Math.round(.045*o)),height:.78*o,backgroundColor:c,flexShrink:0}}),
325
+ /* @__PURE__ */m("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__ */u("span",{style:{whiteSpace:"nowrap"},children:[e,r&&t===p.length-1&&/* @__PURE__ */m("sup",{style:{fontSize:.36*x,fontWeight:500,marginLeft:1},children:"™"})]},`${e}-${t}`))})]})}var jr="1.29.0";export{Ln as BladeApiClient,Hr as BrandLockup,To as CategoryIcon,Io as CategoryPickerPage,Go as CategoryPickerPageActions,Wo as CategoryPickerPageTitle,Ho as ChevronRightIcon,tr as ConfirmPage,er as ConfirmPageActions,_o as ConfirmPageTitle,ir as EntriesPage,lr as EntriesPageTitle,Mn as EntrySubmission,qn as EventFilterBanner,Zo as EventPickerPage,gn as GAME_TIER_LEVEL,bn as GAME_TIER_TABS,Gn as GameEntries,Do as GameLogo,Fo as GamePage,No as GamePageActions,vo as GamePageTitle,Cn as GameSelector,Cr as GameSetBetPage,Br as GameSetBetPageTitle,Tr as GameSetupPage,O as HowToPlayButton,P as HowToPlayModal,ro as LADDER_FAMILY,no as LADDER_REFERENCE_BET,oo as LADDER_STAKES,Lr as LadderPage,Sr as LadderPageTitle,uo as MIRROR_STANDARD_MARGIN,z as MarkdownContent,Or as MirrorPage,Pr as MirrorPageTitle,mn as PYD_LEG_RUNGS,dn as PYD_RETAIL_DIVIDENDS,Sn as PayoutCircles,Er as PerfectPickPage,Dr as PerfectPickPageTitle,Mr as PickYourDividendPage,Ar as PickYourDividendPageTitle,Zn as PlaceEntryProvider,Vn as QuickPickButton,yr as RuleSetupPage,br as RuleSetupPageActions,gr as RuleSetupPageTitle,An as SelectionReview,Qo as SelectionsPage,Xo as SelectionsPageActions,qo as SelectionsPageTitle,Ro as SportPickerPage,Yo as SportPickerPageActions,jo as SportPickerPageTitle,rr as SuccessPage,or as SuccessPageActions,nr as SuccessPageTitle,Eo as YesNoCategoryLabel,at as applyTheme,kn as availableGameTierTabs,Ce as contrastTextColour,Ke as darkTheme,vn as defaultGameTierId,Ie as defaultTheme,Je as defaultThemeSet,wn as filterGamesByTierLevel,_t as filterPropositionsToEvent,ee as formatCurrency,te as formatDate,Ut as formatSameGameMultiEventLabel,ao as fullStackPrize,cn as gameNeedsRuleSetup,eo as gameSetPrize,ko as getConfirmBoostCopy,bo as getGameFlow,to as getGameSetBetConfig,me as getJackpotInfo,mo as getLadderConfig,go as getMirrorConfig,xn as getPickYourDividendConfig,Vt as getPropositionEventId,an as getRuleSetupConfig,ue as getSportDisplayName,tt as getTheme,nt as getThemeSet,qe as goldLightTheme,Ze as goldTheme,_e as goldThemeSet,Ve as greenLightTheme,Ue as greenTheme,$e as greenThemeSet,ne as groupPropositionsBySport,qt as groupSameGameMultiEvents,yo as isFixedCardExactGame,_n as isGameSetBetGame,lo as isLadderGame,ho as isMirrorGame,wo as isOpenExactMultiGame,un as isPickYourDividendGame,Zt as isSameGameMultiGame,$t as isSelectableSameGameMultiProposition,Ge as isThemeSet,ce as isValidSelectionCount,co as ladderCollectAt,so as ladderTiers,xo as mirrorPrize,en as propositionsBelongToEvent,hn as pydLadder,fn as pydRung,fe as resolveCategoryDisplayName,yn as resolveGameTierLevel,J as resolvePrice,pe as resolveSportDisplayName,We as resolveTheme,sn as roundDividendAmount,Ee as themeAccent,it as themeBodyFont,Le as themeHeading,st as themeHeadingFont,ze as themeLabel,rt as themeSets,Te as themeTextAlt,He as themeTextAltMuted,Pe as themeValue,ot as themes,ct as useBladeTheme,Yn as useCalculatePayout,Tn as useCreateGameEntry,Rn as useEntryPreview,jn as useEvaluateRule,Dn as useGameEntries,En as useGameMaxPayouts,zn as useGames,Kn as usePlaceEntry,Hn as usePlaceEntryFlow,Pn as usePropositions,lt as useResolvedTheme,On as useSports,jr as version};