@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
@@ -0,0 +1,334 @@
1
+ import e,{createContext as t,useCallback as n,useContext as o,useEffect as r,useLayoutEffect as i,useMemo as l,useRef as a,useState as c}from"react";import{AccessibilityInfo as s,ActivityIndicator as d,Animated as h,Dimensions as f,Easing as u,Image as g,Modal as p,Platform as y,Pressable as m,ScrollView as b,StyleSheet as w,Text as x,TextInput as B,TouchableOpacity as k,View as C,useWindowDimensions as S}from"react-native";import{Fragment as F,jsx as z,jsxs as v}from"react/jsx-runtime";import{createPortal as W}from"react-dom";import A,{Circle as T,Defs as L,Ellipse as D,G as M,Line as R,LinearGradient as H,Path as O,Polygon as P,Rect as I,Stop as E,SvgXml as j,Text as N}from"react-native-svg";var Y=/* @__PURE__ */(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):e)(function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")}),G="#C9CDD2";function V(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 U(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 Z='\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 K(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 q=/^<(main|section|article|div|style|table|h[1-6]|p|ul|ol|hr)\b/i,X=/<(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 Q(e){return/^<!DOCTYPE\s+html/i.test(e)||/^<html[\s>]/i.test(e)}function J(e){const t=e.trim();return t?Q(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>${Z}</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=V(t[o]);if(e){const r=[e];let i=o+1;for(;i<t.length;){const e=V(t[i]);if(!e)break;r.push(e),i+=1}n.push(U(r)),o=i;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 i=[],l=()=>{0!==i.length&&(o+=U([...i]),i.length=0)};for(;null!==(n=t.exec(e));){o+=e.slice(r,n.index);const a=n[1].replace(/<br\s*\/?>/gi,"\n").trim().split("\n").map(e=>e.trim()).filter(Boolean).map(e=>V(e));a.length>0&&a.every(e=>null!==e)?i.push(...a):(l(),o+=n[0]),r=t.lastIndex}return l(),o+=e.slice(r),o}(e))}(function(e){const t=K(e),n=t.match(/^<main[^>]*>([\s\S]*)<\/main>$/i);return n?n[1].trim():t}(t)),/class=["']logo["']/i.test(n)?n:/<div class=["']masthead["']>/i.test(n)?n.replace(/(<div class=["']masthead["']>)/i,'$1\n <img class="logo" src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%202400%20500%22%20width%3D%222400%22%20height%3D%22500%22%3E%0A%20%20%3Ctitle%3EYESNO%20Multi%20Logo%20%E2%80%94%20Horizontal%20Master%3C%2Ftitle%3E%0A%20%20%3Cdesc%3EYESNO%20Multi%20master%20logo.%20Horizontal%20pipe%20lockup%3A%20YESNO%20wordmark%2C%20stacked%20tile%20icon%2C%20pipe%20divider%2C%20Multi%20extension%2C%20TM.%3C%2Fdesc%3E%0A%0A%20%20%3C!--%20YESNO%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAA68AAADMCAYAAACcEJWAAABCUUlEQVR4nO3dd7xcRfnH8U9ooU%2BQDiIdpHcRRbEgII69IQ5SRRCQgPSiCNKlinQBZUQRUJRBwYIiSBWUDqIUKQJCyFBMQkjy%2B2NOfoaQ3Oy9d3efc3a%2F79drXze5udn5brm7%2B5wz88wIREREpOOcDwsDSwALAQ4YVX1dAJhzmstcwAhgYnV5rfo6DngRGDvN1%2BeA53KKU7p2Q0REeojzYQFgJcrr82LVZfFp%2FrwwMDcwcpqvUy9zUV6fJ0xzGT%2FNn8cAz1K9Vk%2Fz52eBf%2BYUX%2BzGbewlI6wDiIiI9ALnw4LAKtNcVgaWAZYGlqJ86OmE14CngCeBJ4CHgQeAB4GHcorjOzSuiEhjOB%2BWA9YEVqW8Rk%2F9uqRhrP8AD1WXv1df78sp%2FsMwU62peBURERkk58NiwAbTXNYH3mYaasYmA%2F8Ebgduqy5%2FVUErIr3M%2BTAfsCGwCfDO6rK4aajBeR64FbgFuBm4Laf4sm2kelDxKiIiMgvOh6WBzarL%2ByhH65tqIuVD0e%2Bqy605xddtI4mIDJ3zYTZgY8ADWwHrALObhmqvycC9wLVAAv6cU5xkG8lG3xevzocLgR2sc7TohznF7a1D9BLnw8VAsM7Rogtyiju344qcD1of18dyin3%2F2j8r1QehTYCPVpfVbRN11MvAb4ErgJRTfMk4T9cYvRZ%2BNqd4ucG4gs1jrtfcznA%2BOGBLSs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RAYvp3gXMNr5sD%2FgKYXsh1EtA6W7%2B28p67uvzClOsI3TWXrARUREKlVxdj5wvvNhMeAzlGJ2U2Auy2xd9BxwFfAL4Lc5xfHGeUSGLaf4gvNhD%2BAy6ywydFWToZ8DP3c%2BLARsRSlmtwLeYpmty8YCv6HslfvrqqdDXxhhHUBERKTunA%2FzU87EbkVp%2FrKibaK2egG4CbgR%2BBNwW05xsm0kEZHWOR9mBzYBPkJ5nV6L3po5M5nSa%2BBaSsF6Y07xddtINlS8ioiIDJLzYRnKB6Wpl%2FVoxpnZKcAj%2FK9YvRF4IKc4xTSViEgbVQccN6K8Pr8T2JhmTRkfA9wK3ALcDNxadWPueypeRUREhsn5MBJYHVijuqxZfX0bNkf%2FJwGPUo7UT3t5IKf4X4M8IiKmnA8rUF6bV6V0Mp76dXHDWC8AD1WXv1df78sp%2Ft0wU62peBUREekQ58McwNKUIvZtwDLAEpS1WQtN83UBYCQwJ%2BUM7pyUvhQTgfHTXcZVl7HAv2dyebrXm3aIiLSD88FRloIsSTk7uxiloJ3654UpXehHzuAyF%2FA65bV5wnSX8ZTuv89Segk8N82fnwH%2BmVMc043b2Ev%2BD9aR9w7mNio3AAAAAElFTkSuQmCC%22%20x%3D%2240%22%20y%3D%22148%22%20width%3D%22940%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20Stacked%20tile%20icon%2C%20vector%20%E2%80%94%20proportional%20to%20wordmark%20height%20--%3E%0A%20%20%3Cg%20transform%3D%22translate(1040%2C%20130)%22%3E%0A%20%20%20%20%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%2F%3E%0A%20%20%20%20%3Crect%20x%3D%2240%22%20y%3D%2240%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%20opacity%3D%220.55%22%2F%3E%0A%20%20%20%20%3Crect%20x%3D%2280%22%20y%3D%2280%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%20opacity%3D%220.30%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%0A%20%20%3C!--%20Pipe%20divider%20in%20teal-700%20--%3E%0A%20%20%3Crect%20x%3D%221380%22%20y%3D%22150%22%20width%3D%226%22%20height%3D%22200%22%20fill%3D%22%2314687C%22%2F%3E%0A%0A%20%20%3C!--%20Multi%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAlkAAADMCAYAAABAzLaeAAAcwklEQVR4nO3de7hdVXnv8W8uJECCAwJSJYAgpIpaiNVSK4FWactt6FGb4FEHSdVCLJKICSRIn16O55weTkK4i8q1lYGiqNUyQKwWL9QLpVYLKhYUQUAqtzAEAcMl%2FWNObKC57LX3eueYc67f53nWg8Le4%2Feuy977XWONOcYkRERExsj5sN5y%2FJziJMvxRZo0uXQBIiIiIn00tXQBIiIiIiVYz8xqJktERETEwFTDLu6wnOLVRmPLCHE%2BrAGWWYyt9R8iImLFcibrfYZjy4hwPuwAHFO6DhERkUFZNlkHOR9ebTi%2BjIYlwMzSRYiIiAzKek3WycbjS485H7alarJEREQ6x7rJOsL5sK9xhvTX0cBOpYsQEREZjyauLjypgQzpGefDVsDy0nWIiIiMVxNN1pHOh70ayJF%2BeRuwW%2BkiRERExquJJmsKsKKBHOkJ58MkYGXpOkRERCaiqR3fFzkf%2FiqneHdDedJtbwReXLoIEZFh0rmPo6epHd%2BnY7SZpPSSZrFERKTzmjxW5131xpIim%2BR8OBjYv3QdIiIiE9VkkzUT7XkkW6aTAkREpBeaPiB6qfNhRsOZ0hHOh1cCB5euQ0REZBiabrJ2pNpgUmRjNIslIiK90XSTBbDc%2BTCtQK60mPPhRcAbStchIiIyLCWarF2BowrkSrutpMzrUURExESpP2ornQ%2F6gyoAOB92BULpOkRERIapVKMzB5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A%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}var $=/^(#{1,3})\s+(.+)$/,_=/^[-*]\s+(.+)$/,ee=/^-{3,}$/;function te(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=[],r=[];const i=()=>{const e=o.map(e=>e.trim()).filter(Boolean);if(e.length>0){const t=e.map(e=>V(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=[]},l=()=>{r.length>0&&(n.push({type:"list",items:[...r]}),r=[])};for(const a of t){const e=a.trim();if(!e){l(),i();continue}const t=e.match($);if(t){l(),i(),n.push({type:"heading",level:Math.min(t[1].length,3),text:t[2].trim()});continue}if(ee.test(e)){l(),i(),n.push({type:"hr"});continue}const c=e.match(_);c?(i(),r.push(c[1].trim())):(l(),o.push(e))}return l(),i(),n}function ne(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 oe({text:e,colors:t}){/* @__PURE__ */
2
+ return z(x,{children:ne(e).map((e,n)=>/* @__PURE__ */z(x,{style:{fontWeight:e.bold?"700":"400",color:e.bold?t.text:t.textMuted},children:e.text},n))})}function re({content:e,colors:t}){const n=J(e);let o=null;try{o=Y("react-native-webview").WebView}catch{o=null}return o?/* @__PURE__ */z(o,{source:{html:n},style:{minHeight:420,width:"100%"},originWhitelist:["*"],scrollEnabled:!0}):/* @__PURE__ */z(x,{style:{fontSize:14,lineHeight:22,color:t.textMuted},children:"This guide uses HTML. Install react-native-webview in the host app to display it on native."})}function ie({rows:e}){/* @__PURE__ */
3
+ return z(C,{style:{gap:0,marginVertical:6},children:e.map((e,t)=>/* @__PURE__ */v(C,{style:{flexDirection:"row",borderWidth:1,borderColor:G,borderTopWidth:0===t?1:0},children:[
4
+ /* @__PURE__ */z(C,{style:{flex:2.2,backgroundColor:"#F9FAFB",paddingVertical:11,paddingHorizontal:14,borderRightWidth:1,borderRightColor:G},children:/* @__PURE__ */z(x,{style:{fontSize:15,color:"#1A1A1A"},children:e.question})}),
5
+ /* @__PURE__ */z(C,{style:{flex:.65,backgroundColor:"#DCFCE7",paddingVertical:11,paddingHorizontal:8,alignItems:"center",justifyContent:"center",borderRightWidth:1,borderRightColor:G},children:/* @__PURE__ */z(x,{style:{fontSize:15,fontWeight:"700",color:"#166534"},children:"YES"})}),
6
+ /* @__PURE__ */z(C,{style:{flex:.65,backgroundColor:"#FEE2E2",paddingVertical:11,paddingHorizontal:8,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */z(x,{style:{fontSize:15,fontWeight:"700",color:"#991B1B"},children:"NO"})})]},t))})}function le({content:e,colors:t,bodyFont:n,headingFont:o}){/* @__PURE__ */
7
+ return z(C,{style:{gap:14},children:te(e).map((e,r)=>"heading"===e.type?/* @__PURE__ */z(x,{style:{fontSize:{1:20,2:18,3:16}[e.level],fontWeight:"800",color:t.text,textTransform:1===e.level?"uppercase":"none",fontFamily:o??n},children:/* @__PURE__ */z(oe,{text:e.text,colors:t})},r):"paragraph"===e.type?/* @__PURE__ */z(x,{style:{fontSize:14,lineHeight:22,color:t.textMuted,fontFamily:n},children:/* @__PURE__ */z(oe,{text:e.text,colors:t})},r):"list"===e.type?/* @__PURE__ */z(C,{style:{gap:6,paddingLeft:8},children:e.items.map((e,o)=>/* @__PURE__ */v(x,{style:{fontSize:14,lineHeight:22,color:t.textMuted,fontFamily:n},children:["• ",/* @__PURE__ */z(oe,{text:e,colors:t})]},o))},r):"propsTable"===e.type?/* @__PURE__ */z(ie,{rows:e.rows},r):/* @__PURE__ */z(C,{style:{height:1,backgroundColor:t.border,marginVertical:4}},r))})}function ae({content:e,title:t="How to Play",label:n="How to Play",colors:o,bodyFont:r,headingFont:i}){const[l,a]=c(!1),{width:s}=S(),d=s>=640;if(!e?.trim())return null;const h=function(e){const t=e.trim();if(!t)return!1;if(Q(t))return!0;const n=K(t);return!!q.test(n)||X.test(t)}(e);/* @__PURE__ */
8
+ return v(F,{children:[/* @__PURE__ */v(k,{onPress:()=>a(!0),style:[ce.button,{borderColor:o.primary,backgroundColor:`${o.primary}10`}],accessibilityRole:"button",accessibilityLabel:n,children:[/* @__PURE__ */z(x,{style:[ce.buttonText,{color:o.primary,fontFamily:r}],children:n}),/* @__PURE__ */z(x,{style:[ce.buttonText,{color:o.primary,fontFamily:r}],children:"?"})]}),/* @__PURE__ */z(p,{visible:l,animationType:"none",transparent:!0,onRequestClose:()=>a(!1),children:/* @__PURE__ */v(C,{style:[ce.overlay,d?{justifyContent:"center",alignItems:"center",padding:16}:{justifyContent:"flex-end"}],children:[/* @__PURE__ */z(m,{style:w.absoluteFill,onPress:()=>a(!1)}),/* @__PURE__ */v(C,{style:[ce.sheet,d?{maxWidth:672,maxHeight:"85%",borderRadius:16}:{maxHeight:"88%",borderTopLeftRadius:16,borderTopRightRadius:16},{backgroundColor:o.background,borderColor:o.border}],children:[
9
+ /* @__PURE__ */v(C,{style:[ce.header,{paddingHorizontal:d?24:16,borderBottomColor:o.border,backgroundColor:o.backgroundAlt}],children:[/* @__PURE__ */z(x,{style:[ce.title,{color:o.text,fontFamily:i??r}],children:t}),/* @__PURE__ */z(k,{onPress:()=>a(!1),style:[ce.closeButton,{borderColor:o.border,backgroundColor:o.background}],accessibilityRole:"button",accessibilityLabel:"Close",children:/* @__PURE__ */z(x,{style:{color:o.textMuted,fontSize:18,fontWeight:"600"},children:"×"})})]}),
10
+ /* @__PURE__ */z(b,{contentContainerStyle:h?void 0:{paddingHorizontal:d?24:16,paddingVertical:20},children:h?/* @__PURE__ */z(re,{content:e,colors:o}):/* @__PURE__ */z(le,{content:e,colors:o,bodyFont:r,headingFont:i})}),
11
+ /* @__PURE__ */z(C,{style:[ce.footer,{paddingHorizontal:d?24:16,borderTopColor:o.border,backgroundColor:o.backgroundAlt}],children:/* @__PURE__ */z(k,{onPress:()=>a(!1),style:[ce.doneButton,d?{alignSelf:"flex-start"}:{alignSelf:"stretch",alignItems:"center"},{backgroundColor:o.primary}],children:/* @__PURE__ */z(x,{style:[ce.doneText,{color:o.primaryText,fontFamily:r}],children:"Got it"})})})]})]})})]})}var ce=w.create({button:{alignSelf:"flex-start",flexDirection:"row",alignItems:"center",gap:6,borderWidth:1,borderRadius:999,paddingHorizontal:12,paddingVertical:6},buttonText:{fontSize:12,fontWeight:"600"},overlay:{flex:1,backgroundColor:"rgba(0,0,0,0.55)"},sheet:{width:"100%",borderWidth:1,overflow:"hidden",shadowColor:"#000",shadowOffset:{width:0,height:25},shadowOpacity:.25,shadowRadius:25,elevation:24},header:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:16,borderBottomWidth:1},title:{fontSize:18,fontWeight:"700",flex:1,paddingRight:12},closeButton:{width:36,height:36,borderRadius:18,borderWidth:1,alignItems:"center",justifyContent:"center"},footer:{paddingVertical:16,borderTopWidth:1},doneButton:{borderRadius:8,paddingVertical:10,paddingHorizontal:20},doneText:{fontSize:14,fontWeight:"600"}});function se(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function de(e){return(e.description??e.proposition??"").trim()}var he={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function fe(e){return"composite_and"===(t=se(e))||"composite_or"===t;var t}function ue(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 ge(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 pe(e,t){if(!fe(e))return null;const n=function(e){return fe(e)?("composite_and"===(t=se(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=ue(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:de(o),eventLabel:ge(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(he[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(de(e),n);return r?{operator:n,legs:r.map(e=>({text:e,eventLabel:null}))}:null}var ye="#0F4C5C",me={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"},be={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner"},we="game-icon:",xe={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>'},Be={perfectpick:"perfect_pick",headtohead:"head_to_head",totalpoints:"total_points",quickpick:"quickpick",safetynet:"safety_net",gameset:"game_set",gamesetbet:"game_set",pickyourdividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",mirrorstandard:"mirror",samegame:"same_game_multi",samegamemulti:"same_game_multi"},ke={safety_net:"safety_net",game_set:"game_set",pick_your_dividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",same_game_multi:"same_game_multi"};function Ce(e){return`${we}${function(e){if(e.quick_pick_only)return"quickpick";return ke[e.rule?.trim().toLowerCase()??""]||(Be[t=e.game_name??"",t.toLowerCase().replace(/[^a-z0-9]+/g,"")]??"unknown");var t}(e)}`}function Se(e){return function(e){return e.startsWith(we)}(e)?xe[e.slice(10)]??xe.unknown:null}function Fe(e){return!!e.is_composite_component||!!(t=se(e))&&t.startsWith("co_");var t}function ze(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0}function ve(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function We(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}function Ae(e){return"yes"===e.toLowerCase()?"Yes":"No"}function Te(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 Le(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 De(e){return e.reduce((t,n)=>{const o=Me(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function Me(e,t){if(e.sport)return e.sport;if(fe(e)&&t)for(const n of ue(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var Re=["sports","casino","racing"];function He(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=se(e).toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"sports"}function Oe(e){const t={};for(const n of e){const e=He(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function Pe(e){const t=Oe(e);return Re.filter(e=>(t[e]?.length??0)>0)}function Ie(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";default:return"Choose a Sport"}}function Ee(e,t,n,o){return o&&o.length>0?o.includes(e):!(void 0!==t&&e<t||void 0!==n&&e>n)}function je(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 Ne(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 Ye(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 Ge(e,t,n){const o=t?.[e];return o||Ye(e,n)}function Ve(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 Ue(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function Ze(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function Ke(e,t,n){return!t||!!e&&(Ze(e,t,n)||Ze(t,e,n))}function qe(e,t){return t.find(t=>t.id===e)}function Xe(e,t){let n=e;return t?.category&&(n=n.filter(e=>He(e)===t.category)),t?.sport&&(n=n.filter(n=>fe(n)?function(e,t,n,o){if(Ke(e.sport,t,n))return!0;if(!o)return!1;for(const r of ue(e)){const e=qe(r,o);if(e&&Ke(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):Ke(n.sport,t.sport,t.sportBaseKey))),n}function Qe(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t?t:"sports"}(e)===t}function Je(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>Ze(t,e,n))}function $e(e,t,n){return!(n?.category&&!Qe(e,n.category))&&!(n?.sport&&!Je(e,n.sport,n.sportBaseKey))&&Xe(et(t,e),n).length>0}function _e(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!Qe(e,t.category)||t.sport&&!Je(e,t.sport,t.sportBaseKey))):e}function et(e,t,n){const o=t.allowed_sports,r=o&&o.length>0,i=t.allowed_markets&&t.allowed_markets.length>0;return r||i?e.filter(l=>{if(Fe(l))return!1;if(r)if(fe(l)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>Ze(e.sport,t,n)))return!0;if(!o)return!1;for(const r of ue(e)){const e=qe(r,o);if(e?.sport&&t.some(t=>Ze(e.sport,t,n)))return!0}return!1}(l,o,n,e))return!1}else if(!l.sport||!o.some(e=>Ze(l.sport,e,n)))return!1;return!(i&&!function(e,t){const n=t.allowed_markets;if(!n||0===n.length)return!0;const o=se(e);return!!o&&n.includes(o)}(l,t))}):e.filter(e=>!Fe(e))}var tt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function nt(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,i,l]=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*i+.0722*l>.4?n:t}function ot(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 rt(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 it(e,t){const n=[...e].sort(()=>Math.random()-.5).slice(0,t),o=[],r=[];for(const i of n)Math.random()<.5?o.push(i):r.push(i);return{yesPicks:o,noPicks:r}}function lt(e){return e.colors.heading??e.colors.text}function at(e){return e.colors.label??e.colors.text}function ct(e){return e.colors.value??e.colors.text}function st(e){return e.colors.productYes??"#00C853"}function dt(e){return e.colors.productNo??"#E53935"}function ht(e){return e.brand?.accent??e.colors.primary}function ft(e){return e.colors.textAlt??e.colors.text}function ut(e){return e.colors.textAltMuted??e.colors.textMuted}function gt(e){return e.colors.selectionCard??e.colors.surface??e.colors.backgroundAlt}function pt(e){return e.colors.matchupHeader??e.colors.backgroundAlt}function yt(e){return{textMuted:e.colors.textMuted,border:e.colors.border,background:e.colors.background,backgroundAlt:e.colors.backgroundAlt,primary:e.colors.primary,selectionCard:gt(e)}}function mt(e,t="light"){return e?bt(e)?"dark"===t?e.dark:e.light:e:wt}function bt(e){return"light"in e&&"dark"in e&&!("colors"in e)}var wt={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"}},xt={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"}},Bt={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"}},kt={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"}},Ct={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"}},St={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"}},Ft={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"}},zt={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"}},vt={light:wt,dark:Bt},Wt={light:Ct,dark:xt},At={light:St,dark:kt},Tt={light:Ft,dark:zt};function Lt(e){return{default:wt,green:xt,"green-light":Ct,dark:Bt,gold:kt,"gold-light":St,yesno:zt,"yesno-light":Ft}[e]||wt}function Dt(e){return{default:vt,green:Wt,gold:At,yesno:Tt}[e]||vt}var Mt={default:wt,green:xt,"green-light":Ct,dark:Bt,gold:kt,"gold-light":St,yesno:zt,"yesno-light":Ft},Rt={default:vt,green:Wt,gold:At,yesno:Tt};function Ht(e,t="light"){return mt(e,t)}function Ot(e){return e.fonts?.body??"System"}function Pt(e){return e.fonts?.heading??e.fonts?.body??"System"}var It=/* @__PURE__ */new Map,Et=/* @__PURE__ */new Map;function jt(e,t,n){let o=e;return t&&(o=o.replace(/currentColor/g,t)),n?o=o.replace(/var\(\s*--icon-accent\s*(?:,[^)]*)?\)/g,n):(o=o.replace(/var\(\s*--icon-accent\s*,\s*([^)]+)\)/g,"$1"),o=o.replace(/var\(\s*--icon-accent\s*\)/g,"currentColor")),o}function Nt({iconUrl:t,width:n,height:o,iconColor:r,accentColor:i,accessibilityLabel:l}){const a=Se(t),[c,s]=e.useState(()=>a??It.get(t)??null);return e.useEffect(()=>{const e=Se(t);if(e)return void s(e);if(It.has(t))return void s(It.get(t));let n=!1;return function(e){const t=It.get(e);if(void 0!==t)return Promise.resolve(t);const n=Et.get(e);if(n)return n;const o=fetch(e).then(e=>{if(!e.ok)throw new Error(`SVG fetch failed: ${e.status}`);return e.text()}).then(t=>(It.set(e,t),Et.delete(e),t)).catch(t=>{throw Et.delete(e),t});return Et.set(e,o),o}(t).then(e=>{n||s(e)}).catch(()=>{n||s(null)}),()=>{n=!0}},[t]),c?/* @__PURE__ */z(j,{xml:jt(c,r,i),width:n,height:o,accessibilityLabel:l}):/* @__PURE__ */z(g,{source:{uri:t},style:{width:n,height:o},resizeMode:"contain",accessibilityLabel:l})}function Yt({iconUrl:t,gameName:n,onPress:o,size:r=120,brandColor:i="#0F4C5C",cardColor:l="#DDD9D2",iconColor:a,accentColor:c,captionColor:s="#14687C",accessibilityLabel:d}){const[h,f]=e.useState(!1),u=(n||"").toUpperCase(),g=170,p=r/360,b=a??l,w=e=>/* @__PURE__ */v(C,{style:[Gt.container,{width:r,height:r}],children:[/* @__PURE__ */v(A,{viewBox:"0 0 360 360",width:r,height:r,children:[
12
+ /* @__PURE__ */z(I,{x:2,y:2,width:356,height:356,rx:78,fill:l,stroke:i,strokeWidth:4}),
13
+ /* @__PURE__ */z(M,{style:{transform:e?"translate(0px, 0px)":"translate(50px, 50px)",transformOrigin:"145px 110px",transition:"transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1)"},children:/* @__PURE__ */z(I,{x:40,y:5,width:210,height:210,rx:42,fill:i,opacity:.3})}),
14
+ /* @__PURE__ */z(M,{style:{transform:e?"translate(0px, 0px)":"translate(25px, 25px)",transformOrigin:"145px 110px",transition:"transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1)"},children:/* @__PURE__ */z(I,{x:40,y:5,width:210,height:210,rx:42,fill:i,opacity:.55})}),
15
+ /* @__PURE__ */z(I,{x:40,y:5,width:210,height:210,rx:42,fill:i}),
16
+ /* @__PURE__ */z(N,{x:180,y:305,fontFamily:"Manrope, Poppins, sans-serif",fontSize:32,letterSpacing:1.5,fontWeight:"800",textAnchor:"middle",fill:i,children:"PRESS TO PLAY"}),
17
+ /* @__PURE__ */z(N,{x:180,y:338,fontFamily:"Manrope, Poppins, sans-serif",fontSize:18,letterSpacing:2,fontWeight:"500",textAnchor:"middle",fill:s,children:u})]}),/* @__PURE__ */z(C,{pointerEvents:"none",style:{position:"absolute",left:60*p,top:25*p,width:g*p,height:g*p},children:/* @__PURE__ */z(Nt,{iconUrl:t,width:g*p,height:g*p,iconColor:b,accentColor:c})})]});return o?/* @__PURE__ */z(m,{onPress:o,onHoverIn:"web"===y.OS?()=>f(!0):void 0,onHoverOut:"web"===y.OS?()=>f(!1):void 0,accessibilityRole:"button",accessibilityLabel:d??`Press to play ${n}`,style:({pressed:e})=>({width:r,height:r,borderRadius:r/360*78,transform:[{scale:e?.96:1}]}),children:({pressed:e})=>w(h||e)}):w(!1)}var Gt=w.create({container:{position:"relative"}});function Vt(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,i=0;if(3===t.length)o=parseInt(t[0]+t[0],16),r=parseInt(t[1]+t[1],16),i=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),i=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),i=parseInt(t.slice(4,6),16)}return`rgba(${o}, ${r}, ${i}, ${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 Ut={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:48},Zt={xs:4,sm:8,md:12,lg:16,xl:24,pill:999},Kt={xs:11,sm:13,md:14,lg:16,xl:18,xxl:22,display:28},qt={min:44};function Xt(e){const t="dark"===e.colorScheme,n=e.colors;return{space:{...Ut},radius:{...Zt},fontSize:{...Kt},touchTarget:{...qt},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??Vt(n.border,t?.6:.5)},isDark:t}}function Qt(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({theme:t,variant:n="primary",size:o="md",disabled:r,block:i,radius:l="md",onPress:a,onLongPress:c,style:s,children:d,accessibilityLabel:h}){const f=Xt(t),u=t.colors,g={sm:{h:36,px:f.space.md,fs:f.fontSize.sm},md:{h:f.touchTarget.min,px:f.space.lg,fs:f.fontSize.md},lg:{h:52,px:f.space.xl,fs:f.fontSize.lg}},p={sm:f.radius.sm,md:f.radius.md,lg:f.radius.lg,pill:f.radius.pill},y={primary:{bg:u.buttonPrimary,bgPressed:u.buttonPrimaryHover,fg:u.buttonPrimaryText,border:u.buttonPrimary},secondary:{bg:u.buttonSecondary,bgPressed:u.buttonSecondaryHover,fg:u.buttonSecondaryText,border:u.border},ghost:{bg:"transparent",bgPressed:Vt(u.text,f.isDark?.1:.06),fg:u.text,border:"transparent"},danger:{bg:u.error,bgPressed:Vt(u.error,.85),fg:"#ffffff",border:u.error}}[n],[b,w]=e.useState(!1);/* @__PURE__ */
18
+ return z(m,{accessibilityRole:"button",accessibilityLabel:h,accessibilityState:{disabled:!!r},disabled:r,onPress:a,onLongPress:c,onHoverIn:()=>w(!0),onHoverOut:()=>w(!1),style:({pressed:e})=>[{minHeight:g[o].h,paddingHorizontal:g[o].px,borderRadius:p[l],backgroundColor:!e&&!b||r?y.bg:y.bgPressed,borderColor:y.border,borderWidth:1,alignSelf:i?"stretch":"flex-start",alignItems:"center",justifyContent:"center",flexDirection:"row",opacity:r?.5:1,transform:[{scale:e&&!r?.985:1}]},s],children:"string"==typeof d?/* @__PURE__ */z(x,{style:{color:y.fg,fontSize:g[o].fs,fontWeight:"500"},children:d}):d})}function $t({delay:t=0,style:n,children:o}){const r=function(t=0){const n=e.useRef(new h.Value(0)).current;return e.useEffect(()=>{let e=!1;const o=o=>{e||(o?n.setValue(1):h.timing(n,{toValue:1,duration:500,delay:t,easing:u.bezier(.2,.8,.2,1),useNativeDriver:"web"!==y.OS}).start())},r=s.isReduceMotionEnabled?.();r&&"function"==typeof r.then?r.then(o).catch(()=>o(!1)):o(!1);const i=s.addEventListener?.("reduceMotionChanged",e=>{e&&n.setValue(1)});return()=>{e=!0,i?.remove?.()}},[t,n]),{opacity:n,transform:[{translateY:n.interpolate({inputRange:[0,1],outputRange:[14,0]})}]}}(t);/* @__PURE__ */
19
+ return z(h.View,{style:[n,r],children:o})}function _t({visible:e,anchor:t,onClose:n,flipUp:o=!1,align:r="left",gap:i=6,children:l}){if(!e||!t)return null;const a=f.get("window"),c=o?{bottom:Math.max(0,a.height-t.y+i)}:{top:t.y+t.height+i},s="right"===r?{right:Math.max(0,a.width-(t.x+t.width))}:{left:Math.max(0,t.x)};/* @__PURE__ */
20
+ return v(p,{transparent:!0,visible:!0,animationType:"none",onRequestClose:n,children:[/* @__PURE__ */z(m,{style:w.absoluteFill,onPress:n}),/* @__PURE__ */z(C,{style:{position:"absolute",...c,...s},onStartShouldSetResponder:()=>!0,children:l})]})}function en(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function tn(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function nn(e){if(!e||e.quick_pick_only)return!1;const t=tn(e.selection_scope);if("samegamemulti"===tn(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(tn);return n.includes("samegame")||n.includes("samegamemulti")}function on(e){return(e.eventId??e.event_id)?.trim()||null}function rn(e){const t=/* @__PURE__ */new Map;for(const n of e){if(!sn(n))continue;const e=on(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=ln(o.homeTeam,n.home_team),o.awayTeam=ln(o.awayTeam,n.away_team),o.sport=ln(o.sport,n.sport),o.league=ln(o.league,n.league),o.commenceTime=cn(o.commenceTime,n.commence_time)):t.set(e,{id:e,homeTeam:n.home_team?.trim()||void 0,awayTeam:n.away_team?.trim()||void 0,commenceTime:n.commence_time?.trim()||void 0,sport:n.sport?.trim()||void 0,league:n.league?.trim()||void 0,propositionCount:1})}return[...t.values()].sort((e,t)=>{const n=an(e.commenceTime),o=an(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function ln(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function an(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function cn(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=an(e),r=an(n);return r!==o?r<o?n:e:e.localeCompare(n)<=0?e:n}function sn(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function dn(e,t){return t?e.filter(e=>sn(e)&&on(e)===t):[]}function hn(e,t){return!!t&&e.length>0&&e.every(e=>sn(e)&&on(e)===t)}function fn(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function un(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 gn(e,t){if(t<0||t>e)return 0;let n=1;for(let o=0;o<t;o+=1)n=n*(e-o)/(o+1);return Math.round(n)}function pn(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),i=20*n.perfectMultiple*Math.pow(2,e-n.perfectBaseLegs),l=20*(1-n.margin),a=o>0?l*n.nearMissBudgetFraction/o:0,c=Math.pow(1/n.perLegProbability,e),s=[];let d=0;for(let f=0;f<=o;f+=1)d+=gn(e,f),f>=1&&(s[f]=r(a*c/d));const h=[];for(let f=0;f<=o;f+=1){let t=0===f?i:0;for(let e=Math.max(1,f);e<=o;e+=1)t+=s[e];const n=Math.round(t);h.push({misses:f,label:`${e-f}/${e}`,multiplier:n/20,payout20:n})}return h}function yn(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:pn(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:pn(e,e-2,t),expectedCorrect:e-2}]}function mn(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)}function bn(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:yn(t,un(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:fn(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 wn(e){return null!=bn(e)}var xn=[2500,5e3,7500,1e4,12500,15e3,2e4],Bn=[12,11,10,9,8,7,6];function kn(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function Cn(e){return Math.round(100*e)/100}function Sn(e,t,n=.21875){const o=Math.pow(2,t),r=e/(1-n)/o,i=Number.isInteger(r),l=Cn(r),a=i?r:Cn(.96*r);return{legs:t,exactStake:l,stake:a,margin:1-e/(a*o),multiple:e/a,oddsOneIn:o,discounted:!i}}function Fn(e,t=Bn){return{dividend:e,rungs:t.map(t=>Sn(e,t))}}function zn(e,t){if(!kn(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,r=Bn.filter(e=>e>=n&&e<=o);if(0===r.length)return null;const i=t?.dividends??xn;return{dividends:i.map(e=>Fn(e,r)),defaultDividend:i.includes(1e4)?1e4:i[Math.floor(i.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 vn={signature:1,premier:2,exclusive:3},Wn=[{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 An(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function Tn(e,t){return e.filter(e=>An(e)===t)}function Ln(e){const t=new Set(e.map(An));return Wn.filter(e=>t.has(e.level))}function Dn(e){return Ln(e)[0]?.id??"signature"}function Mn({howToPlay:e,maxPayout:t,tiers:n,modes:o,pydDividends:i,colors:l,bodyFont:s,headingFont:d,onOpenChange:h}){const[u,g]=c(null);r(()=>{h?.(null!==u)},[u,h]);const p=!!(o?.length||i?.length||n.some(e=>e.payout20>0)),m=!!o?.length,b=i?.length?Math.max(...i.map(e=>e.dividend)):0,w=m?`${o.length} payout options available`:i?.length?b>0?`Win up to ${Te(b)}`:null:t>0?`Win up to ${Te(t)} for $20`:null,B="pay"===u?"Hide dividends":m?"Compare dividends":"Show dividends",S=a(null),[W,A]=c(!1),[T,L]=c(null),D="web"===y.OS;r(()=>{if(!u)return;if(D){const e=e=>{const t=S.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||g(null)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}const e=S.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=f.get("window").height-(t+o);A(r<240&&t>r),L({x:e,y:t,width:n,height:o})})},[u,D]);const M=e=>({flex:1,minWidth:0,borderWidth:1,borderColor:e?l.primary:l.border,borderRadius:10,backgroundColor:e?l.primary:l.backgroundAlt??"#FCFBF9",paddingVertical:9,paddingHorizontal:6,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:4}),R=e=>({fontFamily:s,fontWeight:"700",fontSize:10,color:e?l.primaryText:l.text,lineHeight:11,textAlign:"center"}),H=/* @__PURE__ */z(C,{style:{paddingHorizontal:14,paddingVertical:12},children:"how"===u?/* @__PURE__ */z(x,{style:{fontSize:11.5,lineHeight:18.6875,color:l.textMuted,fontFamily:s,textAlign:"left"},children:e}):o?.length?o.map((e,t)=>/* @__PURE__ */v(C,{style:{borderTopWidth:0===t?0:1,borderTopColor:l.border,paddingTop:0===t?0:8,marginTop:0===t?0:8},children:[/* @__PURE__ */z(x,{style:{fontSize:11,fontWeight:"700",marginBottom:4,color:l.text,fontFamily:d},children:e.label}),e.tiers.map(e=>/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:4,gap:14},children:[/* @__PURE__ */v(x,{style:{color:l.textMuted,fontSize:11,flex:1,fontFamily:s},children:[e.label," correct"]}),/* @__PURE__ */z(x,{style:{fontWeight:"700",color:l.heading??l.text,fontSize:12,fontFamily:s},children:Te(e.payout20)})]},e.label))]},e.id)):/* @__PURE__ */v(F,i?.length?{children:[
21
+ /* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingBottom:4,marginBottom:4,borderBottomWidth:1,borderBottomColor:l.border},children:[/* @__PURE__ */z(x,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:s},children:"Dividend"}),/* @__PURE__ */z(x,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:s},children:"Stake from"})]}),i.map(e=>/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:4},children:[/* @__PURE__ */z(x,{style:{fontWeight:"700",color:l.heading??l.text,fontSize:12,fontFamily:s},children:Te(e.dividend)}),/* @__PURE__ */z(x,{style:{fontWeight:"600",color:l.text,fontSize:12,fontFamily:s},children:Te(e.stakeFrom)})]},e.dividend)),
22
+ /* @__PURE__ */z(x,{style:{marginTop:8,fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:s},children:"You set the dividend before kick-off. Longer climbs start from a smaller stake."})]}:{children:[
23
+ /* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingBottom:4,marginBottom:4,borderBottomWidth:1,borderBottomColor:l.border},children:[/* @__PURE__ */z(x,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:s},children:"Legs played"}),/* @__PURE__ */z(x,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:s},children:"Payout"})]}),n.map(e=>/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:4},children:[/* @__PURE__ */v(x,{style:{fontWeight:"600",color:l.text,fontSize:12,fontFamily:s},children:[e.count," legs"]}),/* @__PURE__ */z(x,{style:{fontWeight:"600",color:e.payout20>0?l.text:l.textMuted,fontSize:12,fontFamily:s},children:e.payout20>0?Te(e.payout20):"—"})]},e.count)),
24
+ /* @__PURE__ */z(x,{style:{marginTop:8,fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:s},children:"Example values for a $20 bet."})]})});/* @__PURE__ */
25
+ return v(C,{ref:S,style:{width:"100%",marginTop:4},children:[p&&w&&/* @__PURE__ */z(C,{style:{alignItems:"center",marginBottom:6},children:/* @__PURE__ */z(x,{style:{fontSize:11,fontWeight:"600",color:l.text,fontFamily:s},children:w})}),
26
+ /* @__PURE__ */v(C,{style:{flexDirection:"row",gap:8},children:[/* @__PURE__ */v(k,{onPress:()=>g(e=>"how"===e?null:"how"),accessibilityRole:"button",accessibilityState:{expanded:"how"===u},style:M("how"===u),children:[/* @__PURE__ */z(x,{style:R("how"===u),children:"How to Play"}),/* @__PURE__ */z(x,{style:{fontSize:7,color:"how"===u?l.primaryText:l.text,transform:[{rotate:"how"===u?"180deg":"0deg"}]},children:"▼"})]}),p?/* @__PURE__ */v(k,{onPress:()=>g(e=>"pay"===e?null:"pay"),accessibilityRole:"button",accessibilityState:{expanded:"pay"===u},style:M("pay"===u),children:[/* @__PURE__ */z(x,{style:R("pay"===u),children:B}),/* @__PURE__ */z(x,{style:{fontSize:7,color:"pay"===u?l.primaryText:l.text,transform:[{rotate:"pay"===u?"180deg":"0deg"}]},children:"▼"})]}):/* @__PURE__ */z(C,{style:{flex:1}})]}),u&&D&&/* @__PURE__ */z(C,{style:{position:"absolute",left:0,right:0,top:"100%",marginTop:8,zIndex:30,backgroundColor:l.background??"#fff",borderWidth:1,borderColor:l.border,borderRadius:10,shadowColor:"#000",shadowOffset:{width:0,height:12},shadowOpacity:.16,shadowRadius:24},children:H}),
27
+ /* @__PURE__ */z(_t,{visible:!!u&&!D,anchor:T,onClose:()=>g(null),flipUp:W,align:"left",gap:8,children:/* @__PURE__ */z(C,{style:{width:T?.width,backgroundColor:l.background??"#FCFBF9",borderRadius:10,borderWidth:1,borderColor:l.border,elevation:6,shadowColor:"#000",shadowOffset:{width:0,height:12},shadowOpacity:.16,shadowRadius:24,overflow:"hidden"},children:H})})]})}function Rn({tabs:e,active:t,onChange:n,colors:o,bodyFont:r,useShortLabel:i}){return e.length<=1?null:/* @__PURE__ */z(C,{style:{flexDirection:"row",gap:8,marginBottom:12},children:e.map(e=>{const l=e.id===t;/* @__PURE__ */
28
+ return z(k,{onPress:()=>n(e.id),accessibilityRole:"button",accessibilityState:{selected:l},style:{flex:1,minWidth:0,borderRadius:999,paddingHorizontal:4,paddingVertical:10,borderWidth:1,borderColor:l?o.primary:o.border,backgroundColor:l?o.primary:o.background??"#fff",alignItems:"center",justifyContent:"center",shadowColor:l?o.primary:o.border,shadowOffset:{width:0,height:4},shadowOpacity:l?.35:.25,shadowRadius:l?6:5,elevation:l?4:2},children:/* @__PURE__ */z(x,{numberOfLines:1,style:{fontFamily:r,fontSize:10,fontWeight:"700",letterSpacing:-.1,color:l?o.primaryText:o.primary},children:i?e.shortLabel:e.label})},e.id)})})}function Hn({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:l,iconColor:s,accentColor:d,captionColor:h,bodyFont:u,legOptions:g,onPick:p,colors:m,menuShadow:b}){const[w,B]=c(!1),[S,A]=c(null),T=a(null),L=a(null),[D,M]=c(null),[R,H]=c(!1),[O,P]=c(null),I="web"===y.OS,E=40+40*g.length+12;i(()=>{if(!w||!I)return;const e=T.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.scrollX||window.pageXOffset||0,o=window.scrollY||window.pageYOffset||0,r=window.innerHeight-t.bottom,i=t.top,l=r<E&&i>r;M({top:t.top+o,bottom:t.bottom+o,right:t.right+n,flipUp:l})},[w,I,E]),r(()=>{if(!w)return;if(I){const e=e=>{const t=T.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||L.current&&L.current.contains(n)||B(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}const e=T.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=f.get("window").height-(t+o);H(r<E&&t>r),P({x:e,y:t,width:n,height:o})})},[w,I,E]);const j=/* @__PURE__ */v(F,{children:[/* @__PURE__ */z(C,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:m.border},children:/* @__PURE__ */z(x,{style:{fontSize:10,fontWeight:"700",color:m.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase",fontFamily:u},children:"How many picks?"})}),g.map((e,t)=>/* @__PURE__ */v(k,{onPress:()=>{B(!1),A(null),p(e)},onMouseEnter:()=>A(e),onMouseLeave:()=>A(t=>t===e?null:t),style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:0===t?0:1,borderTopColor:m.border,backgroundColor:S===e?m.backgroundAlt:"transparent"},children:[/* @__PURE__ */v(x,{style:{fontSize:14,fontWeight:"600",color:m.text,fontFamily:u},children:[e," picks"]}),/* @__PURE__ */z(x,{style:{backgroundColor:Vt(m.primary,.14),color:m.primary,paddingVertical:2,paddingHorizontal:6,borderRadius:4,fontSize:10,fontWeight:"700",letterSpacing:.5,overflow:"hidden",fontFamily:u},children:"QP"})]},e))]});/* @__PURE__ */
29
+ return v(C,{ref:T,style:{position:"relative"},children:[
30
+ /* @__PURE__ */z(Yt,{iconUrl:e,gameName:t,onPress:()=>B(e=>!e),size:n,brandColor:o,cardColor:l,iconColor:s,accentColor:d,captionColor:h}),w&&I&&D&&"undefined"!=typeof document&&W(/* @__PURE__ */z("div",{ref:L,style:{position:"absolute",top:D.flipUp?void 0:D.bottom+6,bottom:D.flipUp&&"undefined"!=typeof window?window.innerHeight-D.top+6:void 0,left:D.right,transform:"translateX(-100%)",zIndex:20,backgroundColor:m.background,border:`1px solid ${m.border}`,borderRadius:8,minWidth:180,boxShadow:b,overflow:"hidden",fontFamily:u},children:j}),document.body),
31
+ /* @__PURE__ */z(_t,{visible:w&&!I,anchor:O,onClose:()=>B(!1),flipUp:R,align:"right",children:/* @__PURE__ */z(C,{style:{elevation:6,backgroundColor:m.background,borderRadius:8,borderWidth:1,borderColor:m.border,minWidth:180,shadowColor:"#000",shadowOffset:{width:0,height:12},shadowOpacity:.16,shadowRadius:24,overflow:"hidden"},children:j})})]})}function On({color:e,style:t}){/* @__PURE__ */
32
+ return z(C,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function Pn({colors:e,count:t=3,tileSize:n=100}){const o=e.selectionCard??e.backgroundAlt;/* @__PURE__ */
33
+ return z(C,{style:{gap:12,width:"100%"},accessibilityLabel:"Loading",children:Array.from({length:t}).map((t,r)=>/* @__PURE__ */z(C,{style:{borderRadius:12,borderWidth:2,borderTopWidth:4,padding:16,gap:16,width:"100%",borderColor:e.border,borderTopColor:e.primary,backgroundColor:o},children:/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"flex-start",gap:12,width:"100%"},children:[/* @__PURE__ */v(C,{style:{flex:1,minWidth:0,gap:8},children:[
34
+ /* @__PURE__ */z(On,{color:e.textMuted,style:{height:28,width:144,maxWidth:"85%"}}),
35
+ /* @__PURE__ */z(On,{color:e.textMuted,style:{height:14,width:"100%"}}),
36
+ /* @__PURE__ */z(On,{color:e.textMuted,style:{height:14,width:"82%"}}),
37
+ /* @__PURE__ */z(On,{color:e.textMuted,style:{height:20,width:112,borderRadius:999}})]}),/* @__PURE__ */z(On,{color:e.textMuted,style:{width:n,height:n,borderRadius:12,flexShrink:0}})]})},r))})}function In({games:e,selectedGame:t,onSelectGame:n,loading:o,error:i,theme:a,colorScheme:s,showTier:d=!1,showCategory:h=!1,showTierFilter:f=!1,onPropositionCountChange:u,onPropositionCountSelected:g,onQuickPickGame:p,maxPayouts:y}){const m=Ht(a,s),b=m.colors,w=gt(m),B=Ot(m),k=Pt(m),S=lt(m),F=Qt(m),W=ht(m),A="dark"===m.colorScheme,T=l(()=>Ln(e),[e]),[L,D]=c(()=>Dn(e)),[M,R]=c(null);r(()=>{0!==T.length&&(T.some(e=>e.id===L)||D(T[0].id))},[T,L]);const H=l(()=>!f||T.length<=1?e:Tn(e,vn[L]),[e,f,T.length,L]),O=e=>e.allowed_propositions&&e.allowed_propositions.length>0&&e.game_name.replace(/\s+\d+\s*$/,"").trim()||e.game_name,[P,I]=c(0),E=P>0&&P<400,j=E?88:P>0&&P>=400&&P<480?96:104,N=P>0&&P<380,Y=P>0?P>=420?(P-12)/2:P:void 0,G={shadowColor:"#000",shadowOpacity:A?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};return o?/* @__PURE__ */z(Pn,{colors:yt(m),count:Math.min(Math.max(e.length,2),4)}):i?/* @__PURE__ */z(C,{style:En.centerContainer,children:/* @__PURE__ */z(x,{style:{color:b.error,fontFamily:B},children:i})}):0===e.length?/* @__PURE__ */z(C,{style:En.centerContainer,children:/* @__PURE__ */z(x,{style:{color:b.textMuted,fontFamily:B},children:"No games available"})}):/* @__PURE__ */v(C,{style:{flexDirection:"column"},onLayout:e=>I(e.nativeEvent.layout.width),children:[f&&/* @__PURE__ */z(Rn,{tabs:T,active:L,onChange:D,colors:b,bodyFont:B,useShortLabel:N}),0===H.length?/* @__PURE__ */z(C,{style:En.centerContainer,children:/* @__PURE__ */z(x,{style:{color:b.textMuted,fontFamily:B},children:"No games in this collection"})}):/* @__PURE__ */z(C,{style:{flexDirection:"row",flexWrap:"wrap",gap:12},children:H.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=>tt[e]??`Day ${e}`);return 1===n.length?n[0]:n.slice(0,-1).join(", ")+" & "+n[n.length-1]}(e),i=t?.id===e.id,l=String(e.id),a=Ne(e),c=e.description||e.rule,s=e.allowed_propositions&&e.allowed_propositions.length>0?e.allowed_propositions:[],f=e.min_propositions??e.num_propositions??null,A=e.max_propositions??e.num_propositions??null,T=0===s.length&&null!==f&&null!==A&&A>0,L=T?rt(f,A):[],D=s.length>0?s:L,H=(()=>{const t=/* @__PURE__ */new Map;y?.[e.id]?.top_payouts?.length&&y[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 D){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)})(),P=D.length>0?Math.max(...D.map(Number)):0,I=Ce(e),N=kn(e)?zn(e):null,V=N?N.dividends.map(e=>({dividend:e.dividend,stakeFrom:Math.min(...e.rungs.map(e=>e.stake))})):void 0,U=N?[]:H.map(e=>({count:e.count,payout20:e.payout>0&&e.betAmount>0?e.payout/e.betAmount*20:0})),Z=bn(e,P),K="safety_net"===Z?.kind?(Z.options??[]).flatMap(e=>e.dividends?.length?[{id:e.id,label:e.label,tiers:e.dividends.map(e=>({label:e.label,payout20:e.payout20}))}]:[]):[],q=(s.length>0||T)&&U.some(e=>e.payout20>0),X=!!c||K.length>0||q||!!V?.length,Q=K.length>0?K.reduce((e,t)=>t.tiers.reduce((e,t)=>Math.max(e,t.payout20),e),0):U.reduce((e,t)=>t.payout20>e?t.payout20:e,0);/* @__PURE__ */
38
+ return v(C,{style:[En.gameCard,{width:Y,borderColor:i?b.primary:b.border,backgroundColor:i?b.infoBg:b.background??w,opacity:o?1:.5,zIndex:M===l?1:void 0},G],pointerEvents:o?"auto":"none",children:[e.quick_pick_only&&p&&D.length>1?/* @__PURE__ */z(Hn,{iconUrl:I,gameName:O(e),size:j,brandColor:b.primary,cardColor:w,iconColor:b.primaryText,accentColor:W,captionColor:b.textMuted,bodyFont:B,legOptions:D.map(Number),onPick:t=>p(e,t),colors:b,menuShadow:F}):/* @__PURE__ */z(Yt,{iconUrl:I,gameName:O(e),onPress:()=>{e.quick_pick_only&&p&&P>0?p(e,P):(P>0&&!nn(e)&&u?.(P),n(e),g?.())},size:j,brandColor:b.primary,cardColor:w,iconColor:b.primaryText,accentColor:W,captionColor:b.primary}),
39
+ /* @__PURE__ */v(x,{style:{marginTop:4,fontFamily:k,fontSize:12,letterSpacing:-.48,lineHeight:12},children:[/* @__PURE__ */z(x,{style:{fontWeight:"800",color:b.primary},children:"YES"}),/* @__PURE__ */z(x,{style:{fontWeight:"600",color:Vt(b.primary,.85)},children:"NO"})]}),
40
+ /* @__PURE__ */z(x,{style:{fontFamily:k,fontWeight:"600",fontSize:E?15:17,color:S,letterSpacing:-.15,lineHeight:1.25*(E?15:17),textAlign:"center",paddingHorizontal:4},children:O(e)}),a.enabled&&/* @__PURE__ */z(C,{style:[En.jackpotBadge,{backgroundColor:`${b.warning}15`,marginTop:4}],children:/* @__PURE__ */v(x,{style:[En.jackpotBadgeText,{color:b.warning,fontFamily:B}],children:["★ ",a.progressive?a.amount>0?Te(a.amount):a.limit>0?`Up to ${Te(a.limit)}`:"Jackpot":Te(a.amount)]})}),!o&&r&&/* @__PURE__ */v(x,{style:{color:b.textMuted,fontSize:12,fontWeight:"600",fontFamily:B,marginTop:4},children:["Available ",r]}),X&&/* @__PURE__ */z(Mn,{howToPlay:c||"Pick outcomes and land the payout for this game.",maxPayout:Q,tiers:U,modes:K,pydDividends:V,colors:b,bodyFont:B,headingFont:k,onOpenChange:e=>R(t=>e?l:t===l?null:t)}),(h||d)&&/* @__PURE__ */v(C,{style:[En.tagsRow,{justifyContent:"center",marginTop:8}],children:[h&&e.category&&/* @__PURE__ */z(C,{style:[En.tag,{backgroundColor:b.backgroundAlt}],children:/* @__PURE__ */z(x,{style:[En.tagText,{color:at(m),fontFamily:B}],children:e.category})}),h&&/* @__PURE__ */z(C,{style:[En.tag,{backgroundColor:b.backgroundAlt}],children:/* @__PURE__ */z(x,{style:[En.tagText,{color:at(m),fontFamily:B}],children:e.rule})}),h&&e.lotto_type&&/* @__PURE__ */z(C,{style:[En.tag,{backgroundColor:b.backgroundAlt}],children:/* @__PURE__ */z(x,{style:[En.tagText,{color:at(m),fontFamily:B}],children:e.lotto_type})}),d&&null!=e.tier&&/* @__PURE__ */z(C,{style:[En.tag,{backgroundColor:b.backgroundAlt}],children:/* @__PURE__ */v(x,{style:[En.tagText,{color:at(m),fontFamily:B}],children:["Tier ",e.tier]})})]}),!T&&0===s.length&&/* @__PURE__ */z(C,{style:{marginTop:8,width:"100%"},children:/* @__PURE__ */z(Jt,{theme:m,variant:"primary",size:"sm",onPress:()=>{n(e),g?.()},children:"Select game"})})]},l)})})]})}var En=w.create({centerContainer:{alignItems:"center",justifyContent:"center",padding:32,gap:8},gameCard:{flexDirection:"column",alignItems:"center",borderWidth:1,borderRadius:18,paddingHorizontal:14,paddingTop:24,paddingBottom:20,gap:4},jackpotBadge:{alignSelf:"center",flexDirection:"row",alignItems:"center",gap:2,paddingHorizontal:8,paddingVertical:2,borderRadius:999},jackpotBadgeText:{fontSize:10,fontWeight:"700"},tagsRow:{flexDirection:"row",flexWrap:"wrap",gap:4},tag:{paddingHorizontal:6,paddingVertical:2,borderRadius:4},tagText:{fontSize:12}});function jn({theme:e,value:t,onYes:n,onNo:o,disabled:r}){const i=e.colors,l=(e,t)=>({paddingVertical:6,paddingHorizontal:14,borderRadius:8,borderWidth:1,backgroundColor:e?t:"transparent",borderColor:e?"transparent":i.border,opacity:r?.5:1}),a=e=>({color:e?"#ffffff":i.text,fontSize:13,fontWeight:"600",lineHeight:16});/* @__PURE__ */
41
+ return v(C,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[/* @__PURE__ */z(k,{onPress:n,disabled:r,accessibilityState:{selected:"yes"===t},style:l("yes"===t,st(e)),children:/* @__PURE__ */z(x,{style:a("yes"===t),children:"Yes"})}),/* @__PURE__ */z(k,{onPress:o,disabled:r,accessibilityState:{selected:"no"===t},style:l("no"===t,dt(e)),children:/* @__PURE__ */z(x,{style:a("no"===t),children:"No"})})]})}function Nn({theme:e,value:t}){/* @__PURE__ */
42
+ return z(C,{style:{paddingVertical:2,paddingHorizontal:8,borderRadius:8,backgroundColor:"yes"===t?st(e):dt(e),alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */z(x,{style:{color:"#ffffff",fontSize:10,fontWeight:"700",letterSpacing:.4,textTransform:"uppercase"},children:"yes"===t?"Yes":"No"})})}function Yn({theme:e,variant:t,disabled:n,onPress:o,children:r}){const i=e.colors,[l,a]=c(!1),s="primary"===t?{bg:i.buttonPrimary,bgHover:i.buttonPrimaryHover,fg:i.buttonPrimaryText,border:i.buttonPrimary}:{bg:i.buttonSecondary,bgHover:i.buttonSecondaryHover,fg:i.buttonSecondaryText,border:i.border};/* @__PURE__ */
43
+ return z(k,{onPress:o,disabled:n,activeOpacity:.85,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:s.border,backgroundColor:l&&!n?s.bgHover:s.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:/* @__PURE__ */z(x,{style:{color:s.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:r})})}function Gn({propositions:e,selections:t,onToggleSelection:n,onNext:o,onBack:r,theme:i,colorScheme:l,hideActions:a=!1,renderTeamLogo:s,showHomeAway:d=!1,allowAnswerToggle:h=!0,gameName:f,potentialPayout:u,defaultExpanded:g=!1,addMorePicks:p}){const y=Ht(i,l),m=y.colors,b=gt(y),w=Pt(y),B=lt(y),W=m.textAlt??m.text,{width:T}=S(),L=T>=640,D=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(y),[M,R]=c(null),[H,P]=c(g),I=e.filter(e=>e.id in t),E=I.length,j=L?16:12;/* @__PURE__ */
44
+ return v(C,{style:{gap:L?24:16,paddingBottom:64},children:[
45
+ /* @__PURE__ */v(C,{style:[Vn.section,{padding:L?24:16,backgroundColor:b,borderColor:m.border},D],children:[
46
+ /* @__PURE__ */v(k,{onPress:()=>P(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:H},style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:12},children:[/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",gap:8,flex:1,minWidth:0},children:[/* @__PURE__ */z(A,{width:18,height:18,viewBox:"0 0 24 24",style:{flexShrink:0,transform:[{rotate:H?"180deg":"0deg"}]},children:/* @__PURE__ */z(O,{d:"m6 9 6 6 6-6",stroke:m.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),/* @__PURE__ */v(C,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",gap:8},children:[/* @__PURE__ */z(x,{style:{fontSize:L?18:16,fontWeight:"600",color:B,fontFamily:w},children:"Your Selections"}),/* @__PURE__ */z(C,{style:{backgroundColor:m.primary,paddingHorizontal:6,paddingVertical:2,borderRadius:999},children:/* @__PURE__ */z(x,{style:{color:m.primaryText,fontSize:12,fontWeight:"600"},children:E})})]}),f&&/* @__PURE__ */z(x,{numberOfLines:1,style:{color:m.textMuted,fontSize:14,marginTop:2},children:f})]})]}),null!=u&&u>0&&/* @__PURE__ */v(C,{style:{alignItems:"flex-end",flexShrink:0},children:[/* @__PURE__ */z(x,{style:{color:m.textMuted,fontSize:10,textTransform:"uppercase",letterSpacing:.25},children:"Potential Payout"}),/* @__PURE__ */z(x,{style:{color:B,fontSize:14,fontWeight:"700"},children:Te(u)})]})]}),p&&p.remaining>0&&/* @__PURE__ */v(C,{style:{marginTop:j,padding:12,borderRadius:8,borderWidth:1,borderColor:`${m.primary}30`,backgroundColor:`${m.primary}08`,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */v(x,{style:{flex:1,color:m.textMuted,fontSize:12},children:[1===p.remaining?"Add ":"Add up to ",
47
+ /* @__PURE__ */v(x,{style:{color:m.primary,fontWeight:"700"},children:[p.remaining," more pick",1!==p.remaining?"s":""]}),null!=p.potentialPayout&&p.potentialPayout>0&&/* @__PURE__ */v(x,{children:[" ","to win up to"," ",
48
+ /* @__PURE__ */z(x,{style:{color:B,fontWeight:"700"},children:Te(p.potentialPayout)})," ","with ",p.max," picks"]})]}),/* @__PURE__ */z(k,{onPress:()=>p.onAdd(),style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:m.buttonPrimary},children:/* @__PURE__ */z(x,{style:{color:m.buttonPrimaryText,fontSize:12,fontWeight:"600"},children:"Add picks"})})]}),H&&(0===I.length?/* @__PURE__ */z(C,{style:[Vn.emptyState,{marginTop:j}],children:/* @__PURE__ */z(x,{style:{color:m.textMuted},children:"No selections made yet"})}):/* @__PURE__ */z(C,{style:{gap:L?12:8,marginTop:j},children:I.map((e,o)=>{const i=t[e.id],l="yes"===i,a="no"===i,c=L?24:20;/* @__PURE__ */
49
+ return z(C,{style:{padding:L?14:12,borderRadius:8,backgroundColor:m.backgroundAlt},children:/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"flex-start",gap:L?12:8},children:[
50
+ /* @__PURE__ */z(C,{style:{flexShrink:0,width:c,height:c,borderRadius:c/2,alignItems:"center",justifyContent:"center",backgroundColor:m.primary},children:/* @__PURE__ */z(x,{style:{fontSize:L?14:12,fontWeight:"600",color:m.primaryText},children:o+1})}),
51
+ /* @__PURE__ */v(C,{style:Vn.selectionInfo,children:[d?/* @__PURE__ */v(F,{children:[/* @__PURE__ */v(C,{style:Vn.teamsRow,children:[s&&e.home_team&&/* @__PURE__ */v(C,{style:Vn.teamLogoRow,children:[s(e.home_team),/* @__PURE__ */z(x,{style:[Vn.teamText,{color:W,fontSize:L?16:14}],children:e.home_team})]}),!s&&/* @__PURE__ */z(x,{style:[Vn.teamText,{color:W,fontSize:L?16:14}],children:e.home_team}),
52
+ /* @__PURE__ */z(x,{style:[Vn.vsSmall,{color:m.textAltMuted??m.textMuted}],children:"vs"}),s&&e.away_team&&/* @__PURE__ */v(C,{style:Vn.teamLogoRow,children:[s(e.away_team),/* @__PURE__ */z(x,{style:[Vn.teamText,{color:W,fontSize:L?16:14}],children:e.away_team})]}),!s&&/* @__PURE__ */z(x,{style:[Vn.teamText,{color:W,fontSize:L?16:14}],children:e.away_team})]}),/* @__PURE__ */z(x,{style:[Vn.propDesc,{color:m.textAltMuted??m.textMuted}],children:e.description})]}):/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",gap:8},children:[s&&(e.outcome||e.description)&&s(e.outcome||e.description),/* @__PURE__ */z(x,{style:[Vn.teamText,{color:W,fontSize:L?16:14,flex:1}],children:e.description})]}),/* @__PURE__ */z(x,{style:[Vn.propTime,{color:m.textAltMuted??m.textMuted}],children:e.commence_time&&Le(e.commence_time)})]}),
53
+ /* @__PURE__ */v(C,{style:Vn.rightControls,children:[h?/* @__PURE__ */z(jn,{theme:y,value:l?"yes":a?"no":null,onYes:()=>n(e.id,"yes"),onNo:()=>n(e.id,"no")}):i&&/* @__PURE__ */z(Nn,{theme:y,value:"yes"===i?"yes":"no"}),/* @__PURE__ */z(k,{onPress:()=>{n(e.id,t[e.id]),r()},accessibilityLabel:"Remove selection",onMouseEnter:()=>R(e.id),onMouseLeave:()=>R(t=>t===e.id?null:t),style:[Vn.removeButton,{backgroundColor:M===e.id?m.error:m.backgroundAlt}],children:/* @__PURE__ */z(A,{width:12,height:12,viewBox:"0 0 24 24",children:/* @__PURE__ */z(O,{d:"M6 18L18 6M6 6l12 12",stroke:M===e.id?"#fff":m.textAltMuted??m.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})})]})]})},e.id)})}))]}),
54
+ /* @__PURE__ */z(C,{style:[Vn.section,{padding:L?24:16,backgroundColor:b,borderColor:m.border},D],children:/* @__PURE__ */v(C,{style:Vn.summaryRow,children:[/* @__PURE__ */z(x,{style:{color:m.textMuted,fontSize:14},children:"Total Selections"}),/* @__PURE__ */z(x,{style:{color:m.text,fontSize:14,fontWeight:"600"},children:I.length})]})}),!a&&/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:m.border,backgroundColor:m.background,marginHorizontal:L?-24:-16,paddingHorizontal:L?24:16,paddingVertical:L?16:12},children:[/* @__PURE__ */z(Yn,{theme:y,variant:"secondary",onPress:r,children:"Back"}),/* @__PURE__ */z(Yn,{theme:y,variant:"primary",disabled:0===I.length,onPress:o,children:"Place bet"})]})]})}var Vn=w.create({section:{borderRadius:12,borderWidth:1},emptyState:{alignItems:"center",paddingVertical:32},selectionInfo:{flex:1,minWidth:0},teamsRow:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6,rowGap:2},teamLogoRow:{flexDirection:"row",alignItems:"center",gap:4},teamText:{fontWeight:"600"},vsSmall:{fontSize:12,fontWeight:"400"},propDesc:{fontSize:14,marginTop:4},propTime:{fontSize:12,opacity:.7,marginTop:2},rightControls:{flexDirection:"row",alignItems:"center",gap:8},removeButton:{width:20,height:20,borderRadius:10,alignItems:"center",justifyContent:"center"},summaryRow:{flexDirection:"row",justifyContent:"space-between"}});function Un({game:t,propositions:n,selections:o,onToggleSelection:r,onRemoveSelection:i,onSubmit:l,onBack:a,loading:c,error:s,expectedCorrect:h,onExpectedCorrectChange:f,betAmount:u,onBetAmountChange:g,theme:p,colorScheme:y,hideActions:b=!1,winningCounts:w,payouts:W,renderTeamLogo:T,showCustomAmount:L=!1,betAmountLocked:D=!1,betAmountLockedNote:M,canSubmit:R,userBalance:H,onRecharge:P,boostBanner:I}){const E=Ht(p,y),j=E.colors,N=gt(E),Y=Pt(E),G=lt(E),V=at(E),U=ct(E),Z=j.textAlt??j.text,{width:K}=S(),q=K>=640,X="dark"===E.colorScheme,Q=n.length,J=t.min_bet??0,$=Math.max(J,.01),_=t.max_bet??null,ee=[5,10,20,50,100,200,500].filter(e=>e>=$&&(null===_||e<=_)).slice(0,4),te={};for(let e=0;e<=Q;e++)te[e]=u*e;const ne=W??te,oe=ne[h]??0,re=Ne(t),ie=re.enabled&&h===Q,[le,ae]=e.useState(null),[ce,se]=e.useState(!0),[de,he]=e.useState(!1),fe=c||u<$||!1===R,ue=null!=H&&u>H,ge=b&&!!l,pe=o?n.filter(e=>e.id in o):n,ye=Object.entries(ne).map(([e,t])=>({correct:Number(e),payout:t})).filter(e=>e.correct>0&&e.payout>0).sort((e,t)=>e.correct-t.correct),me=1===ye.length?ye[0].correct:null;e.useEffect(()=>{null!==me&&h!==me&&f(me)},[me]);const be={shadowColor:"#000",shadowOpacity:X?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};/* @__PURE__ */
55
+ return v(C,{style:{gap:q?16:12,paddingBottom:64},children:[
56
+ /* @__PURE__ */v(C,{style:[Zn.section,be,{padding:q?20:16,backgroundColor:N,borderColor:j.border}],children:[
57
+ /* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */v(k,{onPress:()=>se(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:ce},accessibilityLabel:ce?"Hide selections":"Show selections",testID:"entry-submission-selections-toggle",style:{flexDirection:"row",alignItems:"center",gap:8,flex:1},activeOpacity:.7,children:[/* @__PURE__ */z(C,{style:{transform:[{rotate:ce?"180deg":"0deg"}]},children:/* @__PURE__ */z(A,{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */z(O,{d:"m6 9 6 6 6-6",stroke:j.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})}),/* @__PURE__ */z(x,{style:{fontSize:q?16:14,fontWeight:"600",color:G,fontFamily:Y},children:"Review Selections"})]}),/* @__PURE__ */z(C,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:999,flexShrink:0,backgroundColor:`${j.primary}15`},children:/* @__PURE__ */v(x,{style:{color:j.primary,fontSize:12,fontWeight:"600"},children:[pe.length," pick",1!==pe.length?"s":""]})})]}),!ce&&/* @__PURE__ */z(x,{style:{color:j.textMuted,fontSize:12,marginTop:8},children:"Tap to show your picks"}),ce&&/* @__PURE__ */z(C,{style:{gap:8,marginTop:12},children:pe.map(e=>{const t=o?.[e.id],n="yes"===t,l="no"===t,a=!!r;/* @__PURE__ */
58
+ return v(C,{style:{flexDirection:"row",alignItems:"flex-start",gap:8,paddingVertical:8,paddingHorizontal:12,borderRadius:4,backgroundColor:j.backgroundAlt},children:[
59
+ /* @__PURE__ */v(C,{style:{flex:1},children:[/* @__PURE__ */v(x,{style:{color:Z,fontSize:q?14:12,fontWeight:"500"},children:[e.home_team,e.away_team?/* @__PURE__ */v(F,{children:[" ",
60
+ /* @__PURE__ */z(x,{style:{color:j.textMuted},children:"vs"})," ",e.away_team]}):null]}),/* @__PURE__ */z(x,{style:{color:j.textMuted,fontSize:11,marginTop:2},children:e.description})]}),a?/* @__PURE__ */v(C,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[/* @__PURE__ */z(k,{onPress:()=>r(e.id,"yes"),accessibilityState:{selected:n},style:{paddingHorizontal:10,paddingVertical:3,borderRadius:8,backgroundColor:n?st(E):"transparent",borderWidth:1,borderColor:n?"transparent":j.border},children:/* @__PURE__ */z(x,{style:{color:n?"#ffffff":j.text,fontSize:11,fontWeight:"600"},children:"Yes"})}),/* @__PURE__ */z(k,{onPress:()=>r(e.id,"no"),accessibilityState:{selected:l},style:{paddingHorizontal:10,paddingVertical:3,borderRadius:8,backgroundColor:l?dt(E):"transparent",borderWidth:1,borderColor:l?"transparent":j.border},children:/* @__PURE__ */z(x,{style:{color:l?"#ffffff":j.text,fontSize:11,fontWeight:"600"},children:"No"})})]}):t?/* @__PURE__ */z(C,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:8,flexShrink:0,backgroundColor:"yes"===t?st(E):dt(E)},children:/* @__PURE__ */z(x,{style:{color:"#ffffff",fontSize:10,fontWeight:"700",letterSpacing:.4,textTransform:"uppercase"},children:"yes"===t?"Yes":"No"})}):null,ce&&i&&/* @__PURE__ */z(m,{onPress:()=>{t&&r?.(e.id,t),i(e.id)},onMouseEnter:()=>ae(e.id),onMouseLeave:()=>ae(null),style:{flexShrink:0,width:16,height:16,borderRadius:999,alignItems:"center",justifyContent:"center",backgroundColor:le===e.id?j.error:"transparent"},children:/* @__PURE__ */z(A,{width:10,height:10,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */z(O,{d:"M6 18L18 6M6 6l12 12",stroke:le===e.id?"#fff":j.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]},e.id)})}),I?/* @__PURE__ */z(C,{style:{marginTop:8},children:I}):null]}),ge&&/* @__PURE__ */v(C,{testID:"entry-submission-scroll-hint",style:{flexDirection:"row",alignItems:"center",gap:6,marginTop:-4},children:[/* @__PURE__ */z(x,{style:{color:j.textMuted,fontSize:q?14:12,fontWeight:"500"},children:"↓"}),/* @__PURE__ */z(x,{style:{color:j.textMuted,fontSize:q?14:12,fontWeight:"500",flex:1},children:"Scroll down to set your bet and place your entry"})]}),
61
+ /* @__PURE__ */v(C,{style:[Zn.section,be,{padding:q?24:16,backgroundColor:N,borderColor:j.border}],children:[
62
+ /* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:q?16:12},children:[/* @__PURE__ */z(x,{style:{fontSize:q?18:16,fontWeight:"600",color:G,fontFamily:Y},children:"How much are you betting?"}),null!=H&&/* @__PURE__ */v(x,{style:{fontSize:12,fontWeight:"600",color:j.textMuted},children:["Balance: ",/* @__PURE__ */z(x,{style:{color:ue?j.error:j.success},children:Te(H)})]})]}),ue&&/* @__PURE__ */v(C,{style:{marginBottom:12,paddingHorizontal:12,paddingVertical:8,borderRadius:8,backgroundColor:j.errorBg??`${j.error}15`,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */v(x,{style:{flex:1,fontSize:12,fontWeight:"500",color:j.errorText??j.error},children:["Insufficient balance. Your bet of ",Te(u)," exceeds your available ",Te(H),"."]}),P&&/* @__PURE__ */z(k,{onPress:P,style:{paddingHorizontal:12,paddingVertical:4,borderRadius:6,backgroundColor:j.error},children:/* @__PURE__ */z(x,{style:{fontSize:12,fontWeight:"600",color:j.buttonPrimaryText??"#fff"},children:"Add funds"})})]}),/* @__PURE__ */v(C,D?{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:8,paddingHorizontal:12,paddingVertical:10,backgroundColor:j.backgroundAlt,borderWidth:1,borderColor:j.border},children:[/* @__PURE__ */z(x,{style:{fontSize:12,color:j.textMuted,flex:1},children:M??"Stake is set for this ticket."}),/* @__PURE__ */z(x,{style:{fontSize:18,fontWeight:"700",color:G,fontFamily:Y},children:Te(u)})]}:{style:{gap:16},children:[L&&/* @__PURE__ */v(C,{children:[
63
+ /* @__PURE__ */z(x,{style:{fontSize:q?14:12,fontWeight:"600",color:V,marginBottom:8},children:"Entry amount"}),
64
+ /* @__PURE__ */v(C,{style:{position:"relative"},children:[/* @__PURE__ */z(C,{style:{position:"absolute",left:12,top:0,bottom:0,justifyContent:"center",zIndex:1},pointerEvents:"none",children:/* @__PURE__ */z(x,{style:{color:j.textMuted},children:"$"})}),/* @__PURE__ */z(B,{keyboardType:"decimal-pad",placeholder:"Enter amount",accessibilityLabel:"Entry amount",value:u?String(u):"",onChangeText:e=>{if(""===e)return void g(0);const t=Number(e);if(!Number.isFinite(t))return;const n=Math.max(0,Math.round(100*t)/100);g(null!==_?Math.min(n,_):n)},onFocus:()=>he(!0),onBlur:()=>he(!1),style:{paddingLeft:32,paddingRight:16,paddingVertical:12,borderWidth:1,borderRadius:8,fontSize:18,fontWeight:"600",borderColor:de?j.borderFocus??j.primary:j.border,color:Z,backgroundColor:j.backgroundAlt},placeholderTextColor:j.textMuted})]}),
65
+ /* @__PURE__ */v(x,{style:{fontSize:12,marginTop:6,color:j.textMuted},children:["Minimum bet: ",Te($),null!==_?` · Maximum: ${Te(_)}`:""]}),u>0&&u<$&&/* @__PURE__ */v(x,{style:{fontSize:12,marginTop:4,color:j.error},children:["Bet amount must be at least ",Te($)]})]}),/* @__PURE__ */v(C,{children:[(L||u>0)&&/* @__PURE__ */v(C,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[L?/* @__PURE__ */z(x,{style:{fontSize:q?14:12,fontWeight:"600",color:V},children:"Add to bet"}):/* @__PURE__ */z(C,{}),u>0&&/* @__PURE__ */z(k,{onPress:()=>g(0),style:{paddingHorizontal:10,paddingVertical:4,borderRadius:6,backgroundColor:j.backgroundAlt,borderWidth:1.5,borderColor:j.border},children:/* @__PURE__ */z(x,{style:{color:j.textMuted,fontSize:12,fontWeight:"600"},children:"Clear bet"})})]}),/* @__PURE__ */z(C,{style:{flexDirection:"row",gap:8},children:ee.map(e=>{const t=null!==_&&u>=_;/* @__PURE__ */
66
+ return z(k,{onPress:()=>{const t=u+e;g(null!==_?Math.min(t,_):t)},disabled:t,style:{flex:1,minWidth:0,paddingHorizontal:12,paddingVertical:10,borderRadius:8,backgroundColor:"transparent",borderWidth:1,borderColor:j.border,opacity:t?.5:1,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */v(x,{style:{color:Z,fontSize:14,fontWeight:"600"},children:["+",Te(e)]})},e)})})]})]})]}),
67
+ /* @__PURE__ */z(C,{style:[Zn.section,be,{padding:q?20:16,backgroundColor:N,borderColor:j.border}],children:(()=>{const e=b&&!!l,t=/* @__PURE__ */v(F,{children:[
68
+ /* @__PURE__ */v(C,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[/* @__PURE__ */z(x,{style:{color:V,fontSize:14},children:"Bet"}),/* @__PURE__ */z(x,{style:{color:U,fontSize:14,fontWeight:"600"},children:Te(u)})]}),oe>0&&/* @__PURE__ */v(C,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingTop:8,borderTopWidth:1,borderTopColor:j.border},children:[/* @__PURE__ */z(x,{style:{color:V,fontSize:14,fontWeight:"600"},children:"Potential Payout"}),/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center"},children:[/* @__PURE__ */z(x,{style:{color:G,fontSize:18,fontWeight:"700"},children:Te(oe)}),ie&&/* @__PURE__ */z(x,{style:{color:j.warning,fontSize:12,marginLeft:4},children:"+ Jackpot"})]})]}),re.enabled&&/* @__PURE__ */v(C,{style:[Zn.jackpotBanner,{backgroundColor:`${j.warning}08`,borderColor:`${j.warning}25`}],children:[/* @__PURE__ */v(x,{style:{color:j.warning,fontSize:12,fontWeight:"600"},children:["★ ",re.progressive?"Progressive Jackpot":"Jackpot"]}),/* @__PURE__ */z(x,{style:{color:j.warning,fontSize:14,fontWeight:"700"},children:re.progressive?re.amount>0?Te(re.amount):re.limit>0?`Up to ${Te(re.limit)}`:"Progressive":Te(re.amount)})]})]});return e?/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"stretch",gap:16},children:[
69
+ /* @__PURE__ */z(C,{style:{flex:1,minWidth:0},children:t}),
70
+ /* @__PURE__ */z(C,{style:{width:1,alignSelf:"stretch",backgroundColor:j.border}}),
71
+ /* @__PURE__ */z(k,{onPress:l,disabled:fe,accessibilityState:{disabled:fe,busy:!!c},activeOpacity:.7,style:{flexShrink:0,paddingVertical:12,paddingHorizontal:20,borderRadius:8,backgroundColor:j.buttonPrimary,opacity:fe?.5:1,alignItems:"center",justifyContent:"center",minWidth:120},children:c?/* @__PURE__ */v(C,{style:{alignItems:"center",gap:8},children:[/* @__PURE__ */z(d,{size:"small",color:j.buttonPrimaryText}),/* @__PURE__ */z(x,{style:{color:j.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Placing Entry…"})]}):/* @__PURE__ */v(F,{children:[/* @__PURE__ */z(x,{style:{color:j.buttonPrimaryText,fontSize:16,fontWeight:"700"},children:"Place Entry"}),/* @__PURE__ */z(x,{style:{color:j.buttonPrimaryText,fontSize:12,opacity:.9,marginTop:2},children:Te(u)})]})})]}):t})()}),s&&/* @__PURE__ */z(C,{style:[Zn.errorBanner,{backgroundColor:j.errorBg,borderColor:j.error}],children:/* @__PURE__ */z(x,{style:{color:j.errorText,fontSize:14},children:s})}),!b&&/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:j.border,backgroundColor:j.background,marginHorizontal:q?-24:-16,paddingHorizontal:q?24:16,paddingVertical:q?16:12},children:[/* @__PURE__ */z(Jt,{theme:E,variant:"secondary",disabled:c,onPress:a,children:"Back"}),/* @__PURE__ */z(k,{onPress:l,disabled:fe,accessibilityState:{disabled:fe,busy:!!c},activeOpacity:.7,style:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,paddingHorizontal:24,paddingVertical:10,borderRadius:8,backgroundColor:j.buttonPrimary,opacity:fe?.5:1},children:c?/* @__PURE__ */v(F,{children:[/* @__PURE__ */z(d,{size:"small",color:j.buttonPrimaryText}),/* @__PURE__ */z(x,{style:{color:j.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Placing Entry…"})]}):/* @__PURE__ */z(x,{style:{color:j.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:`Place Entry (${Te(u)})`})})]})]})}var Zn=w.create({section:{borderRadius:12,borderWidth:1},jackpotBanner:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingVertical:6,paddingHorizontal:8,borderRadius:4,borderWidth:1,marginTop:8},errorBanner:{padding:12,borderRadius:8,borderWidth:1}}),Kn="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";function qn({index:e,size:t,wide:n,isWinning:o,isJackpot:r,isSelected:i,bgColor:l,borderFallback:a,warning:s,primary:d,textMuted:h,payout:f,onPress:u,accessibilityLabel:g}){const[p,y]=c(!1),m=!!u,b=o||r,w=m&&p?1.12:b?1.1:1;/* @__PURE__ */
72
+ return v(k,{onPress:u,disabled:!m,activeOpacity:.7,accessibilityRole:"button",accessibilityLabel:g,accessibilityState:{disabled:!m,selected:i},onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),style:[Qn.circle,{width:t,height:t,borderRadius:t/2,backgroundColor:l,borderColor:r?s:o?l:a,zIndex:i?10:r?6:o?5:1,transform:[{scale:w}]},b&&Qn.circleWinning,m&&p&&Qn.circleHovered],children:[r&&/* @__PURE__ */z(C,{pointerEvents:"none",style:{position:"absolute",top:-3,right:-3,bottom:-3,left:-3,borderRadius:t/2+3,borderWidth:2,borderColor:`${s}80`}}),i&&/* @__PURE__ */z(C,{pointerEvents:"none",style:{position:"absolute",top:-6,right:-6,bottom:-6,left:-6,borderRadius:t/2+6,borderWidth:3,borderColor:d}}),r&&/* @__PURE__ */z(C,{pointerEvents:"none",style:{position:"absolute",top:-6,right:-6},children:/* @__PURE__ */z(A,{width:14,height:14,viewBox:"0 0 24 24",children:/* @__PURE__ */z(O,{d:Kn,fill:s,stroke:s,strokeWidth:1})})}),
73
+ /* @__PURE__ */z(x,{style:{fontSize:n?16:14,lineHeight:n?16:14,fontWeight:"600",color:o||r?"#ffffff":h},children:e}),f>0&&/* @__PURE__ */z(x,{style:{fontSize:n?8:7,lineHeight:n?8:7,fontWeight:"400",color:o||r?"#ffffff":h},children:Te(f)})]})}function Xn({game:e,totalSelections:t,expectedCorrect:n,onExpectedCorrectChange:o,theme:r=wt,colorWinning:i,colorNone:l,winningCounts:a,payouts:c}){const s=r.colors,{width:d}=S(),h=d>=640,f=i??s.payoutWinning,u=l??s.payoutNone,g=Ne(e),p=h?48:40;/* @__PURE__ */
74
+ return v(C,{style:Qn.container,children:[
75
+ /* @__PURE__ */z(x,{style:[Qn.title,{color:s.textMuted}],children:"Payout Visualization"}),g.enabled&&/* @__PURE__ */v(C,{style:[Qn.jackpotBanner,{borderColor:`${s.warning}30`}],children:[
76
+ /* @__PURE__ */v(A,{style:w.absoluteFill,width:"100%",height:"100%",pointerEvents:"none",children:[/* @__PURE__ */z(L,{children:/* @__PURE__ */v(H,{id:"payout-jackpot-grad",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[/* @__PURE__ */z(E,{offset:"0%",stopColor:s.warning,stopOpacity:.094}),/* @__PURE__ */z(E,{offset:"100%",stopColor:s.warning,stopOpacity:.031})]})}),/* @__PURE__ */z(I,{x:"0",y:"0",width:"100%",height:"100%",fill:"url(#payout-jackpot-grad)"})]}),
77
+ /* @__PURE__ */z(A,{width:16,height:16,viewBox:"0 0 24 24",style:{flexShrink:0},children:/* @__PURE__ */z(O,{d:Kn,fill:s.warning})}),
78
+ /* @__PURE__ */z(x,{style:[Qn.jackpotText,{color:s.warning}],children:g.progressive?g.amount>0?`Progressive Jackpot: ${Te(g.amount)}${g.limit>0?` (up to ${Te(g.limit)})`:""} for a perfect pick!`:g.limit>0?`Progressive Jackpot — up to ${Te(g.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${Te(g.amount)} for a perfect pick!`})]}),
79
+ /* @__PURE__ */z(C,{style:[Qn.circleGrid,{gap:h?8:6}],children:Array.from({length:t+1},(e,r)=>{const i=a.includes(r),l=c[r]??0,d=r===t,y=g.enabled&&d,m=y?s.warning:i?f:u,b=r===n,w=y?g.progressive?`${r} correct wins progressive jackpot${g.amount>0?` (currently ${Te(g.amount)})`:""}${g.limit>0?` up to ${Te(g.limit)}`:""} plus ${Te(l)}`:`${r} correct wins jackpot ${Te(g.amount)} plus ${Te(l)}`:i?`${r} correct wins ${Te(l)}`:l>0?`${r} correct pays ${Te(l)} but does not win`:`${r} correct — no payout`,x=o?`${w}. Tap to select`:w;/* @__PURE__ */
80
+ return z(qn,{index:r,size:p,wide:h,isWinning:i,isJackpot:y,isSelected:b,bgColor:m,borderFallback:s.border,warning:s.warning,primary:s.primary,textMuted:s.textMuted,payout:l,onPress:o?()=>o(r):void 0,accessibilityLabel:x},r)})}),
81
+ /* @__PURE__ */v(x,{style:[Qn.expectedText,{color:s.textMuted}],children:["Your expected: ",/* @__PURE__ */v(x,{style:Qn.expectedBold,children:[n," correct"]})]})]})}var Qn=w.create({container:{gap:16},title:{fontSize:14,fontWeight:"600",textAlign:"center"},jackpotBanner:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,paddingVertical:10,paddingHorizontal:16,borderRadius:8,borderWidth:1,overflow:"hidden"},jackpotText:{fontSize:14,fontWeight:"600",textAlign:"center",flexShrink:1},circleGrid:{flexDirection:"row",flexWrap:"wrap",justifyContent:"center"},circle:{borderWidth:2,alignItems:"center",justifyContent:"center"},circleWinning:{elevation:4,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:.25,shadowRadius:4},circleHovered:{elevation:6,shadowColor:"#000",shadowOffset:{width:0,height:4},shadowOpacity:.3,shadowRadius:8},expectedText:{fontSize:12,textAlign:"center"},expectedBold:{fontWeight:"600"}}),Jn=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(),i="GET"===r,l=i,a=!i&&!n?.idempotent,c=`${r} ${o}`;if(l){const e=this.cache.get(c);if(e&&Date.now()-e.at<5e3)return e.value;const t=this.inflight.get(c);if(t)return t}const s=l?this.cache.get(c):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??{},...s?.etag?{"If-None-Match":s.etag}:{},...t?.headers}})}catch(r){throw r}if(304===e.status&&s)return l&&this.cache.set(c,{at:Date.now(),value:s.value,etag:s.etag}),s.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(l){const t=e.headers.get("ETag")??void 0;this.cache.set(c,{at:Date.now(),value:n,etag:t})}return n})();return l?(this.inflight.set(c,d),d.catch(()=>{}).finally(()=>{this.inflight.delete(c)})):a&&d.finally(()=>this.invalidateCache()).catch(()=>{}),d}async getGames(e){const t=new URLSearchParams;e?.category&&t.append("category",e.category),e?.jurisdiction&&t.append("jurisdiction",e.jurisdiction),e?.sport&&t.append("sport",e.sport);const n=t.toString(),o=n?`/games?${n}`:"/games",r=await this.request(o);return{games:r.payload||[],howToPlayMarkdown:r.how_to_play_markdown??null}}async getGame(e){return(await this.request(`/games/${e}`)).payload}async getPropositions(e){const t=new URLSearchParams;e?.event_id&&t.append("event_id",e.event_id),e?.sport&&t.append("sport",e.sport),e?.category&&t.append("category",e.category);const n=t.toString(),o=n?`/propositions?${n}`:"/propositions";return(await this.request(o)).payload||[]}async getSports(){return(await this.request("/propositions/sports")).sports||[]}async getPropositionsByIds(e){if(0===e.length)return[];const t=new URLSearchParams({ids:e.join(","),include_expired:"true"});return(await this.request(`/propositions?${t.toString()}`)).payload||[]}async getProposition(e){const t=(await this.request(`/propositions/${e}?include_expired=true`)).payload;return Array.isArray(t)?t.find(t=>t.id===e)??t[0]:t}async getGameEntries(e){const t=new URLSearchParams;null!=e?.user_id&&t.append("user_id",String(e.user_id)),null!=e?.pending&&t.append("pending",String(e.pending));const n=t.toString(),o=n?`/game-entries?${n}`:"/game-entries";return((await this.request(o)).payload||[]).map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),null!=t.stake&&null==t.bet_amount&&(t.bet_amount=Number(t.stake)),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t})}async createGameEntry(e){const t=e.proposition_ids.map(t=>({proposition_id:t,user_prediction:e.selections?.[t]??"yes"})),n={game_id:e.game_id,user_id:e.user_id,propositions:t};null!=e.stake&&(n.stake=e.stake);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[i,l]of Object.entries(o.payload||{}))r[Number(i)]=l;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 $n(e,t,o){const[i,l]=c([]),[s,d]=c(null),[h,f]=c(!o?.skip),[u,g]=c(null),p=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",y=a(t);y.current=t;const m=o?.skip??!1,b=n(async()=>{if(!m)try{f(!0),g(null);const t=await e.getGames(y.current);l(t.games),d(t.howToPlayMarkdown)}catch(t){g(t instanceof Error?t.message:"Failed to fetch games")}finally{f(!1)}},[e,p,m]);return r(()=>{b()},[b]),{games:i,howToPlayMarkdown:s,loading:h,error:u,refetch:n(async()=>{e.invalidate(),await b()},[e,b])}}function _n(e,t,o){const[i,l]=c([]),[s,d]=c(!o?.skip),[h,f]=c(null),u=o?.skip??!1,g=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!u)try{d(!0),f(null),l(await e.getPropositions(p.current))}catch(t){f(t instanceof Error?t.message:"Failed to fetch propositions")}finally{d(!1)}},[e,g,u]);return r(()=>{y()},[y]),{propositions:i,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function eo(e,t){const[o,i]=c([]),[l,a]=c(!t?.skip),[s,d]=c(null),h=t?.skip??!1,f=n(async()=>{if(!h)try{a(!0),d(null),i(await e.getSports())}catch(t){d(t instanceof Error?t.message:"Failed to fetch sports")}finally{a(!1)}},[e,h]);return r(()=>{f()},[f]),{sports:o,loading:l,error:s,refetch:n(async()=>{e.invalidate(),await f()},[e,f])}}function to(e,t,o){const[i,l]=c([]),[s,d]=c(!o?.skip),[h,f]=c(null),u=o?.skip??!1,g=t?`${t.user_id??""}_${t.pending??""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!u)try{d(!0),f(null),l(await e.getGameEntries(p.current))}catch(t){f(t instanceof Error?t.message:"Failed to fetch entries")}finally{d(!1)}},[e,g,u]);return r(()=>{y()},[y]),{entries:i,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function no(e,t,o){const[i,l]=c({}),[s,d]=c(!1),h=o?.skip??!1,f=o?.betAmount,u=a(/* @__PURE__ */new Set);return r(()=>{if(h||0===t.length)return;const n=t.filter(e=>!(e.id in i)&&!u.current.has(e.id));if(0===n.length)return;for(const e of n)u.current.add(e.id);let o=!1;return d(!0),(async()=>{try{const t=await e.getGamesMaxPayouts(n.map(e=>e.id),f);o||l(e=>({...e,...t}))}catch{}finally{o||d(!1)}})(),()=>{o=!0}},[e,t.map(e=>e.id).join(","),h,f]),{maxPayouts:i,loading:s,refetchGame:n(async(t,n)=>{if(!h)try{const o=await e.getGamesMaxPayouts([t],n??f);o[t]&&l(e=>({...e,[t]:o[t]}))}catch{}},[e,h,f])}}function oo(e){const[t,n]=c(!1),[o,r]=c(null),[i,l]=c(null);return{createEntry:async t=>{try{n(!0),r(null);const o=await e.createGameEntry(t);return l(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:i}}function ro(e){const[t,n]=c(e?"sport":"game"),[o,r]=c(null),[i,l]=c({}),[a,s]=c(null);return{step:t,selectedGame:o,selections:i,placedEntry:a,setGameOnly:e=>{r(e)},clearSelectedGame:()=>{r(null),l({})},goToSportSelection:e=>{e&&r(e),n("sport")},goToConfirmation:()=>{n("confirm")},goToSuccess:e=>{s(e),n("success")},goBack:()=>{"confirm"===t?n("sport"):"sport"===t&&(n("game"),r(null),l({}))},reset:()=>{n("game"),r(null),l({}),s(null)},toggleSelection:(e,t)=>{l(n=>{const o={...n};return o[e]===t?delete o[e]:o[e]=t,o})}}}function io(e){const[t,o]=c(!1),[r,i]=c(null),[l,a]=c(null);return{evaluate:n(async(t,n)=>{try{o(!0),i(null);const r=await e.evaluateRule(t,n);return a(r),r}catch(r){const e=r instanceof Error?r.message:"Failed to evaluate rule";throw i(e),new Error(e)}finally{o(!1)}},[e]),loading:t,error:r,result:l}}function lo(e){const[t,o]=c(!1),[r,i]=c(null),[l,a]=c(null);return{calculate:n(async(t,n)=>{try{o(!0),i(null);const r=await e.calculatePayout(t,n);return a(r),r}catch(r){const e=r instanceof Error?r.message:"Failed to calculate payout";throw i(e),new Error(e)}finally{o(!1)}},[e]),loading:t,error:r,result:l}}function ao(e){const[t,o]=c(!1),[r,i]=c(null),[l,a]=c(null);return{preview:n(async(t,n)=>{try{o(!0),i(null);const r=await e.getEntryPreview(t,n);return a(r),r}catch(r){const e=r instanceof Error?r.message:"Failed to preview entry";throw i(e),new Error(e)}finally{o(!1)}},[e]),loading:t,error:r,result:l}}function co({iconUrl:e,gameName:t,chipColor:n,textColor:o,iconColor:r,accentColor:i,brandColor:l,height:a=56,showTrademark:c=!0,compact:s=!1,onPress:d}){const h=n??l??"#0F4C5C",f=o??h,u=.85*a,g=1.8*u,p=u/2,y='Manrope, Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif',b=a,w=g-.18*u*2,B=u-.05*u*2,k=/* @__PURE__ */v(F,{children:[
82
+ /* @__PURE__ */v(x,{accessibilityLabel:"YESNO",style:{fontFamily:y,fontSize:a,lineHeight:1.15*a,letterSpacing:-1,color:f,includeFontPadding:!1},children:[/* @__PURE__ */z(x,{style:{fontWeight:"900"},children:"YES"}),/* @__PURE__ */z(x,{style:{fontWeight:"300"},children:"NO"})]}),
83
+ /* @__PURE__ */z(C,{accessible:!0,accessibilityRole:"image",accessibilityLabel:t,style:{width:g,height:u,borderRadius:p,backgroundColor:h,alignItems:"center",justifyContent:"center",flexShrink:0,transform:[{translateY:.06*-a}]},children:/* @__PURE__ */z(Nt,{iconUrl:e,width:w,height:B,iconColor:r,accentColor:i})}),
84
+ /* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"flex-start",flexShrink:1,minWidth:0},children:[/* @__PURE__ */z(x,{style:{fontFamily:y,fontSize:b,lineHeight:1.15*b,fontWeight:"500",color:f,includeFontPadding:!1,flexShrink:1},children:t}),c&&/* @__PURE__ */z(x,{style:{fontFamily:y,fontSize:.3*b,lineHeight:.3*b,fontWeight:"600",color:f,marginLeft:.06*b,includeFontPadding:!1},children:"TM"})]})]});return d?/* @__PURE__ */z(m,{onPress:d,accessibilityRole:"button",accessibilityLabel:`Play ${t}`,testID:"brand-logo-play",style:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:.2*a,maxWidth:"100%",minWidth:0},children:k}):/* @__PURE__ */z(C,{style:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:.2*a,maxWidth:"100%",minWidth:0},children:k})}function so({color:e,style:t}){/* @__PURE__ */
85
+ return z(C,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function ho({colors:e}){const t=e.selectionCard??e.backgroundAlt;/* @__PURE__ */
86
+ return v(C,{style:{width:"100%"},children:[/* @__PURE__ */z(C,{style:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:e.border,marginBottom:16},children:[0,1].map(t=>/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10},children:[/* @__PURE__ */z(so,{color:e.textMuted,style:{height:14,width:68}}),/* @__PURE__ */z(so,{color:e.textMuted,style:{height:20,width:20,borderRadius:999}})]},t))}),/* @__PURE__ */z(C,{style:{gap:12,width:"100%"},children:[0,1].map(n=>/* @__PURE__ */v(C,{style:{borderRadius:8,borderWidth:1,borderColor:e.border,backgroundColor:t,overflow:"hidden",width:"100%"},children:[/* @__PURE__ */v(C,{style:{width:"100%",paddingHorizontal:16,paddingVertical:12,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */v(C,{style:{flex:1,gap:6},children:[/* @__PURE__ */z(so,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),/* @__PURE__ */z(so,{color:e.textMuted,style:{height:12,width:128,maxWidth:"65%"}})]}),/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",gap:12,flexShrink:0},children:[/* @__PURE__ */z(so,{color:e.textMuted,style:{height:14,width:40}}),/* @__PURE__ */z(so,{color:e.textMuted,style:{height:24,width:60,borderRadius:999}})]})]}),/* @__PURE__ */z(C,{style:{borderTopWidth:1,borderTopColor:e.border,width:"100%"},children:[0,1,2].map(t=>/* @__PURE__ */v(C,{style:{paddingHorizontal:16,paddingVertical:10,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:0===t?0:1,borderTopColor:e.border},children:[/* @__PURE__ */v(C,{style:{flex:1,gap:4},children:[/* @__PURE__ */z(so,{color:e.textMuted,style:{height:14,width:"88%"}}),/* @__PURE__ */z(so,{color:e.textMuted,style:{height:12,width:"70%"}})]}),/* @__PURE__ */z(so,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]},n))})]})}function fo({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:i,demoEntries:s,demoGames:d,demoPropositions:h,onSelectEntry:f,theme:u,colorScheme:g,renderTeamLogo:p,filterSport:y}){const m=Ht(u,g),b=!!(s&&d&&h),w=m.colors,B=Pt(m),[S,F]=c("pending"),[W,T]=c([]),L=l(()=>new Jn({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:D,loading:M,error:R,refetch:H}=to(L,{user_id:i},{skip:b}),{games:P,loading:I,error:E}=$n(L,void 0,{skip:b}),{propositions:j,loading:N,error:Y}=_n(L,void 0,{skip:b}),G=b?s:D,V=b?d:P,U=b?h:j,Z=!b&&(M||I||N),K=b?null:R||E||Y,q=l(()=>G.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}),[G]),X=l(()=>{const e=/* @__PURE__ */new Map;for(const t of V)e.set(t.id,t);return e},[V]),Q=l(()=>{const e=/* @__PURE__ */new Map;for(const t of U)e.set(t.id,t);for(const t of q)if(t.propositions)for(const n of t.propositions)e.has(n.id)||e.set(n.id,n);for(const t of W)e.set(t.id,t);return e},[U,q,W]),J=a(/* @__PURE__ */new Set);r(()=>{if(Z||b)return;const e=[];for(const n of q)for(const t of n.proposition_ids??[])Q.has(t)||J.current.has(t)||(e.push(t),J.current.add(t));if(0===e.length)return;let t=!1;return(async()=>{try{const n=await L.getPropositionsByIds(e);!t&&n.length>0&&T(e=>[...e,...n])}catch{}})(),()=>{t=!0}},[q,Q,Z,b,L]);const $=l(()=>y?q.filter(e=>{const t=e.proposition_ids??[];return 0===t.length||t.some(t=>(Q.get(t)??e.propositions?.find(e=>e.id===t))?.sport===y)}):q,[q,y,Q]),_=l(()=>$.filter(e=>We(e.pending)),[$]),ee=l(()=>$.filter(e=>!We(e.pending)),[$]),te="pending"===S?_:ee;return Z?/* @__PURE__ */z(C,{style:go.container,accessibilityLabel:"Loading entries",children:/* @__PURE__ */z(ho,{colors:yt(m)})}):K?/* @__PURE__ */z(C,{style:go.container,children:/* @__PURE__ */v(C,{style:[go.errorBanner,{backgroundColor:w.errorBg,borderColor:w.error}],children:[/* @__PURE__ */z(x,{style:{color:w.errorText},children:K}),/* @__PURE__ */z(k,{onPress:H,style:go.retryButton,children:/* @__PURE__ */z(x,{style:{color:w.error,textDecorationLine:"underline",fontSize:14,fontWeight:"500"},children:"Try again"})})]})}):/* @__PURE__ */v(C,{style:go.container,children:[
87
+ /* @__PURE__ */z(C,{style:[go.tabBar,{borderBottomColor:w.border}],children:["pending","completed"].map(e=>{const t=S===e,n="pending"===e?_.length:ee.length;/* @__PURE__ */
88
+ return v(k,{onPress:()=>F(e),accessibilityRole:"tab",accessibilityState:{selected:t},style:[go.tab,{borderBottomColor:t?w.primary:"transparent"}],children:[/* @__PURE__ */z(x,{style:[go.tabLabel,{color:t?w.primary:w.textMuted,fontFamily:B}],children:"pending"===e?"Pending":"Completed"}),/* @__PURE__ */z(C,{style:[go.tabBadge,{backgroundColor:t?`${w.primary}15`:w.backgroundAlt}],children:/* @__PURE__ */z(x,{style:[go.tabBadgeText,{color:t?w.primary:w.textMuted}],children:n})})]},e)})}),0===te.length&&/* @__PURE__ */v(C,{style:go.emptyState,children:[
89
+ /* @__PURE__ */z(C,{style:{marginBottom:16},children:/* @__PURE__ */z(A,{width:48,height:48,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */z(O,{d:"pending"===S?"M12 6v6l4 2m6-2a10 10 0 1 1-20 0 10 10 0 0 1 20 0z":"M9 12l2 2 4-4m6 2a10 10 0 1 1-20 0 10 10 0 0 1 20 0z",stroke:w.textMuted,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})}),
90
+ /* @__PURE__ */z(x,{style:[go.emptyTitle,{color:w.text}],children:"pending"===S?"No pending entries":"No completed entries"}),
91
+ /* @__PURE__ */z(x,{style:[go.emptySubtitle,{color:w.textMuted}],children:"pending"===S?"Entries awaiting results will appear here":"Settled entries will appear here"})]}),
92
+ /* @__PURE__ */z(C,{style:go.entryList,children:te.map(e=>/* @__PURE__ */z(uo,{entry:e,game:X.get(e.game_id),propositionsById:Q,onSelect:f,theme:m,renderTeamLogo:p},e.id))})]})}function uo({entry:e,game:t,propositionsById:n,onSelect:o,theme:r,renderTeamLogo:i}){const a=r.colors,s=gt(r),d=Pt(r),h="dark"===r.colorScheme,f=e.proposition_ids??[],u=l(()=>f.map(e=>n.get(e)).filter(Boolean),[f,n]),g=f.length,[p,y]=c(!1),m=g>0,b=l(()=>{const t=/* @__PURE__ */new Map;for(const n of e.propositions??[])t.set(n.id,n);return t},[e.propositions]),w=t=>{const o=e.selections?.[t];return null!=o?o:b.get(t)?.user_prediction??n.get(t)?.user_prediction},B=u.filter(e=>null!=e.result&&!e.is_voided).length,S=u.filter(e=>{if(null==e.result||e.is_voided)return!1;const t=w(e.id);return null!=t&&t===e.result}).length,W=null!=e.selections&&Object.keys(e.selections).length>0||(e.propositions??[]).some(e=>null!=e.user_prediction),T=We(e.pending),L=!T&&ve(e.winning)>0,D=e.payout_status,M="fulfilled"===D&&L,R=T?"Pending":M?"Won — pay due":"paid_out"===D&&L?"Paid":L?"Won":"Lost",H=T||M?a.warningBg:L?a.successBg:a.errorBg,P=T||M?a.warningText:L?a.successText:a.errorText,I=W&&B>0?`${S}/${g} correct`:g>0?`${g} pick${1!==g?"s":""}`:null,E=W&&B>0?S>0?a.success:a.error:a.textMuted,j=/* @__PURE__ */v(C,{style:go.cardHeader,children:[/* @__PURE__ */v(C,{style:go.cardHeaderLeft,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__ */z(co,{iconUrl:Ce(t),gameName:n,height:18,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:r.brand?.accent}):/* @__PURE__ */z(x,{style:[go.cardGameName,{color:a.text,fontFamily:d}],numberOfLines:1,children:n})})(),/* @__PURE__ */v(C,{style:go.metaRow,children:[(e.created_at||e.entry_date)&&/* @__PURE__ */z(x,{style:[go.metaText,{color:a.textMuted}],children:Le(e.created_at||e.entry_date)}),I&&/* @__PURE__ */v(F,{children:[/* @__PURE__ */z(x,{style:[go.metaDot,{color:a.textMuted}],children:"·"}),/* @__PURE__ */z(x,{style:[go.metaText,{fontWeight:"500",color:E}],children:I})]})]})]}),/* @__PURE__ */v(C,{style:go.cardHeaderRight,children:[
93
+ /* @__PURE__ */v(C,{style:go.amounts,children:[ve(e.bet_amount)>0&&/* @__PURE__ */z(x,{style:[go.betLabel,{color:a.textMuted}],children:Te(ve(e.bet_amount))}),!T&&ve(e.winning)>0&&/* @__PURE__ */v(C,{style:{alignItems:"flex-end"},children:[/* @__PURE__ */z(x,{style:[go.winAmount,{color:a.success}],children:Te(ve(e.winning))}),(e.payout_jackpot??0)>0&&/* @__PURE__ */v(x,{style:{fontSize:12,fontWeight:"400",color:a.textMuted},children:["incl. ",Te(ve(e.payout_jackpot))," jackpot"]})]})]}),
94
+ /* @__PURE__ */z(C,{style:[go.statusPill,{backgroundColor:H}],children:/* @__PURE__ */z(x,{style:[go.statusText,{color:P}],children:R})}),m&&/* @__PURE__ */z(C,{style:{transform:[{rotate:p?"180deg":"0deg"}]},accessibilityElementsHidden:!0,children:/* @__PURE__ */z(A,{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */z(O,{d:"m6 9 6 6 6-6",stroke:a.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})]});/* @__PURE__ */
95
+ return v(C,{style:[go.card,{borderColor:a.border,backgroundColor:s,shadowColor:"#000",shadowOpacity:h?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}],children:[/* @__PURE__ */z(k,{testID:"entry-card",onPress:()=>{m&&y(e=>!e),o?.({entry:e,game:t,propositions:u})},activeOpacity:.7,disabled:!m&&!o,accessibilityLabel:`Entry #${e.id}`,accessibilityState:m?{expanded:p}:void 0,children:j}),p&&g>0&&f.map(t=>{const o=(t=>n.get(t)??e.propositions?.find(e=>e.id===t))(t),l=w(t);if(!o)/* @__PURE__ */return v(C,{style:[go.propRow,{borderTopColor:a.border,borderTopWidth:1}],children:[/* @__PURE__ */z(C,{style:go.propInfo,children:/* @__PURE__ */v(x,{style:{fontSize:14,color:a.textMuted},children:["Loading proposition #",t,"…"]})}),null!=l&&/* @__PURE__ */z(C,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:8,backgroundColor:"yes"===l?st(r):dt(r)},children:/* @__PURE__ */z(x,{style:{fontSize:10,fontWeight:"700",color:"#ffffff",letterSpacing:.4,textTransform:"uppercase"},children:Ae(l)})})]},t);const c=o.result,s=null!=c,d=!!o.is_voided,h=s&&!d&&null!=l&&l===c;let f,u,g;return d?(f="Void",u=`${a.textMuted}20`,g=a.textMuted):s?h?(f="Won",u=a.successBg,g=a.successText):(f="Lost",u=a.errorBg,g=a.errorText):(f="Pending",u=a.warningBg,g=a.warningText),/* @__PURE__ */v(C,{style:[go.propRow,{borderTopColor:a.border,borderTopWidth:1}],children:[
96
+ /* @__PURE__ */v(C,{style:go.propInfo,children:[(o.home_team||o.away_team)&&/* @__PURE__ */v(C,{style:go.teamsRow,children:[i&&o.home_team?i(o.home_team):null,o.home_team?/* @__PURE__ */z(x,{style:[go.teamName,{color:a.text}],children:o.home_team}):null,o.home_team&&o.away_team?/* @__PURE__ */z(x,{style:[go.vsText,{color:a.textMuted}],children:"vs"}):null,i&&o.away_team?i(o.away_team):null,o.away_team?/* @__PURE__ */z(x,{style:[go.teamName,{color:a.text}],children:o.away_team}):null]}),(o.proposition||o.description)&&/* @__PURE__ */z(x,{style:{fontSize:12,color:a.textMuted,marginTop:2},children:o.proposition||o.description}),o.commence_time&&/* @__PURE__ */z(x,{style:{fontSize:12,color:a.textMuted,marginTop:2},children:Le(o.commence_time)})]}),
97
+ /* @__PURE__ */v(C,{style:go.outcomeCol,children:[/* @__PURE__ */z(x,{style:[go.outcomeLabel,{color:a.textMuted}],children:"Pick"}),null!=l?/* @__PURE__ */z(C,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:8,backgroundColor:"yes"===l?st(r):dt(r)},children:/* @__PURE__ */z(x,{style:{fontSize:10,fontWeight:"700",color:"#ffffff",letterSpacing:.4,textTransform:"uppercase"},children:Ae(l)})}):/* @__PURE__ */z(x,{style:{fontSize:12,color:a.textMuted},children:"—"})]}),
98
+ /* @__PURE__ */v(C,{style:go.outcomeCol,children:[/* @__PURE__ */z(x,{style:[go.outcomeLabel,{color:a.textMuted}],children:"Result"}),/* @__PURE__ */z(C,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:4,backgroundColor:u},children:/* @__PURE__ */z(x,{style:{fontSize:12,fontWeight:"700",color:g,textTransform:"uppercase"},children:f})})]})]},t)})]})}var go=w.create({container:{flex:1},errorBanner:{padding:16,borderRadius:8,borderWidth:1},retryButton:{marginTop:8},tabBar:{flexDirection:"row",borderBottomWidth:1,marginBottom:16},tab:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10,borderBottomWidth:2,marginBottom:-1},tabLabel:{fontSize:14,fontWeight:"500"},tabBadge:{minWidth:20,height:20,paddingHorizontal:6,borderRadius:999,alignItems:"center",justifyContent:"center"},tabBadgeText:{fontSize:12,fontWeight:"600"},emptyState:{alignItems:"center",justifyContent:"center",paddingVertical:48,paddingHorizontal:16},emptyTitle:{fontSize:16,fontWeight:"500"},emptySubtitle:{fontSize:14,marginTop:4},entryList:{gap:12},card:{borderRadius:12,borderWidth:1,overflow:"hidden"},cardHeader:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingHorizontal:16,paddingVertical:12,gap:12},cardHeaderLeft:{flex:1,minWidth:0},cardGameName:{fontSize:16,fontWeight:"600"},metaRow:{flexDirection:"row",alignItems:"center",gap:8,marginTop:2},metaText:{fontSize:12},metaDot:{fontSize:12},cardHeaderRight:{flexDirection:"row",alignItems:"center",gap:12,flexShrink:0},amounts:{alignItems:"flex-end"},betLabel:{fontSize:12},winAmount:{fontSize:14,fontWeight:"700"},statusPill:{paddingHorizontal:10,paddingVertical:2,borderRadius:999},statusText:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:.3},propRow:{flexDirection:"row",alignItems:"center",paddingHorizontal:16,paddingVertical:10,gap:12},propInfo:{flex:1},teamsRow:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:6},teamName:{fontSize:14,fontWeight:"500"},vsText:{fontSize:12,fontWeight:"400"},outcomeCol:{alignItems:"center",gap:2,flexShrink:0},outcomeLabel:{fontSize:9,fontWeight:"600",letterSpacing:.225,textTransform:"uppercase"}}),po=t(null);function yo(){const e=o(po);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function mo({apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s,userId:d,getUserBalance:h,children:f,theme:u,colorScheme:g,demoGames:p,demoPropositions:y,demoEntries:m,demoMaxPayouts:b,gameCategory:w,jurisdiction:x,initialGameId:B,filterSport:k,initialSport:C,initialEventId:S,initialEventLabel:F,sportBaseKey:v,showHomeAway:W=!1,disableQuickPick:A=!1,renderTeamLogo:T,onEntryPlaced:L,onBeforeSubmit:D,onCancel:M,onShare:R,onRecharge:H,onClearEventFilter:O,screenSize:P="desktop",howToPlayMarkdown:I,sportDisplayNames:E,categoryDisplayNames:j}){const N=Ht(u,g),Y=Ot(N),G=Pt(N),V=!(!p||!y),U=l(()=>new Jn({apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s}),[t,o,i,s]),[Z,K]=c(0),q=a(0),[X,Q]=c(0),[J,$]=c([]),[_,ee]=c({}),[te,ne]=c({}),[oe,re]=c(void 0),[ie,le]=c(void 0),ae=e.useCallback(async()=>{if(h)try{const e=await h();"number"==typeof e&&Number.isFinite(e)&&le(e)}catch(e){}},[h]);r(()=>{h?ae():le(void 0)},[h,ae]);const ce=a(null),[se,de]=c(null),[he,fe]=c(C??null),[ue,ge]=c(S??null);r(()=>{C&&fe(C)},[C]),r(()=>{ge(S??null)},[S]);const[pe,ye]=c(S),me=a(!1);r(()=>{if(!S)return ye(void 0),void(me.current=!1);me.current||ye(S)},[S]);const be=w??se??void 0,we=k??C??void 0,xe=Ue(he??we,v),Be=Ue(we,v)??we,ke=he??void 0,{games:Ce,howToPlayMarkdown:Se,loading:Fe,error:ze}=$n(U,{category:be,jurisdiction:x,sport:xe},{skip:V}),{propositions:ve,loading:We,error:Ae}=_n(U,{category:be,sport:Be,event_id:pe},{skip:V}),{sports:Te,loading:Le}=eo(U,{skip:V}),{createEntry:De,loading:Re,error:Oe}=oo(U),{preview:Ie}=ao(U),Ne=l(()=>_e((V?p:Ce)??[],{category:be,sport:xe??ke,sportBaseKey:v}),[V,p,Ce,be,xe,ke,v]),Ye=I??Se??null,{maxPayouts:Ke,refetchGame:qe}=no(U,Ne??[],{skip:V,betAmount:20}),Je=V?b??{}:Ke,tt=V?y:ve,nt=k?(tt??[]).filter(e=>e.sport===k):tt,ot=l(()=>Pe(nt??[]),[nt]),rt=l(()=>be||(1===ot.length?ot[0]:void 0),[be,ot]),it=l(()=>{const e=nt??[];return rt?Xe(e,{category:rt,sportBaseKey:v}):e},[nt,rt,v]),lt=l(()=>ke?Xe(it,{sport:ke,sportBaseKey:v}):it,[it,ke,v]),at=l(()=>({category:rt,sport:ke,sportBaseKey:v}),[rt,ke,v]),ct=l(()=>{const e=(Ne??[]).filter(e=>e.active);if(!rt&&ot.length>1)return[];const t=rt?_e(e,at):e;return rt||ke?function(e,t,n){return n?.category||n?.sport?e.filter(e=>$e(e,t,n)):e}(t,lt,at):t},[Ne,lt,at,rt,ke,ot.length]),{step:st,selectedGame:dt,selections:ht,placedEntry:ft,setGameOnly:ut,clearSelectedGame:gt,goToSportSelection:pt,goToConfirmation:yt,goToSuccess:mt,goBack:bt,reset:wt,toggleSelection:xt}=ro(B),Bt=e.useCallback(()=>{me.current=!0,ye(void 0),wt(),O?.()},[wt,O]),kt=!!pe,Ct=kt?F:void 0,St=!V&&(dt?Fe||We||Le:Fe),Ft=V?null:dt?ze||Ae:ze,zt=l(()=>dt?et(lt,dt,v):lt,[dt,lt,v]),vt=l(()=>dt?zt:it,[dt,zt,it]),Wt=l(()=>Xe(dt?zt:it,{category:rt}),[dt,zt,it,rt]),At=l(()=>{const e=new Set(Wt.map(e=>e.sport).filter(Boolean));return Te.filter(t=>e.has(t.key))},[Te,Wt]),Tt=l(()=>Xe(zt,{category:rt,sport:he}),[zt,rt,he]),Lt=l(()=>{if(!nn(dt))return[];const{min:e}=je(dt,oe),t=oe??e;return rn(Tt).filter(e=>e.propositionCount>=t)},[dt,oe,Tt]),Dt=l(()=>nn(dt)?dn(Tt,ue):Tt,[dt,Tt,ue]),Mt=Object.keys(ht).map(Number),Rt=Mt.length,It=l(()=>Tt.filter(e=>Mt.includes(e.id)),[Tt,Mt]);r(()=>{w||se||1===ot.length&&de(ot[0])},[w,se,ot]),r(()=>{if(!dt)return;const e=zt,t=new Set(e.map(He));let n=se;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==se&&de(n));const o=n?e.filter(e=>He(e)===n):e,r=new Set(function(e){const t=/* @__PURE__ */new Set;for(const n of e){const o=Me(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),i=dt.allowed_sports;fe(e=>e&&r.has(e)?e:1===i?.length&&r.has(i[0])?i[0]:i&&i.length>1?e&&i.includes(e)&&r.has(e)?e:null:1===r.size?Array.from(r)[0]:null)},[dt?.id,zt,se]),r(()=>{dt&&rt&&(Qe(dt,rt)||gt())},[dt,rt,gt]),r(()=>{dt&&($e(dt,lt,{category:rt,sport:he,sportBaseKey:v})||gt())},[dt,rt,he,v,lt,gt]),r(()=>{if(dt){if(Q(0),ce.current){const{count:e}=ce.current;return ce.current=null,re(e),void K(e)}if(dt.allowed_propositions&&dt.allowed_propositions.length>0){const e=oe;null!=e&&dt.allowed_propositions.includes(e)?K(e):(re(void 0),K(0))}else re(void 0),K(dt.num_propositions||dt.max_propositions||0)}},[dt]);const Et=(e,t,n)=>{const o=(Je[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};r(()=>{if("sport"!==st&&"confirm"!==st||!dt||V)return;const e=nn(dt)&&ue?Dt.length:Number.MAX_SAFE_INTEGER;let t;if(dt.allowed_propositions&&dt.allowed_propositions.length>0){const n=dt.allowed_propositions?[...dt.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void ne({});const o=oe??n[0],r=n.filter(e=>e>o);if(0===r.length)return void ne({});t=[o,...r]}else{const{min:n,max:o}=je(dt),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]=Et(dt.id,o,20);ne(n)},[st,dt,oe,ue,Dt.length,V,Je]),r(()=>{if("confirm"!==st||!dt)return;const e=Mt.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=Et(dt.id,r,X);ee(n),e!==q.current?(q.current=e,K(e)):(Z>e||Z<=0&&e>0)&&K(e);const o=X>0?X:Math.max(dt.min_bet??20,.01);return(async()=>{try{const n=await Ie(dt.id,{actual:Z,predicted:Z,total:e,bet_amount:o});if(t)return;$(n.winning_counts)}catch{t||$([])}})(),()=>{t=!0}},[st,dt,Mt.length,Z,X,Ie,Je]);const jt=!nn(dt)||hn(It,ue),Nt=!(!dt||!jt)&&(dt.allowed_propositions&&dt.allowed_propositions.length>0?null!=oe&&Rt===oe:Ee(Rt,dt.min_propositions,dt.max_propositions)),Yt=dt?.min_bet??0,Gt=Math.max(Yt,.01),Vt=null==ie||X<=ie,Ut=!Re&&X>=Gt&&Nt&&Vt,Zt=e=>{re(e),K(e);for(const t of Object.keys(ht))xt(Number(t),ht[Number(t)])},Kt=e=>{re(e),K(e)},qt=e=>{ge(nn(e)?S??null:null),ut(e)},Xt=e=>{if(e!==ue){for(const e of Object.keys(ht)){const t=Number(e);xt(t,ht[t])}ge(e)}},Qt=(e,t)=>{ce.current={count:t},ut(e),qe(e.id);const n=e.allowed_sports??[];let o=null;he&&n.some(e=>Ze(he,e,v))?o=he:1===n.length&&(o=n[0]),fe(o);for(const a of Object.keys(ht)){const e=Number(a);xt(e,ht[e])}let r=Xe(et(nt??[],e,v),{category:rt,sport:o,sportBaseKey:v});const i=Math.max(0,Math.min(t,r.length)),l=[...r].sort(()=>Math.random()-.5).slice(0,i);for(const a of l)xt(a.id,Math.random()<.5?"yes":"no");yt()},Jt=async()=>{if(dt&&Nt){if(V){const e={id:Math.floor(1e4*Math.random()),game_id:dt.id,user_id:d,proposition_ids:Mt,selections:ht,pending:!0,expected_correct:Z,bet_amount:X};return L?.(e),mt(e),void ae()}try{D&&await D(X);const e=await De({game_id:dt.id,user_id:d,proposition_ids:Mt,selections:ht,stake:X});L?.(e),mt(e),ae()}catch(e){}}},$t=n(e=>E?.[e]??At.find(t=>t.key===e)?.label??Ge(e,void 0,v),[E,At,v]),_t=n(e=>Ve(e,j),[j]),en=l(()=>({theme:N,bodyFont:Y,headingFont:G,games:ct,propositions:Dt,propositionsForCategoryPicker:vt,propositionsForSportPicker:Wt,sportSummaries:At,loading:St,error:Ft,step:st,selectedGame:dt,selections:ht,placedEntry:ft,selectedPropositionIds:Mt,selectedPropositions:It,selectionValid:Nt,answeredCount:Rt,betAmount:X,setBetAmount:Q,expectedCorrect:Z,setExpectedCorrect:K,selectedPropositionCount:oe,handlePropositionCountChange:Zt,upgradePropositionCount:Kt,winningCounts:J,payouts:_,overloadPayouts:te,submitting:Re,submitError:Oe,canSubmit:Ut,gamePrice:Yt,userBalance:ie,hasSufficientBalance:Vt,refreshUserBalance:ae,handleSubmit:Jt,selectGame:qt,goToSportSelection:pt,goToConfirmation:yt,goBack:bt,reset:wt,clearSelectedGame:gt,toggleSelection:xt,quickPickGame:Qt,selectedCategory:se,setSelectedCategory:de,selectedSport:he,setSelectedSport:fe,selectedEventId:ue,sameGameMultiEvents:Lt,selectSameGameMultiEvent:Xt,apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s,userId:d,showHomeAway:W,disableQuickPick:A,renderTeamLogo:T,filterSport:k,initialSport:C,initialEventId:S,sportBaseKey:v,gameCategory:w,eventFilterActive:kt,eventFilterLabel:Ct,clearEventFilter:Bt,screenSize:P,displaySportName:$t,displayCategoryName:_t,maxPayouts:Je??{},howToPlayMarkdown:Ye,onEntryPlaced:L,onCancel:M,onShare:R,onRecharge:H,demoEntries:m,demoGames:p,demoPropositions:y}),[N,Y,G,ct,Dt,vt,Wt,At,St,Ft,st,dt,ht,ft,Mt,It,Nt,Rt,X,Z,oe,J,_,te,Re,Oe,Ut,Yt,t,o,d,ie,i,s,W,A,T,k,C,S,v,w,P,kt,Ct,Bt,se,he,ue,Lt,Je,Ye,L,M,R,H,O,m,p,y,Zt,$t,_t]);/* @__PURE__ */
99
+ return z(po.Provider,{value:en,children:f})}function bo({onPress:e,onDoubleClick:t,label:n="QUICKPICK",size:r="md",yesColor:i,noColor:l,theme:c}){const s=o(po),d=c??s?.theme??wt,h=Xt(d),f=d.colors,u=i??st(d),g=l??dt(d),p="sm"===r,y=p?h.space.xs:h.space.sm,m=p?6:8,b=p?h.fontSize.sm:h.fontSize.md,B=p?8.5:10,S=a(0);/* @__PURE__ */
100
+ return v(k,{onPress:()=>{if(e(),t){const e=Date.now();e-S.current<300?(S.current=0,t()):S.current=e}},activeOpacity:.8,accessibilityRole:"button",accessibilityLabel:n,style:[wo.container,{borderColor:Vt(f.border,.6),borderRadius:h.radius.sm,minHeight:h.touchTarget.min}],children:[/* @__PURE__ */v(C,{style:wo.topRow,children:[
101
+ /* @__PURE__ */v(A,{style:w.absoluteFill,viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[
102
+ /* @__PURE__ */z(P,{points:"0,0 53,0 47,100 0,100",fill:u}),
103
+ /* @__PURE__ */z(P,{points:"53,0 100,0 100,100 47,100",fill:g}),
104
+ /* @__PURE__ */z(R,{x1:"53",y1:"0",x2:"47",y2:"100",stroke:"rgba(255,255,255,0.85)",strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})]}),
105
+ /* @__PURE__ */z(C,{style:[wo.half,{paddingHorizontal:y,paddingVertical:m}],children:/* @__PURE__ */z(x,{style:[wo.halfLabel,{fontSize:b}],numberOfLines:1,children:"Yes"})}),
106
+ /* @__PURE__ */z(C,{style:[wo.half,{paddingHorizontal:y,paddingVertical:m}],children:/* @__PURE__ */z(x,{style:[wo.halfLabel,{fontSize:b}],numberOfLines:1,children:"No"})})]}),/* @__PURE__ */z(C,{style:[wo.labelRow,{backgroundColor:f.buttonSecondary}],children:/* @__PURE__ */z(x,{style:[wo.labelText,{color:f.buttonSecondaryText,fontSize:B,letterSpacing:.14*B,fontFamily:d.fonts?.mono??Ot(d)}],numberOfLines:1,children:n})})]})}var wo=w.create({container:{borderWidth:1,overflow:"hidden",flexShrink:0,flexDirection:"column",width:"100%",minWidth:92},topRow:{flexDirection:"row",flex:1,flexShrink:0},half:{flex:1,flexShrink:0,alignItems:"center",justifyContent:"center"},halfLabel:{color:"#ffffff",fontWeight:"600",letterSpacing:.2,flexShrink:0,textAlign:"center"},labelRow:{paddingTop:3,paddingBottom:4,alignItems:"center",justifyContent:"center"},labelText:{fontWeight:"700",textAlign:"center",flexShrink:0}});function xo({style:t}){const{theme:n,bodyFont:o,eventFilterActive:r,eventFilterLabel:i,clearEventFilter:l,gameCategory:a}=yo(),{width:c}=S(),s=c>=640,[d,h]=e.useState(!1);if(!r)return null;const f=n.colors,u=i??("racing"===a?"This race":"This event");/* @__PURE__ */
107
+ return v(C,{style:[Bo.container,s&&Bo.containerWide,{borderColor:`${f.primary}33`,backgroundColor:f.surface},t],children:[/* @__PURE__ */v(C,{style:Bo.textBlock,children:[
108
+ /* @__PURE__ */z(x,{style:[Bo.kicker,{color:f.primary,fontFamily:o}],children:"Event filter"}),
109
+ /* @__PURE__ */z(x,{style:[Bo.label,{color:f.text,fontFamily:o}],numberOfLines:1,children:u}),
110
+ /* @__PURE__ */z(x,{style:[Bo.hint,{color:f.textMuted,fontFamily:o}],children:"Only propositions from this event are shown."})]}),/* @__PURE__ */z(k,{onPress:l,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),style:[Bo.button,s&&Bo.buttonWide,{borderColor:`${f.primary}44`,backgroundColor:f.background,opacity:d?.9:1}],children:/* @__PURE__ */z(x,{style:[Bo.buttonText,{color:f.text,fontFamily:o}],children:"Show all events"})})]})}var Bo=w.create({container:{marginBottom:16,flexDirection:"column",borderWidth:1,borderRadius:12,paddingHorizontal:12,paddingVertical:10,gap:8},containerWide:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},textBlock:{minWidth:0,flexShrink:1},kicker:{fontSize:10,fontWeight:"700",letterSpacing:1.2,textTransform:"uppercase"},label:{fontSize:14,fontWeight:"600"},hint:{fontSize:12},button:{flexShrink:0,alignSelf:"flex-start",borderWidth:1,borderRadius:8,paddingHorizontal:12,paddingVertical:6},buttonWide:{alignSelf:"center"},buttonText:{fontSize:12,fontWeight:"600"}});function ko({onBack:t,title:n="Go back"}){const{theme:o}=yo(),r=o.colors,[i,l]=e.useState(!1);/* @__PURE__ */
111
+ return z(k,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{padding:2,alignItems:"center",justifyContent:"center",borderRadius:999,transform:[{translateX:i?-2:0}]},children:/* @__PURE__ */z(A,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */z(O,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:i?r.text:r.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})}function Co({onBack:t,label:n="Games"}){const{theme:o}=yo(),r=o.colors,[i,l]=e.useState(!1),a=i?r.primary:r.textMuted;/* @__PURE__ */
112
+ return v(k,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,activeOpacity:.7,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{flexDirection:"row",alignItems:"center",gap:6,alignSelf:"flex-start",marginBottom:12,transform:[{translateX:i?-2:0}]},children:[/* @__PURE__ */z(A,{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */z(O,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:a,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})}),/* @__PURE__ */z(x,{style:{fontSize:14,fontWeight:"600",color:a},children:n})]})}function So({onBack:e,hideActions:t,children:n}){const o=!!e;return o||n?/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",gap:6,marginTop:2},children:[o&&e&&/* @__PURE__ */z(ko,{onBack:e}),n]}):null}var Fo=[1,5,10,20,50,100],zo=[4,12];function vo(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function Wo(e,t,n){const o=n?.operatorMargin??.2,r=n?.perLegProbability??.5,i=Math.round(Math.pow(1/r,t)),l=(1-o)*Math.pow(1/r,t);return{legs:t,stake:e,prize:Math.round(e*l*100)/100,multiple:l,oddsOneIn:i}}function Ao(e){if(!vo(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??zo[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??zo[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),i=e.max_bet??null,l=Fo.filter(e=>e>=r&&(null===i||e<=i));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(20,r),i??20),minStake:r,maxStake:i,quickStakes:l,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 To=50,Lo=[25,50,75,100],Do=[{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 Mo(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function Ro(e,t){return Math.round(e*t/50*100)/100}function Ho(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:Ro(o,t),cumulative:Ro(n,t)}))}function Oo(e,t){return Ro(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function Po(e,t,n){return Ro(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)}function Io(e){if(!Mo(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=Do.filter(e=>t&&t.length>0?t.includes(e.legs):e.legs>=n&&e.legs<=o);if(0===r.length)return null;const i=e.min_bet??Lo[0],l=e.max_bet??Lo[Lo.length-1],a=Lo.filter(e=>e>=i&&e<=l);return{ladders:r,defaultLegs:r.some(e=>8===e.legs)?8:r[Math.floor(r.length/2)].legs,defaultStake:a.includes(50)?50:a[0]??50,stakes:a.length>0?a:Lo,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}var Eo=.21875,jo=[1,5,10,20,50],No=[4,12];function Yo(e){return!!e&&!e.quick_pick_only&&"mirror"===(e.rule??"").trim().toLowerCase()}function Go(e,t,n){const o=n?.operatorMargin??.21875,r=n?.perLegProbability??.5,i=Math.round(Math.pow(2,t)),l=Math.pow(r,t)+Math.pow(1-r,t),a=Math.round(1/l),c=(1-o)*Math.pow(2,t-1);return{legs:t,stake:e,prize:Math.round(e*c*100)/100,multiple:c,totalOutcomes:i,winningOutcomes:2,oddsOneIn:a}}function Vo(e){if(!Yo(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??No[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??No[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),i=e.max_bet??null,l=jo.filter(e=>e>=r&&(null===i||e<=i));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(20,r),i??20),minStake:r,maxStake:i,quickStakes:l,tagline:"Call every leg. Get them all right, you win — all wrong, you win the same.",operatorMargin:e.operator_margin??.21875,perLegProbability:e.payout_structure?.per_leg_probability??.5}}function Uo(e){return e?.quick_pick_only?"quick_pick":vo(e)?"game_set":kn(e)?"pick_your_dividend":Mo(e)?"ladder":Yo(e)?"mirror":nn(e)?"selections":wn(e)?"rule_setup":"selections"}function Zo(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(nn(e))return!1;const t=!!(e.allowed_markets&&e.allowed_markets.length>0),n=!!(e.allowed_sports&&e.allowed_sports.length>0);return t||n}function Ko(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||nn(e)||Zo(e))}function qo(e){switch(Uo(e)){case"ladder":return{belowRequiredHint:(e,t)=>`Drop to Ladder ${e} or add another pick to stay on Ladder ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay on Ladder ${e}.`,switchTierLabel:e=>`Switch to Ladder ${e}`,overloadTitle:"Add more picks to climb higher",tableColumnLabel:"Ladder",tierButtonLabel:e=>`Ladder ${e}`};case"game_set":case"pick_your_dividend":case"mirror":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 Xo({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,howToPlayMarkdown:i,selectedCategory:l,displayCategoryName:a}=yo(),c=n.colors,{width:s}=S(),d=s>=640,h=s>=768;/* @__PURE__ */
113
+ return v(C,{style:d&&$o.headerWide,children:[/* @__PURE__ */v(C,{style:$o.titleRow,children:[/* @__PURE__ */z(x,{style:[$o.title,d&&$o.titleWide,h&&$o.titleDesktop,{color:lt(n),fontFamily:o,flex:1}],children:"Choose your game"}),i?.trim()?/* @__PURE__ */z(C,{style:$o.howToPlayWrap,children:/* @__PURE__ */z(ae,{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:r,headingFont:o})}):null]}),/* @__PURE__ */z(So,{onBack:e,hideActions:t,children:l&&/* @__PURE__ */z(x,{style:[$o.subtitle,d&&$o.subtitleWide,{color:c.textMuted,fontFamily:r}],children:a(l)})})]})}function Qo({onCancel:e,onSelectGame:t}){const{theme:n,screenSize:o}=yo(),r=n.colors;return e&&"mobile"!==o?/* @__PURE__ */z(C,{style:[$o.footer],children:/* @__PURE__ */z(k,{onPress:e,style:[$o.secondaryBtn,{backgroundColor:r.buttonSecondary}],children:/* @__PURE__ */z(x,{style:[$o.secondaryBtnText,{color:r.buttonSecondaryText}],children:"Cancel"})})}):null}function Jo({onSelectGame:t,onRuleSetup:n,onGameSetBet:o,onPickYourDividend:r,onLadder:i,onMirror:l,onQuickPick:a,onCancel:c,hideTitle:s,hideActions:d,showPerfectPickSetup:h=!1,showTierFilter:f=!1}){const u=yo(),{theme:g,games:p,loading:y,error:m,selectedGame:b,selectedPropositionCount:w,handlePropositionCountChange:x,maxPayouts:B}=u;g.colors;const k=e.useRef(b);k.current=b;const{width:F}=S(),W=F>=640;/* @__PURE__ */
114
+ return v(C,{style:$o.container,children:[!s&&/* @__PURE__ */z(C,{style:{marginBottom:W?24:16},children:/* @__PURE__ */z(Xo,{onBack:c,hideActions:d})}),
115
+ /* @__PURE__ */z(xo,{}),
116
+ /* @__PURE__ */z(C,{style:$o.content,children:/* @__PURE__ */z(In,{games:p,selectedGame:b,onSelectGame:e=>{k.current=e,u.selectGame(e)},loading:y,error:m,theme:g,showTierFilter:f,selectedPropositionCount:w,onPropositionCountChange:x,onPropositionCountSelected:()=>{const e=k.current;if("rule_setup"===Uo(e)&&Ko(e)&&!h)return u.goToSportSelection(),void t?.();switch(Uo(e)){case"game_set":return void o?.();case"pick_your_dividend":return void r?.();case"ladder":return void i?.();case"mirror":return void l?.();case"rule_setup":return void n?.();default:u.goToSportSelection(),t?.()}},onQuickPickGame:(e,t)=>{u.quickPickGame(e,t),a?.()},maxPayouts:B})})]})}var $o=w.create({container:{flex:1},headerWide:{paddingLeft:8},titleRow:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:12},title:{fontSize:18,fontWeight:"700",lineHeight:22.5},titleWide:{fontSize:20,lineHeight:25},titleDesktop:{fontSize:24,lineHeight:30},howToPlayWrap:{flexShrink:0,marginTop:2},subtitle:{fontSize:12,flexShrink:1},subtitleWide:{fontSize:14},content:{flex:1},footer:{flexDirection:"row",alignItems:"center",paddingTop:16},secondaryBtn:{paddingHorizontal:20,paddingVertical:10,borderRadius:8},secondaryBtnText:{fontSize:14,fontWeight:"500"}}),_o={today:"Today",weekend:"This weekend",next7:"Next 7 days"},er=["today","weekend","next7"];function tr(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function nr(e,t,n){if(!e)return!1;const o=new Date(e);if(Number.isNaN(o.getTime()))return!1;const{start:r,end:i}=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:tr(n,1)};case"weekend":{const e=n.getDay(),t=tr(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:tr(t,2)}}case"next7":return{start:n,end:tr(n,7)}}}(t,n);return o>=r&&o<i}function or(e,t,n){if(!t||n)return null;const o=e.outcome||e.description;return o?t(o):null}var rr=12;function ir({color:e,style:t}){/* @__PURE__ */
117
+ return z(C,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function lr({theme:e,wide:t}){const n=yt(e),o=n.selectionCard??n.backgroundAlt;/* @__PURE__ */
118
+ return z(C,{accessibilityRole:"progressbar",accessibilityLabel:"Loading",style:{gap:t?24:16,paddingBottom:64},children:/* @__PURE__ */z(C,{style:{borderRadius:8,borderWidth:2,borderColor:n.border,backgroundColor:o,overflow:"hidden"},children:[0,1,2,3,4].map(e=>/* @__PURE__ */v(C,{style:{paddingHorizontal:t?16:12,paddingVertical:t?12:8,gap:8,borderTopWidth:0===e?0:1,borderTopColor:n.border},children:[
119
+ /* @__PURE__ */z(ir,{color:n.textMuted,style:{height:14,width:"72%"}}),
120
+ /* @__PURE__ */z(ir,{color:n.textMuted,style:{height:12,width:112}}),
121
+ /* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8,paddingTop:2},children:[/* @__PURE__ */z(ir,{color:n.textMuted,style:{height:14,flex:1,maxWidth:"58%"}}),/* @__PURE__ */v(C,{style:{flexDirection:"row",gap:6,flexShrink:0},children:[/* @__PURE__ */z(ir,{color:n.textMuted,style:{height:t?32:28,width:t?48:44,borderRadius:8}}),/* @__PURE__ */z(ir,{color:n.textMuted,style:{height:t?32:28,width:t?48:44,borderRadius:8}})]})]})]},e))})})}function ar({theme:e,value:t,onYes:n,onNo:o,disabled:r}){const i=e.colors,l=(e,t)=>({paddingVertical:6,paddingHorizontal:14,borderRadius:8,borderWidth:1,backgroundColor:e?t:"transparent",borderColor:e?"transparent":i.border,opacity:r?.5:1}),a=e=>({color:e?"#ffffff":i.text,fontSize:13,fontWeight:"600",lineHeight:16});/* @__PURE__ */
122
+ return v(C,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[/* @__PURE__ */z(k,{onPress:n,disabled:r,accessibilityState:{selected:"yes"===t},style:l("yes"===t,st(e)),children:/* @__PURE__ */z(x,{style:a("yes"===t),children:"Yes"})}),/* @__PURE__ */z(k,{onPress:o,disabled:r,accessibilityState:{selected:"no"===t},style:l("no"===t,dt(e)),children:/* @__PURE__ */z(x,{style:a("no"===t),children:"No"})})]})}function cr({theme:e,variant:t,disabled:n,onPress:o,children:r}){const i=e.colors,[l,a]=c(!1),s="primary"===t?{bg:i.buttonPrimary,bgHover:i.buttonPrimaryHover,fg:i.buttonPrimaryText,border:i.buttonPrimary}:{bg:i.buttonSecondary,bgHover:i.buttonSecondaryHover,fg:i.buttonSecondaryText,border:i.border};/* @__PURE__ */
123
+ return z(k,{onPress:o,disabled:n,activeOpacity:.85,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:s.border,backgroundColor:l&&!n?s.bgHover:s.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:/* @__PURE__ */z(x,{style:{color:s.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:r})})}function sr({matchup:e,renderTeamLogo:t,showHomeAway:n=!1,altText:o,mutedColor:r,size:i="sm"}){const{width:l}=S(),a=l>=640,[c,s=""]=e.split(" vs "),d=s.length>0,h="md"===i&&a?16:14,f=a?ur.matchupTeamsRow:ur.matchupTeamsStacked;if(!t&&!n)/* @__PURE__ */return z(x,{style:{color:o,fontSize:h,fontWeight:"600"},children:e});const u=(e,i)=>/* @__PURE__ */v(C,{style:ur.teamLogoRowWrap,children:[t?.(e),/* @__PURE__ */v(C,{style:{flexShrink:1,minWidth:0},children:[/* @__PURE__ */z(x,{style:{color:o,fontSize:h,fontWeight:"600"},children:e}),n&&i&&/* @__PURE__ */z(x,{style:{fontSize:10,color:r,textTransform:"uppercase",letterSpacing:.25},children:i})]})]});/* @__PURE__ */
124
+ return v(C,{style:f,children:[u(c,"Home"),d&&/* @__PURE__ */v(F,{children:[/* @__PURE__ */z(x,{style:{color:r,fontSize:12,flexShrink:0},children:"vs"}),u(s,"Away")]})]})}function dr({label:e,colors:t,onOpenChange:n}){const o="OR"===e?"If either wins, you win.":"Both must win for Yes.",[i,l]=c(!1);return r(()=>{n?.(i)},[i,n]),/* @__PURE__ */v(C,{style:{position:"relative",zIndex:i?9999:0,elevation:i?9999:0},children:[/* @__PURE__ */z(m,{onPress:()=>l(e=>!e),onHoverIn:()=>l(!0),onHoverOut:()=>l(!1),hitSlop:6,accessibilityLabel:o,accessibilityRole:"button",accessibilityState:{expanded:i},children:/* @__PURE__ */z(C,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:6,backgroundColor:Vt(t.primary,.14),borderWidth:1,borderColor:Vt(t.primary,.45)},children:/* @__PURE__ */z(x,{style:{color:t.primary,fontSize:10,fontWeight:"700",lineHeight:10,textTransform:"uppercase",letterSpacing:.25},children:e})})}),i&&/* @__PURE__ */z(C,{style:{position:"absolute",top:"100%",left:0,marginTop:4,minWidth:192,maxWidth:352,paddingHorizontal:10,paddingVertical:6,borderRadius:6,backgroundColor:t.backgroundAlt??"#fff",borderWidth:1,borderColor:t.border??Vt(t.primary,.3),shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:.12,shadowRadius:4,elevation:9999},children:/* @__PURE__ */z(x,{style:{color:t.text,fontSize:11,lineHeight:15},children:o})})]})}function hr({prop:t,colors:n,size:o="sm",componentById:r}){const{width:i}=S(),l=i>=640,a=pe(t,r),s=t.description??t.proposition??"",d="md"===o?l?16:14:l?14:12,h="md"===o?"500":"400",f=n.textMuted??n.textAltMuted??n.text,[u,g]=c(!1);if(!a)/* @__PURE__ */return z(x,{style:{color:n.text,fontSize:d,fontWeight:h,flex:1},children:s});const{operator:p,legs:y}=a;return y.some(e=>e.eventLabel)?/* @__PURE__ */z(C,{style:{flex:1,minWidth:0,flexDirection:"column",gap:8,...u&&{zIndex:9999,elevation:9999,position:"relative"}},children:y.map((e,t)=>/* @__PURE__ */v(C,{style:{minWidth:0},children:[t>0&&/* @__PURE__ */z(C,{style:{marginBottom:4},children:/* @__PURE__ */z(dr,{label:p,colors:n,onOpenChange:g})}),e.eventLabel&&/* @__PURE__ */z(x,{style:{color:f,fontSize:l?12:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:.25},children:e.eventLabel}),
125
+ /* @__PURE__ */z(x,{style:{color:n.text,fontSize:d,fontWeight:h},children:e.text})]},t))}):/* @__PURE__ */z(C,{style:{flex:1,minWidth:0,...u&&{zIndex:9999,elevation:9999,position:"relative"}},children:/* @__PURE__ */z(C,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6,rowGap:4},children:y.map((t,o)=>/* @__PURE__ */v(e.Fragment,{children:[o>0&&/* @__PURE__ */z(dr,{label:p,colors:n,onOpenChange:g}),/* @__PURE__ */z(x,{style:{color:n.text,fontSize:d,fontWeight:h},children:t.text})]},o))})})}function fr({game:t,propositions:n,selections:i,onToggleSelection:s,onNext:d,onBack:h,loading:f,error:u,theme:g,colorScheme:p,hideActions:y=!1,initialSport:m,renderTeamLogo:b,disableQuickPick:w=!1,selectedPropositionCount:W,onPropositionCountChange:T,showHomeAway:L=!1,gameCategory:D}){const M=o(po),R=M?.sportBaseKey,H=function(e,t){const[n,o]=c([]),i=a(/* @__PURE__ */new Set),s=l(()=>{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=l(()=>e?function(e){const t=/* @__PURE__ */new Set;for(const n of e)if(fe(n))for(const e of ue(n))t.add(e);return[...t]}(t).filter(e=>!s.has(e)):[],[e,t,s]);return r(()=>{if(!e||0===d.length)return;const t=d.filter(e=>!i.current.has(e));if(0===t.length)return;for(const e of t)i.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]),s}(l(()=>M?.apiUrl?new Jn({apiUrl:M.apiUrl,apiKey:M.apiKey,fetchImpl:M.fetchImpl,getAuthHeaders:M.getAuthHeaders}):null,[M?.apiUrl,M?.apiKey,M?.fetchImpl,M?.getAuthHeaders]),n),P=Ht(g,p),I=P.colors,E=gt(P),j=(N=P).colors.selectionProp??N.colors.background;var N;const Y=I.matchupHeader??(t.color?Vt(t.color,.14):pt(P)),G=I.textAlt??I.text;Pt(P),lt(P);const{width:V}=S(),U=V>=640,Z=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(P),K=!!(t.allowed_propositions&&t.allowed_propositions.length>0),{min:q,max:X}=je(t,W),Q=q,J=X,[$,_]=e.useState(()=>new Set(Object.keys(ot(n,D,R))));e.useEffect(()=>{const e=ot(n,D,R),t=Object.keys(e);t.length>0&&_(e=>t.every(t=>e.has(t))?e:new Set(t))},[n]);const ee=Q>0&&Q===J,te=Q||1,ne=J||n.length,oe=J||Q||n.length,[re,ie]=e.useState(oe),le=Object.keys(i).length,ae=J>0&&le>=J,ce=K?null!=W&&le===W:Ee(le,t.min_propositions,t.max_propositions);t.min_bet,J>0?Math.max(2,2*J):Math.max(2,2*le);const de=e.useRef(le),he=K?null!=W&&le===W:J>0&&le===J;r(()=>{he&&le>de.current&&d?.(),de.current=le},[le,he]);const ge=(e,t)=>{!(e in i)&&ae||s(e,t)};r(()=>{const e=J||n.length,t=Q||1;ie(n=>ee?J:Math.max(t,Math.min(n,e)))},[n.length,Q,J,ee]);const pe=l(()=>/* @__PURE__ */new Date,[]),ye=l(()=>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 er){let e=0,i=0;for(const o of n)if(nr(o.commence_time,r,t)?e+=1:i+=1,e>0&&i>0)break;e>0&&i>0&&o.push({id:r,label:_o[r]})}return o}(n,pe),[n,pe]),[me,be]=c(null);r(()=>{me&&!ye.some(e=>e.id===me)&&be(null)},[ye,me]);const we=l(()=>function(e,t,n){return t?e.filter(e=>nr(e.commence_time,t,n)):e.slice()}(n,me,pe),[n,me,pe]),xe=l(()=>ot(we,D,R),[we,D,R]),Be=l(()=>{const e=/* @__PURE__ */new Set;for(const t of we){const n=se(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[we]),[ke,Ce]=c(null);r(()=>{ke&&!Be.includes(ke)&&Ce(null)},[Be,ke]);const Se=l(()=>{if(!ke)return xe;const e={};for(const[t,n]of Object.entries(xe)){const o=n.filter(e=>se(e)===ke);o.length>0&&(e[t]=o)}return e},[xe,ke]),Fe=Object.keys(Se);if(f)/* @__PURE__ */return z(lr,{theme:P,wide:U});if(u)/* @__PURE__ */return z(C,{style:ur.centered,children:/* @__PURE__ */z(x,{style:{color:I.error},children:u})});const ze=!w&&n.length>0;/* @__PURE__ */
126
+ return v(C,{style:{gap:U?24:16,paddingBottom:64},children:[ye.length>0&&/* @__PURE__ */v(C,{style:[ur.marketFilterRow,{alignItems:"center"}],children:[
127
+ /* @__PURE__ */z(x,{style:{fontSize:11,fontWeight:"700",textTransform:"uppercase",letterSpacing:.5,color:I.textMuted,marginRight:2},children:"When"}),
128
+ /* @__PURE__ */z(k,{onPress:()=>be(null),activeOpacity:.85,style:[ur.marketChip,{borderColor:null==me?I.primary:I.border,backgroundColor:null==me?I.primary:I.background??"#fff"}],children:/* @__PURE__ */z(x,{style:{fontSize:11,fontWeight:"700",color:null==me?I.primaryText:I.text},children:"All dates"})}),ye.map(e=>{const t=me===e.id;/* @__PURE__ */
129
+ return z(k,{onPress:()=>be(e.id),activeOpacity:.85,style:[ur.marketChip,{borderColor:t?I.primary:I.border,backgroundColor:t?I.primary:I.background??"#fff"}],children:/* @__PURE__ */z(x,{style:{fontSize:11,fontWeight:"700",color:t?I.primaryText:I.text},children:e.label})},e.id)})]}),Be.length>1&&/* @__PURE__ */v(C,{style:ur.marketFilterRow,children:[/* @__PURE__ */z(k,{onPress:()=>Ce(null),activeOpacity:.85,style:[ur.marketChip,{borderColor:null==ke?I.primary:I.border,backgroundColor:null==ke?I.primary:I.background??"#fff"}],children:/* @__PURE__ */z(x,{style:{fontSize:11,fontWeight:"700",color:null==ke?I.primaryText:I.text},children:"All markets"})}),Be.map(e=>{const t=ke===e;/* @__PURE__ */
130
+ return z(k,{onPress:()=>Ce(e),activeOpacity:.85,style:[ur.marketChip,{borderColor:t?I.primary:I.border,backgroundColor:t?I.primary:I.background??"#fff"}],children:/* @__PURE__ */z(x,{style:{fontSize:11,fontWeight:"700",color:t?I.primaryText:I.text},children:(n=e,n.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))})},e);var n})]}),ze&&/* @__PURE__ */z(C,{style:[ur.topBar,{justifyContent:"flex-end"}],children:/* @__PURE__ */v(C,{style:[ur.quickPickRow,{gap:U?8:6}],children:[!ee&&/* @__PURE__ */v(C,{style:ur.quickPickCountRow,children:[/* @__PURE__ */z(B,{keyboardType:"number-pad",value:String(re),onChangeText:e=>{const t=parseInt(e,10);isNaN(t)||ie(Math.max(te,Math.min(ne,t)))},style:[ur.quickPickInput,{width:U?56:40,paddingHorizontal:U?8:4,paddingVertical:U?6:4,fontSize:U?14:12,color:G,backgroundColor:I.backgroundAlt,borderColor:I.border}]}),/* @__PURE__ */v(x,{style:{color:I.textMuted,fontSize:12},children:["/ ",n.length]})]}),/* @__PURE__ */z(bo,{onPress:()=>{const e=ee?J:re;for(const n of Object.keys(i)){const e=Number(n);s(e,i[e])}const{yesPicks:t,noPicks:o}=it(n,e);for(const n of t)s(n.id,"yes");for(const n of o)s(n.id,"no");d?.()}})]})}),n.length>0&&/* @__PURE__ */z(C,{style:ur.matchupList,children:Fe.every(e=>1===Se[e].length)?/* @__PURE__ */z(C,{style:[ur.matchupCard,{borderColor:I.border,backgroundColor:E},Z],children:Fe.map((e,t)=>{const n=Se[e][0],o="yes"===i[n.id],r="no"===i[n.id],l=n.id in i,a=ae&&!l,c=0===t,s=t===Fe.length-1;/* @__PURE__ */
131
+ return v(C,{style:{borderTopColor:I.border,borderTopWidth:c?0:1,opacity:a?.45:1},children:[/* @__PURE__ */v(C,{style:{paddingHorizontal:16,paddingVertical:U?12:10,backgroundColor:Y,borderTopLeftRadius:c?rr:0,borderTopRightRadius:c?rr:0},children:[/* @__PURE__ */z(C,{style:{minWidth:0},children:/* @__PURE__ */z(sr,{matchup:e,renderTeamLogo:b,altText:G,mutedColor:I.textAltMuted??I.textMuted??G})}),n.commence_time&&/* @__PURE__ */z(x,{style:{color:I.textAltMuted??I.textMuted,fontSize:11,opacity:.7,marginTop:2},children:Le(n.commence_time)})]}),/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingHorizontal:16,paddingVertical:U?14:12,backgroundColor:j,borderTopWidth:1,borderTopColor:I.border,borderBottomLeftRadius:s?rr:0,borderBottomRightRadius:s?rr:0},children:[/* @__PURE__ */v(C,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[or(n,b,L),/* @__PURE__ */z(hr,{prop:n,colors:I,componentById:H})]}),/* @__PURE__ */z(ar,{theme:P,value:o?"yes":r?"no":null,onYes:()=>ge(n.id,"yes"),onNo:()=>ge(n.id,"no"),disabled:a})]})]},n.id)})}):Fe.map(e=>{const t=Se[e],n=$.has(e),o=t.filter(e=>e.id in i).length,r=t[0]?.commence_time;/* @__PURE__ */
132
+ return v(C,{style:[ur.matchupCard,{borderColor:I.border,backgroundColor:E},Z],children:[/* @__PURE__ */v(k,{onPress:()=>{return t=e,_(e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n});var t},style:[ur.matchupHeader,{backgroundColor:Y,borderTopLeftRadius:rr,borderTopRightRadius:rr,borderBottomLeftRadius:n?0:rr,borderBottomRightRadius:n?0:rr}],children:[/* @__PURE__ */v(C,{style:ur.matchupHeaderLeft,children:[/* @__PURE__ */z(A,{width:18,height:18,viewBox:"0 0 24 24",style:{flexShrink:0,transform:[{rotate:n?"180deg":"0deg"}]},children:/* @__PURE__ */z(O,{d:"m6 9 6 6 6-6",stroke:I.textAltMuted??I.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),/* @__PURE__ */v(C,{style:ur.matchupTeamWrapper,children:[/* @__PURE__ */z(sr,{matchup:e,renderTeamLogo:b,showHomeAway:L,altText:G,mutedColor:I.textAltMuted??I.textMuted??G,size:"md"}),r&&/* @__PURE__ */z(x,{style:{color:I.textAltMuted??I.textMuted,fontSize:12,opacity:.7,marginTop:2,textAlign:"left"},children:Le(r)})]})]}),/* @__PURE__ */z(C,{style:ur.matchupHeaderRight,children:o>0&&/* @__PURE__ */z(C,{style:[ur.answeredBadge,{backgroundColor:I.successBg}],children:/* @__PURE__ */v(x,{style:{color:I.successText,fontSize:12,fontWeight:"500"},children:[o,"/",t.length]})})})]}),n&&/* @__PURE__ */z(C,{children:/* @__PURE__ */z(F,{children:t.map((e,n)=>{const o="yes"===i[e.id],r="no"===i[e.id],l=e.id in i,a=ae&&!l,c=n===t.length-1;/* @__PURE__ */
133
+ return z(C,{style:{paddingHorizontal:16,paddingVertical:U?14:12,backgroundColor:j,borderTopColor:I.border,borderTopWidth:0===n?0:1,opacity:a?.45:1,borderBottomLeftRadius:c?rr:0,borderBottomRightRadius:c?rr:0},children:/* @__PURE__ */v(C,{style:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-start",columnGap:U?16:8,rowGap:U?16:8},children:[/* @__PURE__ */v(C,{style:{flex:1,minWidth:128,flexDirection:"row",alignItems:"flex-start",gap:8},children:[or(e,b,L),/* @__PURE__ */z(hr,{prop:e,colors:I,size:"md",componentById:H})]}),/* @__PURE__ */z(ar,{theme:P,value:o?"yes":r?"no":null,onYes:()=>ge(e.id,"yes"),onNo:()=>ge(e.id,"no"),disabled:a})]})},e.id)})})})]},e)})}),0===n.length&&/* @__PURE__ */z(C,{style:ur.centered,children:/* @__PURE__ */z(x,{style:{color:I.textMuted},children:"No propositions available at this time"})}),!y&&/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:I.border,backgroundColor:E,marginHorizontal:U?-24:-16,paddingHorizontal:U?24:16,paddingVertical:U?16:12},children:[/* @__PURE__ */z(cr,{theme:P,variant:"secondary",onPress:h,children:"Back"}),/* @__PURE__ */z(C,{style:{flexDirection:"row",alignItems:"center",gap:U?12:8},children:/* @__PURE__ */z(cr,{theme:P,variant:"primary",disabled:!ce,onPress:d,children:"Wager"})})]})]})}var ur=w.create({centered:{alignItems:"center",justifyContent:"center",padding:32,flexDirection:"row"},marketFilterRow:{flexDirection:"row",flexWrap:"wrap",gap:8},marketChip:{borderWidth:1,borderRadius:999,paddingHorizontal:12,paddingVertical:6},topBar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:8},quickPickRow:{flexDirection:"row",alignItems:"center",flexShrink:0},quickPickCountRow:{flexDirection:"row",alignItems:"center",gap:4},quickPickInput:{borderRadius:8,borderWidth:2,fontWeight:"600",textAlign:"center"},matchupList:{gap:16},matchupCard:{borderRadius:rr,borderWidth:1,overflow:"visible"},matchupHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:16,paddingVertical:14},matchupHeaderLeft:{flexDirection:"row",alignItems:"center",gap:8,flex:1,minWidth:0},matchupTeamWrapper:{flex:1,minWidth:0},matchupTeamsRow:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6,rowGap:4},matchupTeamsStacked:{flexDirection:"column",alignItems:"flex-start",gap:4,alignSelf:"stretch"},teamLogoRowWrap:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:1,minWidth:0},matchupHeaderRight:{flexDirection:"row",alignItems:"center",gap:8,marginLeft:8,flexShrink:0},answeredBadge:{paddingHorizontal:8,paddingVertical:2,borderRadius:999}});function gr(e){return e.selectionCard??e.backgroundAlt}function pr({color:e,style:t}){/* @__PURE__ */
134
+ return z(C,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function yr({colors:t,count:n=2}){const{width:o}=S(),r=o>=400,[i,l]=e.useState(0),a=r?i>0?(i-12)/2:"48%":"100%",c=gr(t);/* @__PURE__ */
135
+ return z(C,{onLayout:e=>l(e.nativeEvent.layout.width),style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:n}).map((e,n)=>/* @__PURE__ */v(C,{style:{width:a,minHeight:140,borderRadius:16,borderWidth:2,padding:20,gap:12,justifyContent:"center",alignItems:"flex-start",backgroundColor:c,borderColor:t.border},children:[/* @__PURE__ */z(pr,{color:t.textMuted,style:{height:20,width:176,maxWidth:"100%"}}),/* @__PURE__ */z(pr,{color:t.textMuted,style:{height:12,width:96,maxWidth:"70%"}})]},n))})}function mr({colors:e,count:t=3}){const n=gr(e);/* @__PURE__ */
136
+ return z(C,{style:{gap:12,width:"100%"},children:Array.from({length:t}).map((t,o)=>/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderRadius:16,borderWidth:2,paddingHorizontal:20,paddingVertical:20,backgroundColor:n,borderColor:e.border},children:[/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",gap:16,flex:1,minWidth:0},children:[/* @__PURE__ */z(pr,{color:e.textMuted,style:{height:56,width:56,borderRadius:16}}),/* @__PURE__ */v(C,{style:{gap:8,flex:1,minWidth:0},children:[/* @__PURE__ */z(pr,{color:e.textMuted,style:{height:20,width:144,maxWidth:"75%"}}),/* @__PURE__ */z(pr,{color:e.textMuted,style:{height:12,width:112,maxWidth:"60%"}})]})]}),/* @__PURE__ */z(pr,{color:e.textMuted,style:{height:20,width:20,borderRadius:6}})]},o))})}function br({colors:e,tileSize:t=100}){/* @__PURE__ */
137
+ return z(C,{style:{borderRadius:12,borderWidth:2,borderTopWidth:4,padding:16,gap:16,width:"100%",borderColor:e.border,borderTopColor:e.primary,backgroundColor:gr(e)},children:/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"flex-start",gap:12,width:"100%"},children:[/* @__PURE__ */v(C,{style:{flex:1,minWidth:0,gap:8},children:[
138
+ /* @__PURE__ */z(pr,{color:e.textMuted,style:{height:28,width:144,maxWidth:"85%"}}),
139
+ /* @__PURE__ */z(pr,{color:e.textMuted,style:{height:14,width:"100%"}}),
140
+ /* @__PURE__ */z(pr,{color:e.textMuted,style:{height:14,width:"82%"}}),
141
+ /* @__PURE__ */z(pr,{color:e.textMuted,style:{height:20,width:112,borderRadius:999}})]}),/* @__PURE__ */z(pr,{color:e.textMuted,style:{width:t,height:t,borderRadius:12,flexShrink:0}})]})})}function wr({colors:e,count:t=3,tileSize:n=100}){/* @__PURE__ */
142
+ return z(C,{style:{gap:12,width:"100%"},children:Array.from({length:t}).map((t,o)=>/* @__PURE__ */z(br,{colors:e,tileSize:n},o))})}function xr({colors:e,rows:t=5}){const{width:n}=S(),o=n>=640;/* @__PURE__ */
143
+ return z(C,{style:{gap:o?24:16,paddingBottom:64,width:"100%"},children:/* @__PURE__ */z(C,{style:{borderRadius:8,borderWidth:2,borderColor:e.border,backgroundColor:gr(e),overflow:"hidden"},children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */v(C,{style:{paddingHorizontal:o?16:12,paddingVertical:o?12:8,gap:8,borderTopWidth:0===n?0:1,borderTopColor:e.border},children:[
144
+ /* @__PURE__ */z(pr,{color:e.textMuted,style:{height:14,width:"72%",maxWidth:"100%"}}),
145
+ /* @__PURE__ */z(pr,{color:e.textMuted,style:{height:12,width:112}}),
146
+ /* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8,paddingTop:2},children:[/* @__PURE__ */z(pr,{color:e.textMuted,style:{height:14,flex:1,maxWidth:"58%"}}),/* @__PURE__ */v(C,{style:{flexDirection:"row",gap:6,flexShrink:0},children:[/* @__PURE__ */z(pr,{color:e.textMuted,style:{height:o?32:28,width:o?48:44,borderRadius:8}}),/* @__PURE__ */z(pr,{color:e.textMuted,style:{height:o?32:28,width:o?48:44,borderRadius:8}})]})]})]},n))})})}function Br({colors:e}){/* @__PURE__ */
147
+ return z(C,{style:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:e.border,marginBottom:16,width:"100%"},children:[0,1].map(t=>/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10},children:[/* @__PURE__ */z(pr,{color:e.textMuted,style:{height:14,width:68}}),/* @__PURE__ */z(pr,{color:e.textMuted,style:{height:20,width:20,borderRadius:999}})]},t))})}function kr({colors:e}){/* @__PURE__ */
148
+ return v(C,{style:{borderRadius:8,borderWidth:1,borderColor:e.border,backgroundColor:gr(e),overflow:"hidden",width:"100%"},children:[/* @__PURE__ */v(C,{style:{width:"100%",paddingHorizontal:16,paddingVertical:12,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */v(C,{style:{flex:1,minWidth:0,gap:6},children:[/* @__PURE__ */z(pr,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),/* @__PURE__ */z(pr,{color:e.textMuted,style:{height:12,width:128,maxWidth:"65%"}})]}),/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",gap:12,flexShrink:0},children:[/* @__PURE__ */z(pr,{color:e.textMuted,style:{height:14,width:40}}),/* @__PURE__ */z(pr,{color:e.textMuted,style:{height:24,width:60,borderRadius:999}})]})]}),/* @__PURE__ */z(C,{style:{borderTopWidth:1,borderTopColor:e.border,width:"100%"},children:[0,1,2].map(t=>/* @__PURE__ */v(C,{style:{paddingHorizontal:16,paddingVertical:10,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:0===t?0:1,borderTopColor:e.border},children:[/* @__PURE__ */v(C,{style:{flex:1,minWidth:0,gap:4},children:[/* @__PURE__ */z(pr,{color:e.textMuted,style:{height:14,width:"88%"}}),/* @__PURE__ */z(pr,{color:e.textMuted,style:{height:12,width:"70%"}})]}),/* @__PURE__ */z(pr,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]})}function Cr({colors:e,rows:t=2}){/* @__PURE__ */
149
+ return v(C,{style:{width:"100%"},children:[/* @__PURE__ */z(Br,{colors:e}),/* @__PURE__ */z(C,{style:{gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */z(kr,{colors:e},n))})]})}function Sr({colors:e,bodyFont:t,message:n,variant:o="category",gameCardCount:r=3,categoryCount:i=2}){const l=n?.trim()||"Loading",a=(()=>{switch(o){case"sport":/* @__PURE__ */return z(mr,{colors:e,count:i});case"games":/* @__PURE__ */return z(wr,{colors:e,count:r});case"propositions":/* @__PURE__ */return z(xr,{colors:e,rows:5});case"entries":/* @__PURE__ */return z(Cr,{colors:e,rows:2});default:/* @__PURE__ */return z(yr,{colors:e,count:i})}})();/* @__PURE__ */
150
+ return v(C,{accessibilityRole:"progressbar",accessibilityLabel:l,accessibilityLiveRegion:"polite",style:{width:"100%"},children:[n?.trim()?/* @__PURE__ */z(x,{style:{fontSize:14,textAlign:"center",marginBottom:16,color:e.textMuted,fontFamily:t},children:n}):null,a]})}function Fr({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",title:r,sportBaseKey:i}){const l=function(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=me[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}(l);/* @__PURE__ */
151
+ return v(A,{viewBox:"0 0 360 360",width:n,height:n,accessibilityLabel:r??`${l} button`,children:[
152
+ /* @__PURE__ */z(I,{x:2,y:2,width:356,height:356,rx:78,fill:"#DDD9D2",stroke:ye,strokeWidth:4}),
153
+ /* @__PURE__ */z(I,{x:50,y:10,width:260,height:260,rx:52,fill:ye,opacity:.3}),
154
+ /* @__PURE__ */z(I,{x:50,y:35,width:260,height:260,rx:52,fill:ye,opacity:.55}),
155
+ /* @__PURE__ */z(I,{x:50,y:60,width:260,height:260,rx:52,fill:ye}),
156
+ /* @__PURE__ */z(N,{x:180,y:220,fontFamily:"Manrope, Poppins, sans-serif",fontSize:a,letterSpacing:-3,textAnchor:"middle",fontWeight:"800",fill:"#DFFF1A",children:l}),o&&/* @__PURE__ */v(F,{children:[/* @__PURE__ */z(N,{x:180,y:345,fontFamily:"Manrope, Poppins, sans-serif",fontSize:24,letterSpacing:-.5,textAnchor:"middle",fontWeight:"700",fill:ye,children:o}),/* @__PURE__ */z(N,{x:262,y:333,fontFamily:"Manrope, Poppins, sans-serif",fontSize:10,fontWeight:"600",fill:ye,children:"TM"})]})]})}function zr({category:e,size:t=14,color:n="currentColor"}){const o=n,r=2.25;switch(e){case"casino":/* @__PURE__ */return v(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[
157
+ /* @__PURE__ */z(O,{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",fill:n}),
158
+ /* @__PURE__ */z(O,{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",fill:n}),
159
+ /* @__PURE__ */z(O,{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",fill:n})]});case"racing":/* @__PURE__ */return v(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[/* @__PURE__ */z(O,{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",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */z(O,{d:"M22 14v-2a3 3 0 0 0 -3 -3",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]});case"women":/* @__PURE__ */return v(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[
160
+ /* @__PURE__ */z(O,{d:"M7 9a5 5 0 1 0 10 0a5 5 0 1 0 -10 0",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),
161
+ /* @__PURE__ */z(O,{d:"M12 14v7",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),
162
+ /* @__PURE__ */z(O,{d:"M9 18h6",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]});default:/* @__PURE__ */return v(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[
163
+ /* @__PURE__ */z(O,{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),
164
+ /* @__PURE__ */z(O,{d:"M12 7l4.76 3.45l-1.76 5.55h-6l-1.76 -5.55l4.76 -3.45",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),
165
+ /* @__PURE__ */z(O,{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",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]})}}function vr({size:e=20,color:t="currentColor"}){/* @__PURE__ */
166
+ return z(A,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */z(O,{d:"m9 6 6 6-6 6",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function Wr({label:e,category:t,icon:n,theme:o,disabled:r=!1}){const i=o.colors,l=Pt(o),{width:a}=S(),c=a>=480?20:a>=400?18:16,s=r?i.textMuted:i.textAlt??i.text,d=r?i.border:o.brand?.chip??i.primary,h=r?i.textMuted:o.brand?.icon??i.primaryText??i.buttonPrimaryText;/* @__PURE__ */
167
+ return v(C,{style:[Ar.row,{gap:.25*c}],children:[
168
+ /* @__PURE__ */v(x,{accessibilityLabel:"YESNO",style:{fontSize:c,lineHeight:1.15*c,letterSpacing:-1,color:s,fontFamily:l},children:[/* @__PURE__ */z(x,{style:Ar.yes,children:"YES"}),/* @__PURE__ */z(x,{style:Ar.no,children:"NO"})]}),
169
+ /* @__PURE__ */z(C,{accessible:!0,accessibilityRole:"image",accessibilityLabel:e,style:[Ar.pill,{width:1.6*c,height:.85*c,borderRadius:.425*c,backgroundColor:d,transform:[{translateY:.02*-c}]}],children:n??/* @__PURE__ */z(zr,{category:t,size:.6*c,color:h})}),
170
+ /* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"flex-start",flexShrink:1,minWidth:0},children:[/* @__PURE__ */z(x,{style:{fontWeight:"500",fontSize:c,lineHeight:1.15*c,flexShrink:1,minWidth:0,color:s,fontFamily:l,includeFontPadding:!1},children:e}),/* @__PURE__ */z(x,{style:{fontSize:.3*c,lineHeight:.3*c,fontWeight:"600",marginLeft:.06*c,color:s,fontFamily:l,includeFontPadding:!1},children:"TM"})]})]})}var Ar=w.create({row:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",maxWidth:"100%"},yes:{fontWeight:"900"},no:{fontWeight:"300"},pill:{alignItems:"center",justifyContent:"center",flexShrink:0}});function Tr({onBack:e,hideActions:t,backLabel:n="Category"}={}){const{theme:o,selectedCategory:r}=yo(),i=o.colors,l=Pt(o),a=Ot(o),{width:c}=S(),s=c>=640;/* @__PURE__ */
171
+ return v(C,{style:s&&Mr.headerWide,children:[/* @__PURE__ */z(x,{style:[Mr.sectionTitle,s&&Mr.sectionTitleWide,{color:i.primary,fontFamily:l}],children:Ie(r)}),/* @__PURE__ */z(So,{onBack:e,hideActions:t,children:e?/* @__PURE__ */z(x,{style:[Mr.subtitle,s&&Mr.subtitleWide,{color:i.textMuted,fontFamily:a}],children:n}):null})]})}function Lr({onCancel:e}){const{theme:t,screenSize:n}=yo(),o=t.colors;return e&&"mobile"!==n?/* @__PURE__ */z(C,{style:Mr.footer,children:/* @__PURE__ */z(k,{onPress:e,style:[Mr.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:/* @__PURE__ */z(x,{style:[Mr.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null}function Dr({onSelectSport:t,onCancel:n,hideTitle:o,hideActions:r,renderSportLogo:i,renderSportTagline:l,backLabel:a}){const{theme:c,propositionsForSportPicker:s,sportSummaries:d,loading:h,setSelectedSport:f,clearSelectedGame:u,selectedCategory:g,sportBaseKey:p,displaySportName:y}=yo(),m=c.colors,b=gt(c),w=Pt(c),B=Ot(c),F=lt(c),{width:W}=S(),A=W>=640,T=W>=400?56:44,[L,D]=e.useState(null),M=De(s),R=Object.keys(M);return h?/* @__PURE__ */z(C,{style:Mr.container,children:/* @__PURE__ */z(Sr,{colors:yt(c),bodyFont:B,variant:"sport",categoryCount:R.length>0?R.length:2})}):/* @__PURE__ */v(C,{style:Mr.container,children:[!o&&/* @__PURE__ */z(C,{style:Mr.titleWrap,children:/* @__PURE__ */z(Tr,{onBack:n,hideActions:r,backLabel:a})}),/* @__PURE__ */z(C,{style:Mr.content,children:/* @__PURE__ */z(C,{style:[Mr.list,A&&Mr.listWide],children:R.map(e=>{const n=d.find(t=>t.key===e),o=n?.active_props??M[e].length,r=l?.(e,o)??(n?`${a=n.games_today} game${1===a?"":"s"} today · ${c=n.active_props} pick${1===c?"":"s"} available`:function(e,t){return 0===e?"racing"===t?"No races today":"casino"===t?"No games today":"No picks available":"racing"===t?`${e} race${1===e?"":"s"} today`:"casino"===t?`${e} game${1===e?"":"s"} available`:`${e} pick${1===e?"":"s"} available`}(o,g));var a,c;const s=y(e),h=L===e;/* @__PURE__ */
172
+ return v(k,{onPress:()=>{f(e),u(),t?.(e)},onMouseEnter:()=>D(e),onMouseLeave:()=>D(t=>t===e?null:t),style:[Mr.row,A&&Mr.rowWide,{backgroundColor:b,borderColor:h?m.primary:m.border},h&&Mr.rowHovered],activeOpacity:.85,children:[/* @__PURE__ */v(C,{style:[Mr.rowMain,A&&Mr.rowMainWide],children:[/* @__PURE__ */z(C,{style:Mr.logoWrap,children:i?i(e):/* @__PURE__ */z(Fr,{gameKey:e,size:T,footer:null,sportBaseKey:p,title:`${s} button`})}),/* @__PURE__ */v(C,{style:Mr.rowText,children:[/* @__PURE__ */z(x,{style:[Mr.sportName,A&&Mr.sportNameWide,{color:F,fontFamily:w}],children:s}),/* @__PURE__ */z(x,{style:[Mr.tagline,A&&Mr.taglineWide,{color:m.primary,fontFamily:B}],children:r})]})]}),/* @__PURE__ */z(vr,{size:W>=400?24:20,color:m.textMuted})]},e)})})})]})}var Mr=w.create({container:{flex:1},centered:{flex:1,flexDirection:"row",justifyContent:"center",alignItems:"center",padding:32},titleWrap:{marginBottom:8},headerWide:{paddingLeft:8},sectionTitle:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.4,marginBottom:12},sectionTitleWide:{fontSize:12,letterSpacing:2.16,marginBottom:16},subtitle:{fontSize:12,flexShrink:1},subtitleWide:{fontSize:14},content:{flex:1},list:{gap:10},listWide:{gap:12},row:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8,borderRadius:16,borderWidth:1,paddingHorizontal:14,paddingVertical:14,width:"100%",minWidth:0},rowWide:{paddingHorizontal:20,paddingVertical:20,gap:12},rowHovered:{shadowColor:"#000",shadowOpacity:.1,shadowRadius:6,shadowOffset:{width:0,height:4},elevation:3},rowMain:{flexDirection:"row",alignItems:"center",gap:12,flex:1,minWidth:0},rowMainWide:{gap:16},logoWrap:{flexShrink:0},rowText:{flex:1,minWidth:0,gap:2},sportName:{fontSize:16,fontWeight:"800",letterSpacing:-.4,lineHeight:20},sportNameWide:{fontSize:18,letterSpacing:-.45,lineHeight:22.5},tagline:{fontSize:10,fontWeight:"500",textTransform:"uppercase",letterSpacing:.8},taglineWide:{fontSize:12,letterSpacing:1.2},footer:{flexDirection:"row",alignItems:"center",paddingTop:16},secondaryBtn:{paddingHorizontal:20,paddingVertical:10,borderRadius:8},secondaryBtnText:{fontSize:14,fontWeight:"500"}});function Rr({onBack:e,hideActions:t}={}){const{theme:n}=yo(),o=Pt(n),r=n.colors,{width:i}=S(),l=i>=640;/* @__PURE__ */
173
+ return v(C,{style:l&&Pr.headerWide,children:[/* @__PURE__ */z(x,{style:[Pr.sectionTitle,l&&Pr.sectionTitleWide,{color:r.primary,fontFamily:o}],children:"Pick a category"}),/* @__PURE__ */z(So,{onBack:e,hideActions:t})]})}function Hr({onCancel:e}){const{theme:t,screenSize:n}=yo(),o=t.colors;return e&&"mobile"!==n?/* @__PURE__ */z(C,{style:Pr.footer,children:/* @__PURE__ */z(k,{onPress:e,style:[Pr.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:/* @__PURE__ */z(x,{style:[Pr.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null}function Or({onSelectCategory:t,onCancel:n,hideTitle:o,hideActions:r,renderCategoryIcon:i,getCategoryTagline:l}){const{theme:a,propositionsForCategoryPicker:c,loading:s,setSelectedCategory:d,setSelectedSport:h,clearSelectedGame:f,displayCategoryName:u}=yo(),g=a.colors,p=gt(a),y=Ot(a),{width:m}=S(),b=m>=640,w=m>=400,[B,F]=e.useState(null),[W,A]=e.useState(0),T=w?W>0?(W-(b?12:10))/2:"48%":"100%";Oe(c);const L=Pe(c);return s?/* @__PURE__ */z(C,{style:Pr.container,children:/* @__PURE__ */z(Sr,{colors:yt(a),bodyFont:y,variant:"category",categoryCount:L.length>0?L.length:2})}):/* @__PURE__ */v(C,{style:Pr.container,children:[!o&&/* @__PURE__ */z(C,{style:Pr.titleWrap,children:/* @__PURE__ */z(Rr,{onBack:n,hideActions:r})}),/* @__PURE__ */z(C,{style:Pr.content,children:/* @__PURE__ */z(C,{style:[Pr.grid,b&&Pr.gridWide],onLayout:e=>A(e.nativeEvent.layout.width),children:L.map(e=>{const n=l?.(e)??function(e){return be[e]??""}(e),o=B===e;/* @__PURE__ */
174
+ return v(k,{onPress:()=>{d(e),h(null),f(),t?.(e)},onMouseEnter:()=>F(e),onMouseLeave:()=>F(t=>t===e?null:t),style:[Pr.card,b&&Pr.cardWide,{width:T,backgroundColor:p,borderColor:o?g.primary:g.border},o&&Pr.cardHovered],activeOpacity:.85,children:[/* @__PURE__ */z(Wr,{label:u(e),category:e,icon:i?.(e),theme:a}),n?/* @__PURE__ */z(x,{style:[Pr.tagline,b&&Pr.taglineWide,{color:g.primary,fontFamily:y}],children:n}):null]},e)})})})]})}var Pr=w.create({container:{flex:1},centered:{flex:1,flexDirection:"row",justifyContent:"center",alignItems:"center",padding:32},titleWrap:{marginBottom:8},headerWide:{paddingLeft:8},sectionTitle:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.4,marginBottom:12},sectionTitleWide:{fontSize:12,letterSpacing:2.16,marginBottom:16},content:{flex:1},grid:{flexDirection:"row",flexWrap:"wrap",gap:10},gridWide:{gap:12},card:{alignItems:"flex-start",justifyContent:"center",gap:8,minHeight:112,borderRadius:16,borderWidth:1,padding:14},cardWide:{gap:12,minHeight:140,padding:20},cardHovered:{shadowColor:"#000",shadowOpacity:.1,shadowRadius:6,shadowOffset:{width:0,height:4},elevation:3},tagline:{fontSize:10,fontWeight:"500",textTransform:"uppercase",letterSpacing:.8},taglineWide:{fontSize:12,letterSpacing:1.2},footer:{flexDirection:"row",alignItems:"center",paddingTop:16},secondaryBtn:{paddingHorizontal:20,paddingVertical:10,borderRadius:8},secondaryBtnText:{fontSize:14,fontWeight:"500"}});function Ir(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 Er({name:e,renderTeamLogo:t,muted:n,headingFont:o,ink:r,wide:i}){if(!e)/* @__PURE__ */return z(x,{style:[Nr.teamName,{color:n,fontFamily:o}],children:"TBC"});const l=t?.(e);/* @__PURE__ */
175
+ return v(C,{style:Nr.teamMark,children:[null!=l?/* @__PURE__ */z(C,{style:Nr.teamLogo,children:l}):null,/* @__PURE__ */z(x,{style:[Nr.teamName,i&&Nr.teamNameWide,{color:r,fontFamily:o}],children:e})]})}function jr({onSelectEvent:t}){const{theme:n,loading:o,sameGameMultiEvents:r,selectSameGameMultiEvent:i,renderTeamLogo:l,displaySportName:a}=yo(),c=n.colors,s=Ot(n),d=Pt(n),h=gt(n),f=pt(n),{width:u}=S(),g=u>=640,[p,y]=e.useState(null),[m,b]=e.useState(null);return o?/* @__PURE__ */z(C,{style:Nr.container,children:/* @__PURE__ */z(Sr,{colors:yt(n),bodyFont:s,variant:"sport",categoryCount:2})}):/* @__PURE__ */v(C,{style:Nr.container,accessibilityLabel:"Available fixtures",children:[/* @__PURE__ */z(x,{style:[Nr.intro,{color:c.textMuted,fontFamily:s}],children:"All picks in your multi must come from one game."}),0===r.length?/* @__PURE__ */z(C,{accessibilityRole:"text",accessibilityLiveRegion:"polite",style:[Nr.emptyState,{borderColor:c.border,backgroundColor:h}],children:/* @__PURE__ */z(x,{style:[Nr.emptyText,{color:c.textMuted,fontFamily:s}],children:"No fixtures with available propositions."})}):/* @__PURE__ */z(C,{style:[Nr.list,g&&Nr.listWide],children:r.map(e=>{const n=p===e.id,o=m===e.id;/* @__PURE__ */
176
+ return v(k,{accessibilityRole:"button",accessibilityLabel:`Select ${en(e)}`,onPress:()=>{i(e.id),t?.(e.id)},activeOpacity:.85,onMouseEnter:()=>y(e.id),onMouseLeave:()=>y(t=>t===e.id?null:t),onFocus:()=>b(e.id),onBlur:()=>b(t=>t===e.id?null:t),style:[Nr.card,g&&Nr.cardWide,{borderColor:n||o?c.primary:c.border,backgroundColor:h},n&&Nr.cardHovered],children:[/* @__PURE__ */v(C,{style:Nr.cardMain,children:[/* @__PURE__ */v(C,{style:[Nr.matchup,g&&Nr.matchupWide,{backgroundColor:f}],children:[
177
+ /* @__PURE__ */z(Er,{name:e.homeTeam,renderTeamLogo:l,muted:c.textMuted,headingFont:d,ink:c.text,wide:g}),
178
+ /* @__PURE__ */z(x,{style:[Nr.vs,{color:c.textMuted,fontFamily:d}],children:"vs"}),
179
+ /* @__PURE__ */z(Er,{name:e.awayTeam,renderTeamLogo:l,muted:c.textMuted,headingFont:d,ink:c.text,wide:g})]}),/* @__PURE__ */v(x,{style:[Nr.meta,g&&Nr.metaWide,{color:c.textMuted,fontFamily:s}],children:[Ir(e.commenceTime)," · ",e.propositionCount," proposition",1===e.propositionCount?"":"s",e.league||e.sport?` · ${e.league?.toUpperCase()??a(e.sport)}`:""]})]}),/* @__PURE__ */z(C,{style:{flexShrink:0,transform:[{translateX:n?2:0}]},children:/* @__PURE__ */z(vr,{size:22,color:c.textMuted})})]},e.id)})})]})}var Nr=w.create({container:{flex:1},centered:{flex:1,flexDirection:"row",justifyContent:"center",alignItems:"center",padding:32},intro:{fontSize:14,lineHeight:22.75,marginBottom:16},emptyState:{borderWidth:1,borderRadius:16,padding:24,alignItems:"center"},emptyText:{fontSize:14,textAlign:"center"},list:{gap:10},listWide:{gap:12},cardHovered:{shadowColor:"#000",shadowOpacity:.1,shadowRadius:6,shadowOffset:{width:0,height:4},elevation:3},card:{minHeight:64,width:"100%",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderWidth:1,borderRadius:16,paddingHorizontal:14,paddingVertical:14},cardWide:{paddingHorizontal:20,paddingVertical:16},cardMain:{flex:1,minWidth:0},matchup:{flexDirection:"column",alignItems:"flex-start",gap:4,borderRadius:12,paddingHorizontal:12,paddingVertical:10},matchupWide:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6},teamMark:{flexDirection:"row",alignItems:"center",gap:6,minWidth:0,maxWidth:"100%"},teamLogo:{flexShrink:0},teamName:{fontSize:14,fontWeight:"600",flexShrink:1},teamNameWide:{fontSize:16},vs:{fontSize:12,fontWeight:"400"},meta:{marginTop:8,fontSize:11,fontWeight:"500"},metaWide:{fontSize:12}});function Yr({counts:e,onPick:t,onDoubleAction:n,colors:o,align:l="right",direction:s="down",menuShadow:d="0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}){const[h,u]=c(!1),[g,p]=c(!1),[m,b]=c(null),w=a(0),B=a(null),S=a(null),[A,T]=c(null),[L,D]=c(null),M="web"===y.OS,R=36+36*e.length+12,H="up"===s||g?"up":"down";i(()=>{if(!h||!M)return;const e=B.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.scrollX||window.pageXOffset||0,o=window.scrollY||window.pageYOffset||0;T({top:t.top+o,bottom:t.bottom+o,left:t.left+n,right:t.right+n,width:t.width});const r=window.innerHeight-t.bottom,i=t.top;p(r<R&&i>r)},[h,M,R]),r(()=>{if(!h)return b(null),void(M||p(!1));if(M){const e=e=>{const t=B.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||S.current&&S.current.contains(n)||u(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}const e=B.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=f.get("window").height-(t+o);p(r<R&&t>r),D({x:e,y:t,width:n,height:o})})},[h,M,R]);const O=/* @__PURE__ */v(F,{children:[/* @__PURE__ */z(C,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:o.border},children:/* @__PURE__ */z(x,{style:{fontSize:10,fontWeight:"700",color:o.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase"},children:"How many picks?"})}),e.map(e=>/* @__PURE__ */v(k,{onPress:()=>{t(e),u(!1)},accessibilityRole:"menuitem",onMouseEnter:()=>b(e),onMouseLeave:()=>b(t=>t===e?null:t),style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:1,borderTopColor:o.border,backgroundColor:m===e?o.backgroundAlt:"transparent"},children:[/* @__PURE__ */v(x,{style:{fontSize:14,fontWeight:"600",color:o.text},children:[e," picks"]}),/* @__PURE__ */z(C,{style:{backgroundColor:o.backgroundAlt,paddingHorizontal:6,paddingVertical:2,borderRadius:4},children:/* @__PURE__ */z(x,{style:{color:o.text,fontSize:10,fontWeight:"700",letterSpacing:.5},children:"QP"})})]},e))]});/* @__PURE__ */
180
+ return v(C,{ref:B,style:{position:"relative",flexShrink:0},children:[
181
+ /* @__PURE__ */z(bo,{onPress:()=>{if(!n)return void u(e=>!e);const e=Date.now();if(e-w.current<280)return w.current=0,u(!1),void n();w.current=e,setTimeout(()=>{w.current&&Date.now()-w.current>=270&&(w.current=0,u(e=>!e))},290)}}),h&&M&&A&&"undefined"!=typeof document&&W(/* @__PURE__ */z("div",{ref:S,role:"menu",style:{position:"absolute",top:"up"===H?void 0:A.bottom+6,..."up"===H?{top:A.top-6,transform:"translateY(-100%)"}:null,left:"left"===l?A.left:void 0,..."right"===l?{left:A.right,transform:"up"===H?"translate(-100%, -100%)":"translateX(-100%)"}:null,zIndex:20,backgroundColor:o.background,border:`1px solid ${o.border}`,borderRadius:8,minWidth:160,boxShadow:d,overflow:"hidden"},children:O}),document.body),
182
+ /* @__PURE__ */z(_t,{visible:h&&!M,anchor:L,onClose:()=>u(!1),flipUp:"up"===H,align:l,children:/* @__PURE__ */z(C,{accessibilityRole:"menu",style:{elevation:8,backgroundColor:o.background,borderRadius:8,borderWidth:1,borderColor:o.border,minWidth:160,shadowColor:"#000",shadowOffset:{width:0,height:6},shadowOpacity:.18,shadowRadius:12,overflow:"hidden"},children:O})})]})}function Gr({onBack:e,onNext:t,hideActions:n}={}){const{theme:o,headingFont:r,selectedGame:i,propositions:l,selections:a,toggleSelection:c,selectedPropositionCount:s,disableQuickPick:d,answeredCount:h,goToConfirmation:f,selectedEventId:u,sameGameMultiEvents:g,selectSameGameMultiEvent:p}=yo(),y=o.colors,{width:m}=S(),b=m>=640,w=nn(i)&&!u,B=g.find(e=>e.id===u),k=i?je(i,s):{min:0,max:0},F=k.min,W=nn(i)&&u?Math.min(k.max,l.length):k.max,A=F>0&&F===W,T=!(i?.allowed_propositions&&i.allowed_propositions.length>0)&&F>0&&W>F,L=A?W:W||l.length,D=e=>{const t=Math.max(0,Math.min(e??L,l.length));for(const i of Object.keys(a)){const e=Number(i);c(e,a[e])}const n=[...l].sort(()=>Math.random()-.5).slice(0,t),o=[],r=[];for(const i of n)Math.random()<.5?o.push(i):r.push(i);for(const i of o)c(i.id,"yes");for(const i of r)c(i.id,"no")},M=!d&&l.length>0,R=T?Array.from({length:W-F+1},(e,t)=>F+t).filter(e=>e<=l.length):[],H=h>0?h:F||L;/* @__PURE__ */
183
+ return v(C,{style:[Zr.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */v(C,{children:[/* @__PURE__ */z(x,{style:[Zr.title,{fontSize:b?24:20,color:lt(o),fontFamily:r}],children:w?"Choose a Game":"Select Propositions"}),i&&/* @__PURE__ */z(So,{onBack:u?()=>p(null):e,hideActions:n,children:/* @__PURE__ */z(x,{style:[Zr.subtitle,{color:y.textMuted}],children:B?en(B):i.game_name})})]}),M&&(R.length>1?/* @__PURE__ */z(Yr,{counts:R,onPick:e=>{D(e),f(),t?.()},onDoubleAction:()=>{D(H),f(),t?.()},colors:y,menuShadow:Qt(o)}):/* @__PURE__ */z(C,{style:{flexShrink:0},children:/* @__PURE__ */z(bo,{onPress:()=>{D(),f(),t?.()}})}))]})}function Vr({onNext:e,onBack:t,hideButtons:n=!1}){const{theme:o,selectionValid:r,answeredCount:i,selectedGame:l,selectedPropositionCount:a,selectedEventId:c,propositions:s,goToConfirmation:d,overloadPayouts:h,betAmount:f}=yo(),u=o.colors,g=gt(o),p=u.textAlt??u.textMuted,{width:y}=S(),m=y>=640,b="dark"===o.colorScheme,w=l?je(l,a):{min:0,max:0},B=w.min,F=nn(l)&&c?Math.min(w.max,s.length):w.max,W=!!(l?.allowed_propositions&&l.allowed_propositions.length>0),A=!W&&B>0&&F>B&&i>=B&&i<F,T=F-i,L=!W&&B>0&&F>B,D=l?L?B:F||B||l.num_propositions||0:0,M=L?F:D,R=M>0?Math.min(i/M,1):0,H=L&&F>0?B/F*100:0,O=Math.max(0,B-i),P=r&&!!e,I=0===i?"Let's get started":L&&O>0?1===O?"1 to go — almost there":`${O} to go`:A?`${T} more pick${1!==T?"s":""} available`:R>=1?"✓ All selections made":R>=.75?"Almost there!":R>=.5?"Over halfway!":R>=.25?"Getting close":"Nice start",E=L?i>=B?`${i} of maximum ${F}`:`${i} of minimum ${B}`:`${i} / ${D||s.length} picks`,j=f>0?f:20,N=h[i],Y=null!=N&&N>0?N*(j/20):null,G=h[i+1],V=null!=G&&G>0?G*(j/20):null;/* @__PURE__ */
184
+ return z(C,{children:/* @__PURE__ */z(C,{style:{borderWidth:1,borderColor:i>0?u.primary:u.border,borderRadius:12,overflow:"hidden",marginBottom:16,backgroundColor:g,shadowColor:"#000",shadowOpacity:b?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2},children:/* @__PURE__ */v(C,{style:{width:"100%",padding:m?20:16,backgroundColor:i>0?`${u.primary}10`:"transparent"},children:[
185
+ /* @__PURE__ */v(C,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:12,gap:8},children:[/* @__PURE__ */z(x,{style:{fontSize:14,fontWeight:"600",color:i>0?u.primary:p,flexShrink:0},children:E}),P?/* @__PURE__ */z(k,{onPress:()=>{d(),e?.()},style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:u.buttonPrimary},children:/* @__PURE__ */v(x,{style:{fontSize:12,fontWeight:"600",color:u.buttonPrimaryText},children:["Continue with ",i]})}):/* @__PURE__ */z(x,{style:{fontSize:12,fontWeight:"600",color:R>=1?u.success:u.primary,textAlign:"right",flexShrink:1},children:I})]}),
186
+ /* @__PURE__ */v(C,{style:{position:"relative",width:"100%",height:8,borderRadius:999,backgroundColor:u.background,overflow:"hidden"},children:[/* @__PURE__ */z(C,{style:{height:"100%",borderRadius:999,width:`${Math.min(100*R,100)}%`,backgroundColor:r?u.success:u.primary}}),L&&/* @__PURE__ */z(C,{style:{position:"absolute",top:-1,bottom:-1,left:`${H}%`,width:2,marginLeft:-1,borderRadius:1,backgroundColor:g,borderWidth:1,borderColor:`${u.textMuted}55`}})]}),L&&/* @__PURE__ */v(C,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginTop:6},children:[/* @__PURE__ */z(x,{style:{fontSize:11,color:i>=B?u.success:u.textMuted},children:i>=B?`✓ Minimum ${B} reached`:`Minimum ${B}`}),/* @__PURE__ */z(x,{style:{fontSize:11,color:u.textMuted},children:`Max ${F}`})]}),A&&null!=V&&i<F&&/* @__PURE__ */v(x,{style:{fontSize:12,color:u.textMuted,marginTop:8},children:["Play with ",
187
+ /* @__PURE__ */z(x,{style:{color:u.text,fontWeight:"600"},children:Te(j)}),/* @__PURE__ */v(x,null!=Y?{children:[" to win up to ",
188
+ /* @__PURE__ */z(x,{style:{color:u.heading??u.text,fontWeight:"700"},children:Te(Y)}),", add another pick to win up to ",
189
+ /* @__PURE__ */z(x,{style:{color:u.heading??u.text,fontWeight:"700"},children:Te(V)})]}:{children:[" to win up to ",/* @__PURE__ */z(x,{style:{color:u.heading??u.text,fontWeight:"700"},children:Te(V)})]})]})]})})})}function Ur({onNext:t,onBack:n,hideTitle:o,hideActions:r}){const i=yo(),{theme:l,selectedGame:a,propositions:c,propositionsForSportPicker:s,selections:d,toggleSelection:h,loading:f,error:u,showHomeAway:g,disableQuickPick:p,renderTeamLogo:y,filterSport:m,initialSport:b,gameCategory:w,selectedPropositionCount:x,handlePropositionCountChange:B,goToConfirmation:k,goBack:S,selectedCategory:W,setSelectedCategory:A,selectedSport:T,setSelectedSport:L,selectedEventId:D,propositionsForCategoryPicker:M,answeredCount:R}=i;e.useEffect(()=>{a||(i.goToSportSelection(),n?.())},[a,i,n]);const H=e.useMemo(()=>{if(!a)return null;const{min:e,max:t}=je(a,x??void 0);if(e>0&&e===t)return e;const n=Uo(a);return null!=x&&x>0&&("game_set"===n||"pick_your_dividend"===n||Zo(a))?x:null},[a,x]),O=e.useRef(R);e.useEffect(()=>{const e=O.current;O.current=R,null!=H&&e<H&&R===H&&(k(),t?.())},[R,H]);const P=e.useMemo(()=>Pe(M??[]),[M]);e.useEffect(()=>{a&&1===P.length&&W!==P[0]&&A(P[0])},[a,P,W,A]);const I=e.useMemo(()=>{const e=/* @__PURE__ */new Set;for(const t of s??[])t.sport&&e.add(t.sport);return Array.from(e)},[s]);if(e.useEffect(()=>{a&&(P.length>1&&!W||1===I.length&&T!==I[0]&&L(I[0]))},[a,P,W,I,T,L]),!a)return null;const E=P.length>1&&!W,j=!E&&I.length>1&&!T,N=!E&&!j&&nn(a)&&!D,Y=(()=>{if(!nn(a)||!D)return a;const e=Math.min(a.max_propositions??c.length,c.length);return{...a,max_propositions:e,allowed_propositions:a.allowed_propositions?.filter(t=>t<=e)}})(),G=()=>{S(),n?.()};/* @__PURE__ */
190
+ return v(C,{style:Zr.container,children:[!o&&/* @__PURE__ */z(C,{style:{marginBottom:24},children:/* @__PURE__ */z(Gr,{onBack:r?G:void 0,onNext:r?t:void 0,hideActions:r})}),!nn(a)&&/* @__PURE__ */z(xo,{}),
191
+ /* @__PURE__ */z(C,{style:Zr.content,children:E?/* @__PURE__ */z(Or,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>A(e)}):j?/* @__PURE__ */z(Dr,{hideTitle:!0,hideActions:!0,onSelectSport:e=>L(e)}):N?/* @__PURE__ */z(jr,{}):/* @__PURE__ */z(F,{children:/* @__PURE__ */z(fr,{game:Y,propositions:c,selections:d,onToggleSelection:h,onNext:()=>{k(),t?.()},onBack:G,loading:f,error:u,theme:l,hideActions:!0,initialSport:m??b,renderTeamLogo:y,disableQuickPick:!0,selectedPropositionCount:x,onPropositionCountChange:B,showHomeAway:g,gameCategory:w})})}),!r&&!E&&!j&&!N&&/* @__PURE__ */z(C,{style:{marginTop:24},children:/* @__PURE__ */z(Vr,{onNext:t,onBack:n})})]})}var Zr=w.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},subtitle:{fontSize:14},content:{flex:1}});function Kr({tiers:e,selectedCount:t,onSelect:n,colors:o,bodyFont:r,extraBetAmount:i,buttonLabel:l,columnLabel:a="Legs",buildYourOwn:s,quickPickOnly:d,onQuickPick:h,collapsible:f,expanded:u,onExpandedChange:g,summaryTiers:p}){const[y,m]=c(!1),w=u??y,B=null!=i&&20!==i,S=B?`$${Math.round(i)} returns`:"$20 returns",W=e.some(e=>e.payout20>0),A=!!f&&!w,T=W&&!A,L=(p??e).reduce((e,t)=>t.payout20>e?t.payout20:e,0),D=B&&L>0?L*(i/20):L,M=e.length>0?82*e.length+8*Math.max(0,e.length-1):82,R=/* @__PURE__ */v(F,{children:[/* @__PURE__ */v(C,{style:{flexDirection:"column",gap:8,width:70,flexShrink:0},children:[/* @__PURE__ */z(C,{style:{paddingVertical:6,justifyContent:"center"},children:/* @__PURE__ */z(x,{style:[qr.labelText,{color:o.textMuted,fontFamily:r}],children:d?"Quick Pick":a})}),T&&/* @__PURE__ */v(F,{children:[/* @__PURE__ */z(C,{style:{paddingVertical:4,justifyContent:"center"},children:/* @__PURE__ */z(x,{style:[qr.labelText,{color:o.textMuted,fontFamily:r}],children:"Dividend"})}),/* @__PURE__ */z(C,{style:{paddingVertical:4,justifyContent:"center"},children:/* @__PURE__ */z(x,{style:[qr.labelText,{color:o.textMuted,fontFamily:r}],children:S})})]})]}),d?/* @__PURE__ */v(C,{style:{gap:8,alignSelf:"flex-start",width:M},children:[/* @__PURE__ */z(Yr,{counts:(p??e).map(e=>e.count),onPick:e=>h?h(e):n(e),align:"left",direction:"up",colors:{background:o.background??"#ffffff",backgroundAlt:o.backgroundAlt??"#f3f4f6",border:o.border??"#e5e7eb",text:o.text??"#111827"}}),W&&!A&&/* @__PURE__ */z(C,{style:{flexDirection:"row",gap:8},children:e.map(({count:e,payout20:t})=>{const n=B&&t>0?t*(i/20):null;/* @__PURE__ */
192
+ return v(C,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */z(C,{style:[qr.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */v(x,{style:[qr.tableCellText,{color:o.success}],children:[e,"/",e]})}),/* @__PURE__ */z(C,{style:[qr.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */z(x,{style:[qr.tableCellText,{color:o.primary}],children:t>0?Te(n??t):"—"})})]},String(e))})})]}):s?/* @__PURE__ */v(C,{style:{gap:8,alignSelf:"flex-start",width:M},children:[/* @__PURE__ */z(k,{onPress:()=>n(e[0]?.count??0),style:[qr.optionButton,{paddingHorizontal:0,alignSelf:"stretch",alignItems:"center",borderColor:o.buttonPrimary??o.primary,backgroundColor:o.buttonPrimary??o.primary}],children:/* @__PURE__ */z(x,{style:[qr.optionButtonText,{color:o.buttonPrimaryText??"#ffffff",fontFamily:r}],children:"Make Your Selections"})}),W&&!A&&/* @__PURE__ */z(C,{style:{flexDirection:"row",gap:8},children:e.map(({count:e,payout20:t})=>{const n=t>0?Te(B?t*(i/20):t):"—";/* @__PURE__ */
193
+ return v(C,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */z(C,{style:[qr.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */v(x,{style:[qr.tableCellText,{color:o.success}],children:[e,"/",e]})}),/* @__PURE__ */z(C,{style:[qr.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */z(x,{style:[qr.tableCellText,{color:o.primary}],children:n})})]},String(e))})})]}):e.map(({count:e,payout20:a})=>{const c=t===e,s=B&&a>0?a*(i/20):null;/* @__PURE__ */
194
+ return v(C,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */z(k,{onPress:()=>n(e),accessibilityState:{selected:c},style:[qr.optionButton,{alignSelf:"stretch",alignItems:"center",borderColor:c?o.buttonPrimary??o.primary:o.border??o.primary,backgroundColor:c?o.buttonPrimary??o.primary:o.buttonSecondary??o.background}],children:/* @__PURE__ */z(x,{style:[qr.optionButtonText,{color:c?o.buttonPrimaryText??"#ffffff":o.buttonSecondaryText??o.text,fontFamily:r}],numberOfLines:1,children:l?l(e):`Multi ${e}`})}),!A&&a>0&&/* @__PURE__ */v(F,{children:[/* @__PURE__ */z(C,{style:[qr.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */v(x,{style:[qr.tableCellText,{color:o.success}],children:[e,"/",e]})}),B?null!=s&&/* @__PURE__ */z(C,{style:[qr.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */z(x,{style:[qr.tableCellText,{color:o.primary}],children:Te(s)})}):/* @__PURE__ */z(C,{style:[qr.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */z(x,{style:[qr.tableCellText,{color:o.primary}],children:Te(a)})})]})]},String(e))})]});/* @__PURE__ */
195
+ return v(C,{style:{flexDirection:"column",gap:8,alignSelf:"stretch"},children:[d?/* @__PURE__ */z(C,{style:{flexDirection:"row",gap:8,alignItems:"flex-start",paddingBottom:6},children:R}):/* @__PURE__ */z(b,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:{flexDirection:"row",gap:8,alignItems:"flex-start",paddingBottom:6},children:R}),f&&(W?/* @__PURE__ */v(C,{style:{alignSelf:"flex-start",flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4,maxWidth:"100%"},children:[/* @__PURE__ */v(x,{style:{fontSize:12,fontWeight:"600",color:o.text,fontFamily:r},children:["Win up to ",
196
+ /* @__PURE__ */z(x,{style:{color:o.heading??o.text??o.primary},children:Te(D)}),
197
+ /* @__PURE__ */z(x,{style:{color:o.textMuted},children:` for $${B?Math.round(i):20}`})]}),/* @__PURE__ */z(k,{onPress:()=>{return e=!w,void 0===u&&m(e),void g?.(e);var e},accessibilityRole:"button",accessibilityState:{expanded:w},style:{paddingVertical:4,paddingHorizontal:10,borderRadius:6,backgroundColor:w?o.buttonSecondary:o.background??"#ffffff",borderWidth:1,borderColor:w?o.primary??o.border:o.border},children:/* @__PURE__ */z(x,{style:{color:o.text,fontSize:12,fontWeight:"600",fontFamily:r},children:w?"Hide dividends":"Show dividends"})})]}):/* @__PURE__ */z(C,{style:{alignSelf:"flex-start",paddingVertical:2,opacity:0},pointerEvents:"none",children:/* @__PURE__ */z(x,{style:{fontSize:12,fontWeight:"600",fontFamily:r},children:"Show dividends"})}))]})}var qr=w.create({labelText:{fontSize:12,fontWeight:"400"},optionButton:{borderWidth:1,borderRadius:8,paddingHorizontal:12,paddingVertical:6},optionButtonText:{fontSize:14,fontWeight:"600"},tableCell:{paddingHorizontal:8,paddingVertical:4,borderRadius:6,alignItems:"center",justifyContent:"center"},tableCellText:{fontSize:12,fontWeight:"700"}});function Xr({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,selectedGame:r,selectedEventId:i,propositions:l,selections:a,toggleSelection:c,upgradePropositionCount:s,selectedPropositionCount:d,disableQuickPick:h,answeredCount:f}=yo(),u=n.colors,{width:g}=S(),p=g>=640,y=r?je(r,d):{min:0,max:0},m=y.min,b=nn(r)&&i?Math.min(y.max,l.length):y.max,w=m>0&&m===b,B=!(r?.allowed_propositions&&r.allowed_propositions.length>0)&&m>0&&b>m,k=w?b:b||l.length,F=e=>{const t=Math.max(0,Math.min(e??k,l.length));for(const r of Object.keys(a)){const e=Number(r);c(e,a[e])}const{yesPicks:n,noPicks:o}=it(l,t);for(const r of n)c(r.id,"yes");for(const r of o)c(r.id,"no");s(t)},W=!h&&l.length>0,A=B?Array.from({length:b-m+1},(e,t)=>m+t):[],T=f>0?f:m||k;/* @__PURE__ */
198
+ return v(C,{style:[$r.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */v(C,{children:[/* @__PURE__ */z(x,{style:[$r.title,{fontSize:p?24:20,color:lt(n),fontFamily:o}],children:"Place Your Wager"}),r&&/* @__PURE__ */z(So,{onBack:e,hideActions:t,children:/* @__PURE__ */z(x,{style:[$r.subtitle,{color:u.textMuted}],children:r.game_name})})]}),W&&(A.length>1?/* @__PURE__ */z(Yr,{counts:A,onPick:e=>F(e),onDoubleAction:()=>F(T),colors:u,menuShadow:Qt(n)}):/* @__PURE__ */z(C,{style:{flexShrink:0},children:/* @__PURE__ */z(bo,{onPress:()=>F()})}))]})}function Qr({onBack:e,onSubmitted:t}){const n=yo(),{theme:o,selectedGame:r,expectedCorrect:i,betAmount:l,submitting:a,submitError:c,canSubmit:s,payouts:d,selectedPropositionIds:h,screenSize:f}=n,u=o.colors,{width:g}=S(),p=g>=640;if(!r)return null;const y=d[i]??0,m=Ne(r),b=i===h.length,w=m?.enabled&&b,B=e&&"mobile"!==f;/* @__PURE__ */
199
+ return v(C,{style:$r.footer,children:[B&&/* @__PURE__ */z(Jt,{theme:o,variant:"secondary",onPress:e,children:"Back"}),/* @__PURE__ */v(C,{style:$r.footerRight,children:[c?/* @__PURE__ */z(x,{style:[$r.errorText,{color:u.error}],children:c}):null,(y>0||w)&&p&&/* @__PURE__ */v(C,{style:$r.payoutInfo,children:[/* @__PURE__ */z(x,{style:[$r.payoutLabel,{color:u.textMuted}],children:"Potential winnings"}),/* @__PURE__ */v(x,{style:[$r.payoutAmount,{color:u.heading??u.text}],children:[Te(y),w?/* @__PURE__ */z(x,{style:{color:u.warning},children:" + Jackpot"}):null]})]}),
200
+ /* @__PURE__ */z(Jt,{theme:o,variant:"primary",disabled:!s,onPress:async()=>{await n.handleSubmit(),t?.()},children:a?"Placing…":`Place Entry (${Te(l)})`})]})]})}function Jr({onBack:e,onSubmitted:t,hideTitle:n,hideActions:o}){const i=yo(),{theme:l,selectedGame:a,selectedPropositions:c,selections:s,propositions:d,selectedPropositionCount:h,selectedEventId:f,expectedCorrect:u,setExpectedCorrect:g,betAmount:p,setBetAmount:y,submitting:m,submitError:b,canSubmit:w,winningCounts:B,payouts:W,overloadPayouts:A,renderTeamLogo:T,showHomeAway:L,userBalance:D,onRecharge:M,goBack:R,toggleSelection:H,upgradePropositionCount:O,goToSportSelection:P}=i,I=l.colors,{width:E}=S(),j=E>=640;if(r(()=>{a||(P(),e?.())},[a,P,e]),!a)return null;const N=!!(a.allowed_propositions&&a.allowed_propositions.length>0),Y=je(a,h),G=Y.min,V=nn(a)&&f?Math.min(Y.max,d.length):Y.max,U=Object.keys(s).length,Z=G>0&&U<G,K=!N&&G>0&&V>G&&U>=G&&U<V,q=N?[...a.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(h??0)):[],X=N&&q.length>0&&!Z,Q=K||X,J=V-U;I.textAlt??I.text;const $=()=>{R(),e?.()},_=(N?[...a.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===U&&e<(h??1/0)),ee=N&&U<Math.min(...a.allowed_propositions??[1/0]),te=N&&Z&&!ee,ne=qo(a),oe=null!=_?ne.belowRequiredHint(_,h??G):ne.belowRequiredAddOnlyHint(h??G);return r(()=>{!Z||N&&!ee||(P(),e?.())},[Z,N,ee]),/* @__PURE__ */v(C,{style:$r.container,children:[!n&&/* @__PURE__ */z(C,{style:{marginBottom:24},children:/* @__PURE__ */z(Xr,{onBack:e,hideActions:o})}),
201
+ /* @__PURE__ */z(C,{style:$r.content,children:/* @__PURE__ */z(Un,{game:a,propositions:c,selections:s,onToggleSelection:H,onRemoveSelection:()=>{},onSubmit:async()=>{await i.handleSubmit(),t?.()},onBack:$,loading:m,error:b,expectedCorrect:u,onExpectedCorrectChange:g,betAmount:p,onBetAmountChange:y,theme:l,showCustomAmount:!0,betAmountLocked:kn(a),betAmountLockedNote:"Set by your dividend ladder rung.",hideActions:!0,winningCounts:B,payouts:W,renderTeamLogo:T,showHomeAway:L,canSubmit:w,userBalance:D,onRecharge:M,boostBanner:/* @__PURE__ */v(F,{children:[te&&/* @__PURE__ */v(C,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${I.warning}40`,backgroundColor:`${I.warning}10`,flexDirection:j?"row":"column",alignItems:j?"center":"flex-start",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */v(x,{style:{fontSize:j?14:12,color:I.text,flexShrink:1},children:["You have ",
202
+ /* @__PURE__ */v(x,{style:{fontWeight:"700"},children:[U," pick",1!==U?"s":""]}),`. ${oe}`]}),/* @__PURE__ */v(C,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[/* @__PURE__ */z(k,{onPress:$,style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:I.buttonSecondary},children:/* @__PURE__ */z(x,{style:{fontSize:12,fontWeight:"600",color:I.buttonSecondaryText},children:"Add a pick"})}),null!=_&&/* @__PURE__ */z(k,{onPress:()=>O(_),style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:I.buttonPrimary},children:/* @__PURE__ */z(x,{style:{fontSize:12,fontWeight:"600",color:I.buttonPrimaryText},children:ne.switchTierLabel(_)})})]})]}),Q&&/* @__PURE__ */z(C,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${I.primary}30`,backgroundColor:`${I.primary}08`},children:X?(()=>{const e=h??U,t=A[e],n=p>0?p:20,o=null!=t&&t>0?t*(n/20):null;/* @__PURE__ */
203
+ return v(C,{children:[
204
+ /* @__PURE__ */z(x,{style:{fontSize:14,fontWeight:"600",color:I.primary,marginBottom:4},children:ne.overloadTitle}),null!=o&&/* @__PURE__ */v(x,{style:{fontSize:12,color:I.textMuted,marginBottom:8},children:["Currently winning up to ",
205
+ /* @__PURE__ */z(x,{style:{color:I.heading??I.text,fontWeight:"700"},children:Te(o)}),` with ${e} picks`]}),
206
+ /* @__PURE__ */z(Kr,{tiers:q.map(e=>({count:e,payout20:A[e]??0})),selectedCount:void 0,onSelect:e=>{O(e),$()},colors:I,bodyFont:i.bodyFont,extraBetAmount:20!==n?n:void 0,columnLabel:ne.tableColumnLabel,buttonLabel:ne.tierButtonLabel})]})})():/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */v(x,{style:{fontSize:12,color:I.textMuted,flex:1},children:[1===J?"Add ":"Add up to ",
207
+ /* @__PURE__ */v(x,{style:{color:I.primary,fontWeight:"700"},children:[J," more pick",1!==J?"s":""]}),null!=A[V]&&A[V]>0&&/* @__PURE__ */v(x,{children:[" to win up to ",
208
+ /* @__PURE__ */z(x,{style:{color:I.heading??I.text,fontWeight:"700"},children:Te(A[V])}),` with ${V} picks`]})]}),/* @__PURE__ */z(k,{onPress:$,style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:I.buttonPrimary},children:/* @__PURE__ */z(x,{style:{fontSize:12,fontWeight:"600",color:I.buttonPrimaryText},children:"Add picks"})})]})})]})})}),o&&b?/* @__PURE__ */z(C,{style:{marginTop:12,alignItems:"flex-end"},children:/* @__PURE__ */z(x,{style:[$r.errorText,{color:I.error}],children:b})}):null]})}var $r=w.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},subtitle:{fontSize:14},content:{flex:1},footer:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingTop:16},footerRight:{flexDirection:"row",alignItems:"center",gap:12},errorText:{fontSize:12},payoutInfo:{alignItems:"flex-end"},payoutLabel:{fontSize:10,textTransform:"uppercase",letterSpacing:.25},payoutAmount:{fontSize:14,fontWeight:"700"}}),_r=y.select({ios:"Menlo",default:"monospace"});function ei({theme:e,value:t}){/* @__PURE__ */
209
+ return z(C,{style:{alignSelf:"center",flexShrink:0,paddingHorizontal:8,paddingVertical:2,borderRadius:8,backgroundColor:"yes"===t?st(e):dt(e)},children:/* @__PURE__ */z(x,{style:{color:"#ffffff",fontSize:10,fontWeight:"700",letterSpacing:.4,textTransform:"uppercase"},children:"yes"===t?"Yes":"No"})})}function ti({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,placedEntry:i}=yo(),l=n.colors,{width:a}=S(),c=a>=640;/* @__PURE__ */
210
+ return v(C,{style:ri.titleRow,children:[/* @__PURE__ */v(C,{style:ri.titleText,children:[/* @__PURE__ */z(x,{style:[ri.title,c&&ri.titleWide,{color:lt(n),fontFamily:o}],children:"Entry Placed!"}),/* @__PURE__ */z(So,{onBack:e,hideActions:t,children:/* @__PURE__ */z(x,{style:[ri.message,{color:l.textMuted,fontFamily:r}],children:i?/* @__PURE__ */v(F,{children:["Entry"," ",
211
+ /* @__PURE__ */v(x,{style:{color:l.primary,fontWeight:"600",fontFamily:_r},children:["#",i.id]})," ","successfully submitted"]}):"Your entry has been successfully submitted"})})]}),/* @__PURE__ */z(C,{style:[ri.checkCircle,c&&ri.checkCircleWide,{backgroundColor:`${l.success}20`}],children:/* @__PURE__ */z(A,{width:c?28:24,height:c?28:24,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */z(O,{d:"M5 13l4 4L19 7",stroke:l.success,strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})})})]})}function ni({onPlayAgain:e,onDone:t,onShare:n}){const{theme:o,reset:r,placedEntry:i,selectedGame:l,selectedPropositions:a,selections:c,betAmount:s}=yo();return o.colors,/* @__PURE__ */v(C,{style:ri.footer,children:[/* @__PURE__ */z(Jt,{theme:o,variant:"secondary",onPress:()=>{r(),e?.()},children:"Place Another"}),t&&/* @__PURE__ */z(Jt,{theme:o,variant:"primary",onPress:t,children:"Done"})]})}function oi({onPlayAgain:t,onDone:n,onBack:o,onShare:r,hideTitle:i,hideActions:l}){const a=yo(),{theme:c,bodyFont:s,headingFont:d,selectedGame:h,placedEntry:f,betAmount:u,selectedPropositionIds:g,selectedPropositions:p,selections:y,payouts:m,onShare:b}=a,w=c.colors,B=gt(c),k=w.textAlt??w.text,{width:F}=S(),W=F>=640,A={shadowColor:"#000",shadowOpacity:"dark"===c.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2},T=f?.proposition_ids?f.proposition_ids.length:g.length,L=m[T]??null,D=e.useRef(!1);return e.useEffect(()=>{f&&h?D.current=!1:(a.goToSportSelection(),D.current||(D.current=!0,t?t():n?.()))},[f,h,a,t,n]),f?/* @__PURE__ */v(C,{style:ri.container,children:[!i&&/* @__PURE__ */z(C,{style:{marginBottom:24},children:/* @__PURE__ */z(ti,{onBack:o,hideActions:l})}),/* @__PURE__ */v(C,{style:[ri.content,{gap:W?16:12}],children:[/* @__PURE__ */v(C,{style:[ri.summaryCard,W&&ri.summaryCardWide,{backgroundColor:B,borderColor:w.border},A],children:[/* @__PURE__ */v(C,{style:ri.summaryHeader,children:[(()=>{const e=h?h.allowed_propositions&&h.allowed_propositions.length>0&&h.game_name.replace(/\s+\d+\s*$/,"").trim()||h.game_name:"Entry summary";return h?/* @__PURE__ */z(C,{style:{flex:1,minWidth:0},children:/* @__PURE__ */z(co,{iconUrl:Ce(h),gameName:e,height:18,chipColor:w.primary,textColor:w.text,iconColor:w.primaryText,accentColor:c.brand?.accent})}):/* @__PURE__ */z(x,{numberOfLines:1,style:[ri.summaryHeading,W&&ri.summaryHeadingWide,{color:lt(c),fontFamily:d,flex:1}],children:e})})(),/* @__PURE__ */z(C,{style:{backgroundColor:`${w.primary}15`,borderRadius:999,paddingHorizontal:8,paddingVertical:2,flexShrink:0},children:/* @__PURE__ */v(x,{style:{color:w.primary,fontSize:12,fontWeight:"600",fontFamily:s},children:[T," pick",1!==T?"s":""]})})]}),/* @__PURE__ */v(C,{style:ri.statsGrid,children:[
212
+ /* @__PURE__ */v(C,{style:[ri.statCell,W&&ri.statCellWide],children:[/* @__PURE__ */z(x,{style:[ri.statLabel,{color:w.textMuted,fontFamily:s}],children:"Selections"}),/* @__PURE__ */z(x,{style:[ri.statValue,{color:k,fontFamily:s}],children:T})]}),u>0&&/* @__PURE__ */v(C,{style:[ri.statCell,W&&ri.statCellWide],children:[/* @__PURE__ */z(x,{style:[ri.statLabel,{color:w.textMuted,fontFamily:s}],children:"Wager"}),/* @__PURE__ */z(x,{style:[ri.statValue,{color:k,fontFamily:s}],children:Te(u)})]}),null!=L&&L>0&&/* @__PURE__ */v(C,{style:[ri.statCell,W&&ri.statCellWide],children:[/* @__PURE__ */z(x,{style:[ri.statLabel,{color:w.textMuted,fontFamily:s}],children:"Potential win"}),/* @__PURE__ */z(x,{style:[ri.statValue,{color:w.heading??w.text,fontWeight:"700",fontFamily:s}],children:Te(L)})]})]})]}),p.length>0&&/* @__PURE__ */v(C,{style:[ri.summaryCard,W&&ri.summaryCardWide,{backgroundColor:B,borderColor:w.border},A],children:[/* @__PURE__ */z(x,{style:[ri.summaryHeading,W&&ri.summaryHeadingWide,{color:lt(c),fontFamily:d,marginBottom:8}],children:"Your picks"}),/* @__PURE__ */z(C,{style:ri.pickList,children:p.map((e,t)=>{const n=y?.[e.id],o="yes"===n;/* @__PURE__ */
213
+ return v(C,{style:[ri.pickRow,{backgroundColor:w.backgroundAlt}],children:[
214
+ /* @__PURE__ */z(C,{style:{width:20,height:20,borderRadius:10,backgroundColor:w.primary,alignItems:"center",justifyContent:"center",flexShrink:0},children:/* @__PURE__ */z(x,{style:{color:w.primaryText,fontSize:10,fontWeight:"700",fontFamily:s},children:t+1})}),
215
+ /* @__PURE__ */v(C,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */v(x,{numberOfLines:1,style:{color:k,fontSize:W?14:12,fontWeight:"500",fontFamily:s},children:[e.home_team," ",
216
+ /* @__PURE__ */z(x,{style:{color:w.textMuted},children:"vs"})," ",e.away_team]}),/* @__PURE__ */z(x,{numberOfLines:1,style:{color:w.textMuted,fontSize:11,fontFamily:s},children:e.description})]}),null!=n&&/* @__PURE__ */z(ei,{theme:c,value:o?"yes":"no"})]},e.id)})})]})]})]}):null}var ri=w.create({container:{flex:1},content:{flex:1},titleRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingLeft:8},titleText:{flex:1,minWidth:0},checkCircle:{width:48,height:48,borderRadius:999,alignItems:"center",justifyContent:"center",flexShrink:0},checkCircleWide:{width:56,height:56},title:{fontSize:20,fontWeight:"700",lineHeight:28},titleWide:{fontSize:24,lineHeight:32},message:{fontSize:14},summaryCard:{width:"100%",borderRadius:12,padding:16,borderWidth:1},summaryCardWide:{padding:20},summaryHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:12,gap:12},summaryHeading:{fontSize:14,fontWeight:"600"},summaryHeadingWide:{fontSize:16},statsGrid:{flexDirection:"row",flexWrap:"wrap",gap:12},statCell:{flexBasis:"45%",flexGrow:1},statCellWide:{flexBasis:"30%"},statLabel:{fontSize:10,fontWeight:"600",letterSpacing:.25,textTransform:"uppercase"},statValue:{fontSize:14,fontWeight:"600",marginTop:2},pickList:{gap:6},pickRow:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:12,paddingVertical:8,borderRadius:4},footer:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingTop:16}});function ii({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o}=yo(),{width:r}=S(),i=r>=640;/* @__PURE__ */
217
+ return v(C,{style:ai.header,children:[/* @__PURE__ */z(x,{style:[ai.title,{fontSize:i?24:20,color:lt(n),fontFamily:o}],children:"Your Entries"}),/* @__PURE__ */z(So,{onBack:e,hideActions:t})]})}function li({onSelectEntry:e,onBack:t,hideTitle:n,hideActions:o}){const{theme:r,apiUrl:i,apiKey:l,fetchImpl:a,getAuthHeaders:c,userId:s,demoEntries:d,demoGames:h,demoPropositions:f,renderTeamLogo:u,showHomeAway:g,filterSport:p}=yo();/* @__PURE__ */
218
+ return v(C,{style:ai.container,children:[!n&&/* @__PURE__ */z(C,{style:{marginBottom:24},children:/* @__PURE__ */z(ii,{onBack:t,hideActions:o})}),/* @__PURE__ */z(C,{style:ai.content,children:/* @__PURE__ */z(fo,{apiUrl:i,apiKey:l,fetchImpl:a,getAuthHeaders:c,userId:s,demoEntries:d,demoGames:h,demoPropositions:f,onSelectEntry:e,theme:r,renderTeamLogo:u,showHomeAway:g,filterSport:p})})]})}var ai=w.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function ci(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 si({ink:e,ball:t,size:n,balls:o=1}){/* @__PURE__ */
219
+ return v(A,{width:n,height:n,viewBox:"2 12 76 62",fill:"none",children:[
220
+ /* @__PURE__ */z(R,{x1:"9",y1:"18",x2:"71",y2:"18",stroke:e,strokeWidth:2.5,strokeLinecap:"round"}),
221
+ /* @__PURE__ */z(O,{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:.9}),
222
+ /* @__PURE__ */z(O,{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"}),
223
+ /* @__PURE__ */z(D,{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__ */z(T,{cx:e.cx,cy:e.cy,r:e.r,fill:t},n))]})}function di({ink:e,ball:t,size:n}){/* @__PURE__ */
224
+ return v(A,{width:n,height:n,viewBox:"0 0 100 100",fill:"none",children:[
225
+ /* @__PURE__ */z(T,{cx:"50",cy:"50",r:"34",stroke:e,strokeWidth:3,opacity:.9}),
226
+ /* @__PURE__ */z(T,{cx:"50",cy:"50",r:"23",stroke:e,strokeWidth:3,opacity:.65}),
227
+ /* @__PURE__ */z(T,{cx:"50",cy:"50",r:"8",fill:t}),
228
+ /* @__PURE__ */z(R,{x1:"80",y1:"20",x2:"55",y2:"45",stroke:e,strokeWidth:4,strokeLinecap:"round"}),
229
+ /* @__PURE__ */z(O,{d:"M50 50 l8 -3 -3 8 z",fill:e})]})}function hi({ink:e,ball:t,size:n}){const o=[{x:16,h:22},{x:40,h:40},{x:64,h:60}];/* @__PURE__ */
230
+ return v(A,{width:n,height:n,viewBox:"0 0 100 100",fill:"none",children:[
231
+ /* @__PURE__ */z(R,{x1:"10",y1:"84",x2:"90",y2:"84",stroke:e,strokeWidth:2,opacity:.5}),o.map((n,r)=>/* @__PURE__ */z(I,{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)),
232
+ /* @__PURE__ */z(O,{d:"M14 60 L38 48 L62 30 L86 14",stroke:e,strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),
233
+ /* @__PURE__ */z(O,{d:"M86 14 l-9 1 M86 14 l1 9",stroke:e,strokeWidth:3,strokeLinecap:"round"})]})}function fi({kind:e,balls:t,...n}){return"safety_net"===e?/* @__PURE__ */z(si,{...n,balls:t}):/* @__PURE__ */z("pick"===e?hi:di,{...n})}function ui({kind:e,size:t=56,balls:n}){const{theme:o}=yo(),r=o.colors,i=o.brand?.chip??r.primary,l=o.brand?.icon??r.primaryText,a=ht(o);/* @__PURE__ */
234
+ return z(C,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:i,borderWidth:1,borderColor:ci(l,.16),alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */z(fi,{kind:e,ink:l,ball:a,balls:n,size:Math.round(.68*t)})})}function gi({option:e,renderDividends:t}){const{theme:n}=yo(),o=n.colors,r=Pt(n),i=o.primary,l=ht(n),a=e.dividends??[];return t?/* @__PURE__ */z(F,{children:t(e)}):/* @__PURE__ */v(C,{style:Bi.dividends,children:[/* @__PURE__ */v(C,{style:Bi.dividendRow,children:[/* @__PURE__ */z(x,{style:[Bi.dividendsCaption,{color:o.textMuted}],children:"IF YOU LAND"}),/* @__PURE__ */v(x,{style:[Bi.dividendsCaption,{color:o.textMuted}],children:["$",20," RETURNS"]})]}),a.map((t,n)=>{const a=e.tierLegs?.[n];/* @__PURE__ */
235
+ return v(C,{style:Bi.dividendTierRow,children:[/* @__PURE__ */v(C,{style:Bi.dividendLabelCol,children:[/* @__PURE__ */z(x,{style:[Bi.dividendLabel,{color:o.text}],children:t.label}),null!=a&&a>0&&/* @__PURE__ */v(C,{style:Bi.tierLegs,accessibilityElementsHidden:!0,importantForAccessibility:"no-hide-descendants",children:[Array.from({length:a}).map((e,t)=>/* @__PURE__ */z(C,{style:[Bi.tierLegDot,{backgroundColor:i}]},t)),0===t.misses&&/* @__PURE__ */z(C,{style:[Bi.tierLegBall,{backgroundColor:l}]})]})]}),/* @__PURE__ */z(x,{style:[Bi.dividendMult,{color:i,fontFamily:r}],children:Te(t.payout20)})]},t.misses)})]})}function pi({option:e,renderDividends:t}){const{theme:o}=yo(),l=o.colors,s=e.dividends??[],d=s.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[h,u]=c(!1),g=a(null),p=a(null),[m,b]=c(null),[w,B]=c(!1),[S,A]=c(null),T="web"===y.OS,L=40+36*Math.max(s.length,1)+12,D=n(()=>{const e=g.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom,o=t.top,r=n<L&&o>n;b({left:t.left,top:r?t.top-6:t.bottom+6,flipUp:r})},[L]);i(()=>{if(!h||!T)return void b(null);D();const e=()=>u(!1),t=()=>D();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[h,T,D]),r(()=>{if(!h)return;if(T){const e=e=>{const t=g.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||p.current&&p.current.contains(n)||u(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}const e=g.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=f.get("window").height-(t+o);B(r<L&&t>r),A({x:e,y:t,width:n,height:o})})},[h,T,L]);const M=t?/* @__PURE__ */z(C,{style:{paddingHorizontal:12,paddingVertical:8},children:t(e)}):/* @__PURE__ */v(F,{children:[/* @__PURE__ */z(C,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:l.border},children:/* @__PURE__ */v(x,{style:{fontSize:10,fontWeight:"700",color:l.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase"},children:["Dividends for $",20]})}),s.map((e,t)=>/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:0===t?0:1,borderTopColor:l.border,gap:12},children:[/* @__PURE__ */z(x,{style:{fontWeight:"700",color:l.text,fontSize:13,flex:1},children:e.label}),/* @__PURE__ */z(x,{style:{fontWeight:"700",color:e.payout20>0?l.heading??l.text:l.textMuted,fontSize:13,textAlign:"right"},children:e.payout20>0?Te(e.payout20):"—"})]},e.misses))]});/* @__PURE__ */
236
+ return v(C,{style:{alignSelf:"center",maxWidth:"100%",width:"100%",alignItems:"center"},children:[/* @__PURE__ */v(C,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",columnGap:8,rowGap:4,maxWidth:"100%"},children:[d>0?/* @__PURE__ */v(x,{style:{fontSize:12,fontWeight:"600",color:l.text},children:["Win up to ",
237
+ /* @__PURE__ */z(x,{style:{color:l.heading??l.text},children:Te(d)}),
238
+ /* @__PURE__ */v(x,{style:{color:l.textMuted},children:[" for $",20]})]}):null,/* @__PURE__ */v(C,{ref:g,collapsable:!1,style:{position:"relative",alignSelf:"flex-start"},children:[/* @__PURE__ */z(k,{onPress:()=>u(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:h},style:{paddingVertical:4,paddingHorizontal:10,borderRadius:6,backgroundColor:h?l.buttonSecondary:l.background,borderWidth:1,borderColor:h?l.primary??l.border:l.border},children:/* @__PURE__ */z(x,{style:{color:l.text,fontSize:12,fontWeight:"600"},children:h?"Hide dividends":"Show dividends"})}),/* @__PURE__ */z(_t,{visible:h&&!T,anchor:S,onClose:()=>u(!1),flipUp:w,align:"left",children:/* @__PURE__ */z(C,{style:{elevation:8,backgroundColor:l.background,borderRadius:8,borderWidth:1,borderColor:l.border,minWidth:220,shadowColor:"#000",shadowOffset:{width:0,height:6},shadowOpacity:.18,shadowRadius:12,overflow:"hidden"},children:M})})]})]}),h&&T&&m&&"undefined"!=typeof document?W(/* @__PURE__ */z("div",{ref:p,style:{position:"fixed",left:m.left,top:m.top,transform:m.flipUp?"translateY(-100%)":void 0,zIndex:9999,backgroundColor:l.background,border:`1px solid ${l.border}`,borderRadius:8,minWidth:220,overflow:"hidden",boxShadow:"0 8px 24px rgba(0,0,0,0.18)"},children:M}),document.body):null]})}function yi({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=yo(),i=r.colors,l=Pt(r),a=lt(r),s=i.primary,d=i.selectionCard??i.backgroundAlt,{width:h}=S(),f=h>=640,u="safety_net"===e?Math.max(1,(t.detail?.length??2)-1):void 0,g=!!o||(t.dividends?.length??0)>0,p=g&&!!t.dividendsInline,[y,m]=c(!1);/* @__PURE__ */
239
+ return v(C,{onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),style:[Bi.card,f&&Bi.cardWide,{backgroundColor:d,borderColor:y?s:i.border,shadowColor:y?s:"#000",shadowOpacity:y?.28:.08,shadowRadius:y?14:8,shadowOffset:{width:0,height:y?12:8},elevation:y?4:1,transform:[{translateY:y?-2:0}]}],children:[/* @__PURE__ */v(k,{onPress:n,activeOpacity:.85,accessibilityRole:"button",style:Bi.cardMain,children:[
240
+ /* @__PURE__ */z(ui,{kind:e,balls:u,size:60}),
241
+ /* @__PURE__ */v(C,{style:Bi.cardText,children:[
242
+ /* @__PURE__ */z(x,{style:[Bi.cardTitle,{color:a,fontFamily:l}],children:t.label}),t.stat?/* @__PURE__ */z(C,{style:[Bi.statChip,{backgroundColor:ci(s,.12)}],children:/* @__PURE__ */z(x,{style:[Bi.statChipText,{color:s}],children:t.stat.toUpperCase()})}):null,
243
+ /* @__PURE__ */z(C,{style:Bi.detailBlock,children:t.detail?.map(e=>/* @__PURE__ */z(x,{style:[Bi.detailLine,{color:i.textMuted}],children:e},e))})]}),
244
+ /* @__PURE__ */z(C,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:y?2:0}]},children:/* @__PURE__ */z(A,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */z(O,{d:"m9 6 6 6-6 6",stroke:s,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]}),g?/* @__PURE__ */z(C,{style:[Bi.dividendsWrap,{borderTopColor:ci(a,.08)}],children:/* @__PURE__ */z(p?gi:pi,{option:t,renderDividends:o})}):null]})}function mi({kind:e,highlights:t,onSelect:n,accessibilityLabel:o}){const{theme:r}=yo(),i=r.colors,l=lt(r),a=ht(r),s=i.primary,d=i.selectionCard??i.backgroundAlt,{width:h}=S(),f=h>=640,[u,g]=c(!1);/* @__PURE__ */
245
+ return z(C,{onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),style:[Bi.card,f&&Bi.cardWide,{backgroundColor:d,borderColor:u?s:i.border,shadowColor:u?s:"#000",shadowOpacity:u?.28:.08,shadowRadius:u?14:8,shadowOffset:{width:0,height:u?12:8},elevation:u?4:1,transform:[{translateY:u?-2:0}]}],children:/* @__PURE__ */v(k,{onPress:n,activeOpacity:.85,accessibilityRole:"button",accessibilityLabel:o,style:Bi.cardMain,children:[
246
+ /* @__PURE__ */z(ui,{kind:e,size:60}),
247
+ /* @__PURE__ */z(C,{style:{flex:1,minWidth:0,gap:8},children:t.map(e=>/* @__PURE__ */v(C,{style:Bi.bulletRow,children:[/* @__PURE__ */z(C,{style:[Bi.dot,{backgroundColor:a}]}),/* @__PURE__ */z(x,{style:[Bi.bulletText,{color:l}],children:e})]},e))}),
248
+ /* @__PURE__ */z(C,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:u?2:0}]},children:/* @__PURE__ */z(A,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */z(O,{d:"m9 6 6 6-6 6",stroke:s,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})})}function bi({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o,selectedPropositionCount:r}=yo(),i=Pt(n),l=n.colors,a=bn(o,r),{width:c}=S(),s=c<640;/* @__PURE__ */
249
+ return v(C,{style:[Bi.header,s&&Bi.headerCompact],children:[/* @__PURE__ */z(x,{accessibilityRole:"header",style:[Bi.sectionTitle,s&&Bi.sectionTitleCompact,{color:l.primary,fontFamily:i}],children:a?.title??"About this game"}),/* @__PURE__ */z(So,{onBack:e,hideActions:t,children:o?/* @__PURE__ */v(x,{style:[Bi.subtitle,s&&Bi.subtitleCompact,{color:l.textMuted}],numberOfLines:2,children:[o.game_name,a?.subtitle?` · ${a.subtitle}`:""]}):null})]})}function wi({onContinue:e,canContinue:t,continueLabel:n="Continue"}){const{theme:o,screenSize:r}=yo(),i=o.colors;return e&&"mobile"!==r?/* @__PURE__ */z(C,{style:Bi.footer,children:/* @__PURE__ */z(k,{onPress:e,disabled:!t,accessibilityRole:"button",accessibilityState:{disabled:!t},style:[Bi.smallBtn,{backgroundColor:i.buttonPrimary,opacity:t?1:.45}],children:/* @__PURE__ */z(x,{style:[Bi.smallBtnText,{color:i.buttonPrimaryText}],children:n})})}):null}function xi({onContinue:e,onBack:t,hideTitle:n,config:o,renderDividends:r,backLabel:i="Games"}){const{theme:a,selectedGame:c,selectedPropositionCount:s,setExpectedCorrect:d,handlePropositionCountChange:h,bodyFont:f,screenSize:u}=yo(),g=a.colors,p=Pt(a),y="mobile"===u,{width:m}=S(),b=m>=640,w=l(()=>o??bn(c,s),[o,c,s]),B=w?.options??[],k=t=>{null!=t?.expectedCorrect&&d(t.expectedCorrect),null!=t?.propositionCount&&h(t.propositionCount),e?.()};if(!c||!w)/* @__PURE__ */return z(C,{children:/* @__PURE__ */z(x,{style:{color:g.textMuted,fontFamily:f},children:"No rule setup required."})});const F=w.kind,W=w.headline??w.heroTitle,A=w.continueLabel??"Continue";/* @__PURE__ */
250
+ return v(C,{style:[Bi.container,{backgroundColor:g.background}],children:[t?/* @__PURE__ */z(C,{style:Bi.backRow,children:/* @__PURE__ */z(Co,{onBack:t,label:i})}):null,/* @__PURE__ */v($t,{style:Bi.inner,children:[n?null:/* @__PURE__ */z(x,{accessibilityRole:"header",style:[Bi.sectionTitle,Bi.sectionTitleInBody,{color:g.primary,fontFamily:p,textAlign:"center"}],children:w.title}),
251
+ /* @__PURE__ */v(C,{style:Bi.headerBlock,children:[
252
+ /* @__PURE__ */z(co,{iconUrl:Ce(c),gameName:c.game_name,height:y?24:32,chipColor:g.primary,textColor:g.text,iconColor:g.primaryText,accentColor:a.brand?.accent,compact:y}),w.subtitle?/* @__PURE__ */z(x,{style:[Bi.pickSubtitle,{color:g.textMuted}],children:w.subtitle}):null,W||w.heroTagline?/* @__PURE__ */z(x,{style:[Bi.tagline,{color:g.textMuted}],children:w.heroTagline??W}):null]}),B.length>0?/* @__PURE__ */z(C,{style:[Bi.cardList,b&&B.length>1&&Bi.cardGrid],children:B.map(e=>/* @__PURE__ */z(C,{style:b&&B.length>1?Bi.cardCell:void 0,children:/* @__PURE__ */z(yi,{kind:F,option:e,onSelect:()=>k(e),renderDividends:r})},e.id))}):w.highlights&&w.highlights.length>0?/* @__PURE__ */z(mi,{kind:F,highlights:w.highlights,onSelect:()=>k(),accessibilityLabel:A}):null]})]})}var Bi=w.create({container:{flex:1},backRow:{paddingHorizontal:16,marginBottom:4},inner:{flex:1,paddingHorizontal:16,maxWidth:768,width:"100%",alignSelf:"center"},header:{marginBottom:8,paddingHorizontal:16},headerCompact:{paddingHorizontal:12},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},sectionTitleCompact:{fontSize:10,letterSpacing:1.4,marginBottom:12},sectionTitleInBody:{marginBottom:12},subtitle:{fontSize:14,flexShrink:1},subtitleCompact:{fontSize:12},headerBlock:{alignItems:"center",marginBottom:24},pickSubtitle:{fontSize:13,marginTop:8},tagline:{fontSize:14,lineHeight:20,textAlign:"center",maxWidth:384,marginTop:12},cardList:{gap:12},cardGrid:{flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},cardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"},card:{flexGrow:1,borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},cardWide:{paddingHorizontal:20,paddingVertical:20},cardMain:{flexDirection:"row",alignItems:"flex-start",gap:14,flexGrow:1},cardText:{flex:1,minWidth:0,gap:5},cardTitle:{fontSize:19,fontWeight:"800",letterSpacing:-.3},statChip:{alignSelf:"flex-start",borderRadius:999,paddingHorizontal:8,paddingVertical:3},statChipText:{fontSize:9,fontWeight:"700",letterSpacing:.6},detailBlock:{minHeight:60,gap:2,justifyContent:"flex-start"},detailLine:{fontSize:13,lineHeight:18},dividendsWrap:{marginTop:12,paddingTop:12,borderTopWidth:1},dividends:{gap:5},dividendsCaption:{fontSize:9,fontWeight:"600",letterSpacing:1},dividendRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",gap:12},dividendTierRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},dividendLabelCol:{flexShrink:1,minWidth:0,gap:3},dividendLabel:{fontSize:13},tierLegs:{flexDirection:"row",alignItems:"center",gap:3},tierLegDot:{width:5,height:5,borderRadius:1.5,opacity:.85},tierLegBall:{width:7,height:7,borderRadius:999,marginLeft:2},dividendMult:{fontSize:15,fontWeight:"800",fontVariant:["tabular-nums"]},radio:{width:24,height:24,borderRadius:12,borderWidth:2,alignItems:"center",justifyContent:"center"},bulletRow:{flexDirection:"row",alignItems:"flex-start",gap:12},dot:{width:6,height:6,borderRadius:3,marginTop:7},bulletText:{flex:1,fontSize:15,lineHeight:21},footer:{flexDirection:"row",justifyContent:"flex-end",paddingTop:16,paddingHorizontal:16},smallBtn:{paddingHorizontal:20,paddingVertical:11,borderRadius:10},smallBtnText:{fontSize:14,fontWeight:"700"}});function ki(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 Ci({iconUrl:e,size:t=56}){const{theme:n}=yo(),o=n.colors,r=n.brand?.chip??o.primary,i=n.brand?.icon??o.primaryText,l=ht(n);/* @__PURE__ */
253
+ return z(C,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:r,borderWidth:1,borderColor:ki(i,.16),alignItems:"center",justifyContent:"center",shadowColor:r,shadowOpacity:.45,shadowRadius:9,shadowOffset:{width:0,height:4},elevation:2},children:/* @__PURE__ */z(Nt,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:i,accentColor:l})})}function Si({legs:e,prizeBall:t=!0}){const{theme:n}=yo(),o=n.colors.primary,r=ht(n);/* @__PURE__ */
254
+ return v(C,{style:{flexDirection:"row",alignItems:"center"},children:[Array.from({length:e}).map((e,t)=>/* @__PURE__ */z(C,{style:{width:5,height:5,borderRadius:1.5,backgroundColor:o,opacity:.85,marginRight:3}},t)),t?/* @__PURE__ */z(C,{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}}):null]})}function Fi({tile:e,label:t,stat:n,detail:o,onSelect:r,children:i}){const{theme:l}=yo(),a=l.colors,s=Pt(l),d=lt(l),h=a.primary,f=a.selectionCard??a.backgroundAlt,{width:u}=S(),g=u>=640,[p,y]=c(!1);/* @__PURE__ */
255
+ return v(C,{onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),style:[zi.card,g&&zi.cardWide,{backgroundColor:f,borderColor:p?h:a.border,shadowColor:p?h:"#000",shadowOpacity:p?.28:.08,shadowRadius:p?14:10,shadowOffset:{width:0,height:p?12:8},elevation:p?4:1,transform:[{translateY:p?-2:0}]}],children:[/* @__PURE__ */v(k,{onPress:r,activeOpacity:.85,style:[zi.cardMain,g&&zi.cardMainWide],children:[e,
256
+ /* @__PURE__ */v(C,{style:zi.cardText,children:[
257
+ /* @__PURE__ */z(x,{style:[zi.cardTitle,g&&zi.cardTitleWide,{color:d,fontFamily:s}],children:t}),n?/* @__PURE__ */z(C,{style:[zi.statChip,{backgroundColor:ki(h,.12)}],children:/* @__PURE__ */z(x,{style:[zi.statChipText,{color:h}],children:n.toUpperCase()})}):null,o&&o.length>0?/* @__PURE__ */z(C,{style:zi.detailBlock,children:o.map(e=>/* @__PURE__ */z(x,{style:[zi.detailLine,g&&zi.detailLineWide,{color:a.textMuted}],children:e},e))}):null]}),
258
+ /* @__PURE__ */z(C,{style:[zi.chevron,{transform:[{translateX:p?2:0}]}],children:/* @__PURE__ */z(A,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */z(O,{d:"m9 6 6 6-6 6",stroke:h,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]}),i?/* @__PURE__ */z(C,{style:[zi.childrenWrap,{borderTopColor:ki(d,.08)}],children:i}):null]})}var zi=w.create({card:{flexGrow:1,borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},cardWide:{paddingHorizontal:20,paddingVertical:20},cardMain:{flexDirection:"row",alignItems:"flex-start",gap:14,flexGrow:1},cardMainWide:{gap:16},cardText:{flex:1,minWidth:0,gap:6},cardTitle:{fontSize:18,fontWeight:"800",letterSpacing:-.45},cardTitleWide:{fontSize:20,letterSpacing:-.5},statChip:{alignSelf:"flex-start",borderRadius:999,paddingHorizontal:8,paddingVertical:2},statChipText:{fontSize:9,fontWeight:"700",letterSpacing:.72},detailBlock:{gap:2},detailLine:{fontSize:12,lineHeight:17},detailLineWide:{fontSize:13,lineHeight:18},chevron:{alignSelf:"center",flexShrink:0},childrenWrap:{marginTop:12,paddingTop:12,borderTopWidth:1}});function vi({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=yo(),r=Pt(n),i=n.colors,{width:l}=S(),a=l<640;/* @__PURE__ */
259
+ return v(C,{style:[Ai.header,a&&Ai.headerCompact],children:[/* @__PURE__ */z(x,{style:[Ai.sectionTitle,a&&Ai.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"The fastest multi"}),/* @__PURE__ */z(So,{onBack:e,hideActions:t,children:o?/* @__PURE__ */z(x,{style:[Ai.subtitle,a&&Ai.subtitleCompact,{color:i.textMuted}],numberOfLines:2,children:o.game_name}):null})]})}function Wi({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:f,setBetAmount:u,quickPickGame:g,goToSportSelection:p,screenSize:y}=yo(),m=a.colors,b="mobile"===y,w=Ot(a),F=Pt(a),W=lt(a),A=gt(a),{width:T}=S(),L=T>=640,[D,M]=c(!1),R=l(()=>r??Ao(s),[r,s]),[H,O]=c(()=>R?null!=d&&R.legOptions.includes(d)?d:R.defaultLegs:8),[P,I]=c(()=>R?.defaultStake??20);if(!s||!vo(s)||!R)/* @__PURE__ */return z(C,{style:[Ai.container,{backgroundColor:m.background}],children:/* @__PURE__ */z(x,{style:{color:m.textMuted,fontFamily:w},children:"No game set available."})});const E=Wo(P,H,{operatorMargin:R.operatorMargin,perLegProbability:R.perLegProbability}),j=P>=R.minStake,N=(e,t)=>/* @__PURE__ */v(C,{style:Ai.controlLabelRow,children:[/* @__PURE__ */z(x,{style:[Ai.controlLabelText,{color:m.textMuted}],children:e}),/* @__PURE__ */z(x,{style:[Ai.controlValueText,{color:W}],children:t})]});/* @__PURE__ */
260
+ return v(C,{style:[Ai.container,{backgroundColor:m.background}],children:[n?/* @__PURE__ */z(C,{style:Ai.backRow,children:/* @__PURE__ */z(Co,{onBack:n,label:i})}):null,/* @__PURE__ */v($t,{style:Ai.inner,children:[o?null:/* @__PURE__ */z(x,{style:[Ai.sectionTitle,Ai.sectionTitleInBody,L&&Ai.sectionTitleInBodyWide,{color:m.primary,fontFamily:F,textAlign:"center"}],children:"The fastest multi"}),
261
+ /* @__PURE__ */v(C,{style:[Ai.headerBlock,L&&Ai.headerBlockWide],children:[/* @__PURE__ */z(co,{iconUrl:Ce(s),gameName:s.game_name,height:b?24:32,chipColor:m.primary,textColor:m.text,iconColor:m.primaryText,accentColor:a.brand?.accent,compact:b}),/* @__PURE__ */z(x,{style:[Ai.tagline,L&&Ai.taglineWide,{color:m.textMuted}],children:R.tagline})]}),
262
+ /* @__PURE__ */v(C,{style:[Ai.ticket,L&&Ai.ticketWide,{backgroundColor:A,borderColor:m.border,shadowColor:W,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[N("Legs",`${H} legs`),
263
+ /* @__PURE__ */z(C,{style:Ai.chipRow,children:R.legOptions.map(e=>{const t=e===H;/* @__PURE__ */
264
+ return z(k,{onPress:()=>O(e),accessibilityRole:"radio",accessibilityState:{selected:t},activeOpacity:.8,style:[Ai.chip,{backgroundColor:t?m.primary:"transparent",borderColor:t?m.primary:m.border}],children:/* @__PURE__ */z(x,{style:[Ai.chipText,{color:t?m.primaryText:m.textMuted}],children:e})},e)})}),
265
+ /* @__PURE__ */v(C,{style:Ai.hintRow,children:[/* @__PURE__ */z(x,{style:[Ai.hintText,{color:m.textMuted}],children:"Easier to land"}),/* @__PURE__ */z(x,{style:[Ai.hintText,{color:m.textMuted}],children:"Bigger prize"})]}),
266
+ /* @__PURE__ */v(C,{style:Ai.stakeBlock,children:[N("Stake",Te(P)),
267
+ /* @__PURE__ */v(C,{style:[Ai.inputWrap,{borderColor:D?m.borderFocus??m.primary:m.border,backgroundColor:m.backgroundAlt}],children:[/* @__PURE__ */z(x,{style:[Ai.inputPrefix,{color:m.textMuted}],children:"$"}),/* @__PURE__ */z(B,{keyboardType:"decimal-pad",placeholder:"Enter stake",placeholderTextColor:m.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>M(!0),onBlur:()=>M(!1),value:P?String(P):"",onChangeText:e=>{if(""===e)return void I(0);const t=Number(e);Number.isFinite(t)&&I((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==R.maxStake?Math.min(t,R.maxStake):t})(t))},style:[Ai.input,{color:m.textAlt??m.text,fontFamily:w}]})]}),
268
+ /* @__PURE__ */z(C,{style:Ai.chipRow,children:R.quickStakes.map(e=>{const t=e===P;/* @__PURE__ */
269
+ return z(k,{onPress:()=>I(e),activeOpacity:.8,style:[Ai.stakeChip,{backgroundColor:t?m.primary:"transparent",borderColor:t?m.primary:m.border}],children:/* @__PURE__ */v(x,{style:[Ai.chipText,{color:t?m.primaryText:m.textMuted}],children:["$",e]})},e)})}),!j&&P>0?/* @__PURE__ */v(x,{style:[Ai.errorText,{color:m.error}],children:["Minimum stake is ",Te(R.minStake),"."]}):null]}),
270
+ /* @__PURE__ */v(C,{style:[Ai.dividendBlock,{borderTopColor:ki(W,.08)}],children:[
271
+ /* @__PURE__ */v(C,{style:Ai.dividendCaptionRow,children:[/* @__PURE__ */v(x,{style:[Ai.dividendCaption,{color:m.textMuted}],children:["If all ",H," land"]}),/* @__PURE__ */v(x,{style:[Ai.dividendCaption,{color:m.textMuted}],children:[Te(P)," returns"]})]}),
272
+ /* @__PURE__ */v(C,{style:Ai.dividendMainRow,children:[/* @__PURE__ */v(C,{style:Ai.dividendMainLeft,children:[/* @__PURE__ */z(x,{style:[Ai.perfectTicket,{color:m.text}],children:"Perfect ticket"}),/* @__PURE__ */z(Si,{legs:H})]}),/* @__PURE__ */z(x,{style:[Ai.prize,L&&Ai.prizeWide,{color:m.primary,fontFamily:F}],children:Te(E.prize)})]}),
273
+ /* @__PURE__ */v(x,{style:[Ai.multipleLine,{color:m.textMuted}],children:[(Y=E.multiple,`×${(Math.round(10*Y)/10).toLocaleString("en-US",{maximumFractionDigits:1})}`)," your stake · total return, stake included"]}),
274
+ /* @__PURE__ */z(x,{style:[Ai.allOrNothing,{color:m.textMuted}],children:"All or nothing. Miss a single leg and the ticket does not pay."})]})]}),
275
+ /* @__PURE__ */v(C,{style:[Ai.modeCards,L&&Ai.modeCardsWide],children:[/* @__PURE__ */z(C,{style:L?Ai.modeCardCell:void 0,children:/* @__PURE__ */z(Fi,{tile:/* @__PURE__ */z(Ci,{iconUrl:Ce(s),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:()=>{j&&(h(H),f(H),u(P),p(),t?.())}})}),/* @__PURE__ */z(C,{style:L?Ai.modeCardCell:void 0,children:/* @__PURE__ */z(Fi,{tile:/* @__PURE__ */z(Ci,{iconUrl:`${we}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{j&&(f(H),u(P),g(s,H),e?.())}})})]})]})]});var Y}var Ai=w.create({container:{flex:1},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},headerCompact:{paddingHorizontal:12},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},sectionTitleCompact:{fontSize:10,letterSpacing:1.4,marginBottom:12},sectionTitleInBody:{marginBottom:16},sectionTitleInBodyWide:{marginBottom:20},subtitle:{fontSize:14,flexShrink:1},subtitleCompact:{fontSize:12},headerBlock:{alignItems:"center",marginBottom:24},headerBlockWide:{marginBottom:28},tagline:{fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384,marginTop:12},taglineWide:{fontSize:15,lineHeight:24},ticket:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},ticketWide:{paddingHorizontal:20,paddingVertical:20},controlLabelRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",marginBottom:8},controlLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},controlValueText:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},chipRow:{flexDirection:"row",flexWrap:"wrap",gap:6},chip:{flexGrow:1,minWidth:40,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},stakeChip:{flexGrow:1,minWidth:48,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},chipText:{fontSize:14,fontWeight:"700"},hintRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",marginTop:8},hintText:{fontSize:11,fontStyle:"italic"},stakeBlock:{marginTop:16},inputWrap:{flexDirection:"row",alignItems:"center",borderWidth:1,borderRadius:8,paddingHorizontal:12},inputPrefix:{fontSize:16,fontWeight:"700",marginRight:4},input:{flex:1,paddingVertical:12,fontSize:18,fontWeight:"600",fontVariant:["tabular-nums"]},errorText:{fontSize:12,marginTop:8},dividendBlock:{marginTop:16,paddingTop:12,borderTopWidth:1},dividendCaptionRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},dividendCaption:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},dividendMainRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,marginTop:6},dividendMainLeft:{flex:1,minWidth:0,gap:3},perfectTicket:{fontSize:13},prize:{fontSize:20,fontWeight:"800",fontVariant:["tabular-nums"]},prizeWide:{fontSize:24},multipleLine:{fontSize:11,marginTop:6,fontVariant:["tabular-nums"]},allOrNothing:{fontSize:11,fontStyle:"italic",marginTop:4},modeCards:{marginTop:16,gap:12},modeCardsWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},modeCardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function Ti({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=yo(),r=Pt(n),i=n.colors;/* @__PURE__ */
276
+ return v(C,{style:Di.titleWrap,children:[/* @__PURE__ */z(x,{style:[Di.eyebrow,Di.eyebrowLeft,{color:i.primary,fontFamily:r}],children:"The dividend is set"}),/* @__PURE__ */z(So,{onBack:e,hideActions:t,children:o?/* @__PURE__ */z(x,{style:[Di.titleSubtitle,{color:i.textMuted}],numberOfLines:2,children:o.game_name}):null})]})}function Li({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:f,setBetAmount:u,quickPickGame:g,goToSportSelection:p,screenSize:y}=yo(),m=a.colors,b="mobile"===y,w=Ot(a),B=Pt(a),F=lt(a),W=gt(a),{width:A}=S(),T=A>=640,[L,D]=c(null),[M,R]=c(null),H=l(()=>r??zn(s),[r,s]),[O,P]=c(()=>H?.defaultDividend??1e4),[I,E]=c(()=>{const e=H?.dividends[0]?.rungs.map(e=>e.legs)??[];return null!=d&&e.includes(d)?d:H?.defaultLegs??9});if(!s||!kn(s)||!H)/* @__PURE__ */return z(C,{children:/* @__PURE__ */z(x,{style:{color:m.textMuted,fontFamily:w},children:"No dividend series available."})});const j=H.dividends.find(e=>e.dividend===O)??H.dividends[0],N=j.rungs.find(e=>e.legs===I)??j.rungs[0],Y=Math.max(...j.rungs.map(e=>e.legs)),G=Math.min(...j.rungs.map(e=>e.legs));/* @__PURE__ */
277
+ return v(C,{style:Di.container,children:[n?/* @__PURE__ */z(C,{style:Di.backRow,children:/* @__PURE__ */z(Co,{onBack:n,label:i})}):null,/* @__PURE__ */v($t,{style:Di.inner,children:[o?null:/* @__PURE__ */z(x,{style:[Di.eyebrow,T&&Di.eyebrowSectionWide,{color:m.primary,fontFamily:B,textAlign:"center"}],children:"Pick your dividend"}),
278
+ /* @__PURE__ */v(C,{style:[Di.headerBlock,T&&Di.headerBlockWide],children:[/* @__PURE__ */z(co,{iconUrl:Ce(s),gameName:s.game_name,height:b?24:32,chipColor:m.primary,textColor:m.text,iconColor:m.primaryText,accentColor:a.brand?.accent,compact:b}),/* @__PURE__ */z(x,{style:[Di.tagline,T&&Di.taglineWide,{color:m.textMuted}],children:H.tagline})]}),
279
+ /* @__PURE__ */v(C,{style:[Di.ticket,T&&Di.ticketWide,{backgroundColor:W,borderColor:m.border,shadowColor:F,shadowOpacity:.12,shadowRadius:12,shadowOffset:{width:0,height:8},elevation:1}],children:[(V=Te(j.dividend),/* @__PURE__ */v(C,{style:Di.sectionLabelRow,children:[/* @__PURE__ */z(x,{style:[Di.sectionLabelText,{color:m.textMuted}],children:"Set dividend"}),V?/* @__PURE__ */z(x,{style:[Di.sectionValueText,{color:F}],children:V}):null]})),
280
+ /* @__PURE__ */z(C,{style:Di.dividendGrid,children:H.dividends.map((e,t)=>{const n=e.dividend===O,o=t===H.dividends.length-1&&H.dividends.length%2==1,r=L===e.dividend;/* @__PURE__ */
281
+ return v(k,{onPress:()=>P(e.dividend),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:n},onMouseEnter:()=>D(e.dividend),onMouseLeave:()=>D(null),style:[Di.dividendTile,{flexGrow:1,flexBasis:T?"21%":o?"100%":"45%",backgroundColor:n?ki(m.primary,.08):"transparent",borderColor:n||r?m.primary:m.border}],children:[/* @__PURE__ */z(x,{style:[Di.dividendValue,{color:F,fontFamily:B}],children:Te(e.dividend)}),/* @__PURE__ */v(x,{style:[Di.dividendFrom,{color:m.textMuted}],children:["from ",Te(e.rungs[0]?.stake??0)]})]},e.dividend)})}),
282
+ /* @__PURE__ */z(x,{style:[Di.ticketNote,{color:m.textMuted}],children:"One set amount — it does not move, whatever you spend."}),
283
+ /* @__PURE__ */v(C,{style:[Di.ladderDivider,{borderTopColor:ki(F,.08)}],children:[
284
+ /* @__PURE__ */v(C,{style:Di.ladderHeaderRow,children:[/* @__PURE__ */z(x,{style:[Di.ladderHeaderText,{color:m.textMuted}],children:"Legs to land"}),/* @__PURE__ */z(x,{style:[Di.ladderHeaderText,{color:m.textMuted}],children:"Your stake"})]}),
285
+ /* @__PURE__ */z(C,{style:Di.rungList,children:j.rungs.map(e=>{const t=e.legs===I,n=M===e.legs;/* @__PURE__ */
286
+ return v(k,{onPress:()=>E(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},onMouseEnter:()=>R(e.legs),onMouseLeave:()=>R(null),style:[Di.rungRow,{backgroundColor:t?ki(m.primary,.08):"transparent",borderColor:t||n?m.primary:m.border}],children:[/* @__PURE__ */v(C,{style:Di.rungLeft,children:[/* @__PURE__ */v(x,{style:[Di.rungLegs,{color:m.text}],children:[e.legs," legs",e.legs===Y?" · the long climb":e.legs===G?" · the sprint":""]}),/* @__PURE__ */z(Si,{legs:e.legs})]}),/* @__PURE__ */z(x,{style:[Di.rungStake,T&&Di.rungStakeWide,{color:m.primary,fontFamily:B}],children:Te(e.stake)})]},e.legs)})}),
287
+ /* @__PURE__ */z(x,{style:[Di.ticketNote,{color:m.textMuted}],children:"Same dividend on every rung — a little for the long climb, more for the short one."})]})]}),
288
+ /* @__PURE__ */v(C,{style:[Di.cardList,T&&Di.cardListWide],children:[/* @__PURE__ */z(C,{style:T?Di.cardCell:void 0,children:/* @__PURE__ */z(Fi,{tile:/* @__PURE__ */z(Ci,{iconUrl:Ce(s),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${N.legs} legs`,`${Te(N.stake)} chasing the ${Te(j.dividend)}`],onSelect:()=>{var e;h((e=N).legs),f(e.legs),u(e.stake),p(),t?.()}})}),/* @__PURE__ */z(C,{style:T?Di.cardCell:void 0,children:/* @__PURE__ */z(Fi,{tile:/* @__PURE__ */z(Ci,{iconUrl:`${we}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${N.legs} legs at ${Te(N.stake)}`,"Straight to the bet slip"],onSelect:()=>{f(N.legs),u(N.stake),g(s,N.legs),e?.()}})})]})]})]});var V}var Di=w.create({container:{flex:1},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},titleWrap:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},eyebrowLeft:{textAlign:"left"},eyebrowSectionWide:{marginBottom:20},titleSubtitle:{fontSize:14,flexShrink:1},headerBlock:{alignItems:"center",marginBottom:24},headerBlockWide:{marginBottom:28},tagline:{fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384,marginTop:12},taglineWide:{fontSize:15,lineHeight:24},ticket:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},ticketWide:{paddingHorizontal:20,paddingVertical:20},sectionLabelRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",marginBottom:8},sectionLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},sectionValueText:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},dividendGrid:{flexDirection:"row",flexWrap:"wrap",gap:8},dividendTile:{borderWidth:1,borderRadius:12,paddingHorizontal:8,paddingVertical:12,alignItems:"center"},dividendValue:{fontSize:20,fontWeight:"800",letterSpacing:-.4,fontVariant:["tabular-nums"]},dividendFrom:{fontSize:10,marginTop:4},ticketNote:{fontSize:11,fontStyle:"italic",marginTop:8},ladderDivider:{marginTop:16,paddingTop:12,borderTopWidth:1},ladderHeaderRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},ladderHeaderText:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},rungList:{marginTop:6,gap:6},rungRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderWidth:1,borderRadius:12,paddingHorizontal:12,paddingVertical:8},rungLeft:{flexShrink:1,minWidth:0,gap:3},rungLegs:{fontSize:13},rungStake:{fontSize:14,fontWeight:"800",fontVariant:["tabular-nums"]},rungStakeWide:{fontSize:16},cardList:{marginTop:16,gap:12},cardListWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},cardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function Mi({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=yo(),r=Pt(n),i=n.colors;/* @__PURE__ */
289
+ return v(C,{style:Hi.titleWrap,children:[/* @__PURE__ */z(x,{style:[Hi.eyebrow,{color:i.primary,fontFamily:r}],children:"Every step pays"}),/* @__PURE__ */z(So,{onBack:e,hideActions:t,children:o?/* @__PURE__ */z(x,{style:[Hi.titleSubtitle,{color:i.textMuted}],numberOfLines:2,children:o.game_name}):null})]})}function Ri({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:f,setBetAmount:u,quickPickGame:g,goToSportSelection:p,screenSize:y,bodyFont:m}=yo(),b=a.colors,w="mobile"===y,B=Pt(a),F=lt(a),W=ht(a),A=gt(a),{width:T}=S(),L=T>=640,[D,M]=c(null),R=l(()=>r??Io(s),[r,s]),[H,O]=c(()=>R?null!=d&&R.ladders.some(e=>e.legs===d)?d:R.defaultLegs:8),[P,I]=c(()=>R?.defaultStake??50);if(!s||!Mo(s)||!R)/* @__PURE__ */return z(C,{children:/* @__PURE__ */z(x,{style:{color:b.textMuted,fontFamily:m},children:"No ladders available."})});const E=R.ladders.find(e=>e.legs===H)??R.ladders[0],j=Ho(E,P),N=Oo(E,P),Y=(e,t)=>/* @__PURE__ */v(C,{style:Hi.sectionLabelRow,children:[/* @__PURE__ */z(x,{style:[Hi.sectionLabelText,{color:b.textMuted}],children:e}),t?/* @__PURE__ */z(x,{style:[Hi.sectionLabelValue,{color:F}],children:t}):null]});/* @__PURE__ */
290
+ return v(C,{style:[Hi.container,{backgroundColor:b.background}],children:[n?/* @__PURE__ */z(C,{style:Hi.backRow,children:/* @__PURE__ */z(Co,{onBack:n,label:i})}):null,/* @__PURE__ */v($t,{style:Hi.inner,children:[o?null:/* @__PURE__ */z(x,{style:[Hi.pageTitle,{color:b.primary,fontFamily:B}],children:"Climb the ladder. Stack the prizes."}),
291
+ /* @__PURE__ */v(C,{style:[Hi.header,L&&Hi.headerWide],children:[/* @__PURE__ */z(co,{iconUrl:Ce(s),gameName:s.game_name,height:w?24:32,chipColor:b.primary,textColor:b.text,iconColor:b.primaryText,accentColor:a.brand?.accent,compact:w}),/* @__PURE__ */z(x,{style:[Hi.tagline,L&&Hi.taglineWide,{color:b.textMuted}],children:R.tagline})]}),
292
+ /* @__PURE__ */v(C,{style:[Hi.builder,L&&Hi.builderWide,{backgroundColor:A,borderColor:b.border,shadowColor:F,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[Y("Your bet",Te(P)),
293
+ /* @__PURE__ */z(C,{style:Hi.betRow,children:R.stakes.map(e=>{const t=e===P;/* @__PURE__ */
294
+ return z(k,{onPress:()=>I(e),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},style:[Hi.betChip,{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border}],children:/* @__PURE__ */v(x,{style:[Hi.betChipText,{color:t?b.primaryText:b.textMuted}],children:["$",e]})},e)})}),
295
+ /* @__PURE__ */z(x,{style:[Hi.betNote,{color:b.textMuted}],children:"Every prize scales with your bet."}),
296
+ /* @__PURE__ */v(C,{style:Hi.laddersBlock,children:[Y(`${R.ladders.length} ladders to choose from`),/* @__PURE__ */z(C,{style:Hi.ladderGrid,children:R.ladders.map((e,t)=>{const n=e.legs===H,o=t===R.ladders.length-1&&R.ladders.length%2==1,r=D===e.legs;/* @__PURE__ */
297
+ return v(k,{onPress:()=>O(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:n},onMouseEnter:()=>M(e.legs),onMouseLeave:()=>M(null),style:[Hi.ladderTile,{flexBasis:L?"17%":o?"100%":"40%",backgroundColor:n?ki(b.primary,.08):"transparent",borderColor:n||r?b.primary:b.border}],children:[
298
+ /* @__PURE__ */v(x,{style:[Hi.ladderTileLabel,{color:b.primary}],children:["Ladder ",e.legs]}),
299
+ /* @__PURE__ */z(x,{style:[Hi.ladderTilePrize,{color:F,fontFamily:B}],children:Te(Oo(e,P))}),
300
+ /* @__PURE__ */v(x,{style:[Hi.ladderTileNote,{color:b.textMuted}],children:["Win from ",e.firstPayingTier," right"]})]},e.legs)})})]}),
301
+ /* @__PURE__ */v(C,{style:[Hi.stackTable,{borderTopColor:ki(F,.08)}],children:[
302
+ /* @__PURE__ */v(x,{style:[Hi.stackIntro,{color:b.text}],children:["Ladder ",E.legs," wins from ",E.firstPayingTier," right — every tier stacks into the"," ",
303
+ /* @__PURE__ */z(x,{style:{fontWeight:"700",color:F},children:Te(N)})," Full Stack Prize."]}),
304
+ /* @__PURE__ */v(C,{style:Hi.rungHeader,children:[/* @__PURE__ */z(x,{style:[Hi.rungHeaderCaption,{color:b.textMuted}],children:"Get right"}),/* @__PURE__ */v(C,{style:Hi.rungHeaderRight,children:[/* @__PURE__ */z(x,{style:[Hi.rungHeaderCaption,{color:b.textMuted}],children:"Tier pays"}),/* @__PURE__ */z(x,{style:[Hi.rungHeaderCaption,{color:b.textMuted}],children:"You collect"})]})]}),
305
+ /* @__PURE__ */z(C,{style:Hi.rungList,children:[...j].reverse().map(e=>{const t=e.atLeast===E.legs;/* @__PURE__ */
306
+ return v(C,{style:Hi.rungRow,children:[/* @__PURE__ */v(C,{style:Hi.rungLeft,children:[/* @__PURE__ */v(C,{style:Hi.rungLabelRow,children:[/* @__PURE__ */v(x,{style:[Hi.rungLabel,{color:b.text}],children:[e.atLeast," of ",E.legs]}),t?/* @__PURE__ */z(C,{style:[Hi.fullStackChip,{backgroundColor:ki(W,.35)}],children:/* @__PURE__ */z(x,{style:[Hi.fullStackChipText,{color:F}],children:"Full stack"})}):null]}),/* @__PURE__ */z(Si,{legs:e.atLeast,prizeBall:t})]}),/* @__PURE__ */v(C,{style:Hi.rungRight,children:[/* @__PURE__ */z(x,{style:[Hi.rungPrize,{color:b.textMuted}],children:Te(e.prize)}),/* @__PURE__ */z(x,{style:[Hi.rungCumulative,L&&Hi.rungCumulativeWide,{color:b.primary,fontFamily:B}],children:Te(e.cumulative)})]})]},e.atLeast)})}),
307
+ /* @__PURE__ */v(x,{style:[Hi.stackNote,{color:b.textMuted}],children:["Land below ",E.firstPayingTier," right and the ticket does not pay."]})]})]}),
308
+ /* @__PURE__ */v(C,{style:[Hi.modeCards,L&&Hi.modeCardsWide],children:[/* @__PURE__ */z(C,{style:L?Hi.modeCardCell:void 0,children:/* @__PURE__ */z(Fi,{tile:/* @__PURE__ */z(Ci,{iconUrl:Ce(s),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${E.legs} outcomes`,`Win from ${E.firstPayingTier} right — every tier stacks`],onSelect:()=>{h(E.legs),f(E.legs),u(P),p(),t?.()}})}),/* @__PURE__ */z(C,{style:L?Hi.modeCardCell:void 0,children:/* @__PURE__ */z(Fi,{tile:/* @__PURE__ */z(Ci,{iconUrl:`${we}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${E.legs} legs at ${Te(P)}`,"Straight to the bet slip"],onSelect:()=>{f(E.legs),u(P),g(s,E.legs),e?.()}})})]})]})]})}var Hi=w.create({container:{flex:1},inner:{flex:1,paddingHorizontal:16,width:"100%"},backRow:{paddingHorizontal:16},titleWrap:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},titleSubtitle:{fontSize:14,flexShrink:1},pageTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,textAlign:"center",marginBottom:16},header:{alignItems:"center",marginBottom:24},headerWide:{marginBottom:28},tagline:{fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384,marginTop:12},taglineWide:{fontSize:15,lineHeight:24},builder:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},builderWide:{paddingHorizontal:20,paddingVertical:20},sectionLabelRow:{marginBottom:8,flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},sectionLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},sectionLabelValue:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},betRow:{flexDirection:"row",flexWrap:"wrap",gap:6},betChip:{flexGrow:1,flexBasis:52,minWidth:52,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},betChipText:{fontSize:14,fontWeight:"700"},betNote:{marginTop:8,fontSize:11,fontStyle:"italic"},laddersBlock:{marginTop:16},ladderGrid:{flexDirection:"row",flexWrap:"wrap",gap:8},ladderTile:{flexGrow:1,borderWidth:1,borderRadius:12,paddingHorizontal:8,paddingVertical:12,alignItems:"center",justifyContent:"center"},ladderTileLabel:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},ladderTilePrize:{marginTop:4,fontSize:20,fontWeight:"800",letterSpacing:-.4,fontVariant:["tabular-nums"]},ladderTileNote:{marginTop:4,fontSize:10},stackTable:{marginTop:16,borderTopWidth:1,paddingTop:12},stackIntro:{marginBottom:8,fontSize:12,lineHeight:18},rungHeader:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},rungHeaderRight:{flexDirection:"row",gap:16},rungHeaderCaption:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},rungList:{marginTop:6,gap:6},rungRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},rungLeft:{flex:1,minWidth:0,gap:3},rungLabelRow:{flexDirection:"row",alignItems:"center",gap:8,flexWrap:"wrap"},rungLabel:{fontSize:13},fullStackChip:{borderRadius:999,paddingHorizontal:8,paddingVertical:2},fullStackChipText:{fontSize:9,fontWeight:"700",textTransform:"uppercase",letterSpacing:.8},rungRight:{flexDirection:"row",alignItems:"baseline",gap:16,flexShrink:0},rungPrize:{fontSize:11,fontVariant:["tabular-nums"]},rungCumulative:{minWidth:64,textAlign:"right",fontSize:14,fontWeight:"800",fontVariant:["tabular-nums"]},rungCumulativeWide:{fontSize:16},stackNote:{marginTop:8,fontSize:11,fontStyle:"italic"},modeCards:{marginTop:16,gap:12},modeCardsWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},modeCardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function Oi({legs:e,right:t}){const{theme:n}=yo(),o=n.colors.primary,r=ht(n);/* @__PURE__ */
309
+ return v(C,{style:{flexDirection:"row",alignItems:"center"},children:[Array.from({length:e}).map((e,n)=>/* @__PURE__ */z(C,{style:{width:5,height:5,borderRadius:1.5,marginRight:3,backgroundColor:t?o:"transparent",borderWidth:t?0:1,borderColor:t?void 0:ki(o,.45),opacity:t?.85:1}},n)),/* @__PURE__ */z(C,{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}})]})}function Pi({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=yo(),r=Pt(n),i=n.colors;/* @__PURE__ */
310
+ return v(C,{style:Ei.header,children:[/* @__PURE__ */z(x,{style:[Ei.eyebrow,{color:i.primary,fontFamily:r}],children:"All right, or all wrong"}),/* @__PURE__ */z(So,{onBack:e,hideActions:t,children:o?/* @__PURE__ */z(x,{style:[Ei.subtitle,{color:i.textMuted}],numberOfLines:2,children:o.game_name}):null})]})}function Ii({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:f,setBetAmount:u,quickPickGame:g,goToSportSelection:p,screenSize:y}=yo(),m=a.colors,b="mobile"===y,w=Ot(a),F=Pt(a),W=lt(a),A=gt(a),{width:T}=S(),L=T>=640,[D,M]=c(!1),R=l(()=>r??Vo(s),[r,s]),[H,O]=c(()=>R?null!=d&&R.legOptions.includes(d)?d:R.defaultLegs:8),[P,I]=c(()=>R?.defaultStake??20);if(!s||!Yo(s)||!R)/* @__PURE__ */return z(C,{children:/* @__PURE__ */z(x,{style:{color:m.textMuted,fontFamily:w},children:"No mirror available."})});const E=Go(P,H,{operatorMargin:R.operatorMargin,perLegProbability:R.perLegProbability}),j=P>=R.minStake,N=(e,t)=>/* @__PURE__ */v(C,{style:Ei.controlLabel,children:[/* @__PURE__ */z(x,{style:[Ei.controlLabelText,{color:m.textMuted}],children:e}),/* @__PURE__ */z(x,{style:[Ei.controlValueText,{color:W}],children:t})]}),Y=e=>/* @__PURE__ */v(C,{style:Ei.winRow,children:[/* @__PURE__ */v(C,{style:Ei.winRowLeft,children:[/* @__PURE__ */z(x,{style:[Ei.winRowLabel,{color:m.text}],children:e?`All ${H} right`:`All ${H} wrong`}),/* @__PURE__ */z(Oi,{legs:H,right:e})]}),/* @__PURE__ */z(x,{style:[Ei.winRowPrize,L&&Ei.winRowPrizeWide,{color:m.primary,fontFamily:F}],children:Te(E.prize)})]});/* @__PURE__ */
311
+ return v(C,{style:Ei.container,children:[n?/* @__PURE__ */z(C,{style:Ei.backRow,children:/* @__PURE__ */z(Co,{onBack:n,label:i})}):null,/* @__PURE__ */v($t,{style:Ei.inner,children:[o?null:/* @__PURE__ */z(x,{style:[Ei.sectionTitle,{color:m.primary,fontFamily:F}],children:"All right, or all wrong"}),
312
+ /* @__PURE__ */v(C,{style:[Ei.headerBlock,L&&Ei.headerBlockWide],children:[/* @__PURE__ */z(co,{iconUrl:Ce(s),gameName:s.game_name,height:b?24:32,chipColor:m.primary,textColor:m.text,iconColor:m.primaryText,accentColor:a.brand?.accent,compact:b}),/* @__PURE__ */z(x,{style:[Ei.tagline,L&&Ei.taglineWide,{color:m.textMuted}],children:R.tagline})]}),
313
+ /* @__PURE__ */v(C,{style:[Ei.ticket,L&&Ei.ticketWide,{backgroundColor:A,borderColor:m.border,shadowColor:W,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[N("Legs",`${H} legs`),
314
+ /* @__PURE__ */z(C,{style:Ei.chipRow,children:R.legOptions.map(e=>{const t=e===H;/* @__PURE__ */
315
+ return z(k,{onPress:()=>O(e),accessibilityRole:"radio",accessibilityState:{selected:t},style:[Ei.legChip,{backgroundColor:t?m.primary:"transparent",borderColor:t?m.primary:m.border}],children:/* @__PURE__ */z(x,{style:[Ei.chipText,{color:t?m.primaryText:m.textMuted}],children:e})},e)})}),
316
+ /* @__PURE__ */v(C,{style:Ei.hintRow,children:[/* @__PURE__ */z(x,{style:[Ei.hintText,{color:m.textMuted}],children:"Easier to sweep"}),/* @__PURE__ */z(x,{style:[Ei.hintText,{color:m.textMuted}],children:"Bigger prize"})]}),
317
+ /* @__PURE__ */v(C,{style:Ei.stakeBlock,children:[N("Stake",Te(P)),
318
+ /* @__PURE__ */v(C,{style:[Ei.inputWrap,{borderColor:D?m.borderFocus??m.primary:m.border,backgroundColor:m.backgroundAlt}],children:[/* @__PURE__ */z(x,{style:[Ei.inputPrefix,{color:m.textMuted}],children:"$"}),/* @__PURE__ */z(B,{keyboardType:"numeric",placeholder:"Enter stake",placeholderTextColor:m.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>M(!0),onBlur:()=>M(!1),value:P?String(P):"",onChangeText:e=>{if(""===e)return void I(0);const t=Number(e);Number.isFinite(t)&&I((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==R.maxStake?Math.min(t,R.maxStake):t})(t))},style:[Ei.input,{color:m.textAlt??m.text,fontFamily:w}]})]}),
319
+ /* @__PURE__ */z(C,{style:Ei.quickStakeRow,children:R.quickStakes.map(e=>{const t=e===P;/* @__PURE__ */
320
+ return z(k,{onPress:()=>I(e),style:[Ei.stakeChip,{backgroundColor:t?m.primary:"transparent",borderColor:t?m.primary:m.border}],children:/* @__PURE__ */z(x,{style:[Ei.chipText,{color:t?m.primaryText:m.textMuted}],children:`$${e}`})},e)})}),!j&&P>0?/* @__PURE__ */z(x,{style:[Ei.errorText,{color:m.error}],children:`Minimum stake is ${Te(R.minStake)}.`}):null]}),
321
+ /* @__PURE__ */v(C,{style:[Ei.winSection,{borderTopColor:ki(W,.08)}],children:[
322
+ /* @__PURE__ */v(C,{style:Ei.winHeader,children:[/* @__PURE__ */z(x,{style:[Ei.winHeaderText,{color:m.textMuted}],children:"Two ways to win"}),/* @__PURE__ */z(x,{style:[Ei.winHeaderText,{color:m.textMuted}],children:`${Te(P)} pays each`})]}),
323
+ /* @__PURE__ */v(C,{style:Ei.winRows,children:[Y(!0),Y(!1)]}),
324
+ /* @__PURE__ */z(x,{style:[Ei.splitNote,{color:m.textMuted}],children:"Anything in between — a split card — does not pay."})]})]}),
325
+ /* @__PURE__ */v(C,{style:[Ei.cardList,L&&Ei.cardListWide],children:[/* @__PURE__ */z(C,{style:L?Ei.cardCell:void 0,children:/* @__PURE__ */z(Fi,{tile:/* @__PURE__ */z(Ci,{iconUrl:Ce(s),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:()=>{j&&(h(H),f(H),u(P),p(),t?.())}})}),/* @__PURE__ */z(C,{style:L?Ei.cardCell:void 0,children:/* @__PURE__ */z(Fi,{tile:/* @__PURE__ */z(Ci,{iconUrl:`${we}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{j&&(f(H),u(P),g(s,H),e?.())}})})]})]})]})}var Ei=w.create({container:{flex:1,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},subtitle:{fontSize:14,flexShrink:1},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16,textAlign:"center"},headerBlock:{alignItems:"center",marginBottom:24},headerBlockWide:{marginBottom:28},tagline:{marginTop:12,fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384},taglineWide:{fontSize:15,lineHeight:24},ticket:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},ticketWide:{paddingHorizontal:20,paddingVertical:20},controlLabel:{marginBottom:8,flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},controlLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},controlValueText:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},chipRow:{flexDirection:"row",flexWrap:"wrap",gap:6},legChip:{minWidth:40,flexGrow:1,flexBasis:40,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},chipText:{fontSize:14,fontWeight:"700"},hintRow:{marginTop:8,flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},hintText:{fontSize:11,fontStyle:"italic"},stakeBlock:{marginTop:16},inputWrap:{flexDirection:"row",alignItems:"center",borderWidth:1,borderRadius:8,paddingHorizontal:12},inputPrefix:{fontSize:16,fontWeight:"700",marginRight:4},input:{flex:1,paddingVertical:12,fontSize:18,fontWeight:"600",fontVariant:["tabular-nums"]},quickStakeRow:{marginTop:8,flexDirection:"row",flexWrap:"wrap",gap:6},stakeChip:{minWidth:48,flexGrow:1,flexBasis:48,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},errorText:{marginTop:8,fontSize:12},winSection:{marginTop:16,borderTopWidth:1,paddingTop:12},winHeader:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},winHeaderText:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},winRows:{marginTop:6,gap:8},winRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},winRowLeft:{flex:1,minWidth:0,gap:3},winRowLabel:{fontSize:13},winRowPrize:{fontSize:18,fontWeight:"800",fontVariant:["tabular-nums"]},winRowPrizeWide:{fontSize:20},splitNote:{marginTop:8,fontSize:11,fontStyle:"italic"},cardList:{marginTop:16,gap:12},cardListWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},cardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function ji({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=yo(),r=Pt(n),i=n.colors;/* @__PURE__ */
326
+ return v(C,{style:Yi.header,children:[/* @__PURE__ */z(x,{style:[Yi.eyebrow,{color:i.primary,fontFamily:r}],children:"All or nothing"}),/* @__PURE__ */z(So,{onBack:e,hideActions:t,children:o?/* @__PURE__ */z(x,{style:[Yi.subtitle,{color:i.textMuted}],numberOfLines:2,children:o.game_name}):null})]})}function Ni({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,backLabel:r="Games"}){const{theme:i,selectedGame:a,selectedPropositionCount:s,handlePropositionCountChange:d,setExpectedCorrect:h,quickPickGame:f,goToSportSelection:u,screenSize:g}=yo(),p=i.colors,y="mobile"===g,m=Ot(i),b=Pt(i),{width:w}=S(),B=w>=640,k=l(()=>{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}=je(a);return rt(e,t)},[a]),F=Ko(a),W=k[0]??0,A=k[k.length-1]??0,[T]=c(()=>null!=s&&k.includes(s)?s:A),L=l(()=>bn(a,T||void 0),[a,T]);if(!a||0===k.length||"exact"!==L?.kind)/* @__PURE__ */return z(C,{children:/* @__PURE__ */z(x,{style:{color:p.textMuted,fontFamily:m},children:"No setup available."})});const D=F?["Any yes/no props in the pool",`Pick ${W}–${A} legs — all must land`]:["A clean yes or no on every leg",`All ${T} have to land`],M=F?[`We fill ${T} legs across any markets`,"Straight to the bet slip"]:[`We fill all ${T} legs for you`,"Straight to the bet slip"];/* @__PURE__ */
327
+ return v(C,{style:Yi.container,children:[n?/* @__PURE__ */z(C,{style:Yi.backRow,children:/* @__PURE__ */z(Co,{onBack:n,label:r})}):null,/* @__PURE__ */v($t,{style:Yi.inner,children:[o?null:/* @__PURE__ */z(x,{style:[Yi.sectionTitle,B&&Yi.sectionTitleWide,{color:p.primary,fontFamily:b}],children:L.title}),
328
+ /* @__PURE__ */v(C,{style:[Yi.headerBlock,B&&Yi.headerBlockWide],children:[/* @__PURE__ */z(co,{iconUrl:Ce(a),gameName:a.game_name,height:y?24:32,chipColor:p.primary,textColor:p.text,iconColor:p.primaryText,accentColor:i.brand?.accent,compact:y}),L.heroTagline?/* @__PURE__ */z(x,{style:[Yi.tagline,B&&Yi.taglineWide,{color:p.textMuted}],children:L.heroTagline}):null]}),
329
+ /* @__PURE__ */v(C,{style:[Yi.cardList,B&&Yi.cardListWide],children:[/* @__PURE__ */z(C,{style:B?Yi.cardCell:void 0,children:/* @__PURE__ */z(Fi,{tile:/* @__PURE__ */z(Ci,{iconUrl:Ce(a),size:60}),label:"Pick my own",stat:"Your calls",detail:D,onSelect:()=>{F||(d(T),h(T)),u(),t?.()}})}),/* @__PURE__ */z(C,{style:B?Yi.cardCell:void 0,children:/* @__PURE__ */z(Fi,{tile:/* @__PURE__ */z(Ci,{iconUrl:`${we}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:M,onSelect:()=>{h(T),f(a,T),e?.()}})})]})]})]})}var Yi=w.create({container:{flex:1,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},subtitle:{fontSize:14,flexShrink:1},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16,textAlign:"center"},sectionTitleWide:{marginBottom:20},headerBlock:{alignItems:"center",marginBottom:24},headerBlockWide:{marginBottom:28},tagline:{fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384,marginTop:12},taglineWide:{fontSize:15,lineHeight:24},cardList:{gap:12},cardListWide:{flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},cardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function Gi({onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r="Games"}){const{theme:i,selectedGame:l,goToSportSelection:a,bodyFont:c}=yo(),s={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r};switch(Uo(l)){case"game_set":/* @__PURE__ */return z(Wi,{...s});case"pick_your_dividend":/* @__PURE__ */return z(Li,{...s});case"ladder":/* @__PURE__ */return z(Ri,{...s});case"mirror":/* @__PURE__ */return z(Ii,{...s});case"rule_setup":return"exact"===bn(l)?.kind?/* @__PURE__ */z(Ni,{...s}):/* @__PURE__ */z(xi,{onBack:n,hideTitle:o,backLabel:r,onContinue:()=>{a(),e?.()}});default:/* @__PURE__ */return z(C,{children:/* @__PURE__ */z(x,{style:{color:i.colors.textMuted,fontFamily:c},children:"No setup required — this game goes straight to picks."})})}}function Vi({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0}){const{theme:i}=yo(),l=lt(i),a=ht(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)`}(l),s=Pt(i)??"Manrope, Poppins, sans-serif",d=n&&n.length>0?n:t.split(/\s+/),h=.72*o,f=.5*o,u=Math.min(.62*o/d.length,.3*o);/* @__PURE__ */
330
+ return v(C,{accessible:!0,accessibilityRole:"image",accessibilityLabel:`YESNO ${t}`,style:{flexDirection:"row",alignItems:"center",gap:.22*o},children:[
331
+ /* @__PURE__ */z(Nt,{iconUrl:e,width:h,height:h,iconColor:l,accentColor:a}),
332
+ /* @__PURE__ */v(x,{style:{fontFamily:s,fontSize:f,letterSpacing:.045*-f,lineHeight:f,color:l,includeFontPadding:!1},children:[/* @__PURE__ */z(x,{style:{fontWeight:"800"},children:"YES"}),/* @__PURE__ */z(x,{style:{fontWeight:"600"},children:"NO"})]}),
333
+ /* @__PURE__ */z(C,{style:{width:Math.max(2,Math.round(.045*o)),height:.78*o,backgroundColor:c}}),
334
+ /* @__PURE__ */z(C,{style:{flexDirection:"column"},children:d.map((e,t)=>/* @__PURE__ */v(C,{style:{flexDirection:"row",alignItems:"flex-start"},children:[/* @__PURE__ */z(x,{style:{fontFamily:s,fontSize:u,fontWeight:"500",letterSpacing:.012*-u,lineHeight:1.14*u,color:l,includeFontPadding:!1},children:e}),r&&t===d.length-1?/* @__PURE__ */z(x,{style:{fontFamily:s,fontSize:.36*u,fontWeight:"500",color:l,marginLeft:1},children:"™"}):null]},`${e}-${t}`))})]})}export{Jn as BladeApiClient,Vi as BrandLockup,zr as CategoryIcon,Or as CategoryPickerPage,Hr as CategoryPickerPageActions,Rr as CategoryPickerPageTitle,vr as ChevronRightIcon,Jr as ConfirmPage,Qr as ConfirmPageActions,Xr as ConfirmPageTitle,li as EntriesPage,ii as EntriesPageTitle,Un as EntrySubmission,xo as EventFilterBanner,jr as EventPickerPage,vn as GAME_TIER_LEVEL,Wn as GAME_TIER_TABS,fo as GameEntries,Fr as GameLogo,Jo as GamePage,Qo as GamePageActions,Xo as GamePageTitle,In as GameSelector,Wi as GameSetBetPage,vi as GameSetBetPageTitle,Gi as GameSetupPage,ae as HowToPlayButton,Do as LADDER_FAMILY,To as LADDER_REFERENCE_BET,Lo as LADDER_STAKES,Ri as LadderPage,Mi as LadderPageTitle,Eo as MIRROR_STANDARD_MARGIN,Ii as MirrorPage,Pi as MirrorPageTitle,Bn as PYD_LEG_RUNGS,xn as PYD_RETAIL_DIVIDENDS,Xn as PayoutCircles,Ni as PerfectPickPage,ji as PerfectPickPageTitle,Li as PickYourDividendPage,Ti as PickYourDividendPageTitle,mo as PlaceEntryProvider,bo as QuickPickButton,xi as RuleSetupPage,wi as RuleSetupPageActions,bi as RuleSetupPageTitle,Gn as SelectionReview,Ur as SelectionsPage,Vr as SelectionsPageActions,Gr as SelectionsPageTitle,Dr as SportPickerPage,Lr as SportPickerPageActions,Tr as SportPickerPageTitle,oi as SuccessPage,ni as SuccessPageActions,ti as SuccessPageTitle,Wr as YesNoCategoryLabel,Ln as availableGameTierTabs,nt as contrastTextColour,Bt as darkTheme,Dn as defaultGameTierId,wt as defaultTheme,vt as defaultThemeSet,Tn as filterGamesByTierLevel,dn as filterPropositionsToEvent,Te as formatCurrency,Le as formatDate,en as formatSameGameMultiEventLabel,Oo as fullStackPrize,wn as gameNeedsRuleSetup,Wo as gameSetPrize,qo as getConfirmBoostCopy,Uo as getGameFlow,Ao as getGameSetBetConfig,Ne as getJackpotInfo,Io as getLadderConfig,Vo as getMirrorConfig,zn as getPickYourDividendConfig,on as getPropositionEventId,bn as getRuleSetupConfig,Ye as getSportDisplayName,Lt as getTheme,Dt as getThemeSet,St as goldLightTheme,kt as goldTheme,At as goldThemeSet,Ct as greenLightTheme,xt as greenTheme,Wt as greenThemeSet,De as groupPropositionsBySport,rn as groupSameGameMultiEvents,Zo as isFixedCardExactGame,vo as isGameSetBetGame,Mo as isLadderGame,Yo as isMirrorGame,Ko as isOpenExactMultiGame,kn as isPickYourDividendGame,nn as isSameGameMultiGame,sn as isSelectableSameGameMultiProposition,bt as isThemeSet,Ee as isValidSelectionCount,Po as ladderCollectAt,Ho as ladderTiers,Go as mirrorPrize,hn as propositionsBelongToEvent,Fn as pydLadder,Sn as pydRung,Ve as resolveCategoryDisplayName,An as resolveGameTierLevel,ze as resolvePrice,Ge as resolveSportDisplayName,mt as resolveTheme,mn as roundDividendAmount,ht as themeAccent,Ot as themeBodyFont,lt as themeHeading,Pt as themeHeadingFont,at as themeLabel,Rt as themeSets,ft as themeTextAlt,ut as themeTextAltMuted,ct as themeValue,Mt as themes,lo as useCalculatePayout,oo as useCreateGameEntry,ao as useEntryPreview,io as useEvaluateRule,to as useGameEntries,no as useGameMaxPayouts,$n as useGames,yo as usePlaceEntry,ro as usePlaceEntryFlow,_n as usePropositions,Ht as useResolvedTheme,eo as useSports};