@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 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,r=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,l=(l,a,c)=>(c=null!=l?e(r(l)):{},((e,r,l,a)=>{if(r&&"object"==typeof r||"function"==typeof r)for(var c,s=o(r),d=0,h=s.length;d<h;d++)c=s[d],i.call(e,c)||void 0===c||t(e,c,{get:(e=>r[e]).bind(null,c),enumerable:!(a=n(r,c))||a.enumerable});return e})(!a&&l&&l.t?c:t(c,"default",{value:l,enumerable:!0}),l));let a=require("react");a=l(a,1);let c=require("react-native"),s=require("react/jsx-runtime"),d=require("react-dom"),h=require("react-native-svg");h=l(h,1);var f="#C9CDD2";function u(e){const t=e.trim();if(!t)return null;const n=t.split(/\t+|\s{2,}/).map(e=>e.trim()).filter(Boolean);if(n.length<3)return null;const o=n[n.length-1];return"YES"!==n[n.length-2].toUpperCase()||"NO"!==o.toUpperCase()?null:{question:n.slice(0,-2).join(" ")}}function g(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 p='\n :root {\n --blue: #1F4E79;\n --ink: #1A1A1A;\n --grey: #5A5A5A;\n --green: #166534;\n --red: #991B1B;\n --fill-q: #F9FAFB;\n --fill-yes: #DCFCE7;\n --fill-no: #FEE2E2;\n --rule: #D0D7DE;\n }\n * { box-sizing: border-box; }\n html, body {\n margin: 0;\n padding: 0;\n background: #FFFFFF;\n color: var(--ink);\n font-family: "Aptos", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;\n font-size: 16px;\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n }\n .page {\n max-width: 720px;\n margin: 0 auto;\n padding: 32px 24px 56px;\n }\n p { margin: 0 0 14px; }\n\n .masthead { text-align: center; margin-bottom: 8px; }\n .kicker {\n color: var(--blue);\n font-weight: 700;\n letter-spacing: 0.16em;\n font-size: 15px;\n margin-bottom: 6px;\n }\n .logo {\n display: block;\n width: 280px;\n max-width: 72%;\n height: auto;\n margin: 0 auto 12px;\n }\n .headline {\n color: var(--ink);\n font-weight: 700;\n font-size: 34px;\n line-height: 1.15;\n margin: 0 0 4px;\n }\n .headline.lg { font-size: 44px; }\n .subhead {\n color: var(--grey);\n font-weight: 700;\n letter-spacing: 0.12em;\n font-size: 15px;\n margin-top: 6px;\n }\n .lede {\n color: var(--blue);\n font-style: italic;\n font-size: 20px;\n text-align: center;\n margin: 18px 0 22px;\n }\n .rule {\n border: 0;\n border-bottom: 2.5px solid var(--blue);\n margin: 14px 0 22px;\n }\n\n h2.cap {\n color: var(--blue);\n font-weight: 700;\n letter-spacing: 0.06em;\n font-size: 16px;\n text-transform: uppercase;\n margin: 30px 0 12px;\n }\n h3.sub {\n color: var(--ink);\n font-weight: 700;\n font-size: 18px;\n margin: 26px 0 10px;\n }\n\n .step {\n font-weight: 700;\n font-size: 18px;\n margin: 22px 0 8px;\n }\n .step .num { color: var(--blue); }\n .step .label { color: var(--ink); }\n\n .props {\n width: 100%;\n border-collapse: collapse;\n margin: 8px 0 18px;\n }\n .props td {\n border: 1px solid #C9CDD2;\n padding: 11px 14px;\n font-size: 15px;\n }\n .props .q { background: var(--fill-q); width: 64%; }\n .props .yes {\n background: var(--fill-yes);\n color: var(--green);\n font-weight: 700;\n text-align: center;\n letter-spacing: 0.04em;\n }\n .props .no {\n background: var(--fill-no);\n color: var(--red);\n font-weight: 700;\n text-align: center;\n letter-spacing: 0.04em;\n }\n\n .divider {\n border: 0;\n border-top: 1px solid var(--rule);\n margin: 48px 0;\n }\n\n .footnote {\n color: var(--grey);\n font-style: italic;\n font-size: 13px;\n border-top: 1px solid var(--rule);\n padding-top: 14px;\n margin-top: 30px;\n }\n\n @media (max-width: 480px) {\n .page { padding: 24px 18px 44px; }\n .headline { font-size: 28px; }\n .headline.lg { font-size: 34px; }\n .lede { font-size: 18px; }\n }\n'.trim();function y(e){let t=e.trim();for(;;){const e=t.match(/^<!--[\s\S]*?-->\s*/);if(!e)break;t=t.slice(e[0].length).trimStart()}return t}var m=/^<(main|section|article|div|style|table|h[1-6]|p|ul|ol|hr)\b/i,b=/<(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 w(e){return/^<!DOCTYPE\s+html/i.test(e)||/^<html[\s>]/i.test(e)}function x(e){const t=e.trim();return t?w(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>${p}</style>\n</head>\n<body>\n<main class="page">\n${n=function(e){return/<table\s+class=["']props["']/i.test(e)?e:function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=0;for(;o<t.length;){const e=u(t[o]);if(e){const r=[e];let i=o+1;for(;i<t.length;){const e=u(t[i]);if(!e)break;r.push(e),i+=1}n.push(g(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+=g([...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=>u(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=y(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%2BOGBLSsH6YWAR20Rd9SL%2FK2R%2FnVMcY5yna%2Fr%2Bl8n5sARljvkC1llaMAXYJKd4q3WQXuB82JgyFaMJvwcvA6vkFJ9px5WpeO1v%2BiA1Y86H2YH3A9tSCtZ%2B%2BiA01QRKIftT4PKc4jjjPB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eYpmty8YCv6HslfvrqqdDXxhhHUBERKTunA%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%2F6gyoAOB92BULpOkRERIapVKMzB5hfKFvaZzmwVekiREREhqnkbJIOjhacD7oYQkREeqlkk%2FVy58OhBfOlHZYC2tZDRER6p%2FS6KF2yP8LqPdOOK12HiIiIhdJN1kHOhwMK1yDlLAZmlS5CRETEQukmCzSbNZLqvdJ0aLiIiPTW1NIFA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5xXU5xeOBNwD3lK1GxkNNlpGc4v1UHxtO1AX1WCITklN8KKe4GPhd4Ael6ynsM8BLcorn6pgcabuc4meBF1P9TdHrtUPUZNlaA0xkfccTwGlDqkUEgJzitcBc4H8zekfxXAf8Xk7xjfW6F5FOyCmuzSkeDfwW1RWw0gFqsgzVH0F8bAJDfFQfY4iFnOIvc4p%2FAbwE%2BAjwZOGSrN0EHJlTfFVOUYuJpbNyit%2FKKR4GHAB8mv7%2F7Haamix7qxjf9O56YPWQaxF5hpziD3OKi4B9gEj%2FfmF%2FCfDAS3OKl5cuRmRYcopfzyn%2BEbAX8NdUeylKy6jJMpZT%2FC5w1Ti%2B9cr6e0XM5RRvySkeRTWzdSHDuWijlAeAD1FdMfjanOKVWnclfZVTvD2n%2BGfAnsBBVFcj%2FrBsVWPyGNXPaq9NKl2AiLSP88EBC4FAtf1D2z0KfB64BEg5xXWWYfXjs%2Bewx80pfmfYY8pocj7MobrIZR7wKmAOzU%2BsrKU6ZP024Jb6dnP9zztG4c2PmiwR2SznwwuA%2BcChVL%2Bwty5b0a%2FcQnWg7ueAL%2BcUHytcj0hrOR%2B2AV5GtTRgj%2Fo2G9gJmAU4YDowDZhKdeHVOqqLY56%2BraPaVujB%2BrZ2g%2F99P3A38FOqxuou%2FUyqyRKRAdS%2FqF9N9c54f%2BCVwC4NRN8H3EB1deB1wDdzij9rIFdEZNzUZInIhDgfnkP17vhFwO7ArlSN107A9vVtW6p3yFsBU6jeFf%2Byvq0DHgLupdpw8R7gP4BbqT5auDmnuLap%2ByMiMiz%2FCXQ4TDPqI2KNAAAAAElFTkSuQmCC%22%20x%3D%221430%22%20y%3D%22148%22%20width%3D%22601%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20TM%20superscript%20at%20top-right%20of%20Multi%20--%3E%0A%20%20%3Ctext%20x%3D%222045%22%20y%3D%22190%22%20font-family%3D%22Manrope%2C%20Poppins%2C%20sans-serif%22%20font-size%3D%2256%22%20font-weight%3D%22600%22%20fill%3D%22%230F4C5C%22%3ETM%3C%2Ftext%3E%0A%3C%2Fsvg%3E%0A" alt="YESNO Multi" />'):n}\n</main>\n</body>\n</html>`:"";var n}var B=/^(#{1,3})\s+(.+)$/,k=/^[-*]\s+(.+)$/,C=/^-{3,}$/;function S(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=>u(e));if(t.every(e=>null!==e))return n.push({type:"propsTable",rows:t}),void(o=[])}const t=o.join(" ").trim();t&&n.push({type:"paragraph",text:t}),o=[]},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(B);if(t){l(),i(),n.push({type:"heading",level:Math.min(t[1].length,3),text:t[2].trim()});continue}if(C.test(e)){l(),i(),n.push({type:"hr"});continue}const c=e.match(k);c?(i(),r.push(c[1].trim())):(l(),o.push(e))}return l(),i(),n}function F(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 z({text:e,colors:t}){return(0,s.jsx)(c.Text,{children:F(e).map((e,n)=>(0,s.jsx)(c.Text,{style:{fontWeight:e.bold?"700":"400",color:e.bold?t.text:t.textMuted},children:e.text},n))})}function v({content:e,colors:t}){const n=x(e);let o=null;try{o=require("react-native-webview").WebView}catch{o=null}return o?(0,s.jsx)(o,{source:{html:n},style:{minHeight:420,width:"100%"},originWhitelist:["*"],scrollEnabled:!0}):(0,s.jsx)(c.Text,{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 W({rows:e}){return(0,s.jsx)(c.View,{style:{gap:0,marginVertical:6},children:e.map((e,t)=>(0,s.jsxs)(c.View,{style:{flexDirection:"row",borderWidth:1,borderColor:f,borderTopWidth:0===t?1:0},children:[(0,s.jsx)(c.View,{style:{flex:2.2,backgroundColor:"#F9FAFB",paddingVertical:11,paddingHorizontal:14,borderRightWidth:1,borderRightColor:f},children:(0,s.jsx)(c.Text,{style:{fontSize:15,color:"#1A1A1A"},children:e.question})}),(0,s.jsx)(c.View,{style:{flex:.65,backgroundColor:"#DCFCE7",paddingVertical:11,paddingHorizontal:8,alignItems:"center",justifyContent:"center",borderRightWidth:1,borderRightColor:f},children:(0,s.jsx)(c.Text,{style:{fontSize:15,fontWeight:"700",color:"#166534"},children:"YES"})}),(0,s.jsx)(c.View,{style:{flex:.65,backgroundColor:"#FEE2E2",paddingVertical:11,paddingHorizontal:8,alignItems:"center",justifyContent:"center"},children:(0,s.jsx)(c.Text,{style:{fontSize:15,fontWeight:"700",color:"#991B1B"},children:"NO"})})]},t))})}function A({content:e,colors:t,bodyFont:n,headingFont:o}){return(0,s.jsx)(c.View,{style:{gap:14},children:S(e).map((e,r)=>"heading"===e.type?(0,s.jsx)(c.Text,{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:(0,s.jsx)(z,{text:e.text,colors:t})},r):"paragraph"===e.type?(0,s.jsx)(c.Text,{style:{fontSize:14,lineHeight:22,color:t.textMuted,fontFamily:n},children:(0,s.jsx)(z,{text:e.text,colors:t})},r):"list"===e.type?(0,s.jsx)(c.View,{style:{gap:6,paddingLeft:8},children:e.items.map((e,o)=>(0,s.jsxs)(c.Text,{style:{fontSize:14,lineHeight:22,color:t.textMuted,fontFamily:n},children:["• ",(0,s.jsx)(z,{text:e,colors:t})]},o))},r):"propsTable"===e.type?(0,s.jsx)(W,{rows:e.rows},r):(0,s.jsx)(c.View,{style:{height:1,backgroundColor:t.border,marginVertical:4}},r))})}function T({content:e,title:t="How to Play",label:n="How to Play",colors:o,bodyFont:r,headingFont:i}){const[l,d]=(0,a.useState)(!1),{width:h}=(0,c.useWindowDimensions)(),f=h>=640;if(!e?.trim())return null;const u=function(e){const t=e.trim();if(!t)return!1;if(w(t))return!0;const n=y(t);return!!m.test(n)||b.test(t)}(e);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>d(!0),style:[L.button,{borderColor:o.primary,backgroundColor:`${o.primary}10`}],accessibilityRole:"button",accessibilityLabel:n,children:[(0,s.jsx)(c.Text,{style:[L.buttonText,{color:o.primary,fontFamily:r}],children:n}),(0,s.jsx)(c.Text,{style:[L.buttonText,{color:o.primary,fontFamily:r}],children:"?"})]}),(0,s.jsx)(c.Modal,{visible:l,animationType:"none",transparent:!0,onRequestClose:()=>d(!1),children:(0,s.jsxs)(c.View,{style:[L.overlay,f?{justifyContent:"center",alignItems:"center",padding:16}:{justifyContent:"flex-end"}],children:[(0,s.jsx)(c.Pressable,{style:c.StyleSheet.absoluteFill,onPress:()=>d(!1)}),(0,s.jsxs)(c.View,{style:[L.sheet,f?{maxWidth:672,maxHeight:"85%",borderRadius:16}:{maxHeight:"88%",borderTopLeftRadius:16,borderTopRightRadius:16},{backgroundColor:o.background,borderColor:o.border}],children:[(0,s.jsxs)(c.View,{style:[L.header,{paddingHorizontal:f?24:16,borderBottomColor:o.border,backgroundColor:o.backgroundAlt}],children:[(0,s.jsx)(c.Text,{style:[L.title,{color:o.text,fontFamily:i??r}],children:t}),(0,s.jsx)(c.TouchableOpacity,{onPress:()=>d(!1),style:[L.closeButton,{borderColor:o.border,backgroundColor:o.background}],accessibilityRole:"button",accessibilityLabel:"Close",children:(0,s.jsx)(c.Text,{style:{color:o.textMuted,fontSize:18,fontWeight:"600"},children:"×"})})]}),(0,s.jsx)(c.ScrollView,{contentContainerStyle:u?void 0:{paddingHorizontal:f?24:16,paddingVertical:20},children:u?(0,s.jsx)(v,{content:e,colors:o}):(0,s.jsx)(A,{content:e,colors:o,bodyFont:r,headingFont:i})}),(0,s.jsx)(c.View,{style:[L.footer,{paddingHorizontal:f?24:16,borderTopColor:o.border,backgroundColor:o.backgroundAlt}],children:(0,s.jsx)(c.TouchableOpacity,{onPress:()=>d(!1),style:[L.doneButton,f?{alignSelf:"flex-start"}:{alignSelf:"stretch",alignItems:"center"},{backgroundColor:o.primary}],children:(0,s.jsx)(c.Text,{style:[L.doneText,{color:o.primaryText,fontFamily:r}],children:"Got it"})})})]})]})})]})}var L=c.StyleSheet.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 D(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function M(e){return(e.description??e.proposition??"").trim()}var R={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function O(e){return"composite_and"===(t=D(e))||"composite_or"===t;var t}function H(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 P(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 I(e,t){if(!O(e))return null;const n=function(e){return O(e)?("composite_and"===(t=D(e))?"AND":"composite_or"===t?"OR":null)||function(e){const t=e.source_data;if(!t)return null;try{const e=JSON.parse(t)?.composite?.operator;if("and"===e)return"AND";if("or"===e)return"OR"}catch{return null}return null}(e):null;var t}(e);if(!n)return null;const o=H(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:M(o),eventLabel:P(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(R[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(M(e),n);return r?{operator:n,legs:r.map(e=>({text:e,eventLabel:null}))}:null}var E="#0F4C5C",j={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"},N={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner"},Y="game-icon:",G={perfect_pick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Perfect Pick.\n Single-glyph identifier ("100%") on a transparent background.\n\n Themable: the digits use currentColor (primary tone) and the\n trailing % uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <text x="50" y="50"\n font-family="Manrope, Poppins, sans-serif"\n font-size="32"\n letter-spacing="-1"\n text-anchor="middle"\n dominant-baseline="central"\n font-weight="800"\n fill="currentColor"><tspan fill="currentColor">100</tspan><tspan fill="var(--icon-accent, #DFFF1A)">%</tspan></text>\n</svg>',head_to_head:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Head to Head.\n Two arrowheads clashing across a citron diamond. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Source design lives in an 80×60 box; centre it in 100×100 by\n shifting (10, 20) so the diamond at (40,30) lands at (50,50). --\x3e\n \x3c!-- Themable: arrowheads use currentColor (primary tone), the\n centre diamond uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(10, 20)">\n <path d="M 6 14 L 32 30 L 6 46 L 18 30 Z" fill="currentColor"/>\n <path d="M 74 14 L 48 30 L 74 46 L 62 30 Z" fill="currentColor"/>\n <polygon points="40,20 50,30 40,40 30,30" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',total_points:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Total Points.\n Sigma glyph with italic X superscript. Transparent background;\n rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Sigma + italic X superscript, centred together in the viewBox.\n Sigma 90×98 × 0.55 = 49.5×53.9. Translating to (15, 22) puts the\n sigma centre at (~40, 49) and leaves room for the X glyph at the\n upper right so the combined mark balances around (50, 50). --\x3e\n \x3c!-- Themable: sigma uses currentColor (primary), X superscript\n uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(15, 22) scale(0.55)">\n <path d="M 0,0 L 90,0 L 90,15 L 25,15 L 58,49 L 25,83 L 90,83 L 90,98 L 0,98 L 49,49 Z"\n fill="currentColor"/>\n </g>\n <text x="75" y="30"\n font-family="Manrope, Poppins, sans-serif"\n font-size="22"\n font-style="italic"\n font-weight="400"\n text-anchor="middle"\n dominant-baseline="central"\n fill="var(--icon-accent, #DFFF1A)">X</text>\n</svg>',quickpick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — QuickPick.\n Lightning bolt glyph. Transparent background; rendered onto the\n programmatic Press-to-Play tile.\n\n Themable: bolt fill uses currentColor (primary tone); edge stroke uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(28, 16) scale(0.55)">\n <path d="M 50 8 L 5 80 L 32 80 L 22 132 L 75 50 L 47 50 L 60 8 Z"\n fill="currentColor"\n stroke="var(--icon-accent, #DFFF1A)"\n stroke-width="3.5"\n stroke-linejoin="round"/>\n </g>\n</svg>',safety_net:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Safety Net.\n The brand basketball rim + curved diamond-mesh net catching a citron ball,\n taken from the YESNO Safety Net lockup / app icon. Transparent background;\n rendered on Press-to-Play tiles and brand lockups.\n\n Themable: net uses currentColor (teal on light, white on teal tile);\n ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(-2, -6.2) scale(1.3)">\n <line x1="9" y1="18" x2="71" y2="18" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>\n <path d="M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/>\n <ellipse cx="40" cy="64" rx="18" ry="4.5" fill="none" stroke="currentColor" stroke-width="2.2"/>\n <circle cx="40" cy="50" r="8" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',ladder:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n The sub-brand staircase: four offset rungs climbing to the top, from the\n YESNO Ladder lockup ("Climb the ladder. Stack the prizes."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: alternating rungs use currentColor (primary tone) and the\n icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="4" y="76" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="20" y="54" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="36" y="32" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="52" y="10" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',game_set:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Game Set Bet.\n The sub-brand tennis ball: citron ball with the S-curve seam, from the\n Game Set Bet lockup / app icon ("Game. Set. Bet."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the seam uses currentColor (teal on light, paper on the teal\n app-icon tile); the ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(4, 4) scale(1.15)">\n <circle cx="40" cy="40" r="34" fill="var(--icon-accent, #DFFF1A)"/>\n <path d="M40 8 C12 14 11 40 40 40 C69 40 68 66 40 72" fill="none" stroke="currentColor" stroke-width="4.5" stroke-linecap="round"/>\n </g>\n</svg>',pick_your_dividend:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n Splayed ladder rails and rungs with the citron ball resting at the top —\n the stacked-multi that pays every rung your streak reaches. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n\n Themable: rails/rungs use currentColor (primary tone); the ball uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <line x1="36" y1="16" x2="27" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="64" y1="16" x2="73" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="33.8" y1="34" x2="66.2" y2="34" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n <line x1="31.5" y1="52" x2="68.5" y2="52" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.8"/>\n <line x1="29.3" y1="70" x2="70.7" y2="70" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.6"/>\n <circle cx="50" cy="20" r="9" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Mirror.\n Two offset square-stacks reflected across a central seam, from the YESNO\n Mirror Standard mark ("Get them all right, you win. All wrong, you win.").\n Transparent background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left stack --\x3e\n <rect x="6" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="14" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- right stack — the reflection across x=50 --\x3e\n <rect x="66" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="58" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',same_game_multi:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon - Same Game Multi.\n Three proposition legs contained inside one rounded fixture card: many\n picks, one game. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the fixture and leg marks use currentColor (primary tone); the\n locked lead leg uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="14" y="14" width="72" height="72" rx="13" fill="none" stroke="currentColor" stroke-width="6"/>\n <circle cx="31" cy="35" r="6" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="43" y="31" width="31" height="8" rx="4" fill="currentColor"/>\n <circle cx="31" cy="51" r="6" fill="currentColor" opacity="0.8"/>\n <rect x="43" y="47" width="25" height="8" rx="4" fill="currentColor" opacity="0.8"/>\n <circle cx="31" cy="67" r="6" fill="currentColor" opacity="0.6"/>\n <rect x="43" y="63" width="19" height="8" rx="4" fill="currentColor" opacity="0.6"/>\n</svg>',unknown:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Unknown game fallback.\n Question mark glyph on a transparent background.\n\n Themable: the mark uses currentColor (primary tone) and the dot uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <path\n d="M 28 42 C 28 26 36 16 46 16 C 58 16 66 26 66 38 C 66 48 58 54 50 58 L 50 68"\n fill="none"\n stroke="currentColor"\n stroke-width="8"\n stroke-linecap="round"\n stroke-linejoin="round"\n />\n <circle cx="50" cy="82" r="5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>'},V={perfectpick:"perfect_pick",headtohead:"head_to_head",totalpoints:"total_points",quickpick:"quickpick",safetynet:"safety_net",gameset:"game_set",gamesetbet:"game_set",pickyourdividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",mirrorstandard:"mirror",samegame:"same_game_multi",samegamemulti:"same_game_multi"},U={safety_net:"safety_net",game_set:"game_set",pick_your_dividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",same_game_multi:"same_game_multi"};function Z(e){return`${Y}${function(e){if(e.quick_pick_only)return"quickpick";return U[e.rule?.trim().toLowerCase()??""]||(V[t=e.game_name??"",t.toLowerCase().replace(/[^a-z0-9]+/g,"")]??"unknown");var t}(e)}`}function K(e){return function(e){return e.startsWith(Y)}(e)?G[e.slice(10)]??G.unknown:null}function q(e){return!!e.is_composite_component||!!(t=D(e))&&t.startsWith("co_");var t}function X(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function Q(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}function J(e){return"yes"===e.toLowerCase()?"Yes":"No"}function $(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 _(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 ee(e){return e.reduce((t,n)=>{const o=te(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function te(e,t){if(e.sport)return e.sport;if(O(e)&&t)for(const n of H(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var ne=["sports","casino","racing"];function oe(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=D(e).toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"sports"}function re(e){const t={};for(const n of e){const e=oe(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function ie(e){const t=re(e);return ne.filter(e=>(t[e]?.length??0)>0)}function le(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";default:return"Choose a Sport"}}function ae(e,t,n,o){return o&&o.length>0?o.includes(e):!(void 0!==t&&e<t||void 0!==n&&e>n)}function ce(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 se(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 de(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 he(e,t,n){const o=t?.[e];return o||de(e,n)}function fe(e,t){const n=t?.[e];return n||function(e){return{sports:"Sports",casino:"Casino",racing:"Racing"}[e]??e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}(e)}function ue(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function ge(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function pe(e,t,n){return!t||!!e&&(ge(e,t,n)||ge(t,e,n))}function ye(e,t){return t.find(t=>t.id===e)}function me(e,t){let n=e;return t?.category&&(n=n.filter(e=>oe(e)===t.category)),t?.sport&&(n=n.filter(n=>O(n)?function(e,t,n,o){if(pe(e.sport,t,n))return!0;if(!o)return!1;for(const r of H(e)){const e=ye(r,o);if(e&&pe(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):pe(n.sport,t.sport,t.sportBaseKey))),n}function be(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t?t:"sports"}(e)===t}function we(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>ge(t,e,n))}function xe(e,t,n){return!(n?.category&&!be(e,n.category))&&!(n?.sport&&!we(e,n.sport,n.sportBaseKey))&&me(ke(t,e),n).length>0}function Be(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!be(e,t.category)||t.sport&&!we(e,t.sport,t.sportBaseKey))):e}function ke(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(q(l))return!1;if(r)if(O(l)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>ge(e.sport,t,n)))return!0;if(!o)return!1;for(const r of H(e)){const e=ye(r,o);if(e?.sport&&t.some(t=>ge(e.sport,t,n)))return!0}return!1}(l,o,n,e))return!1}else if(!l.sport||!o.some(e=>ge(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=D(e);return!!o&&n.includes(o)}(l,t))}):e.filter(e=>!q(e))}var Ce=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function Se(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 Fe(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 ze(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 ve(e){return e.colors.heading??e.colors.text}function We(e){return e.colors.label??e.colors.text}function Ae(e){return e.colors.value??e.colors.text}function Te(e){return e.colors.productYes??"#00C853"}function Le(e){return e.colors.productNo??"#E53935"}function De(e){return e.brand?.accent??e.colors.primary}function Me(e){return e.colors.selectionCard??e.colors.surface??e.colors.backgroundAlt}function Re(e){return e.colors.matchupHeader??e.colors.backgroundAlt}function Oe(e){return{textMuted:e.colors.textMuted,border:e.colors.border,background:e.colors.background,backgroundAlt:e.colors.backgroundAlt,primary:e.colors.primary,selectionCard:Me(e)}}function He(e,t="light"){return e?Pe(e)?"dark"===t?e.dark:e.light:e:Ie}function Pe(e){return"light"in e&&"dark"in e&&!("colors"in e)}var Ie={name:"default",colorScheme:"light",colors:{primary:"#3b82f6",primaryHover:"#2563eb",primaryText:"#ffffff",payoutWinning:"#22c55e",payoutNone:"#e5e7eb",success:"#10b981",successBg:"#dcfce7",successText:"#166534",error:"#ef4444",errorBg:"#fee2e2",errorText:"#991b1b",warning:"#f59e0b",warningBg:"#fef3c7",warningText:"#92400e",info:"#3b82f6",infoBg:"#dbeafe",infoText:"#1e3a8a",border:"#d1d5db",borderFocus:"#3b82f6",background:"#ffffff",backgroundAlt:"#f9fafb",selectionCard:"#f9fafb",matchupHeader:"#eff6ff",selectionProp:"#ffffff",text:"#111827",textAlt:"#111827",textAltMuted:"#9ca3af",textMuted:"#6b7280",buttonPrimary:"#3b82f6",buttonPrimaryHover:"#2563eb",buttonPrimaryText:"#ffffff",buttonSecondary:"#e5e7eb",buttonSecondaryHover:"#d1d5db",buttonSecondaryText:"#374151"}},Ee={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"}},je={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"}},Ne={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"}},Ye={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"}},Ge={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"}},Ve={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"}},Ue={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"}},Ze={light:Ie,dark:je},Ke={light:Ye,dark:Ee},qe={light:Ge,dark:Ne},Xe={light:Ve,dark:Ue},Qe={default:Ie,green:Ee,"green-light":Ye,dark:je,gold:Ne,"gold-light":Ge,yesno:Ue,"yesno-light":Ve},Je={default:Ze,green:Ke,gold:qe,yesno:Xe};function $e(e,t="light"){return He(e,t)}function _e(e){return e.fonts?.body??"System"}function et(e){return e.fonts?.heading??e.fonts?.body??"System"}var tt=new Map,nt=new Map;function ot(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 rt({iconUrl:e,width:t,height:n,iconColor:o,accentColor:r,accessibilityLabel:i}){const l=K(e),[d,f]=a.default.useState(()=>l??tt.get(e)??null);return a.default.useEffect(()=>{const t=K(e);if(t)return void f(t);if(tt.has(e))return void f(tt.get(e));let n=!1;return function(e){const t=tt.get(e);if(void 0!==t)return Promise.resolve(t);const n=nt.get(e);if(n)return n;const o=fetch(e).then(e=>{if(!e.ok)throw new Error(`SVG fetch failed: ${e.status}`);return e.text()}).then(t=>(tt.set(e,t),nt.delete(e),t)).catch(t=>{throw nt.delete(e),t});return nt.set(e,o),o}(e).then(e=>{n||f(e)}).catch(()=>{n||f(null)}),()=>{n=!0}},[e]),d?(0,s.jsx)(h.SvgXml,{xml:ot(d,o,r),width:t,height:n,accessibilityLabel:i}):(0,s.jsx)(c.Image,{source:{uri:e},style:{width:t,height:n},resizeMode:"contain",accessibilityLabel:i})}function it({iconUrl:e,gameName:t,onPress:n,size:o=120,brandColor:r="#0F4C5C",cardColor:i="#DDD9D2",iconColor:l,accentColor:d,captionColor:f="#14687C",accessibilityLabel:u}){const[g,p]=a.default.useState(!1),y=(t||"").toUpperCase(),m=170,b=o/360,w=l??i,x=t=>(0,s.jsxs)(c.View,{style:[lt.container,{width:o,height:o}],children:[(0,s.jsxs)(h.default,{viewBox:"0 0 360 360",width:o,height:o,children:[(0,s.jsx)(h.Rect,{x:2,y:2,width:356,height:356,rx:78,fill:i,stroke:r,strokeWidth:4}),(0,s.jsx)(h.G,{style:{transform:t?"translate(0px, 0px)":"translate(50px, 50px)",transformOrigin:"145px 110px",transition:"transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1)"},children:(0,s.jsx)(h.Rect,{x:40,y:5,width:210,height:210,rx:42,fill:r,opacity:.3})}),(0,s.jsx)(h.G,{style:{transform:t?"translate(0px, 0px)":"translate(25px, 25px)",transformOrigin:"145px 110px",transition:"transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1)"},children:(0,s.jsx)(h.Rect,{x:40,y:5,width:210,height:210,rx:42,fill:r,opacity:.55})}),(0,s.jsx)(h.Rect,{x:40,y:5,width:210,height:210,rx:42,fill:r}),(0,s.jsx)(h.Text,{x:180,y:305,fontFamily:"Manrope, Poppins, sans-serif",fontSize:32,letterSpacing:1.5,fontWeight:"800",textAnchor:"middle",fill:r,children:"PRESS TO PLAY"}),(0,s.jsx)(h.Text,{x:180,y:338,fontFamily:"Manrope, Poppins, sans-serif",fontSize:18,letterSpacing:2,fontWeight:"500",textAnchor:"middle",fill:f,children:y})]}),(0,s.jsx)(c.View,{pointerEvents:"none",style:{position:"absolute",left:60*b,top:25*b,width:m*b,height:m*b},children:(0,s.jsx)(rt,{iconUrl:e,width:m*b,height:m*b,iconColor:w,accentColor:d})})]});return n?(0,s.jsx)(c.Pressable,{onPress:n,onHoverIn:"web"===c.Platform.OS?()=>p(!0):void 0,onHoverOut:"web"===c.Platform.OS?()=>p(!1):void 0,accessibilityRole:"button",accessibilityLabel:u??`Press to play ${t}`,style:({pressed:e})=>({width:o,height:o,borderRadius:o/360*78,transform:[{scale:e?.96:1}]}),children:({pressed:e})=>x(g||e)}):x(!1)}var lt=c.StyleSheet.create({container:{position:"relative"}});function at(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 ct={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:48},st={xs:4,sm:8,md:12,lg:16,xl:24,pill:999},dt={xs:11,sm:13,md:14,lg:16,xl:18,xxl:22,display:28},ht={min:44};function ft(e){const t="dark"===e.colorScheme,n=e.colors;return{space:{...ct},radius:{...st},fontSize:{...dt},touchTarget:{...ht},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??at(n.border,t?.6:.5)},isDark:t}}function ut(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 gt({theme:e,variant:t="primary",size:n="md",disabled:o,block:r,radius:i="md",onPress:l,onLongPress:d,style:h,children:f,accessibilityLabel:u}){const g=ft(e),p=e.colors,y={sm:{h:36,px:g.space.md,fs:g.fontSize.sm},md:{h:g.touchTarget.min,px:g.space.lg,fs:g.fontSize.md},lg:{h:52,px:g.space.xl,fs:g.fontSize.lg}},m={sm:g.radius.sm,md:g.radius.md,lg:g.radius.lg,pill:g.radius.pill},b={primary:{bg:p.buttonPrimary,bgPressed:p.buttonPrimaryHover,fg:p.buttonPrimaryText,border:p.buttonPrimary},secondary:{bg:p.buttonSecondary,bgPressed:p.buttonSecondaryHover,fg:p.buttonSecondaryText,border:p.border},ghost:{bg:"transparent",bgPressed:at(p.text,g.isDark?.1:.06),fg:p.text,border:"transparent"},danger:{bg:p.error,bgPressed:at(p.error,.85),fg:"#ffffff",border:p.error}}[t],[w,x]=a.default.useState(!1);return(0,s.jsx)(c.Pressable,{accessibilityRole:"button",accessibilityLabel:u,accessibilityState:{disabled:!!o},disabled:o,onPress:l,onLongPress:d,onHoverIn:()=>x(!0),onHoverOut:()=>x(!1),style:({pressed:e})=>[{minHeight:y[n].h,paddingHorizontal:y[n].px,borderRadius:m[i],backgroundColor:!e&&!w||o?b.bg:b.bgPressed,borderColor:b.border,borderWidth:1,alignSelf:r?"stretch":"flex-start",alignItems:"center",justifyContent:"center",flexDirection:"row",opacity:o?.5:1,transform:[{scale:e&&!o?.985:1}]},h],children:"string"==typeof f?(0,s.jsx)(c.Text,{style:{color:b.fg,fontSize:y[n].fs,fontWeight:"500"},children:f}):f})}function pt({delay:e=0,style:t,children:n}){const o=function(e=0){const t=a.default.useRef(new c.Animated.Value(0)).current;return a.default.useEffect(()=>{let n=!1;const o=o=>{n||(o?t.setValue(1):c.Animated.timing(t,{toValue:1,duration:500,delay:e,easing:c.Easing.bezier(.2,.8,.2,1),useNativeDriver:"web"!==c.Platform.OS}).start())},r=c.AccessibilityInfo.isReduceMotionEnabled?.();r&&"function"==typeof r.then?r.then(o).catch(()=>o(!1)):o(!1);const i=c.AccessibilityInfo.addEventListener?.("reduceMotionChanged",e=>{e&&t.setValue(1)});return()=>{n=!0,i?.remove?.()}},[e,t]),{opacity:t,transform:[{translateY:t.interpolate({inputRange:[0,1],outputRange:[14,0]})}]}}(e);return(0,s.jsx)(c.Animated.View,{style:[t,o],children:n})}function yt({visible:e,anchor:t,onClose:n,flipUp:o=!1,align:r="left",gap:i=6,children:l}){if(!e||!t)return null;const a=c.Dimensions.get("window"),d=o?{bottom:Math.max(0,a.height-t.y+i)}:{top:t.y+t.height+i},h="right"===r?{right:Math.max(0,a.width-(t.x+t.width))}:{left:Math.max(0,t.x)};return(0,s.jsxs)(c.Modal,{transparent:!0,visible:!0,animationType:"none",onRequestClose:n,children:[(0,s.jsx)(c.Pressable,{style:c.StyleSheet.absoluteFill,onPress:n}),(0,s.jsx)(c.View,{style:{position:"absolute",...d,...h},onStartShouldSetResponder:()=>!0,children:l})]})}function mt(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function bt(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function wt(e){if(!e||e.quick_pick_only)return!1;const t=bt(e.selection_scope);if("samegamemulti"===bt(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(bt);return n.includes("samegame")||n.includes("samegamemulti")}function xt(e){return(e.eventId??e.event_id)?.trim()||null}function Bt(e){const t=new Map;for(const n of e){if(!Ft(n))continue;const e=xt(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=kt(o.homeTeam,n.home_team),o.awayTeam=kt(o.awayTeam,n.away_team),o.sport=kt(o.sport,n.sport),o.league=kt(o.league,n.league),o.commenceTime=St(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=Ct(e.commenceTime),o=Ct(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function kt(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function Ct(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function St(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=Ct(e),r=Ct(n);return r!==o?r<o?n:e:e.localeCompare(n)<=0?e:n}function Ft(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function zt(e,t){return t?e.filter(e=>Ft(e)&&xt(e)===t):[]}function vt(e,t){return!!t&&e.length>0&&e.every(e=>Ft(e)&&xt(e)===t)}function Wt(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function At(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 Tt(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 Lt(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+=Tt(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 Dt(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:Lt(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:Lt(e,e-2,t),expectedCorrect:e-2}]}function Mt(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:Dt(t,At(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:Wt(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 Rt(e){return null!=Mt(e)}var Ot=[2500,5e3,7500,1e4,12500,15e3,2e4],Ht=[12,11,10,9,8,7,6];function Pt(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function It(e){return Math.round(100*e)/100}function Et(e,t,n=.21875){const o=Math.pow(2,t),r=e/(1-n)/o,i=Number.isInteger(r),l=It(r),a=i?r:It(.96*r);return{legs:t,exactStake:l,stake:a,margin:1-e/(a*o),multiple:e/a,oddsOneIn:o,discounted:!i}}function jt(e,t=Ht){return{dividend:e,rungs:t.map(t=>Et(e,t))}}function Nt(e,t){if(!Pt(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,r=Ht.filter(e=>e>=n&&e<=o);if(0===r.length)return null;const i=t?.dividends??Ot;return{dividends:i.map(e=>jt(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 Yt={signature:1,premier:2,exclusive:3},Gt=[{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 Vt(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function Ut(e,t){return e.filter(e=>Vt(e)===t)}function Zt(e){const t=new Set(e.map(Vt));return Gt.filter(e=>t.has(e.level))}function Kt(e){return Zt(e)[0]?.id??"signature"}function qt({howToPlay:e,maxPayout:t,tiers:n,modes:o,pydDividends:r,colors:i,bodyFont:l,headingFont:d,onOpenChange:h}){const[f,u]=(0,a.useState)(null);(0,a.useEffect)(()=>{h?.(null!==f)},[f,h]);const g=!!(o?.length||r?.length||n.some(e=>e.payout20>0)),p=!!o?.length,y=r?.length?Math.max(...r.map(e=>e.dividend)):0,m=p?`${o.length} payout options available`:r?.length?y>0?`Win up to ${$(y)}`:null:t>0?`Win up to ${$(t)} for $20`:null,b="pay"===f?"Hide dividends":p?"Compare dividends":"Show dividends",w=(0,a.useRef)(null),[x,B]=(0,a.useState)(!1),[k,C]=(0,a.useState)(null),S="web"===c.Platform.OS;(0,a.useEffect)(()=>{if(!f)return;if(S){const e=e=>{const t=w.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||u(null)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}const e=w.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=c.Dimensions.get("window").height-(t+o);B(r<240&&t>r),C({x:e,y:t,width:n,height:o})})},[f,S]);const F=e=>({flex:1,minWidth:0,borderWidth:1,borderColor:e?i.primary:i.border,borderRadius:10,backgroundColor:e?i.primary:i.backgroundAlt??"#FCFBF9",paddingVertical:9,paddingHorizontal:6,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:4}),z=e=>({fontFamily:l,fontWeight:"700",fontSize:10,color:e?i.primaryText:i.text,lineHeight:11,textAlign:"center"}),v=(0,s.jsx)(c.View,{style:{paddingHorizontal:14,paddingVertical:12},children:"how"===f?(0,s.jsx)(c.Text,{style:{fontSize:11.5,lineHeight:18.6875,color:i.textMuted,fontFamily:l,textAlign:"left"},children:e}):o?.length?o.map((e,t)=>(0,s.jsxs)(c.View,{style:{borderTopWidth:0===t?0:1,borderTopColor:i.border,paddingTop:0===t?0:8,marginTop:0===t?0:8},children:[(0,s.jsx)(c.Text,{style:{fontSize:11,fontWeight:"700",marginBottom:4,color:i.text,fontFamily:d},children:e.label}),e.tiers.map(e=>(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:4,gap:14},children:[(0,s.jsxs)(c.Text,{style:{color:i.textMuted,fontSize:11,flex:1,fontFamily:l},children:[e.label," correct"]}),(0,s.jsx)(c.Text,{style:{fontWeight:"700",color:i.heading??i.text,fontSize:12,fontFamily:l},children:$(e.payout20)})]},e.label))]},e.id)):r?.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingBottom:4,marginBottom:4,borderBottomWidth:1,borderBottomColor:i.border},children:[(0,s.jsx)(c.Text,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:i.primary,fontFamily:l},children:"Dividend"}),(0,s.jsx)(c.Text,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:i.primary,fontFamily:l},children:"Stake from"})]}),r.map(e=>(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:4},children:[(0,s.jsx)(c.Text,{style:{fontWeight:"700",color:i.heading??i.text,fontSize:12,fontFamily:l},children:$(e.dividend)}),(0,s.jsx)(c.Text,{style:{fontWeight:"600",color:i.text,fontSize:12,fontFamily:l},children:$(e.stakeFrom)})]},e.dividend)),(0,s.jsx)(c.Text,{style:{marginTop:8,fontSize:10,fontStyle:"italic",color:i.textMuted,fontFamily:l},children:"You set the dividend before kick-off. Longer climbs start from a smaller stake."})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingBottom:4,marginBottom:4,borderBottomWidth:1,borderBottomColor:i.border},children:[(0,s.jsx)(c.Text,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:i.primary,fontFamily:l},children:"Legs played"}),(0,s.jsx)(c.Text,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:i.primary,fontFamily:l},children:"Payout"})]}),n.map(e=>(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:4},children:[(0,s.jsxs)(c.Text,{style:{fontWeight:"600",color:i.text,fontSize:12,fontFamily:l},children:[e.count," legs"]}),(0,s.jsx)(c.Text,{style:{fontWeight:"600",color:e.payout20>0?i.text:i.textMuted,fontSize:12,fontFamily:l},children:e.payout20>0?$(e.payout20):"—"})]},e.count)),(0,s.jsx)(c.Text,{style:{marginTop:8,fontSize:10,fontStyle:"italic",color:i.textMuted,fontFamily:l},children:"Example values for a $20 bet."})]})});return(0,s.jsxs)(c.View,{ref:w,style:{width:"100%",marginTop:4},children:[g&&m&&(0,s.jsx)(c.View,{style:{alignItems:"center",marginBottom:6},children:(0,s.jsx)(c.Text,{style:{fontSize:11,fontWeight:"600",color:i.text,fontFamily:l},children:m})}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",gap:8},children:[(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>u(e=>"how"===e?null:"how"),accessibilityRole:"button",accessibilityState:{expanded:"how"===f},style:F("how"===f),children:[(0,s.jsx)(c.Text,{style:z("how"===f),children:"How to Play"}),(0,s.jsx)(c.Text,{style:{fontSize:7,color:"how"===f?i.primaryText:i.text,transform:[{rotate:"how"===f?"180deg":"0deg"}]},children:"▼"})]}),g?(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>u(e=>"pay"===e?null:"pay"),accessibilityRole:"button",accessibilityState:{expanded:"pay"===f},style:F("pay"===f),children:[(0,s.jsx)(c.Text,{style:z("pay"===f),children:b}),(0,s.jsx)(c.Text,{style:{fontSize:7,color:"pay"===f?i.primaryText:i.text,transform:[{rotate:"pay"===f?"180deg":"0deg"}]},children:"▼"})]}):(0,s.jsx)(c.View,{style:{flex:1}})]}),f&&S&&(0,s.jsx)(c.View,{style:{position:"absolute",left:0,right:0,top:"100%",marginTop:8,zIndex:30,backgroundColor:i.background??"#fff",borderWidth:1,borderColor:i.border,borderRadius:10,shadowColor:"#000",shadowOffset:{width:0,height:12},shadowOpacity:.16,shadowRadius:24},children:v}),(0,s.jsx)(yt,{visible:!!f&&!S,anchor:k,onClose:()=>u(null),flipUp:x,align:"left",gap:8,children:(0,s.jsx)(c.View,{style:{width:k?.width,backgroundColor:i.background??"#FCFBF9",borderRadius:10,borderWidth:1,borderColor:i.border,elevation:6,shadowColor:"#000",shadowOffset:{width:0,height:12},shadowOpacity:.16,shadowRadius:24,overflow:"hidden"},children:v})})]})}function Xt({tabs:e,active:t,onChange:n,colors:o,bodyFont:r,useShortLabel:i}){return e.length<=1?null:(0,s.jsx)(c.View,{style:{flexDirection:"row",gap:8,marginBottom:12},children:e.map(e=>{const l=e.id===t;return(0,s.jsx)(c.TouchableOpacity,{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:(0,s.jsx)(c.Text,{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 Qt({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:r,iconColor:i,accentColor:l,captionColor:h,bodyFont:f,legOptions:u,onPick:g,colors:p,menuShadow:y}){const[m,b]=(0,a.useState)(!1),[w,x]=(0,a.useState)(null),B=(0,a.useRef)(null),k=(0,a.useRef)(null),[C,S]=(0,a.useState)(null),[F,z]=(0,a.useState)(!1),[v,W]=(0,a.useState)(null),A="web"===c.Platform.OS,T=40+40*u.length+12;(0,a.useLayoutEffect)(()=>{if(!m||!A)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,r=window.innerHeight-t.bottom,i=t.top,l=r<T&&i>r;S({top:t.top+o,bottom:t.bottom+o,right:t.right+n,flipUp:l})},[m,A,T]),(0,a.useEffect)(()=>{if(!m)return;if(A){const e=e=>{const t=B.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||k.current&&k.current.contains(n)||b(!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=c.Dimensions.get("window").height-(t+o);z(r<T&&t>r),W({x:e,y:t,width:n,height:o})})},[m,A,T]);const L=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.View,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:p.border},children:(0,s.jsx)(c.Text,{style:{fontSize:10,fontWeight:"700",color:p.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase",fontFamily:f},children:"How many picks?"})}),u.map((e,t)=>(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>{b(!1),x(null),g(e)},onMouseEnter:()=>x(e),onMouseLeave:()=>x(t=>t===e?null:t),style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:0===t?0:1,borderTopColor:p.border,backgroundColor:w===e?p.backgroundAlt:"transparent"},children:[(0,s.jsxs)(c.Text,{style:{fontSize:14,fontWeight:"600",color:p.text,fontFamily:f},children:[e," picks"]}),(0,s.jsx)(c.Text,{style:{backgroundColor:at(p.primary,.14),color:p.primary,paddingVertical:2,paddingHorizontal:6,borderRadius:4,fontSize:10,fontWeight:"700",letterSpacing:.5,overflow:"hidden",fontFamily:f},children:"QP"})]},e))]});return(0,s.jsxs)(c.View,{ref:B,style:{position:"relative"},children:[(0,s.jsx)(it,{iconUrl:e,gameName:t,onPress:()=>b(e=>!e),size:n,brandColor:o,cardColor:r,iconColor:i,accentColor:l,captionColor:h}),m&&A&&C&&"undefined"!=typeof document&&(0,d.createPortal)((0,s.jsx)("div",{ref:k,style:{position:"absolute",top:C.flipUp?void 0:C.bottom+6,bottom:C.flipUp&&"undefined"!=typeof window?window.innerHeight-C.top+6:void 0,left:C.right,transform:"translateX(-100%)",zIndex:20,backgroundColor:p.background,border:`1px solid ${p.border}`,borderRadius:8,minWidth:180,boxShadow:y,overflow:"hidden",fontFamily:f},children:L}),document.body),(0,s.jsx)(yt,{visible:m&&!A,anchor:v,onClose:()=>b(!1),flipUp:F,align:"right",children:(0,s.jsx)(c.View,{style:{elevation:6,backgroundColor:p.background,borderRadius:8,borderWidth:1,borderColor:p.border,minWidth:180,shadowColor:"#000",shadowOffset:{width:0,height:12},shadowOpacity:.16,shadowRadius:24,overflow:"hidden"},children:L})})]})}function Jt({color:e,style:t}){return(0,s.jsx)(c.View,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function $t({colors:e,count:t=3,tileSize:n=100}){const o=e.selectionCard??e.backgroundAlt;return(0,s.jsx)(c.View,{style:{gap:12,width:"100%"},accessibilityLabel:"Loading",children:Array.from({length:t}).map((t,r)=>(0,s.jsx)(c.View,{style:{borderRadius:12,borderWidth:2,borderTopWidth:4,padding:16,gap:16,width:"100%",borderColor:e.border,borderTopColor:e.primary,backgroundColor:o},children:(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"flex-start",gap:12,width:"100%"},children:[(0,s.jsxs)(c.View,{style:{flex:1,minWidth:0,gap:8},children:[(0,s.jsx)(Jt,{color:e.textMuted,style:{height:28,width:144,maxWidth:"85%"}}),(0,s.jsx)(Jt,{color:e.textMuted,style:{height:14,width:"100%"}}),(0,s.jsx)(Jt,{color:e.textMuted,style:{height:14,width:"82%"}}),(0,s.jsx)(Jt,{color:e.textMuted,style:{height:20,width:112,borderRadius:999}})]}),(0,s.jsx)(Jt,{color:e.textMuted,style:{width:n,height:n,borderRadius:12,flexShrink:0}})]})},r))})}function _t({games:e,selectedGame:t,onSelectGame:n,loading:o,error:r,theme:i,colorScheme:l,showTier:d=!1,showCategory:h=!1,showTierFilter:f=!1,onPropositionCountChange:u,onPropositionCountSelected:g,onQuickPickGame:p,maxPayouts:y}){const m=$e(i,l),b=m.colors,w=Me(m),x=_e(m),B=et(m),k=ve(m),C=ut(m),S=De(m),F="dark"===m.colorScheme,z=(0,a.useMemo)(()=>Zt(e),[e]),[v,W]=(0,a.useState)(()=>Kt(e)),[A,T]=(0,a.useState)(null);(0,a.useEffect)(()=>{0!==z.length&&(z.some(e=>e.id===v)||W(z[0].id))},[z,v]);const L=(0,a.useMemo)(()=>!f||z.length<=1?e:Ut(e,Yt[v]),[e,f,z.length,v]),D=e=>e.allowed_propositions&&e.allowed_propositions.length>0&&e.game_name.replace(/\s+\d+\s*$/,"").trim()||e.game_name,[M,R]=(0,a.useState)(0),O=M>0&&M<400,H=O?88:M>0&&M>=400&&M<480?96:104,P=M>0&&M<380,I=M>0?M>=420?(M-12)/2:M:void 0,E={shadowColor:"#000",shadowOpacity:F?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};return o?(0,s.jsx)($t,{colors:Oe(m),count:Math.min(Math.max(e.length,2),4)}):r?(0,s.jsx)(c.View,{style:en.centerContainer,children:(0,s.jsx)(c.Text,{style:{color:b.error,fontFamily:x},children:r})}):0===e.length?(0,s.jsx)(c.View,{style:en.centerContainer,children:(0,s.jsx)(c.Text,{style:{color:b.textMuted,fontFamily:x},children:"No games available"})}):(0,s.jsxs)(c.View,{style:{flexDirection:"column"},onLayout:e=>R(e.nativeEvent.layout.width),children:[f&&(0,s.jsx)(Xt,{tabs:z,active:v,onChange:W,colors:b,bodyFont:x,useShortLabel:P}),0===L.length?(0,s.jsx)(c.View,{style:en.centerContainer,children:(0,s.jsx)(c.Text,{style:{color:b.textMuted,fontFamily:x},children:"No games in this collection"})}):(0,s.jsx)(c.View,{style:{flexDirection:"row",flexWrap:"wrap",gap:12},children:L.map(e=>{const o=function(e){const t=e.available_days;if(!t)return!0;if(0===t.length)return!0;const n=((new Date).getDay()+6)%7;return t.includes(n)}(e),r=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>Ce[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=se(e),f=e.description||e.rule,F=e.allowed_propositions&&e.allowed_propositions.length>0?e.allowed_propositions:[],z=e.min_propositions??e.num_propositions??null,v=e.max_propositions??e.num_propositions??null,W=0===F.length&&null!==z&&null!==v&&v>0,L=W?Fe(z,v):[],M=F.length>0?F:L,R=(()=>{const t=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 M){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=M.length>0?Math.max(...M.map(Number)):0,j=Z(e),N=Pt(e)?Nt(e):null,Y=N?N.dividends.map(e=>({dividend:e.dividend,stakeFrom:Math.min(...e.rungs.map(e=>e.stake))})):void 0,G=N?[]:R.map(e=>({count:e.count,payout20:e.payout>0&&e.betAmount>0?e.payout/e.betAmount*20:0})),V=Mt(e,P),U="safety_net"===V?.kind?(V.options??[]).flatMap(e=>e.dividends?.length?[{id:e.id,label:e.label,tiers:e.dividends.map(e=>({label:e.label,payout20:e.payout20}))}]:[]):[],K=(F.length>0||W)&&G.some(e=>e.payout20>0),q=!!f||U.length>0||K||!!Y?.length,X=U.length>0?U.reduce((e,t)=>t.tiers.reduce((e,t)=>Math.max(e,t.payout20),e),0):G.reduce((e,t)=>t.payout20>e?t.payout20:e,0);return(0,s.jsxs)(c.View,{style:[en.gameCard,{width:I,borderColor:i?b.primary:b.border,backgroundColor:i?b.infoBg:b.background??w,opacity:o?1:.5,zIndex:A===l?1:void 0},E],pointerEvents:o?"auto":"none",children:[e.quick_pick_only&&p&&M.length>1?(0,s.jsx)(Qt,{iconUrl:j,gameName:D(e),size:H,brandColor:b.primary,cardColor:w,iconColor:b.primaryText,accentColor:S,captionColor:b.textMuted,bodyFont:x,legOptions:M.map(Number),onPick:t=>p(e,t),colors:b,menuShadow:C}):(0,s.jsx)(it,{iconUrl:j,gameName:D(e),onPress:()=>{e.quick_pick_only&&p&&P>0?p(e,P):(P>0&&!wt(e)&&u?.(P),n(e),g?.())},size:H,brandColor:b.primary,cardColor:w,iconColor:b.primaryText,accentColor:S,captionColor:b.primary}),(0,s.jsxs)(c.Text,{style:{marginTop:4,fontFamily:B,fontSize:12,letterSpacing:-.48,lineHeight:12},children:[(0,s.jsx)(c.Text,{style:{fontWeight:"800",color:b.primary},children:"YES"}),(0,s.jsx)(c.Text,{style:{fontWeight:"600",color:at(b.primary,.85)},children:"NO"})]}),(0,s.jsx)(c.Text,{style:{fontFamily:B,fontWeight:"600",fontSize:O?15:17,color:k,letterSpacing:-.15,lineHeight:1.25*(O?15:17),textAlign:"center",paddingHorizontal:4},children:D(e)}),a.enabled&&(0,s.jsx)(c.View,{style:[en.jackpotBadge,{backgroundColor:`${b.warning}15`,marginTop:4}],children:(0,s.jsxs)(c.Text,{style:[en.jackpotBadgeText,{color:b.warning,fontFamily:x}],children:["★ ",a.progressive?a.amount>0?$(a.amount):a.limit>0?`Up to ${$(a.limit)}`:"Jackpot":$(a.amount)]})}),!o&&r&&(0,s.jsxs)(c.Text,{style:{color:b.textMuted,fontSize:12,fontWeight:"600",fontFamily:x,marginTop:4},children:["Available ",r]}),q&&(0,s.jsx)(qt,{howToPlay:f||"Pick outcomes and land the payout for this game.",maxPayout:X,tiers:G,modes:U,pydDividends:Y,colors:b,bodyFont:x,headingFont:B,onOpenChange:e=>T(t=>e?l:t===l?null:t)}),(h||d)&&(0,s.jsxs)(c.View,{style:[en.tagsRow,{justifyContent:"center",marginTop:8}],children:[h&&e.category&&(0,s.jsx)(c.View,{style:[en.tag,{backgroundColor:b.backgroundAlt}],children:(0,s.jsx)(c.Text,{style:[en.tagText,{color:We(m),fontFamily:x}],children:e.category})}),h&&(0,s.jsx)(c.View,{style:[en.tag,{backgroundColor:b.backgroundAlt}],children:(0,s.jsx)(c.Text,{style:[en.tagText,{color:We(m),fontFamily:x}],children:e.rule})}),h&&e.lotto_type&&(0,s.jsx)(c.View,{style:[en.tag,{backgroundColor:b.backgroundAlt}],children:(0,s.jsx)(c.Text,{style:[en.tagText,{color:We(m),fontFamily:x}],children:e.lotto_type})}),d&&null!=e.tier&&(0,s.jsx)(c.View,{style:[en.tag,{backgroundColor:b.backgroundAlt}],children:(0,s.jsxs)(c.Text,{style:[en.tagText,{color:We(m),fontFamily:x}],children:["Tier ",e.tier]})})]}),!W&&0===F.length&&(0,s.jsx)(c.View,{style:{marginTop:8,width:"100%"},children:(0,s.jsx)(gt,{theme:m,variant:"primary",size:"sm",onPress:()=>{n(e),g?.()},children:"Select game"})})]},l)})})]})}var en=c.StyleSheet.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 tn({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});return(0,s.jsxs)(c.View,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[(0,s.jsx)(c.TouchableOpacity,{onPress:n,disabled:r,accessibilityState:{selected:"yes"===t},style:l("yes"===t,Te(e)),children:(0,s.jsx)(c.Text,{style:a("yes"===t),children:"Yes"})}),(0,s.jsx)(c.TouchableOpacity,{onPress:o,disabled:r,accessibilityState:{selected:"no"===t},style:l("no"===t,Le(e)),children:(0,s.jsx)(c.Text,{style:a("no"===t),children:"No"})})]})}function nn({theme:e,value:t}){return(0,s.jsx)(c.View,{style:{paddingVertical:2,paddingHorizontal:8,borderRadius:8,backgroundColor:"yes"===t?Te(e):Le(e),alignItems:"center",justifyContent:"center"},children:(0,s.jsx)(c.Text,{style:{color:"#ffffff",fontSize:10,fontWeight:"700",letterSpacing:.4,textTransform:"uppercase"},children:"yes"===t?"Yes":"No"})})}function on({theme:e,variant:t,disabled:n,onPress:o,children:r}){const i=e.colors,[l,d]=(0,a.useState)(!1),h="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};return(0,s.jsx)(c.TouchableOpacity,{onPress:o,disabled:n,activeOpacity:.85,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:h.border,backgroundColor:l&&!n?h.bgHover:h.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:(0,s.jsx)(c.Text,{style:{color:h.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:r})})}var rn=c.StyleSheet.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 ln({game:e,propositions:t,selections:n,onToggleSelection:o,onRemoveSelection:r,onSubmit:i,onBack:l,loading:d,error:f,expectedCorrect:u,onExpectedCorrectChange:g,betAmount:p,onBetAmountChange:y,theme:m,colorScheme:b,hideActions:w=!1,winningCounts:x,payouts:B,renderTeamLogo:k,showCustomAmount:C=!1,betAmountLocked:S=!1,betAmountLockedNote:F,canSubmit:z,userBalance:v,onRecharge:W,boostBanner:A}){const T=$e(m,b),L=T.colors,D=Me(T),M=et(T),R=ve(T),O=We(T),H=Ae(T),P=L.textAlt??L.text,{width:I}=(0,c.useWindowDimensions)(),E=I>=640,j="dark"===T.colorScheme,N=t.length,Y=e.min_bet??0,G=Math.max(Y,.01),V=e.max_bet??null,U=[5,10,20,50,100,200,500].filter(e=>e>=G&&(null===V||e<=V)).slice(0,4),Z={};for(let a=0;a<=N;a++)Z[a]=p*a;const K=B??Z,q=K[u]??0,X=se(e),Q=X.enabled&&u===N,[J,_]=a.default.useState(null),[ee,te]=a.default.useState(!0),[ne,oe]=a.default.useState(!1),re=d||p<G||!1===z,ie=null!=v&&p>v,le=w&&!!i,ae=n?t.filter(e=>e.id in n):t,ce=Object.entries(K).map(([e,t])=>({correct:Number(e),payout:t})).filter(e=>e.correct>0&&e.payout>0).sort((e,t)=>e.correct-t.correct),de=1===ce.length?ce[0].correct:null;a.default.useEffect(()=>{null!==de&&u!==de&&g(de)},[de]);const he={shadowColor:"#000",shadowOpacity:j?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};return(0,s.jsxs)(c.View,{style:{gap:E?16:12,paddingBottom:64},children:[(0,s.jsxs)(c.View,{style:[an.section,he,{padding:E?20:16,backgroundColor:D,borderColor:L.border}],children:[(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>te(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:ee},accessibilityLabel:ee?"Hide selections":"Show selections",testID:"entry-submission-selections-toggle",style:{flexDirection:"row",alignItems:"center",gap:8,flex:1},activeOpacity:.7,children:[(0,s.jsx)(c.View,{style:{transform:[{rotate:ee?"180deg":"0deg"}]},children:(0,s.jsx)(h.default,{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(h.Path,{d:"m6 9 6 6 6-6",stroke:L.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,s.jsx)(c.Text,{style:{fontSize:E?16:14,fontWeight:"600",color:R,fontFamily:M},children:"Review Selections"})]}),(0,s.jsx)(c.View,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:999,flexShrink:0,backgroundColor:`${L.primary}15`},children:(0,s.jsxs)(c.Text,{style:{color:L.primary,fontSize:12,fontWeight:"600"},children:[ae.length," pick",1!==ae.length?"s":""]})})]}),!ee&&(0,s.jsx)(c.Text,{style:{color:L.textMuted,fontSize:12,marginTop:8},children:"Tap to show your picks"}),ee&&(0,s.jsx)(c.View,{style:{gap:8,marginTop:12},children:ae.map(e=>{const t=n?.[e.id],i="yes"===t,l="no"===t,a=!!o;return(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"flex-start",gap:8,paddingVertical:8,paddingHorizontal:12,borderRadius:4,backgroundColor:L.backgroundAlt},children:[(0,s.jsxs)(c.View,{style:{flex:1},children:[(0,s.jsxs)(c.Text,{style:{color:P,fontSize:E?14:12,fontWeight:"500"},children:[e.home_team,e.away_team?(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsx)(c.Text,{style:{color:L.textMuted},children:"vs"})," ",e.away_team]}):null]}),(0,s.jsx)(c.Text,{style:{color:L.textMuted,fontSize:11,marginTop:2},children:e.description})]}),a?(0,s.jsxs)(c.View,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[(0,s.jsx)(c.TouchableOpacity,{onPress:()=>o(e.id,"yes"),accessibilityState:{selected:i},style:{paddingHorizontal:10,paddingVertical:3,borderRadius:8,backgroundColor:i?Te(T):"transparent",borderWidth:1,borderColor:i?"transparent":L.border},children:(0,s.jsx)(c.Text,{style:{color:i?"#ffffff":L.text,fontSize:11,fontWeight:"600"},children:"Yes"})}),(0,s.jsx)(c.TouchableOpacity,{onPress:()=>o(e.id,"no"),accessibilityState:{selected:l},style:{paddingHorizontal:10,paddingVertical:3,borderRadius:8,backgroundColor:l?Le(T):"transparent",borderWidth:1,borderColor:l?"transparent":L.border},children:(0,s.jsx)(c.Text,{style:{color:l?"#ffffff":L.text,fontSize:11,fontWeight:"600"},children:"No"})})]}):t?(0,s.jsx)(c.View,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:8,flexShrink:0,backgroundColor:"yes"===t?Te(T):Le(T)},children:(0,s.jsx)(c.Text,{style:{color:"#ffffff",fontSize:10,fontWeight:"700",letterSpacing:.4,textTransform:"uppercase"},children:"yes"===t?"Yes":"No"})}):null,ee&&r&&(0,s.jsx)(c.Pressable,{onPress:()=>{t&&o?.(e.id,t),r(e.id)},onMouseEnter:()=>_(e.id),onMouseLeave:()=>_(null),style:{flexShrink:0,width:16,height:16,borderRadius:999,alignItems:"center",justifyContent:"center",backgroundColor:J===e.id?L.error:"transparent"},children:(0,s.jsx)(h.default,{width:10,height:10,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(h.Path,{d:"M6 18L18 6M6 6l12 12",stroke:J===e.id?"#fff":L.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]},e.id)})}),A?(0,s.jsx)(c.View,{style:{marginTop:8},children:A}):null]}),le&&(0,s.jsxs)(c.View,{testID:"entry-submission-scroll-hint",style:{flexDirection:"row",alignItems:"center",gap:6,marginTop:-4},children:[(0,s.jsx)(c.Text,{style:{color:L.textMuted,fontSize:E?14:12,fontWeight:"500"},children:"↓"}),(0,s.jsx)(c.Text,{style:{color:L.textMuted,fontSize:E?14:12,fontWeight:"500",flex:1},children:"Scroll down to set your bet and place your entry"})]}),(0,s.jsxs)(c.View,{style:[an.section,he,{padding:E?24:16,backgroundColor:D,borderColor:L.border}],children:[(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:E?16:12},children:[(0,s.jsx)(c.Text,{style:{fontSize:E?18:16,fontWeight:"600",color:R,fontFamily:M},children:"How much are you betting?"}),null!=v&&(0,s.jsxs)(c.Text,{style:{fontSize:12,fontWeight:"600",color:L.textMuted},children:["Balance: ",(0,s.jsx)(c.Text,{style:{color:ie?L.error:L.success},children:$(v)})]})]}),ie&&(0,s.jsxs)(c.View,{style:{marginBottom:12,paddingHorizontal:12,paddingVertical:8,borderRadius:8,backgroundColor:L.errorBg??`${L.error}15`,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,s.jsxs)(c.Text,{style:{flex:1,fontSize:12,fontWeight:"500",color:L.errorText??L.error},children:["Insufficient balance. Your bet of ",$(p)," exceeds your available ",$(v),"."]}),W&&(0,s.jsx)(c.TouchableOpacity,{onPress:W,style:{paddingHorizontal:12,paddingVertical:4,borderRadius:6,backgroundColor:L.error},children:(0,s.jsx)(c.Text,{style:{fontSize:12,fontWeight:"600",color:L.buttonPrimaryText??"#fff"},children:"Add funds"})})]}),S?(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:8,paddingHorizontal:12,paddingVertical:10,backgroundColor:L.backgroundAlt,borderWidth:1,borderColor:L.border},children:[(0,s.jsx)(c.Text,{style:{fontSize:12,color:L.textMuted,flex:1},children:F??"Stake is set for this ticket."}),(0,s.jsx)(c.Text,{style:{fontSize:18,fontWeight:"700",color:R,fontFamily:M},children:$(p)})]}):(0,s.jsxs)(c.View,{style:{gap:16},children:[C&&(0,s.jsxs)(c.View,{children:[(0,s.jsx)(c.Text,{style:{fontSize:E?14:12,fontWeight:"600",color:O,marginBottom:8},children:"Entry amount"}),(0,s.jsxs)(c.View,{style:{position:"relative"},children:[(0,s.jsx)(c.View,{style:{position:"absolute",left:12,top:0,bottom:0,justifyContent:"center",zIndex:1},pointerEvents:"none",children:(0,s.jsx)(c.Text,{style:{color:L.textMuted},children:"$"})}),(0,s.jsx)(c.TextInput,{keyboardType:"decimal-pad",placeholder:"Enter amount",accessibilityLabel:"Entry amount",value:p?String(p):"",onChangeText:e=>{if(""===e)return void y(0);const t=Number(e);if(!Number.isFinite(t))return;const n=Math.max(0,Math.round(100*t)/100);y(null!==V?Math.min(n,V):n)},onFocus:()=>oe(!0),onBlur:()=>oe(!1),style:{paddingLeft:32,paddingRight:16,paddingVertical:12,borderWidth:1,borderRadius:8,fontSize:18,fontWeight:"600",borderColor:ne?L.borderFocus??L.primary:L.border,color:P,backgroundColor:L.backgroundAlt},placeholderTextColor:L.textMuted})]}),(0,s.jsxs)(c.Text,{style:{fontSize:12,marginTop:6,color:L.textMuted},children:["Minimum bet: ",$(G),null!==V?` · Maximum: ${$(V)}`:""]}),p>0&&p<G&&(0,s.jsxs)(c.Text,{style:{fontSize:12,marginTop:4,color:L.error},children:["Bet amount must be at least ",$(G)]})]}),(0,s.jsxs)(c.View,{children:[(C||p>0)&&(0,s.jsxs)(c.View,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[C?(0,s.jsx)(c.Text,{style:{fontSize:E?14:12,fontWeight:"600",color:O},children:"Add to bet"}):(0,s.jsx)(c.View,{}),p>0&&(0,s.jsx)(c.TouchableOpacity,{onPress:()=>y(0),style:{paddingHorizontal:10,paddingVertical:4,borderRadius:6,backgroundColor:L.backgroundAlt,borderWidth:1.5,borderColor:L.border},children:(0,s.jsx)(c.Text,{style:{color:L.textMuted,fontSize:12,fontWeight:"600"},children:"Clear bet"})})]}),(0,s.jsx)(c.View,{style:{flexDirection:"row",gap:8},children:U.map(e=>{const t=null!==V&&p>=V;return(0,s.jsx)(c.TouchableOpacity,{onPress:()=>{const t=p+e;y(null!==V?Math.min(t,V):t)},disabled:t,style:{flex:1,minWidth:0,paddingHorizontal:12,paddingVertical:10,borderRadius:8,backgroundColor:"transparent",borderWidth:1,borderColor:L.border,opacity:t?.5:1,alignItems:"center",justifyContent:"center"},children:(0,s.jsxs)(c.Text,{style:{color:P,fontSize:14,fontWeight:"600"},children:["+",$(e)]})},e)})})]})]})]}),(0,s.jsx)(c.View,{style:[an.section,he,{padding:E?20:16,backgroundColor:D,borderColor:L.border}],children:(()=>{const e=w&&!!i,t=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.View,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[(0,s.jsx)(c.Text,{style:{color:O,fontSize:14},children:"Bet"}),(0,s.jsx)(c.Text,{style:{color:H,fontSize:14,fontWeight:"600"},children:$(p)})]}),q>0&&(0,s.jsxs)(c.View,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingTop:8,borderTopWidth:1,borderTopColor:L.border},children:[(0,s.jsx)(c.Text,{style:{color:O,fontSize:14,fontWeight:"600"},children:"Potential Payout"}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center"},children:[(0,s.jsx)(c.Text,{style:{color:R,fontSize:18,fontWeight:"700"},children:$(q)}),Q&&(0,s.jsx)(c.Text,{style:{color:L.warning,fontSize:12,marginLeft:4},children:"+ Jackpot"})]})]}),X.enabled&&(0,s.jsxs)(c.View,{style:[an.jackpotBanner,{backgroundColor:`${L.warning}08`,borderColor:`${L.warning}25`}],children:[(0,s.jsxs)(c.Text,{style:{color:L.warning,fontSize:12,fontWeight:"600"},children:["★ ",X.progressive?"Progressive Jackpot":"Jackpot"]}),(0,s.jsx)(c.Text,{style:{color:L.warning,fontSize:14,fontWeight:"700"},children:X.progressive?X.amount>0?$(X.amount):X.limit>0?`Up to ${$(X.limit)}`:"Progressive":$(X.amount)})]})]});return e?(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"stretch",gap:16},children:[(0,s.jsx)(c.View,{style:{flex:1,minWidth:0},children:t}),(0,s.jsx)(c.View,{style:{width:1,alignSelf:"stretch",backgroundColor:L.border}}),(0,s.jsx)(c.TouchableOpacity,{onPress:i,disabled:re,accessibilityState:{disabled:re,busy:!!d},activeOpacity:.7,style:{flexShrink:0,paddingVertical:12,paddingHorizontal:20,borderRadius:8,backgroundColor:L.buttonPrimary,opacity:re?.5:1,alignItems:"center",justifyContent:"center",minWidth:120},children:d?(0,s.jsxs)(c.View,{style:{alignItems:"center",gap:8},children:[(0,s.jsx)(c.ActivityIndicator,{size:"small",color:L.buttonPrimaryText}),(0,s.jsx)(c.Text,{style:{color:L.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Placing Entry…"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.Text,{style:{color:L.buttonPrimaryText,fontSize:16,fontWeight:"700"},children:"Place Entry"}),(0,s.jsx)(c.Text,{style:{color:L.buttonPrimaryText,fontSize:12,opacity:.9,marginTop:2},children:$(p)})]})})]}):t})()}),f&&(0,s.jsx)(c.View,{style:[an.errorBanner,{backgroundColor:L.errorBg,borderColor:L.error}],children:(0,s.jsx)(c.Text,{style:{color:L.errorText,fontSize:14},children:f})}),!w&&(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:L.border,backgroundColor:L.background,marginHorizontal:E?-24:-16,paddingHorizontal:E?24:16,paddingVertical:E?16:12},children:[(0,s.jsx)(gt,{theme:T,variant:"secondary",disabled:d,onPress:l,children:"Back"}),(0,s.jsx)(c.TouchableOpacity,{onPress:i,disabled:re,accessibilityState:{disabled:re,busy:!!d},activeOpacity:.7,style:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,paddingHorizontal:24,paddingVertical:10,borderRadius:8,backgroundColor:L.buttonPrimary,opacity:re?.5:1},children:d?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.ActivityIndicator,{size:"small",color:L.buttonPrimaryText}),(0,s.jsx)(c.Text,{style:{color:L.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Placing Entry…"})]}):(0,s.jsx)(c.Text,{style:{color:L.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:`Place Entry (${$(p)})`})})]})]})}var an=c.StyleSheet.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}}),cn="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 sn({index:e,size:t,wide:n,isWinning:o,isJackpot:r,isSelected:i,bgColor:l,borderFallback:d,warning:f,primary:u,textMuted:g,payout:p,onPress:y,accessibilityLabel:m}){const[b,w]=(0,a.useState)(!1),x=!!y,B=o||r,k=x&&b?1.12:B?1.1:1;return(0,s.jsxs)(c.TouchableOpacity,{onPress:y,disabled:!x,activeOpacity:.7,accessibilityRole:"button",accessibilityLabel:m,accessibilityState:{disabled:!x,selected:i},onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),style:[dn.circle,{width:t,height:t,borderRadius:t/2,backgroundColor:l,borderColor:r?f:o?l:d,zIndex:i?10:r?6:o?5:1,transform:[{scale:k}]},B&&dn.circleWinning,x&&b&&dn.circleHovered],children:[r&&(0,s.jsx)(c.View,{pointerEvents:"none",style:{position:"absolute",top:-3,right:-3,bottom:-3,left:-3,borderRadius:t/2+3,borderWidth:2,borderColor:`${f}80`}}),i&&(0,s.jsx)(c.View,{pointerEvents:"none",style:{position:"absolute",top:-6,right:-6,bottom:-6,left:-6,borderRadius:t/2+6,borderWidth:3,borderColor:u}}),r&&(0,s.jsx)(c.View,{pointerEvents:"none",style:{position:"absolute",top:-6,right:-6},children:(0,s.jsx)(h.default,{width:14,height:14,viewBox:"0 0 24 24",children:(0,s.jsx)(h.Path,{d:cn,fill:f,stroke:f,strokeWidth:1})})}),(0,s.jsx)(c.Text,{style:{fontSize:n?16:14,lineHeight:n?16:14,fontWeight:"600",color:o||r?"#ffffff":g},children:e}),p>0&&(0,s.jsx)(c.Text,{style:{fontSize:n?8:7,lineHeight:n?8:7,fontWeight:"400",color:o||r?"#ffffff":g},children:$(p)})]})}var dn=c.StyleSheet.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"}}),hn=class{constructor(e){this.inflight=new Map,this.cache=new Map,this.apiUrl=e.apiUrl,this.apiKey=e.apiKey,this.fetchImpl=e.fetchImpl??fetch.bind(globalThis),this.getAuthHeaders=e.getAuthHeaders}invalidateCache(){this.cache.clear()}invalidate(){this.invalidateCache()}async request(e,t,n){const o=`${this.apiUrl}${e}`,r=(t?.method??"GET").toUpperCase(),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 fn(e,t,n){const[o,r]=(0,a.useState)([]),[i,l]=(0,a.useState)(null),[c,s]=(0,a.useState)(!n?.skip),[d,h]=(0,a.useState)(null),f=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",u=(0,a.useRef)(t);u.current=t;const g=n?.skip??!1,p=(0,a.useCallback)(async()=>{if(!g)try{s(!0),h(null);const t=await e.getGames(u.current);r(t.games),l(t.howToPlayMarkdown)}catch(t){h(t instanceof Error?t.message:"Failed to fetch games")}finally{s(!1)}},[e,f,g]);return(0,a.useEffect)(()=>{p()},[p]),{games:o,howToPlayMarkdown:i,loading:c,error:d,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await p()},[e,p])}}function un(e,t,n){const[o,r]=(0,a.useState)([]),[i,l]=(0,a.useState)(!n?.skip),[c,s]=(0,a.useState)(null),d=n?.skip??!1,h=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",f=(0,a.useRef)(t);f.current=t;const u=(0,a.useCallback)(async()=>{if(!d)try{l(!0),s(null),r(await e.getPropositions(f.current))}catch(t){s(t instanceof Error?t.message:"Failed to fetch propositions")}finally{l(!1)}},[e,h,d]);return(0,a.useEffect)(()=>{u()},[u]),{propositions:o,loading:i,error:c,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await u()},[e,u])}}function gn(e,t){const[n,o]=(0,a.useState)([]),[r,i]=(0,a.useState)(!t?.skip),[l,c]=(0,a.useState)(null),s=t?.skip??!1,d=(0,a.useCallback)(async()=>{if(!s)try{i(!0),c(null),o(await e.getSports())}catch(t){c(t instanceof Error?t.message:"Failed to fetch sports")}finally{i(!1)}},[e,s]);return(0,a.useEffect)(()=>{d()},[d]),{sports:n,loading:r,error:l,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await d()},[e,d])}}function pn(e,t,n){const[o,r]=(0,a.useState)([]),[i,l]=(0,a.useState)(!n?.skip),[c,s]=(0,a.useState)(null),d=n?.skip??!1,h=t?`${t.user_id??""}_${t.pending??""}`:"",f=(0,a.useRef)(t);f.current=t;const u=(0,a.useCallback)(async()=>{if(!d)try{l(!0),s(null),r(await e.getGameEntries(f.current))}catch(t){s(t instanceof Error?t.message:"Failed to fetch entries")}finally{l(!1)}},[e,h,d]);return(0,a.useEffect)(()=>{u()},[u]),{entries:o,loading:i,error:c,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await u()},[e,u])}}function yn(e,t,n){const[o,r]=(0,a.useState)({}),[i,l]=(0,a.useState)(!1),c=n?.skip??!1,s=n?.betAmount,d=(0,a.useRef)(new Set);return(0,a.useEffect)(()=>{if(c||0===t.length)return;const n=t.filter(e=>!(e.id in o)&&!d.current.has(e.id));if(0===n.length)return;for(const e of n)d.current.add(e.id);let i=!1;return l(!0),(async()=>{try{const t=await e.getGamesMaxPayouts(n.map(e=>e.id),s);i||r(e=>({...e,...t}))}catch{}finally{i||l(!1)}})(),()=>{i=!0}},[e,t.map(e=>e.id).join(","),c,s]),{maxPayouts:o,loading:i,refetchGame:(0,a.useCallback)(async(t,n)=>{if(!c)try{const o=await e.getGamesMaxPayouts([t],n??s);o[t]&&r(e=>({...e,[t]:o[t]}))}catch{}},[e,c,s])}}function mn(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[i,l]=(0,a.useState)(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 bn(e){const[t,n]=(0,a.useState)(e?"sport":"game"),[o,r]=(0,a.useState)(null),[i,l]=(0,a.useState)({}),[c,s]=(0,a.useState)(null);return{step:t,selectedGame:o,selections:i,placedEntry:c,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 wn(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[i,l]=(0,a.useState)(null);return{preview:(0,a.useCallback)(async(t,o)=>{try{n(!0),r(null);const i=await e.getEntryPreview(t,o);return l(i),i}catch(i){const e=i instanceof Error?i.message:"Failed to preview entry";throw r(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:o,result:i}}function xn({iconUrl:e,gameName:t,chipColor:n,textColor:o,iconColor:r,accentColor:i,brandColor:l,height:a=56,showTrademark:d=!0,compact:h=!1,onPress:f}){const u=n??l??"#0F4C5C",g=o??u,p=.85*a,y=1.8*p,m=p/2,b='Manrope, Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif',w=a,x=a,B=y-.18*p*2,k=p-.05*p*2,C=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.Text,{accessibilityLabel:"YESNO",style:{fontFamily:b,fontSize:w,lineHeight:1.15*w,letterSpacing:-1,color:g,includeFontPadding:!1},children:[(0,s.jsx)(c.Text,{style:{fontWeight:"900"},children:"YES"}),(0,s.jsx)(c.Text,{style:{fontWeight:"300"},children:"NO"})]}),(0,s.jsx)(c.View,{accessible:!0,accessibilityRole:"image",accessibilityLabel:t,style:{width:y,height:p,borderRadius:m,backgroundColor:u,alignItems:"center",justifyContent:"center",flexShrink:0,transform:[{translateY:.06*-a}]},children:(0,s.jsx)(rt,{iconUrl:e,width:B,height:k,iconColor:r,accentColor:i})}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"flex-start",flexShrink:1,minWidth:0},children:[(0,s.jsx)(c.Text,{style:{fontFamily:b,fontSize:x,lineHeight:1.15*x,fontWeight:"500",color:g,includeFontPadding:!1,flexShrink:1},children:t}),d&&(0,s.jsx)(c.Text,{style:{fontFamily:b,fontSize:.3*x,lineHeight:.3*x,fontWeight:"600",color:g,marginLeft:.06*x,includeFontPadding:!1},children:"TM"})]})]});return f?(0,s.jsx)(c.Pressable,{onPress:f,accessibilityRole:"button",accessibilityLabel:`Play ${t}`,testID:"brand-logo-play",style:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:.2*a,maxWidth:"100%",minWidth:0},children:C}):(0,s.jsx)(c.View,{style:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:.2*a,maxWidth:"100%",minWidth:0},children:C})}function Bn({color:e,style:t}){return(0,s.jsx)(c.View,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function kn({colors:e}){const t=e.selectionCard??e.backgroundAlt;return(0,s.jsxs)(c.View,{style:{width:"100%"},children:[(0,s.jsx)(c.View,{style:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:e.border,marginBottom:16},children:[0,1].map(t=>(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10},children:[(0,s.jsx)(Bn,{color:e.textMuted,style:{height:14,width:68}}),(0,s.jsx)(Bn,{color:e.textMuted,style:{height:20,width:20,borderRadius:999}})]},t))}),(0,s.jsx)(c.View,{style:{gap:12,width:"100%"},children:[0,1].map(n=>(0,s.jsxs)(c.View,{style:{borderRadius:8,borderWidth:1,borderColor:e.border,backgroundColor:t,overflow:"hidden",width:"100%"},children:[(0,s.jsxs)(c.View,{style:{width:"100%",paddingHorizontal:16,paddingVertical:12,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,s.jsxs)(c.View,{style:{flex:1,gap:6},children:[(0,s.jsx)(Bn,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),(0,s.jsx)(Bn,{color:e.textMuted,style:{height:12,width:128,maxWidth:"65%"}})]}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:12,flexShrink:0},children:[(0,s.jsx)(Bn,{color:e.textMuted,style:{height:14,width:40}}),(0,s.jsx)(Bn,{color:e.textMuted,style:{height:24,width:60,borderRadius:999}})]})]}),(0,s.jsx)(c.View,{style:{borderTopWidth:1,borderTopColor:e.border,width:"100%"},children:[0,1,2].map(t=>(0,s.jsxs)(c.View,{style:{paddingHorizontal:16,paddingVertical:10,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:0===t?0:1,borderTopColor:e.border},children:[(0,s.jsxs)(c.View,{style:{flex:1,gap:4},children:[(0,s.jsx)(Bn,{color:e.textMuted,style:{height:14,width:"88%"}}),(0,s.jsx)(Bn,{color:e.textMuted,style:{height:12,width:"70%"}})]}),(0,s.jsx)(Bn,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]},n))})]})}function Cn({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,demoEntries:i,demoGames:l,demoPropositions:d,onSelectEntry:f,theme:u,colorScheme:g,renderTeamLogo:p,filterSport:y}){const m=$e(u,g),b=!!(i&&l&&d),w=m.colors,x=et(m),[B,k]=(0,a.useState)("pending"),[C,S]=(0,a.useState)([]),F=(0,a.useMemo)(()=>new hn({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:z,loading:v,error:W,refetch:A}=pn(F,{user_id:r},{skip:b}),{games:T,loading:L,error:D}=fn(F,void 0,{skip:b}),{propositions:M,loading:R,error:O}=un(F,void 0,{skip:b}),H=b?i:z,P=b?l:T,I=b?d:M,E=!b&&(v||L||R),j=b?null:W||D||O,N=(0,a.useMemo)(()=>H.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}),[H]),Y=(0,a.useMemo)(()=>{const e=new Map;for(const t of P)e.set(t.id,t);return e},[P]),G=(0,a.useMemo)(()=>{const e=new Map;for(const t of I)e.set(t.id,t);for(const t of N)if(t.propositions)for(const n of t.propositions)e.has(n.id)||e.set(n.id,n);for(const t of C)e.set(t.id,t);return e},[I,N,C]),V=(0,a.useRef)(new Set);(0,a.useEffect)(()=>{if(E||b)return;const e=[];for(const n of N)for(const t of n.proposition_ids??[])G.has(t)||V.current.has(t)||(e.push(t),V.current.add(t));if(0===e.length)return;let t=!1;return(async()=>{try{const n=await F.getPropositionsByIds(e);!t&&n.length>0&&S(e=>[...e,...n])}catch{}})(),()=>{t=!0}},[N,G,E,b,F]);const U=(0,a.useMemo)(()=>y?N.filter(e=>{const t=e.proposition_ids??[];return 0===t.length||t.some(t=>(G.get(t)??e.propositions?.find(e=>e.id===t))?.sport===y)}):N,[N,y,G]),Z=(0,a.useMemo)(()=>U.filter(e=>Q(e.pending)),[U]),K=(0,a.useMemo)(()=>U.filter(e=>!Q(e.pending)),[U]),q="pending"===B?Z:K;return E?(0,s.jsx)(c.View,{style:Fn.container,accessibilityLabel:"Loading entries",children:(0,s.jsx)(kn,{colors:Oe(m)})}):j?(0,s.jsx)(c.View,{style:Fn.container,children:(0,s.jsxs)(c.View,{style:[Fn.errorBanner,{backgroundColor:w.errorBg,borderColor:w.error}],children:[(0,s.jsx)(c.Text,{style:{color:w.errorText},children:j}),(0,s.jsx)(c.TouchableOpacity,{onPress:A,style:Fn.retryButton,children:(0,s.jsx)(c.Text,{style:{color:w.error,textDecorationLine:"underline",fontSize:14,fontWeight:"500"},children:"Try again"})})]})}):(0,s.jsxs)(c.View,{style:Fn.container,children:[(0,s.jsx)(c.View,{style:[Fn.tabBar,{borderBottomColor:w.border}],children:["pending","completed"].map(e=>{const t=B===e,n="pending"===e?Z.length:K.length;return(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>k(e),accessibilityRole:"tab",accessibilityState:{selected:t},style:[Fn.tab,{borderBottomColor:t?w.primary:"transparent"}],children:[(0,s.jsx)(c.Text,{style:[Fn.tabLabel,{color:t?w.primary:w.textMuted,fontFamily:x}],children:"pending"===e?"Pending":"Completed"}),(0,s.jsx)(c.View,{style:[Fn.tabBadge,{backgroundColor:t?`${w.primary}15`:w.backgroundAlt}],children:(0,s.jsx)(c.Text,{style:[Fn.tabBadgeText,{color:t?w.primary:w.textMuted}],children:n})})]},e)})}),0===q.length&&(0,s.jsxs)(c.View,{style:Fn.emptyState,children:[(0,s.jsx)(c.View,{style:{marginBottom:16},children:(0,s.jsx)(h.default,{width:48,height:48,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(h.Path,{d:"pending"===B?"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"})})}),(0,s.jsx)(c.Text,{style:[Fn.emptyTitle,{color:w.text}],children:"pending"===B?"No pending entries":"No completed entries"}),(0,s.jsx)(c.Text,{style:[Fn.emptySubtitle,{color:w.textMuted}],children:"pending"===B?"Entries awaiting results will appear here":"Settled entries will appear here"})]}),(0,s.jsx)(c.View,{style:Fn.entryList,children:q.map(e=>(0,s.jsx)(Sn,{entry:e,game:Y.get(e.game_id),propositionsById:G,onSelect:f,theme:m,renderTeamLogo:p},e.id))})]})}function Sn({entry:e,game:t,propositionsById:n,onSelect:o,theme:r,renderTeamLogo:i}){const l=r.colors,d=Me(r),f=et(r),u="dark"===r.colorScheme,g=e.proposition_ids??[],p=(0,a.useMemo)(()=>g.map(e=>n.get(e)).filter(Boolean),[g,n]),y=g.length,[m,b]=(0,a.useState)(!1),w=y>0,x=(0,a.useMemo)(()=>{const t=new Map;for(const n of e.propositions??[])t.set(n.id,n);return t},[e.propositions]),B=t=>{const o=e.selections?.[t];return null!=o?o:x.get(t)?.user_prediction??n.get(t)?.user_prediction},k=p.filter(e=>null!=e.result&&!e.is_voided).length,C=p.filter(e=>{if(null==e.result||e.is_voided)return!1;const t=B(e.id);return null!=t&&t===e.result}).length,S=null!=e.selections&&Object.keys(e.selections).length>0||(e.propositions??[]).some(e=>null!=e.user_prediction),F=Q(e.pending),z=!F&&X(e.winning)>0,v=e.payout_status,W="fulfilled"===v&&z,A=F?"Pending":W?"Won — pay due":"paid_out"===v&&z?"Paid":z?"Won":"Lost",T=F||W?l.warningBg:z?l.successBg:l.errorBg,L=F||W?l.warningText:z?l.successText:l.errorText,D=S&&k>0?`${C}/${y} correct`:y>0?`${y} pick${1!==y?"s":""}`:null,M=S&&k>0?C>0?l.success:l.error:l.textMuted,R=(0,s.jsxs)(c.View,{style:Fn.cardHeader,children:[(0,s.jsxs)(c.View,{style:Fn.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?(0,s.jsx)(xn,{iconUrl:Z(t),gameName:n,height:18,chipColor:l.primary,textColor:l.text,iconColor:l.primaryText,accentColor:r.brand?.accent}):(0,s.jsx)(c.Text,{style:[Fn.cardGameName,{color:l.text,fontFamily:f}],numberOfLines:1,children:n})})(),(0,s.jsxs)(c.View,{style:Fn.metaRow,children:[(e.created_at||e.entry_date)&&(0,s.jsx)(c.Text,{style:[Fn.metaText,{color:l.textMuted}],children:_(e.created_at||e.entry_date)}),D&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.Text,{style:[Fn.metaDot,{color:l.textMuted}],children:"·"}),(0,s.jsx)(c.Text,{style:[Fn.metaText,{fontWeight:"500",color:M}],children:D})]})]})]}),(0,s.jsxs)(c.View,{style:Fn.cardHeaderRight,children:[(0,s.jsxs)(c.View,{style:Fn.amounts,children:[X(e.bet_amount)>0&&(0,s.jsx)(c.Text,{style:[Fn.betLabel,{color:l.textMuted}],children:$(X(e.bet_amount))}),!F&&X(e.winning)>0&&(0,s.jsxs)(c.View,{style:{alignItems:"flex-end"},children:[(0,s.jsx)(c.Text,{style:[Fn.winAmount,{color:l.success}],children:$(X(e.winning))}),(e.payout_jackpot??0)>0&&(0,s.jsxs)(c.Text,{style:{fontSize:12,fontWeight:"400",color:l.textMuted},children:["incl. ",$(X(e.payout_jackpot))," jackpot"]})]})]}),(0,s.jsx)(c.View,{style:[Fn.statusPill,{backgroundColor:T}],children:(0,s.jsx)(c.Text,{style:[Fn.statusText,{color:L}],children:A})}),w&&(0,s.jsx)(c.View,{style:{transform:[{rotate:m?"180deg":"0deg"}]},accessibilityElementsHidden:!0,children:(0,s.jsx)(h.default,{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(h.Path,{d:"m6 9 6 6 6-6",stroke:l.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})]});return(0,s.jsxs)(c.View,{style:[Fn.card,{borderColor:l.border,backgroundColor:d,shadowColor:"#000",shadowOpacity:u?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}],children:[(0,s.jsx)(c.TouchableOpacity,{testID:"entry-card",onPress:()=>{w&&b(e=>!e),o?.({entry:e,game:t,propositions:p})},activeOpacity:.7,disabled:!w&&!o,accessibilityLabel:`Entry #${e.id}`,accessibilityState:w?{expanded:m}:void 0,children:R}),m&&y>0&&g.map(t=>{const o=(t=>n.get(t)??e.propositions?.find(e=>e.id===t))(t),a=B(t);if(!o)return(0,s.jsxs)(c.View,{style:[Fn.propRow,{borderTopColor:l.border,borderTopWidth:1}],children:[(0,s.jsx)(c.View,{style:Fn.propInfo,children:(0,s.jsxs)(c.Text,{style:{fontSize:14,color:l.textMuted},children:["Loading proposition #",t,"…"]})}),null!=a&&(0,s.jsx)(c.View,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:8,backgroundColor:"yes"===a?Te(r):Le(r)},children:(0,s.jsx)(c.Text,{style:{fontSize:10,fontWeight:"700",color:"#ffffff",letterSpacing:.4,textTransform:"uppercase"},children:J(a)})})]},t);const d=o.result,h=null!=d,f=!!o.is_voided,u=h&&!f&&null!=a&&a===d;let g,p,y;return f?(g="Void",p=`${l.textMuted}20`,y=l.textMuted):h?u?(g="Won",p=l.successBg,y=l.successText):(g="Lost",p=l.errorBg,y=l.errorText):(g="Pending",p=l.warningBg,y=l.warningText),(0,s.jsxs)(c.View,{style:[Fn.propRow,{borderTopColor:l.border,borderTopWidth:1}],children:[(0,s.jsxs)(c.View,{style:Fn.propInfo,children:[(o.home_team||o.away_team)&&(0,s.jsxs)(c.View,{style:Fn.teamsRow,children:[i&&o.home_team?i(o.home_team):null,o.home_team?(0,s.jsx)(c.Text,{style:[Fn.teamName,{color:l.text}],children:o.home_team}):null,o.home_team&&o.away_team?(0,s.jsx)(c.Text,{style:[Fn.vsText,{color:l.textMuted}],children:"vs"}):null,i&&o.away_team?i(o.away_team):null,o.away_team?(0,s.jsx)(c.Text,{style:[Fn.teamName,{color:l.text}],children:o.away_team}):null]}),(o.proposition||o.description)&&(0,s.jsx)(c.Text,{style:{fontSize:12,color:l.textMuted,marginTop:2},children:o.proposition||o.description}),o.commence_time&&(0,s.jsx)(c.Text,{style:{fontSize:12,color:l.textMuted,marginTop:2},children:_(o.commence_time)})]}),(0,s.jsxs)(c.View,{style:Fn.outcomeCol,children:[(0,s.jsx)(c.Text,{style:[Fn.outcomeLabel,{color:l.textMuted}],children:"Pick"}),null!=a?(0,s.jsx)(c.View,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:8,backgroundColor:"yes"===a?Te(r):Le(r)},children:(0,s.jsx)(c.Text,{style:{fontSize:10,fontWeight:"700",color:"#ffffff",letterSpacing:.4,textTransform:"uppercase"},children:J(a)})}):(0,s.jsx)(c.Text,{style:{fontSize:12,color:l.textMuted},children:"—"})]}),(0,s.jsxs)(c.View,{style:Fn.outcomeCol,children:[(0,s.jsx)(c.Text,{style:[Fn.outcomeLabel,{color:l.textMuted}],children:"Result"}),(0,s.jsx)(c.View,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:4,backgroundColor:p},children:(0,s.jsx)(c.Text,{style:{fontSize:12,fontWeight:"700",color:y,textTransform:"uppercase"},children:g})})]})]},t)})]})}var Fn=c.StyleSheet.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"}}),zn=(0,a.createContext)(null);function vn(){const e=(0,a.useContext)(zn);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function Wn({onPress:e,onDoubleClick:t,label:n="QUICKPICK",size:o="md",yesColor:r,noColor:i,theme:l}){const d=(0,a.useContext)(zn),f=l??d?.theme??Ie,u=ft(f),g=f.colors,p=r??Te(f),y=i??Le(f),m="sm"===o,b=m?u.space.xs:u.space.sm,w=m?6:8,x=m?u.fontSize.sm:u.fontSize.md,B=m?8.5:10,k=(0,a.useRef)(0);return(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>{if(e(),t){const e=Date.now();e-k.current<300?(k.current=0,t()):k.current=e}},activeOpacity:.8,accessibilityRole:"button",accessibilityLabel:n,style:[An.container,{borderColor:at(g.border,.6),borderRadius:u.radius.sm,minHeight:u.touchTarget.min}],children:[(0,s.jsxs)(c.View,{style:An.topRow,children:[(0,s.jsxs)(h.default,{style:c.StyleSheet.absoluteFill,viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[(0,s.jsx)(h.Polygon,{points:"0,0 53,0 47,100 0,100",fill:p}),(0,s.jsx)(h.Polygon,{points:"53,0 100,0 100,100 47,100",fill:y}),(0,s.jsx)(h.Line,{x1:"53",y1:"0",x2:"47",y2:"100",stroke:"rgba(255,255,255,0.85)",strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})]}),(0,s.jsx)(c.View,{style:[An.half,{paddingHorizontal:b,paddingVertical:w}],children:(0,s.jsx)(c.Text,{style:[An.halfLabel,{fontSize:x}],numberOfLines:1,children:"Yes"})}),(0,s.jsx)(c.View,{style:[An.half,{paddingHorizontal:b,paddingVertical:w}],children:(0,s.jsx)(c.Text,{style:[An.halfLabel,{fontSize:x}],numberOfLines:1,children:"No"})})]}),(0,s.jsx)(c.View,{style:[An.labelRow,{backgroundColor:g.buttonSecondary}],children:(0,s.jsx)(c.Text,{style:[An.labelText,{color:g.buttonSecondaryText,fontSize:B,letterSpacing:.14*B,fontFamily:f.fonts?.mono??_e(f)}],numberOfLines:1,children:n})})]})}var An=c.StyleSheet.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 Tn({style:e}){const{theme:t,bodyFont:n,eventFilterActive:o,eventFilterLabel:r,clearEventFilter:i,gameCategory:l}=vn(),{width:d}=(0,c.useWindowDimensions)(),h=d>=640,[f,u]=a.default.useState(!1);if(!o)return null;const g=t.colors,p=r??("racing"===l?"This race":"This event");return(0,s.jsxs)(c.View,{style:[Ln.container,h&&Ln.containerWide,{borderColor:`${g.primary}33`,backgroundColor:g.surface},e],children:[(0,s.jsxs)(c.View,{style:Ln.textBlock,children:[(0,s.jsx)(c.Text,{style:[Ln.kicker,{color:g.primary,fontFamily:n}],children:"Event filter"}),(0,s.jsx)(c.Text,{style:[Ln.label,{color:g.text,fontFamily:n}],numberOfLines:1,children:p}),(0,s.jsx)(c.Text,{style:[Ln.hint,{color:g.textMuted,fontFamily:n}],children:"Only propositions from this event are shown."})]}),(0,s.jsx)(c.TouchableOpacity,{onPress:i,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),style:[Ln.button,h&&Ln.buttonWide,{borderColor:`${g.primary}44`,backgroundColor:g.background,opacity:f?.9:1}],children:(0,s.jsx)(c.Text,{style:[Ln.buttonText,{color:g.text,fontFamily:n}],children:"Show all events"})})]})}var Ln=c.StyleSheet.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 Dn({onBack:e,title:t="Go back"}){const{theme:n}=vn(),o=n.colors,[r,i]=a.default.useState(!1);return(0,s.jsx)(c.TouchableOpacity,{onPress:e,accessibilityRole:"button",accessibilityLabel:t,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),style:{padding:2,alignItems:"center",justifyContent:"center",borderRadius:999,transform:[{translateX:r?-2:0}]},children:(0,s.jsx)(h.default,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(h.Path,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:r?o.text:o.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})}function Mn({onBack:e,label:t="Games"}){const{theme:n}=vn(),o=n.colors,[r,i]=a.default.useState(!1),l=r?o.primary:o.textMuted;return(0,s.jsxs)(c.TouchableOpacity,{onPress:e,accessibilityRole:"button",accessibilityLabel:t,activeOpacity:.7,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),style:{flexDirection:"row",alignItems:"center",gap:6,alignSelf:"flex-start",marginBottom:12,transform:[{translateX:r?-2:0}]},children:[(0,s.jsx)(h.default,{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(h.Path,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:l,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})}),(0,s.jsx)(c.Text,{style:{fontSize:14,fontWeight:"600",color:l},children:t})]})}function Rn({onBack:e,hideActions:t,children:n}){const o=!!e;return o||n?(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:6,marginTop:2},children:[o&&e&&(0,s.jsx)(Dn,{onBack:e}),n]}):null}var On=[1,5,10,20,50,100],Hn=[4,12];function Pn(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function In(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 En(e){if(!Pn(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Hn[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Hn[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=On.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 jn=[25,50,75,100],Nn=[{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 Yn(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function Gn(e,t){return Math.round(e*t/50*100)/100}function Vn(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:Gn(o,t),cumulative:Gn(n,t)}))}function Un(e,t){return Gn(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function Zn(e){if(!Yn(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=Nn.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??jn[0],l=e.max_bet??jn[jn.length-1],a=jn.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:jn,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}var Kn=[1,5,10,20,50],qn=[4,12];function Xn(e){return!!e&&!e.quick_pick_only&&"mirror"===(e.rule??"").trim().toLowerCase()}function Qn(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 Jn(e){if(!Xn(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??qn[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??qn[1],o=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=Kn.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 $n(e){return e?.quick_pick_only?"quick_pick":Pn(e)?"game_set":Pt(e)?"pick_your_dividend":Yn(e)?"ladder":Xn(e)?"mirror":wt(e)?"selections":Rt(e)?"rule_setup":"selections"}function _n(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(wt(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 eo(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||wt(e)||_n(e))}function to(e){switch($n(e)){case"ladder":return{belowRequiredHint:(e,t)=>`Drop to Ladder ${e} or add another pick to stay on Ladder ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay on Ladder ${e}.`,switchTierLabel:e=>`Switch to Ladder ${e}`,overloadTitle:"Add more picks to climb higher",tableColumnLabel:"Ladder",tierButtonLabel:e=>`Ladder ${e}`};case"game_set":case"pick_your_dividend":case"mirror":return{belowRequiredHint:(e,t)=>`Drop to ${e} legs or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e} legs.`,switchTierLabel:e=>`Switch to ${e} legs`,overloadTitle:"Add more legs to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`${e} legs`};default:return{belowRequiredHint:(e,t)=>`Drop to a ${e}-leg multi or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e}.`,switchTierLabel:e=>`Switch to ${e}-leg`,overloadTitle:"Add more picks to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`Multi ${e}`}}}function no({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,howToPlayMarkdown:i,selectedCategory:l,displayCategoryName:a}=vn(),d=n.colors,{width:h}=(0,c.useWindowDimensions)(),f=h>=640,u=h>=768;return(0,s.jsxs)(c.View,{style:f&&oo.headerWide,children:[(0,s.jsxs)(c.View,{style:oo.titleRow,children:[(0,s.jsx)(c.Text,{style:[oo.title,f&&oo.titleWide,u&&oo.titleDesktop,{color:ve(n),fontFamily:o,flex:1}],children:"Choose your game"}),i?.trim()?(0,s.jsx)(c.View,{style:oo.howToPlayWrap,children:(0,s.jsx)(T,{content:i,title:"How to Play",colors:{text:d.text,textMuted:d.textMuted,border:d.border,background:d.background,backgroundAlt:d.backgroundAlt,primary:d.primary,primaryText:d.primaryText},bodyFont:r,headingFont:o})}):null]}),(0,s.jsx)(Rn,{onBack:e,hideActions:t,children:l&&(0,s.jsx)(c.Text,{style:[oo.subtitle,f&&oo.subtitleWide,{color:d.textMuted,fontFamily:r}],children:a(l)})})]})}var oo=c.StyleSheet.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"}}),ro={today:"Today",weekend:"This weekend",next7:"Next 7 days"},io=["today","weekend","next7"];function lo(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function ao(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:lo(n,1)};case"weekend":{const e=n.getDay(),t=lo(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:lo(t,2)}}case"next7":return{start:n,end:lo(n,7)}}}(t,n);return o>=r&&o<i}function co(e,t,n){if(!t||n)return null;const o=e.outcome||e.description;return o?t(o):null}var so=12;function ho({color:e,style:t}){return(0,s.jsx)(c.View,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function fo({theme:e,wide:t}){const n=Oe(e),o=n.selectionCard??n.backgroundAlt;return(0,s.jsx)(c.View,{accessibilityRole:"progressbar",accessibilityLabel:"Loading",style:{gap:t?24:16,paddingBottom:64},children:(0,s.jsx)(c.View,{style:{borderRadius:8,borderWidth:2,borderColor:n.border,backgroundColor:o,overflow:"hidden"},children:[0,1,2,3,4].map(e=>(0,s.jsxs)(c.View,{style:{paddingHorizontal:t?16:12,paddingVertical:t?12:8,gap:8,borderTopWidth:0===e?0:1,borderTopColor:n.border},children:[(0,s.jsx)(ho,{color:n.textMuted,style:{height:14,width:"72%"}}),(0,s.jsx)(ho,{color:n.textMuted,style:{height:12,width:112}}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8,paddingTop:2},children:[(0,s.jsx)(ho,{color:n.textMuted,style:{height:14,flex:1,maxWidth:"58%"}}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",gap:6,flexShrink:0},children:[(0,s.jsx)(ho,{color:n.textMuted,style:{height:t?32:28,width:t?48:44,borderRadius:8}}),(0,s.jsx)(ho,{color:n.textMuted,style:{height:t?32:28,width:t?48:44,borderRadius:8}})]})]})]},e))})})}function uo({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});return(0,s.jsxs)(c.View,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[(0,s.jsx)(c.TouchableOpacity,{onPress:n,disabled:r,accessibilityState:{selected:"yes"===t},style:l("yes"===t,Te(e)),children:(0,s.jsx)(c.Text,{style:a("yes"===t),children:"Yes"})}),(0,s.jsx)(c.TouchableOpacity,{onPress:o,disabled:r,accessibilityState:{selected:"no"===t},style:l("no"===t,Le(e)),children:(0,s.jsx)(c.Text,{style:a("no"===t),children:"No"})})]})}function go({theme:e,variant:t,disabled:n,onPress:o,children:r}){const i=e.colors,[l,d]=(0,a.useState)(!1),h="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};return(0,s.jsx)(c.TouchableOpacity,{onPress:o,disabled:n,activeOpacity:.85,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:h.border,backgroundColor:l&&!n?h.bgHover:h.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:(0,s.jsx)(c.Text,{style:{color:h.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:r})})}function po({matchup:e,renderTeamLogo:t,showHomeAway:n=!1,altText:o,mutedColor:r,size:i="sm"}){const{width:l}=(0,c.useWindowDimensions)(),a=l>=640,[d,h=""]=e.split(" vs "),f=h.length>0,u="md"===i&&a?16:14,g=a?wo.matchupTeamsRow:wo.matchupTeamsStacked;if(!t&&!n)return(0,s.jsx)(c.Text,{style:{color:o,fontSize:u,fontWeight:"600"},children:e});const p=(e,i)=>(0,s.jsxs)(c.View,{style:wo.teamLogoRowWrap,children:[t?.(e),(0,s.jsxs)(c.View,{style:{flexShrink:1,minWidth:0},children:[(0,s.jsx)(c.Text,{style:{color:o,fontSize:u,fontWeight:"600"},children:e}),n&&i&&(0,s.jsx)(c.Text,{style:{fontSize:10,color:r,textTransform:"uppercase",letterSpacing:.25},children:i})]})]});return(0,s.jsxs)(c.View,{style:g,children:[p(d,"Home"),f&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.Text,{style:{color:r,fontSize:12,flexShrink:0},children:"vs"}),p(h,"Away")]})]})}function yo({label:e,colors:t,onOpenChange:n}){const o="OR"===e?"If either wins, you win.":"Both must win for Yes.",[r,i]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{n?.(r)},[r,n]),(0,s.jsxs)(c.View,{style:{position:"relative",zIndex:r?9999:0,elevation:r?9999:0},children:[(0,s.jsx)(c.Pressable,{onPress:()=>i(e=>!e),onHoverIn:()=>i(!0),onHoverOut:()=>i(!1),hitSlop:6,accessibilityLabel:o,accessibilityRole:"button",accessibilityState:{expanded:r},children:(0,s.jsx)(c.View,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:6,backgroundColor:at(t.primary,.14),borderWidth:1,borderColor:at(t.primary,.45)},children:(0,s.jsx)(c.Text,{style:{color:t.primary,fontSize:10,fontWeight:"700",lineHeight:10,textTransform:"uppercase",letterSpacing:.25},children:e})})}),r&&(0,s.jsx)(c.View,{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??at(t.primary,.3),shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:.12,shadowRadius:4,elevation:9999},children:(0,s.jsx)(c.Text,{style:{color:t.text,fontSize:11,lineHeight:15},children:o})})]})}function mo({prop:e,colors:t,size:n="sm",componentById:o}){const{width:r}=(0,c.useWindowDimensions)(),i=r>=640,l=I(e,o),d=e.description??e.proposition??"",h="md"===n?i?16:14:i?14:12,f="md"===n?"500":"400",u=t.textMuted??t.textAltMuted??t.text,[g,p]=(0,a.useState)(!1);if(!l)return(0,s.jsx)(c.Text,{style:{color:t.text,fontSize:h,fontWeight:f,flex:1},children:d});const{operator:y,legs:m}=l;return m.some(e=>e.eventLabel)?(0,s.jsx)(c.View,{style:{flex:1,minWidth:0,flexDirection:"column",gap:8,...g&&{zIndex:9999,elevation:9999,position:"relative"}},children:m.map((e,n)=>(0,s.jsxs)(c.View,{style:{minWidth:0},children:[n>0&&(0,s.jsx)(c.View,{style:{marginBottom:4},children:(0,s.jsx)(yo,{label:y,colors:t,onOpenChange:p})}),e.eventLabel&&(0,s.jsx)(c.Text,{style:{color:u,fontSize:i?12:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:.25},children:e.eventLabel}),(0,s.jsx)(c.Text,{style:{color:t.text,fontSize:h,fontWeight:f},children:e.text})]},n))}):(0,s.jsx)(c.View,{style:{flex:1,minWidth:0,...g&&{zIndex:9999,elevation:9999,position:"relative"}},children:(0,s.jsx)(c.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6,rowGap:4},children:m.map((e,n)=>(0,s.jsxs)(a.default.Fragment,{children:[n>0&&(0,s.jsx)(yo,{label:y,colors:t,onOpenChange:p}),(0,s.jsx)(c.Text,{style:{color:t.text,fontSize:h,fontWeight:f},children:e.text})]},n))})})}function bo({game:e,propositions:t,selections:n,onToggleSelection:o,onNext:r,onBack:i,loading:l,error:d,theme:f,colorScheme:u,hideActions:g=!1,initialSport:p,renderTeamLogo:y,disableQuickPick:m=!1,selectedPropositionCount:b,onPropositionCountChange:w,showHomeAway:x=!1,gameCategory:B}){const k=(0,a.useContext)(zn),C=k?.sportBaseKey,S=function(e,t){const[n,o]=(0,a.useState)([]),r=(0,a.useRef)(new Set),i=(0,a.useMemo)(()=>{const e=new Map;for(const n of t)e.set(n.id,n);for(const t of n)e.set(t.id,t);return e},[t,n]),l=(0,a.useMemo)(()=>e?function(e){const t=new Set;for(const n of e)if(O(n))for(const e of H(n))t.add(e);return[...t]}(t).filter(e=>!i.has(e)):[],[e,t,i]);return(0,a.useEffect)(()=>{if(!e||0===l.length)return;const t=l.filter(e=>!r.current.has(e));if(0===t.length)return;for(const e of t)r.current.add(e);let n=!1;return e.getPropositionsByIds(t).then(e=>{!n&&e.length>0&&o(t=>[...t,...e])}).catch(()=>{}),()=>{n=!0}},[e,l]),i}((0,a.useMemo)(()=>k?.apiUrl?new hn({apiUrl:k.apiUrl,apiKey:k.apiKey,fetchImpl:k.fetchImpl,getAuthHeaders:k.getAuthHeaders}):null,[k?.apiUrl,k?.apiKey,k?.fetchImpl,k?.getAuthHeaders]),t),F=$e(f,u),z=F.colors,v=Me(F),W=(A=F).colors.selectionProp??A.colors.background;var A;const T=z.matchupHeader??(e.color?at(e.color,.14):Re(F)),L=z.textAlt??z.text;et(F),ve(F);const{width:M}=(0,c.useWindowDimensions)(),R=M>=640,P=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(F),I=!!(e.allowed_propositions&&e.allowed_propositions.length>0),{min:E,max:j}=ce(e,b),N=E,Y=j,[G,V]=a.default.useState(()=>new Set(Object.keys(Se(t,B,C))));a.default.useEffect(()=>{const e=Se(t,B,C),n=Object.keys(e);n.length>0&&V(e=>n.every(t=>e.has(t))?e:new Set(n))},[t]);const U=N>0&&N===Y,Z=N||1,K=Y||t.length,q=Y||N||t.length,[X,Q]=a.default.useState(q),J=Object.keys(n).length,$=Y>0&&J>=Y,ee=I?null!=b&&J===b:ae(J,e.min_propositions,e.max_propositions);e.min_bet,Y>0?Math.max(2,2*Y):Math.max(2,2*J);const te=a.default.useRef(J),ne=I?null!=b&&J===b:Y>0&&J===Y;(0,a.useEffect)(()=>{ne&&J>te.current&&r?.(),te.current=J},[J,ne]);const oe=(e,t)=>{!(e in n)&&$||o(e,t)};(0,a.useEffect)(()=>{const e=Y||t.length,n=N||1;Q(t=>U?Y:Math.max(n,Math.min(t,e)))},[t.length,N,Y,U]);const re=(0,a.useMemo)(()=>new Date,[]),ie=(0,a.useMemo)(()=>function(e,t){const n=e.filter(e=>null!=function(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}(e));if(n.length<2)return[];const o=[];for(const r of io){let e=0,i=0;for(const o of n)if(ao(o.commence_time,r,t)?e+=1:i+=1,e>0&&i>0)break;e>0&&i>0&&o.push({id:r,label:ro[r]})}return o}(t,re),[t,re]),[le,se]=(0,a.useState)(null);(0,a.useEffect)(()=>{le&&!ie.some(e=>e.id===le)&&se(null)},[ie,le]);const de=(0,a.useMemo)(()=>function(e,t,n){return t?e.filter(e=>ao(e.commence_time,t,n)):e.slice()}(t,le,re),[t,le,re]),he=(0,a.useMemo)(()=>Se(de,B,C),[de,B,C]),fe=(0,a.useMemo)(()=>{const e=new Set;for(const t of de){const n=D(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[de]),[ue,ge]=(0,a.useState)(null);(0,a.useEffect)(()=>{ue&&!fe.includes(ue)&&ge(null)},[fe,ue]);const pe=(0,a.useMemo)(()=>{if(!ue)return he;const e={};for(const[t,n]of Object.entries(he)){const o=n.filter(e=>D(e)===ue);o.length>0&&(e[t]=o)}return e},[he,ue]),ye=Object.keys(pe);if(l)return(0,s.jsx)(fo,{theme:F,wide:R});if(d)return(0,s.jsx)(c.View,{style:wo.centered,children:(0,s.jsx)(c.Text,{style:{color:z.error},children:d})});const me=!m&&t.length>0;return(0,s.jsxs)(c.View,{style:{gap:R?24:16,paddingBottom:64},children:[ie.length>0&&(0,s.jsxs)(c.View,{style:[wo.marketFilterRow,{alignItems:"center"}],children:[(0,s.jsx)(c.Text,{style:{fontSize:11,fontWeight:"700",textTransform:"uppercase",letterSpacing:.5,color:z.textMuted,marginRight:2},children:"When"}),(0,s.jsx)(c.TouchableOpacity,{onPress:()=>se(null),activeOpacity:.85,style:[wo.marketChip,{borderColor:null==le?z.primary:z.border,backgroundColor:null==le?z.primary:z.background??"#fff"}],children:(0,s.jsx)(c.Text,{style:{fontSize:11,fontWeight:"700",color:null==le?z.primaryText:z.text},children:"All dates"})}),ie.map(e=>{const t=le===e.id;return(0,s.jsx)(c.TouchableOpacity,{onPress:()=>se(e.id),activeOpacity:.85,style:[wo.marketChip,{borderColor:t?z.primary:z.border,backgroundColor:t?z.primary:z.background??"#fff"}],children:(0,s.jsx)(c.Text,{style:{fontSize:11,fontWeight:"700",color:t?z.primaryText:z.text},children:e.label})},e.id)})]}),fe.length>1&&(0,s.jsxs)(c.View,{style:wo.marketFilterRow,children:[(0,s.jsx)(c.TouchableOpacity,{onPress:()=>ge(null),activeOpacity:.85,style:[wo.marketChip,{borderColor:null==ue?z.primary:z.border,backgroundColor:null==ue?z.primary:z.background??"#fff"}],children:(0,s.jsx)(c.Text,{style:{fontSize:11,fontWeight:"700",color:null==ue?z.primaryText:z.text},children:"All markets"})}),fe.map(e=>{const t=ue===e;return(0,s.jsx)(c.TouchableOpacity,{onPress:()=>ge(e),activeOpacity:.85,style:[wo.marketChip,{borderColor:t?z.primary:z.border,backgroundColor:t?z.primary:z.background??"#fff"}],children:(0,s.jsx)(c.Text,{style:{fontSize:11,fontWeight:"700",color:t?z.primaryText:z.text},children:(n=e,n.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))})},e);var n})]}),me&&(0,s.jsx)(c.View,{style:[wo.topBar,{justifyContent:"flex-end"}],children:(0,s.jsxs)(c.View,{style:[wo.quickPickRow,{gap:R?8:6}],children:[!U&&(0,s.jsxs)(c.View,{style:wo.quickPickCountRow,children:[(0,s.jsx)(c.TextInput,{keyboardType:"number-pad",value:String(X),onChangeText:e=>{const t=parseInt(e,10);isNaN(t)||Q(Math.max(Z,Math.min(K,t)))},style:[wo.quickPickInput,{width:R?56:40,paddingHorizontal:R?8:4,paddingVertical:R?6:4,fontSize:R?14:12,color:L,backgroundColor:z.backgroundAlt,borderColor:z.border}]}),(0,s.jsxs)(c.Text,{style:{color:z.textMuted,fontSize:12},children:["/ ",t.length]})]}),(0,s.jsx)(Wn,{onPress:()=>{const e=U?Y:X;for(const t of Object.keys(n)){const e=Number(t);o(e,n[e])}const{yesPicks:i,noPicks:l}=ze(t,e);for(const t of i)o(t.id,"yes");for(const t of l)o(t.id,"no");r?.()}})]})}),t.length>0&&(0,s.jsx)(c.View,{style:wo.matchupList,children:ye.every(e=>1===pe[e].length)?(0,s.jsx)(c.View,{style:[wo.matchupCard,{borderColor:z.border,backgroundColor:v},P],children:ye.map((e,t)=>{const o=pe[e][0],r="yes"===n[o.id],i="no"===n[o.id],l=o.id in n,a=$&&!l,d=0===t,h=t===ye.length-1;return(0,s.jsxs)(c.View,{style:{borderTopColor:z.border,borderTopWidth:d?0:1,opacity:a?.45:1},children:[(0,s.jsxs)(c.View,{style:{paddingHorizontal:16,paddingVertical:R?12:10,backgroundColor:T,borderTopLeftRadius:d?so:0,borderTopRightRadius:d?so:0},children:[(0,s.jsx)(c.View,{style:{minWidth:0},children:(0,s.jsx)(po,{matchup:e,renderTeamLogo:y,altText:L,mutedColor:z.textAltMuted??z.textMuted??L})}),o.commence_time&&(0,s.jsx)(c.Text,{style:{color:z.textAltMuted??z.textMuted,fontSize:11,opacity:.7,marginTop:2},children:_(o.commence_time)})]}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingHorizontal:16,paddingVertical:R?14:12,backgroundColor:W,borderTopWidth:1,borderTopColor:z.border,borderBottomLeftRadius:h?so:0,borderBottomRightRadius:h?so:0},children:[(0,s.jsxs)(c.View,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[co(o,y,x),(0,s.jsx)(mo,{prop:o,colors:z,componentById:S})]}),(0,s.jsx)(uo,{theme:F,value:r?"yes":i?"no":null,onYes:()=>oe(o.id,"yes"),onNo:()=>oe(o.id,"no"),disabled:a})]})]},o.id)})}):ye.map(e=>{const t=pe[e],o=G.has(e),r=t.filter(e=>e.id in n).length,i=t[0]?.commence_time;return(0,s.jsxs)(c.View,{style:[wo.matchupCard,{borderColor:z.border,backgroundColor:v},P],children:[(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>{return t=e,V(e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n});var t},style:[wo.matchupHeader,{backgroundColor:T,borderTopLeftRadius:so,borderTopRightRadius:so,borderBottomLeftRadius:o?0:so,borderBottomRightRadius:o?0:so}],children:[(0,s.jsxs)(c.View,{style:wo.matchupHeaderLeft,children:[(0,s.jsx)(h.default,{width:18,height:18,viewBox:"0 0 24 24",style:{flexShrink:0,transform:[{rotate:o?"180deg":"0deg"}]},children:(0,s.jsx)(h.Path,{d:"m6 9 6 6 6-6",stroke:z.textAltMuted??z.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),(0,s.jsxs)(c.View,{style:wo.matchupTeamWrapper,children:[(0,s.jsx)(po,{matchup:e,renderTeamLogo:y,showHomeAway:x,altText:L,mutedColor:z.textAltMuted??z.textMuted??L,size:"md"}),i&&(0,s.jsx)(c.Text,{style:{color:z.textAltMuted??z.textMuted,fontSize:12,opacity:.7,marginTop:2,textAlign:"left"},children:_(i)})]})]}),(0,s.jsx)(c.View,{style:wo.matchupHeaderRight,children:r>0&&(0,s.jsx)(c.View,{style:[wo.answeredBadge,{backgroundColor:z.successBg}],children:(0,s.jsxs)(c.Text,{style:{color:z.successText,fontSize:12,fontWeight:"500"},children:[r,"/",t.length]})})})]}),o&&(0,s.jsx)(c.View,{children:(0,s.jsx)(s.Fragment,{children:t.map((e,o)=>{const r="yes"===n[e.id],i="no"===n[e.id],l=e.id in n,a=$&&!l,d=o===t.length-1;return(0,s.jsx)(c.View,{style:{paddingHorizontal:16,paddingVertical:R?14:12,backgroundColor:W,borderTopColor:z.border,borderTopWidth:0===o?0:1,opacity:a?.45:1,borderBottomLeftRadius:d?so:0,borderBottomRightRadius:d?so:0},children:(0,s.jsxs)(c.View,{style:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-start",columnGap:R?16:8,rowGap:R?16:8},children:[(0,s.jsxs)(c.View,{style:{flex:1,minWidth:128,flexDirection:"row",alignItems:"flex-start",gap:8},children:[co(e,y,x),(0,s.jsx)(mo,{prop:e,colors:z,size:"md",componentById:S})]}),(0,s.jsx)(uo,{theme:F,value:r?"yes":i?"no":null,onYes:()=>oe(e.id,"yes"),onNo:()=>oe(e.id,"no"),disabled:a})]})},e.id)})})})]},e)})}),0===t.length&&(0,s.jsx)(c.View,{style:wo.centered,children:(0,s.jsx)(c.Text,{style:{color:z.textMuted},children:"No propositions available at this time"})}),!g&&(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:z.border,backgroundColor:v,marginHorizontal:R?-24:-16,paddingHorizontal:R?24:16,paddingVertical:R?16:12},children:[(0,s.jsx)(go,{theme:F,variant:"secondary",onPress:i,children:"Back"}),(0,s.jsx)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:R?12:8},children:(0,s.jsx)(go,{theme:F,variant:"primary",disabled:!ee,onPress:r,children:"Wager"})})]})]})}var wo=c.StyleSheet.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:so,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 xo(e){return e.selectionCard??e.backgroundAlt}function Bo({color:e,style:t}){return(0,s.jsx)(c.View,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function ko({colors:e,count:t=2}){const{width:n}=(0,c.useWindowDimensions)(),o=n>=400,[r,i]=a.default.useState(0),l=o?r>0?(r-12)/2:"48%":"100%",d=xo(e);return(0,s.jsx)(c.View,{onLayout:e=>i(e.nativeEvent.layout.width),style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>(0,s.jsxs)(c.View,{style:{width:l,minHeight:140,borderRadius:16,borderWidth:2,padding:20,gap:12,justifyContent:"center",alignItems:"flex-start",backgroundColor:d,borderColor:e.border},children:[(0,s.jsx)(Bo,{color:e.textMuted,style:{height:20,width:176,maxWidth:"100%"}}),(0,s.jsx)(Bo,{color:e.textMuted,style:{height:12,width:96,maxWidth:"70%"}})]},n))})}function Co({colors:e,count:t=3}){const n=xo(e);return(0,s.jsx)(c.View,{style:{gap:12,width:"100%"},children:Array.from({length:t}).map((t,o)=>(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderRadius:16,borderWidth:2,paddingHorizontal:20,paddingVertical:20,backgroundColor:n,borderColor:e.border},children:[(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:16,flex:1,minWidth:0},children:[(0,s.jsx)(Bo,{color:e.textMuted,style:{height:56,width:56,borderRadius:16}}),(0,s.jsxs)(c.View,{style:{gap:8,flex:1,minWidth:0},children:[(0,s.jsx)(Bo,{color:e.textMuted,style:{height:20,width:144,maxWidth:"75%"}}),(0,s.jsx)(Bo,{color:e.textMuted,style:{height:12,width:112,maxWidth:"60%"}})]})]}),(0,s.jsx)(Bo,{color:e.textMuted,style:{height:20,width:20,borderRadius:6}})]},o))})}function So({colors:e,tileSize:t=100}){return(0,s.jsx)(c.View,{style:{borderRadius:12,borderWidth:2,borderTopWidth:4,padding:16,gap:16,width:"100%",borderColor:e.border,borderTopColor:e.primary,backgroundColor:xo(e)},children:(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"flex-start",gap:12,width:"100%"},children:[(0,s.jsxs)(c.View,{style:{flex:1,minWidth:0,gap:8},children:[(0,s.jsx)(Bo,{color:e.textMuted,style:{height:28,width:144,maxWidth:"85%"}}),(0,s.jsx)(Bo,{color:e.textMuted,style:{height:14,width:"100%"}}),(0,s.jsx)(Bo,{color:e.textMuted,style:{height:14,width:"82%"}}),(0,s.jsx)(Bo,{color:e.textMuted,style:{height:20,width:112,borderRadius:999}})]}),(0,s.jsx)(Bo,{color:e.textMuted,style:{width:t,height:t,borderRadius:12,flexShrink:0}})]})})}function Fo({colors:e,count:t=3,tileSize:n=100}){return(0,s.jsx)(c.View,{style:{gap:12,width:"100%"},children:Array.from({length:t}).map((t,o)=>(0,s.jsx)(So,{colors:e,tileSize:n},o))})}function zo({colors:e,rows:t=5}){const{width:n}=(0,c.useWindowDimensions)(),o=n>=640;return(0,s.jsx)(c.View,{style:{gap:o?24:16,paddingBottom:64,width:"100%"},children:(0,s.jsx)(c.View,{style:{borderRadius:8,borderWidth:2,borderColor:e.border,backgroundColor:xo(e),overflow:"hidden"},children:Array.from({length:t}).map((t,n)=>(0,s.jsxs)(c.View,{style:{paddingHorizontal:o?16:12,paddingVertical:o?12:8,gap:8,borderTopWidth:0===n?0:1,borderTopColor:e.border},children:[(0,s.jsx)(Bo,{color:e.textMuted,style:{height:14,width:"72%",maxWidth:"100%"}}),(0,s.jsx)(Bo,{color:e.textMuted,style:{height:12,width:112}}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8,paddingTop:2},children:[(0,s.jsx)(Bo,{color:e.textMuted,style:{height:14,flex:1,maxWidth:"58%"}}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",gap:6,flexShrink:0},children:[(0,s.jsx)(Bo,{color:e.textMuted,style:{height:o?32:28,width:o?48:44,borderRadius:8}}),(0,s.jsx)(Bo,{color:e.textMuted,style:{height:o?32:28,width:o?48:44,borderRadius:8}})]})]})]},n))})})}function vo({colors:e}){return(0,s.jsx)(c.View,{style:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:e.border,marginBottom:16,width:"100%"},children:[0,1].map(t=>(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10},children:[(0,s.jsx)(Bo,{color:e.textMuted,style:{height:14,width:68}}),(0,s.jsx)(Bo,{color:e.textMuted,style:{height:20,width:20,borderRadius:999}})]},t))})}function Wo({colors:e}){return(0,s.jsxs)(c.View,{style:{borderRadius:8,borderWidth:1,borderColor:e.border,backgroundColor:xo(e),overflow:"hidden",width:"100%"},children:[(0,s.jsxs)(c.View,{style:{width:"100%",paddingHorizontal:16,paddingVertical:12,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,s.jsxs)(c.View,{style:{flex:1,minWidth:0,gap:6},children:[(0,s.jsx)(Bo,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),(0,s.jsx)(Bo,{color:e.textMuted,style:{height:12,width:128,maxWidth:"65%"}})]}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:12,flexShrink:0},children:[(0,s.jsx)(Bo,{color:e.textMuted,style:{height:14,width:40}}),(0,s.jsx)(Bo,{color:e.textMuted,style:{height:24,width:60,borderRadius:999}})]})]}),(0,s.jsx)(c.View,{style:{borderTopWidth:1,borderTopColor:e.border,width:"100%"},children:[0,1,2].map(t=>(0,s.jsxs)(c.View,{style:{paddingHorizontal:16,paddingVertical:10,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:0===t?0:1,borderTopColor:e.border},children:[(0,s.jsxs)(c.View,{style:{flex:1,minWidth:0,gap:4},children:[(0,s.jsx)(Bo,{color:e.textMuted,style:{height:14,width:"88%"}}),(0,s.jsx)(Bo,{color:e.textMuted,style:{height:12,width:"70%"}})]}),(0,s.jsx)(Bo,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]})}function Ao({colors:e,rows:t=2}){return(0,s.jsxs)(c.View,{style:{width:"100%"},children:[(0,s.jsx)(vo,{colors:e}),(0,s.jsx)(c.View,{style:{gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>(0,s.jsx)(Wo,{colors:e},n))})]})}function To({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":return(0,s.jsx)(Co,{colors:e,count:i});case"games":return(0,s.jsx)(Fo,{colors:e,count:r});case"propositions":return(0,s.jsx)(zo,{colors:e,rows:5});case"entries":return(0,s.jsx)(Ao,{colors:e,rows:2});default:return(0,s.jsx)(ko,{colors:e,count:i})}})();return(0,s.jsxs)(c.View,{accessibilityRole:"progressbar",accessibilityLabel:l,accessibilityLiveRegion:"polite",style:{width:"100%"},children:[n?.trim()?(0,s.jsx)(c.Text,{style:{fontSize:14,textAlign:"center",marginBottom:16,color:e.textMuted,fontFamily:t},children:n}):null,a]})}function Lo({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=j[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);return(0,s.jsxs)(h.default,{viewBox:"0 0 360 360",width:n,height:n,accessibilityLabel:r??`${l} button`,children:[(0,s.jsx)(h.Rect,{x:2,y:2,width:356,height:356,rx:78,fill:"#DDD9D2",stroke:E,strokeWidth:4}),(0,s.jsx)(h.Rect,{x:50,y:10,width:260,height:260,rx:52,fill:E,opacity:.3}),(0,s.jsx)(h.Rect,{x:50,y:35,width:260,height:260,rx:52,fill:E,opacity:.55}),(0,s.jsx)(h.Rect,{x:50,y:60,width:260,height:260,rx:52,fill:E}),(0,s.jsx)(h.Text,{x:180,y:220,fontFamily:"Manrope, Poppins, sans-serif",fontSize:a,letterSpacing:-3,textAnchor:"middle",fontWeight:"800",fill:"#DFFF1A",children:l}),o&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.Text,{x:180,y:345,fontFamily:"Manrope, Poppins, sans-serif",fontSize:24,letterSpacing:-.5,textAnchor:"middle",fontWeight:"700",fill:E,children:o}),(0,s.jsx)(h.Text,{x:262,y:333,fontFamily:"Manrope, Poppins, sans-serif",fontSize:10,fontWeight:"600",fill:E,children:"TM"})]})]})}function Do({category:e,size:t=14,color:n="currentColor"}){const o=n,r=2.25;switch(e){case"casino":return(0,s.jsxs)(h.default,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,s.jsx)(h.Path,{d:"M10.348 3.169l-7.15 3.113a2 2 0 0 0 -1.03 2.608l4.92 11.895a1.96 1.96 0 0 0 2.59 1.063l7.142 -3.11a2.002 2.002 0 0 0 1.036 -2.611l-4.92 -11.894a1.96 1.96 0 0 0 -2.588 -1.064z",fill:n}),(0,s.jsx)(h.Path,{d:"M16 3a2 2 0 0 1 1.995 1.85l.005 .15v3.5a1 1 0 0 1 -1.993 .117l-.007 -.117v-3.5h-1a1 1 0 0 1 -.117 -1.993l.117 -.007h1z",fill:n}),(0,s.jsx)(h.Path,{d:"M19.08 5.61a1 1 0 0 1 1.31 -.53c.257 .108 .505 .21 .769 .314a2 2 0 0 1 1.114 2.479l-.056 .146l-2.298 5.374a1 1 0 0 1 -1.878 -.676l.04 -.11l2.296 -5.371l-.366 -.148l-.402 -.167a1 1 0 0 1 -.53 -1.312z",fill:n})]});case"racing":return(0,s.jsxs)(h.default,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,s.jsx)(h.Path,{d:"M7 10l-.85 8.507a1.357 1.357 0 0 0 1.35 1.493h.146a2 2 0 0 0 1.857 -1.257l.994 -2.486a2 2 0 0 1 1.857 -1.257h1.292a2 2 0 0 1 1.857 1.257l.994 2.486a2 2 0 0 0 1.857 1.257h.146a1.37 1.37 0 0 0 1.364 -1.494l-.864 -9.506h-8c0 -3 -3 -5 -6 -5l-3 6l2 2l3 -2",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)(h.Path,{d:"M22 14v-2a3 3 0 0 0 -3 -3",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]});case"women":return(0,s.jsxs)(h.default,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,s.jsx)(h.Path,{d:"M7 9a5 5 0 1 0 10 0a5 5 0 1 0 -10 0",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)(h.Path,{d:"M12 14v7",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)(h.Path,{d:"M9 18h6",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]});default:return(0,s.jsxs)(h.default,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,s.jsx)(h.Path,{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)(h.Path,{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"}),(0,s.jsx)(h.Path,{d:"M12 7v-4m3 13l2.5 3m-.74 -8.55l3.74 -1.45m-11.44 7.05l-2.56 2.95m.74 -8.55l-3.74 -1.45",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]})}}function Mo({size:e=20,color:t="currentColor"}){return(0,s.jsx)(h.default,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(h.Path,{d:"m9 6 6 6-6 6",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function Ro({label:e,category:t,icon:n,theme:o,disabled:r=!1}){const i=o.colors,l=et(o),{width:a}=(0,c.useWindowDimensions)(),d=a>=480?20:a>=400?18:16,h=r?i.textMuted:i.textAlt??i.text,f=r?i.border:o.brand?.chip??i.primary,u=r?i.textMuted:o.brand?.icon??i.primaryText??i.buttonPrimaryText;return(0,s.jsxs)(c.View,{style:[Oo.row,{gap:.25*d}],children:[(0,s.jsxs)(c.Text,{accessibilityLabel:"YESNO",style:{fontSize:d,lineHeight:1.15*d,letterSpacing:-1,color:h,fontFamily:l},children:[(0,s.jsx)(c.Text,{style:Oo.yes,children:"YES"}),(0,s.jsx)(c.Text,{style:Oo.no,children:"NO"})]}),(0,s.jsx)(c.View,{accessible:!0,accessibilityRole:"image",accessibilityLabel:e,style:[Oo.pill,{width:1.6*d,height:.85*d,borderRadius:.425*d,backgroundColor:f,transform:[{translateY:.02*-d}]}],children:n??(0,s.jsx)(Do,{category:t,size:.6*d,color:u})}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"flex-start",flexShrink:1,minWidth:0},children:[(0,s.jsx)(c.Text,{style:{fontWeight:"500",fontSize:d,lineHeight:1.15*d,flexShrink:1,minWidth:0,color:h,fontFamily:l,includeFontPadding:!1},children:e}),(0,s.jsx)(c.Text,{style:{fontSize:.3*d,lineHeight:.3*d,fontWeight:"600",marginLeft:.06*d,color:h,fontFamily:l,includeFontPadding:!1},children:"TM"})]})]})}var Oo=c.StyleSheet.create({row:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",maxWidth:"100%"},yes:{fontWeight:"900"},no:{fontWeight:"300"},pill:{alignItems:"center",justifyContent:"center",flexShrink:0}});function Ho({onBack:e,hideActions:t,backLabel:n="Category"}={}){const{theme:o,selectedCategory:r}=vn(),i=o.colors,l=et(o),a=_e(o),{width:d}=(0,c.useWindowDimensions)(),h=d>=640;return(0,s.jsxs)(c.View,{style:h&&Io.headerWide,children:[(0,s.jsx)(c.Text,{style:[Io.sectionTitle,h&&Io.sectionTitleWide,{color:i.primary,fontFamily:l}],children:le(r)}),(0,s.jsx)(Rn,{onBack:e,hideActions:t,children:e?(0,s.jsx)(c.Text,{style:[Io.subtitle,h&&Io.subtitleWide,{color:i.textMuted,fontFamily:a}],children:n}):null})]})}function Po({onSelectSport:e,onCancel:t,hideTitle:n,hideActions:o,renderSportLogo:r,renderSportTagline:i,backLabel:l}){const{theme:d,propositionsForSportPicker:h,sportSummaries:f,loading:u,setSelectedSport:g,clearSelectedGame:p,selectedCategory:y,sportBaseKey:m,displaySportName:b}=vn(),w=d.colors,x=Me(d),B=et(d),k=_e(d),C=ve(d),{width:S}=(0,c.useWindowDimensions)(),F=S>=640,z=S>=400?56:44,[v,W]=a.default.useState(null),A=ee(h),T=Object.keys(A);return u?(0,s.jsx)(c.View,{style:Io.container,children:(0,s.jsx)(To,{colors:Oe(d),bodyFont:k,variant:"sport",categoryCount:T.length>0?T.length:2})}):(0,s.jsxs)(c.View,{style:Io.container,children:[!n&&(0,s.jsx)(c.View,{style:Io.titleWrap,children:(0,s.jsx)(Ho,{onBack:t,hideActions:o,backLabel:l})}),(0,s.jsx)(c.View,{style:Io.content,children:(0,s.jsx)(c.View,{style:[Io.list,F&&Io.listWide],children:T.map(t=>{const n=f.find(e=>e.key===t),o=n?.active_props??A[t].length,l=i?.(t,o)??(n?`${a=n.games_today} game${1===a?"":"s"} today · ${d=n.active_props} pick${1===d?"":"s"} available`:function(e,t){return 0===e?"racing"===t?"No races today":"casino"===t?"No games today":"No picks available":"racing"===t?`${e} race${1===e?"":"s"} today`:"casino"===t?`${e} game${1===e?"":"s"} available`:`${e} pick${1===e?"":"s"} available`}(o,y));var a,d;const h=b(t),u=v===t;return(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>{g(t),p(),e?.(t)},onMouseEnter:()=>W(t),onMouseLeave:()=>W(e=>e===t?null:e),style:[Io.row,F&&Io.rowWide,{backgroundColor:x,borderColor:u?w.primary:w.border},u&&Io.rowHovered],activeOpacity:.85,children:[(0,s.jsxs)(c.View,{style:[Io.rowMain,F&&Io.rowMainWide],children:[(0,s.jsx)(c.View,{style:Io.logoWrap,children:r?r(t):(0,s.jsx)(Lo,{gameKey:t,size:z,footer:null,sportBaseKey:m,title:`${h} button`})}),(0,s.jsxs)(c.View,{style:Io.rowText,children:[(0,s.jsx)(c.Text,{style:[Io.sportName,F&&Io.sportNameWide,{color:C,fontFamily:B}],children:h}),(0,s.jsx)(c.Text,{style:[Io.tagline,F&&Io.taglineWide,{color:w.primary,fontFamily:k}],children:l})]})]}),(0,s.jsx)(Mo,{size:S>=400?24:20,color:w.textMuted})]},t)})})})]})}var Io=c.StyleSheet.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 Eo({onBack:e,hideActions:t}={}){const{theme:n}=vn(),o=et(n),r=n.colors,{width:i}=(0,c.useWindowDimensions)(),l=i>=640;return(0,s.jsxs)(c.View,{style:l&&No.headerWide,children:[(0,s.jsx)(c.Text,{style:[No.sectionTitle,l&&No.sectionTitleWide,{color:r.primary,fontFamily:o}],children:"Pick a category"}),(0,s.jsx)(Rn,{onBack:e,hideActions:t})]})}function jo({onSelectCategory:e,onCancel:t,hideTitle:n,hideActions:o,renderCategoryIcon:r,getCategoryTagline:i}){const{theme:l,propositionsForCategoryPicker:d,loading:h,setSelectedCategory:f,setSelectedSport:u,clearSelectedGame:g,displayCategoryName:p}=vn(),y=l.colors,m=Me(l),b=_e(l),{width:w}=(0,c.useWindowDimensions)(),x=w>=640,B=w>=400,[k,C]=a.default.useState(null),[S,F]=a.default.useState(0),z=B?S>0?(S-(x?12:10))/2:"48%":"100%";re(d);const v=ie(d);return h?(0,s.jsx)(c.View,{style:No.container,children:(0,s.jsx)(To,{colors:Oe(l),bodyFont:b,variant:"category",categoryCount:v.length>0?v.length:2})}):(0,s.jsxs)(c.View,{style:No.container,children:[!n&&(0,s.jsx)(c.View,{style:No.titleWrap,children:(0,s.jsx)(Eo,{onBack:t,hideActions:o})}),(0,s.jsx)(c.View,{style:No.content,children:(0,s.jsx)(c.View,{style:[No.grid,x&&No.gridWide],onLayout:e=>F(e.nativeEvent.layout.width),children:v.map(t=>{const n=i?.(t)??function(e){return N[e]??""}(t),o=k===t;return(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>{f(t),u(null),g(),e?.(t)},onMouseEnter:()=>C(t),onMouseLeave:()=>C(e=>e===t?null:e),style:[No.card,x&&No.cardWide,{width:z,backgroundColor:m,borderColor:o?y.primary:y.border},o&&No.cardHovered],activeOpacity:.85,children:[(0,s.jsx)(Ro,{label:p(t),category:t,icon:r?.(t),theme:l}),n?(0,s.jsx)(c.Text,{style:[No.tagline,x&&No.taglineWide,{color:y.primary,fontFamily:b}],children:n}):null]},t)})})})]})}var No=c.StyleSheet.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 Yo(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 Go({name:e,renderTeamLogo:t,muted:n,headingFont:o,ink:r,wide:i}){if(!e)return(0,s.jsx)(c.Text,{style:[Uo.teamName,{color:n,fontFamily:o}],children:"TBC"});const l=t?.(e);return(0,s.jsxs)(c.View,{style:Uo.teamMark,children:[null!=l?(0,s.jsx)(c.View,{style:Uo.teamLogo,children:l}):null,(0,s.jsx)(c.Text,{style:[Uo.teamName,i&&Uo.teamNameWide,{color:r,fontFamily:o}],children:e})]})}function Vo({onSelectEvent:e}){const{theme:t,loading:n,sameGameMultiEvents:o,selectSameGameMultiEvent:r,renderTeamLogo:i,displaySportName:l}=vn(),d=t.colors,h=_e(t),f=et(t),u=Me(t),g=Re(t),{width:p}=(0,c.useWindowDimensions)(),y=p>=640,[m,b]=a.default.useState(null),[w,x]=a.default.useState(null);return n?(0,s.jsx)(c.View,{style:Uo.container,children:(0,s.jsx)(To,{colors:Oe(t),bodyFont:h,variant:"sport",categoryCount:2})}):(0,s.jsxs)(c.View,{style:Uo.container,accessibilityLabel:"Available fixtures",children:[(0,s.jsx)(c.Text,{style:[Uo.intro,{color:d.textMuted,fontFamily:h}],children:"All picks in your multi must come from one game."}),0===o.length?(0,s.jsx)(c.View,{accessibilityRole:"text",accessibilityLiveRegion:"polite",style:[Uo.emptyState,{borderColor:d.border,backgroundColor:u}],children:(0,s.jsx)(c.Text,{style:[Uo.emptyText,{color:d.textMuted,fontFamily:h}],children:"No fixtures with available propositions."})}):(0,s.jsx)(c.View,{style:[Uo.list,y&&Uo.listWide],children:o.map(t=>{const n=m===t.id,o=w===t.id;return(0,s.jsxs)(c.TouchableOpacity,{accessibilityRole:"button",accessibilityLabel:`Select ${mt(t)}`,onPress:()=>{r(t.id),e?.(t.id)},activeOpacity:.85,onMouseEnter:()=>b(t.id),onMouseLeave:()=>b(e=>e===t.id?null:e),onFocus:()=>x(t.id),onBlur:()=>x(e=>e===t.id?null:e),style:[Uo.card,y&&Uo.cardWide,{borderColor:n||o?d.primary:d.border,backgroundColor:u},n&&Uo.cardHovered],children:[(0,s.jsxs)(c.View,{style:Uo.cardMain,children:[(0,s.jsxs)(c.View,{style:[Uo.matchup,y&&Uo.matchupWide,{backgroundColor:g}],children:[(0,s.jsx)(Go,{name:t.homeTeam,renderTeamLogo:i,muted:d.textMuted,headingFont:f,ink:d.text,wide:y}),(0,s.jsx)(c.Text,{style:[Uo.vs,{color:d.textMuted,fontFamily:f}],children:"vs"}),(0,s.jsx)(Go,{name:t.awayTeam,renderTeamLogo:i,muted:d.textMuted,headingFont:f,ink:d.text,wide:y})]}),(0,s.jsxs)(c.Text,{style:[Uo.meta,y&&Uo.metaWide,{color:d.textMuted,fontFamily:h}],children:[Yo(t.commenceTime)," · ",t.propositionCount," proposition",1===t.propositionCount?"":"s",t.league||t.sport?` · ${t.league?.toUpperCase()??l(t.sport)}`:""]})]}),(0,s.jsx)(c.View,{style:{flexShrink:0,transform:[{translateX:n?2:0}]},children:(0,s.jsx)(Mo,{size:22,color:d.textMuted})})]},t.id)})})]})}var Uo=c.StyleSheet.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 Zo({counts:e,onPick:t,onDoubleAction:n,colors:o,align:r="right",direction:i="down",menuShadow:l="0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}){const[h,f]=(0,a.useState)(!1),[u,g]=(0,a.useState)(!1),[p,y]=(0,a.useState)(null),m=(0,a.useRef)(0),b=(0,a.useRef)(null),w=(0,a.useRef)(null),[x,B]=(0,a.useState)(null),[k,C]=(0,a.useState)(null),S="web"===c.Platform.OS,F=36+36*e.length+12,z="up"===i||u?"up":"down";(0,a.useLayoutEffect)(()=>{if(!h||!S)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;B({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;g(r<F&&i>r)},[h,S,F]),(0,a.useEffect)(()=>{if(!h)return y(null),void(S||g(!1));if(S){const e=e=>{const t=b.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||w.current&&w.current.contains(n)||f(!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=c.Dimensions.get("window").height-(t+o);g(r<F&&t>r),C({x:e,y:t,width:n,height:o})})},[h,S,F]);const v=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.View,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:o.border},children:(0,s.jsx)(c.Text,{style:{fontSize:10,fontWeight:"700",color:o.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase"},children:"How many picks?"})}),e.map(e=>(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>{t(e),f(!1)},accessibilityRole:"menuitem",onMouseEnter:()=>y(e),onMouseLeave:()=>y(t=>t===e?null:t),style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:1,borderTopColor:o.border,backgroundColor:p===e?o.backgroundAlt:"transparent"},children:[(0,s.jsxs)(c.Text,{style:{fontSize:14,fontWeight:"600",color:o.text},children:[e," picks"]}),(0,s.jsx)(c.View,{style:{backgroundColor:o.backgroundAlt,paddingHorizontal:6,paddingVertical:2,borderRadius:4},children:(0,s.jsx)(c.Text,{style:{color:o.text,fontSize:10,fontWeight:"700",letterSpacing:.5},children:"QP"})})]},e))]});return(0,s.jsxs)(c.View,{ref:b,style:{position:"relative",flexShrink:0},children:[(0,s.jsx)(Wn,{onPress:()=>{if(!n)return void f(e=>!e);const e=Date.now();if(e-m.current<280)return m.current=0,f(!1),void n();m.current=e,setTimeout(()=>{m.current&&Date.now()-m.current>=270&&(m.current=0,f(e=>!e))},290)}}),h&&S&&x&&"undefined"!=typeof document&&(0,d.createPortal)((0,s.jsx)("div",{ref:w,role:"menu",style:{position:"absolute",top:"up"===z?void 0:x.bottom+6,..."up"===z?{top:x.top-6,transform:"translateY(-100%)"}:null,left:"left"===r?x.left:void 0,..."right"===r?{left:x.right,transform:"up"===z?"translate(-100%, -100%)":"translateX(-100%)"}:null,zIndex:20,backgroundColor:o.background,border:`1px solid ${o.border}`,borderRadius:8,minWidth:160,boxShadow:l,overflow:"hidden"},children:v}),document.body),(0,s.jsx)(yt,{visible:h&&!S,anchor:k,onClose:()=>f(!1),flipUp:"up"===z,align:r,children:(0,s.jsx)(c.View,{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:v})})]})}function Ko({onBack:e,onNext:t,hideActions:n}={}){const{theme:o,headingFont:r,selectedGame:i,propositions:l,selections:a,toggleSelection:d,selectedPropositionCount:h,disableQuickPick:f,answeredCount:u,goToConfirmation:g,selectedEventId:p,sameGameMultiEvents:y,selectSameGameMultiEvent:m}=vn(),b=o.colors,{width:w}=(0,c.useWindowDimensions)(),x=w>=640,B=wt(i)&&!p,k=y.find(e=>e.id===p),C=i?ce(i,h):{min:0,max:0},S=C.min,F=wt(i)&&p?Math.min(C.max,l.length):C.max,z=S>0&&S===F,v=!(i?.allowed_propositions&&i.allowed_propositions.length>0)&&S>0&&F>S,W=z?F:F||l.length,A=e=>{const t=Math.max(0,Math.min(e??W,l.length));for(const i of Object.keys(a)){const e=Number(i);d(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)d(i.id,"yes");for(const i of r)d(i.id,"no")},T=!f&&l.length>0,L=v?Array.from({length:F-S+1},(e,t)=>S+t).filter(e=>e<=l.length):[],D=u>0?u:S||W;return(0,s.jsxs)(c.View,{style:[Xo.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[(0,s.jsxs)(c.View,{children:[(0,s.jsx)(c.Text,{style:[Xo.title,{fontSize:x?24:20,color:ve(o),fontFamily:r}],children:B?"Choose a Game":"Select Propositions"}),i&&(0,s.jsx)(Rn,{onBack:p?()=>m(null):e,hideActions:n,children:(0,s.jsx)(c.Text,{style:[Xo.subtitle,{color:b.textMuted}],children:k?mt(k):i.game_name})})]}),T&&(L.length>1?(0,s.jsx)(Zo,{counts:L,onPick:e=>{A(e),g(),t?.()},onDoubleAction:()=>{A(D),g(),t?.()},colors:b,menuShadow:ut(o)}):(0,s.jsx)(c.View,{style:{flexShrink:0},children:(0,s.jsx)(Wn,{onPress:()=>{A(),g(),t?.()}})}))]})}function qo({onNext:e,onBack:t,hideButtons:n=!1}){const{theme:o,selectionValid:r,answeredCount:i,selectedGame:l,selectedPropositionCount:a,selectedEventId:d,propositions:h,goToConfirmation:f,overloadPayouts:u,betAmount:g}=vn(),p=o.colors,y=Me(o),m=p.textAlt??p.textMuted,{width:b}=(0,c.useWindowDimensions)(),w=b>=640,x="dark"===o.colorScheme,B=l?ce(l,a):{min:0,max:0},k=B.min,C=wt(l)&&d?Math.min(B.max,h.length):B.max,S=!!(l?.allowed_propositions&&l.allowed_propositions.length>0),F=!S&&k>0&&C>k&&i>=k&&i<C,z=C-i,v=!S&&k>0&&C>k,W=l?v?k:C||k||l.num_propositions||0:0,A=v?C:W,T=A>0?Math.min(i/A,1):0,L=v&&C>0?k/C*100:0,D=Math.max(0,k-i),M=r&&!!e,R=0===i?"Let's get started":v&&D>0?1===D?"1 to go — almost there":`${D} to go`:F?`${z} more pick${1!==z?"s":""} available`:T>=1?"✓ All selections made":T>=.75?"Almost there!":T>=.5?"Over halfway!":T>=.25?"Getting close":"Nice start",O=v?i>=k?`${i} of maximum ${C}`:`${i} of minimum ${k}`:`${i} / ${W||h.length} picks`,H=g>0?g:20,P=u[i],I=null!=P&&P>0?P*(H/20):null,E=u[i+1],j=null!=E&&E>0?E*(H/20):null;return(0,s.jsx)(c.View,{children:(0,s.jsx)(c.View,{style:{borderWidth:1,borderColor:i>0?p.primary:p.border,borderRadius:12,overflow:"hidden",marginBottom:16,backgroundColor:y,shadowColor:"#000",shadowOpacity:x?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2},children:(0,s.jsxs)(c.View,{style:{width:"100%",padding:w?20:16,backgroundColor:i>0?`${p.primary}10`:"transparent"},children:[(0,s.jsxs)(c.View,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:12,gap:8},children:[(0,s.jsx)(c.Text,{style:{fontSize:14,fontWeight:"600",color:i>0?p.primary:m,flexShrink:0},children:O}),M?(0,s.jsx)(c.TouchableOpacity,{onPress:()=>{f(),e?.()},style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:p.buttonPrimary},children:(0,s.jsxs)(c.Text,{style:{fontSize:12,fontWeight:"600",color:p.buttonPrimaryText},children:["Continue with ",i]})}):(0,s.jsx)(c.Text,{style:{fontSize:12,fontWeight:"600",color:T>=1?p.success:p.primary,textAlign:"right",flexShrink:1},children:R})]}),(0,s.jsxs)(c.View,{style:{position:"relative",width:"100%",height:8,borderRadius:999,backgroundColor:p.background,overflow:"hidden"},children:[(0,s.jsx)(c.View,{style:{height:"100%",borderRadius:999,width:`${Math.min(100*T,100)}%`,backgroundColor:r?p.success:p.primary}}),v&&(0,s.jsx)(c.View,{style:{position:"absolute",top:-1,bottom:-1,left:`${L}%`,width:2,marginLeft:-1,borderRadius:1,backgroundColor:y,borderWidth:1,borderColor:`${p.textMuted}55`}})]}),v&&(0,s.jsxs)(c.View,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginTop:6},children:[(0,s.jsx)(c.Text,{style:{fontSize:11,color:i>=k?p.success:p.textMuted},children:i>=k?`✓ Minimum ${k} reached`:`Minimum ${k}`}),(0,s.jsx)(c.Text,{style:{fontSize:11,color:p.textMuted},children:`Max ${C}`})]}),F&&null!=j&&i<C&&(0,s.jsxs)(c.Text,{style:{fontSize:12,color:p.textMuted,marginTop:8},children:["Play with ",(0,s.jsx)(c.Text,{style:{color:p.text,fontWeight:"600"},children:$(H)}),null!=I?(0,s.jsxs)(c.Text,{children:[" to win up to ",(0,s.jsx)(c.Text,{style:{color:p.heading??p.text,fontWeight:"700"},children:$(I)}),", add another pick to win up to ",(0,s.jsx)(c.Text,{style:{color:p.heading??p.text,fontWeight:"700"},children:$(j)})]}):(0,s.jsxs)(c.Text,{children:[" to win up to ",(0,s.jsx)(c.Text,{style:{color:p.heading??p.text,fontWeight:"700"},children:$(j)})]})]})]})})})}var Xo=c.StyleSheet.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},subtitle:{fontSize:14},content:{flex:1}});function Qo({tiers:e,selectedCount:t,onSelect:n,colors:o,bodyFont:r,extraBetAmount:i,buttonLabel:l,columnLabel:d="Legs",buildYourOwn:h,quickPickOnly:f,onQuickPick:u,collapsible:g,expanded:p,onExpandedChange:y,summaryTiers:m}){const[b,w]=(0,a.useState)(!1),x=p??b,B=null!=i&&20!==i,k=B?`$${Math.round(i)} returns`:"$20 returns",C=e.some(e=>e.payout20>0),S=!!g&&!x,F=C&&!S,z=(m??e).reduce((e,t)=>t.payout20>e?t.payout20:e,0),v=B&&z>0?z*(i/20):z,W=e.length>0?82*e.length+8*Math.max(0,e.length-1):82,A=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.View,{style:{flexDirection:"column",gap:8,width:70,flexShrink:0},children:[(0,s.jsx)(c.View,{style:{paddingVertical:6,justifyContent:"center"},children:(0,s.jsx)(c.Text,{style:[Jo.labelText,{color:o.textMuted,fontFamily:r}],children:f?"Quick Pick":d})}),F&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.View,{style:{paddingVertical:4,justifyContent:"center"},children:(0,s.jsx)(c.Text,{style:[Jo.labelText,{color:o.textMuted,fontFamily:r}],children:"Dividend"})}),(0,s.jsx)(c.View,{style:{paddingVertical:4,justifyContent:"center"},children:(0,s.jsx)(c.Text,{style:[Jo.labelText,{color:o.textMuted,fontFamily:r}],children:k})})]})]}),f?(0,s.jsxs)(c.View,{style:{gap:8,alignSelf:"flex-start",width:W},children:[(0,s.jsx)(Zo,{counts:(m??e).map(e=>e.count),onPick:e=>u?u(e):n(e),align:"left",direction:"up",colors:{background:o.background??"#ffffff",backgroundAlt:o.backgroundAlt??"#f3f4f6",border:o.border??"#e5e7eb",text:o.text??"#111827"}}),C&&!S&&(0,s.jsx)(c.View,{style:{flexDirection:"row",gap:8},children:e.map(({count:e,payout20:t})=>{const n=B&&t>0?t*(i/20):null;return(0,s.jsxs)(c.View,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[(0,s.jsx)(c.View,{style:[Jo.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:(0,s.jsxs)(c.Text,{style:[Jo.tableCellText,{color:o.success}],children:[e,"/",e]})}),(0,s.jsx)(c.View,{style:[Jo.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:(0,s.jsx)(c.Text,{style:[Jo.tableCellText,{color:o.primary}],children:t>0?$(n??t):"—"})})]},String(e))})})]}):h?(0,s.jsxs)(c.View,{style:{gap:8,alignSelf:"flex-start",width:W},children:[(0,s.jsx)(c.TouchableOpacity,{onPress:()=>n(e[0]?.count??0),style:[Jo.optionButton,{paddingHorizontal:0,alignSelf:"stretch",alignItems:"center",borderColor:o.buttonPrimary??o.primary,backgroundColor:o.buttonPrimary??o.primary}],children:(0,s.jsx)(c.Text,{style:[Jo.optionButtonText,{color:o.buttonPrimaryText??"#ffffff",fontFamily:r}],children:"Make Your Selections"})}),C&&!S&&(0,s.jsx)(c.View,{style:{flexDirection:"row",gap:8},children:e.map(({count:e,payout20:t})=>{const n=t>0?$(B?t*(i/20):t):"—";return(0,s.jsxs)(c.View,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[(0,s.jsx)(c.View,{style:[Jo.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:(0,s.jsxs)(c.Text,{style:[Jo.tableCellText,{color:o.success}],children:[e,"/",e]})}),(0,s.jsx)(c.View,{style:[Jo.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:(0,s.jsx)(c.Text,{style:[Jo.tableCellText,{color:o.primary}],children:n})})]},String(e))})})]}):e.map(({count:e,payout20:a})=>{const d=t===e,h=B&&a>0?a*(i/20):null;return(0,s.jsxs)(c.View,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[(0,s.jsx)(c.TouchableOpacity,{onPress:()=>n(e),accessibilityState:{selected:d},style:[Jo.optionButton,{alignSelf:"stretch",alignItems:"center",borderColor:d?o.buttonPrimary??o.primary:o.border??o.primary,backgroundColor:d?o.buttonPrimary??o.primary:o.buttonSecondary??o.background}],children:(0,s.jsx)(c.Text,{style:[Jo.optionButtonText,{color:d?o.buttonPrimaryText??"#ffffff":o.buttonSecondaryText??o.text,fontFamily:r}],numberOfLines:1,children:l?l(e):`Multi ${e}`})}),!S&&a>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.View,{style:[Jo.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:(0,s.jsxs)(c.Text,{style:[Jo.tableCellText,{color:o.success}],children:[e,"/",e]})}),B?null!=h&&(0,s.jsx)(c.View,{style:[Jo.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:(0,s.jsx)(c.Text,{style:[Jo.tableCellText,{color:o.primary}],children:$(h)})}):(0,s.jsx)(c.View,{style:[Jo.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:(0,s.jsx)(c.Text,{style:[Jo.tableCellText,{color:o.primary}],children:$(a)})})]})]},String(e))})]});return(0,s.jsxs)(c.View,{style:{flexDirection:"column",gap:8,alignSelf:"stretch"},children:[f?(0,s.jsx)(c.View,{style:{flexDirection:"row",gap:8,alignItems:"flex-start",paddingBottom:6},children:A}):(0,s.jsx)(c.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:{flexDirection:"row",gap:8,alignItems:"flex-start",paddingBottom:6},children:A}),g&&(C?(0,s.jsxs)(c.View,{style:{alignSelf:"flex-start",flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4,maxWidth:"100%"},children:[(0,s.jsxs)(c.Text,{style:{fontSize:12,fontWeight:"600",color:o.text,fontFamily:r},children:["Win up to ",(0,s.jsx)(c.Text,{style:{color:o.heading??o.text??o.primary},children:$(v)}),(0,s.jsx)(c.Text,{style:{color:o.textMuted},children:` for $${B?Math.round(i):20}`})]}),(0,s.jsx)(c.TouchableOpacity,{onPress:()=>{return e=!x,void 0===p&&w(e),void y?.(e);var e},accessibilityRole:"button",accessibilityState:{expanded:x},style:{paddingVertical:4,paddingHorizontal:10,borderRadius:6,backgroundColor:x?o.buttonSecondary:o.background??"#ffffff",borderWidth:1,borderColor:x?o.primary??o.border:o.border},children:(0,s.jsx)(c.Text,{style:{color:o.text,fontSize:12,fontWeight:"600",fontFamily:r},children:x?"Hide dividends":"Show dividends"})})]}):(0,s.jsx)(c.View,{style:{alignSelf:"flex-start",paddingVertical:2,opacity:0},pointerEvents:"none",children:(0,s.jsx)(c.Text,{style:{fontSize:12,fontWeight:"600",fontFamily:r},children:"Show dividends"})}))]})}var Jo=c.StyleSheet.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 $o({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,selectedGame:r,selectedEventId:i,propositions:l,selections:a,toggleSelection:d,upgradePropositionCount:h,selectedPropositionCount:f,disableQuickPick:u,answeredCount:g}=vn(),p=n.colors,{width:y}=(0,c.useWindowDimensions)(),m=y>=640,b=r?ce(r,f):{min:0,max:0},w=b.min,x=wt(r)&&i?Math.min(b.max,l.length):b.max,B=w>0&&w===x,k=!(r?.allowed_propositions&&r.allowed_propositions.length>0)&&w>0&&x>w,C=B?x:x||l.length,S=e=>{const t=Math.max(0,Math.min(e??C,l.length));for(const r of Object.keys(a)){const e=Number(r);d(e,a[e])}const{yesPicks:n,noPicks:o}=ze(l,t);for(const r of n)d(r.id,"yes");for(const r of o)d(r.id,"no");h(t)},F=!u&&l.length>0,z=k?Array.from({length:x-w+1},(e,t)=>w+t):[],v=g>0?g:w||C;return(0,s.jsxs)(c.View,{style:[_o.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[(0,s.jsxs)(c.View,{children:[(0,s.jsx)(c.Text,{style:[_o.title,{fontSize:m?24:20,color:ve(n),fontFamily:o}],children:"Place Your Wager"}),r&&(0,s.jsx)(Rn,{onBack:e,hideActions:t,children:(0,s.jsx)(c.Text,{style:[_o.subtitle,{color:p.textMuted}],children:r.game_name})})]}),F&&(z.length>1?(0,s.jsx)(Zo,{counts:z,onPick:e=>S(e),onDoubleAction:()=>S(v),colors:p,menuShadow:ut(n)}):(0,s.jsx)(c.View,{style:{flexShrink:0},children:(0,s.jsx)(Wn,{onPress:()=>S()})}))]})}var _o=c.StyleSheet.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"}}),er=c.Platform.select({ios:"Menlo",default:"monospace"});function tr({theme:e,value:t}){return(0,s.jsx)(c.View,{style:{alignSelf:"center",flexShrink:0,paddingHorizontal:8,paddingVertical:2,borderRadius:8,backgroundColor:"yes"===t?Te(e):Le(e)},children:(0,s.jsx)(c.Text,{style:{color:"#ffffff",fontSize:10,fontWeight:"700",letterSpacing:.4,textTransform:"uppercase"},children:"yes"===t?"Yes":"No"})})}function nr({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,placedEntry:i}=vn(),l=n.colors,{width:a}=(0,c.useWindowDimensions)(),d=a>=640;return(0,s.jsxs)(c.View,{style:or.titleRow,children:[(0,s.jsxs)(c.View,{style:or.titleText,children:[(0,s.jsx)(c.Text,{style:[or.title,d&&or.titleWide,{color:ve(n),fontFamily:o}],children:"Entry Placed!"}),(0,s.jsx)(Rn,{onBack:e,hideActions:t,children:(0,s.jsx)(c.Text,{style:[or.message,{color:l.textMuted,fontFamily:r}],children:i?(0,s.jsxs)(s.Fragment,{children:["Entry"," ",(0,s.jsxs)(c.Text,{style:{color:l.primary,fontWeight:"600",fontFamily:er},children:["#",i.id]})," ","successfully submitted"]}):"Your entry has been successfully submitted"})})]}),(0,s.jsx)(c.View,{style:[or.checkCircle,d&&or.checkCircleWide,{backgroundColor:`${l.success}20`}],children:(0,s.jsx)(h.default,{width:d?28:24,height:d?28:24,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(h.Path,{d:"M5 13l4 4L19 7",stroke:l.success,strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})})})]})}var or=c.StyleSheet.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 rr({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o}=vn(),{width:r}=(0,c.useWindowDimensions)(),i=r>=640;return(0,s.jsxs)(c.View,{style:ir.header,children:[(0,s.jsx)(c.Text,{style:[ir.title,{fontSize:i?24:20,color:ve(n),fontFamily:o}],children:"Your Entries"}),(0,s.jsx)(Rn,{onBack:e,hideActions:t})]})}var ir=c.StyleSheet.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function lr(e,t){const n=/^#([0-9a-f]{6})$/i.exec((e??"").trim());if(!n)return e;const o=parseInt(n[1],16);return`rgba(${o>>16&255}, ${o>>8&255}, ${255&o}, ${t})`}function ar({ink:e,ball:t,size:n,balls:o=1}){return(0,s.jsxs)(h.default,{width:n,height:n,viewBox:"2 12 76 62",fill:"none",children:[(0,s.jsx)(h.Line,{x1:"9",y1:"18",x2:"71",y2:"18",stroke:e,strokeWidth:2.5,strokeLinecap:"round"}),(0,s.jsx)(h.Path,{d:"M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64",fill:"none",stroke:e,strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round",opacity:.9}),(0,s.jsx)(h.Path,{d:"M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64",fill:"none",stroke:e,strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)(h.Ellipse,{cx:"40",cy:"64",rx:"18",ry:"4.5",fill:"none",stroke:e,strokeWidth:2.2}),(o>=2?[{cx:33,cy:52,r:6.6},{cx:48,cy:49,r:6.6}]:[{cx:40,cy:50,r:8}]).map((e,n)=>(0,s.jsx)(h.Circle,{cx:e.cx,cy:e.cy,r:e.r,fill:t},n))]})}function cr({ink:e,ball:t,size:n}){return(0,s.jsxs)(h.default,{width:n,height:n,viewBox:"0 0 100 100",fill:"none",children:[(0,s.jsx)(h.Circle,{cx:"50",cy:"50",r:"34",stroke:e,strokeWidth:3,opacity:.9}),(0,s.jsx)(h.Circle,{cx:"50",cy:"50",r:"23",stroke:e,strokeWidth:3,opacity:.65}),(0,s.jsx)(h.Circle,{cx:"50",cy:"50",r:"8",fill:t}),(0,s.jsx)(h.Line,{x1:"80",y1:"20",x2:"55",y2:"45",stroke:e,strokeWidth:4,strokeLinecap:"round"}),(0,s.jsx)(h.Path,{d:"M50 50 l8 -3 -3 8 z",fill:e})]})}function sr({ink:e,ball:t,size:n}){const o=[{x:16,h:22},{x:40,h:40},{x:64,h:60}];return(0,s.jsxs)(h.default,{width:n,height:n,viewBox:"0 0 100 100",fill:"none",children:[(0,s.jsx)(h.Line,{x1:"10",y1:"84",x2:"90",y2:"84",stroke:e,strokeWidth:2,opacity:.5}),o.map((n,r)=>(0,s.jsx)(h.Rect,{x:n.x,y:84-n.h,width:16,height:n.h,rx:3.5,fill:r===o.length-1?t:e,opacity:r===o.length-1?1:.5+.22*r},n.x)),(0,s.jsx)(h.Path,{d:"M14 60 L38 48 L62 30 L86 14",stroke:e,strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),(0,s.jsx)(h.Path,{d:"M86 14 l-9 1 M86 14 l1 9",stroke:e,strokeWidth:3,strokeLinecap:"round"})]})}function dr({kind:e,balls:t,...n}){return"safety_net"===e?(0,s.jsx)(ar,{...n,balls:t}):"pick"===e?(0,s.jsx)(sr,{...n}):(0,s.jsx)(cr,{...n})}function hr({kind:e,size:t=56,balls:n}){const{theme:o}=vn(),r=o.colors,i=o.brand?.chip??r.primary,l=o.brand?.icon??r.primaryText,a=De(o);return(0,s.jsx)(c.View,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:i,borderWidth:1,borderColor:lr(l,.16),alignItems:"center",justifyContent:"center"},children:(0,s.jsx)(dr,{kind:e,ink:l,ball:a,balls:n,size:Math.round(.68*t)})})}function fr({option:e,renderDividends:t}){const{theme:n}=vn(),o=n.colors,r=et(n),i=o.primary,l=De(n),a=e.dividends??[];return t?(0,s.jsx)(s.Fragment,{children:t(e)}):(0,s.jsxs)(c.View,{style:mr.dividends,children:[(0,s.jsxs)(c.View,{style:mr.dividendRow,children:[(0,s.jsx)(c.Text,{style:[mr.dividendsCaption,{color:o.textMuted}],children:"IF YOU LAND"}),(0,s.jsxs)(c.Text,{style:[mr.dividendsCaption,{color:o.textMuted}],children:["$",20," RETURNS"]})]}),a.map((t,n)=>{const a=e.tierLegs?.[n];return(0,s.jsxs)(c.View,{style:mr.dividendTierRow,children:[(0,s.jsxs)(c.View,{style:mr.dividendLabelCol,children:[(0,s.jsx)(c.Text,{style:[mr.dividendLabel,{color:o.text}],children:t.label}),null!=a&&a>0&&(0,s.jsxs)(c.View,{style:mr.tierLegs,accessibilityElementsHidden:!0,importantForAccessibility:"no-hide-descendants",children:[Array.from({length:a}).map((e,t)=>(0,s.jsx)(c.View,{style:[mr.tierLegDot,{backgroundColor:i}]},t)),0===t.misses&&(0,s.jsx)(c.View,{style:[mr.tierLegBall,{backgroundColor:l}]})]})]}),(0,s.jsx)(c.Text,{style:[mr.dividendMult,{color:i,fontFamily:r}],children:$(t.payout20)})]},t.misses)})]})}function ur({option:e,renderDividends:t}){const{theme:n}=vn(),o=n.colors,r=e.dividends??[],i=r.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[l,h]=(0,a.useState)(!1),f=(0,a.useRef)(null),u=(0,a.useRef)(null),[g,p]=(0,a.useState)(null),[y,m]=(0,a.useState)(!1),[b,w]=(0,a.useState)(null),x="web"===c.Platform.OS,B=40+36*Math.max(r.length,1)+12,k=(0,a.useCallback)(()=>{const e=f.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom,o=t.top,r=n<B&&o>n;p({left:t.left,top:r?t.top-6:t.bottom+6,flipUp:r})},[B]);(0,a.useLayoutEffect)(()=>{if(!l||!x)return void p(null);k();const e=()=>h(!1),t=()=>k();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[l,x,k]),(0,a.useEffect)(()=>{if(!l)return;if(x){const e=e=>{const t=f.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||u.current&&u.current.contains(n)||h(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}const e=f.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=c.Dimensions.get("window").height-(t+o);m(r<B&&t>r),w({x:e,y:t,width:n,height:o})})},[l,x,B]);const C=t?(0,s.jsx)(c.View,{style:{paddingHorizontal:12,paddingVertical:8},children:t(e)}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.View,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:o.border},children:(0,s.jsxs)(c.Text,{style:{fontSize:10,fontWeight:"700",color:o.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase"},children:["Dividends for $",20]})}),r.map((e,t)=>(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:0===t?0:1,borderTopColor:o.border,gap:12},children:[(0,s.jsx)(c.Text,{style:{fontWeight:"700",color:o.text,fontSize:13,flex:1},children:e.label}),(0,s.jsx)(c.Text,{style:{fontWeight:"700",color:e.payout20>0?o.heading??o.text:o.textMuted,fontSize:13,textAlign:"right"},children:e.payout20>0?$(e.payout20):"—"})]},e.misses))]});return(0,s.jsxs)(c.View,{style:{alignSelf:"center",maxWidth:"100%",width:"100%",alignItems:"center"},children:[(0,s.jsxs)(c.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",columnGap:8,rowGap:4,maxWidth:"100%"},children:[i>0?(0,s.jsxs)(c.Text,{style:{fontSize:12,fontWeight:"600",color:o.text},children:["Win up to ",(0,s.jsx)(c.Text,{style:{color:o.heading??o.text},children:$(i)}),(0,s.jsxs)(c.Text,{style:{color:o.textMuted},children:[" for $",20]})]}):null,(0,s.jsxs)(c.View,{ref:f,collapsable:!1,style:{position:"relative",alignSelf:"flex-start"},children:[(0,s.jsx)(c.TouchableOpacity,{onPress:()=>h(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:l},style:{paddingVertical:4,paddingHorizontal:10,borderRadius:6,backgroundColor:l?o.buttonSecondary:o.background,borderWidth:1,borderColor:l?o.primary??o.border:o.border},children:(0,s.jsx)(c.Text,{style:{color:o.text,fontSize:12,fontWeight:"600"},children:l?"Hide dividends":"Show dividends"})}),(0,s.jsx)(yt,{visible:l&&!x,anchor:b,onClose:()=>h(!1),flipUp:y,align:"left",children:(0,s.jsx)(c.View,{style:{elevation:8,backgroundColor:o.background,borderRadius:8,borderWidth:1,borderColor:o.border,minWidth:220,shadowColor:"#000",shadowOffset:{width:0,height:6},shadowOpacity:.18,shadowRadius:12,overflow:"hidden"},children:C})})]})]}),l&&x&&g&&"undefined"!=typeof document?(0,d.createPortal)((0,s.jsx)("div",{ref:u,style:{position:"fixed",left:g.left,top:g.top,transform:g.flipUp?"translateY(-100%)":void 0,zIndex:9999,backgroundColor:o.background,border:`1px solid ${o.border}`,borderRadius:8,minWidth:220,overflow:"hidden",boxShadow:"0 8px 24px rgba(0,0,0,0.18)"},children:C}),document.body):null]})}function gr({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=vn(),i=r.colors,l=et(r),d=ve(r),f=i.primary,u=i.selectionCard??i.backgroundAlt,{width:g}=(0,c.useWindowDimensions)(),p=g>=640,y="safety_net"===e?Math.max(1,(t.detail?.length??2)-1):void 0,m=!!o||(t.dividends?.length??0)>0,b=m&&!!t.dividendsInline,[w,x]=(0,a.useState)(!1);return(0,s.jsxs)(c.View,{onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),style:[mr.card,p&&mr.cardWide,{backgroundColor:u,borderColor:w?f:i.border,shadowColor:w?f:"#000",shadowOpacity:w?.28:.08,shadowRadius:w?14:8,shadowOffset:{width:0,height:w?12:8},elevation:w?4:1,transform:[{translateY:w?-2:0}]}],children:[(0,s.jsxs)(c.TouchableOpacity,{onPress:n,activeOpacity:.85,accessibilityRole:"button",style:mr.cardMain,children:[(0,s.jsx)(hr,{kind:e,balls:y,size:60}),(0,s.jsxs)(c.View,{style:mr.cardText,children:[(0,s.jsx)(c.Text,{style:[mr.cardTitle,{color:d,fontFamily:l}],children:t.label}),t.stat?(0,s.jsx)(c.View,{style:[mr.statChip,{backgroundColor:lr(f,.12)}],children:(0,s.jsx)(c.Text,{style:[mr.statChipText,{color:f}],children:t.stat.toUpperCase()})}):null,(0,s.jsx)(c.View,{style:mr.detailBlock,children:t.detail?.map(e=>(0,s.jsx)(c.Text,{style:[mr.detailLine,{color:i.textMuted}],children:e},e))})]}),(0,s.jsx)(c.View,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:w?2:0}]},children:(0,s.jsx)(h.default,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(h.Path,{d:"m9 6 6 6-6 6",stroke:f,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]}),m?(0,s.jsx)(c.View,{style:[mr.dividendsWrap,{borderTopColor:lr(d,.08)}],children:b?(0,s.jsx)(fr,{option:t,renderDividends:o}):(0,s.jsx)(ur,{option:t,renderDividends:o})}):null]})}function pr({kind:e,highlights:t,onSelect:n,accessibilityLabel:o}){const{theme:r}=vn(),i=r.colors,l=ve(r),d=De(r),f=i.primary,u=i.selectionCard??i.backgroundAlt,{width:g}=(0,c.useWindowDimensions)(),p=g>=640,[y,m]=(0,a.useState)(!1);return(0,s.jsx)(c.View,{onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),style:[mr.card,p&&mr.cardWide,{backgroundColor:u,borderColor:y?f:i.border,shadowColor:y?f:"#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:(0,s.jsxs)(c.TouchableOpacity,{onPress:n,activeOpacity:.85,accessibilityRole:"button",accessibilityLabel:o,style:mr.cardMain,children:[(0,s.jsx)(hr,{kind:e,size:60}),(0,s.jsx)(c.View,{style:{flex:1,minWidth:0,gap:8},children:t.map(e=>(0,s.jsxs)(c.View,{style:mr.bulletRow,children:[(0,s.jsx)(c.View,{style:[mr.dot,{backgroundColor:d}]}),(0,s.jsx)(c.Text,{style:[mr.bulletText,{color:l}],children:e})]},e))}),(0,s.jsx)(c.View,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:y?2:0}]},children:(0,s.jsx)(h.default,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(h.Path,{d:"m9 6 6 6-6 6",stroke:f,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})})}function yr({onContinue:e,onBack:t,hideTitle:n,config:o,renderDividends:r,backLabel:i="Games"}){const{theme:l,selectedGame:d,selectedPropositionCount:h,setExpectedCorrect:f,handlePropositionCountChange:u,bodyFont:g,screenSize:p}=vn(),y=l.colors,m=et(l),b="mobile"===p,{width:w}=(0,c.useWindowDimensions)(),x=w>=640,B=(0,a.useMemo)(()=>o??Mt(d,h),[o,d,h]),k=B?.options??[],C=t=>{null!=t?.expectedCorrect&&f(t.expectedCorrect),null!=t?.propositionCount&&u(t.propositionCount),e?.()};if(!d||!B)return(0,s.jsx)(c.View,{children:(0,s.jsx)(c.Text,{style:{color:y.textMuted,fontFamily:g},children:"No rule setup required."})});const S=B.kind,F=B.headline??B.heroTitle,z=B.continueLabel??"Continue";return(0,s.jsxs)(c.View,{style:[mr.container,{backgroundColor:y.background}],children:[t?(0,s.jsx)(c.View,{style:mr.backRow,children:(0,s.jsx)(Mn,{onBack:t,label:i})}):null,(0,s.jsxs)(pt,{style:mr.inner,children:[n?null:(0,s.jsx)(c.Text,{accessibilityRole:"header",style:[mr.sectionTitle,mr.sectionTitleInBody,{color:y.primary,fontFamily:m,textAlign:"center"}],children:B.title}),(0,s.jsxs)(c.View,{style:mr.headerBlock,children:[(0,s.jsx)(xn,{iconUrl:Z(d),gameName:d.game_name,height:b?24:32,chipColor:y.primary,textColor:y.text,iconColor:y.primaryText,accentColor:l.brand?.accent,compact:b}),B.subtitle?(0,s.jsx)(c.Text,{style:[mr.pickSubtitle,{color:y.textMuted}],children:B.subtitle}):null,F||B.heroTagline?(0,s.jsx)(c.Text,{style:[mr.tagline,{color:y.textMuted}],children:B.heroTagline??F}):null]}),k.length>0?(0,s.jsx)(c.View,{style:[mr.cardList,x&&k.length>1&&mr.cardGrid],children:k.map(e=>(0,s.jsx)(c.View,{style:x&&k.length>1?mr.cardCell:void 0,children:(0,s.jsx)(gr,{kind:S,option:e,onSelect:()=>C(e),renderDividends:r})},e.id))}):B.highlights&&B.highlights.length>0?(0,s.jsx)(pr,{kind:S,highlights:B.highlights,onSelect:()=>C(),accessibilityLabel:z}):null]})]})}var mr=c.StyleSheet.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 br(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 wr({iconUrl:e,size:t=56}){const{theme:n}=vn(),o=n.colors,r=n.brand?.chip??o.primary,i=n.brand?.icon??o.primaryText,l=De(n);return(0,s.jsx)(c.View,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:r,borderWidth:1,borderColor:br(i,.16),alignItems:"center",justifyContent:"center",shadowColor:r,shadowOpacity:.45,shadowRadius:9,shadowOffset:{width:0,height:4},elevation:2},children:(0,s.jsx)(rt,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:i,accentColor:l})})}function xr({legs:e,prizeBall:t=!0}){const{theme:n}=vn(),o=n.colors.primary,r=De(n);return(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center"},children:[Array.from({length:e}).map((e,t)=>(0,s.jsx)(c.View,{style:{width:5,height:5,borderRadius:1.5,backgroundColor:o,opacity:.85,marginRight:3}},t)),t?(0,s.jsx)(c.View,{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}}):null]})}function Br({tile:e,label:t,stat:n,detail:o,onSelect:r,children:i}){const{theme:l}=vn(),d=l.colors,f=et(l),u=ve(l),g=d.primary,p=d.selectionCard??d.backgroundAlt,{width:y}=(0,c.useWindowDimensions)(),m=y>=640,[b,w]=(0,a.useState)(!1);return(0,s.jsxs)(c.View,{onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),style:[kr.card,m&&kr.cardWide,{backgroundColor:p,borderColor:b?g:d.border,shadowColor:b?g:"#000",shadowOpacity:b?.28:.08,shadowRadius:b?14:10,shadowOffset:{width:0,height:b?12:8},elevation:b?4:1,transform:[{translateY:b?-2:0}]}],children:[(0,s.jsxs)(c.TouchableOpacity,{onPress:r,activeOpacity:.85,style:[kr.cardMain,m&&kr.cardMainWide],children:[e,(0,s.jsxs)(c.View,{style:kr.cardText,children:[(0,s.jsx)(c.Text,{style:[kr.cardTitle,m&&kr.cardTitleWide,{color:u,fontFamily:f}],children:t}),n?(0,s.jsx)(c.View,{style:[kr.statChip,{backgroundColor:br(g,.12)}],children:(0,s.jsx)(c.Text,{style:[kr.statChipText,{color:g}],children:n.toUpperCase()})}):null,o&&o.length>0?(0,s.jsx)(c.View,{style:kr.detailBlock,children:o.map(e=>(0,s.jsx)(c.Text,{style:[kr.detailLine,m&&kr.detailLineWide,{color:d.textMuted}],children:e},e))}):null]}),(0,s.jsx)(c.View,{style:[kr.chevron,{transform:[{translateX:b?2:0}]}],children:(0,s.jsx)(h.default,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(h.Path,{d:"m9 6 6 6-6 6",stroke:g,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]}),i?(0,s.jsx)(c.View,{style:[kr.childrenWrap,{borderTopColor:br(u,.08)}],children:i}):null]})}var kr=c.StyleSheet.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 Cr({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:l,selectedGame:d,selectedPropositionCount:h,handlePropositionCountChange:f,setExpectedCorrect:u,setBetAmount:g,quickPickGame:p,goToSportSelection:y,screenSize:m}=vn(),b=l.colors,w="mobile"===m,x=_e(l),B=et(l),k=ve(l),C=Me(l),{width:S}=(0,c.useWindowDimensions)(),F=S>=640,[z,v]=(0,a.useState)(!1),W=(0,a.useMemo)(()=>r??En(d),[r,d]),[A,T]=(0,a.useState)(()=>W?null!=h&&W.legOptions.includes(h)?h:W.defaultLegs:8),[L,D]=(0,a.useState)(()=>W?.defaultStake??20);if(!d||!Pn(d)||!W)return(0,s.jsx)(c.View,{style:[Sr.container,{backgroundColor:b.background}],children:(0,s.jsx)(c.Text,{style:{color:b.textMuted,fontFamily:x},children:"No game set available."})});const M=In(L,A,{operatorMargin:W.operatorMargin,perLegProbability:W.perLegProbability}),R=L>=W.minStake,O=(e,t)=>(0,s.jsxs)(c.View,{style:Sr.controlLabelRow,children:[(0,s.jsx)(c.Text,{style:[Sr.controlLabelText,{color:b.textMuted}],children:e}),(0,s.jsx)(c.Text,{style:[Sr.controlValueText,{color:k}],children:t})]});return(0,s.jsxs)(c.View,{style:[Sr.container,{backgroundColor:b.background}],children:[n?(0,s.jsx)(c.View,{style:Sr.backRow,children:(0,s.jsx)(Mn,{onBack:n,label:i})}):null,(0,s.jsxs)(pt,{style:Sr.inner,children:[o?null:(0,s.jsx)(c.Text,{style:[Sr.sectionTitle,Sr.sectionTitleInBody,F&&Sr.sectionTitleInBodyWide,{color:b.primary,fontFamily:B,textAlign:"center"}],children:"The fastest multi"}),(0,s.jsxs)(c.View,{style:[Sr.headerBlock,F&&Sr.headerBlockWide],children:[(0,s.jsx)(xn,{iconUrl:Z(d),gameName:d.game_name,height:w?24:32,chipColor:b.primary,textColor:b.text,iconColor:b.primaryText,accentColor:l.brand?.accent,compact:w}),(0,s.jsx)(c.Text,{style:[Sr.tagline,F&&Sr.taglineWide,{color:b.textMuted}],children:W.tagline})]}),(0,s.jsxs)(c.View,{style:[Sr.ticket,F&&Sr.ticketWide,{backgroundColor:C,borderColor:b.border,shadowColor:k,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[O("Legs",`${A} legs`),(0,s.jsx)(c.View,{style:Sr.chipRow,children:W.legOptions.map(e=>{const t=e===A;return(0,s.jsx)(c.TouchableOpacity,{onPress:()=>T(e),accessibilityRole:"radio",accessibilityState:{selected:t},activeOpacity:.8,style:[Sr.chip,{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border}],children:(0,s.jsx)(c.Text,{style:[Sr.chipText,{color:t?b.primaryText:b.textMuted}],children:e})},e)})}),(0,s.jsxs)(c.View,{style:Sr.hintRow,children:[(0,s.jsx)(c.Text,{style:[Sr.hintText,{color:b.textMuted}],children:"Easier to land"}),(0,s.jsx)(c.Text,{style:[Sr.hintText,{color:b.textMuted}],children:"Bigger prize"})]}),(0,s.jsxs)(c.View,{style:Sr.stakeBlock,children:[O("Stake",$(L)),(0,s.jsxs)(c.View,{style:[Sr.inputWrap,{borderColor:z?b.borderFocus??b.primary:b.border,backgroundColor:b.backgroundAlt}],children:[(0,s.jsx)(c.Text,{style:[Sr.inputPrefix,{color:b.textMuted}],children:"$"}),(0,s.jsx)(c.TextInput,{keyboardType:"decimal-pad",placeholder:"Enter stake",placeholderTextColor:b.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>v(!0),onBlur:()=>v(!1),value:L?String(L):"",onChangeText:e=>{if(""===e)return void D(0);const t=Number(e);Number.isFinite(t)&&D((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==W.maxStake?Math.min(t,W.maxStake):t})(t))},style:[Sr.input,{color:b.textAlt??b.text,fontFamily:x}]})]}),(0,s.jsx)(c.View,{style:Sr.chipRow,children:W.quickStakes.map(e=>{const t=e===L;return(0,s.jsx)(c.TouchableOpacity,{onPress:()=>D(e),activeOpacity:.8,style:[Sr.stakeChip,{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border}],children:(0,s.jsxs)(c.Text,{style:[Sr.chipText,{color:t?b.primaryText:b.textMuted}],children:["$",e]})},e)})}),!R&&L>0?(0,s.jsxs)(c.Text,{style:[Sr.errorText,{color:b.error}],children:["Minimum stake is ",$(W.minStake),"."]}):null]}),(0,s.jsxs)(c.View,{style:[Sr.dividendBlock,{borderTopColor:br(k,.08)}],children:[(0,s.jsxs)(c.View,{style:Sr.dividendCaptionRow,children:[(0,s.jsxs)(c.Text,{style:[Sr.dividendCaption,{color:b.textMuted}],children:["If all ",A," land"]}),(0,s.jsxs)(c.Text,{style:[Sr.dividendCaption,{color:b.textMuted}],children:[$(L)," returns"]})]}),(0,s.jsxs)(c.View,{style:Sr.dividendMainRow,children:[(0,s.jsxs)(c.View,{style:Sr.dividendMainLeft,children:[(0,s.jsx)(c.Text,{style:[Sr.perfectTicket,{color:b.text}],children:"Perfect ticket"}),(0,s.jsx)(xr,{legs:A})]}),(0,s.jsx)(c.Text,{style:[Sr.prize,F&&Sr.prizeWide,{color:b.primary,fontFamily:B}],children:$(M.prize)})]}),(0,s.jsxs)(c.Text,{style:[Sr.multipleLine,{color:b.textMuted}],children:[(H=M.multiple,`×${(Math.round(10*H)/10).toLocaleString("en-US",{maximumFractionDigits:1})}`)," your stake · total return, stake included"]}),(0,s.jsx)(c.Text,{style:[Sr.allOrNothing,{color:b.textMuted}],children:"All or nothing. Miss a single leg and the ticket does not pay."})]})]}),(0,s.jsxs)(c.View,{style:[Sr.modeCards,F&&Sr.modeCardsWide],children:[(0,s.jsx)(c.View,{style:F?Sr.modeCardCell:void 0,children:(0,s.jsx)(Br,{tile:(0,s.jsx)(wr,{iconUrl:Z(d),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{R&&(f(A),u(A),g(L),y(),t?.())}})}),(0,s.jsx)(c.View,{style:F?Sr.modeCardCell:void 0,children:(0,s.jsx)(Br,{tile:(0,s.jsx)(wr,{iconUrl:`${Y}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{R&&(u(A),g(L),p(d,A),e?.())}})})]})]})]});var H}var Sr=c.StyleSheet.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 Fr({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:l,selectedGame:d,selectedPropositionCount:h,handlePropositionCountChange:f,setExpectedCorrect:u,setBetAmount:g,quickPickGame:p,goToSportSelection:y,screenSize:m}=vn(),b=l.colors,w="mobile"===m,x=_e(l),B=et(l),k=ve(l),C=Me(l),{width:S}=(0,c.useWindowDimensions)(),F=S>=640,[z,v]=(0,a.useState)(null),[W,A]=(0,a.useState)(null),T=(0,a.useMemo)(()=>r??Nt(d),[r,d]),[L,D]=(0,a.useState)(()=>T?.defaultDividend??1e4),[M,R]=(0,a.useState)(()=>{const e=T?.dividends[0]?.rungs.map(e=>e.legs)??[];return null!=h&&e.includes(h)?h:T?.defaultLegs??9});if(!d||!Pt(d)||!T)return(0,s.jsx)(c.View,{children:(0,s.jsx)(c.Text,{style:{color:b.textMuted,fontFamily:x},children:"No dividend series available."})});const O=T.dividends.find(e=>e.dividend===L)??T.dividends[0],H=O.rungs.find(e=>e.legs===M)??O.rungs[0],P=Math.max(...O.rungs.map(e=>e.legs)),I=Math.min(...O.rungs.map(e=>e.legs));return(0,s.jsxs)(c.View,{style:zr.container,children:[n?(0,s.jsx)(c.View,{style:zr.backRow,children:(0,s.jsx)(Mn,{onBack:n,label:i})}):null,(0,s.jsxs)(pt,{style:zr.inner,children:[o?null:(0,s.jsx)(c.Text,{style:[zr.eyebrow,F&&zr.eyebrowSectionWide,{color:b.primary,fontFamily:B,textAlign:"center"}],children:"Pick your dividend"}),(0,s.jsxs)(c.View,{style:[zr.headerBlock,F&&zr.headerBlockWide],children:[(0,s.jsx)(xn,{iconUrl:Z(d),gameName:d.game_name,height:w?24:32,chipColor:b.primary,textColor:b.text,iconColor:b.primaryText,accentColor:l.brand?.accent,compact:w}),(0,s.jsx)(c.Text,{style:[zr.tagline,F&&zr.taglineWide,{color:b.textMuted}],children:T.tagline})]}),(0,s.jsxs)(c.View,{style:[zr.ticket,F&&zr.ticketWide,{backgroundColor:C,borderColor:b.border,shadowColor:k,shadowOpacity:.12,shadowRadius:12,shadowOffset:{width:0,height:8},elevation:1}],children:[(E=$(O.dividend),(0,s.jsxs)(c.View,{style:zr.sectionLabelRow,children:[(0,s.jsx)(c.Text,{style:[zr.sectionLabelText,{color:b.textMuted}],children:"Set dividend"}),E?(0,s.jsx)(c.Text,{style:[zr.sectionValueText,{color:k}],children:E}):null]})),(0,s.jsx)(c.View,{style:zr.dividendGrid,children:T.dividends.map((e,t)=>{const n=e.dividend===L,o=t===T.dividends.length-1&&T.dividends.length%2==1,r=z===e.dividend;return(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>D(e.dividend),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:n},onMouseEnter:()=>v(e.dividend),onMouseLeave:()=>v(null),style:[zr.dividendTile,{flexGrow:1,flexBasis:F?"21%":o?"100%":"45%",backgroundColor:n?br(b.primary,.08):"transparent",borderColor:n||r?b.primary:b.border}],children:[(0,s.jsx)(c.Text,{style:[zr.dividendValue,{color:k,fontFamily:B}],children:$(e.dividend)}),(0,s.jsxs)(c.Text,{style:[zr.dividendFrom,{color:b.textMuted}],children:["from ",$(e.rungs[0]?.stake??0)]})]},e.dividend)})}),(0,s.jsx)(c.Text,{style:[zr.ticketNote,{color:b.textMuted}],children:"One set amount — it does not move, whatever you spend."}),(0,s.jsxs)(c.View,{style:[zr.ladderDivider,{borderTopColor:br(k,.08)}],children:[(0,s.jsxs)(c.View,{style:zr.ladderHeaderRow,children:[(0,s.jsx)(c.Text,{style:[zr.ladderHeaderText,{color:b.textMuted}],children:"Legs to land"}),(0,s.jsx)(c.Text,{style:[zr.ladderHeaderText,{color:b.textMuted}],children:"Your stake"})]}),(0,s.jsx)(c.View,{style:zr.rungList,children:O.rungs.map(e=>{const t=e.legs===M,n=W===e.legs;return(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>R(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},onMouseEnter:()=>A(e.legs),onMouseLeave:()=>A(null),style:[zr.rungRow,{backgroundColor:t?br(b.primary,.08):"transparent",borderColor:t||n?b.primary:b.border}],children:[(0,s.jsxs)(c.View,{style:zr.rungLeft,children:[(0,s.jsxs)(c.Text,{style:[zr.rungLegs,{color:b.text}],children:[e.legs," legs",e.legs===P?" · the long climb":e.legs===I?" · the sprint":""]}),(0,s.jsx)(xr,{legs:e.legs})]}),(0,s.jsx)(c.Text,{style:[zr.rungStake,F&&zr.rungStakeWide,{color:b.primary,fontFamily:B}],children:$(e.stake)})]},e.legs)})}),(0,s.jsx)(c.Text,{style:[zr.ticketNote,{color:b.textMuted}],children:"Same dividend on every rung — a little for the long climb, more for the short one."})]})]}),(0,s.jsxs)(c.View,{style:[zr.cardList,F&&zr.cardListWide],children:[(0,s.jsx)(c.View,{style:F?zr.cardCell:void 0,children:(0,s.jsx)(Br,{tile:(0,s.jsx)(wr,{iconUrl:Z(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${H.legs} legs`,`${$(H.stake)} chasing the ${$(O.dividend)}`],onSelect:()=>{var e;f((e=H).legs),u(e.legs),g(e.stake),y(),t?.()}})}),(0,s.jsx)(c.View,{style:F?zr.cardCell:void 0,children:(0,s.jsx)(Br,{tile:(0,s.jsx)(wr,{iconUrl:`${Y}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${H.legs} legs at ${$(H.stake)}`,"Straight to the bet slip"],onSelect:()=>{u(H.legs),g(H.stake),p(d,H.legs),e?.()}})})]})]})]});var E}var zr=c.StyleSheet.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 vr({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:l,selectedGame:d,selectedPropositionCount:h,handlePropositionCountChange:f,setExpectedCorrect:u,setBetAmount:g,quickPickGame:p,goToSportSelection:y,screenSize:m,bodyFont:b}=vn(),w=l.colors,x="mobile"===m,B=et(l),k=ve(l),C=De(l),S=Me(l),{width:F}=(0,c.useWindowDimensions)(),z=F>=640,[v,W]=(0,a.useState)(null),A=(0,a.useMemo)(()=>r??Zn(d),[r,d]),[T,L]=(0,a.useState)(()=>A?null!=h&&A.ladders.some(e=>e.legs===h)?h:A.defaultLegs:8),[D,M]=(0,a.useState)(()=>A?.defaultStake??50);if(!d||!Yn(d)||!A)return(0,s.jsx)(c.View,{children:(0,s.jsx)(c.Text,{style:{color:w.textMuted,fontFamily:b},children:"No ladders available."})});const R=A.ladders.find(e=>e.legs===T)??A.ladders[0],O=Vn(R,D),H=Un(R,D),P=(e,t)=>(0,s.jsxs)(c.View,{style:Wr.sectionLabelRow,children:[(0,s.jsx)(c.Text,{style:[Wr.sectionLabelText,{color:w.textMuted}],children:e}),t?(0,s.jsx)(c.Text,{style:[Wr.sectionLabelValue,{color:k}],children:t}):null]});return(0,s.jsxs)(c.View,{style:[Wr.container,{backgroundColor:w.background}],children:[n?(0,s.jsx)(c.View,{style:Wr.backRow,children:(0,s.jsx)(Mn,{onBack:n,label:i})}):null,(0,s.jsxs)(pt,{style:Wr.inner,children:[o?null:(0,s.jsx)(c.Text,{style:[Wr.pageTitle,{color:w.primary,fontFamily:B}],children:"Climb the ladder. Stack the prizes."}),(0,s.jsxs)(c.View,{style:[Wr.header,z&&Wr.headerWide],children:[(0,s.jsx)(xn,{iconUrl:Z(d),gameName:d.game_name,height:x?24:32,chipColor:w.primary,textColor:w.text,iconColor:w.primaryText,accentColor:l.brand?.accent,compact:x}),(0,s.jsx)(c.Text,{style:[Wr.tagline,z&&Wr.taglineWide,{color:w.textMuted}],children:A.tagline})]}),(0,s.jsxs)(c.View,{style:[Wr.builder,z&&Wr.builderWide,{backgroundColor:S,borderColor:w.border,shadowColor:k,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[P("Your bet",$(D)),(0,s.jsx)(c.View,{style:Wr.betRow,children:A.stakes.map(e=>{const t=e===D;return(0,s.jsx)(c.TouchableOpacity,{onPress:()=>M(e),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},style:[Wr.betChip,{backgroundColor:t?w.primary:"transparent",borderColor:t?w.primary:w.border}],children:(0,s.jsxs)(c.Text,{style:[Wr.betChipText,{color:t?w.primaryText:w.textMuted}],children:["$",e]})},e)})}),(0,s.jsx)(c.Text,{style:[Wr.betNote,{color:w.textMuted}],children:"Every prize scales with your bet."}),(0,s.jsxs)(c.View,{style:Wr.laddersBlock,children:[P(`${A.ladders.length} ladders to choose from`),(0,s.jsx)(c.View,{style:Wr.ladderGrid,children:A.ladders.map((e,t)=>{const n=e.legs===T,o=t===A.ladders.length-1&&A.ladders.length%2==1,r=v===e.legs;return(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>L(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:n},onMouseEnter:()=>W(e.legs),onMouseLeave:()=>W(null),style:[Wr.ladderTile,{flexBasis:z?"17%":o?"100%":"40%",backgroundColor:n?br(w.primary,.08):"transparent",borderColor:n||r?w.primary:w.border}],children:[(0,s.jsxs)(c.Text,{style:[Wr.ladderTileLabel,{color:w.primary}],children:["Ladder ",e.legs]}),(0,s.jsx)(c.Text,{style:[Wr.ladderTilePrize,{color:k,fontFamily:B}],children:$(Un(e,D))}),(0,s.jsxs)(c.Text,{style:[Wr.ladderTileNote,{color:w.textMuted}],children:["Win from ",e.firstPayingTier," right"]})]},e.legs)})})]}),(0,s.jsxs)(c.View,{style:[Wr.stackTable,{borderTopColor:br(k,.08)}],children:[(0,s.jsxs)(c.Text,{style:[Wr.stackIntro,{color:w.text}],children:["Ladder ",R.legs," wins from ",R.firstPayingTier," right — every tier stacks into the"," ",(0,s.jsx)(c.Text,{style:{fontWeight:"700",color:k},children:$(H)})," Full Stack Prize."]}),(0,s.jsxs)(c.View,{style:Wr.rungHeader,children:[(0,s.jsx)(c.Text,{style:[Wr.rungHeaderCaption,{color:w.textMuted}],children:"Get right"}),(0,s.jsxs)(c.View,{style:Wr.rungHeaderRight,children:[(0,s.jsx)(c.Text,{style:[Wr.rungHeaderCaption,{color:w.textMuted}],children:"Tier pays"}),(0,s.jsx)(c.Text,{style:[Wr.rungHeaderCaption,{color:w.textMuted}],children:"You collect"})]})]}),(0,s.jsx)(c.View,{style:Wr.rungList,children:[...O].reverse().map(e=>{const t=e.atLeast===R.legs;return(0,s.jsxs)(c.View,{style:Wr.rungRow,children:[(0,s.jsxs)(c.View,{style:Wr.rungLeft,children:[(0,s.jsxs)(c.View,{style:Wr.rungLabelRow,children:[(0,s.jsxs)(c.Text,{style:[Wr.rungLabel,{color:w.text}],children:[e.atLeast," of ",R.legs]}),t?(0,s.jsx)(c.View,{style:[Wr.fullStackChip,{backgroundColor:br(C,.35)}],children:(0,s.jsx)(c.Text,{style:[Wr.fullStackChipText,{color:k}],children:"Full stack"})}):null]}),(0,s.jsx)(xr,{legs:e.atLeast,prizeBall:t})]}),(0,s.jsxs)(c.View,{style:Wr.rungRight,children:[(0,s.jsx)(c.Text,{style:[Wr.rungPrize,{color:w.textMuted}],children:$(e.prize)}),(0,s.jsx)(c.Text,{style:[Wr.rungCumulative,z&&Wr.rungCumulativeWide,{color:w.primary,fontFamily:B}],children:$(e.cumulative)})]})]},e.atLeast)})}),(0,s.jsxs)(c.Text,{style:[Wr.stackNote,{color:w.textMuted}],children:["Land below ",R.firstPayingTier," right and the ticket does not pay."]})]})]}),(0,s.jsxs)(c.View,{style:[Wr.modeCards,z&&Wr.modeCardsWide],children:[(0,s.jsx)(c.View,{style:z?Wr.modeCardCell:void 0,children:(0,s.jsx)(Br,{tile:(0,s.jsx)(wr,{iconUrl:Z(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${R.legs} outcomes`,`Win from ${R.firstPayingTier} right — every tier stacks`],onSelect:()=>{f(R.legs),u(R.legs),g(D),y(),t?.()}})}),(0,s.jsx)(c.View,{style:z?Wr.modeCardCell:void 0,children:(0,s.jsx)(Br,{tile:(0,s.jsx)(wr,{iconUrl:`${Y}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${R.legs} legs at ${$(D)}`,"Straight to the bet slip"],onSelect:()=>{u(R.legs),g(D),p(d,R.legs),e?.()}})})]})]})]})}var Wr=c.StyleSheet.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 Ar({legs:e,right:t}){const{theme:n}=vn(),o=n.colors.primary,r=De(n);return(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center"},children:[Array.from({length:e}).map((e,n)=>(0,s.jsx)(c.View,{style:{width:5,height:5,borderRadius:1.5,marginRight:3,backgroundColor:t?o:"transparent",borderWidth:t?0:1,borderColor:t?void 0:br(o,.45),opacity:t?.85:1}},n)),(0,s.jsx)(c.View,{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}})]})}function Tr({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:l,selectedGame:d,selectedPropositionCount:h,handlePropositionCountChange:f,setExpectedCorrect:u,setBetAmount:g,quickPickGame:p,goToSportSelection:y,screenSize:m}=vn(),b=l.colors,w="mobile"===m,x=_e(l),B=et(l),k=ve(l),C=Me(l),{width:S}=(0,c.useWindowDimensions)(),F=S>=640,[z,v]=(0,a.useState)(!1),W=(0,a.useMemo)(()=>r??Jn(d),[r,d]),[A,T]=(0,a.useState)(()=>W?null!=h&&W.legOptions.includes(h)?h:W.defaultLegs:8),[L,D]=(0,a.useState)(()=>W?.defaultStake??20);if(!d||!Xn(d)||!W)return(0,s.jsx)(c.View,{children:(0,s.jsx)(c.Text,{style:{color:b.textMuted,fontFamily:x},children:"No mirror available."})});const M=Qn(L,A,{operatorMargin:W.operatorMargin,perLegProbability:W.perLegProbability}),R=L>=W.minStake,O=(e,t)=>(0,s.jsxs)(c.View,{style:Lr.controlLabel,children:[(0,s.jsx)(c.Text,{style:[Lr.controlLabelText,{color:b.textMuted}],children:e}),(0,s.jsx)(c.Text,{style:[Lr.controlValueText,{color:k}],children:t})]}),H=e=>(0,s.jsxs)(c.View,{style:Lr.winRow,children:[(0,s.jsxs)(c.View,{style:Lr.winRowLeft,children:[(0,s.jsx)(c.Text,{style:[Lr.winRowLabel,{color:b.text}],children:e?`All ${A} right`:`All ${A} wrong`}),(0,s.jsx)(Ar,{legs:A,right:e})]}),(0,s.jsx)(c.Text,{style:[Lr.winRowPrize,F&&Lr.winRowPrizeWide,{color:b.primary,fontFamily:B}],children:$(M.prize)})]});return(0,s.jsxs)(c.View,{style:Lr.container,children:[n?(0,s.jsx)(c.View,{style:Lr.backRow,children:(0,s.jsx)(Mn,{onBack:n,label:i})}):null,(0,s.jsxs)(pt,{style:Lr.inner,children:[o?null:(0,s.jsx)(c.Text,{style:[Lr.sectionTitle,{color:b.primary,fontFamily:B}],children:"All right, or all wrong"}),(0,s.jsxs)(c.View,{style:[Lr.headerBlock,F&&Lr.headerBlockWide],children:[(0,s.jsx)(xn,{iconUrl:Z(d),gameName:d.game_name,height:w?24:32,chipColor:b.primary,textColor:b.text,iconColor:b.primaryText,accentColor:l.brand?.accent,compact:w}),(0,s.jsx)(c.Text,{style:[Lr.tagline,F&&Lr.taglineWide,{color:b.textMuted}],children:W.tagline})]}),(0,s.jsxs)(c.View,{style:[Lr.ticket,F&&Lr.ticketWide,{backgroundColor:C,borderColor:b.border,shadowColor:k,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[O("Legs",`${A} legs`),(0,s.jsx)(c.View,{style:Lr.chipRow,children:W.legOptions.map(e=>{const t=e===A;return(0,s.jsx)(c.TouchableOpacity,{onPress:()=>T(e),accessibilityRole:"radio",accessibilityState:{selected:t},style:[Lr.legChip,{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border}],children:(0,s.jsx)(c.Text,{style:[Lr.chipText,{color:t?b.primaryText:b.textMuted}],children:e})},e)})}),(0,s.jsxs)(c.View,{style:Lr.hintRow,children:[(0,s.jsx)(c.Text,{style:[Lr.hintText,{color:b.textMuted}],children:"Easier to sweep"}),(0,s.jsx)(c.Text,{style:[Lr.hintText,{color:b.textMuted}],children:"Bigger prize"})]}),(0,s.jsxs)(c.View,{style:Lr.stakeBlock,children:[O("Stake",$(L)),(0,s.jsxs)(c.View,{style:[Lr.inputWrap,{borderColor:z?b.borderFocus??b.primary:b.border,backgroundColor:b.backgroundAlt}],children:[(0,s.jsx)(c.Text,{style:[Lr.inputPrefix,{color:b.textMuted}],children:"$"}),(0,s.jsx)(c.TextInput,{keyboardType:"numeric",placeholder:"Enter stake",placeholderTextColor:b.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>v(!0),onBlur:()=>v(!1),value:L?String(L):"",onChangeText:e=>{if(""===e)return void D(0);const t=Number(e);Number.isFinite(t)&&D((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==W.maxStake?Math.min(t,W.maxStake):t})(t))},style:[Lr.input,{color:b.textAlt??b.text,fontFamily:x}]})]}),(0,s.jsx)(c.View,{style:Lr.quickStakeRow,children:W.quickStakes.map(e=>{const t=e===L;return(0,s.jsx)(c.TouchableOpacity,{onPress:()=>D(e),style:[Lr.stakeChip,{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border}],children:(0,s.jsx)(c.Text,{style:[Lr.chipText,{color:t?b.primaryText:b.textMuted}],children:`$${e}`})},e)})}),!R&&L>0?(0,s.jsx)(c.Text,{style:[Lr.errorText,{color:b.error}],children:`Minimum stake is ${$(W.minStake)}.`}):null]}),(0,s.jsxs)(c.View,{style:[Lr.winSection,{borderTopColor:br(k,.08)}],children:[(0,s.jsxs)(c.View,{style:Lr.winHeader,children:[(0,s.jsx)(c.Text,{style:[Lr.winHeaderText,{color:b.textMuted}],children:"Two ways to win"}),(0,s.jsx)(c.Text,{style:[Lr.winHeaderText,{color:b.textMuted}],children:`${$(L)} pays each`})]}),(0,s.jsxs)(c.View,{style:Lr.winRows,children:[H(!0),H(!1)]}),(0,s.jsx)(c.Text,{style:[Lr.splitNote,{color:b.textMuted}],children:"Anything in between — a split card — does not pay."})]})]}),(0,s.jsxs)(c.View,{style:[Lr.cardList,F&&Lr.cardListWide],children:[(0,s.jsx)(c.View,{style:F?Lr.cardCell:void 0,children:(0,s.jsx)(Br,{tile:(0,s.jsx)(wr,{iconUrl:Z(d),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","Aim for the sweep — either direction pays"],onSelect:()=>{R&&(f(A),u(A),g(L),y(),t?.())}})}),(0,s.jsx)(c.View,{style:F?Lr.cardCell:void 0,children:(0,s.jsx)(Br,{tile:(0,s.jsx)(wr,{iconUrl:`${Y}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{R&&(u(A),g(L),p(d,A),e?.())}})})]})]})]})}var Lr=c.StyleSheet.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 Dr({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,backLabel:r="Games"}){const{theme:i,selectedGame:l,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:f,quickPickGame:u,goToSportSelection:g,screenSize:p}=vn(),y=i.colors,m="mobile"===p,b=_e(i),w=et(i),{width:x}=(0,c.useWindowDimensions)(),B=x>=640,k=(0,a.useMemo)(()=>{if(!l)return[];if(l.allowed_propositions&&l.allowed_propositions.length>0)return[...l.allowed_propositions].sort((e,t)=>e-t);const{min:e,max:t}=ce(l);return Fe(e,t)},[l]),C=eo(l),S=k[0]??0,F=k[k.length-1]??0,[z]=(0,a.useState)(()=>null!=d&&k.includes(d)?d:F),v=(0,a.useMemo)(()=>Mt(l,z||void 0),[l,z]);if(!l||0===k.length||"exact"!==v?.kind)return(0,s.jsx)(c.View,{children:(0,s.jsx)(c.Text,{style:{color:y.textMuted,fontFamily:b},children:"No setup available."})});const W=C?["Any yes/no props in the pool",`Pick ${S}–${F} legs — all must land`]:["A clean yes or no on every leg",`All ${z} have to land`],A=C?[`We fill ${z} legs across any markets`,"Straight to the bet slip"]:[`We fill all ${z} legs for you`,"Straight to the bet slip"];return(0,s.jsxs)(c.View,{style:Mr.container,children:[n?(0,s.jsx)(c.View,{style:Mr.backRow,children:(0,s.jsx)(Mn,{onBack:n,label:r})}):null,(0,s.jsxs)(pt,{style:Mr.inner,children:[o?null:(0,s.jsx)(c.Text,{style:[Mr.sectionTitle,B&&Mr.sectionTitleWide,{color:y.primary,fontFamily:w}],children:v.title}),(0,s.jsxs)(c.View,{style:[Mr.headerBlock,B&&Mr.headerBlockWide],children:[(0,s.jsx)(xn,{iconUrl:Z(l),gameName:l.game_name,height:m?24:32,chipColor:y.primary,textColor:y.text,iconColor:y.primaryText,accentColor:i.brand?.accent,compact:m}),v.heroTagline?(0,s.jsx)(c.Text,{style:[Mr.tagline,B&&Mr.taglineWide,{color:y.textMuted}],children:v.heroTagline}):null]}),(0,s.jsxs)(c.View,{style:[Mr.cardList,B&&Mr.cardListWide],children:[(0,s.jsx)(c.View,{style:B?Mr.cardCell:void 0,children:(0,s.jsx)(Br,{tile:(0,s.jsx)(wr,{iconUrl:Z(l),size:60}),label:"Pick my own",stat:"Your calls",detail:W,onSelect:()=>{C||(h(z),f(z)),g(),t?.()}})}),(0,s.jsx)(c.View,{style:B?Mr.cardCell:void 0,children:(0,s.jsx)(Br,{tile:(0,s.jsx)(wr,{iconUrl:`${Y}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:A,onSelect:()=>{f(z),u(l,z),e?.()}})})]})]})]})}var Mr=c.StyleSheet.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%"}});exports.BladeApiClient=hn,exports.BrandLockup=function({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0}){const{theme:i}=vn(),l=ve(i),a=De(i),d=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),h=et(i)??"Manrope, Poppins, sans-serif",f=n&&n.length>0?n:t.split(/\s+/),u=.72*o,g=.5*o,p=Math.min(.62*o/f.length,.3*o);return(0,s.jsxs)(c.View,{accessible:!0,accessibilityRole:"image",accessibilityLabel:`YESNO ${t}`,style:{flexDirection:"row",alignItems:"center",gap:.22*o},children:[(0,s.jsx)(rt,{iconUrl:e,width:u,height:u,iconColor:l,accentColor:a}),(0,s.jsxs)(c.Text,{style:{fontFamily:h,fontSize:g,letterSpacing:.045*-g,lineHeight:g,color:l,includeFontPadding:!1},children:[(0,s.jsx)(c.Text,{style:{fontWeight:"800"},children:"YES"}),(0,s.jsx)(c.Text,{style:{fontWeight:"600"},children:"NO"})]}),(0,s.jsx)(c.View,{style:{width:Math.max(2,Math.round(.045*o)),height:.78*o,backgroundColor:d}}),(0,s.jsx)(c.View,{style:{flexDirection:"column"},children:f.map((e,t)=>(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"flex-start"},children:[(0,s.jsx)(c.Text,{style:{fontFamily:h,fontSize:p,fontWeight:"500",letterSpacing:.012*-p,lineHeight:1.14*p,color:l,includeFontPadding:!1},children:e}),r&&t===f.length-1?(0,s.jsx)(c.Text,{style:{fontFamily:h,fontSize:.36*p,fontWeight:"500",color:l,marginLeft:1},children:"™"}):null]},`${e}-${t}`))})]})},exports.CategoryIcon=Do,exports.CategoryPickerPage=jo,exports.CategoryPickerPageActions=function({onCancel:e}){const{theme:t,screenSize:n}=vn(),o=t.colors;return e&&"mobile"!==n?(0,s.jsx)(c.View,{style:No.footer,children:(0,s.jsx)(c.TouchableOpacity,{onPress:e,style:[No.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:(0,s.jsx)(c.Text,{style:[No.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null},exports.CategoryPickerPageTitle=Eo,exports.ChevronRightIcon=Mo,exports.ConfirmPage=function({onBack:e,onSubmitted:t,hideTitle:n,hideActions:o}){const r=vn(),{theme:i,selectedGame:l,selectedPropositions:d,selections:h,propositions:f,selectedPropositionCount:u,selectedEventId:g,expectedCorrect:p,setExpectedCorrect:y,betAmount:m,setBetAmount:b,submitting:w,submitError:x,canSubmit:B,winningCounts:k,payouts:C,overloadPayouts:S,renderTeamLogo:F,showHomeAway:z,userBalance:v,onRecharge:W,goBack:A,toggleSelection:T,upgradePropositionCount:L,goToSportSelection:D}=r,M=i.colors,{width:R}=(0,c.useWindowDimensions)(),O=R>=640;if((0,a.useEffect)(()=>{l||(D(),e?.())},[l,D,e]),!l)return null;const H=!!(l.allowed_propositions&&l.allowed_propositions.length>0),P=ce(l,u),I=P.min,E=wt(l)&&g?Math.min(P.max,f.length):P.max,j=Object.keys(h).length,N=I>0&&j<I,Y=!H&&I>0&&E>I&&j>=I&&j<E,G=H?[...l.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(u??0)):[],V=H&&G.length>0&&!N,U=Y||V,Z=E-j;M.textAlt??M.text;const K=()=>{A(),e?.()},q=(H?[...l.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===j&&e<(u??1/0)),X=H&&j<Math.min(...l.allowed_propositions??[1/0]),Q=H&&N&&!X,J=to(l),_=null!=q?J.belowRequiredHint(q,u??I):J.belowRequiredAddOnlyHint(u??I);return(0,a.useEffect)(()=>{!N||H&&!X||(D(),e?.())},[N,H,X]),(0,s.jsxs)(c.View,{style:_o.container,children:[!n&&(0,s.jsx)(c.View,{style:{marginBottom:24},children:(0,s.jsx)($o,{onBack:e,hideActions:o})}),(0,s.jsx)(c.View,{style:_o.content,children:(0,s.jsx)(ln,{game:l,propositions:d,selections:h,onToggleSelection:T,onRemoveSelection:()=>{},onSubmit:async()=>{await r.handleSubmit(),t?.()},onBack:K,loading:w,error:x,expectedCorrect:p,onExpectedCorrectChange:y,betAmount:m,onBetAmountChange:b,theme:i,showCustomAmount:!0,betAmountLocked:Pt(l),betAmountLockedNote:"Set by your dividend ladder rung.",hideActions:!0,winningCounts:k,payouts:C,renderTeamLogo:F,showHomeAway:z,canSubmit:B,userBalance:v,onRecharge:W,boostBanner:(0,s.jsxs)(s.Fragment,{children:[Q&&(0,s.jsxs)(c.View,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${M.warning}40`,backgroundColor:`${M.warning}10`,flexDirection:O?"row":"column",alignItems:O?"center":"flex-start",justifyContent:"space-between",gap:12},children:[(0,s.jsxs)(c.Text,{style:{fontSize:O?14:12,color:M.text,flexShrink:1},children:["You have ",(0,s.jsxs)(c.Text,{style:{fontWeight:"700"},children:[j," pick",1!==j?"s":""]}),`. ${_}`]}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[(0,s.jsx)(c.TouchableOpacity,{onPress:K,style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:M.buttonSecondary},children:(0,s.jsx)(c.Text,{style:{fontSize:12,fontWeight:"600",color:M.buttonSecondaryText},children:"Add a pick"})}),null!=q&&(0,s.jsx)(c.TouchableOpacity,{onPress:()=>L(q),style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:M.buttonPrimary},children:(0,s.jsx)(c.Text,{style:{fontSize:12,fontWeight:"600",color:M.buttonPrimaryText},children:J.switchTierLabel(q)})})]})]}),U&&(0,s.jsx)(c.View,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${M.primary}30`,backgroundColor:`${M.primary}08`},children:V?(()=>{const e=u??j,t=S[e],n=m>0?m:20,o=null!=t&&t>0?t*(n/20):null;return(0,s.jsxs)(c.View,{children:[(0,s.jsx)(c.Text,{style:{fontSize:14,fontWeight:"600",color:M.primary,marginBottom:4},children:J.overloadTitle}),null!=o&&(0,s.jsxs)(c.Text,{style:{fontSize:12,color:M.textMuted,marginBottom:8},children:["Currently winning up to ",(0,s.jsx)(c.Text,{style:{color:M.heading??M.text,fontWeight:"700"},children:$(o)}),` with ${e} picks`]}),(0,s.jsx)(Qo,{tiers:G.map(e=>({count:e,payout20:S[e]??0})),selectedCount:void 0,onSelect:e=>{L(e),K()},colors:M,bodyFont:r.bodyFont,extraBetAmount:20!==n?n:void 0,columnLabel:J.tableColumnLabel,buttonLabel:J.tierButtonLabel})]})})():(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,s.jsxs)(c.Text,{style:{fontSize:12,color:M.textMuted,flex:1},children:[1===Z?"Add ":"Add up to ",(0,s.jsxs)(c.Text,{style:{color:M.primary,fontWeight:"700"},children:[Z," more pick",1!==Z?"s":""]}),null!=S[E]&&S[E]>0&&(0,s.jsxs)(c.Text,{children:[" to win up to ",(0,s.jsx)(c.Text,{style:{color:M.heading??M.text,fontWeight:"700"},children:$(S[E])}),` with ${E} picks`]})]}),(0,s.jsx)(c.TouchableOpacity,{onPress:K,style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:M.buttonPrimary},children:(0,s.jsx)(c.Text,{style:{fontSize:12,fontWeight:"600",color:M.buttonPrimaryText},children:"Add picks"})})]})})]})})}),o&&x?(0,s.jsx)(c.View,{style:{marginTop:12,alignItems:"flex-end"},children:(0,s.jsx)(c.Text,{style:[_o.errorText,{color:M.error}],children:x})}):null]})},exports.ConfirmPageActions=function({onBack:e,onSubmitted:t}){const n=vn(),{theme:o,selectedGame:r,expectedCorrect:i,betAmount:l,submitting:a,submitError:d,canSubmit:h,payouts:f,selectedPropositionIds:u,screenSize:g}=n,p=o.colors,{width:y}=(0,c.useWindowDimensions)(),m=y>=640;if(!r)return null;const b=f[i]??0,w=se(r),x=i===u.length,B=w?.enabled&&x,k=e&&"mobile"!==g;return(0,s.jsxs)(c.View,{style:_o.footer,children:[k&&(0,s.jsx)(gt,{theme:o,variant:"secondary",onPress:e,children:"Back"}),(0,s.jsxs)(c.View,{style:_o.footerRight,children:[d?(0,s.jsx)(c.Text,{style:[_o.errorText,{color:p.error}],children:d}):null,(b>0||B)&&m&&(0,s.jsxs)(c.View,{style:_o.payoutInfo,children:[(0,s.jsx)(c.Text,{style:[_o.payoutLabel,{color:p.textMuted}],children:"Potential winnings"}),(0,s.jsxs)(c.Text,{style:[_o.payoutAmount,{color:p.heading??p.text}],children:[$(b),B?(0,s.jsx)(c.Text,{style:{color:p.warning},children:" + Jackpot"}):null]})]}),(0,s.jsx)(gt,{theme:o,variant:"primary",disabled:!h,onPress:async()=>{await n.handleSubmit(),t?.()},children:a?"Placing…":`Place Entry (${$(l)})`})]})]})},exports.ConfirmPageTitle=$o,exports.EntriesPage=function({onSelectEntry:e,onBack:t,hideTitle:n,hideActions:o}){const{theme:r,apiUrl:i,apiKey:l,fetchImpl:a,getAuthHeaders:d,userId:h,demoEntries:f,demoGames:u,demoPropositions:g,renderTeamLogo:p,showHomeAway:y,filterSport:m}=vn();return(0,s.jsxs)(c.View,{style:ir.container,children:[!n&&(0,s.jsx)(c.View,{style:{marginBottom:24},children:(0,s.jsx)(rr,{onBack:t,hideActions:o})}),(0,s.jsx)(c.View,{style:ir.content,children:(0,s.jsx)(Cn,{apiUrl:i,apiKey:l,fetchImpl:a,getAuthHeaders:d,userId:h,demoEntries:f,demoGames:u,demoPropositions:g,onSelectEntry:e,theme:r,renderTeamLogo:p,showHomeAway:y,filterSport:m})})]})},exports.EntriesPageTitle=rr,exports.EntrySubmission=ln,exports.EventFilterBanner=Tn,exports.EventPickerPage=Vo,exports.GAME_TIER_LEVEL=Yt,exports.GAME_TIER_TABS=Gt,exports.GameEntries=Cn,exports.GameLogo=Lo,exports.GamePage=function({onSelectGame:e,onRuleSetup:t,onGameSetBet:n,onPickYourDividend:o,onLadder:r,onMirror:i,onQuickPick:l,onCancel:d,hideTitle:h,hideActions:f,showPerfectPickSetup:u=!1,showTierFilter:g=!1}){const p=vn(),{theme:y,games:m,loading:b,error:w,selectedGame:x,selectedPropositionCount:B,handlePropositionCountChange:k,maxPayouts:C}=p;y.colors;const S=a.default.useRef(x);S.current=x;const{width:F}=(0,c.useWindowDimensions)(),z=F>=640;return(0,s.jsxs)(c.View,{style:oo.container,children:[!h&&(0,s.jsx)(c.View,{style:{marginBottom:z?24:16},children:(0,s.jsx)(no,{onBack:d,hideActions:f})}),(0,s.jsx)(Tn,{}),(0,s.jsx)(c.View,{style:oo.content,children:(0,s.jsx)(_t,{games:m,selectedGame:x,onSelectGame:e=>{S.current=e,p.selectGame(e)},loading:b,error:w,theme:y,showTierFilter:g,selectedPropositionCount:B,onPropositionCountChange:k,onPropositionCountSelected:()=>{const l=S.current;if("rule_setup"===$n(l)&&eo(l)&&!u)return p.goToSportSelection(),void e?.();switch($n(l)){case"game_set":return void n?.();case"pick_your_dividend":return void o?.();case"ladder":return void r?.();case"mirror":return void i?.();case"rule_setup":return void t?.();default:p.goToSportSelection(),e?.()}},onQuickPickGame:(e,t)=>{p.quickPickGame(e,t),l?.()},maxPayouts:C})})]})},exports.GamePageActions=function({onCancel:e,onSelectGame:t}){const{theme:n,screenSize:o}=vn(),r=n.colors;return e&&"mobile"!==o?(0,s.jsx)(c.View,{style:[oo.footer],children:(0,s.jsx)(c.TouchableOpacity,{onPress:e,style:[oo.secondaryBtn,{backgroundColor:r.buttonSecondary}],children:(0,s.jsx)(c.Text,{style:[oo.secondaryBtnText,{color:r.buttonSecondaryText}],children:"Cancel"})})}):null},exports.GamePageTitle=no,exports.GameSelector=_t,exports.GameSetBetPage=Cr,exports.GameSetBetPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=vn(),r=et(n),i=n.colors,{width:l}=(0,c.useWindowDimensions)(),a=l<640;return(0,s.jsxs)(c.View,{style:[Sr.header,a&&Sr.headerCompact],children:[(0,s.jsx)(c.Text,{style:[Sr.sectionTitle,a&&Sr.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"The fastest multi"}),(0,s.jsx)(Rn,{onBack:e,hideActions:t,children:o?(0,s.jsx)(c.Text,{style:[Sr.subtitle,a&&Sr.subtitleCompact,{color:i.textMuted}],numberOfLines:2,children:o.game_name}):null})]})},exports.GameSetupPage=function({onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r="Games"}){const{theme:i,selectedGame:l,goToSportSelection:a,bodyFont:d}=vn(),h={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r};switch($n(l)){case"game_set":return(0,s.jsx)(Cr,{...h});case"pick_your_dividend":return(0,s.jsx)(Fr,{...h});case"ladder":return(0,s.jsx)(vr,{...h});case"mirror":return(0,s.jsx)(Tr,{...h});case"rule_setup":return"exact"===Mt(l)?.kind?(0,s.jsx)(Dr,{...h}):(0,s.jsx)(yr,{onBack:n,hideTitle:o,backLabel:r,onContinue:()=>{a(),e?.()}});default:return(0,s.jsx)(c.View,{children:(0,s.jsx)(c.Text,{style:{color:i.colors.textMuted,fontFamily:d},children:"No setup required — this game goes straight to picks."})})}},exports.HowToPlayButton=T,exports.LADDER_FAMILY=Nn,exports.LADDER_REFERENCE_BET=50,exports.LADDER_STAKES=jn,exports.LadderPage=vr,exports.LadderPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=vn(),r=et(n),i=n.colors;return(0,s.jsxs)(c.View,{style:Wr.titleWrap,children:[(0,s.jsx)(c.Text,{style:[Wr.eyebrow,{color:i.primary,fontFamily:r}],children:"Every step pays"}),(0,s.jsx)(Rn,{onBack:e,hideActions:t,children:o?(0,s.jsx)(c.Text,{style:[Wr.titleSubtitle,{color:i.textMuted}],numberOfLines:2,children:o.game_name}):null})]})},exports.MIRROR_STANDARD_MARGIN=.21875,exports.MirrorPage=Tr,exports.MirrorPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=vn(),r=et(n),i=n.colors;return(0,s.jsxs)(c.View,{style:Lr.header,children:[(0,s.jsx)(c.Text,{style:[Lr.eyebrow,{color:i.primary,fontFamily:r}],children:"All right, or all wrong"}),(0,s.jsx)(Rn,{onBack:e,hideActions:t,children:o?(0,s.jsx)(c.Text,{style:[Lr.subtitle,{color:i.textMuted}],numberOfLines:2,children:o.game_name}):null})]})},exports.PYD_LEG_RUNGS=Ht,exports.PYD_RETAIL_DIVIDENDS=Ot,exports.PayoutCircles=function({game:e,totalSelections:t,expectedCorrect:n,onExpectedCorrectChange:o,theme:r=Ie,colorWinning:i,colorNone:l,winningCounts:a,payouts:d}){const f=r.colors,{width:u}=(0,c.useWindowDimensions)(),g=u>=640,p=i??f.payoutWinning,y=l??f.payoutNone,m=se(e),b=g?48:40;return(0,s.jsxs)(c.View,{style:dn.container,children:[(0,s.jsx)(c.Text,{style:[dn.title,{color:f.textMuted}],children:"Payout Visualization"}),m.enabled&&(0,s.jsxs)(c.View,{style:[dn.jackpotBanner,{borderColor:`${f.warning}30`}],children:[(0,s.jsxs)(h.default,{style:c.StyleSheet.absoluteFill,width:"100%",height:"100%",pointerEvents:"none",children:[(0,s.jsx)(h.Defs,{children:(0,s.jsxs)(h.LinearGradient,{id:"payout-jackpot-grad",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,s.jsx)(h.Stop,{offset:"0%",stopColor:f.warning,stopOpacity:.094}),(0,s.jsx)(h.Stop,{offset:"100%",stopColor:f.warning,stopOpacity:.031})]})}),(0,s.jsx)(h.Rect,{x:"0",y:"0",width:"100%",height:"100%",fill:"url(#payout-jackpot-grad)"})]}),(0,s.jsx)(h.default,{width:16,height:16,viewBox:"0 0 24 24",style:{flexShrink:0},children:(0,s.jsx)(h.Path,{d:cn,fill:f.warning})}),(0,s.jsx)(c.Text,{style:[dn.jackpotText,{color:f.warning}],children:m.progressive?m.amount>0?`Progressive Jackpot: ${$(m.amount)}${m.limit>0?` (up to ${$(m.limit)})`:""} for a perfect pick!`:m.limit>0?`Progressive Jackpot — up to ${$(m.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${$(m.amount)} for a perfect pick!`})]}),(0,s.jsx)(c.View,{style:[dn.circleGrid,{gap:g?8:6}],children:Array.from({length:t+1},(e,r)=>{const i=a.includes(r),l=d[r]??0,c=r===t,h=m.enabled&&c,u=h?f.warning:i?p:y,w=r===n,x=h?m.progressive?`${r} correct wins progressive jackpot${m.amount>0?` (currently ${$(m.amount)})`:""}${m.limit>0?` up to ${$(m.limit)}`:""} plus ${$(l)}`:`${r} correct wins jackpot ${$(m.amount)} plus ${$(l)}`:i?`${r} correct wins ${$(l)}`:l>0?`${r} correct pays ${$(l)} but does not win`:`${r} correct — no payout`,B=o?`${x}. Tap to select`:x;return(0,s.jsx)(sn,{index:r,size:b,wide:g,isWinning:i,isJackpot:h,isSelected:w,bgColor:u,borderFallback:f.border,warning:f.warning,primary:f.primary,textMuted:f.textMuted,payout:l,onPress:o?()=>o(r):void 0,accessibilityLabel:B},r)})}),(0,s.jsxs)(c.Text,{style:[dn.expectedText,{color:f.textMuted}],children:["Your expected: ",(0,s.jsxs)(c.Text,{style:dn.expectedBold,children:[n," correct"]})]})]})},exports.PerfectPickPage=Dr,exports.PerfectPickPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=vn(),r=et(n),i=n.colors;return(0,s.jsxs)(c.View,{style:Mr.header,children:[(0,s.jsx)(c.Text,{style:[Mr.eyebrow,{color:i.primary,fontFamily:r}],children:"All or nothing"}),(0,s.jsx)(Rn,{onBack:e,hideActions:t,children:o?(0,s.jsx)(c.Text,{style:[Mr.subtitle,{color:i.textMuted}],numberOfLines:2,children:o.game_name}):null})]})},exports.PickYourDividendPage=Fr,exports.PickYourDividendPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=vn(),r=et(n),i=n.colors;return(0,s.jsxs)(c.View,{style:zr.titleWrap,children:[(0,s.jsx)(c.Text,{style:[zr.eyebrow,zr.eyebrowLeft,{color:i.primary,fontFamily:r}],children:"The dividend is set"}),(0,s.jsx)(Rn,{onBack:e,hideActions:t,children:o?(0,s.jsx)(c.Text,{style:[zr.titleSubtitle,{color:i.textMuted}],numberOfLines:2,children:o.game_name}):null})]})},exports.PlaceEntryProvider=function({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,getUserBalance:i,children:l,theme:c,colorScheme:d,demoGames:h,demoPropositions:f,demoEntries:u,demoMaxPayouts:g,gameCategory:p,jurisdiction:y,initialGameId:m,filterSport:b,initialSport:w,initialEventId:x,initialEventLabel:B,sportBaseKey:k,showHomeAway:C=!1,disableQuickPick:S=!1,renderTeamLogo:F,onEntryPlaced:z,onBeforeSubmit:v,onCancel:W,onShare:A,onRecharge:T,onClearEventFilter:L,screenSize:D="desktop",howToPlayMarkdown:M,sportDisplayNames:R,categoryDisplayNames:O}){const H=$e(c,d),P=_e(H),I=et(H),E=!(!h||!f),j=(0,a.useMemo)(()=>new hn({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),[N,Y]=(0,a.useState)(0),G=(0,a.useRef)(0),[V,U]=(0,a.useState)(0),[Z,K]=(0,a.useState)([]),[q,X]=(0,a.useState)({}),[Q,J]=(0,a.useState)({}),[$,_]=(0,a.useState)(void 0),[ee,ne]=(0,a.useState)(void 0),re=a.default.useCallback(async()=>{if(i)try{const e=await i();"number"==typeof e&&Number.isFinite(e)&&ne(e)}catch(e){}},[i]);(0,a.useEffect)(()=>{i?re():ne(void 0)},[i,re]);const le=(0,a.useRef)(null),[se,de]=(0,a.useState)(null),[pe,ye]=(0,a.useState)(w??null),[we,Ce]=(0,a.useState)(x??null);(0,a.useEffect)(()=>{w&&ye(w)},[w]),(0,a.useEffect)(()=>{Ce(x??null)},[x]);const[Se,Fe]=(0,a.useState)(x),ze=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(!x)return Fe(void 0),void(ze.current=!1);ze.current||Fe(x)},[x]);const ve=p??se??void 0,We=b??w??void 0,Ae=ue(pe??We,k),Te=ue(We,k)??We,Le=pe??void 0,{games:De,howToPlayMarkdown:Me,loading:Re,error:Oe}=fn(j,{category:ve,jurisdiction:y,sport:Ae},{skip:E}),{propositions:He,loading:Pe,error:Ie}=un(j,{category:ve,sport:Te,event_id:Se},{skip:E}),{sports:Ee,loading:je}=gn(j,{skip:E}),{createEntry:Ne,loading:Ye,error:Ge}=mn(j),{preview:Ve}=wn(j),Ue=(0,a.useMemo)(()=>Be((E?h:De)??[],{category:ve,sport:Ae??Le,sportBaseKey:k}),[E,h,De,ve,Ae,Le,k]),Ze=M??Me??null,{maxPayouts:Ke,refetchGame:qe}=yn(j,Ue??[],{skip:E,betAmount:20}),Xe=E?g??{}:Ke,Qe=E?f:He,Je=b?(Qe??[]).filter(e=>e.sport===b):Qe,tt=(0,a.useMemo)(()=>ie(Je??[]),[Je]),nt=(0,a.useMemo)(()=>ve||(1===tt.length?tt[0]:void 0),[ve,tt]),ot=(0,a.useMemo)(()=>{const e=Je??[];return nt?me(e,{category:nt,sportBaseKey:k}):e},[Je,nt,k]),rt=(0,a.useMemo)(()=>Le?me(ot,{sport:Le,sportBaseKey:k}):ot,[ot,Le,k]),it=(0,a.useMemo)(()=>({category:nt,sport:Le,sportBaseKey:k}),[nt,Le,k]),lt=(0,a.useMemo)(()=>{const e=(Ue??[]).filter(e=>e.active);if(!nt&&tt.length>1)return[];const t=nt?Be(e,it):e;return nt||Le?function(e,t,n){return n?.category||n?.sport?e.filter(e=>xe(e,t,n)):e}(t,rt,it):t},[Ue,rt,it,nt,Le,tt.length]),{step:at,selectedGame:ct,selections:st,placedEntry:dt,setGameOnly:ht,clearSelectedGame:ft,goToSportSelection:ut,goToConfirmation:gt,goToSuccess:pt,goBack:yt,reset:mt,toggleSelection:bt}=bn(m),xt=a.default.useCallback(()=>{ze.current=!0,Fe(void 0),mt(),L?.()},[mt,L]),kt=!!Se,Ct=kt?B:void 0,St=!E&&(ct?Re||Pe||je:Re),Ft=E?null:ct?Oe||Ie:Oe,Wt=(0,a.useMemo)(()=>ct?ke(rt,ct,k):rt,[ct,rt,k]),At=(0,a.useMemo)(()=>ct?Wt:ot,[ct,Wt,ot]),Tt=(0,a.useMemo)(()=>me(ct?Wt:ot,{category:nt}),[ct,Wt,ot,nt]),Lt=(0,a.useMemo)(()=>{const e=new Set(Tt.map(e=>e.sport).filter(Boolean));return Ee.filter(t=>e.has(t.key))},[Ee,Tt]),Dt=(0,a.useMemo)(()=>me(Wt,{category:nt,sport:pe}),[Wt,nt,pe]),Mt=(0,a.useMemo)(()=>{if(!wt(ct))return[];const{min:e}=ce(ct,$),t=$??e;return Bt(Dt).filter(e=>e.propositionCount>=t)},[ct,$,Dt]),Rt=(0,a.useMemo)(()=>wt(ct)?zt(Dt,we):Dt,[ct,Dt,we]),Ot=Object.keys(st).map(Number),Ht=Ot.length,Pt=(0,a.useMemo)(()=>Dt.filter(e=>Ot.includes(e.id)),[Dt,Ot]);(0,a.useEffect)(()=>{p||se||1===tt.length&&de(tt[0])},[p,se,tt]),(0,a.useEffect)(()=>{if(!ct)return;const e=Wt,t=new Set(e.map(oe));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=>oe(e)===n):e,r=new Set(function(e){const t=new Set;for(const n of e){const o=te(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),i=ct.allowed_sports;ye(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)},[ct?.id,Wt,se]),(0,a.useEffect)(()=>{ct&&nt&&(be(ct,nt)||ft())},[ct,nt,ft]),(0,a.useEffect)(()=>{ct&&(xe(ct,rt,{category:nt,sport:pe,sportBaseKey:k})||ft())},[ct,nt,pe,k,rt,ft]),(0,a.useEffect)(()=>{if(ct){if(U(0),le.current){const{count:e}=le.current;return le.current=null,_(e),void Y(e)}if(ct.allowed_propositions&&ct.allowed_propositions.length>0){const e=$;null!=e&&ct.allowed_propositions.includes(e)?Y(e):(_(void 0),Y(0))}else _(void 0),Y(ct.num_propositions||ct.max_propositions||0)}},[ct]);const It=(e,t,n)=>{const o=(Xe[e]?.top_payouts??[]).find(e=>e.proposition_count===t);if(!o)return 0;const r=o.bet_amount&&o.bet_amount>0?o.bet_amount:20;return r<=0?0:o.net_payout/r*n};(0,a.useEffect)(()=>{if("sport"!==at&&"confirm"!==at||!ct||E)return;const e=wt(ct)&&we?Rt.length:Number.MAX_SAFE_INTEGER;let t;if(ct.allowed_propositions&&ct.allowed_propositions.length>0){const n=ct.allowed_propositions?[...ct.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void J({});const o=$??n[0],r=n.filter(e=>e>o);if(0===r.length)return void J({});t=[o,...r]}else{const{min:n,max:o}=ce(ct),r=Math.min(o,e);if(n<=0||r<=n)return void J({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=It(ct.id,o,20);J(n)},[at,ct,$,we,Rt.length,E,Xe]),(0,a.useEffect)(()=>{if("confirm"!==at||!ct)return;const e=Ot.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=It(ct.id,r,V);X(n),e!==G.current?(G.current=e,Y(e)):(N>e||N<=0&&e>0)&&Y(e);const o=V>0?V:Math.max(ct.min_bet??20,.01);return(async()=>{try{const n=await Ve(ct.id,{actual:N,predicted:N,total:e,bet_amount:o});if(t)return;K(n.winning_counts)}catch{t||K([])}})(),()=>{t=!0}},[at,ct,Ot.length,N,V,Ve,Xe]);const Et=!wt(ct)||vt(Pt,we),jt=!(!ct||!Et)&&(ct.allowed_propositions&&ct.allowed_propositions.length>0?null!=$&&Ht===$:ae(Ht,ct.min_propositions,ct.max_propositions)),Nt=ct?.min_bet??0,Yt=Math.max(Nt,.01),Gt=null==ee||V<=ee,Vt=!Ye&&V>=Yt&&jt&&Gt,Ut=e=>{_(e),Y(e);for(const t of Object.keys(st))bt(Number(t),st[Number(t)])},Zt=e=>{_(e),Y(e)},Kt=e=>{Ce(wt(e)?x??null:null),ht(e)},qt=e=>{if(e!==we){for(const e of Object.keys(st)){const t=Number(e);bt(t,st[t])}Ce(e)}},Xt=(e,t)=>{le.current={count:t},ht(e),qe(e.id);const n=e.allowed_sports??[];let o=null;pe&&n.some(e=>ge(pe,e,k))?o=pe:1===n.length&&(o=n[0]),ye(o);for(const a of Object.keys(st)){const e=Number(a);bt(e,st[e])}let r=me(ke(Je??[],e,k),{category:nt,sport:o,sportBaseKey:k});const i=Math.max(0,Math.min(t,r.length)),l=[...r].sort(()=>Math.random()-.5).slice(0,i);for(const a of l)bt(a.id,Math.random()<.5?"yes":"no");gt()},Qt=async()=>{if(ct&&jt){if(E){const e={id:Math.floor(1e4*Math.random()),game_id:ct.id,user_id:r,proposition_ids:Ot,selections:st,pending:!0,expected_correct:N,bet_amount:V};return z?.(e),pt(e),void re()}try{v&&await v(V);const e=await Ne({game_id:ct.id,user_id:r,proposition_ids:Ot,selections:st,stake:V});z?.(e),pt(e),re()}catch(e){}}},Jt=(0,a.useCallback)(e=>R?.[e]??Lt.find(t=>t.key===e)?.label??he(e,void 0,k),[R,Lt,k]),$t=(0,a.useCallback)(e=>fe(e,O),[O]),_t=(0,a.useMemo)(()=>({theme:H,bodyFont:P,headingFont:I,games:lt,propositions:Rt,propositionsForCategoryPicker:At,propositionsForSportPicker:Tt,sportSummaries:Lt,loading:St,error:Ft,step:at,selectedGame:ct,selections:st,placedEntry:dt,selectedPropositionIds:Ot,selectedPropositions:Pt,selectionValid:jt,answeredCount:Ht,betAmount:V,setBetAmount:U,expectedCorrect:N,setExpectedCorrect:Y,selectedPropositionCount:$,handlePropositionCountChange:Ut,upgradePropositionCount:Zt,winningCounts:Z,payouts:q,overloadPayouts:Q,submitting:Ye,submitError:Ge,canSubmit:Vt,gamePrice:Nt,userBalance:ee,hasSufficientBalance:Gt,refreshUserBalance:re,handleSubmit:Qt,selectGame:Kt,goToSportSelection:ut,goToConfirmation:gt,goBack:yt,reset:mt,clearSelectedGame:ft,toggleSelection:bt,quickPickGame:Xt,selectedCategory:se,setSelectedCategory:de,selectedSport:pe,setSelectedSport:ye,selectedEventId:we,sameGameMultiEvents:Mt,selectSameGameMultiEvent:qt,apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,showHomeAway:C,disableQuickPick:S,renderTeamLogo:F,filterSport:b,initialSport:w,initialEventId:x,sportBaseKey:k,gameCategory:p,eventFilterActive:kt,eventFilterLabel:Ct,clearEventFilter:xt,screenSize:D,displaySportName:Jt,displayCategoryName:$t,maxPayouts:Xe??{},howToPlayMarkdown:Ze,onEntryPlaced:z,onCancel:W,onShare:A,onRecharge:T,demoEntries:u,demoGames:h,demoPropositions:f}),[H,P,I,lt,Rt,At,Tt,Lt,St,Ft,at,ct,st,dt,Ot,Pt,jt,Ht,V,N,$,Z,q,Q,Ye,Ge,Vt,Nt,e,t,r,ee,n,o,C,S,F,b,w,x,k,p,D,kt,Ct,xt,se,pe,we,Mt,Xe,Ze,z,W,A,T,L,u,h,f,Ut,Jt,$t]);return(0,s.jsx)(zn.Provider,{value:_t,children:l})},exports.QuickPickButton=Wn,exports.RuleSetupPage=yr,exports.RuleSetupPageActions=function({onContinue:e,canContinue:t,continueLabel:n="Continue"}){const{theme:o,screenSize:r}=vn(),i=o.colors;return e&&"mobile"!==r?(0,s.jsx)(c.View,{style:mr.footer,children:(0,s.jsx)(c.TouchableOpacity,{onPress:e,disabled:!t,accessibilityRole:"button",accessibilityState:{disabled:!t},style:[mr.smallBtn,{backgroundColor:i.buttonPrimary,opacity:t?1:.45}],children:(0,s.jsx)(c.Text,{style:[mr.smallBtnText,{color:i.buttonPrimaryText}],children:n})})}):null},exports.RuleSetupPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o,selectedPropositionCount:r}=vn(),i=et(n),l=n.colors,a=Mt(o,r),{width:d}=(0,c.useWindowDimensions)(),h=d<640;return(0,s.jsxs)(c.View,{style:[mr.header,h&&mr.headerCompact],children:[(0,s.jsx)(c.Text,{accessibilityRole:"header",style:[mr.sectionTitle,h&&mr.sectionTitleCompact,{color:l.primary,fontFamily:i}],children:a?.title??"About this game"}),(0,s.jsx)(Rn,{onBack:e,hideActions:t,children:o?(0,s.jsxs)(c.Text,{style:[mr.subtitle,h&&mr.subtitleCompact,{color:l.textMuted}],numberOfLines:2,children:[o.game_name,a?.subtitle?` · ${a.subtitle}`:""]}):null})]})},exports.SelectionReview=function({propositions:e,selections:t,onToggleSelection:n,onNext:o,onBack:r,theme:i,colorScheme:l,hideActions:d=!1,renderTeamLogo:f,showHomeAway:u=!1,allowAnswerToggle:g=!0,gameName:p,potentialPayout:y,defaultExpanded:m=!1,addMorePicks:b}){const w=$e(i,l),x=w.colors,B=Me(w),k=et(w),C=ve(w),S=x.textAlt??x.text,{width:F}=(0,c.useWindowDimensions)(),z=F>=640,v=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(w),[W,A]=(0,a.useState)(null),[T,L]=(0,a.useState)(m),D=e.filter(e=>e.id in t),M=D.length,R=z?16:12;return(0,s.jsxs)(c.View,{style:{gap:z?24:16,paddingBottom:64},children:[(0,s.jsxs)(c.View,{style:[rn.section,{padding:z?24:16,backgroundColor:B,borderColor:x.border},v],children:[(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>L(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:T},style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:12},children:[(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:8,flex:1,minWidth:0},children:[(0,s.jsx)(h.default,{width:18,height:18,viewBox:"0 0 24 24",style:{flexShrink:0,transform:[{rotate:T?"180deg":"0deg"}]},children:(0,s.jsx)(h.Path,{d:"m6 9 6 6 6-6",stroke:x.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),(0,s.jsxs)(c.View,{style:{flex:1,minWidth:0},children:[(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:8},children:[(0,s.jsx)(c.Text,{style:{fontSize:z?18:16,fontWeight:"600",color:C,fontFamily:k},children:"Your Selections"}),(0,s.jsx)(c.View,{style:{backgroundColor:x.primary,paddingHorizontal:6,paddingVertical:2,borderRadius:999},children:(0,s.jsx)(c.Text,{style:{color:x.primaryText,fontSize:12,fontWeight:"600"},children:M})})]}),p&&(0,s.jsx)(c.Text,{numberOfLines:1,style:{color:x.textMuted,fontSize:14,marginTop:2},children:p})]})]}),null!=y&&y>0&&(0,s.jsxs)(c.View,{style:{alignItems:"flex-end",flexShrink:0},children:[(0,s.jsx)(c.Text,{style:{color:x.textMuted,fontSize:10,textTransform:"uppercase",letterSpacing:.25},children:"Potential Payout"}),(0,s.jsx)(c.Text,{style:{color:C,fontSize:14,fontWeight:"700"},children:$(y)})]})]}),b&&b.remaining>0&&(0,s.jsxs)(c.View,{style:{marginTop:R,padding:12,borderRadius:8,borderWidth:1,borderColor:`${x.primary}30`,backgroundColor:`${x.primary}08`,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,s.jsxs)(c.Text,{style:{flex:1,color:x.textMuted,fontSize:12},children:[1===b.remaining?"Add ":"Add up to ",(0,s.jsxs)(c.Text,{style:{color:x.primary,fontWeight:"700"},children:[b.remaining," more pick",1!==b.remaining?"s":""]}),null!=b.potentialPayout&&b.potentialPayout>0&&(0,s.jsxs)(c.Text,{children:[" ","to win up to"," ",(0,s.jsx)(c.Text,{style:{color:C,fontWeight:"700"},children:$(b.potentialPayout)})," ","with ",b.max," picks"]})]}),(0,s.jsx)(c.TouchableOpacity,{onPress:()=>b.onAdd(),style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:x.buttonPrimary},children:(0,s.jsx)(c.Text,{style:{color:x.buttonPrimaryText,fontSize:12,fontWeight:"600"},children:"Add picks"})})]}),T&&(0===D.length?(0,s.jsx)(c.View,{style:[rn.emptyState,{marginTop:R}],children:(0,s.jsx)(c.Text,{style:{color:x.textMuted},children:"No selections made yet"})}):(0,s.jsx)(c.View,{style:{gap:z?12:8,marginTop:R},children:D.map((e,o)=>{const i=t[e.id],l="yes"===i,a="no"===i,d=z?24:20;return(0,s.jsx)(c.View,{style:{padding:z?14:12,borderRadius:8,backgroundColor:x.backgroundAlt},children:(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"flex-start",gap:z?12:8},children:[(0,s.jsx)(c.View,{style:{flexShrink:0,width:d,height:d,borderRadius:d/2,alignItems:"center",justifyContent:"center",backgroundColor:x.primary},children:(0,s.jsx)(c.Text,{style:{fontSize:z?14:12,fontWeight:"600",color:x.primaryText},children:o+1})}),(0,s.jsxs)(c.View,{style:rn.selectionInfo,children:[u?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.View,{style:rn.teamsRow,children:[f&&e.home_team&&(0,s.jsxs)(c.View,{style:rn.teamLogoRow,children:[f(e.home_team),(0,s.jsx)(c.Text,{style:[rn.teamText,{color:S,fontSize:z?16:14}],children:e.home_team})]}),!f&&(0,s.jsx)(c.Text,{style:[rn.teamText,{color:S,fontSize:z?16:14}],children:e.home_team}),(0,s.jsx)(c.Text,{style:[rn.vsSmall,{color:x.textAltMuted??x.textMuted}],children:"vs"}),f&&e.away_team&&(0,s.jsxs)(c.View,{style:rn.teamLogoRow,children:[f(e.away_team),(0,s.jsx)(c.Text,{style:[rn.teamText,{color:S,fontSize:z?16:14}],children:e.away_team})]}),!f&&(0,s.jsx)(c.Text,{style:[rn.teamText,{color:S,fontSize:z?16:14}],children:e.away_team})]}),(0,s.jsx)(c.Text,{style:[rn.propDesc,{color:x.textAltMuted??x.textMuted}],children:e.description})]}):(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:8},children:[f&&(e.outcome||e.description)&&f(e.outcome||e.description),(0,s.jsx)(c.Text,{style:[rn.teamText,{color:S,fontSize:z?16:14,flex:1}],children:e.description})]}),(0,s.jsx)(c.Text,{style:[rn.propTime,{color:x.textAltMuted??x.textMuted}],children:e.commence_time&&_(e.commence_time)})]}),(0,s.jsxs)(c.View,{style:rn.rightControls,children:[g?(0,s.jsx)(tn,{theme:w,value:l?"yes":a?"no":null,onYes:()=>n(e.id,"yes"),onNo:()=>n(e.id,"no")}):i&&(0,s.jsx)(nn,{theme:w,value:"yes"===i?"yes":"no"}),(0,s.jsx)(c.TouchableOpacity,{onPress:()=>{n(e.id,t[e.id]),r()},accessibilityLabel:"Remove selection",onMouseEnter:()=>A(e.id),onMouseLeave:()=>A(t=>t===e.id?null:t),style:[rn.removeButton,{backgroundColor:W===e.id?x.error:x.backgroundAlt}],children:(0,s.jsx)(h.default,{width:12,height:12,viewBox:"0 0 24 24",children:(0,s.jsx)(h.Path,{d:"M6 18L18 6M6 6l12 12",stroke:W===e.id?"#fff":x.textAltMuted??x.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})})]})]})},e.id)})}))]}),(0,s.jsx)(c.View,{style:[rn.section,{padding:z?24:16,backgroundColor:B,borderColor:x.border},v],children:(0,s.jsxs)(c.View,{style:rn.summaryRow,children:[(0,s.jsx)(c.Text,{style:{color:x.textMuted,fontSize:14},children:"Total Selections"}),(0,s.jsx)(c.Text,{style:{color:x.text,fontSize:14,fontWeight:"600"},children:D.length})]})}),!d&&(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:x.border,backgroundColor:x.background,marginHorizontal:z?-24:-16,paddingHorizontal:z?24:16,paddingVertical:z?16:12},children:[(0,s.jsx)(on,{theme:w,variant:"secondary",onPress:r,children:"Back"}),(0,s.jsx)(on,{theme:w,variant:"primary",disabled:0===D.length,onPress:o,children:"Place bet"})]})]})},exports.SelectionsPage=function({onNext:e,onBack:t,hideTitle:n,hideActions:o}){const r=vn(),{theme:i,selectedGame:l,propositions:d,propositionsForSportPicker:h,selections:f,toggleSelection:u,loading:g,error:p,showHomeAway:y,disableQuickPick:m,renderTeamLogo:b,filterSport:w,initialSport:x,gameCategory:B,selectedPropositionCount:k,handlePropositionCountChange:C,goToConfirmation:S,goBack:F,selectedCategory:z,setSelectedCategory:v,selectedSport:W,setSelectedSport:A,selectedEventId:T,propositionsForCategoryPicker:L,answeredCount:D}=r;a.default.useEffect(()=>{l||(r.goToSportSelection(),t?.())},[l,r,t]);const M=a.default.useMemo(()=>{if(!l)return null;const{min:e,max:t}=ce(l,k??void 0);if(e>0&&e===t)return e;const n=$n(l);return null!=k&&k>0&&("game_set"===n||"pick_your_dividend"===n||_n(l))?k:null},[l,k]),R=a.default.useRef(D);a.default.useEffect(()=>{const t=R.current;R.current=D,null!=M&&t<M&&D===M&&(S(),e?.())},[D,M]);const O=a.default.useMemo(()=>ie(L??[]),[L]);a.default.useEffect(()=>{l&&1===O.length&&z!==O[0]&&v(O[0])},[l,O,z,v]);const H=a.default.useMemo(()=>{const e=new Set;for(const t of h??[])t.sport&&e.add(t.sport);return Array.from(e)},[h]);if(a.default.useEffect(()=>{l&&(O.length>1&&!z||1===H.length&&W!==H[0]&&A(H[0]))},[l,O,z,H,W,A]),!l)return null;const P=O.length>1&&!z,I=!P&&H.length>1&&!W,E=!P&&!I&&wt(l)&&!T,j=(()=>{if(!wt(l)||!T)return l;const e=Math.min(l.max_propositions??d.length,d.length);return{...l,max_propositions:e,allowed_propositions:l.allowed_propositions?.filter(t=>t<=e)}})(),N=()=>{F(),t?.()};return(0,s.jsxs)(c.View,{style:Xo.container,children:[!n&&(0,s.jsx)(c.View,{style:{marginBottom:24},children:(0,s.jsx)(Ko,{onBack:o?N:void 0,onNext:o?e:void 0,hideActions:o})}),!wt(l)&&(0,s.jsx)(Tn,{}),(0,s.jsx)(c.View,{style:Xo.content,children:P?(0,s.jsx)(jo,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>v(e)}):I?(0,s.jsx)(Po,{hideTitle:!0,hideActions:!0,onSelectSport:e=>A(e)}):E?(0,s.jsx)(Vo,{}):(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(bo,{game:j,propositions:d,selections:f,onToggleSelection:u,onNext:()=>{S(),e?.()},onBack:N,loading:g,error:p,theme:i,hideActions:!0,initialSport:w??x,renderTeamLogo:b,disableQuickPick:!0,selectedPropositionCount:k,onPropositionCountChange:C,showHomeAway:y,gameCategory:B})})}),!o&&!P&&!I&&!E&&(0,s.jsx)(c.View,{style:{marginTop:24},children:(0,s.jsx)(qo,{onNext:e,onBack:t})})]})},exports.SelectionsPageActions=qo,exports.SelectionsPageTitle=Ko,exports.SportPickerPage=Po,exports.SportPickerPageActions=function({onCancel:e}){const{theme:t,screenSize:n}=vn(),o=t.colors;return e&&"mobile"!==n?(0,s.jsx)(c.View,{style:Io.footer,children:(0,s.jsx)(c.TouchableOpacity,{onPress:e,style:[Io.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:(0,s.jsx)(c.Text,{style:[Io.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null},exports.SportPickerPageTitle=Ho,exports.SuccessPage=function({onPlayAgain:e,onDone:t,onBack:n,onShare:o,hideTitle:r,hideActions:i}){const l=vn(),{theme:d,bodyFont:h,headingFont:f,selectedGame:u,placedEntry:g,betAmount:p,selectedPropositionIds:y,selectedPropositions:m,selections:b,payouts:w,onShare:x}=l,B=d.colors,k=Me(d),C=B.textAlt??B.text,{width:S}=(0,c.useWindowDimensions)(),F=S>=640,z={shadowColor:"#000",shadowOpacity:"dark"===d.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2},v=g?.proposition_ids?g.proposition_ids.length:y.length,W=w[v]??null,A=a.default.useRef(!1);return a.default.useEffect(()=>{g&&u?A.current=!1:(l.goToSportSelection(),A.current||(A.current=!0,e?e():t?.()))},[g,u,l,e,t]),g?(0,s.jsxs)(c.View,{style:or.container,children:[!r&&(0,s.jsx)(c.View,{style:{marginBottom:24},children:(0,s.jsx)(nr,{onBack:n,hideActions:i})}),(0,s.jsxs)(c.View,{style:[or.content,{gap:F?16:12}],children:[(0,s.jsxs)(c.View,{style:[or.summaryCard,F&&or.summaryCardWide,{backgroundColor:k,borderColor:B.border},z],children:[(0,s.jsxs)(c.View,{style:or.summaryHeader,children:[(()=>{const e=u?u.allowed_propositions&&u.allowed_propositions.length>0&&u.game_name.replace(/\s+\d+\s*$/,"").trim()||u.game_name:"Entry summary";return u?(0,s.jsx)(c.View,{style:{flex:1,minWidth:0},children:(0,s.jsx)(xn,{iconUrl:Z(u),gameName:e,height:18,chipColor:B.primary,textColor:B.text,iconColor:B.primaryText,accentColor:d.brand?.accent})}):(0,s.jsx)(c.Text,{numberOfLines:1,style:[or.summaryHeading,F&&or.summaryHeadingWide,{color:ve(d),fontFamily:f,flex:1}],children:e})})(),(0,s.jsx)(c.View,{style:{backgroundColor:`${B.primary}15`,borderRadius:999,paddingHorizontal:8,paddingVertical:2,flexShrink:0},children:(0,s.jsxs)(c.Text,{style:{color:B.primary,fontSize:12,fontWeight:"600",fontFamily:h},children:[v," pick",1!==v?"s":""]})})]}),(0,s.jsxs)(c.View,{style:or.statsGrid,children:[(0,s.jsxs)(c.View,{style:[or.statCell,F&&or.statCellWide],children:[(0,s.jsx)(c.Text,{style:[or.statLabel,{color:B.textMuted,fontFamily:h}],children:"Selections"}),(0,s.jsx)(c.Text,{style:[or.statValue,{color:C,fontFamily:h}],children:v})]}),p>0&&(0,s.jsxs)(c.View,{style:[or.statCell,F&&or.statCellWide],children:[(0,s.jsx)(c.Text,{style:[or.statLabel,{color:B.textMuted,fontFamily:h}],children:"Wager"}),(0,s.jsx)(c.Text,{style:[or.statValue,{color:C,fontFamily:h}],children:$(p)})]}),null!=W&&W>0&&(0,s.jsxs)(c.View,{style:[or.statCell,F&&or.statCellWide],children:[(0,s.jsx)(c.Text,{style:[or.statLabel,{color:B.textMuted,fontFamily:h}],children:"Potential win"}),(0,s.jsx)(c.Text,{style:[or.statValue,{color:B.heading??B.text,fontWeight:"700",fontFamily:h}],children:$(W)})]})]})]}),m.length>0&&(0,s.jsxs)(c.View,{style:[or.summaryCard,F&&or.summaryCardWide,{backgroundColor:k,borderColor:B.border},z],children:[(0,s.jsx)(c.Text,{style:[or.summaryHeading,F&&or.summaryHeadingWide,{color:ve(d),fontFamily:f,marginBottom:8}],children:"Your picks"}),(0,s.jsx)(c.View,{style:or.pickList,children:m.map((e,t)=>{const n=b?.[e.id],o="yes"===n;return(0,s.jsxs)(c.View,{style:[or.pickRow,{backgroundColor:B.backgroundAlt}],children:[(0,s.jsx)(c.View,{style:{width:20,height:20,borderRadius:10,backgroundColor:B.primary,alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,s.jsx)(c.Text,{style:{color:B.primaryText,fontSize:10,fontWeight:"700",fontFamily:h},children:t+1})}),(0,s.jsxs)(c.View,{style:{flex:1,minWidth:0},children:[(0,s.jsxs)(c.Text,{numberOfLines:1,style:{color:C,fontSize:F?14:12,fontWeight:"500",fontFamily:h},children:[e.home_team," ",(0,s.jsx)(c.Text,{style:{color:B.textMuted},children:"vs"})," ",e.away_team]}),(0,s.jsx)(c.Text,{numberOfLines:1,style:{color:B.textMuted,fontSize:11,fontFamily:h},children:e.description})]}),null!=n&&(0,s.jsx)(tr,{theme:d,value:o?"yes":"no"})]},e.id)})})]})]})]}):null},exports.SuccessPageActions=function({onPlayAgain:e,onDone:t,onShare:n}){const{theme:o,reset:r,placedEntry:i,selectedGame:l,selectedPropositions:a,selections:d,betAmount:h}=vn();return o.colors,(0,s.jsxs)(c.View,{style:or.footer,children:[(0,s.jsx)(gt,{theme:o,variant:"secondary",onPress:()=>{r(),e?.()},children:"Place Another"}),t&&(0,s.jsx)(gt,{theme:o,variant:"primary",onPress:t,children:"Done"})]})},exports.SuccessPageTitle=nr,exports.YesNoCategoryLabel=Ro,exports.availableGameTierTabs=Zt,exports.contrastTextColour=function(e,t="#ffffff",n="#1a1a1a"){if(!e)return n;const o=function(e){const t=e.trim().toLowerCase(),n=t.match(/^#([0-9a-f]{3,8})$/);if(n){let e=n[1];return 3!==e.length&&4!==e.length||(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}const o=t.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);return o?[Number(o[1]),Number(o[2]),Number(o[3])]:null}(e);if(!o)return n;const[r,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},exports.darkTheme=je,exports.defaultGameTierId=Kt,exports.defaultTheme=Ie,exports.defaultThemeSet=Ze,exports.filterGamesByTierLevel=Ut,exports.filterPropositionsToEvent=zt,exports.formatCurrency=$,exports.formatDate=_,exports.formatSameGameMultiEventLabel=mt,exports.fullStackPrize=Un,exports.gameNeedsRuleSetup=Rt,exports.gameSetPrize=In,exports.getConfirmBoostCopy=to,exports.getGameFlow=$n,exports.getGameSetBetConfig=En,exports.getJackpotInfo=se,exports.getLadderConfig=Zn,exports.getMirrorConfig=Jn,exports.getPickYourDividendConfig=Nt,exports.getPropositionEventId=xt,exports.getRuleSetupConfig=Mt,exports.getSportDisplayName=de,exports.getTheme=function(e){return{default:Ie,green:Ee,"green-light":Ye,dark:je,gold:Ne,"gold-light":Ge,yesno:Ue,"yesno-light":Ve}[e]||Ie},exports.getThemeSet=function(e){return{default:Ze,green:Ke,gold:qe,yesno:Xe}[e]||Ze},exports.goldLightTheme=Ge,exports.goldTheme=Ne,exports.goldThemeSet=qe,exports.greenLightTheme=Ye,exports.greenTheme=Ee,exports.greenThemeSet=Ke,exports.groupPropositionsBySport=ee,exports.groupSameGameMultiEvents=Bt,exports.isFixedCardExactGame=_n,exports.isGameSetBetGame=Pn,exports.isLadderGame=Yn,exports.isMirrorGame=Xn,exports.isOpenExactMultiGame=eo,exports.isPickYourDividendGame=Pt,exports.isSameGameMultiGame=wt,exports.isSelectableSameGameMultiProposition=Ft,exports.isThemeSet=Pe,exports.isValidSelectionCount=ae,exports.ladderCollectAt=function(e,t,n){return Gn(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)},exports.ladderTiers=Vn,exports.mirrorPrize=Qn,exports.propositionsBelongToEvent=vt,exports.pydLadder=jt,exports.pydRung=Et,exports.resolveCategoryDisplayName=fe,exports.resolveGameTierLevel=Vt,exports.resolvePrice=function(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0},exports.resolveSportDisplayName=he,exports.resolveTheme=He,exports.roundDividendAmount=function(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)},exports.themeAccent=De,exports.themeBodyFont=_e,exports.themeHeading=ve,exports.themeHeadingFont=et,exports.themeLabel=We,exports.themeSets=Je,exports.themeTextAlt=function(e){return e.colors.textAlt??e.colors.text},exports.themeTextAltMuted=function(e){return e.colors.textAltMuted??e.colors.textMuted},exports.themeValue=Ae,exports.themes=Qe,exports.useCalculatePayout=function(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[i,l]=(0,a.useState)(null);return{calculate:(0,a.useCallback)(async(t,o)=>{try{n(!0),r(null);const i=await e.calculatePayout(t,o);return l(i),i}catch(i){const e=i instanceof Error?i.message:"Failed to calculate payout";throw r(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:o,result:i}},exports.useCreateGameEntry=mn,exports.useEntryPreview=wn,exports.useEvaluateRule=function(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[i,l]=(0,a.useState)(null);return{evaluate:(0,a.useCallback)(async(t,o)=>{try{n(!0),r(null);const i=await e.evaluateRule(t,o);return l(i),i}catch(i){const e=i instanceof Error?i.message:"Failed to evaluate rule";throw r(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:o,result:i}},exports.useGameEntries=pn,exports.useGameMaxPayouts=yn,exports.useGames=fn,exports.usePlaceEntry=vn,exports.usePlaceEntryFlow=bn,exports.usePropositions=un,exports.useResolvedTheme=$e,exports.useSports=gn;