@simple-parlay/components 1.30.6-pre → 1.30.6-pre.3

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.
@@ -1,437 +1,448 @@
1
- import e,{createContext as t,useCallback as n,useContext as o,useEffect as i,useLayoutEffect as r,useMemo as l,useRef as a,useState as c}from"react";import{AccessibilityInfo as s,ActivityIndicator as d,Animated as h,Dimensions as u,Easing as g,Image as f,Modal as p,PanResponder as y,Platform as m,Pressable as b,SafeAreaView as w,ScrollView as x,StyleSheet as k,Text as S,TextInput as C,TouchableOpacity as B,View as z,useWindowDimensions as F}from"react-native";import{Fragment as v,jsx as W,jsxs as T}from"react/jsx-runtime";import A,{Circle as R,Defs as L,Ellipse as D,Line as M,LinearGradient as P,Path as H,Polygon as O,Rect as I,Stop as E,SvgXml as j,Text as N}from"react-native-svg";import{createPortal as G}from"react-dom";var Y=/* @__PURE__ */(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):e)(function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")}),V="#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 q(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 K='\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 Z(e){let t=e.trim();for(;;){const e=t.match(/^<!--[\s\S]*?-->\s*/);if(!e)break;t=t.slice(e[0].length).trimStart()}return t}var X=/^<(main|section|article|div|style|table|h[1-6]|p|ul|ol|hr)\b/i,Q=/<(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 J(e){return/^<!DOCTYPE\s+html/i.test(e)||/^<html[\s>]/i.test(e)}function $(e){const t=e.trim();if(!t)return"";if(J(t))return t;const n=function(e){return/class=["']logo["']/i.test(e)?e:/<div class=["']masthead["']>/i.test(e)?e.replace(/(<div class=["']masthead["']>)/i,'$1\n <img class="logo" src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%202400%20500%22%20width%3D%222400%22%20height%3D%22500%22%3E%0A%20%20%3Ctitle%3EYESNO%20Multi%20Logo%20%E2%80%94%20Horizontal%20Master%3C%2Ftitle%3E%0A%20%20%3Cdesc%3EYESNO%20Multi%20master%20logo.%20Horizontal%20pipe%20lockup%3A%20YESNO%20wordmark%2C%20stacked%20tile%20icon%2C%20pipe%20divider%2C%20Multi%20extension%2C%20TM.%3C%2Fdesc%3E%0A%0A%20%20%3C!--%20YESNO%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAA68AAADMCAYAAACcEJWAAABCUUlEQVR4nO3dd7xcRfnH8U9ooU%2BQDiIdpHcRRbEgII69IQ5SRRCQgPSiCNKlinQBZUQRUJRBwYIiSBWUDqIUKQJCyFBMQkjy%2B2NOfoaQ3Oy9d3efc3a%2F79drXze5udn5brm7%2B5wz88wIREREpOOcDwsDSwALAQ4YVX1dAJhzmstcwAhgYnV5rfo6DngRGDvN1%2BeA53KKU7p2Q0REeojzYQFgJcrr82LVZfFp%2FrwwMDcwcpqvUy9zUV6fJ0xzGT%2FNn8cAz1K9Vk%2Fz52eBf%2BYUX%2BzGbewlI6wDiIiI9ALnw4LAKtNcVgaWAZYGlqJ86OmE14CngCeBJ4CHgQeAB4GHcorjOzSuiEhjOB%2BWA9YEVqW8Rk%2F9uqRhrP8AD1WXv1df78sp%2FsMwU62peBURERkk58NiwAbTXNYH3mYaasYmA%2F8Ebgduqy5%2FVUErIr3M%2BTAfsCGwCfDO6rK4aajBeR64FbgFuBm4Laf4sm2kelDxKiIiMgvOh6WBzarL%2ByhH65tqIuVD0e%2Bqy605xddtI4mIDJ3zYTZgY8ADWwHrALObhmqvycC9wLVAAv6cU5xkG8lG3xevzocLgR2sc7TohznF7a1D9BLnw8VAsM7Rogtyiju344qcD1of18dyin3%2F2j8r1QehTYCPVpfVbRN11MvAb4ErgJRTfMk4T9cYvRZ%2BNqd4ucG4gs1jrtfcznA%2BOGBLSsH6YWAR20Rd9SL%2FK2R%2FnVMcY5yna%2Fr%2Bl8n5sARljvkC1llaMAXYJKd4q3WQXuB82JgyFaMJvwcvA6vkFJ9px5WpeO1v%2BiA1Y86H2YH3A9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2BAy6ywydFWToZ8DP3c%2BLARsRSlmtwLeYpmty8YCv6HslfvrqqdDXxhhHUBERKTunA%2FzU87EbkVp%2FrKibaK2egG4CbgR%2BBNwW05xsm0kEZHWOR9mBzYBPkJ5nV6L3po5M5nSa%2BBaSsF6Y07xddtINlS8ioiIDJLzYRnKB6Wpl%2FVoxpnZKcAj%2FK9YvRF4IKc4xTSViEgbVQccN6K8Pr8T2JhmTRkfA9wK3ALcDNxadWPueypeRUREhsn5MBJYHVijuqxZfX0bNkf%2FJwGPUo7UT3t5IKf4X4M8IiKmnA8rUF6bV6V0Mp76dXHDWC8AD1WXv1df78sp%2Ft0wU62peBUREekQ58McwNKUIvZtwDLAEpS1WQtN83UBYCQwJ%2BUM7pyUvhQTgfHTXcZVl7HAv2dyebrXm3aIiLSD88FRloIsSTk7uxiloJ3654UpXehHzuAyF%2FA65bV5wnSX8ZTuv89Segk8N82fnwH%2BmVMc043b2Ev%2BD9aR9w7mNio3AAAAAElFTkSuQmCC%22%20x%3D%2240%22%20y%3D%22148%22%20width%3D%22940%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20Stacked%20tile%20icon%2C%20vector%20%E2%80%94%20proportional%20to%20wordmark%20height%20--%3E%0A%20%20%3Cg%20transform%3D%22translate(1040%2C%20130)%22%3E%0A%20%20%20%20%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%2F%3E%0A%20%20%20%20%3Crect%20x%3D%2240%22%20y%3D%2240%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%20opacity%3D%220.55%22%2F%3E%0A%20%20%20%20%3Crect%20x%3D%2280%22%20y%3D%2280%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%20opacity%3D%220.30%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%0A%20%20%3C!--%20Pipe%20divider%20in%20teal-700%20--%3E%0A%20%20%3Crect%20x%3D%221380%22%20y%3D%22150%22%20width%3D%226%22%20height%3D%22200%22%20fill%3D%22%2314687C%22%2F%3E%0A%0A%20%20%3C!--%20Multi%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAlkAAADMCAYAAABAzLaeAAAcwklEQVR4nO3de7hdVXnv8W8uJECCAwJSJYAgpIpaiNVSK4FWactt6FGb4FEHSdVCLJKICSRIn16O55weTkK4i8q1lYGiqNUyQKwWL9QLpVYLKhYUQUAqtzAEAcMl%2FWNObKC57LX3eueYc67f53nWg8Le4%2Feuy977XWONOcYkRERExsj5sN5y%2FJziJMvxRZo0uXQBIiIiIn00tXQBIiIiIiVYz8xqJktERETEwFTDLu6wnOLVRmPLCHE%2BrAGWWYyt9R8iImLFcibrfYZjy4hwPuwAHFO6DhERkUFZNlkHOR9ebTi%2BjIYlwMzSRYiIiAzKek3WycbjS485H7alarJEREQ6x7rJOsL5sK9xhvTX0cBOpYsQEREZjyauLjypgQzpGefDVsDy0nWIiIiMVxNN1pHOh70ayJF%2BeRuwW%2BkiRERExquJJmsKsKKBHOkJ58MkYGXpOkRERCaiqR3fFzkf%2FiqneHdDedJtbwReXLoIEZFh0rmPo6epHd%2BnY7SZpPSSZrFERKTzmjxW5131xpIim%2BR8OBjYv3QdIiIiE9VkkzUT7XkkW6aTAkREpBeaPiB6qfNhRsOZ0hHOh1cCB5euQ0REZBiabrJ2pNpgUmRjNIslIiK90XSTBbDc%2BTCtQK60mPPhRcAbStchIiIyLCWarF2BowrkSrutpMzrUURExESpP2ornQ%2F6gyoAOB92BULpOkRERIapVKMzB5hfKFvaZzmwVekiREREhqnkbJIOjhacD7oYQkREeqlkk%2FVy58OhBfOlHZYC2tZDRER6p%2FS6KF2yP8LqPdOOK12HiIiIhdJN1kHOhwMK1yDlLAZmlS5CR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B82j2CKg2%2BznV4e6%2Fm1O0WEcpMiE5xXU5xeOBNwD3lK1GxkNNlpGc4v1UHxtO1AX1WCITklN8KKe4GPhd4Ael6ynsM8BLcorn6pgcabuc4meBF1P9TdHrtUPUZNlaA0xkfccTwGlDqkUEgJzitcBc4H8zekfxXAf8Xk7xjfW6F5FOyCmuzSkeDfwW1RWw0gFqsgzVH0F8bAJDfFQfY4iFnOIvc4p%2FAbwE%2BAjwZOGSrN0EHJlTfFVOUYuJpbNyit%2FKKR4GHAB8mv7%2F7Haamix7qxjf9O56YPWQaxF5hpziD3OKi4B9gEj%2FfmF%2FCfDAS3OKl5cuRmRYcopfzyn%2BEbAX8NdUeylKy6jJMpZT%2FC5w1Ti%2B9cr6e0XM5RRvySkeRTWzdSHDuWijlAeAD1FdMfjanOKVWnclfZVTvD2n%2BGfAnsBBVFcj%2FrBsVWPyGNXPaq9NKl2AiLSP88EBC4FAtf1D2z0KfB64BEg5xXWWYfXjs%2Bewx80pfmfYY8pocj7MobrIZR7wKmAOzU%2BsrKU6ZP024Jb6dnP9zztG4c2PmiwR2SznwwuA%2BcChVL%2Bwty5b0a%2FcQnWg7ueAL%2BcUHytcj0hrOR%2B2AV5GtTRgj%2Fo2G9gJmAU4YDowDZhKdeHVOqqLY56%2BraPaVujB%2BrZ2g%2F99P3A38FOqxuou%2FUyqyRKRAdS%2FqF9N9c54f%2BCVwC4NRN8H3EB1deB1wDdzij9rIFdEZNzUZInIhDgfnkP17vhFwO7ArlSN107A9vVtW6p3yFsBU6jeFf%2Byvq0DHgLupdpw8R7gP4BbqT5auDmnuLap%2ByMiMiz%2FCXQ4TDPqI2KNAAAAAElFTkSuQmCC%22%20x%3D%221430%22%20y%3D%22148%22%20width%3D%22601%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20TM%20superscript%20at%20top-right%20of%20Multi%20--%3E%0A%20%20%3Ctext%20x%3D%222045%22%20y%3D%22190%22%20font-family%3D%22Manrope%2C%20Poppins%2C%20sans-serif%22%20font-size%3D%2256%22%20font-weight%3D%22600%22%20fill%3D%22%230F4C5C%22%3ETM%3C%2Ftext%3E%0A%3C%2Fsvg%3E%0A" alt="YESNO Multi" />'):e}(function(e){return/<table\s+class=["']props["']/i.test(e)?e:function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=0;for(;o<t.length;){const e=U(t[o]);if(e){const i=[e];let r=o+1;for(;r<t.length;){const e=U(t[r]);if(!e)break;i.push(e),r+=1}n.push(q(i)),o=r;continue}n.push(t[o]),o+=1}return n.join("\n")}(function(e){const t=/<p(?:\s[^>]*)?>([\s\S]*?)<\/p>/gi;let n,o="",i=0;const r=[],l=()=>{0!==r.length&&(o+=q([...r]),r.length=0)};for(;null!==(n=t.exec(e));){o+=e.slice(i,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)?r.push(...a):(l(),o+=n[0]),i=t.lastIndex}return l(),o+=e.slice(i),o}(e))}(function(e){const t=Z(e),n=t.match(/^<main[^>]*>([\s\S]*)<\/main>$/i);return n?n[1].trim():t}(t)));return`<!DOCTYPE html>\n<html lang="en-AU">\n<head>\n<meta charset="UTF-8">\n<meta name="viewport" content="width=device-width, initial-scale=1.0">\n<title>YES NO - How to Play</title>\n<style>${K}</style>\n</head>\n<body>\n<main class="page">\n${n}\n</main>\n</body>\n</html>`}var _=/^(#{1,3})\s+(.+)$/,ee=/^[-*]\s+(.+)$/,te=/^-{3,}$/;function ne(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,i=0,r=0;if(3===t.length)o=parseInt(t[0]+t[0],16),i=parseInt(t[1]+t[1],16),r=parseInt(t[2]+t[2],16);else if(6===t.length)o=parseInt(t.slice(0,2),16),i=parseInt(t.slice(2,4),16),r=parseInt(t.slice(4,6),16);else{if(8!==t.length)return e;o=parseInt(t.slice(0,2),16),i=parseInt(t.slice(2,4),16),r=parseInt(t.slice(4,6),16)}return`rgba(${o}, ${i}, ${r}, ${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 oe={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:48},ie={xs:4,sm:8,md:12,lg:16,xl:24,pill:999},re={xs:11,sm:13,md:14,lg:16,xl:18,xxl:22,display:28},le={min:44};function ae(e){const t="dark"===e.colorScheme,n=e.colors;return{space:{...oe},radius:{...ie},fontSize:{...re},touchTarget:{...le},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??ne(n.border,t?.6:.5)},isDark:t}}function ce(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 se(e){return e.colors.heading??e.colors.text}function de(e){return e.colors.label??e.colors.text}function he(e){return e.colors.value??e.colors.text}function ue(e){return e.colors.productYes??"#00C853"}function ge(e){return e.colors.productNo??"#E53935"}function fe(e){return e.brand?.accent??e.colors.primary}function pe(e,t,n){const o=t?.trim().toLowerCase()===e.trim().toLowerCase();return t&&!o?t:n}function ye(e){return e.colors.textAlt??e.colors.text}function me(e){return e.colors.textAltMuted??e.colors.textMuted}function be(e){return e.colors.selectionCard??e.colors.surface??e.colors.backgroundAlt}function we(e){return e.colors.matchupHeader??e.colors.backgroundAlt}function xe(e){return e.colors.selectionProp??e.colors.background}function ke(e){return{textMuted:e.colors.textMuted,border:e.colors.border,background:e.colors.background,backgroundAlt:e.colors.backgroundAlt,primary:e.colors.primary,selectionCard:be(e)}}function Se(e,t="light"){return e?Ce(e)?"dark"===t?e.dark:e.light:e:Be}function Ce(e){return"light"in e&&"dark"in e&&!("colors"in e)}var Be={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"}},ze={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"}},Fe={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"}},ve={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"}},We={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"}},Te={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"}},Ae={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"}},Re={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"}},Le={light:Be,dark:Fe},De={light:We,dark:ze},Me={light:Te,dark:ve},Pe={light:Ae,dark:Re};function He(e){return{default:Be,green:ze,"green-light":We,dark:Fe,gold:ve,"gold-light":Te,yesno:Re,"yesno-light":Ae}[e]||Be}function Oe(e){return{default:Le,green:De,gold:Me,yesno:Pe}[e]||Le}var Ie={default:Be,green:ze,"green-light":We,dark:Fe,gold:ve,"gold-light":Te,yesno:Re,"yesno-light":Ae},Ee={default:Le,green:De,gold:Me,yesno:Pe};function je(e,t="light"){return Se(e,t)}function Ne(e){return e.fonts?.body??"System"}function Ge(e){return e.fonts?.heading??e.fonts?.body??"System"}var Ye="game-icon:",Ve={perfect_pick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Perfect Pick.\n Single-glyph identifier ("100%") on a transparent background.\n\n Themable: the digits use currentColor (primary tone) and the\n trailing % uses the icon-accent CSS variable (default #DFFF1A).\n\n Laid out with geometry, not font metrics: two separate single-chunk <text>\n elements at explicit x, each pinned with textLength, and an explicit baseline\n y instead of dominant-baseline. react-native-svg anchors each <tspan> as its\n own chunk and ignores letter-spacing, so the old one-text/two-tspan version\n drifted off centre on native and pushed the % outside the viewBox. Combined\n extent is 8..92, centred on 50, whatever font actually resolves.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <text x="8" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="56"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">100</text>\n <text x="66" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="26"\n lengthAdjust="spacingAndGlyphs"\n fill="var(--icon-accent, #DFFF1A)">%</text>\n</svg>',head_to_head:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Head to Head.\n Two arrowheads clashing across a citron diamond. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Source design lives in an 80×60 box; centre it in 100×100 by\n shifting (10, 20) so the diamond at (40,30) lands at (50,50). --\x3e\n \x3c!-- Themable: arrowheads use currentColor (primary tone), the\n centre diamond uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(10, 20)">\n <path d="M 6 14 L 32 30 L 6 46 L 18 30 Z" fill="currentColor"/>\n <path d="M 74 14 L 48 30 L 74 46 L 62 30 Z" fill="currentColor"/>\n <polygon points="40,20 50,30 40,40 30,30" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',total_points:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Total Points.\n Sigma glyph with italic X superscript. Transparent background;\n rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Sigma + italic X superscript, centred together in the viewBox.\n Sigma 90×98 × 0.55 = 49.5×53.9. Translating to (15, 22) puts the\n sigma centre at (~40, 49) and leaves room for the X glyph at the\n upper right so the combined mark balances around (50, 50). --\x3e\n \x3c!-- Themable: sigma uses currentColor (primary), X superscript\n uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(15, 22) scale(0.55)">\n <path d="M 0,0 L 90,0 L 90,15 L 25,15 L 58,49 L 25,83 L 90,83 L 90,98 L 0,98 L 49,49 Z"\n fill="currentColor"/>\n </g>\n <text x="75" y="30"\n font-family="Manrope, Poppins, sans-serif"\n font-size="22"\n font-style="italic"\n font-weight="400"\n text-anchor="middle"\n dominant-baseline="central"\n fill="var(--icon-accent, #DFFF1A)">X</text>\n</svg>',quickpick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — QuickPick.\n Lightning bolt glyph. Transparent background; rendered onto the\n programmatic Press-to-Play tile.\n\n Themable: bolt fill uses currentColor (primary tone); edge stroke uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(28, 16) scale(0.55)">\n <path d="M 50 8 L 5 80 L 32 80 L 22 132 L 75 50 L 47 50 L 60 8 Z"\n fill="currentColor"\n stroke="var(--icon-accent, #DFFF1A)"\n stroke-width="3.5"\n stroke-linejoin="round"/>\n </g>\n</svg>',safety_net:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Safety Net.\n The brand basketball rim + curved diamond-mesh net catching a citron ball,\n taken from the YESNO Safety Net lockup / app icon. Transparent background;\n rendered on Press-to-Play tiles and brand lockups.\n\n Themable: net uses currentColor (teal on light, white on teal tile);\n ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(-2, -6.2) scale(1.3)">\n <line x1="9" y1="18" x2="71" y2="18" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>\n <path d="M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/>\n <ellipse cx="40" cy="64" rx="18" ry="4.5" fill="none" stroke="currentColor" stroke-width="2.2"/>\n <circle cx="40" cy="50" r="8" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',ladder:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n The sub-brand staircase: four offset rungs climbing to the top, from the\n YESNO Ladder lockup ("Climb the ladder. Stack the prizes."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: alternating rungs use currentColor (primary tone) and the\n icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="4" y="76" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="20" y="54" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="36" y="32" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="52" y="10" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',game_set:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Game Set Bet.\n The sub-brand tennis ball: citron ball with the S-curve seam, from the\n Game Set Bet lockup / app icon ("Game. Set. Bet."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the seam and the ball\'s rim use currentColor (teal on light, paper\n on the teal app-icon tile); the ball uses the icon-accent CSS variable\n (default #DFFF1A). The rim is what keeps the ball readable on themes whose\n chip colour sits near the accent (e.g. citron on the green theme\'s #00E676).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(4, 4) scale(1.15)">\n <circle cx="40" cy="40" r="34" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4.5"/>\n <path d="M40 8 C12 14 11 40 40 40 C69 40 68 66 40 72" fill="none" stroke="currentColor" stroke-width="4.5" stroke-linecap="round"/>\n </g>\n</svg>',pick_your_dividend:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n Splayed ladder rails and rungs with the citron ball resting at the top —\n the stacked-multi that pays every rung your streak reaches. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n\n Themable: rails/rungs use currentColor (primary tone); the ball uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <line x1="36" y1="16" x2="27" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="64" y1="16" x2="73" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="33.8" y1="34" x2="66.2" y2="34" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n <line x1="31.5" y1="52" x2="68.5" y2="52" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.8"/>\n <line x1="29.3" y1="70" x2="70.7" y2="70" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.6"/>\n <circle cx="50" cy="20" r="9" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Mirror.\n Two offset square-stacks reflected across a central seam, from the YESNO\n Mirror Standard mark ("Get them all right, you win. All wrong, you win.").\n Transparent background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left stack --\x3e\n <rect x="6" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="14" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- right stack — the reflection across x=50 --\x3e\n <rect x="66" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="58" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',same_game_multi:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon - Same Game Multi.\n Three proposition legs contained inside one rounded fixture card: many\n picks, one game. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the fixture and leg marks use currentColor (primary tone); the\n locked lead leg uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="14" y="14" width="72" height="72" rx="13" fill="none" stroke="currentColor" stroke-width="6"/>\n <circle cx="31" cy="35" r="6" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="43" y="31" width="31" height="8" rx="4" fill="currentColor"/>\n <circle cx="31" cy="51" r="6" fill="currentColor" opacity="0.8"/>\n <rect x="43" y="47" width="25" height="8" rx="4" fill="currentColor" opacity="0.8"/>\n <circle cx="31" cy="67" r="6" fill="currentColor" opacity="0.6"/>\n <rect x="43" y="63" width="19" height="8" rx="4" fill="currentColor" opacity="0.6"/>\n</svg>',six_again:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — 6 Again.\n Three stacked cards — the restart, the set again — with the citron six on the\n front of the deck. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the stack uses currentColor (primary tone); the front card carries\n the icon-accent CSS variable (default #DFFF1A) with a currentColor rim, and\n the numeral is knocked out in currentColor. Accent-as-card rather than\n accent-as-numeral because the numeral is small: on themes where the accent\n sits near the icon colour (orange on white in green-light) an accent numeral\n washes out, while an accent card stays legible and its rim keeps the card\n readable when the accent sits near the chip colour instead.\n\n The numeral is laid out with geometry, not font metrics: a single-chunk\n <text> pinned with textLength at an explicit x and baseline y, because\n react-native-svg anchors each chunk itself and ignores text-anchor drift.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="32" y="8" width="60" height="60" rx="13" fill="currentColor" opacity="0.3"/>\n <rect x="24" y="16" width="60" height="60" rx="13" fill="currentColor" opacity="0.55"/>\n <rect x="16" y="24" width="60" height="60" rx="13" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4"/>\n <text x="35" y="68"\n font-family="Manrope, Poppins, sans-serif"\n font-size="40"\n font-weight="800"\n textLength="22"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">6</text>\n</svg>',unknown:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Unknown game fallback.\n Question mark glyph on a transparent background.\n\n Themable: the mark uses currentColor (primary tone) and the dot uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <path\n d="M 28 42 C 28 26 36 16 46 16 C 58 16 66 26 66 38 C 66 48 58 54 50 58 L 50 68"\n fill="none"\n stroke="currentColor"\n stroke-width="8"\n stroke-linecap="round"\n stroke-linejoin="round"\n />\n <circle cx="50" cy="82" r="5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>'},Ue={perfectpick:"perfect_pick",headtohead:"head_to_head",totalpoints:"total_points",quickpick:"quickpick",safetynet:"safety_net",gameset:"game_set",gamesetbet:"game_set",pickyourdividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",mirrorstandard:"mirror",samegame:"same_game_multi",samegamemulti:"same_game_multi",sixagain:"six_again"},qe={safety_net:"safety_net",game_set:"game_set",pick_your_dividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",same_game_multi:"same_game_multi",six_again:"six_again"};function Ke(e){if(e.quick_pick_only)return"quickpick";const t=qe[e.rule?.trim().toLowerCase()??""];if(t)return t;const n=(e.game_name??"").toLowerCase().replace(/[^a-z0-9]+/g,"");return Ue[n]??"unknown"}function Ze(e){return`${Ye}${Ke(e)}`}function Xe(e){if(!function(e){return e.startsWith(Ye)}(e))return null;const t=e.slice(10);return Ve[t]??Ve.unknown}var Qe={text:"YES",tone:"yes"},Je={text:"NO",tone:"no"},$e=[{question:"Will the home side kick the first goal?",outcome:"yes"},{question:"Will the total go over 165 points?",outcome:"no"},{question:"Will the favourite lead at half time?",outcome:"yes"},{question:"Will either side kick five straight goals?",outcome:"yes"},{question:"Will the away side win the first quarter?",outcome:"no"},{question:"Will the top scorer kick three or more?",outcome:"yes"},{question:"Will the margin be under two goals?",outcome:"no"},{question:"Will there be a goal in the first five minutes?",outcome:"yes"}],_e=["zero","one","two","three","four","five","six","seven","eight"],et=[{title:"Select your picks",detail:"YES or NO on each call, from {min} up to {max}."},{title:"Continue to review",detail:"Lock in the picks you have made."},{title:"Review your slip",detail:"Add, remove, or change any pick."},{title:"Place your wager",detail:"Set your stake, check the payout, and you are on."}],tt=e=>[{title:`Choose your ${e}`,detail:"Pick how many legs you are taking on and your stake."},{title:"Make your calls",detail:"YES or NO on every leg of the card."},{title:"Check the slip",detail:"Your stake is locked from the setup — review every pick."},{title:"Place your entry",detail:"Confirm and you are on."}],nt={perfect_pick:{summary:["Perfect Pick is the multi you already know, with one big difference. You pick ",Qe," or ",Je," across your legs, every leg has to land, and one perfect card takes the prize."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},head_to_head:{summary:["Head to Head is win-or-lose calls only. Pick ",Qe," or ",Je," on each matchup, land every leg, and the card pays."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},total_points:{summary:["Total Points is all about the scoreboard. Call ",Qe," or ",Je," on each total, land every leg, and the card pays."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},quickpick:{summary:["QuickPick fills the card for you. We generate the ",Qe," and ",Je," calls, you set the stake, and a perfect card takes the prize."],steps:[{title:"Press to play",detail:"We generate a full card of calls for you."},{title:"Check the slip",detail:"See the picks you have been dealt."},{title:"Place your wager",detail:"Set your stake, check the payout, and you are on."}],demoPrompt:"See how a card settles — call {n} legs yourself, then run it."},safety_net:{summary:["Safety Net is a multi with a miss built in. Pick ",Qe," or ",Je," across your legs — get them all right for the top prize, and if one slips, the net catches it and the entry still pays."],steps:tt("net"),demoPrompt:"Try a {n}-leg card with a one-miss net — call every leg, then run it."},ladder:{summary:["Ladder pays as you climb. Pick ",Qe," or ",Je," on every leg — reach the first rung and you start winning, and every rung after that stacks another prize on top."],steps:tt("ladder"),demoPrompt:"Try a {n}-leg ladder — the climb starts at {n1} right."},game_set:{summary:["Game Set Bet is straight sets. Pick ",Qe," or ",Je," on every leg — each extra leg doubles the prize, and a clean card takes the lot."],steps:tt("ticket"),demoPrompt:"Try a quick {n}-leg ticket — call every leg, then run it."},pick_your_dividend:{summary:["Pick Your Dividend lets you choose the payout you are chasing. Pick ",Qe," or ",Je," on every leg — land them all and the entry pays the dividend you picked."],steps:tt("dividend"),demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},mirror:{summary:["Mirror pays both ways. Pick ",Qe," or ",Je," on every leg — get them all right, you win. Get them all wrong, you win the same. Anything in between is a split card and does not pay."],steps:tt("card"),demoPrompt:"Try a {n}-leg mirror — sweep it either way."},six_again:{summary:["6 Again is one six-leg card with boosts riding on it. Pick ",Qe," or ",Je," on all six calls — land the lot and the card pays. Golden Point doubles a winning card, and the Captain’s Challenge collects even when one call gets away."],steps:[{title:"Set your play",detail:"Choose your stake, then switch on the boosts you want."},{title:"Make your six calls",detail:"YES or NO on every call, {min} of them."},{title:"Check the slip",detail:"Your stake is locked from the setup — review every pick."},{title:"Place your entry",detail:"Confirm and you are on."}],demoPrompt:"Try a {n}-leg card — call every leg, then run it."},same_game_multi:{summary:["Same Game Multi keeps every leg inside one fixture. Pick ",Qe," or ",Je," across the game — land every leg and the card pays."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."}};function ot(e){if(!e)return null;const t=Ke(e),n=nt[t];if(!n)return null;const{min:o,max:i,demo:r}=function(e){const t=e.allowed_propositions?.filter(e=>e>0)??[],n=t.length>0?Math.min(...t):e.min_propositions??e.num_propositions??0,o=t.length>0?Math.max(...t):e.max_propositions??e.num_propositions??0;let i=3;return n>0&&(i=Math.max(i,n)),o>0&&(i=Math.min(i,o)),{min:n,max:o,demo:Math.min(Math.max(i,2),$e.length)}}(e),l=e=>e.replace(/\{min\}/g,String(o>0?o:2)).replace(/\{max\}/g,String(i>0?i:12));return{id:t,...n,steps:n.steps.map(e=>({...e,detail:l(e.detail)})),demoLegs:$e.slice(0,r),demoPrompt:l(n.demoPrompt).replace(/\{n1\}/g,_e[r-1]??String(r-1)).replace(/\{n\}/g,_e[r]??String(r))}}function it(e,t,n=!0){const o=e.current;o&&("web"!==m.OS?o.scrollTo?.({x:t,y:0,animated:n}):"function"==typeof o.scroll?o.scroll({left:t}):"number"==typeof o.scrollLeft&&(o.scrollLeft=t))}function rt(e,t){return{onMouseEnter:e,onMouseLeave:t}}function lt({theme:e,level:t="flat",padding:n="md",radius:o="md",style:i,children:r}){const l=ae(e),a={none:0,sm:l.space.sm,md:l.space.lg,lg:l.space.xl},c={none:0,sm:l.radius.sm,md:l.radius.md,lg:l.radius.lg,pill:l.radius.pill},s="elevated"===t?l.surface.surfaceElevated:l.surface.surface,d="flat"===t?{}:"raised"===t?{shadowColor:"#000",shadowOpacity:l.isDark?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}:{shadowColor:"#000",shadowOpacity:l.isDark?.5:.16,shadowRadius:24,shadowOffset:{width:0,height:12},elevation:6};/* @__PURE__ */
2
- return W(z,{style:[{backgroundColor:s,borderColor:e.colors.border,borderWidth:1,borderRadius:c[o],padding:a[n]},d,i],children:r})}function at({theme:t,variant:n="primary",size:o="md",disabled:i,block:r,radius:l="md",onPress:a,onLongPress:c,style:s,children:d,accessibilityLabel:h}){const u=ae(t),g=t.colors,f={sm:{h:36,px:u.space.md,fs:u.fontSize.sm},md:{h:u.touchTarget.min,px:u.space.lg,fs:u.fontSize.md},lg:{h:52,px:u.space.xl,fs:u.fontSize.lg}},p={sm:u.radius.sm,md:u.radius.md,lg:u.radius.lg,pill:u.radius.pill},y={primary:{bg:g.buttonPrimary,bgPressed:g.buttonPrimaryHover,fg:g.buttonPrimaryText,border:g.buttonPrimary},secondary:{bg:g.buttonSecondary,bgPressed:g.buttonSecondaryHover,fg:g.buttonSecondaryText,border:g.border},ghost:{bg:"transparent",bgPressed:ne(g.text,u.isDark?.1:.06),fg:g.text,border:"transparent"},danger:{bg:g.error,bgPressed:ne(g.error,.85),fg:"#ffffff",border:g.error}}[n],[m,w]=e.useState(!1);/* @__PURE__ */
3
- return W(b,{accessibilityRole:"button",accessibilityLabel:h,accessibilityState:{disabled:!!i},disabled:i,onPress:a,onLongPress:c,onHoverIn:()=>w(!0),onHoverOut:()=>w(!1),style:({pressed:e})=>[{minHeight:f[o].h,paddingHorizontal:f[o].px,borderRadius:p[l],backgroundColor:!e&&!m||i?y.bg:y.bgPressed,borderColor:y.border,borderWidth:1,alignSelf:r?"stretch":"flex-start",alignItems:"center",justifyContent:"center",flexDirection:"row",opacity:i?.5:1,transform:[{scale:e&&!i?.985:1}]},s],children:"string"==typeof d?/* @__PURE__ */W(S,{style:{color:y.fg,fontSize:f[o].fs,fontWeight:"500"},children:d}):d})}var ct={xs:{paddingVertical:3,paddingHorizontal:10,fontSize:11},sm:{paddingVertical:6,paddingHorizontal:14,fontSize:13},md:{paddingVertical:8,paddingHorizontal:18,fontSize:14}};function st(e,t,n,o,i,r){const l=ae(e),a=ct[o];return{container:{paddingVertical:a.paddingVertical,paddingHorizontal:a.paddingHorizontal,borderRadius:l.radius.sm,alignItems:"center",justifyContent:"center",backgroundColor:t?n:"transparent",borderWidth:1,borderColor:t?"transparent":e.colors.border,opacity:i?.5:1,...r?{flex:1}:null},label:{fontSize:a.fontSize,fontWeight:"600",lineHeight:1.2*a.fontSize,color:t?"#ffffff":e.colors.text}}}function dt({theme:e,value:t,onYes:n,onNo:o,size:i="md",stretch:r,disabled:l,yesLabel:a="Yes",noLabel:c="No",style:s}){const d=st(e,"yes"===t,ue(e),i,l,r),h=st(e,"no"===t,ge(e),i,l,r);/* @__PURE__ */
4
- return T(z,{style:[{flexDirection:"row",gap:8,flexShrink:0},r?{alignSelf:"stretch"}:null,s],children:[/* @__PURE__ */W(b,{accessibilityRole:"button",accessibilityState:{selected:"yes"===t,disabled:!!l},disabled:l,onPress:l?void 0:n,style:d.container,children:/* @__PURE__ */W(S,{style:d.label,children:a})}),/* @__PURE__ */W(b,{accessibilityRole:"button",accessibilityState:{selected:"no"===t,disabled:!!l},disabled:l,onPress:l?void 0:o,style:h.container,children:/* @__PURE__ */W(S,{style:h.label,children:c})})]})}function ht({theme:e,value:t,size:n="md",style:o}){const i=ae(e),r="sm"===n?10:11;/* @__PURE__ */
5
- return W(z,{style:[{alignSelf:"flex-start",flexDirection:"row",alignItems:"center",paddingVertical:"sm"===n?2:3,paddingHorizontal:"sm"===n?8:10,borderRadius:i.radius.sm,backgroundColor:"yes"===t?ue(e):ge(e)},o],children:/* @__PURE__ */W(S,{style:{fontSize:r,fontWeight:"700",letterSpacing:.04*r,textTransform:"uppercase",color:"#ffffff"},children:"yes"===t?"Yes":"No"})})}function ut({delay:t=0,style:n,children:o}){const{transform:i}=function(t=0){const n=e.useRef(new h.Value(0)).current;return e.useEffect(()=>{let e=!1;const o=o=>{e||(o?n.setValue(1):h.timing(n,{toValue:1,duration:500,delay:t,easing:g.bezier(.2,.8,.2,1),useNativeDriver:"web"!==m.OS}).start())},i=s.isReduceMotionEnabled?.();i&&"function"==typeof i.then?i.then(o).catch(()=>o(!1)):o(!1);const r=s.addEventListener?.("reduceMotionChanged",e=>{e&&n.setValue(1)});return()=>{e=!0,r?.remove?.()}},[t,n]),{opacity:n,transform:[{translateY:n.interpolate({inputRange:[0,1],outputRange:[14,0]})}]}}(t);/* @__PURE__ */
6
- return W(h.View,{style:[n,{transform:i}],children:o})}var gt=/\b(YES|NO)\b/;function ft(e,t,n){return e.split(gt).map((e,o)=>"YES"===e||"NO"===e?/* @__PURE__ */W(ht,{theme:t,value:"YES"===e?"yes":"no",size:"sm"},`${n}-${o}`):/* @__PURE__ */W(S,{children:e},`${n}-${o}`))}function pt({segments:e,theme:t,bodyFont:n}){/* @__PURE__ */
7
- return W(S,{style:[mt.summary,{color:t.colors.text,fontFamily:n}],children:e.map((e,n)=>"string"==typeof e?/* @__PURE__ */W(S,{children:ft(e,t,n)},n):/* @__PURE__ */W(ht,{theme:t,value:e.tone,size:"sm"},n))})}function yt({panel:e,theme:t,dividends:n,bodyFont:o,headingFont:i}){const r=t.colors,l=t.brand?.accent??r.primaryText,a=be(t),[s,d]=c("learn"),[h,u]=c(()=>e.demoLegs.map(()=>null)),[g,f]=c(!1),p=e.demoLegs.length,y=h.filter(e=>null!=e).length,m=y===p,b=e.demoLegs.filter((e,t)=>h[t]===e.outcome).length,w=function(e,t,n){const o=t===n,i=`${t} of ${n}`;switch(e){case"mirror":return o?{won:!0,message:`All ${n} right — that is the sweep, the card pays.`}:0===t?{won:!0,message:`All ${n} wrong — a full mirror sweep pays the same as perfect.`}:{won:!1,message:`${i} is a split card. Mirror pays all right or all wrong — nothing in between.`};case"ladder":return o?{won:!0,message:`Top rung — all ${n} right stacks every prize on the ladder into one payout.`}:t>=n-1?{won:!0,message:`${i} reaches a rung — it pays, and every extra leg right stacks the next prize on top.`}:{won:!1,message:`${i} does not reach the first rung — the climb starts at ${n-1} right.`};case"safety_net":return o?{won:!0,message:`Clean sweep — all ${n} right takes the full prize.`}:t===n-1?{won:!0,message:"One miss — the net catches it and the entry still pays."}:{won:!1,message:`${i} is more than the net holds — one miss is covered, two is not.`};case"six_again":return o?{won:!0,message:`All ${n} right — the card pays, and Golden Point doubles it.`}:t===n-1?{won:!1,message:`${i} — one call away. The Captain’s Challenge is the boost that collects on this card.`}:{won:!1,message:`${i} — every call has to land. Flip the misses and the card pays.`};case"game_set":return o?{won:!0,message:`Game, set, bet — all ${n} legs landed and the card pays.`}:{won:!1,message:`${i} — every leg has to land. Flip the misses and it is straight sets.`};case"pick_your_dividend":return o?{won:!0,message:`All ${n} right — the entry pays the dividend you picked.`}:{won:!1,message:`${i} — every leg has to land to collect your dividend.`};default:return o?{won:!0,message:`Perfect card — all ${n} legs landed, the prize is yours.`}:{won:!1,message:`${i} — one miss breaks a perfect card. Flip the misses and it pays.`}}}(e.id,b,p),x=(e,t)=>{g||u(n=>n.map((n,o)=>o===e?t:n))},k=g?"Settled":`${y} of ${p} called`,C=!g&&m,F=e=>[mt.segment,{backgroundColor:e?r.primary:"transparent"}],v=e=>[mt.segmentText,{color:e?r.primaryText:r.textMuted,fontFamily:i}];/* @__PURE__ */
1
+ import e,{createContext as t,useCallback as n,useContext as o,useEffect as r,useLayoutEffect as i,useMemo as l,useRef as a,useState as c}from"react";import{AccessibilityInfo as s,ActivityIndicator as d,Animated as h,Dimensions as u,Easing as g,Image as f,Modal as p,PanResponder as y,Platform as m,Pressable as b,SafeAreaView as w,ScrollView as x,StyleSheet as k,Text as S,TextInput as C,TouchableOpacity as B,View as z,useWindowDimensions as v}from"react-native";import{Fragment as F,jsx as W,jsxs as T}from"react/jsx-runtime";import A,{Circle as L,Defs as R,Ellipse as D,Line as M,LinearGradient as P,Path as H,Polygon as O,Rect as I,Stop as E,SvgXml as j,Text as N}from"react-native-svg";import{createPortal as G}from"react-dom";var Y=/* @__PURE__ */(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):e)(function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")}),V="#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 q(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 K='\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 Z(e){let t=e.trim();for(;;){const e=t.match(/^<!--[\s\S]*?-->\s*/);if(!e)break;t=t.slice(e[0].length).trimStart()}return t}var X=/^<(main|section|article|div|style|table|h[1-6]|p|ul|ol|hr)\b/i,Q=/<(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 J(e){return/^<!DOCTYPE\s+html/i.test(e)||/^<html[\s>]/i.test(e)}function $(e){const t=e.trim();if(!t)return"";if(J(t))return t;const n=function(e){return/class=["']logo["']/i.test(e)?e:/<div class=["']masthead["']>/i.test(e)?e.replace(/(<div class=["']masthead["']>)/i,'$1\n <img class="logo" src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%202400%20500%22%20width%3D%222400%22%20height%3D%22500%22%3E%0A%20%20%3Ctitle%3EYESNO%20Multi%20Logo%20%E2%80%94%20Horizontal%20Master%3C%2Ftitle%3E%0A%20%20%3Cdesc%3EYESNO%20Multi%20master%20logo.%20Horizontal%20pipe%20lockup%3A%20YESNO%20wordmark%2C%20stacked%20tile%20icon%2C%20pipe%20divider%2C%20Multi%20extension%2C%20TM.%3C%2Fdesc%3E%0A%0A%20%20%3C!--%20YESNO%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAA68AAADMCAYAAACcEJWAAABCUUlEQVR4nO3dd7xcRfnH8U9ooU%2BQDiIdpHcRRbEgII69IQ5SRRCQgPSiCNKlinQBZUQRUJRBwYIiSBWUDqIUKQJCyFBMQkjy%2B2NOfoaQ3Oy9d3efc3a%2F79drXze5udn5brm7%2B5wz88wIREREpOOcDwsDSwALAQ4YVX1dAJhzmstcwAhgYnV5rfo6DngRGDvN1%2BeA53KKU7p2Q0REeojzYQFgJcrr82LVZfFp%2FrwwMDcwcpqvUy9zUV6fJ0xzGT%2FNn8cAz1K9Vk%2Fz52eBf%2BYUX%2BzGbewlI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ElFTkSuQmCC%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%2BrAGWWYyt9R8iImLFcibrfYZjy4hwPuwAHF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x80pfmfYY8pocj7MobrIZR7wKmAOzU%2BsrKU6ZP024Jb6dnP9zztG4c2PmiwR2SznwwuA%2BcChVL%2Bwty5b0a%2FcQnWg7ueAL%2BcUHytcj0hrOR%2B2AV5GtTRgj%2Fo2G9gJmAU4YDowDZhKdeHVOqqLY56%2BraPaVujB%2BrZ2g%2F99P3A38FOqxuou%2FUyqyRKRAdS%2FqF9N9c54f%2BCVwC4NRN8H3EB1deB1wDdzij9rIFdEZNzUZInIhDgfnkP17vhFwO7ArlSN107A9vVtW6p3yFsBU6jeFf%2Byvq0DHgLupdpw8R7gP4BbqT5auDmnuLap%2ByMiMiz%2FCXQ4TDPqI2KNAAAAAElFTkSuQmCC%22%20x%3D%221430%22%20y%3D%22148%22%20width%3D%22601%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20TM%20superscript%20at%20top-right%20of%20Multi%20--%3E%0A%20%20%3Ctext%20x%3D%222045%22%20y%3D%22190%22%20font-family%3D%22Manrope%2C%20Poppins%2C%20sans-serif%22%20font-size%3D%2256%22%20font-weight%3D%22600%22%20fill%3D%22%230F4C5C%22%3ETM%3C%2Ftext%3E%0A%3C%2Fsvg%3E%0A" alt="YESNO Multi" />'):e}(function(e){return/<table\s+class=["']props["']/i.test(e)?e:function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=0;for(;o<t.length;){const e=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(q(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+=q([...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=Z(e),n=t.match(/^<main[^>]*>([\s\S]*)<\/main>$/i);return n?n[1].trim():t}(t)));return`<!DOCTYPE html>\n<html lang="en-AU">\n<head>\n<meta charset="UTF-8">\n<meta name="viewport" content="width=device-width, initial-scale=1.0">\n<title>YES NO - How to Play</title>\n<style>${K}</style>\n</head>\n<body>\n<main class="page">\n${n}\n</main>\n</body>\n</html>`}var _=/^(#{1,3})\s+(.+)$/,ee=/^[-*]\s+(.+)$/,te=/^-{3,}$/;function ne(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 oe={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:48},re={xs:4,sm:8,md:12,lg:16,xl:24,pill:999},ie={xs:11,sm:13,md:14,lg:16,xl:18,xxl:22,display:28},le={min:44};function ae(e){const t="dark"===e.colorScheme,n=e.colors;return{space:{...oe},radius:{...re},fontSize:{...ie},touchTarget:{...le},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??ne(n.border,t?.6:.5)},isDark:t}}function ce(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 se(e){return e.colors.heading??e.colors.text}function de(e){return e.colors.label??e.colors.text}function he(e){return e.colors.value??e.colors.text}function ue(e){return e.colors.productYes??"#00C853"}function ge(e){return e.colors.productNo??"#E53935"}function fe(e){return e.brand?.accent??e.colors.primary}function pe(e,t,n){const o=t?.trim().toLowerCase()===e.trim().toLowerCase();return t&&!o?t:n}function ye(e){return e.colors.textAlt??e.colors.text}function me(e){return e.colors.textAltMuted??e.colors.textMuted}function be(e){return e.colors.selectionCard??e.colors.surface??e.colors.backgroundAlt}function we(e){return e.colors.matchupHeader??e.colors.backgroundAlt}function xe(e){return e.colors.selectionProp??e.colors.background}function ke(e){return{textMuted:e.colors.textMuted,border:e.colors.border,background:e.colors.background,backgroundAlt:e.colors.backgroundAlt,primary:e.colors.primary,selectionCard:be(e)}}function Se(e,t="light"){return e?Ce(e)?"dark"===t?e.dark:e.light:e:Be}function Ce(e){return"light"in e&&"dark"in e&&!("colors"in e)}var Be={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"}},ze={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"}},ve={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"}},Fe={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"}},We={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"}},Te={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"}},Ae={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"}},Le={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"}},Re={light:Be,dark:ve},De={light:We,dark:ze},Me={light:Te,dark:Fe},Pe={light:Ae,dark:Le};function He(e){return{default:Be,green:ze,"green-light":We,dark:ve,gold:Fe,"gold-light":Te,yesno:Le,"yesno-light":Ae}[e]||Be}function Oe(e){return{default:Re,green:De,gold:Me,yesno:Pe}[e]||Re}var Ie={default:Be,green:ze,"green-light":We,dark:ve,gold:Fe,"gold-light":Te,yesno:Le,"yesno-light":Ae},Ee={default:Re,green:De,gold:Me,yesno:Pe};function je(e,t="light"){return Se(e,t)}function Ne(e){return e.fonts?.body??"System"}function Ge(e){return e.fonts?.heading??e.fonts?.body??"System"}var Ye="game-icon:",Ve={perfect_pick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Perfect Pick.\n Single-glyph identifier ("100%") on a transparent background.\n\n Themable: the digits use currentColor (primary tone) and the\n trailing % uses the icon-accent CSS variable (default #DFFF1A).\n\n Laid out with geometry, not font metrics: two separate single-chunk <text>\n elements at explicit x, each pinned with textLength, and an explicit baseline\n y instead of dominant-baseline. react-native-svg anchors each <tspan> as its\n own chunk and ignores letter-spacing, so the old one-text/two-tspan version\n drifted off centre on native and pushed the % outside the viewBox. Combined\n extent is 8..92, centred on 50, whatever font actually resolves.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <text x="8" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="56"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">100</text>\n <text x="66" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="26"\n lengthAdjust="spacingAndGlyphs"\n fill="var(--icon-accent, #DFFF1A)">%</text>\n</svg>',head_to_head:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Head to Head.\n Two arrowheads clashing across a citron diamond. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Source design lives in an 80×60 box; centre it in 100×100 by\n shifting (10, 20) so the diamond at (40,30) lands at (50,50). --\x3e\n \x3c!-- Themable: arrowheads use currentColor (primary tone), the\n centre diamond uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(10, 20)">\n <path d="M 6 14 L 32 30 L 6 46 L 18 30 Z" fill="currentColor"/>\n <path d="M 74 14 L 48 30 L 74 46 L 62 30 Z" fill="currentColor"/>\n <polygon points="40,20 50,30 40,40 30,30" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',total_points:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Total Points.\n Sigma glyph with italic X superscript. Transparent background;\n rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Sigma + italic X superscript, centred together in the viewBox.\n Sigma 90×98 × 0.55 = 49.5×53.9. Translating to (15, 22) puts the\n sigma centre at (~40, 49) and leaves room for the X glyph at the\n upper right so the combined mark balances around (50, 50). --\x3e\n \x3c!-- Themable: sigma uses currentColor (primary), X superscript\n uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(15, 22) scale(0.55)">\n <path d="M 0,0 L 90,0 L 90,15 L 25,15 L 58,49 L 25,83 L 90,83 L 90,98 L 0,98 L 49,49 Z"\n fill="currentColor"/>\n </g>\n <text x="75" y="30"\n font-family="Manrope, Poppins, sans-serif"\n font-size="22"\n font-style="italic"\n font-weight="400"\n text-anchor="middle"\n dominant-baseline="central"\n fill="var(--icon-accent, #DFFF1A)">X</text>\n</svg>',quickpick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — QuickPick.\n Lightning bolt glyph. Transparent background; rendered onto the\n programmatic Press-to-Play tile.\n\n Themable: bolt fill uses currentColor (primary tone); edge stroke uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(28, 16) scale(0.55)">\n <path d="M 50 8 L 5 80 L 32 80 L 22 132 L 75 50 L 47 50 L 60 8 Z"\n fill="currentColor"\n stroke="var(--icon-accent, #DFFF1A)"\n stroke-width="3.5"\n stroke-linejoin="round"/>\n </g>\n</svg>',safety_net:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Safety Net.\n The brand basketball rim + curved diamond-mesh net catching a citron ball,\n taken from the YESNO Safety Net lockup / app icon. Transparent background;\n rendered on Press-to-Play tiles and brand lockups.\n\n Themable: net uses currentColor (teal on light, white on teal tile);\n ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(-2, -6.2) scale(1.3)">\n <line x1="9" y1="18" x2="71" y2="18" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>\n <path d="M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/>\n <ellipse cx="40" cy="64" rx="18" ry="4.5" fill="none" stroke="currentColor" stroke-width="2.2"/>\n <circle cx="40" cy="50" r="8" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',ladder:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n The sub-brand staircase: four offset rungs climbing to the top, from the\n YESNO Ladder lockup ("Climb the ladder. Stack the prizes."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: alternating rungs use currentColor (primary tone) and the\n icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="4" y="76" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="20" y="54" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="36" y="32" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="52" y="10" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',game_set:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Game Set Bet.\n The sub-brand tennis ball: citron ball with the S-curve seam, from the\n Game Set Bet lockup / app icon ("Game. Set. Bet."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the seam and the ball\'s rim use currentColor (teal on light, paper\n on the teal app-icon tile); the ball uses the icon-accent CSS variable\n (default #DFFF1A). The rim is what keeps the ball readable on themes whose\n chip colour sits near the accent (e.g. citron on the green theme\'s #00E676).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(4, 4) scale(1.15)">\n <circle cx="40" cy="40" r="34" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4.5"/>\n <path d="M40 8 C12 14 11 40 40 40 C69 40 68 66 40 72" fill="none" stroke="currentColor" stroke-width="4.5" stroke-linecap="round"/>\n </g>\n</svg>',pick_your_dividend:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n Splayed ladder rails and rungs with the citron ball resting at the top —\n the stacked-multi that pays every rung your streak reaches. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n\n Themable: rails/rungs use currentColor (primary tone); the ball uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <line x1="36" y1="16" x2="27" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="64" y1="16" x2="73" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="33.8" y1="34" x2="66.2" y2="34" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n <line x1="31.5" y1="52" x2="68.5" y2="52" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.8"/>\n <line x1="29.3" y1="70" x2="70.7" y2="70" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.6"/>\n <circle cx="50" cy="20" r="9" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Mirror.\n Two offset square-stacks reflected across a central seam, from the YESNO\n Mirror Standard mark ("Get them all right, you win. All wrong, you win.").\n Transparent background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left stack --\x3e\n <rect x="6" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="14" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- right stack — the reflection across x=50 --\x3e\n <rect x="66" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="58" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror_double:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Double Mirror.\n The Mirror mark reaching one slot further in: two reflected squares per side\n stepping toward the seam, the deeper pair dimmed because the near-miss tier\n pays less than the clean sweep.\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 side — the all-wrong edge, stepping in --\x3e\n <rect x="4" y="26" width="26" height="26" rx="6.5" fill="currentColor"/>\n <rect x="20" y="44" width="26" height="26" rx="6.5" fill="currentColor" opacity="0.55"/>\n \x3c!-- right side — the reflection across x=50 --\x3e\n <rect x="70" y="26" width="26" height="26" rx="6.5" fill="currentColor"/>\n <rect x="54" y="44" width="26" height="26" rx="6.5" fill="currentColor" opacity="0.55"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror_triple:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Triple Mirror.\n The Mirror mark reaching two slots in: three reflected squares per side\n stepping toward the seam, each dimmer than the last because each tier\n further from the edge pays less.\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 side — the all-wrong edge, stepping in --\x3e\n <rect x="2" y="22" width="22" height="22" rx="5.5" fill="currentColor"/>\n <rect x="13" y="39" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.7"/>\n <rect x="24" y="56" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.45"/>\n \x3c!-- right side — the reflection across x=50 --\x3e\n <rect x="76" y="22" width="22" height="22" rx="5.5" fill="currentColor"/>\n <rect x="65" y="39" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.7"/>\n <rect x="54" y="56" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.45"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',same_game_multi:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon - Same Game Multi.\n Three proposition legs contained inside one rounded fixture card: many\n picks, one game. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the fixture and leg marks use currentColor (primary tone); the\n locked lead leg uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="14" y="14" width="72" height="72" rx="13" fill="none" stroke="currentColor" stroke-width="6"/>\n <circle cx="31" cy="35" r="6" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="43" y="31" width="31" height="8" rx="4" fill="currentColor"/>\n <circle cx="31" cy="51" r="6" fill="currentColor" opacity="0.8"/>\n <rect x="43" y="47" width="25" height="8" rx="4" fill="currentColor" opacity="0.8"/>\n <circle cx="31" cy="67" r="6" fill="currentColor" opacity="0.6"/>\n <rect x="43" y="63" width="19" height="8" rx="4" fill="currentColor" opacity="0.6"/>\n</svg>',six_again:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — 6 Again.\n Three stacked cards — the restart, the set again — with the citron six on the\n front of the deck. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the stack uses currentColor (primary tone); the front card carries\n the icon-accent CSS variable (default #DFFF1A) with a currentColor rim, and\n the numeral is knocked out in currentColor. Accent-as-card rather than\n accent-as-numeral because the numeral is small: on themes where the accent\n sits near the icon colour (orange on white in green-light) an accent numeral\n washes out, while an accent card stays legible and its rim keeps the card\n readable when the accent sits near the chip colour instead.\n\n The numeral is laid out with geometry, not font metrics: a single-chunk\n <text> pinned with textLength at an explicit x and baseline y, because\n react-native-svg anchors each chunk itself and ignores text-anchor drift.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="32" y="8" width="60" height="60" rx="13" fill="currentColor" opacity="0.3"/>\n <rect x="24" y="16" width="60" height="60" rx="13" fill="currentColor" opacity="0.55"/>\n <rect x="16" y="24" width="60" height="60" rx="13" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4"/>\n <text x="35" y="68"\n font-family="Manrope, Poppins, sans-serif"\n font-size="40"\n font-weight="800"\n textLength="22"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">6</text>\n</svg>',unknown:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Unknown game fallback.\n Question mark glyph on a transparent background.\n\n Themable: the mark uses currentColor (primary tone) and the dot uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <path\n d="M 28 42 C 28 26 36 16 46 16 C 58 16 66 26 66 38 C 66 48 58 54 50 58 L 50 68"\n fill="none"\n stroke="currentColor"\n stroke-width="8"\n stroke-linecap="round"\n stroke-linejoin="round"\n />\n <circle cx="50" cy="82" r="5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>'},Ue={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",straightmirror:"mirror",doublemirror:"mirror_double",triplemirror:"mirror_triple",samegame:"same_game_multi",samegamemulti:"same_game_multi",sixagain:"six_again"},qe={safety_net:"safety_net",game_set:"game_set",pick_your_dividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",double_mirror:"mirror_double",triple_mirror:"mirror_triple",same_game_multi:"same_game_multi",six_again:"six_again"};function Ke(e){if(e.quick_pick_only)return"quickpick";const t=qe[e.rule?.trim().toLowerCase()??""];if(t)return t;const n=(e.game_name??"").toLowerCase().replace(/[^a-z0-9]+/g,"");return Ue[n]??"unknown"}function Ze(e){return`${Ye}${Ke(e)}`}function Xe(e){if(!function(e){return e.startsWith(Ye)}(e))return null;const t=e.slice(10);return Ve[t]??Ve.unknown}var Qe={text:"YES",tone:"yes"},Je={text:"NO",tone:"no"},$e=[{question:"Will the home side kick the first goal?",outcome:"yes"},{question:"Will the total go over 165 points?",outcome:"no"},{question:"Will the favourite lead at half time?",outcome:"yes"},{question:"Will either side kick five straight goals?",outcome:"yes"},{question:"Will the away side win the first quarter?",outcome:"no"},{question:"Will the top scorer kick three or more?",outcome:"yes"},{question:"Will the margin be under two goals?",outcome:"no"},{question:"Will there be a goal in the first five minutes?",outcome:"yes"}],_e=["zero","one","two","three","four","five","six","seven","eight"],et=[{title:"Select your picks",detail:"YES or NO on each call, from {min} up to {max}."},{title:"Continue to review",detail:"Lock in the picks you have made."},{title:"Review your slip",detail:"Add, remove, or change any pick."},{title:"Place your wager",detail:"Set your stake, check the payout, and you are on."}],tt=e=>[{title:`Choose your ${e}`,detail:"Pick how many legs you are taking on and your stake."},{title:"Make your calls",detail:"YES or NO on every leg of the card."},{title:"Check the slip",detail:"Your stake is locked from the setup — review every pick."},{title:"Place your entry",detail:"Confirm and you are on."}],nt={perfect_pick:{summary:["Perfect Pick is the multi you already know, with one big difference. You pick ",Qe," or ",Je," across your legs, every leg has to land, and one perfect card takes the prize."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},head_to_head:{summary:["Head to Head is win-or-lose calls only. Pick ",Qe," or ",Je," on each matchup, land every leg, and the card pays."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},total_points:{summary:["Total Points is all about the scoreboard. Call ",Qe," or ",Je," on each total, land every leg, and the card pays."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},quickpick:{summary:["QuickPick fills the card for you. We generate the ",Qe," and ",Je," calls, you set the stake, and a perfect card takes the prize."],steps:[{title:"Press to play",detail:"We generate a full card of calls for you."},{title:"Check the slip",detail:"See the picks you have been dealt."},{title:"Place your wager",detail:"Set your stake, check the payout, and you are on."}],demoPrompt:"See how a card settles — call {n} legs yourself, then run it."},safety_net:{summary:["Safety Net is a multi with a miss built in. Pick ",Qe," or ",Je," across your legs — get them all right for the top prize, and if one slips, the net catches it and the entry still pays."],steps:tt("net"),demoPrompt:"Try a {n}-leg card with a one-miss net — call every leg, then run it."},ladder:{summary:["Ladder pays as you climb. Pick ",Qe," or ",Je," on every leg — reach the first rung and you start winning, and every rung after that stacks another prize on top."],steps:tt("ladder"),demoPrompt:"Try a {n}-leg ladder — the climb starts at {n1} right."},game_set:{summary:["Game Set Bet is straight sets. Pick ",Qe," or ",Je," on every leg — each extra leg doubles the prize, and a clean card takes the lot."],steps:tt("ticket"),demoPrompt:"Try a quick {n}-leg ticket — call every leg, then run it."},pick_your_dividend:{summary:["Pick Your Dividend lets you choose the payout you are chasing. Pick ",Qe," or ",Je," on every leg — land them all and the entry pays the dividend you picked."],steps:tt("dividend"),demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},mirror:{summary:["Mirror pays both ways. Pick ",Qe," or ",Je," on every leg — get them all right, you win. Get them all wrong, you win the same. Anything in between is a split card and does not pay."],steps:tt("card"),demoPrompt:"Try a {n}-leg mirror — sweep it either way."},six_again:{summary:["6 Again is one six-leg card with boosts riding on it. Pick ",Qe," or ",Je," on all six calls — land the lot and the card pays. Golden Point doubles a winning card, and the Captain’s Challenge collects even when one call gets away."],steps:[{title:"Set your play",detail:"Choose your stake, then switch on the boosts you want."},{title:"Make your six calls",detail:"YES or NO on every call, {min} of them."},{title:"Check the slip",detail:"Your stake is locked from the setup — review every pick."},{title:"Place your entry",detail:"Confirm and you are on."}],demoPrompt:"Try a {n}-leg card — call every leg, then run it."},same_game_multi:{summary:["Same Game Multi keeps every leg inside one fixture. Pick ",Qe," or ",Je," across the game — land every leg and the card pays."],steps:et,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."}};function ot(e){if(!e)return null;const t=Ke(e),n=nt[t];if(!n)return null;const{min:o,max:r,demo:i}=function(e){const t=e.allowed_propositions?.filter(e=>e>0)??[],n=t.length>0?Math.min(...t):e.min_propositions??e.num_propositions??0,o=t.length>0?Math.max(...t):e.max_propositions??e.num_propositions??0;let r=3;return n>0&&(r=Math.max(r,n)),o>0&&(r=Math.min(r,o)),{min:n,max:o,demo:Math.min(Math.max(r,2),$e.length)}}(e),l=e=>e.replace(/\{min\}/g,String(o>0?o:2)).replace(/\{max\}/g,String(r>0?r:12));return{id:t,...n,steps:n.steps.map(e=>({...e,detail:l(e.detail)})),demoLegs:$e.slice(0,i),demoPrompt:l(n.demoPrompt).replace(/\{n1\}/g,_e[i-1]??String(i-1)).replace(/\{n\}/g,_e[i]??String(i))}}function rt(e,t,n=!0){const o=e.current;o&&("web"!==m.OS?o.scrollTo?.({x:t,y:0,animated:n}):"function"==typeof o.scroll?o.scroll({left:t}):"number"==typeof o.scrollLeft&&(o.scrollLeft=t))}function it(e,t){return{onMouseEnter:e,onMouseLeave:t}}function lt({theme:t,variant:n="primary",size:o="md",disabled:r,block:i,radius:l="md",onPress:a,onLongPress:c,style:s,children:d,accessibilityLabel:h}){const u=ae(t),g=t.colors,f={sm:{h:36,px:u.space.md,fs:u.fontSize.sm},md:{h:u.touchTarget.min,px:u.space.lg,fs:u.fontSize.md},lg:{h:52,px:u.space.xl,fs:u.fontSize.lg}},p={sm:u.radius.sm,md:u.radius.md,lg:u.radius.lg,pill:u.radius.pill},y={primary:{bg:g.buttonPrimary,bgPressed:g.buttonPrimaryHover,fg:g.buttonPrimaryText,border:g.buttonPrimary},secondary:{bg:g.buttonSecondary,bgPressed:g.buttonSecondaryHover,fg:g.buttonSecondaryText,border:g.border},ghost:{bg:"transparent",bgPressed:ne(g.text,u.isDark?.1:.06),fg:g.text,border:"transparent"},danger:{bg:g.error,bgPressed:ne(g.error,.85),fg:"#ffffff",border:g.error}}[n],[m,w]=e.useState(!1);/* @__PURE__ */
2
+ return W(b,{accessibilityRole:"button",accessibilityLabel:h,accessibilityState:{disabled:!!r},disabled:r,onPress:a,onLongPress:c,onHoverIn:()=>w(!0),onHoverOut:()=>w(!1),style:({pressed:e})=>[{minHeight:f[o].h,paddingHorizontal:f[o].px,borderRadius:p[l],backgroundColor:!e&&!m||r?y.bg:y.bgPressed,borderColor:y.border,borderWidth:1,alignSelf:i?"stretch":"flex-start",alignItems:"center",justifyContent:"center",flexDirection:"row",opacity:r?.5:1,transform:[{scale:e&&!r?.985:1}]},s],children:"string"==typeof d?/* @__PURE__ */W(S,{style:{color:y.fg,fontSize:f[o].fs,fontWeight:"500"},children:d}):d})}var at={xs:{paddingVertical:3,paddingHorizontal:10,fontSize:11},sm:{paddingVertical:6,paddingHorizontal:14,fontSize:13},md:{paddingVertical:8,paddingHorizontal:18,fontSize:14}};function ct(e,t,n,o,r,i){const l=ae(e),a=at[o];return{container:{paddingVertical:a.paddingVertical,paddingHorizontal:a.paddingHorizontal,borderRadius:l.radius.sm,alignItems:"center",justifyContent:"center",backgroundColor:t?n:"transparent",borderWidth:1,borderColor:t?"transparent":e.colors.border,opacity:r?.5:1,...i?{flex:1}:null},label:{fontSize:a.fontSize,fontWeight:"600",lineHeight:1.2*a.fontSize,color:t?"#ffffff":e.colors.text}}}function st({theme:e,value:t,onYes:n,onNo:o,size:r="md",stretch:i,disabled:l,yesLabel:a="Yes",noLabel:c="No",style:s}){const d=ct(e,"yes"===t,ue(e),r,l,i),h=ct(e,"no"===t,ge(e),r,l,i);/* @__PURE__ */
3
+ return T(z,{style:[{flexDirection:"row",gap:8,flexShrink:0},i?{alignSelf:"stretch"}:null,s],children:[/* @__PURE__ */W(b,{accessibilityRole:"button",accessibilityState:{selected:"yes"===t,disabled:!!l},disabled:l,onPress:l?void 0:n,style:d.container,children:/* @__PURE__ */W(S,{style:d.label,children:a})}),/* @__PURE__ */W(b,{accessibilityRole:"button",accessibilityState:{selected:"no"===t,disabled:!!l},disabled:l,onPress:l?void 0:o,style:h.container,children:/* @__PURE__ */W(S,{style:h.label,children:c})})]})}function dt({theme:e,value:t,size:n="md",style:o}){const r=ae(e),i="sm"===n?10:11;/* @__PURE__ */
4
+ return W(z,{style:[{alignSelf:"flex-start",flexDirection:"row",alignItems:"center",paddingVertical:"sm"===n?2:3,paddingHorizontal:"sm"===n?8:10,borderRadius:r.radius.sm,backgroundColor:"yes"===t?ue(e):ge(e)},o],children:/* @__PURE__ */W(S,{style:{fontSize:i,fontWeight:"700",letterSpacing:.04*i,textTransform:"uppercase",color:"#ffffff"},children:"yes"===t?"Yes":"No"})})}function ht({delay:t=0,style:n,children:o}){const{transform:r}=function(t=0){const n=e.useRef(new h.Value(0)).current;return e.useEffect(()=>{let e=!1;const o=o=>{e||(o?n.setValue(1):h.timing(n,{toValue:1,duration:500,delay:t,easing:g.bezier(.2,.8,.2,1),useNativeDriver:"web"!==m.OS}).start())},r=s.isReduceMotionEnabled?.();r&&"function"==typeof r.then?r.then(o).catch(()=>o(!1)):o(!1);const i=s.addEventListener?.("reduceMotionChanged",e=>{e&&n.setValue(1)});return()=>{e=!0,i?.remove?.()}},[t,n]),{opacity:n,transform:[{translateY:n.interpolate({inputRange:[0,1],outputRange:[14,0]})}]}}(t);/* @__PURE__ */
5
+ return W(h.View,{style:[n,{transform:r}],children:o})}var ut=/\b(YES|NO)\b/;function gt(e,t,n){return e.split(ut).map((e,o)=>"YES"===e||"NO"===e?/* @__PURE__ */W(dt,{theme:t,value:"YES"===e?"yes":"no",size:"sm"},`${n}-${o}`):/* @__PURE__ */W(S,{children:e},`${n}-${o}`))}function ft({segments:e,theme:t,bodyFont:n}){/* @__PURE__ */
6
+ return W(S,{style:[yt.summary,{color:t.colors.text,fontFamily:n}],children:e.map((e,n)=>"string"==typeof e?/* @__PURE__ */W(S,{children:gt(e,t,n)},n):/* @__PURE__ */W(dt,{theme:t,value:e.tone,size:"sm"},n))})}function pt({panel:e,theme:t,dividends:n,bodyFont:o,headingFont:r}){const i=t.colors,l=t.brand?.accent??i.primaryText,a=be(t),[s,d]=c("learn"),[h,u]=c(()=>e.demoLegs.map(()=>null)),[g,f]=c(!1),p=e.demoLegs.length,y=h.filter(e=>null!=e).length,m=y===p,b=e.demoLegs.filter((e,t)=>h[t]===e.outcome).length,w=function(e,t,n){const o=t===n,r=`${t} of ${n}`;switch(e){case"mirror":return o?{won:!0,message:`All ${n} right — that is the sweep, the card pays.`}:0===t?{won:!0,message:`All ${n} wrong — a full mirror sweep pays the same as perfect.`}:{won:!1,message:`${r} is a split card. Mirror pays all right or all wrong — nothing in between.`};case"ladder":return o?{won:!0,message:`Top rung — all ${n} right stacks every prize on the ladder into one payout.`}:t>=n-1?{won:!0,message:`${r} reaches a rung — it pays, and every extra leg right stacks the next prize on top.`}:{won:!1,message:`${r} does not reach the first rung — the climb starts at ${n-1} right.`};case"safety_net":return o?{won:!0,message:`Clean sweep — all ${n} right takes the full prize.`}:t===n-1?{won:!0,message:"One miss — the net catches it and the entry still pays."}:{won:!1,message:`${r} is more than the net holds — one miss is covered, two is not.`};case"six_again":return o?{won:!0,message:`All ${n} right — the card pays, and Golden Point doubles it.`}:t===n-1?{won:!1,message:`${r} — one call away. The Captain’s Challenge is the boost that collects on this card.`}:{won:!1,message:`${r} — every call has to land. Flip the misses and the card pays.`};case"game_set":return o?{won:!0,message:`Game, set, bet — all ${n} legs landed and the card pays.`}:{won:!1,message:`${r} — every leg has to land. Flip the misses and it is straight sets.`};case"pick_your_dividend":return o?{won:!0,message:`All ${n} right — the entry pays the dividend you picked.`}:{won:!1,message:`${r} — every leg has to land to collect your dividend.`};default:return o?{won:!0,message:`Perfect card — all ${n} legs landed, the prize is yours.`}:{won:!1,message:`${r} — one miss breaks a perfect card. Flip the misses and it pays.`}}}(e.id,b,p),x=(e,t)=>{g||u(n=>n.map((n,o)=>o===e?t:n))},k=g?"Settled":`${y} of ${p} called`,C=!g&&m,v=e=>[yt.segment,{backgroundColor:e?i.primary:"transparent"}],F=e=>[yt.segmentText,{color:e?i.primaryText:i.textMuted,fontFamily:r}];/* @__PURE__ */
8
7
  return T(z,{children:[
9
- /* @__PURE__ */T(z,{style:[mt.segments,{borderColor:r.border,backgroundColor:r.backgroundAlt}],children:[
10
- /* @__PURE__ */W(B,{onPress:()=>d("learn"),accessibilityRole:"tab",accessibilityState:{selected:"learn"===s},style:F("learn"===s),children:/* @__PURE__ */W(S,{style:v("learn"===s),children:"How it works"})}),
11
- /* @__PURE__ */W(B,{onPress:()=>d("try"),accessibilityRole:"tab",accessibilityState:{selected:"try"===s},style:F("try"===s),children:/* @__PURE__ */W(S,{style:v("try"===s),children:"Quick demo"})}),n?/* @__PURE__ */W(B,{onPress:()=>d("pay"),accessibilityRole:"tab",accessibilityState:{selected:"pay"===s},style:F("pay"===s),children:/* @__PURE__ */W(S,{style:v("pay"===s),children:"Dividends"})}):null]}),"pay"===s?n:null,"learn"===s&&/* @__PURE__ */T(z,{children:[
12
- /* @__PURE__ */W(pt,{segments:e.summary,theme:t,bodyFont:o}),
13
- /* @__PURE__ */T(z,{style:[mt.steps,mt.stepsSpaced],children:[/* @__PURE__ */W(z,{pointerEvents:"none",style:[mt.rail,{backgroundColor:ne(r.primary,.25)}]}),e.steps.map((e,n)=>/* @__PURE__ */T(z,{style:mt.step,children:[/* @__PURE__ */W(z,{style:[mt.stepTile,{backgroundColor:r.primary}],children:/* @__PURE__ */W(S,{style:[mt.stepTileText,{color:l,fontFamily:i}],children:n+1})}),/* @__PURE__ */T(z,{style:mt.stepText,children:[/* @__PURE__ */W(S,{style:[mt.stepTitle,{color:r.primary,fontFamily:i}],children:e.title}),/* @__PURE__ */W(S,{style:[mt.stepDetail,{color:r.textMuted,fontFamily:o}],children:ft(e.detail,t,n)})]})]},e.title))]}),
14
- /* @__PURE__ */W(B,{onPress:()=>d("try"),accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:[mt.tryLink,{color:r.primary,fontFamily:i}],children:"Try a quick demo →"})})]}),"try"===s&&/* @__PURE__ */T(z,{style:[mt.slip,mt.slipFlush,{borderColor:r.border,backgroundColor:a}],children:[
15
- /* @__PURE__ */W(z,{style:mt.slipHead,children:/* @__PURE__ */T(z,{style:mt.slipHeadRow,children:[/* @__PURE__ */W(S,{style:[mt.prompt,mt.promptGrow,{color:r.textMuted,fontFamily:o}],children:g?"Here is how it settled.":e.demoPrompt}),/* @__PURE__ */W(z,{style:[mt.counter,C?{borderColor:r.primary,backgroundColor:r.primary}:{borderColor:ne(r.border,.9),backgroundColor:"transparent"}],children:/* @__PURE__ */W(S,{style:[mt.counterText,{color:C?r.primaryText:r.textMuted,fontFamily:o}],children:k})})]})}),
16
- /* @__PURE__ */W(z,{style:mt.legs,children:e.demoLegs.map((e,n)=>{const i=h[n]===e.outcome;/* @__PURE__ */
17
- return T(z,{style:[mt.leg,n>0&&{borderTopWidth:1,borderTopColor:ne(r.border,.7)}],children:[/* @__PURE__ */T(z,{style:mt.legMain,children:[/* @__PURE__ */W(z,{style:[mt.pip,g?{backgroundColor:i?r.success:r.error}:{borderWidth:1.5,borderColor:h[n]?r.primary:r.border}],children:/* @__PURE__ */W(S,{style:[mt.pipText,{color:g?"#fff":h[n]?r.primary:r.textMuted}],children:g?i?"✓":"✗":n+1})}),/* @__PURE__ */W(z,{style:mt.legText,children:/* @__PURE__ */W(S,{style:[mt.legQuestion,{color:r.text,fontFamily:o}],children:e.question})})]}),g?/* @__PURE__ */W(ht,{theme:t,size:"sm",value:e.outcome}):/* @__PURE__ */W(dt,{theme:t,size:"sm",value:h[n],onYes:()=>x(n,"yes"),onNo:()=>x(n,"no")})]},e.question)})}),
18
- /* @__PURE__ */W(z,{style:[mt.perforation,{borderTopColor:ne(r.border,.9)}]}),
19
- /* @__PURE__ */W(z,{style:mt.slipFoot,children:g?/* @__PURE__ */T(z,{children:[/* @__PURE__ */T(z,{style:[mt.verdict,{backgroundColor:w.won?r.successBg:r.errorBg}],children:[/* @__PURE__ */W(z,{style:[mt.stamp,{borderColor:w.won?r.successText:r.errorText}],children:/* @__PURE__ */W(S,{style:[mt.stampText,{color:w.won?r.successText:r.errorText,fontFamily:i}],children:w.won?"Winner":"No win"})}),/* @__PURE__ */W(S,{style:[mt.verdictText,{color:w.won?r.successText:r.errorText,fontFamily:o}],children:w.message})]}),/* @__PURE__ */W(B,{onPress:()=>{u(e.demoLegs.map(()=>null)),f(!1)},accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:[mt.tryAgain,{color:r.textMuted,fontFamily:o}],children:"↺ Try again"})})]}):/* @__PURE__ */W(at,{theme:t,size:"sm",block:!0,disabled:!m,onPress:()=>f(!0),children:"Run the demo"})})]})]})}var mt=k.create({summary:{fontSize:15,lineHeight:23},segments:{flexDirection:"row",gap:2,borderWidth:1,borderRadius:10,padding:2,marginBottom:14},segment:{flex:1,borderRadius:8,paddingVertical:6,alignItems:"center"},segmentText:{fontSize:11,fontWeight:"800",textTransform:"uppercase",letterSpacing:1.1},tryLink:{marginTop:6,paddingLeft:50,fontSize:12.5,fontWeight:"700"},stepsSpaced:{marginTop:12},slipFlush:{marginTop:0},promptGrow:{flex:1,minWidth:0,marginTop:0},steps:{position:"relative"},rail:{position:"absolute",left:17,top:16,bottom:16,width:1},step:{justifyContent:"center",gap:2,paddingVertical:8,paddingLeft:50,minHeight:52},stepTile:{position:"absolute",left:0,top:"50%",marginTop:-18,width:36,height:36,borderRadius:10,alignItems:"center",justifyContent:"center"},stepTileText:{fontSize:16,fontWeight:"800"},stepText:{gap:2},stepTitle:{fontSize:14.5,fontWeight:"700",lineHeight:19},stepDetail:{fontSize:13,lineHeight:18},slip:{marginTop:16,borderWidth:1,borderRadius:12,overflow:"hidden"},slipHead:{paddingHorizontal:14,paddingTop:12},slipHeadRow:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:10},counter:{borderWidth:1,borderRadius:999,paddingHorizontal:8,paddingVertical:2},counterText:{fontSize:10,fontWeight:"800",textTransform:"uppercase",letterSpacing:1,fontVariant:["tabular-nums"]},prompt:{fontSize:12.5,marginTop:4},legs:{paddingHorizontal:14,marginTop:6},leg:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingVertical:10},legMain:{flexDirection:"row",alignItems:"flex-start",gap:10,flex:1,minWidth:0},pip:{marginTop:2,width:18,height:18,borderRadius:9,alignItems:"center",justifyContent:"center"},pipText:{fontSize:10,fontWeight:"800",lineHeight:13},legText:{flex:1,minWidth:0},legQuestion:{fontSize:13,fontWeight:"600",lineHeight:18},perforation:{marginHorizontal:14,borderTopWidth:1.5,borderStyle:"dashed"},slipFoot:{paddingHorizontal:14,paddingTop:12,paddingBottom:14},verdict:{flexDirection:"row",alignItems:"center",gap:12,borderRadius:8,paddingHorizontal:12,paddingVertical:10},stamp:{borderWidth:2,borderRadius:6,paddingHorizontal:6,paddingVertical:2,transform:[{rotate:"-3deg"}],flexShrink:0},stampText:{fontSize:10,fontWeight:"800",textTransform:"uppercase",letterSpacing:1.4},verdictText:{flex:1,fontSize:12.5,fontWeight:"600",lineHeight:17},tryAgain:{marginTop:8,fontSize:11.5,fontWeight:"700"}});function bt({text:e,colors:t}){const n=function(e){const t=[],n=/\*\*(.+?)\*\*/g;let o,i=0;for(;null!==(o=n.exec(e));)o.index>i&&t.push({text:e.slice(i,o.index),bold:!1}),t.push({text:o[1],bold:!0}),i=o.index+o[0].length;return i<e.length&&t.push({text:e.slice(i),bold:!1}),0===t.length&&t.push({text:e,bold:!1}),t}(e);/* @__PURE__ */
20
- return W(S,{children:n.map((e,n)=>/* @__PURE__ */W(S,{style:{fontWeight:e.bold?"700":"400",color:e.bold?t.text:t.textMuted},children:e.text},n))})}function wt({content:e,colors:t}){const n=$(e);let o=null;try{o=Y("react-native-webview").WebView}catch{o=null}return o?/* @__PURE__ */W(o,{source:{html:n},style:{minHeight:420,width:"100%"},originWhitelist:["*"],scrollEnabled:!0}):/* @__PURE__ */W(S,{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 xt({rows:e}){/* @__PURE__ */
8
+ /* @__PURE__ */T(z,{style:[yt.segments,{borderColor:i.border,backgroundColor:i.backgroundAlt}],children:[
9
+ /* @__PURE__ */W(B,{onPress:()=>d("learn"),accessibilityRole:"tab",accessibilityState:{selected:"learn"===s},style:v("learn"===s),children:/* @__PURE__ */W(S,{style:F("learn"===s),children:"How it works"})}),
10
+ /* @__PURE__ */W(B,{onPress:()=>d("try"),accessibilityRole:"tab",accessibilityState:{selected:"try"===s},style:v("try"===s),children:/* @__PURE__ */W(S,{style:F("try"===s),children:"Quick demo"})}),n?/* @__PURE__ */W(B,{onPress:()=>d("pay"),accessibilityRole:"tab",accessibilityState:{selected:"pay"===s},style:v("pay"===s),children:/* @__PURE__ */W(S,{style:F("pay"===s),children:"Dividends"})}):null]}),"pay"===s?n:null,"learn"===s&&/* @__PURE__ */T(z,{children:[
11
+ /* @__PURE__ */W(ft,{segments:e.summary,theme:t,bodyFont:o}),
12
+ /* @__PURE__ */T(z,{style:[yt.steps,yt.stepsSpaced],children:[/* @__PURE__ */W(z,{pointerEvents:"none",style:[yt.rail,{backgroundColor:ne(i.primary,.25)}]}),e.steps.map((e,n)=>/* @__PURE__ */T(z,{style:yt.step,children:[/* @__PURE__ */W(z,{style:[yt.stepTile,{backgroundColor:i.primary}],children:/* @__PURE__ */W(S,{style:[yt.stepTileText,{color:l,fontFamily:r}],children:n+1})}),/* @__PURE__ */T(z,{style:yt.stepText,children:[/* @__PURE__ */W(S,{style:[yt.stepTitle,{color:i.primary,fontFamily:r}],children:e.title}),/* @__PURE__ */W(S,{style:[yt.stepDetail,{color:i.textMuted,fontFamily:o}],children:gt(e.detail,t,n)})]})]},e.title))]}),
13
+ /* @__PURE__ */W(B,{onPress:()=>d("try"),accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:[yt.tryLink,{color:i.primary,fontFamily:r}],children:"Try a quick demo →"})})]}),"try"===s&&/* @__PURE__ */T(z,{style:[yt.slip,yt.slipFlush,{borderColor:i.border,backgroundColor:a}],children:[
14
+ /* @__PURE__ */W(z,{style:yt.slipHead,children:/* @__PURE__ */T(z,{style:yt.slipHeadRow,children:[/* @__PURE__ */W(S,{style:[yt.prompt,yt.promptGrow,{color:i.textMuted,fontFamily:o}],children:g?"Here is how it settled.":e.demoPrompt}),/* @__PURE__ */W(z,{style:[yt.counter,C?{borderColor:i.primary,backgroundColor:i.primary}:{borderColor:ne(i.border,.9),backgroundColor:"transparent"}],children:/* @__PURE__ */W(S,{style:[yt.counterText,{color:C?i.primaryText:i.textMuted,fontFamily:o}],children:k})})]})}),
15
+ /* @__PURE__ */W(z,{style:yt.legs,children:e.demoLegs.map((e,n)=>{const r=h[n]===e.outcome;/* @__PURE__ */
16
+ return T(z,{style:[yt.leg,n>0&&{borderTopWidth:1,borderTopColor:ne(i.border,.7)}],children:[/* @__PURE__ */T(z,{style:yt.legMain,children:[/* @__PURE__ */W(z,{style:[yt.pip,g?{backgroundColor:r?i.success:i.error}:{borderWidth:1.5,borderColor:h[n]?i.primary:i.border}],children:/* @__PURE__ */W(S,{style:[yt.pipText,{color:g?"#fff":h[n]?i.primary:i.textMuted}],children:g?r?"✓":"✗":n+1})}),/* @__PURE__ */W(z,{style:yt.legText,children:/* @__PURE__ */W(S,{style:[yt.legQuestion,{color:i.text,fontFamily:o}],children:e.question})})]}),g?/* @__PURE__ */W(dt,{theme:t,size:"sm",value:e.outcome}):/* @__PURE__ */W(st,{theme:t,size:"sm",value:h[n],onYes:()=>x(n,"yes"),onNo:()=>x(n,"no")})]},e.question)})}),
17
+ /* @__PURE__ */W(z,{style:[yt.perforation,{borderTopColor:ne(i.border,.9)}]}),
18
+ /* @__PURE__ */W(z,{style:yt.slipFoot,children:g?/* @__PURE__ */T(z,{children:[/* @__PURE__ */T(z,{style:[yt.verdict,{backgroundColor:w.won?i.successBg:i.errorBg}],children:[/* @__PURE__ */W(z,{style:[yt.stamp,{borderColor:w.won?i.successText:i.errorText}],children:/* @__PURE__ */W(S,{style:[yt.stampText,{color:w.won?i.successText:i.errorText,fontFamily:r}],children:w.won?"Winner":"No win"})}),/* @__PURE__ */W(S,{style:[yt.verdictText,{color:w.won?i.successText:i.errorText,fontFamily:o}],children:w.message})]}),/* @__PURE__ */W(B,{onPress:()=>{u(e.demoLegs.map(()=>null)),f(!1)},accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:[yt.tryAgain,{color:i.textMuted,fontFamily:o}],children:"↺ Try again"})})]}):/* @__PURE__ */W(lt,{theme:t,size:"sm",block:!0,disabled:!m,onPress:()=>f(!0),children:"Run the demo"})})]})]})}var yt=k.create({summary:{fontSize:15,lineHeight:23},segments:{flexDirection:"row",gap:2,borderWidth:1,borderRadius:10,padding:2,marginBottom:14},segment:{flex:1,borderRadius:8,paddingVertical:6,alignItems:"center"},segmentText:{fontSize:11,fontWeight:"800",textTransform:"uppercase",letterSpacing:1.1},tryLink:{marginTop:6,paddingLeft:50,fontSize:12.5,fontWeight:"700"},stepsSpaced:{marginTop:12},slipFlush:{marginTop:0},promptGrow:{flex:1,minWidth:0,marginTop:0},steps:{position:"relative"},rail:{position:"absolute",left:17,top:16,bottom:16,width:1},step:{justifyContent:"center",gap:2,paddingVertical:8,paddingLeft:50,minHeight:52},stepTile:{position:"absolute",left:0,top:"50%",marginTop:-18,width:36,height:36,borderRadius:10,alignItems:"center",justifyContent:"center"},stepTileText:{fontSize:16,fontWeight:"800"},stepText:{gap:2},stepTitle:{fontSize:14.5,fontWeight:"700",lineHeight:19},stepDetail:{fontSize:13,lineHeight:18},slip:{marginTop:16,borderWidth:1,borderRadius:12,overflow:"hidden"},slipHead:{paddingHorizontal:14,paddingTop:12},slipHeadRow:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:10},counter:{borderWidth:1,borderRadius:999,paddingHorizontal:8,paddingVertical:2},counterText:{fontSize:10,fontWeight:"800",textTransform:"uppercase",letterSpacing:1,fontVariant:["tabular-nums"]},prompt:{fontSize:12.5,marginTop:4},legs:{paddingHorizontal:14,marginTop:6},leg:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingVertical:10},legMain:{flexDirection:"row",alignItems:"flex-start",gap:10,flex:1,minWidth:0},pip:{marginTop:2,width:18,height:18,borderRadius:9,alignItems:"center",justifyContent:"center"},pipText:{fontSize:10,fontWeight:"800",lineHeight:13},legText:{flex:1,minWidth:0},legQuestion:{fontSize:13,fontWeight:"600",lineHeight:18},perforation:{marginHorizontal:14,borderTopWidth:1.5,borderStyle:"dashed"},slipFoot:{paddingHorizontal:14,paddingTop:12,paddingBottom:14},verdict:{flexDirection:"row",alignItems:"center",gap:12,borderRadius:8,paddingHorizontal:12,paddingVertical:10},stamp:{borderWidth:2,borderRadius:6,paddingHorizontal:6,paddingVertical:2,transform:[{rotate:"-3deg"}],flexShrink:0},stampText:{fontSize:10,fontWeight:"800",textTransform:"uppercase",letterSpacing:1.4},verdictText:{flex:1,fontSize:12.5,fontWeight:"600",lineHeight:17},tryAgain:{marginTop:8,fontSize:11.5,fontWeight:"700"}});function mt({text:e,colors:t}){const n=function(e){const t=[],n=/\*\*(.+?)\*\*/g;let o,r=0;for(;null!==(o=n.exec(e));)o.index>r&&t.push({text:e.slice(r,o.index),bold:!1}),t.push({text:o[1],bold:!0}),r=o.index+o[0].length;return r<e.length&&t.push({text:e.slice(r),bold:!1}),0===t.length&&t.push({text:e,bold:!1}),t}(e);/* @__PURE__ */
19
+ return W(S,{children:n.map((e,n)=>/* @__PURE__ */W(S,{style:{fontWeight:e.bold?"700":"400",color:e.bold?t.text:t.textMuted},children:e.text},n))})}function bt({content:e,colors:t}){const n=$(e);let o=null;try{o=Y("react-native-webview").WebView}catch{o=null}return o?/* @__PURE__ */W(o,{source:{html:n},style:{minHeight:420,width:"100%"},originWhitelist:["*"],scrollEnabled:!0}):/* @__PURE__ */W(S,{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 wt({rows:e}){/* @__PURE__ */
21
20
  return W(z,{style:{gap:0,marginVertical:6},children:e.map((e,t)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",borderWidth:1,borderColor:V,borderTopWidth:0===t?1:0},children:[
22
21
  /* @__PURE__ */W(z,{style:{flex:2.2,backgroundColor:"#F9FAFB",paddingVertical:11,paddingHorizontal:14,borderRightWidth:1,borderRightColor:V},children:/* @__PURE__ */W(S,{style:{fontSize:15,color:"#1A1A1A"},children:e.question})}),
23
22
  /* @__PURE__ */W(z,{style:{flex:.65,backgroundColor:"#DCFCE7",paddingVertical:11,paddingHorizontal:8,alignItems:"center",justifyContent:"center",borderRightWidth:1,borderRightColor:V},children:/* @__PURE__ */W(S,{style:{fontSize:15,fontWeight:"700",color:"#166534"},children:"YES"})}),
24
- /* @__PURE__ */W(z,{style:{flex:.65,backgroundColor:"#FEE2E2",paddingVertical:11,paddingHorizontal:8,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(S,{style:{fontSize:15,fontWeight:"700",color:"#991B1B"},children:"NO"})})]},t))})}function kt({content:e,colors:t,bodyFont:n,headingFont:o}){const i=function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=[],i=[];const r=()=>{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=()=>{i.length>0&&(n.push({type:"list",items:[...i]}),i=[])};for(const a of t){const e=a.trim();if(!e){l(),r();continue}const t=e.match(_);if(t){l(),r(),n.push({type:"heading",level:Math.min(t[1].length,3),text:t[2].trim()});continue}if(te.test(e)){l(),r(),n.push({type:"hr"});continue}const c=e.match(ee);c?(r(),i.push(c[1].trim())):(l(),o.push(e))}return l(),r(),n}(e);/* @__PURE__ */
25
- return W(z,{style:{gap:14},children:i.map((e,i)=>"heading"===e.type?/* @__PURE__ */W(S,{style:{fontSize:{1:20,2:18,3:16}[e.level],fontWeight:"800",color:t.text,textTransform:1===e.level?"uppercase":"none",fontFamily:o??n},children:/* @__PURE__ */W(bt,{text:e.text,colors:t})},i):"paragraph"===e.type?/* @__PURE__ */W(S,{style:{fontSize:14,lineHeight:22,color:t.textMuted,fontFamily:n},children:/* @__PURE__ */W(bt,{text:e.text,colors:t})},i):"list"===e.type?/* @__PURE__ */W(z,{style:{gap:6,paddingLeft:8},children:e.items.map((e,o)=>/* @__PURE__ */T(S,{style:{fontSize:14,lineHeight:22,color:t.textMuted,fontFamily:n},children:["• ",/* @__PURE__ */W(bt,{text:e,colors:t})]},o))},i):"propsTable"===e.type?/* @__PURE__ */W(xt,{rows:e.rows},i):/* @__PURE__ */W(z,{style:{height:1,backgroundColor:t.border,marginVertical:4}},i))})}function St({content:e,panel:t,theme:n,extra:o,title:i="How to Play",label:r="How to Play",variant:l="pill",colors:a,bodyFont:s,headingFont:d}){const[h,u]=c(!1),{width:g}=F(),f=g>=640,y=!(!t||!n);if(!e?.trim()&&!y&&!o)return null;const m=!y&&!!e&&function(e){const t=e.trim();if(!t)return!1;if(J(t))return!0;const n=Z(t);return!!X.test(n)||Q.test(t)}(e);/* @__PURE__ */
26
- return T(v,{children:["icon"===l?/* @__PURE__ */W(B,{onPress:()=>u(!0),style:[Ct.iconButton,{borderColor:a.primary,backgroundColor:`${a.primary}14`}],accessibilityRole:"button",accessibilityLabel:r,children:/* @__PURE__ */W(S,{style:[Ct.iconButtonText,{color:a.primary,fontFamily:s}],children:"?"})}):/* @__PURE__ */T(B,{onPress:()=>u(!0),style:[Ct.button,{borderColor:a.primary,backgroundColor:`${a.primary}10`}],accessibilityRole:"button",accessibilityLabel:r,children:[/* @__PURE__ */W(S,{style:[Ct.buttonText,{color:a.primary,fontFamily:s}],children:r}),/* @__PURE__ */W(S,{style:[Ct.buttonText,{color:a.primary,fontFamily:s}],children:"?"})]}),/* @__PURE__ */W(p,{visible:h,animationType:"none",transparent:!0,onRequestClose:()=>u(!1),children:/* @__PURE__ */T(z,{style:[Ct.overlay,f?{justifyContent:"center",alignItems:"center",padding:16}:{justifyContent:"flex-end"}],children:[/* @__PURE__ */W(b,{style:k.absoluteFill,onPress:()=>u(!1)}),/* @__PURE__ */T(z,{style:[Ct.sheet,f?{maxWidth:672,maxHeight:"85%",borderRadius:16}:{maxHeight:"88%",borderTopLeftRadius:16,borderTopRightRadius:16},{backgroundColor:a.background,borderColor:a.border}],children:[
27
- /* @__PURE__ */W(z,{style:[Ct.header,{paddingHorizontal:f?24:16,borderBottomColor:a.border,backgroundColor:a.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[Ct.title,{color:a.text,fontFamily:d??s}],children:i})}),
28
- /* @__PURE__ */W(x,{contentContainerStyle:m?void 0:{paddingHorizontal:f?24:16,paddingVertical:20},children:y?/* @__PURE__ */W(yt,{panel:t,theme:n,dividends:o,bodyFont:s,headingFont:d}):/* @__PURE__ */T(v,{children:[m?/* @__PURE__ */W(wt,{content:e,colors:a}):/* @__PURE__ */W(kt,{content:e??"",colors:a,bodyFont:s,headingFont:d}),o?/* @__PURE__ */W(z,{style:m?{paddingHorizontal:f?24:16,paddingBottom:20}:{marginTop:16},children:o}):null]})}),
29
- /* @__PURE__ */W(w,{style:[Ct.footer,{borderTopColor:a.border,backgroundColor:a.backgroundAlt}],children:/* @__PURE__ */W(z,{style:{paddingVertical:16,paddingHorizontal:f?24:16},children:/* @__PURE__ */W(b,{onPress:()=>u(!1),style:({pressed:e,hovered:t})=>[Ct.doneButton,{alignSelf:"stretch",alignItems:"center",backgroundColor:a.primary,opacity:e?.88:t?.92:1,transform:[{scale:e?.99:1}]}],children:/* @__PURE__ */W(S,{style:[Ct.doneText,{color:a.primaryText,fontFamily:s}],children:"Got it"})})})})]})]})})]})}var Ct=k.create({button:{alignSelf:"flex-start",flexDirection:"row",alignItems:"center",gap:6,borderWidth:1,borderRadius:999,paddingHorizontal:12,paddingVertical:6},buttonText:{fontSize:12,fontWeight:"600"},iconButton:{width:21,height:21,borderRadius:11,borderWidth:1,alignItems:"center",justifyContent:"center",flexShrink:0},iconButtonText:{fontSize:12,fontWeight:"800",lineHeight:15},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:{paddingTop:12,paddingBottom:16,borderBottomWidth:1},title:{fontSize:18,fontWeight:"700"},footer:{borderTopWidth:1},doneButton:{borderRadius:999,paddingVertical:14,paddingHorizontal:20},doneText:{fontSize:14,fontWeight:"800",letterSpacing:1.1,textTransform:"uppercase"}});function Bt({category:e,size:t=14,color:n="currentColor"}){const o=n,i=2.25;switch(e){case"casino":/* @__PURE__ */return T(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[
23
+ /* @__PURE__ */W(z,{style:{flex:.65,backgroundColor:"#FEE2E2",paddingVertical:11,paddingHorizontal:8,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(S,{style:{fontSize:15,fontWeight:"700",color:"#991B1B"},children:"NO"})})]},t))})}function xt({content:e,colors:t,bodyFont:n,headingFont:o}){const r=function(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(_);if(t){l(),i(),n.push({type:"heading",level:Math.min(t[1].length,3),text:t[2].trim()});continue}if(te.test(e)){l(),i(),n.push({type:"hr"});continue}const c=e.match(ee);c?(i(),r.push(c[1].trim())):(l(),o.push(e))}return l(),i(),n}(e);/* @__PURE__ */
24
+ return W(z,{style:{gap:14},children:r.map((e,r)=>"heading"===e.type?/* @__PURE__ */W(S,{style:{fontSize:{1:20,2:18,3:16}[e.level],fontWeight:"800",color:t.text,textTransform:1===e.level?"uppercase":"none",fontFamily:o??n},children:/* @__PURE__ */W(mt,{text:e.text,colors:t})},r):"paragraph"===e.type?/* @__PURE__ */W(S,{style:{fontSize:14,lineHeight:22,color:t.textMuted,fontFamily:n},children:/* @__PURE__ */W(mt,{text:e.text,colors:t})},r):"list"===e.type?/* @__PURE__ */W(z,{style:{gap:6,paddingLeft:8},children:e.items.map((e,o)=>/* @__PURE__ */T(S,{style:{fontSize:14,lineHeight:22,color:t.textMuted,fontFamily:n},children:["• ",/* @__PURE__ */W(mt,{text:e,colors:t})]},o))},r):"propsTable"===e.type?/* @__PURE__ */W(wt,{rows:e.rows},r):/* @__PURE__ */W(z,{style:{height:1,backgroundColor:t.border,marginVertical:4}},r))})}function kt({content:e,panel:t,theme:n,extra:o,title:r="How to Play",label:i="How to Play",variant:l="pill",colors:a,bodyFont:s,headingFont:d}){const[h,u]=c(!1),{width:g}=v(),f=g>=640,y=!(!t||!n);if(!e?.trim()&&!y&&!o)return null;const m=!y&&!!e&&function(e){const t=e.trim();if(!t)return!1;if(J(t))return!0;const n=Z(t);return!!X.test(n)||Q.test(t)}(e);/* @__PURE__ */
25
+ return T(F,{children:["icon"===l?/* @__PURE__ */W(B,{onPress:()=>u(!0),style:[St.iconButton,{borderColor:a.primary,backgroundColor:`${a.primary}14`}],accessibilityRole:"button",accessibilityLabel:i,children:/* @__PURE__ */W(S,{style:[St.iconButtonText,{color:a.primary,fontFamily:s}],children:"?"})}):/* @__PURE__ */T(B,{onPress:()=>u(!0),style:[St.button,{borderColor:a.primary,backgroundColor:`${a.primary}10`}],accessibilityRole:"button",accessibilityLabel:i,children:[/* @__PURE__ */W(S,{style:[St.buttonText,{color:a.primary,fontFamily:s}],children:i}),/* @__PURE__ */W(S,{style:[St.buttonText,{color:a.primary,fontFamily:s}],children:"?"})]}),/* @__PURE__ */W(p,{visible:h,animationType:"none",transparent:!0,onRequestClose:()=>u(!1),children:/* @__PURE__ */T(z,{style:[St.overlay,f?{justifyContent:"center",alignItems:"center",padding:16}:{justifyContent:"flex-end"}],children:[/* @__PURE__ */W(b,{style:k.absoluteFill,onPress:()=>u(!1)}),/* @__PURE__ */T(z,{style:[St.sheet,f?{maxWidth:672,maxHeight:"85%",borderRadius:16}:{maxHeight:"88%",borderTopLeftRadius:16,borderTopRightRadius:16},{backgroundColor:a.background,borderColor:a.border}],children:[
26
+ /* @__PURE__ */W(z,{style:[St.header,{paddingHorizontal:f?24:16,borderBottomColor:a.border,backgroundColor:a.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[St.title,{color:a.text,fontFamily:d??s}],children:r})}),
27
+ /* @__PURE__ */W(x,{contentContainerStyle:m?void 0:{paddingHorizontal:f?24:16,paddingVertical:20},children:y?/* @__PURE__ */W(pt,{panel:t,theme:n,dividends:o,bodyFont:s,headingFont:d}):/* @__PURE__ */T(F,{children:[m?/* @__PURE__ */W(bt,{content:e,colors:a}):/* @__PURE__ */W(xt,{content:e??"",colors:a,bodyFont:s,headingFont:d}),o?/* @__PURE__ */W(z,{style:m?{paddingHorizontal:f?24:16,paddingBottom:20}:{marginTop:16},children:o}):null]})}),
28
+ /* @__PURE__ */W(w,{style:[St.footer,{borderTopColor:a.border,backgroundColor:a.backgroundAlt}],children:/* @__PURE__ */W(z,{style:{paddingVertical:16,paddingHorizontal:f?24:16},children:/* @__PURE__ */W(b,{onPress:()=>u(!1),style:({pressed:e,hovered:t})=>[St.doneButton,{alignSelf:"stretch",alignItems:"center",backgroundColor:a.primary,opacity:e?.88:t?.92:1,transform:[{scale:e?.99:1}]}],children:/* @__PURE__ */W(S,{style:[St.doneText,{color:a.primaryText,fontFamily:s}],children:"Got it"})})})})]})]})})]})}var St=k.create({button:{alignSelf:"flex-start",flexDirection:"row",alignItems:"center",gap:6,borderWidth:1,borderRadius:999,paddingHorizontal:12,paddingVertical:6},buttonText:{fontSize:12,fontWeight:"600"},iconButton:{width:21,height:21,borderRadius:11,borderWidth:1,alignItems:"center",justifyContent:"center",flexShrink:0},iconButtonText:{fontSize:12,fontWeight:"800",lineHeight:15},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:{paddingTop:12,paddingBottom:16,borderBottomWidth:1},title:{fontSize:18,fontWeight:"700"},footer:{borderTopWidth:1},doneButton:{borderRadius:999,paddingVertical:14,paddingHorizontal:20},doneText:{fontSize:14,fontWeight:"800",letterSpacing:1.1,textTransform:"uppercase"}});function Ct({category:e,size:t=14,color:n="currentColor"}){const o=n,r=2.25;switch(e){case"casino":/* @__PURE__ */return T(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[
30
29
  /* @__PURE__ */W(H,{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}),
31
30
  /* @__PURE__ */W(H,{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}),
32
- /* @__PURE__ */W(H,{d:"M19.08 5.61a1 1 0 0 1 1.31 -.53c.257 .108 .505 .21 .769 .314a2 2 0 0 1 1.114 2.479l-.056 .146l-2.298 5.374a1 1 0 0 1 -1.878 -.676l.04 -.11l2.296 -5.371l-.366 -.148l-.402 -.167a1 1 0 0 1 -.53 -1.312z",fill:n})]});case"racing":/* @__PURE__ */return T(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[/* @__PURE__ */W(H,{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:i,strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */W(H,{d:"M22 14v-2a3 3 0 0 0 -3 -3",stroke:o,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"})]});case"women":/* @__PURE__ */return T(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[
33
- /* @__PURE__ */W(H,{d:"M7 9a5 5 0 1 0 10 0a5 5 0 1 0 -10 0",stroke:o,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),
34
- /* @__PURE__ */W(H,{d:"M12 14v7",stroke:o,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),
35
- /* @__PURE__ */W(H,{d:"M9 18h6",stroke:o,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"})]});default:/* @__PURE__ */return T(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[
36
- /* @__PURE__ */W(H,{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",stroke:o,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),
37
- /* @__PURE__ */W(H,{d:"M12 7l4.76 3.45l-1.76 5.55h-6l-1.76 -5.55l4.76 -3.45",stroke:o,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"}),
38
- /* @__PURE__ */W(H,{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:i,strokeLinecap:"round",strokeLinejoin:"round"})]})}}function zt({size:e=20,color:t="currentColor"}){/* @__PURE__ */
39
- return W(A,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function Ft({size:e=20,color:t="currentColor"}){/* @__PURE__ */
31
+ /* @__PURE__ */W(H,{d:"M19.08 5.61a1 1 0 0 1 1.31 -.53c.257 .108 .505 .21 .769 .314a2 2 0 0 1 1.114 2.479l-.056 .146l-2.298 5.374a1 1 0 0 1 -1.878 -.676l.04 -.11l2.296 -5.371l-.366 -.148l-.402 -.167a1 1 0 0 1 -.53 -1.312z",fill:n})]});case"racing":/* @__PURE__ */return T(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[/* @__PURE__ */W(H,{d:"M7 10l-.85 8.507a1.357 1.357 0 0 0 1.35 1.493h.146a2 2 0 0 0 1.857 -1.257l.994 -2.486a2 2 0 0 1 1.857 -1.257h1.292a2 2 0 0 1 1.857 1.257l.994 2.486a2 2 0 0 0 1.857 1.257h.146a1.37 1.37 0 0 0 1.364 -1.494l-.864 -9.506h-8c0 -3 -3 -5 -6 -5l-3 6l2 2l3 -2",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */W(H,{d:"M22 14v-2a3 3 0 0 0 -3 -3",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]});case"women":/* @__PURE__ */return T(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[
32
+ /* @__PURE__ */W(H,{d:"M7 9a5 5 0 1 0 10 0a5 5 0 1 0 -10 0",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),
33
+ /* @__PURE__ */W(H,{d:"M12 14v7",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),
34
+ /* @__PURE__ */W(H,{d:"M9 18h6",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]});default:/* @__PURE__ */return T(A,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[
35
+ /* @__PURE__ */W(H,{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),
36
+ /* @__PURE__ */W(H,{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"}),
37
+ /* @__PURE__ */W(H,{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 Bt({size:e=20,color:t="currentColor"}){/* @__PURE__ */
38
+ return W(A,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function zt({size:e=20,color:t="currentColor"}){/* @__PURE__ */
40
39
  return T(A,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[/* @__PURE__ */W(H,{d:"M5 11h14a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2z",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */W(H,{d:"M8 11V7a4 4 0 1 1 8 0v4",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})]})}function vt({size:e=20,color:t="currentColor"}){/* @__PURE__ */
41
- return W(A,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M21 4H3l7.2 8.5V19l3.6 2v-8.5L21 4z",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function Wt({label:e,category:t,icon:n,theme:o,disabled:i=!1}){const r=o.colors,l=Ge(o),{width:a}=F(),c=a>=480?20:a>=400?18:16,s=i?r.textMuted:r.textAlt??r.text,d=i?r.border:o.brand?.chip??r.primary,h=i?r.textMuted:o.brand?.icon??r.primaryText??r.buttonPrimaryText;/* @__PURE__ */
42
- return T(z,{style:[Tt.row,{gap:.25*c}],children:[
43
- /* @__PURE__ */T(S,{accessibilityLabel:"YESNO",style:{fontSize:c,lineHeight:1.15*c,letterSpacing:-1,color:s,fontFamily:l},children:[/* @__PURE__ */W(S,{style:Tt.yes,children:"YES"}),/* @__PURE__ */W(S,{style:Tt.no,children:"NO"})]}),
44
- /* @__PURE__ */W(z,{accessible:!0,accessibilityRole:"image",accessibilityLabel:e,style:[Tt.pill,{width:1.6*c,height:.85*c,borderRadius:.425*c,backgroundColor:d,transform:[{translateY:.02*-c}]}],children:n??/* @__PURE__ */W(Bt,{category:t,size:.6*c,color:h})}),
45
- /* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"flex-start",flexShrink:1,minWidth:0},children:[/* @__PURE__ */W(S,{style:{fontWeight:"500",fontSize:c,lineHeight:1.15*c,flexShrink:1,minWidth:0,color:s,fontFamily:l,includeFontPadding:!1},children:e}),/* @__PURE__ */W(S,{style:{fontSize:.3*c,lineHeight:.3*c,fontWeight:"600",marginLeft:.06*c,color:s,fontFamily:l,includeFontPadding:!1},children:"TM"})]})]})}var Tt=k.create({row:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",maxWidth:"100%"},yes:{fontWeight:"900"},no:{fontWeight:"300"},pill:{alignItems:"center",justifyContent:"center",flexShrink:0}});function At({size:e=20,color:t="currentColor",filled:n=!1}){/* @__PURE__ */
46
- return W(A,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M12 3.6l2.6 5.28 5.83.85-4.22 4.11.997 5.8L12 16.9l-5.2 2.74.99-5.8L3.57 9.73l5.83-.85L12 3.6z",fill:n?t:"none",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function Rt({theme:e,contentContainerStyle:t,style:n,children:o}){const i=e.colors,r=a(null),l=a(0),s=a(0),d=a(0),[h,u]=c(!1),[g,f]=c(!1),p=()=>{const e=d.current-s.current;u(l.current>2),f(l.current<e-2)},y=e=>{const t=Math.max(0,l.current+e*Math.round(.7*s.current));it(r,t)},m=i.background??"#fff";/* @__PURE__ */
40
+ return W(A,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M21 4H3l7.2 8.5V19l3.6 2v-8.5L21 4z",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function Ft({label:e,category:t,icon:n,theme:o,disabled:r=!1}){const i=o.colors,l=Ge(o),{width:a}=v(),c=a>=480?20:a>=400?18:16,s=r?i.textMuted:i.textAlt??i.text,d=r?i.border:o.brand?.chip??i.primary,h=r?i.textMuted:o.brand?.icon??i.primaryText??i.buttonPrimaryText;/* @__PURE__ */
41
+ return T(z,{style:[Wt.row,{gap:.25*c}],children:[
42
+ /* @__PURE__ */T(S,{accessibilityLabel:"YESNO",style:{fontSize:c,lineHeight:1.15*c,letterSpacing:-1,color:s,fontFamily:l},children:[/* @__PURE__ */W(S,{style:Wt.yes,children:"YES"}),/* @__PURE__ */W(S,{style:Wt.no,children:"NO"})]}),
43
+ /* @__PURE__ */W(z,{accessible:!0,accessibilityRole:"image",accessibilityLabel:e,style:[Wt.pill,{width:1.6*c,height:.85*c,borderRadius:.425*c,backgroundColor:d,transform:[{translateY:.02*-c}]}],children:n??/* @__PURE__ */W(Ct,{category:t,size:.6*c,color:h})}),
44
+ /* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"flex-start",flexShrink:1,minWidth:0},children:[/* @__PURE__ */W(S,{style:{fontWeight:"500",fontSize:c,lineHeight:1.15*c,flexShrink:1,minWidth:0,color:s,fontFamily:l,includeFontPadding:!1},children:e}),/* @__PURE__ */W(S,{style:{fontSize:.3*c,lineHeight:.3*c,fontWeight:"600",marginLeft:.06*c,color:s,fontFamily:l,includeFontPadding:!1},children:"TM"})]})]})}var Wt=k.create({row:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",maxWidth:"100%"},yes:{fontWeight:"900"},no:{fontWeight:"300"},pill:{alignItems:"center",justifyContent:"center",flexShrink:0}});function Tt({size:e=20,color:t="currentColor",filled:n=!1}){/* @__PURE__ */
45
+ return W(A,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M12 3.6l2.6 5.28 5.83.85-4.22 4.11.997 5.8L12 16.9l-5.2 2.74.99-5.8L3.57 9.73l5.83-.85L12 3.6z",fill:n?t:"none",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function At({theme:e,contentContainerStyle:t,style:n,children:o}){const r=e.colors,i=a(null),l=a(0),s=a(0),d=a(0),[h,u]=c(!1),[g,f]=c(!1),p=()=>{const e=d.current-s.current;u(l.current>2),f(l.current<e-2)},y=e=>{const t=Math.max(0,l.current+e*Math.round(.7*s.current));rt(i,t)},m=r.background??"#fff";/* @__PURE__ */
47
46
  return T(z,{style:[Lt.wrap,n],children:[
48
- /* @__PURE__ */W(x,{ref:r,horizontal:!0,showsHorizontalScrollIndicator:!1,onScroll:e=>{l.current=e.nativeEvent.contentOffset.x,p()},onLayout:e=>{s.current=e.nativeEvent.layout.width,p()},onContentSizeChange:e=>{d.current=e,p()},scrollEventThrottle:32,contentContainerStyle:[Lt.content,t],children:o}),h&&/* @__PURE__ */W(B,{accessibilityLabel:"Scroll left",onPress:()=>y(-1),style:[Lt.nav,Lt.navLeft,{backgroundColor:m,borderColor:i.border}],children:/* @__PURE__ */W(z,{style:Lt.navFlip,children:/* @__PURE__ */W(zt,{size:14,color:i.primary})})}),g&&/* @__PURE__ */W(B,{accessibilityLabel:"Scroll right",onPress:()=>y(1),style:[Lt.nav,Lt.navRight,{backgroundColor:m,borderColor:i.border}],children:/* @__PURE__ */W(zt,{size:14,color:i.primary})})]})}var Lt=k.create({wrap:{position:"relative",minWidth:0},content:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:2,paddingVertical:2},nav:{position:"absolute",top:"50%",marginTop:-13,width:26,height:26,borderRadius:13,borderWidth:1,alignItems:"center",justifyContent:"center",shadowColor:"#0F4C5C",shadowOpacity:.35,shadowRadius:5,shadowOffset:{width:0,height:4},elevation:3},navLeft:{left:-2},navRight:{right:-2},navFlip:{transform:[{rotate:"180deg"}]}});function Dt({groups:t,theme:n,bodyFont:o}){const i=n.colors,r=i.background??"#fff";return 0===t.length?null:/* @__PURE__ */W(Rt,{theme:n,children:t.map((t,n)=>/* @__PURE__ */T(e.Fragment,{children:[n>0&&/* @__PURE__ */W(z,{style:[Pt.divider,{backgroundColor:i.border}]}),t.label?/* @__PURE__ */W(S,{style:[Pt.groupLabel,{color:i.textMuted,fontFamily:o}],children:t.label}):null,t.options.map(e=>{const n=e.value===t.value;/* @__PURE__ */
49
- return W(B,{onPress:()=>t.onChange(e.value),activeOpacity:.8,style:[Pt.chip,{borderColor:n?i.primary:i.border,backgroundColor:n?i.primary:r}],children:/* @__PURE__ */W(S,{style:[Pt.chipText,{color:n?i.primaryText:i.primary,fontFamily:o}],children:e.label})},e.value??"__all")})]},t.label??n))})}function Mt({label:e,options:t,value:n,onChange:o,theme:i,bodyFont:r}){/* @__PURE__ */
50
- return W(Dt,{groups:[{label:e,options:t,value:n,onChange:o}],theme:i,bodyFont:r})}var Pt=k.create({groupLabel:{fontSize:10,fontWeight:"800",textTransform:"uppercase",letterSpacing:1.4,flexShrink:0},divider:{width:1,height:20,flexShrink:0},chip:{borderWidth:1,borderRadius:999,paddingHorizontal:14,paddingVertical:6,flexShrink:0},chipText:{fontSize:12,fontWeight:"700",letterSpacing:-.12}});function Ht(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function Ot(e){return(e.description??e.proposition??"").trim()}var It={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function Et(e){return"composite_and"===(t=Ht(e))||"composite_or"===t;var t}function jt(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 Nt(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 Gt(e,t){if(!Et(e))return null;const n=function(e){return Et(e)?("composite_and"===(t=Ht(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=jt(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:Ot(o),eventLabel:Nt(o),prop:o})}if(e.length>=2)return{operator:n,legs:e}}const i=function(e,t){const n=e.trim();if(!n)return null;const o=n.split(It[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(Ot(e),n);return i?{operator:n,legs:i.map(e=>({text:e,eventLabel:null,prop:null}))}:null}var Yt="#0F4C5C",Vt={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"},Ut={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner"};function qt(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=Vt[e];if(o)return o;if(t&&e.startsWith(`${t}_`)){const n=e.slice(t.length+1).replace(/_/g," ").split(/\s+/).filter(Boolean).map(e=>e[0]).join("").slice(0,4).toUpperCase();if(n)return n}return e.startsWith("casino_")?e.slice(7,11).toUpperCase()||"CSN":e.slice(0,3).toUpperCase()||"·"}function Kt(e,t){return e>0?`${e} today`:t>0?`${t} picks`:"No picks"}function Zt(e){return!!e.is_composite_component||!!(t=Ht(e))&&t.startsWith("co_");var t}function Xt(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0}function Qt(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function Jt(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}function $t(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 _t(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 en(e){return e.reduce((t,n)=>{const o=tn(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function tn(e,t){if(e.sport)return e.sport;if(Et(e)&&t)for(const n of jt(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var nn=["sports","casino","racing"];function on(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=(Ht(e)??"").toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"sports"}function rn(e){return"racing"===on(e)}function ln(e){const t={};for(const n of e){const e=on(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function an(e){const t=ln(e);return nn.filter(e=>(t[e]?.length??0)>0)}function cn(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";default:return"Choose a Sport"}}function sn(e,t,n,o){return o&&o.length>0?o.includes(e):!(void 0!==t&&e<t||void 0!==n&&e>n)}function dn(e,t,n){const o=n?.min_propositions??null,i=n?.max_propositions??null,r=(n?.allowed_propositions??e.allowed_propositions)?.filter(e=>(null==o||e>=o)&&(null==i||e<=i));if(r&&r.length>0)return null!=t&&r.includes(t)?{min:t,max:t}:{min:Math.min(...r),max:Math.max(...r)};const l=e.min_propositions??e.num_propositions??0,a=e.max_propositions??e.num_propositions??0;return{min:null!=o?Math.max(l,o):l,max:null!=i&&a>0?Math.min(a,i):i??a}}function hn(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 un(e,t,n){return"racing"===e||!(!t?.length||!t.every(rn))||!!n&&Boolean(t?.some(e=>e.sport===n||(e.sport||"").startsWith(`${n}_`)))}function gn(e,t){const n={basketball_nba:"NBA Basketball",americanfootball_nfl:"NFL Football",icehockey_nhl:"NHL Hockey",baseball_mlb:"MLB Baseball",soccer_epl:"Premier League",soccer_usa_mls:"MLS Soccer",horse_racing_aus:"Horse Racing",casino_blackjack:"Blackjack",casino_roulette:"Roulette",casino_slots:"Slots",aussierules_afl:"AFL",rugbyleague_nrl:"NRL","AUSTRALIAN-RULES":"AFL","RUGBY-LEAGUE":"NRL",cricket_international_t20:"T20 International",cricket_test_match:"Test Cricket"};return e.startsWith("casino_")?n[e]??e.replace(/^casino_/,"").replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):t&&e.startsWith(`${t}_`)?e.slice(t.length+1).replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):n[e]||e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}function fn(e,t,n){const o=t?.[e];return o||gn(e,n)}function pn(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 yn(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function mn(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function bn(e,t,n){return!t||!!e&&(mn(e,t,n)||mn(t,e,n))}function wn(e,t){return t.find(t=>t.id===e)}function xn(e,t){let n=e;return t?.category&&(n=n.filter(e=>on(e)===t.category)),t?.sport&&(n=n.filter(n=>Et(n)?function(e,t,n,o){if(bn(e.sport,t,n))return!0;if(!o)return!1;for(const i of jt(e)){const e=wn(i,o);if(e&&bn(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):bn(n.sport,t.sport,t.sportBaseKey))),n}function kn(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t?t:"sports"}(e)===t}function Sn(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>mn(t,e,n))}function Cn(e,t,n){return!(n?.category&&!kn(e,n.category))&&!(n?.sport&&!Sn(e,n.sport,n.sportBaseKey))&&xn(Fn(t,e),n).length>0}function Bn(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!kn(e,t.category)||t.sport&&!Sn(e,t.sport,t.sportBaseKey))):e}function zn(e,t){if(e.sport||!Et(e))return e;const n=tn(e,t);return"Other"===n?e:{...e,sport:n}}function Fn(e,t,n){const o=t.allowed_sports,i=o&&o.length>0,r=t.allowed_markets&&t.allowed_markets.length>0;return i||r?e.filter(l=>{if(Zt(l))return!1;if(i)if(Et(l)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>mn(e.sport,t,n)))return!0;if(!o)return!1;for(const i of jt(e)){const e=wn(i,o);if(e?.sport&&t.some(t=>mn(e.sport,t,n)))return!0}return!1}(l,o,n,e))return!1}else if(!l.sport||!o.some(e=>mn(l.sport,e,n)))return!1;return!(r&&!function(e,t){const n=t.allowed_markets;if(!n||0===n.length)return!0;const o=Ht(e);return!!o&&n.includes(o)}(l,t))}).map(t=>zn(t,e)):e.filter(e=>!Zt(e)).map(t=>zn(t,e))}function vn(e,t){const n=e.available_days;if(!n)return!0;if(0===n.length)return!0;const o=((t??/* @__PURE__ */new Date).getDay()+6)%7;return n.includes(o)}var Wn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function Tn(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[i,r,l]=o.map(e=>{const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)});return.2126*i+.7152*r+.0722*l>.4?n:t}function An(e,t,n){return un(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 Rn(e){const t=[];for(const n of e){const e=n.home_team&&n.away_team&&!rn(n)?`${n.home_team} vs ${n.away_team}`:n.away_team||n.home_team||n.eventId||null,o=t[t.length-1],i=null===e?null:t.find(t=>t.key===e);i?i.props.push(n):null===e&&null===o?.key?o.props.push(n):t.push({key:e,props:[n]})}return t}function Ln(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 Dn(e,t){const n=[...e].sort(()=>Math.random()-.5).slice(0,t),o=[],i=[];for(const r of n)Math.random()<.5?o.push(r):i.push(r);return{yesPicks:o,noPicks:i}}var Mn=/* @__PURE__ */new Map,Pn=/* @__PURE__ */new Map;function Hn(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 On({iconUrl:t,width:n,height:o,iconColor:i,accentColor:r,accessibilityLabel:l}){const a=Xe(t),[c,s]=e.useState(()=>a??Mn.get(t)??null);return e.useEffect(()=>{const e=Xe(t);if(e)return void s(e);if(Mn.has(t))return void s(Mn.get(t));let n=!1;return function(e){const t=Mn.get(e);if(void 0!==t)return Promise.resolve(t);const n=Pn.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=>(Mn.set(e,t),Pn.delete(e),t)).catch(t=>{throw Pn.delete(e),t});return Pn.set(e,o),o}(t).then(e=>{n||s(e)}).catch(()=>{n||s(null)}),()=>{n=!0}},[t]),c?/* @__PURE__ */W(j,{xml:Hn(c,i,r),width:n,height:o,accessibilityLabel:l}):/* @__PURE__ */W(f,{source:{uri:t},style:{width:n,height:o},resizeMode:"contain",accessibilityLabel:l})}function In({iconUrl:t,gameName:n,onPress:o,size:i=120,brandColor:r="#0F4C5C",cardColor:l="#DDD9D2",iconColor:a,accentColor:c,captionColor:s="#14687C",accessibilityLabel:d}){const[u,g]=e.useState(!1),[f,p]=e.useState(!1),y=(n||"").toUpperCase(),w=170,x=i/360,k=a??l,S=pe(r,c,k),C=e.useRef(new h.Value(0)).current,B=e=>({position:"absolute",left:40*x,top:5*x,width:210*x,height:210*x,borderRadius:42*x,backgroundColor:r,opacity:e}),F=e=>({transform:[{translateX:C.interpolate({inputRange:[0,1],outputRange:[e*x,0]})},{translateY:C.interpolate({inputRange:[0,1],outputRange:[e*x,0]})}]}),v=!!o&&(u||f);e.useEffect(()=>{h.timing(C,{toValue:v?1:0,duration:220,useNativeDriver:"web"!==m.OS}).start()},[v,C]);const R=()=>/* @__PURE__ */T(z,{style:[En.container,{width:i,height:i}],children:[
51
- /* @__PURE__ */T(A,{viewBox:"0 0 360 360",width:i,height:i,children:[
52
- /* @__PURE__ */W(I,{x:2,y:2,width:356,height:356,rx:78,fill:l,stroke:r,strokeWidth:4}),
53
- /* @__PURE__ */W(N,{x:180,y:305,fontFamily:"Manrope, Poppins, sans-serif",fontSize:32,letterSpacing:1.5,fontWeight:"800",textAnchor:"middle",fill:r,children:"PRESS TO PLAY"}),
47
+ /* @__PURE__ */W(x,{ref:i,horizontal:!0,showsHorizontalScrollIndicator:!1,onScroll:e=>{l.current=e.nativeEvent.contentOffset.x,p()},onLayout:e=>{s.current=e.nativeEvent.layout.width,p()},onContentSizeChange:e=>{d.current=e,p()},scrollEventThrottle:32,contentContainerStyle:[Lt.content,t],children:o}),h&&/* @__PURE__ */W(B,{accessibilityLabel:"Scroll left",onPress:()=>y(-1),style:[Lt.nav,Lt.navLeft,{backgroundColor:m,borderColor:r.border}],children:/* @__PURE__ */W(z,{style:Lt.navFlip,children:/* @__PURE__ */W(Bt,{size:14,color:r.primary})})}),g&&/* @__PURE__ */W(B,{accessibilityLabel:"Scroll right",onPress:()=>y(1),style:[Lt.nav,Lt.navRight,{backgroundColor:m,borderColor:r.border}],children:/* @__PURE__ */W(Bt,{size:14,color:r.primary})})]})}var Lt=k.create({wrap:{position:"relative",minWidth:0},content:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:2,paddingVertical:2},nav:{position:"absolute",top:"50%",marginTop:-13,width:26,height:26,borderRadius:13,borderWidth:1,alignItems:"center",justifyContent:"center",shadowColor:"#0F4C5C",shadowOpacity:.35,shadowRadius:5,shadowOffset:{width:0,height:4},elevation:3},navLeft:{left:-2},navRight:{right:-2},navFlip:{transform:[{rotate:"180deg"}]}});function Rt({groups:t,theme:n,bodyFont:o}){const r=n.colors,i=r.background??"#fff";return 0===t.length?null:/* @__PURE__ */W(At,{theme:n,children:t.map((t,n)=>/* @__PURE__ */T(e.Fragment,{children:[n>0&&/* @__PURE__ */W(z,{style:[Mt.divider,{backgroundColor:r.border}]}),t.label?/* @__PURE__ */W(S,{style:[Mt.groupLabel,{color:r.textMuted,fontFamily:o}],children:t.label}):null,t.options.map(e=>{const n=e.value===t.value;/* @__PURE__ */
48
+ return W(B,{onPress:()=>t.onChange(e.value),activeOpacity:.8,style:[Mt.chip,{borderColor:n?r.primary:r.border,backgroundColor:n?r.primary:i}],children:/* @__PURE__ */W(S,{style:[Mt.chipText,{color:n?r.primaryText:r.primary,fontFamily:o}],children:e.label})},e.value??"__all")})]},t.label??n))})}function Dt({label:e,options:t,value:n,onChange:o,theme:r,bodyFont:i}){/* @__PURE__ */
49
+ return W(Rt,{groups:[{label:e,options:t,value:n,onChange:o}],theme:r,bodyFont:i})}var Mt=k.create({groupLabel:{fontSize:10,fontWeight:"800",textTransform:"uppercase",letterSpacing:1.4,flexShrink:0},divider:{width:1,height:20,flexShrink:0},chip:{borderWidth:1,borderRadius:999,paddingHorizontal:14,paddingVertical:6,flexShrink:0},chipText:{fontSize:12,fontWeight:"700",letterSpacing:-.12}});function Pt(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function Ht(e){return(e.description??e.proposition??"").trim()}var Ot={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function It(e){return"composite_and"===(t=Pt(e))||"composite_or"===t;var t}function Et(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 jt(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 Nt(e,t){if(!It(e))return null;const n=function(e){return It(e)?("composite_and"===(t=Pt(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=Et(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:Ht(o),eventLabel:jt(o),prop:o})}if(e.length>=2)return{operator:n,legs:e}}const r=function(e,t){const n=e.trim();if(!n)return null;const o=n.split(Ot[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(Ht(e),n);return r?{operator:n,legs:r.map(e=>({text:e,eventLabel:null,prop:null}))}:null}var Gt="#0F4C5C",Yt={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"},Vt={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner"};function Ut(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=Yt[e];if(o)return o;if(t&&e.startsWith(`${t}_`)){const n=e.slice(t.length+1).replace(/_/g," ").split(/\s+/).filter(Boolean).map(e=>e[0]).join("").slice(0,4).toUpperCase();if(n)return n}return e.startsWith("casino_")?e.slice(7,11).toUpperCase()||"CSN":e.slice(0,3).toUpperCase()||"·"}function qt(e){return!!e.is_composite_component||!!(t=Pt(e))&&t.startsWith("co_");var t}function Kt(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0}function Zt(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function Xt(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}function Qt(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 Jt(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 $t(e){return e.reduce((t,n)=>{const o=_t(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function _t(e,t){if(e.sport)return e.sport;if(It(e)&&t)for(const n of Et(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var en=["sports","casino","racing","prediction"];function tn(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=(Pt(e)??"").toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"sports"}function nn(e){return"racing"===tn(e)}function on(e){const t={};for(const n of e){const e=tn(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function rn(e){const t=on(e);return en.filter(e=>(t[e]?.length??0)>0)}function ln(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";default:return"Choose a Sport"}}function an(e,t,n,o){return o&&o.length>0?o.includes(e):!(void 0!==t&&e<t||void 0!==n&&e>n)}function cn(e,t,n){const o=n?.min_propositions??null,r=n?.max_propositions??null,i=(n?.allowed_propositions??e.allowed_propositions)?.filter(e=>(null==o||e>=o)&&(null==r||e<=r));if(i&&i.length>0)return null!=t&&i.includes(t)?{min:t,max:t}:{min:Math.min(...i),max:Math.max(...i)};const l=e.min_propositions??e.num_propositions??0,a=e.max_propositions??e.num_propositions??0;return{min:null!=o?Math.max(l,o):l,max:null!=r&&a>0?Math.min(a,r):r??a}}function sn(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 dn(e,t,n){return"racing"===e||!(!t?.length||!t.every(nn))||!!n&&Boolean(t?.some(e=>e.sport===n||(e.sport||"").startsWith(`${n}_`)))}function hn(e,t){const n={basketball_nba:"NBA",americanfootball_nfl:"NFL",icehockey_nhl:"NHL",baseball_mlb:"MLB",soccer_epl:"Premier League",soccer_usa_mls:"MLS",horse_racing_aus:"Horse Racing",casino_blackjack:"Blackjack",casino_roulette:"Roulette",casino_slots:"Slots",aussierules_afl:"AFL",rugbyleague_nrl:"NRL",aussierules_aflw:"AFLW",rugbyleague_nrlw:"NRLW","AUSTRALIAN-RULES":"AFL","RUGBY-LEAGUE":"NRL",cricket_international_t20:"T20 International",cricket_test_match:"Test Cricket"};return e.startsWith("casino_")?n[e]??e.replace(/^casino_/,"").replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):t&&e.startsWith(`${t}_`)?e.slice(t.length+1).replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):n[e]||e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}function un(e,t,n){const o=t?.[e];return o||hn(e,n)}function gn(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 fn(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function pn(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function yn(e,t,n){return!t||!!e&&(pn(e,t,n)||pn(t,e,n))}function mn(e,t){return t.find(t=>t.id===e)}function bn(e,t){let n=e;return t?.category&&(n=n.filter(e=>tn(e)===t.category)),t?.sport&&(n=n.filter(n=>It(n)?function(e,t,n,o){if(yn(e.sport,t,n))return!0;if(!o)return!1;for(const r of Et(e)){const e=mn(r,o);if(e&&yn(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):yn(n.sport,t.sport,t.sportBaseKey))),n}function wn(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t?t:"sports"}(e)===t}function xn(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>pn(t,e,n))}function kn(e,t,n){return!(n?.category&&!wn(e,n.category))&&!(n?.sport&&!xn(e,n.sport,n.sportBaseKey))&&bn(Bn(t,e),n).length>0}function Sn(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!wn(e,t.category)||t.sport&&!xn(e,t.sport,t.sportBaseKey))):e}function Cn(e,t){if(e.sport||!It(e))return e;const n=_t(e,t);return"Other"===n?e:{...e,sport:n}}function Bn(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(qt(l))return!1;if(r)if(It(l)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>pn(e.sport,t,n)))return!0;if(!o)return!1;for(const r of Et(e)){const e=mn(r,o);if(e?.sport&&t.some(t=>pn(e.sport,t,n)))return!0}return!1}(l,o,n,e))return!1}else if(!l.sport||!o.some(e=>pn(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=Pt(e);return!!o&&n.includes(o)}(l,t))}).map(t=>Cn(t,e)):e.filter(e=>!qt(e)).map(t=>Cn(t,e))}function zn(e,t){const n=e.available_days;if(!n)return!0;if(0===n.length)return!0;const o=((t??/* @__PURE__ */new Date).getDay()+6)%7;return n.includes(o)}var vn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function Fn(e,t="#ffffff",n="#1a1a1a"){if(!e)return n;const o=function(e){const t=e.trim().toLowerCase(),n=t.match(/^#([0-9a-f]{3,8})$/);if(n){let e=n[1];return 3!==e.length&&4!==e.length||(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}const o=t.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);return o?[Number(o[1]),Number(o[2]),Number(o[3])]:null}(e);if(!o)return n;const[r,i,l]=o.map(e=>{const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)});return.2126*r+.7152*i+.0722*l>.4?n:t}function Wn(e,t,n){return dn(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 Tn(e){const t=[];for(const n of e){const e=n.home_team&&n.away_team&&!nn(n)?`${n.home_team} vs ${n.away_team}`:n.away_team||n.home_team||n.eventId||null,o=t[t.length-1],r=null===e?null:t.find(t=>t.key===e);r?r.props.push(n):null===e&&null===o?.key?o.props.push(n):t.push({key:e,props:[n]})}return t}function An(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 Ln(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}}var Rn=/* @__PURE__ */new Map,Dn=/* @__PURE__ */new Map;function Mn(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 Pn({iconUrl:t,width:n,height:o,iconColor:r,accentColor:i,accessibilityLabel:l}){const a=Xe(t),[c,s]=e.useState(()=>a??Rn.get(t)??null);return e.useEffect(()=>{const e=Xe(t);if(e)return void s(e);if(Rn.has(t))return void s(Rn.get(t));let n=!1;return function(e){const t=Rn.get(e);if(void 0!==t)return Promise.resolve(t);const n=Dn.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=>(Rn.set(e,t),Dn.delete(e),t)).catch(t=>{throw Dn.delete(e),t});return Dn.set(e,o),o}(t).then(e=>{n||s(e)}).catch(()=>{n||s(null)}),()=>{n=!0}},[t]),c?/* @__PURE__ */W(j,{xml:Mn(c,r,i),width:n,height:o,accessibilityLabel:l}):/* @__PURE__ */W(f,{source:{uri:t},style:{width:n,height:o},resizeMode:"contain",accessibilityLabel:l})}function Hn({iconUrl:t,gameName:n,onPress:o,size:r=120,brandColor:i="#0F4C5C",cardColor:l="#DDD9D2",iconColor:a,accentColor:c,captionColor:s="#14687C",accessibilityLabel:d}){const[u,g]=e.useState(!1),[f,p]=e.useState(!1),y=(n||"").toUpperCase(),w=170,x=r/360,k=a??l,S=pe(i,c,k),C=e.useRef(new h.Value(0)).current,B=e=>({position:"absolute",left:40*x,top:5*x,width:210*x,height:210*x,borderRadius:42*x,backgroundColor:i,opacity:e}),v=e=>({transform:[{translateX:C.interpolate({inputRange:[0,1],outputRange:[e*x,0]})},{translateY:C.interpolate({inputRange:[0,1],outputRange:[e*x,0]})}]}),F=!!o&&(u||f);e.useEffect(()=>{h.timing(C,{toValue:F?1:0,duration:220,useNativeDriver:"web"!==m.OS}).start()},[F,C]);const L=()=>/* @__PURE__ */T(z,{style:[On.container,{width:r,height:r}],children:[
50
+ /* @__PURE__ */T(A,{viewBox:"0 0 360 360",width:r,height:r,children:[
51
+ /* @__PURE__ */W(I,{x:2,y:2,width:356,height:356,rx:78,fill:l,stroke:i,strokeWidth:4}),
52
+ /* @__PURE__ */W(N,{x:180,y:305,fontFamily:"Manrope, Poppins, sans-serif",fontSize:32,letterSpacing:1.5,fontWeight:"800",textAnchor:"middle",fill:i,children:"PRESS TO PLAY"}),
54
53
  /* @__PURE__ */W(N,{x:180,y:338,fontFamily:"Manrope, Poppins, sans-serif",fontSize:18,letterSpacing:2,fontWeight:"500",textAnchor:"middle",fill:s,children:y})]}),
55
- /* @__PURE__ */W(h.View,{pointerEvents:"none",style:[B(.3),F(50)]}),
56
- /* @__PURE__ */W(h.View,{pointerEvents:"none",style:[B(.55),F(25)]}),
54
+ /* @__PURE__ */W(h.View,{pointerEvents:"none",style:[B(.3),v(50)]}),
55
+ /* @__PURE__ */W(h.View,{pointerEvents:"none",style:[B(.55),v(25)]}),
57
56
  /* @__PURE__ */W(z,{pointerEvents:"none",style:B(1)}),
58
- /* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",left:60*x,top:25*x,width:w*x,height:w*x},children:/* @__PURE__ */W(On,{iconUrl:t,width:w*x,height:w*x,iconColor:k,accentColor:S})})]});return o?/* @__PURE__ */W(b,{onPress:o,onPressIn:()=>p(!0),onPressOut:()=>p(!1),onHoverIn:"web"===m.OS?()=>g(!0):void 0,onHoverOut:"web"===m.OS?()=>g(!1):void 0,accessibilityRole:"button",accessibilityLabel:d??`Press to play ${n}`,style:{width:i,height:i,borderRadius:i/360*78,transform:[{scale:f?.96:1}]},children:R()}):R()}var En=k.create({container:{position:"relative"}});function jn({visible:e,anchor:t,onClose:n,flipUp:o=!1,align:i="left",gap:r=6,children:l}){if(!e||!t)return null;const a=u.get("window"),c=o?{bottom:Math.max(0,a.height-t.y+r)}:{top:t.y+t.height+r},s="right"===i?{right:Math.max(0,a.width-(t.x+t.width))}:{left:Math.max(0,t.x)};/* @__PURE__ */
59
- return T(p,{transparent:!0,visible:!0,animationType:"none",onRequestClose:n,children:[/* @__PURE__ */W(b,{style:k.absoluteFill,onPress:n}),/* @__PURE__ */W(z,{style:{position:"absolute",...c,...s},onStartShouldSetResponder:()=>!0,children:l})]})}function Nn(e){return e.selectionCard??e.backgroundAlt}function Gn({color:e,style:t}){/* @__PURE__ */
60
- return W(z,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function Yn({colors:t,count:n=2}){const{width:o}=F(),i=o>=400,r=o>=640,[l,a]=e.useState(0),c=i?l>0?(l-12)/2:"48%":"100%",s=Nn(t);/* @__PURE__ */
61
- return W(z,{onLayout:e=>a(e.nativeEvent.layout.width),style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:n}).map((e,n)=>/* @__PURE__ */T(z,{style:{width:c,minHeight:r?140:112,borderRadius:16,borderWidth:1,padding:r?20:14,gap:r?12:8,justifyContent:"center",alignItems:"flex-start",backgroundColor:s,borderColor:t.border},children:[/* @__PURE__ */W(Gn,{color:t.textMuted,style:{height:20,width:176,maxWidth:"100%"}}),/* @__PURE__ */W(Gn,{color:t.textMuted,style:{height:12,width:96,maxWidth:"70%"}})]},n))})}function Vn({colors:e,count:t=4}){const{width:n}=F(),o=n>=640,i=Nn(e);/* @__PURE__ */
62
- return W(z,{style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */T(z,{style:{flexBasis:"48%",flexGrow:1,minWidth:0,flexDirection:o?"row":"column",alignItems:"center",gap:o?14:8,borderRadius:16,borderWidth:1,paddingHorizontal:o?16:12,paddingVertical:o?16:12,backgroundColor:i,borderColor:e.border},children:[
63
- /* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:o?48:40,width:o?48:40,borderRadius:12}}),
64
- /* @__PURE__ */T(z,{style:{flex:o?1:void 0,minWidth:0,alignItems:o?"flex-start":"center",gap:6},children:[/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:14,width:80}}),/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:10,width:48}})]}),o&&/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:20,width:20,borderRadius:6}})]},n))})}function Un({colors:e,count:t=3}){const n=Nn(e);/* @__PURE__ */
65
- return W(z,{style:{gap:10,width:"100%"},children:Array.from({length:t}).map((t,o)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:16,borderWidth:1,paddingHorizontal:14,paddingVertical:14,backgroundColor:n,borderColor:e.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */W(z,{style:{borderRadius:12,paddingHorizontal:12,paddingVertical:10,backgroundColor:e.backgroundAlt},children:/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:16,width:176,maxWidth:"100%"}})}),/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:12,width:160,maxWidth:"80%",marginTop:8}})]}),/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:20,width:20,borderRadius:6}})]},o))})}function qn({colors:e,tileSize:t=116,width:n}){/* @__PURE__ */
66
- return T(z,{style:{width:n??"100%",alignItems:"center",borderRadius:18,borderWidth:1,paddingHorizontal:14,paddingTop:24,paddingBottom:20,gap:4,borderColor:e.border,backgroundColor:Nn(e)},children:[
67
- /* @__PURE__ */W(Gn,{color:e.textMuted,style:{width:t,height:t,borderRadius:16}}),
68
- /* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:12,width:44,marginTop:4}}),
69
- /* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:17,width:128,maxWidth:"80%",marginTop:2}}),
70
- /* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:11,width:"75%",marginTop:10}})]})}function Kn({colors:e}){/* @__PURE__ */
71
- return W(z,{style:{flexDirection:"row",gap:8,marginBottom:12,width:"100%"},children:[0,1,2].map(t=>/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:38,flex:1,borderRadius:999}},t))})}function Zn({colors:t,count:n=3,tileSize:o=116,showTierTabs:i=!1}){const[r,l]=e.useState(0),a=r>=420?(r-12)/2:"100%";/* @__PURE__ */
72
- return T(z,{style:{width:"100%"},onLayout:e=>l(e.nativeEvent.layout.width),children:[i&&/* @__PURE__ */W(Kn,{colors:t}),/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:n}).map((e,n)=>/* @__PURE__ */W(qn,{colors:t,tileSize:o,width:a},n))})]})}function Xn({colors:e,groups:t=2,rowsPerGroup:n=2}){const{width:o}=F(),i=o>=640;/* @__PURE__ */
73
- return T(z,{style:{gap:i?24:16,paddingBottom:64,width:"100%"},children:[/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:28,width:72,borderRadius:999}}),/* @__PURE__ */W(z,{style:{gap:16},children:Array.from({length:t}).map((t,o)=>/* @__PURE__ */T(z,{style:{borderRadius:12,borderWidth:1,borderColor:e.border,backgroundColor:Nn(e),overflow:"hidden"},children:[/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:12,gap:6,backgroundColor:e.backgroundAlt},children:[/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:16,width:176,maxWidth:"80%"}}),/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:12,width:96}})]}),Array.from({length:n}).map((t,n)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingHorizontal:16,paddingVertical:i?14:12,borderTopWidth:1,borderTopColor:e.border},children:[/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:16,flex:1,maxWidth:"58%"}}),/* @__PURE__ */T(z,{style:{flexDirection:"row",gap:6,flexShrink:0},children:[/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:i?32:28,width:i?48:44,borderRadius:8}}),/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:i?32:28,width:i?48:44,borderRadius:8}})]})]},n))]},o))})]})}function Qn({colors:e}){/* @__PURE__ */
74
- return W(z,{style:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:e.border,marginBottom:16,width:"100%"},children:[0,1].map(t=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10},children:[/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:14,width:68}}),/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:20,width:20,borderRadius:999}})]},t))})}function Jn({colors:e}){/* @__PURE__ */
75
- return T(z,{style:{borderRadius:8,borderWidth:1,borderColor:e.border,backgroundColor:Nn(e),overflow:"hidden",width:"100%"},children:[/* @__PURE__ */T(z,{style:{width:"100%",paddingHorizontal:16,paddingVertical:12,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,gap:6},children:[/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:12,width:128,maxWidth:"65%"}})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:12,flexShrink:0},children:[/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:14,width:40}}),/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:24,width:60,borderRadius:999}})]})]}),/* @__PURE__ */W(z,{style:{borderTopWidth:1,borderTopColor:e.border,width:"100%"},children:[0,1,2].map(t=>/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:10,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:0===t?0:1,borderTopColor:e.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,gap:4},children:[/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:14,width:"88%"}}),/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:12,width:"70%"}})]}),/* @__PURE__ */W(Gn,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]})}function $n({colors:e,rows:t=2}){/* @__PURE__ */
76
- return T(z,{style:{width:"100%"},children:[/* @__PURE__ */W(Qn,{colors:e}),/* @__PURE__ */W(z,{style:{gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */W(Jn,{colors:e},n))})]})}function _n({colors:e,bodyFont:t,message:n,variant:o="category",gameCardCount:i=3,categoryCount:r=2,showTierTabs:l=!1}){const a=n?.trim()||"Loading",c=(()=>{switch(o){case"sport":/* @__PURE__ */return W(Vn,{colors:e,count:Math.max(r,2)});case"event":/* @__PURE__ */return W(Un,{colors:e});case"games":/* @__PURE__ */return W(Zn,{colors:e,count:i,showTierTabs:l});case"propositions":/* @__PURE__ */return W(Xn,{colors:e});case"entries":/* @__PURE__ */return W($n,{colors:e,rows:2});default:/* @__PURE__ */return W(Yn,{colors:e,count:r})}})();/* @__PURE__ */
77
- return T(z,{accessibilityRole:"progressbar",accessibilityLabel:a,accessibilityLiveRegion:"polite",style:{width:"100%"},children:[n?.trim()?/* @__PURE__ */W(S,{style:{fontSize:14,textAlign:"center",marginBottom:16,color:e.textMuted,fontFamily:t},children:n}):null,c]})}function eo(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function to(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function no(e){if(!e||e.quick_pick_only)return!1;const t=to(e.selection_scope);if("samegamemulti"===to(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(to);return n.includes("samegame")||n.includes("samegamemulti")}function oo(e){return(e.eventId??e.event_id)?.trim()||null}function io(e){const t=/* @__PURE__ */new Map;for(const n of e){if(!co(n))continue;const e=oo(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=ro(o.homeTeam,n.home_team),o.awayTeam=ro(o.awayTeam,n.away_team),o.sport=ro(o.sport,n.sport),o.league=ro(o.league,n.league),o.commenceTime=ao(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=lo(e.commenceTime),o=lo(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function ro(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function lo(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function ao(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=lo(e),i=lo(n);return i!==o?i<o?n:e:e.localeCompare(n)<=0?e:n}function co(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function so(e,t){return t?e.filter(e=>co(e)&&oo(e)===t):[]}function ho(e,t){return!!t&&e.length>0&&e.every(e=>co(e)&&oo(e)===t)}var uo={signature:1,premier:2,exclusive:3},go=[{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 fo(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function po(e,t){return e.filter(e=>fo(e)===t)}function yo(e){const t=new Set(e.map(fo));return go.filter(e=>t.has(e.level))}function mo(e){return yo(e)[0]?.id??"signature"}var bo=4,wo=6,xo=[4,12],ko=[5,10,20,50];function So(e){return!!e&&!e.quick_pick_only&&"safety_net"===(e.rule??"").trim().toLowerCase()}function Co(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 Bo(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)}function zo(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 Fo(e,t,n,o){const i=Math.max(0,Math.min(n,t)),r=e*o.perfectMultiple*Math.pow(2,t-o.perfectBaseLegs),l=i>0?e*(1-o.margin)*o.nearMissBudgetFraction/i:0,a=Math.pow(1/o.perLegProbability,t),c=[];let s=zo(t,0);for(let d=1;d<=i;d+=1)s+=zo(t,d),c.push(Bo(l*a/s,o.roundTo));return{legs:t,stake:e,allowedMisses:i,perfect:r,nearMiss:c,sweep:r+c.reduce((e,t)=>e+t,0)}}function vo(e,t){if(t<0||t>e.allowedMisses)return 0;let n=0===t?e.perfect:0;for(let o=Math.max(1,t);o<=e.nearMiss.length;o+=1)n+=e.nearMiss[o-1];return n}function Wo(e){return e.includes(8)?8:e[Math.floor(e.length/2)]}function To(e){return e.toLowerCase().replace(/[^a-z]+/g," ").trim()}function Ao(e,t){const n=To(t);return e.permitted_rules?.find(e=>To(e.name??"").includes(n))??null}function Ro(e,t,n){const o=t?.min_propositions??n,i=t?.max_propositions??null;return e.filter(e=>e>=o&&(null==i||e<=i))}function Lo(e){if(!So(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??xo[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??xo[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n),i=Ao(e,"Extra Shot"),r=Ao(e,"Double Shot"),l=Ro(o,i,4).filter(e=>e>1),a=Ro(o,r,6).filter(e=>e>2);if(0===l.length)return null;const c=[{id:"extra_shot",label:"Extra Shot",allowedMisses:1,stat:"Bigger payout",explain:"Miss one leg and you win the All but 1 prize. Get every leg right and you win both — the Perfect prize on top.",legOptions:l,defaultLegs:Wo(l),ruleId:i?.id??null}],s=!e.permitted_rules?.length||!!r;a.length>0&&s&&c.push({id:"double_shot",label:"Double Shot",allowedMisses:2,stat:"Safer play",explain:"Miss two legs and you win the All but 2 prize. Miss one and you win two prizes. Get every leg right and you win all three — the whole stack.",legOptions:a,defaultLegs:Wo(a),ruleId:r?.id??null});const d=Math.max(e.min_bet??5,.01),h=e.max_bet??null,u=ko.filter(e=>null===h||e<=h);return{modes:c,defaultModeId:"extra_shot",defaultStake:Math.min(Math.max(10,d),h??10),minStake:d,maxStake:h,quickAdds:u,tagline:"The wider the safety net, the more misses it catches. The narrower it is, the bigger the top prize.",pricing:Co(e)}}function Do(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function Mo(e,t,n){const o=Math.max(0,e-t),i=Fo(20,e,o,n),r=[];for(let l=0;l<=o;l+=1){const t=Math.round(vo(i,l));r.push({misses:l,label:`${e-l}/${e}`,multiplier:t/20,payout20:t})}return r}function Po(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:Mo(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:Mo(e,e-2,t),expectedCorrect:e-2}]}function Ho(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:Po(t,Co(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:Do(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 Oo(e){return null!=Ho(e)}var Io=[500,1e3,2500,5e3,7500,1e4,12500,15e3],Eo=[12,11,10,9,8,7,6];function jo(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function No(e){return Math.round(100*e)/100}function Go(e,t,n=.21875){const o=Math.pow(2,t),i=e/(1-n)/o,r=Number.isInteger(i),l=No(i),a=r?i:No(.96*i);return{legs:t,exactStake:l,stake:a,margin:1-e/(a*o),multiple:e/a,oddsOneIn:o,discounted:!r}}function Yo(e,t=Eo){return{dividend:e,rungs:t.map(t=>Go(e,t))}}function Vo(e,t){if(!jo(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,i=Eo.filter(e=>e>=n&&e<=o);if(0===i.length)return null;const r=t?.dividends??Io;return{dividends:r.map(e=>Yo(e,i)),defaultDividend:r.includes(1e4)?1e4:r[Math.floor(r.length/2)],defaultLegs:i.includes(9)?9:i[Math.floor(i.length/2)],tagline:"The dividend is set. The win is yours to build."}}function Uo(e,t){const n=e.allowed_propositions&&e.allowed_propositions.length>0?e.allowed_propositions.map(Number):[],o=e.min_propositions??e.num_propositions??null,i=e.max_propositions??e.num_propositions??null,r=0===n.length&&null!==o&&null!==i&&i>0,l=n.length>0?n:r?Ln(o,i):[],a=/* @__PURE__ */new Map;for(const p of t?.top_payouts??[]){const e=Number(p.proposition_count),t=Number(p.net_payout),n=Number(p.bet_amount??20);!Number.isFinite(e)||e<=0||a.set(e,{count:e,payout:Number.isFinite(t)?t:0,betAmount:Number.isFinite(n)&&n>0?n:20})}for(const p of l){const e=Number(p);a.has(e)||a.set(e,{count:e,payout:0,betAmount:20})}const c=Array.from(a.values()).sort((e,t)=>e.count-t.count),s=l.length>0?Math.max(...l.map(Number)):0,d=jo(e)?Vo(e):null,h=d?d.dividends.map(e=>({dividend:e.dividend,stakeFrom:Math.min(...e.rungs.map(e=>e.stake))})):void 0,u=d?[]:c.map(e=>({count:e.count,payout20:e.payout>0&&e.betAmount>0?e.payout/e.betAmount*20:0})),g=Ho(e,s),f="safety_net"===g?.kind?(g.options??[]).flatMap(e=>e.dividends?.length?[{id:e.id,label:e.label,tiers:e.dividends.map(e=>({label:e.label,payout20:e.payout20}))}]:[]):[];return{legOptions:l.map(Number),maxLegCount:s,tiers:u,modes:f,pydDividends:h,hasGenericDividends:(n.length>0||r)&&u.some(e=>e.payout20>0),minBet:Math.max(e.min_bet??1,1),maxBet:e.max_bet??null}}function qo({tiers:e,modes:t,pydDividends:n,onPlayCount:o,minBet:i=1,maxBet:r=null,colors:l,bodyFont:a,headingFont:s}){const d=e=>Math.min(Math.max(e,i),r??1/0),[h,u]=c(()=>String(d(20))),g=parseFloat(h),f=d(Number.isFinite(g)&&g>0?g:20),p=f/20,y=!!(t?.length||n?.length||e.some(e=>e.payout20>0)),m=!!t?.length;if(!y)return null;const b=/* @__PURE__ */T(z,{style:{marginBottom:8,flexDirection:"row",alignItems:"center",gap:4,flexWrap:"wrap"},children:[
57
+ /* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",left:60*x,top:25*x,width:w*x,height:w*x},children:/* @__PURE__ */W(Pn,{iconUrl:t,width:w*x,height:w*x,iconColor:k,accentColor:S})})]});return o?/* @__PURE__ */W(b,{onPress:o,onPressIn:()=>p(!0),onPressOut:()=>p(!1),onHoverIn:"web"===m.OS?()=>g(!0):void 0,onHoverOut:"web"===m.OS?()=>g(!1):void 0,accessibilityRole:"button",accessibilityLabel:d??`Press to play ${n}`,style:{width:r,height:r,borderRadius:r/360*78,transform:[{scale:f?.96:1}]},children:L()}):L()}var On=k.create({container:{position:"relative"}});function In({visible:e,anchor:t,onClose:n,flipUp:o=!1,align:r="left",gap:i=6,children:l}){if(!e||!t)return null;const a=u.get("window"),c=o?{bottom:Math.max(0,a.height-t.y+i)}:{top:t.y+t.height+i},s="right"===r?{right:Math.max(0,a.width-(t.x+t.width))}:{left:Math.max(0,t.x)};/* @__PURE__ */
58
+ return T(p,{transparent:!0,visible:!0,animationType:"none",onRequestClose:n,children:[/* @__PURE__ */W(b,{style:k.absoluteFill,onPress:n}),/* @__PURE__ */W(z,{style:{position:"absolute",...c,...s},onStartShouldSetResponder:()=>!0,children:l})]})}function En(e){return e.selectionCard??e.backgroundAlt}function jn({color:e,style:t}){/* @__PURE__ */
59
+ return W(z,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function Nn({colors:t,count:n=2}){const{width:o}=v(),r=o>=400,i=o>=640,[l,a]=e.useState(0),c=r?l>0?(l-12)/2:"48%":"100%",s=En(t);/* @__PURE__ */
60
+ return W(z,{onLayout:e=>a(e.nativeEvent.layout.width),style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:n}).map((e,n)=>/* @__PURE__ */T(z,{style:{width:c,minHeight:i?140:112,borderRadius:16,borderWidth:1,padding:i?20:14,gap:i?12:8,justifyContent:"center",alignItems:"flex-start",backgroundColor:s,borderColor:t.border},children:[/* @__PURE__ */W(jn,{color:t.textMuted,style:{height:20,width:176,maxWidth:"100%"}}),/* @__PURE__ */W(jn,{color:t.textMuted,style:{height:12,width:96,maxWidth:"70%"}})]},n))})}function Gn({colors:e,count:t=4}){const{width:n}=v(),o=n>=640,r=En(e);/* @__PURE__ */
61
+ return W(z,{style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */T(z,{style:{flexBasis:"48%",flexGrow:1,minWidth:0,flexDirection:o?"row":"column",alignItems:"center",gap:o?14:8,borderRadius:16,borderWidth:1,paddingHorizontal:o?16:12,paddingVertical:o?16:12,backgroundColor:r,borderColor:e.border},children:[
62
+ /* @__PURE__ */W(jn,{color:e.textMuted,style:{height:o?48:40,width:o?48:40,borderRadius:12}}),
63
+ /* @__PURE__ */T(z,{style:{flex:o?1:void 0,minWidth:0,alignItems:o?"flex-start":"center",gap:6},children:[/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:14,width:80}}),/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:10,width:48}})]}),o&&/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:20,width:20,borderRadius:6}})]},n))})}function Yn({colors:e,count:t=3}){const n=En(e);/* @__PURE__ */
64
+ return W(z,{style:{gap:10,width:"100%"},children:Array.from({length:t}).map((t,o)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:16,borderWidth:1,paddingHorizontal:14,paddingVertical:14,backgroundColor:n,borderColor:e.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */W(z,{style:{borderRadius:12,paddingHorizontal:12,paddingVertical:10,backgroundColor:e.backgroundAlt},children:/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:16,width:176,maxWidth:"100%"}})}),/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:12,width:160,maxWidth:"80%",marginTop:8}})]}),/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:20,width:20,borderRadius:6}})]},o))})}function Vn({colors:e,tileSize:t=116,width:n}){/* @__PURE__ */
65
+ return T(z,{style:{width:n??"100%",alignItems:"center",borderRadius:18,borderWidth:1,paddingHorizontal:14,paddingTop:24,paddingBottom:20,gap:4,borderColor:e.border,backgroundColor:En(e)},children:[
66
+ /* @__PURE__ */W(jn,{color:e.textMuted,style:{width:t,height:t,borderRadius:16}}),
67
+ /* @__PURE__ */W(jn,{color:e.textMuted,style:{height:12,width:44,marginTop:4}}),
68
+ /* @__PURE__ */W(jn,{color:e.textMuted,style:{height:17,width:128,maxWidth:"80%",marginTop:2}}),
69
+ /* @__PURE__ */W(jn,{color:e.textMuted,style:{height:11,width:"75%",marginTop:10}})]})}function Un({colors:e}){/* @__PURE__ */
70
+ return W(z,{style:{flexDirection:"row",gap:8,marginBottom:12,width:"100%"},children:[0,1,2].map(t=>/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:38,flex:1,borderRadius:999}},t))})}function qn({colors:t,count:n=3,tileSize:o=116,showTierTabs:r=!1}){const[i,l]=e.useState(0),a=i>=420?(i-12)/2:"100%";/* @__PURE__ */
71
+ return T(z,{style:{width:"100%"},onLayout:e=>l(e.nativeEvent.layout.width),children:[r&&/* @__PURE__ */W(Un,{colors:t}),/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:n}).map((e,n)=>/* @__PURE__ */W(Vn,{colors:t,tileSize:o,width:a},n))})]})}function Kn({colors:e,groups:t=2,rowsPerGroup:n=2}){const{width:o}=v(),r=o>=640;/* @__PURE__ */
72
+ return T(z,{style:{gap:r?24:16,paddingBottom:64,width:"100%"},children:[/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:28,width:72,borderRadius:999}}),/* @__PURE__ */W(z,{style:{gap:16},children:Array.from({length:t}).map((t,o)=>/* @__PURE__ */T(z,{style:{borderRadius:12,borderWidth:1,borderColor:e.border,backgroundColor:En(e),overflow:"hidden"},children:[/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:12,gap:6,backgroundColor:e.backgroundAlt},children:[/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:16,width:176,maxWidth:"80%"}}),/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:12,width:96}})]}),Array.from({length:n}).map((t,n)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingHorizontal:16,paddingVertical:r?14:12,borderTopWidth:1,borderTopColor:e.border},children:[/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:16,flex:1,maxWidth:"58%"}}),/* @__PURE__ */T(z,{style:{flexDirection:"row",gap:6,flexShrink:0},children:[/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:r?32:28,width:r?48:44,borderRadius:8}}),/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:r?32:28,width:r?48:44,borderRadius:8}})]})]},n))]},o))})]})}function Zn({colors:e}){/* @__PURE__ */
73
+ return W(z,{style:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:e.border,marginBottom:16,width:"100%"},children:[0,1].map(t=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10},children:[/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:14,width:68}}),/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:20,width:20,borderRadius:999}})]},t))})}function Xn({colors:e}){/* @__PURE__ */
74
+ return T(z,{style:{borderRadius:8,borderWidth:1,borderColor:e.border,backgroundColor:En(e),overflow:"hidden",width:"100%"},children:[/* @__PURE__ */T(z,{style:{width:"100%",paddingHorizontal:16,paddingVertical:12,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,gap:6},children:[/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:12,width:128,maxWidth:"65%"}})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:12,flexShrink:0},children:[/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:14,width:40}}),/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:24,width:60,borderRadius:999}})]})]}),/* @__PURE__ */W(z,{style:{borderTopWidth:1,borderTopColor:e.border,width:"100%"},children:[0,1,2].map(t=>/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:10,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:0===t?0:1,borderTopColor:e.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,gap:4},children:[/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:14,width:"88%"}}),/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:12,width:"70%"}})]}),/* @__PURE__ */W(jn,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]})}function Qn({colors:e,rows:t=2}){/* @__PURE__ */
75
+ return T(z,{style:{width:"100%"},children:[/* @__PURE__ */W(Zn,{colors:e}),/* @__PURE__ */W(z,{style:{gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */W(Xn,{colors:e},n))})]})}function Jn({colors:e,bodyFont:t,message:n,variant:o="category",gameCardCount:r=3,categoryCount:i=2,showTierTabs:l=!1}){const a=n?.trim()||"Loading",c=(()=>{switch(o){case"sport":/* @__PURE__ */return W(Gn,{colors:e,count:Math.max(i,2)});case"event":/* @__PURE__ */return W(Yn,{colors:e});case"games":/* @__PURE__ */return W(qn,{colors:e,count:r,showTierTabs:l});case"propositions":/* @__PURE__ */return W(Kn,{colors:e});case"entries":/* @__PURE__ */return W(Qn,{colors:e,rows:2});default:/* @__PURE__ */return W(Nn,{colors:e,count:i})}})();/* @__PURE__ */
76
+ return T(z,{accessibilityRole:"progressbar",accessibilityLabel:a,accessibilityLiveRegion:"polite",style:{width:"100%"},children:[n?.trim()?/* @__PURE__ */W(S,{style:{fontSize:14,textAlign:"center",marginBottom:16,color:e.textMuted,fontFamily:t},children:n}):null,c]})}function $n(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function _n(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function eo(e){if(!e||e.quick_pick_only)return!1;const t=_n(e.selection_scope);if("samegamemulti"===_n(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(_n);return n.includes("samegame")||n.includes("samegamemulti")}function to(e){return(e.eventId??e.event_id)?.trim()||null}function no(e){const t=/* @__PURE__ */new Map;for(const n of e){if(!lo(n))continue;const e=to(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=oo(o.homeTeam,n.home_team),o.awayTeam=oo(o.awayTeam,n.away_team),o.sport=oo(o.sport,n.sport),o.league=oo(o.league,n.league),o.commenceTime=io(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=ro(e.commenceTime),o=ro(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function oo(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function ro(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function io(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=ro(e),r=ro(n);return r!==o?r<o?n:e:e.localeCompare(n)<=0?e:n}function lo(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function ao(e,t){return t?e.filter(e=>lo(e)&&to(e)===t):[]}function co(e,t){return!!t&&e.length>0&&e.every(e=>lo(e)&&to(e)===t)}var so={signature:1,premier:2,exclusive:3},ho=[{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 uo(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function go(e,t){return e.filter(e=>uo(e)===t)}function fo(e){const t=new Set(e.map(uo));return ho.filter(e=>t.has(e.level))}function po(e){return fo(e)[0]?.id??"signature"}var yo=.21875,mo=[1,5,10,20,50],bo=[4,12];function wo(e){return(e??"").trim().toLowerCase()}var xo={straight:"mirror",double:"double_mirror",triple:"triple_mirror"};function ko(e){if(!e||e.quick_pick_only)return!1;const t=wo(e.rule);return Object.values(xo).includes(t)}function So(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 Co(e){if(!ko(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??bo[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??bo[1],o=zo(function(e){const t=wo(e?.rule);return Object.keys(xo).find(e=>xo[e]===t)??"straight"}(e)),r=(e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n)).filter(e=>e>=o.minLegs);if(0===r.length)return null;const i=Math.max(e.min_bet??1,.01),l=e.max_bet??null,a=mo.filter(e=>e>=i&&(null===l||e<=l));return{variant:o,legOptions:r,defaultLegs:r.includes(8)?8:r[Math.floor(r.length/2)],defaultStake:Math.min(Math.max(20,i),l??20),minStake:i,maxStake:l,quickStakes:a,tagline:o.tagline,operatorMargin:e.operator_margin??.21875,perLegProbability:e.payout_structure?.per_leg_probability??.5}}var Bo=[{id:"straight",name:"Straight Mirror",depth:1,minLegs:4,waysToWin:"2 ways to win",description:"All or nothing. Get every call right, or every call wrong. Both pay the same.",tagline:"Call every leg. Get them all right, you win — all wrong, you win the same.",tierNames:["Perfect"]},{id:"double",name:"Double Mirror",depth:2,minLegs:6,waysToWin:"4 ways to win",description:"Perfect, or one off, at either edge. All right or all wrong, plus the near miss on each side.",tagline:"Perfect, or one off, at either edge — four ways to land a win.",tierNames:["Perfect","Near"]},{id:"triple",name:"Triple Mirror",depth:3,minLegs:9,waysToWin:"6 ways to win",description:"Within two of a clean sweep, either way. Longer legs only, so you still miss the middle.",tagline:"Within two of a clean sweep, either way — six ways to land a win.",tierNames:["Perfect","Near","Third"]}];function zo(e){return Bo.find(t=>t.id===e)??Bo[0]}function vo(e,t){if(t<0||t>e)return 0;const n=Math.min(t,e-t);let o=1;for(let r=0;r<n;r++)o=o*(e-r)/(r+1);return Math.round(o)}var Fo=4,Wo=6,To=[4,12],Ao=[5,10,20,50];function Lo(e){return!!e&&!e.quick_pick_only&&"safety_net"===(e.rule??"").trim().toLowerCase()}function Ro(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 Do(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)}function Mo(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 Po(e,t,n,o){const r=Math.max(0,Math.min(n,t)),i=e*o.perfectMultiple*Math.pow(2,t-o.perfectBaseLegs),l=r>0?e*(1-o.margin)*o.nearMissBudgetFraction/r:0,a=Math.pow(1/o.perLegProbability,t),c=[];let s=Mo(t,0);for(let d=1;d<=r;d+=1)s+=Mo(t,d),c.push(Do(l*a/s,o.roundTo));return{legs:t,stake:e,allowedMisses:r,perfect:i,nearMiss:c,sweep:i+c.reduce((e,t)=>e+t,0)}}function Ho(e,t){if(t<0||t>e.allowedMisses)return 0;let n=0===t?e.perfect:0;for(let o=Math.max(1,t);o<=e.nearMiss.length;o+=1)n+=e.nearMiss[o-1];return n}function Oo(e){return e.includes(8)?8:e[Math.floor(e.length/2)]}function Io(e){return e.toLowerCase().replace(/[^a-z]+/g," ").trim()}function Eo(e,t){const n=Io(t);return e.permitted_rules?.find(e=>Io(e.name??"").includes(n))??null}function jo(e,t,n){const o=t?.min_propositions??n,r=t?.max_propositions??null;return e.filter(e=>e>=o&&(null==r||e<=r))}function No(e){if(!Lo(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??To[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??To[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n),r=Eo(e,"Extra Shot"),i=Eo(e,"Double Shot"),l=jo(o,r,4).filter(e=>e>1),a=jo(o,i,6).filter(e=>e>2);if(0===l.length)return null;const c=[{id:"extra_shot",label:"Extra Shot",allowedMisses:1,stat:"Bigger payout",explain:"Miss one leg and you win the All but 1 prize. Get every leg right and you win both — the Perfect prize on top.",legOptions:l,defaultLegs:Oo(l),ruleId:r?.id??null}],s=!e.permitted_rules?.length||!!i;a.length>0&&s&&c.push({id:"double_shot",label:"Double Shot",allowedMisses:2,stat:"Safer play",explain:"Miss two legs and you win the All but 2 prize. Miss one and you win two prizes. Get every leg right and you win all three — the whole stack.",legOptions:a,defaultLegs:Oo(a),ruleId:i?.id??null});const d=Math.max(e.min_bet??5,.01),h=e.max_bet??null,u=Ao.filter(e=>null===h||e<=h);return{modes:c,defaultModeId:"extra_shot",defaultStake:Math.min(Math.max(20,d),h??20),minStake:d,maxStake:h,quickAdds:u,tagline:"The wider the safety net, the more misses it catches. The narrower it is, the bigger the top prize.",pricing:Ro(e)}}function Go(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function Yo(e,t,n){const o=Math.max(0,e-t),r=Po(20,e,o,n),i=[];for(let l=0;l<=o;l+=1){const t=Math.round(Ho(r,l));i.push({misses:l,label:`${e-l}/${e}`,multiplier:t/20,payout20:t})}return i}function Vo(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:Yo(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:Yo(e,e-2,t),expectedCorrect:e-2}]}function Uo(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:Vo(t,Ro(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:Go(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 qo(e){return null!=Uo(e)}var Ko=[500,1e3,2500,5e3,7500,1e4,12500,15e3],Zo=[12,11,10,9,8,7,6];function Xo(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function Qo(e){return Math.round(100*e)/100}function Jo(e,t,n=.21875){const o=Math.pow(2,t),r=e/(1-n)/o,i=Number.isInteger(r),l=Qo(r),a=i?r:Qo(.96*r);return{legs:t,exactStake:l,stake:a,margin:1-e/(a*o),multiple:e/a,oddsOneIn:o,discounted:!i}}function $o(e,t=Zo){return{dividend:e,rungs:t.map(t=>Jo(e,t))}}function _o(e,t){if(!Xo(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,r=Zo.filter(e=>e>=n&&e<=o);if(0===r.length)return null;const i=t?.dividends??Ko;return{dividends:i.map(e=>$o(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."}}function er(e,t){const n=e.allowed_propositions&&e.allowed_propositions.length>0?e.allowed_propositions.map(Number):[],o=e.min_propositions??e.num_propositions??null,r=e.max_propositions??e.num_propositions??null,i=0===n.length&&null!==o&&null!==r&&r>0,l=n.length>0?n:i?An(o,r):[],a=/* @__PURE__ */new Map;for(const p of t?.top_payouts??[]){const e=Number(p.proposition_count),t=Number(p.net_payout),n=Number(p.bet_amount??20);!Number.isFinite(e)||e<=0||a.set(e,{count:e,payout:Number.isFinite(t)?t:0,betAmount:Number.isFinite(n)&&n>0?n:20})}for(const p of l){const e=Number(p);a.has(e)||a.set(e,{count:e,payout:0,betAmount:20})}const c=Array.from(a.values()).sort((e,t)=>e.count-t.count),s=l.length>0?Math.max(...l.map(Number)):0,d=Xo(e)?_o(e):null,h=d?d.dividends.map(e=>({dividend:e.dividend,stakeFrom:Math.min(...e.rungs.map(e=>e.stake))})):void 0,u=d?[]:c.map(e=>({count:e.count,payout20:e.payout>0&&e.betAmount>0?e.payout/e.betAmount*20:0})),g=Uo(e,s),f="safety_net"===g?.kind?(g.options??[]).flatMap(e=>e.dividends?.length?[{id:e.id,label:e.label,tiers:e.dividends.map(e=>({label:e.label,payout20:e.payout20}))}]:[]):[];return{legOptions:l.map(Number),maxLegCount:s,tiers:u,modes:f,pydDividends:h,hasGenericDividends:(n.length>0||i)&&u.some(e=>e.payout20>0),minBet:Math.max(e.min_bet??1,1),maxBet:e.max_bet??null}}function tr({tiers:e,modes:t,pydDividends:n,onPlayCount:o,minBet:r=1,maxBet:i=null,colors:l,bodyFont:a,headingFont:s}){const d=e=>Math.min(Math.max(e,r),i??1/0),[h,u]=c(()=>String(d(20))),g=parseFloat(h),f=d(Number.isFinite(g)&&g>0?g:20),p=f/20,y=!!(t?.length||n?.length||e.some(e=>e.payout20>0)),m=!!t?.length;if(!y)return null;const b=/* @__PURE__ */T(z,{style:{marginBottom:8,flexDirection:"row",alignItems:"center",gap:4,flexWrap:"wrap"},children:[
78
77
  /* @__PURE__ */W(S,{style:{fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:a},children:"Example values for a"}),
79
78
  /* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"700",color:l.textMuted,fontFamily:a},children:"$"}),
80
79
  /* @__PURE__ */W(C,{value:h,onChangeText:u,onBlur:()=>u(String(f)),keyboardType:"numeric",accessibilityLabel:"Example bet amount",style:{width:64,paddingVertical:2,paddingHorizontal:5,borderRadius:6,borderWidth:1,borderColor:l.border,backgroundColor:l.background??"#fff",color:l.text,fontSize:11,fontWeight:"600",fontFamily:a}}),
81
- /* @__PURE__ */T(S,{style:{fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:a},children:["bet",null!=r?` (${$t(i)}–${$t(r)})`:` (min ${$t(i)})`,"."]})]});/* @__PURE__ */
82
- return T(z,{style:{width:"100%"},children:[m?/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"700",letterSpacing:1.4,textTransform:"uppercase",color:l.textMuted,fontFamily:a,marginBottom:6},children:"Compare dividends"}):null,/* @__PURE__ */T(z,{style:{paddingHorizontal:14,paddingVertical:12},children:[n?.length?null:b,t?.length?t.map((e,t)=>/* @__PURE__ */T(z,{style:{borderTopWidth:0===t?0:1,borderTopColor:l.border,paddingTop:0===t?0:8,marginTop:0===t?0:8},children:[/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"700",marginBottom:4,color:l.text,fontFamily:s},children:e.label}),e.tiers.map(e=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:4,gap:14},children:[/* @__PURE__ */T(S,{style:{color:l.textMuted,fontSize:11,flex:1,fontFamily:a},children:[e.label," correct"]}),/* @__PURE__ */W(S,{style:{fontWeight:"700",color:l.heading??l.text,fontSize:12,fontFamily:a},children:$t(e.payout20*p)})]},e.label))]},e.id)):/* @__PURE__ */T(v,n?.length?{children:[
83
- /* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingBottom:4,marginBottom:4,borderBottomWidth:1,borderBottomColor:l.border},children:[/* @__PURE__ */W(S,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:a},children:"Dividend"}),/* @__PURE__ */W(S,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:a},children:"Stake from"})]}),n.map(e=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:4},children:[/* @__PURE__ */W(S,{style:{fontWeight:"700",color:l.heading??l.text,fontSize:12,fontFamily:a},children:$t(e.dividend)}),/* @__PURE__ */W(S,{style:{fontWeight:"600",color:l.text,fontSize:12,fontFamily:a},children:$t(e.stakeFrom)})]},e.dividend)),
84
- /* @__PURE__ */W(S,{style:{marginTop:8,fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:a},children:"You set the dividend before kick-off. Longer climbs start from a smaller stake."})]}:{children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingBottom:4,marginBottom:4,borderBottomWidth:1,borderBottomColor:l.border},children:[/* @__PURE__ */W(S,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:a},children:"Legs played"}),/* @__PURE__ */W(S,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:a},children:"Payout"})]}),e.map(e=>/* @__PURE__ */T(o?B:z,{...o?{onPress:()=>o(e.count),accessibilityRole:"button"}:{},style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:o?6:4},children:[/* @__PURE__ */T(S,{style:{fontWeight:"600",color:o?l.primary:l.text,fontSize:12,fontFamily:a},children:[e.count," legs"]}),/* @__PURE__ */W(S,{style:{fontWeight:"600",color:e.payout20>0?l.text:l.textMuted,fontSize:12,fontFamily:a},children:e.payout20>0?$t(e.payout20*p):"—"})]},e.count))]})]})]})}function Ko({tabs:e,active:t,onChange:n,colors:o,bodyFont:i,useShortLabel:r}){return e.length<=1?null:/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8,marginBottom:12},children:e.map(e=>{const l=e.id===t;/* @__PURE__ */
85
- return W(B,{onPress:()=>n(e.id),accessibilityRole:"button",accessibilityState:{selected:l},style:{flex:1,minWidth:0,borderRadius:999,paddingHorizontal:4,paddingVertical:10,borderWidth:1,borderColor:l?o.primary:o.border,backgroundColor:l?o.primary:o.background??"#fff",alignItems:"center",justifyContent:"center",shadowColor:l?o.primary:o.border,shadowOffset:{width:0,height:4},shadowOpacity:l?.35:.25,shadowRadius:l?6:5,elevation:l?4:2},children:/* @__PURE__ */W(S,{numberOfLines:1,style:{fontFamily:i,fontSize:10,fontWeight:"700",letterSpacing:-.1,color:l?o.primaryText:o.primary},children:r?e.shortLabel:e.label})},e.id)})})}var Zo={scrollSnapType:"x mandatory"},Xo={scrollSnapAlign:"center"};function Qo({iconUrl:e,size:t,brandColor:n,iconColor:o,accentColor:i}){/* @__PURE__ */
80
+ /* @__PURE__ */T(S,{style:{fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:a},children:["bet",null!=i?` (${Qt(r)}–${Qt(i)})`:` (min ${Qt(r)})`,"."]})]});/* @__PURE__ */
81
+ return T(z,{style:{width:"100%"},children:[m?/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"700",letterSpacing:1.4,textTransform:"uppercase",color:l.textMuted,fontFamily:a,marginBottom:6},children:"Compare dividends"}):null,/* @__PURE__ */T(z,{style:{paddingHorizontal:14,paddingVertical:12},children:[n?.length?null:b,t?.length?t.map((e,t)=>/* @__PURE__ */T(z,{style:{borderTopWidth:0===t?0:1,borderTopColor:l.border,paddingTop:0===t?0:8,marginTop:0===t?0:8},children:[/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"700",marginBottom:4,color:l.text,fontFamily:s},children:e.label}),e.tiers.map(e=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:4,gap:14},children:[/* @__PURE__ */T(S,{style:{color:l.textMuted,fontSize:11,flex:1,fontFamily:a},children:[e.label," correct"]}),/* @__PURE__ */W(S,{style:{fontWeight:"700",color:l.heading??l.text,fontSize:12,fontFamily:a},children:Qt(e.payout20*p)})]},e.label))]},e.id)):/* @__PURE__ */T(F,n?.length?{children:[
82
+ /* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingBottom:4,marginBottom:4,borderBottomWidth:1,borderBottomColor:l.border},children:[/* @__PURE__ */W(S,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:a},children:"Dividend"}),/* @__PURE__ */W(S,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:a},children:"Stake from"})]}),n.map(e=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:4},children:[/* @__PURE__ */W(S,{style:{fontWeight:"700",color:l.heading??l.text,fontSize:12,fontFamily:a},children:Qt(e.dividend)}),/* @__PURE__ */W(S,{style:{fontWeight:"600",color:l.text,fontSize:12,fontFamily:a},children:Qt(e.stakeFrom)})]},e.dividend)),
83
+ /* @__PURE__ */W(S,{style:{marginTop:8,fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:a},children:"You set the dividend before kick-off. Longer climbs start from a smaller stake."})]}:{children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingBottom:4,marginBottom:4,borderBottomWidth:1,borderBottomColor:l.border},children:[/* @__PURE__ */W(S,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:a},children:"Legs played"}),/* @__PURE__ */W(S,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:a},children:"Payout"})]}),e.map(e=>/* @__PURE__ */T(o?B:z,{...o?{onPress:()=>o(e.count),accessibilityRole:"button"}:{},style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:o?6:4},children:[/* @__PURE__ */T(S,{style:{fontWeight:"600",color:o?l.primary:l.text,fontSize:12,fontFamily:a},children:[e.count," legs"]}),/* @__PURE__ */W(S,{style:{fontWeight:"600",color:e.payout20>0?l.text:l.textMuted,fontSize:12,fontFamily:a},children:e.payout20>0?Qt(e.payout20*p):"—"})]},e.count))]})]})]})}function nr({tabs:e,active:t,onChange:n,colors:o,bodyFont:r,useShortLabel:i}){return e.length<=1?null:/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8,marginBottom:12},children:e.map(e=>{const l=e.id===t;/* @__PURE__ */
84
+ return W(B,{onPress:()=>n(e.id),accessibilityRole:"button",accessibilityState:{selected:l},style:{flex:1,minWidth:0,borderRadius:999,paddingHorizontal:4,paddingVertical:10,borderWidth:1,borderColor:l?o.primary:o.border,backgroundColor:l?o.primary:o.background??"#fff",alignItems:"center",justifyContent:"center",shadowColor:l?o.primary:o.border,shadowOffset:{width:0,height:4},shadowOpacity:l?.35:.25,shadowRadius:l?6:5,elevation:l?4:2},children:/* @__PURE__ */W(S,{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)})})}var or={scrollSnapType:"x mandatory"},rr={scrollSnapAlign:"center"};function ir({iconUrl:e,size:t,brandColor:n,iconColor:o,accentColor:r}){/* @__PURE__ */
86
85
  return T(z,{style:{position:"relative",width:t,height:t},children:[/* @__PURE__ */T(A,{viewBox:"30 -5 280 280",width:t,height:t,children:[
87
86
  /* @__PURE__ */W(I,{x:90,y:55,width:210,height:210,rx:42,fill:n,opacity:.3}),
88
87
  /* @__PURE__ */W(I,{x:65,y:30,width:210,height:210,rx:42,fill:n,opacity:.55}),
89
- /* @__PURE__ */W(I,{x:40,y:5,width:210,height:210,rx:42,fill:n})]}),/* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",left:.107*t,top:.107*t,width:.607*t,height:.607*t},children:/* @__PURE__ */W(On,{iconUrl:e,width:.607*t,height:.607*t,iconColor:o,accentColor:i})})]})}function Jo({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:l,iconColor:s,accentColor:d,captionColor:h,bodyFont:g,legOptions:f,onPick:p,colors:y,menuShadow:b}){const[w,x]=c(!1),[k,C]=c(null),F=a(null),A=a(null),[R,L]=c(null),[D,M]=c(!1),[P,H]=c(null),O="web"===m.OS,I=40+40*f.length+12;r(()=>{if(!w||!O)return;const e=F.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.scrollX||window.pageXOffset||0,o=window.scrollY||window.pageYOffset||0,i=window.innerHeight-t.bottom,r=t.top,l=i<I&&r>i;L({top:t.top+o,bottom:t.bottom+o,right:t.right+n,flipUp:l})},[w,O,I]),i(()=>{if(!w)return;if(O){const e=e=>{const t=F.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||A.current&&A.current.contains(n)||x(!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 i=u.get("window").height-(t+o);M(i<I&&t>i),H({x:e,y:t,width:n,height:o})})},[w,O,I]);const E=/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:y.border},children:/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",color:y.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase",fontFamily:g},children:"How many picks?"})}),f.map((e,t)=>/* @__PURE__ */T(B,{onPress:()=>{x(!1),C(null),p(e)},onMouseEnter:()=>C(e),onMouseLeave:()=>C(t=>t===e?null:t),style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:0===t?0:1,borderTopColor:y.border,backgroundColor:k===e?y.backgroundAlt:"transparent"},children:[/* @__PURE__ */T(S,{style:{fontSize:14,fontWeight:"600",color:y.text,fontFamily:g},children:[e," picks"]}),/* @__PURE__ */W(S,{style:{backgroundColor:ne(y.primary,.14),color:y.primary,paddingVertical:2,paddingHorizontal:6,borderRadius:4,fontSize:10,fontWeight:"700",letterSpacing:.5,overflow:"hidden",fontFamily:g},children:"QP"})]},e))]});/* @__PURE__ */
90
- return T(z,{ref:F,style:{position:"relative"},children:[
91
- /* @__PURE__ */W(In,{iconUrl:e,gameName:t,onPress:()=>x(e=>!e),size:n,brandColor:o,cardColor:l,iconColor:s,accentColor:d,captionColor:h}),w&&O&&R&&"undefined"!=typeof document&&G(/* @__PURE__ */W("div",{ref:A,style:{position:"absolute",top:R.flipUp?void 0:R.bottom+6,bottom:R.flipUp&&"undefined"!=typeof window?window.innerHeight-R.top+6:void 0,left:R.right,transform:"translateX(-100%)",zIndex:20,backgroundColor:y.background,border:`1px solid ${y.border}`,borderRadius:8,minWidth:180,boxShadow:b,overflow:"hidden",fontFamily:g},children:E}),document.body),
92
- /* @__PURE__ */W(jn,{visible:w&&!O,anchor:P,onClose:()=>x(!1),flipUp:D,align:"right",children:/* @__PURE__ */W(z,{style:{elevation:6,backgroundColor:y.background,borderRadius:8,borderWidth:1,borderColor:y.border,minWidth:180,shadowColor:"#000",shadowOffset:{width:0,height:12},shadowOpacity:.16,shadowRadius:24,overflow:"hidden"},children:E})})]})}function $o({games:e,selectedGame:t,onSelectGame:n,loading:o,error:r,theme:s,colorScheme:d,showTier:h=!1,showCategory:u=!1,showTierFilter:g=!1,onPropositionCountChange:f,onPropositionCountSelected:p,onQuickPickGame:y,maxPayouts:m}){const b=je(s,d),w=b.colors,k=be(b),C=Ne(b),F=Ge(b),A=se(b),R=ce(b),L=fe(b),D="dark"===b.colorScheme,M=l(()=>yo(e),[e]),[P,H]=c(()=>mo(e));i(()=>{0!==M.length&&(M.some(e=>e.id===P)||H(M[0].id))},[M,P]);const O=l(()=>!g||M.length<=1?e:po(e,uo[P]),[e,g,M.length,P]),I=e=>e.allowed_propositions&&e.allowed_propositions.length>0&&e.game_name.replace(/\s+\d+\s*$/,"").trim()||e.game_name,E=(e,t)=>{e.quick_pick_only&&y&&t>0?y(e,t):(t>0&&!no(e)&&f?.(t),n(e),p?.())},[j,N]=c(0),G=j>0&&j<400,Y=G?108:124,V=j>0&&j<380,U=function(e,t){const n=t>0?Math.floor(t/68):e;return Math.max(2,Math.min(Math.ceil(e/2),n))}(O.length,j),q=j>0?(j-4*(U-1))/U:void 0,K=j>0?Math.min(.86*j,380):0,Z=K>0?Math.max((j-K)/2,4):4,X=K+14,Q=O.length>1,J=Q&&Z>=48,$=a(null),[_,ee]=c(0),te=e=>{const t=Math.max(0,Math.min(e,O.length-1));it($,t*X),ee(t)};i(()=>{it($,0,!1),ee(0)},[P]);const oe={shadowColor:"#000",shadowOpacity:D?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};return o?/* @__PURE__ */W(Zn,{colors:ke(b),count:Math.min(Math.max(e.length,2),4),showTierTabs:g&&M.length>1}):r?/* @__PURE__ */W(z,{style:_o.centerContainer,children:/* @__PURE__ */W(S,{style:{color:w.error,fontFamily:C},children:r})}):0===e.length?/* @__PURE__ */W(z,{style:_o.centerContainer,children:/* @__PURE__ */W(S,{style:{color:w.textMuted,fontFamily:C},children:"No games available"})}):/* @__PURE__ */T(z,{style:{flexDirection:"column"},onLayout:e=>N(e.nativeEvent.layout.width),children:[g&&/* @__PURE__ */W(Ko,{tabs:M,active:P,onChange:H,colors:w,bodyFont:C,useShortLabel:V}),0===O.length?/* @__PURE__ */W(z,{style:_o.centerContainer,children:/* @__PURE__ */W(S,{style:{color:w.textMuted,fontFamily:C},children:"No games in this collection"})}):/* @__PURE__ */T(z,{style:{position:"relative"},children:[/* @__PURE__ */W(x,{ref:$,horizontal:!0,showsHorizontalScrollIndicator:!1,decelerationRate:"fast",snapToInterval:X>0?X:void 0,snapToAlignment:"start",style:Zo,scrollEventThrottle:16,onScroll:e=>{if(X<=0)return;const t=Math.round(e.nativeEvent.contentOffset.x/X);ee(e=>e===t?e:t)},contentContainerStyle:{alignItems:"stretch",gap:14,paddingLeft:Z,paddingRight:Z,paddingBottom:8},children:O.map(e=>{const o=vn(e),i=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>Wn[e]??`Day ${e}`);return 1===n.length?n[0]:n.slice(0,-1).join(", ")+" & "+n[n.length-1]}(e),r=t?.id===e.id,l=String(e.id),a=hn(e),c=e.description||e.rule,s=e.call_to_action?.trim()||null,{legOptions:d,maxLegCount:g,tiers:f,modes:x,pydDividends:B,hasGenericDividends:v,minBet:D,maxBet:M}=Uo(e,m?.[e.id]),P=Ze(e),H=!o&&i?`Available ${i}`:null;/* @__PURE__ */
93
- return T(z,{style:[_o.gameCard,Xo,{width:K||void 0,flexGrow:0,flexShrink:0,borderColor:r?w.primary:w.border,backgroundColor:r?w.infoBg:w.background??k,opacity:o?1:.5},oe],pointerEvents:o?"auto":"none",children:[e.quick_pick_only&&y&&d.length>1?/* @__PURE__ */W(Jo,{iconUrl:P,gameName:I(e),size:Y,brandColor:w.primary,cardColor:k,iconColor:w.primaryText,accentColor:L,captionColor:w.textMuted,bodyFont:C,legOptions:d.map(Number),onPick:t=>E(e,t),colors:w,menuShadow:R}):/* @__PURE__ */W(In,{iconUrl:P,gameName:I(e),onPress:()=>E(e,g),size:Y,brandColor:w.primary,cardColor:k,iconColor:w.primaryText,accentColor:L,captionColor:w.primary}),
94
- /* @__PURE__ */T(S,{style:{marginTop:8,fontFamily:F,fontSize:13,letterSpacing:-.52,lineHeight:13},children:[/* @__PURE__ */W(S,{style:{fontWeight:"800",color:w.primary},children:"YES"}),/* @__PURE__ */W(S,{style:{fontWeight:"600",color:ne(w.primary,.85)},children:"NO"})]}),
95
- /* @__PURE__ */T(z,{style:{marginTop:2,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6},children:[/* @__PURE__ */W(S,{style:{fontFamily:F,fontWeight:"600",fontSize:G?19:21,color:A,letterSpacing:-.19,lineHeight:1.2*(G?19:21),textAlign:"center",paddingHorizontal:4},children:I(e)}),/* @__PURE__ */W(St,{variant:"icon",panel:ot(e),content:c||"Pick outcomes and land the payout for this game.",theme:b,title:I(e),label:`How to play ${I(e)}`,extra:/* @__PURE__ */W(qo,{tiers:v?f:[],modes:x,pydDividends:B,onPlayCount:d.length>1?t=>E(e,t):void 0,minBet:D,maxBet:M,colors:w,bodyFont:C,headingFont:F}),colors:w,bodyFont:C,headingFont:F})]}),s?/* @__PURE__ */W(S,{style:{marginTop:6,fontSize:13,lineHeight:17,fontWeight:"700",color:w.primary,textAlign:"center",fontFamily:C},children:s}):null,c?/* @__PURE__ */W(S,{style:{marginTop:8,fontSize:12.5,lineHeight:18,color:w.textMuted,textAlign:"center",fontFamily:C},children:c}):null,a.enabled&&/* @__PURE__ */W(z,{style:[_o.jackpotBadge,{backgroundColor:`${w.warning}15`,marginTop:8}],children:/* @__PURE__ */T(S,{style:[_o.jackpotBadgeText,{color:w.warning,fontFamily:C}],children:["★ ",a.progressive?a.amount>0?$t(a.amount):a.limit>0?`Up to ${$t(a.limit)}`:"Jackpot":$t(a.amount)]})}),(u||h)&&/* @__PURE__ */T(z,{style:[_o.tagsRow,{justifyContent:"center",marginTop:8}],children:[u&&e.category&&/* @__PURE__ */W(z,{style:[_o.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[_o.tagText,{color:de(b),fontFamily:C}],children:e.category})}),u&&/* @__PURE__ */W(z,{style:[_o.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[_o.tagText,{color:de(b),fontFamily:C}],children:e.rule})}),u&&e.lotto_type&&/* @__PURE__ */W(z,{style:[_o.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[_o.tagText,{color:de(b),fontFamily:C}],children:e.lotto_type})}),h&&null!=e.tier&&/* @__PURE__ */W(z,{style:[_o.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */T(S,{style:[_o.tagText,{color:de(b),fontFamily:C}],children:["Tier ",e.tier]})})]}),0===d.length&&/* @__PURE__ */W(z,{style:{marginTop:8,width:"100%"},children:/* @__PURE__ */W(at,{theme:b,variant:"primary",size:"sm",onPress:()=>{n(e),p?.()},children:"Select game"})}),H?/* @__PURE__ */W(z,{style:{marginTop:"auto",width:"100%",paddingTop:12},children:/* @__PURE__ */W(S,{style:{fontSize:11,lineHeight:15,fontWeight:"600",color:w.text,textAlign:"center",fontFamily:C},children:H})}):null]},l)})}),J&&/* @__PURE__ */W(v,{children:[-1,1].map(e=>{const t=e<0?_>0:_<O.length-1;/* @__PURE__ */
96
- return W(B,{accessibilityRole:"button",accessibilityLabel:e<0?"Previous game":"Next game",onPress:()=>te(_+e),disabled:!t,style:{position:"absolute",top:"38%",left:e<0?2:void 0,right:e>0?2:void 0,width:44,height:44,borderRadius:22,borderWidth:1,borderColor:w.border,backgroundColor:ne(w.background??"#fff",.94),alignItems:"center",justifyContent:"center",opacity:t?1:.3,zIndex:1,...oe},children:/* @__PURE__ */W(S,{style:{fontSize:18,lineHeight:20,color:w.primary,fontFamily:C},children:e<0?"‹":"›"})},e)})})]}),O.length>0&&Q&&/* @__PURE__ */W(z,{style:{flexDirection:"row",justifyContent:"center",flexWrap:"wrap",paddingTop:4,paddingBottom:8},children:O.map((e,t)=>/* @__PURE__ */W(B,{accessibilityRole:"button",accessibilityLabel:`Go to ${I(e)}`,onPress:()=>te(t),style:{paddingVertical:18.5,paddingHorizontal:5,marginVertical:-18.5,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(z,{style:{width:t===_?22:7,height:7,borderRadius:999,backgroundColor:t===_?w.primary:ne(w.primary,.25)}})},e.id))}),O.length>0&&Q&&/* @__PURE__ */T(z,{style:{borderTopWidth:1,borderTopColor:w.border,paddingTop:10,marginTop:2},children:[/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.6,color:w.textMuted,fontFamily:F,marginBottom:8},children:"All games"}),/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",gap:4},children:O.map((e,t)=>{const n=vn(e);/* @__PURE__ */
97
- return T(B,{accessibilityRole:"button",accessibilityState:{selected:t===_,disabled:!n},onPress:()=>(e=>{E(e,Uo(e,m?.[e.id]).maxLegCount)})(e),disabled:!n,style:{alignItems:"center",gap:4,paddingHorizontal:4,paddingVertical:6,borderRadius:16,borderWidth:1,borderColor:t===_?w.primary:"transparent",opacity:n?1:.5,width:q},children:[/* @__PURE__ */W(Qo,{iconUrl:Ze(e),size:G?44:52,brandColor:w.primary,iconColor:w.primaryText,accentColor:L}),/* @__PURE__ */W(S,{numberOfLines:2,style:{fontSize:11,fontWeight:"700",lineHeight:13,textAlign:"center",letterSpacing:-.11,color:t===_?w.primary:A,fontFamily:F},children:I(e)})]},e.id)})})]})]})}var _o=k.create({centerContainer:{alignItems:"center",justifyContent:"center",padding:32,gap:8},gameCard:{flexDirection:"column",alignItems:"center",borderWidth:1,borderRadius:24,paddingHorizontal:20,paddingTop:22,paddingBottom:20},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}}),ei=class{constructor(e){this.inflight=/* @__PURE__ */new Map,this.cache=/* @__PURE__ */new Map,this.apiUrl=e.apiUrl,this.apiKey=e.apiKey,this.fetchImpl=e.fetchImpl??fetch.bind(globalThis),this.getAuthHeaders=e.getAuthHeaders}invalidateCache(){this.cache.clear()}invalidate(){this.invalidateCache()}async request(e,t,n){const o=`${this.apiUrl}${e}`,i=(t?.method??"GET").toUpperCase(),r="GET"===i,l=r,a=!r&&!n?.idempotent,c=`${i} ${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(i){throw i}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",i=await this.request(o);return{games:i.payload||[],howToPlayMarkdown:i.how_to_play_markdown??null}}async getGame(e){return(await this.request(`/games/${e}`)).payload}async getPropositions(e){const t=new URLSearchParams;e?.event_id&&t.append("event_id",e.event_id),e?.sport&&t.append("sport",e.sport),e?.category&&t.append("category",e.category);const n=t.toString(),o=n?`/propositions?${n}`:"/propositions";return(await this.request(o)).payload||[]}async getSports(){return(await this.request("/propositions/sports")).sports||[]}async getPropositionsByIds(e){if(0===e.length)return[];const t=new URLSearchParams({ids:e.join(","),include_expired:"true"});return(await this.request(`/propositions?${t.toString()}`)).payload||[]}async getProposition(e){const t=(await this.request(`/propositions/${e}?include_expired=true`)).payload;return Array.isArray(t)?t.find(t=>t.id===e)??t[0]:t}async getGameEntries(e){const t=new URLSearchParams;null!=e?.user_id&&t.append("user_id",String(e.user_id)),null!=e?.pending&&t.append("pending",String(e.pending));const n=t.toString(),o=n?`/game-entries?${n}`:"/game-entries";return((await this.request(o)).payload||[]).map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),null!=t.stake&&null==t.bet_amount&&(t.bet_amount=Number(t.stake)),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t})}async createGameEntry(e){const t=e.proposition_ids.map(t=>({proposition_id:t,user_prediction:e.selections?.[t]??"yes"})),n={game_id:e.game_id,user_id:e.user_id,propositions:t};null!=e.stake&&(n.stake=e.stake),null!=e.rule_id&&(n.rule_id=e.rule_id);const o=(await this.request("/game-entries",{method:"POST",body:JSON.stringify(n)})).payload;return null!=o.stake&&null==o.bet_amount&&(o.bet_amount=Number(o.stake)),o}async getPayoutsDue(e){const t=new URLSearchParams;null!=e?.game_id&&t.set("game_id",String(e.game_id)),null!=e?.limit&&t.set("limit",String(e.limit)),null!=e?.offset&&t.set("offset",String(e.offset));const n=t.toString();return await this.request(n?`/game-entries/payouts/due?${n}`:"/game-entries/payouts/due")}async getEntryPayout(e){return(await this.request(`/game-entries/${e}/payout`)).payload}async markEntryPaidOut(e){const t=await this.request(`/game-entries/${e}/payout/mark-paid-out`,{method:"POST",body:JSON.stringify({})});return this.invalidate(),t.payload}async updateGameEntryResult(e,t){return(await this.request(`/game-entries/${e}/result`,{method:"POST",body:JSON.stringify(t)})).payload}async getGameMaxPayout(e,t){const n=null!=t?`?bet_amount=${encodeURIComponent(String(t))}`:"";return(await this.request(`/games/${e}/max-payout${n}`)).payload}async getGamesMaxPayouts(e,t){if(0===e.length)return{};const n=new URLSearchParams({ids:e.join(",")});null!=t&&n.set("bet_amount",String(t));const o=await this.request(`/games/max-payouts?${n.toString()}`),i={};for(const[r,l]of Object.entries(o.payload||{}))i[Number(r)]=l;return i}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 ti(e,t,o){const[r,l]=c([]),[s,d]=c(null),[h,u]=c(!o?.skip),[g,f]=c(null),p=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",y=a(t);y.current=t;const m=o?.skip??!1,b=n(async()=>{if(!m)try{u(!0),f(null);const t=await e.getGames(y.current);l(t.games),d(t.howToPlayMarkdown)}catch(t){f(t instanceof Error?t.message:"Failed to fetch games")}finally{u(!1)}},[e,p,m]);return i(()=>{b()},[b]),{games:r,howToPlayMarkdown:s,loading:h,error:g,refetch:n(async()=>{e.invalidate(),await b()},[e,b])}}function ni(e,t,o){const[r,l]=c([]),[s,d]=c(!o?.skip),[h,u]=c(null),g=o?.skip??!1,f=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!g)try{d(!0),u(null);const t=await e.getPropositions(p.current);l(t)}catch(t){u(t instanceof Error?t.message:"Failed to fetch propositions")}finally{d(!1)}},[e,f,g]);return i(()=>{y()},[y]),{propositions:r,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function oi(e,t){const[o,r]=c([]),[l,a]=c(!t?.skip),[s,d]=c(null),h=t?.skip??!1,u=n(async()=>{if(!h)try{a(!0),d(null),r(await e.getSports())}catch(t){d(t instanceof Error?t.message:"Failed to fetch sports")}finally{a(!1)}},[e,h]);return i(()=>{u()},[u]),{sports:o,loading:l,error:s,refetch:n(async()=>{e.invalidate(),await u()},[e,u])}}function ii(e,t,o){const[r,l]=c([]),[s,d]=c(!o?.skip),[h,u]=c(null),g=o?.skip??!1,f=t?`${t.user_id??""}_${t.pending??""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!g)try{d(!0),u(null);const t=await e.getGameEntries(p.current);l(t)}catch(t){u(t instanceof Error?t.message:"Failed to fetch entries")}finally{d(!1)}},[e,f,g]);return i(()=>{y()},[y]),{entries:r,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function ri(e,t,o){const[r,l]=c({}),[s,d]=c(!1),h=o?.skip??!1,u=o?.betAmount,g=a(/* @__PURE__ */new Set);return i(()=>{if(h||0===t.length)return;const n=t.filter(e=>!(e.id in r)&&!g.current.has(e.id));if(0===n.length)return;for(const e of n)g.current.add(e.id);let o=!1;return d(!0),(async()=>{try{const t=await e.getGamesMaxPayouts(n.map(e=>e.id),u);o||l(e=>({...e,...t}))}catch{}finally{o||d(!1)}})(),()=>{o=!0}},[e,t.map(e=>e.id).join(","),h,u]),{maxPayouts:r,loading:s,refetchGame:n(async(t,n)=>{if(!h)try{const o=await e.getGamesMaxPayouts([t],n??u);o[t]&&l(e=>({...e,[t]:o[t]}))}catch{}},[e,h,u])}}function li(e){const[t,o]=c(!1),[i,r]=c(null),[l,a]=c(null);return{createEntry:async t=>{try{o(!0),r(null),await function(e=15e3){return"undefined"==typeof navigator||!1!==navigator.onLine||"undefined"==typeof window||"function"!=typeof window.addEventListener?Promise.resolve():new Promise(t=>{const n=()=>{window.removeEventListener("online",n),clearTimeout(o),t()},o=setTimeout(n,e);window.addEventListener("online",n)})}();const n=await e.createGameEntry(t);return a(n),n}catch(n){const e=n instanceof Error?n.message:"Failed to create entry";throw r(e),new Error(e)}finally{o(!1)}},loading:t,error:i,entry:l,clearSubmitError:n(()=>r(null),[])}}function ai(e){const[t,n]=c(e?"sport":"game"),[o,i]=c(null),[r,l]=c({}),[a,s]=c(null);return{step:t,selectedGame:o,selections:r,placedEntry:a,setGameOnly:e=>{i(e)},clearSelectedGame:()=>{i(null),l({})},goToSportSelection:e=>{e&&i(e),n("sport")},goToConfirmation:()=>{n("confirm")},goToSuccess:e=>{s(e),n("success")},goBack:()=>{"confirm"===t?n("sport"):"sport"===t&&(n("game"),i(null),l({}))},reset:()=>{n("game"),i(null),l({}),s(null)},toggleSelection:(e,t)=>{l(n=>{const o={...n};return o[e]===t?delete o[e]:o[e]=t,o})}}}function ci(e){const[t,o]=c(!1),[i,r]=c(null),[l,a]=c(null);return{evaluate:n(async(t,n)=>{try{o(!0),r(null);const i=await e.evaluateRule(t,n);return a(i),i}catch(i){const e=i instanceof Error?i.message:"Failed to evaluate rule";throw r(e),new Error(e)}finally{o(!1)}},[e]),loading:t,error:i,result:l}}function si(e){const[t,o]=c(!1),[i,r]=c(null),[l,a]=c(null);return{calculate:n(async(t,n)=>{try{o(!0),r(null);const i=await e.calculatePayout(t,n);return a(i),i}catch(i){const e=i instanceof Error?i.message:"Failed to calculate payout";throw r(e),new Error(e)}finally{o(!1)}},[e]),loading:t,error:i,result:l}}function di(e){const[t,o]=c(!1),[i,r]=c(null),[l,a]=c(null);return{preview:n(async(t,n)=>{try{o(!0),r(null);const i=await e.getEntryPreview(t,n);return a(i),i}catch(i){const e=i instanceof Error?i.message:"Failed to preview entry";throw r(e),new Error(e)}finally{o(!1)}},[e]),loading:t,error:i,result:l}}var hi=[1,5,10,20,50,100],ui=[4,12];function gi(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function fi(e,t,n){const o=n?.operatorMargin??.2,i=n?.perLegProbability??.5,r=Math.round(Math.pow(1/i,t)),l=(1-o)*Math.pow(1/i,t);return{legs:t,stake:e,prize:Math.round(e*l*100)/100,multiple:l,oddsOneIn:r}}function pi(e){if(!gi(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??ui[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??ui[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 i=Math.max(e.min_bet??1,.01),r=e.max_bet??null,l=hi.filter(e=>e>=i&&(null===r||e<=r));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(10,i),r??10),minStake:i,maxStake:r,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 yi=50,mi=[25,50,75,100],bi=[{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 wi(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function xi(e,t){return Math.round(e*t/50*100)/100}function ki(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:xi(o,t),cumulative:xi(n,t)}))}function Si(e,t){return xi(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function Ci(e,t,n){return xi(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)}function Bi(e){if(!wi(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,i=bi.filter(e=>t&&t.length>0?t.includes(e.legs):e.legs>=n&&e.legs<=o);if(0===i.length)return null;const r=e.min_bet??mi[0],l=e.max_bet??mi[mi.length-1],a=mi.filter(e=>e>=r&&e<=l);return{ladders:i,defaultLegs:i.some(e=>8===e.legs)?8:i[Math.floor(i.length/2)].legs,defaultStake:a.includes(50)?50:a[0]??50,stakes:a.length>0?a:mi,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}var zi=.21875,Fi=[1,5,10,20,50],vi=[4,12];function Wi(e){return!!e&&!e.quick_pick_only&&"mirror"===(e.rule??"").trim().toLowerCase()}function Ti(e,t,n){const o=n?.operatorMargin??.21875,i=n?.perLegProbability??.5,r=Math.round(Math.pow(2,t)),l=Math.pow(i,t)+Math.pow(1-i,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:r,winningOutcomes:2,oddsOneIn:a}}function Ai(e){if(!Wi(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??vi[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??vi[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 i=Math.max(e.min_bet??1,.01),r=e.max_bet??null,l=Fi.filter(e=>e>=i&&(null===r||e<=r));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(10,i),r??10),minStake:i,maxStake:r,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}}var Ri=.21875,Li=6,Di=5,Mi=1,Pi=2;function Hi(e){return!!e&&!e.quick_pick_only&&"six_again"===(e.rule??"").trim().toLowerCase()}var Oi={golden_point:!1,captains_challenge:!1};function Ii(e,t,n){const o=1+(t.golden_point?1:0)+(t.captains_challenge?1:0),i=e*n.baseMultiple*(t.golden_point?n.goldenPointFactor:1),r=t.captains_challenge?e*n.challengeMultiple:0;return{legs:n.legs,unit:e,stake:e*o,base:i,challenge:r,perfect:i+r,lowestWinningCount:n.legs-(t.captains_challenge?n.challengeMisses:0),ruleId:Ei(t,n)}}function Ei(e,t){return e.captains_challenge?e.golden_point?t.ruleIds.goldenChallenge:t.ruleIds.challenge:t.ruleIds.base}function ji(e,t){const n=Ii(1,e,t);return{perfect:n.perfect/n.stake,challenge:n.challenge/n.stake}}function Ni(e,t){return e.permitted_rules?.find(e=>t((e.name??"").toLowerCase().replace(/[^a-z]+/g," ").trim()))??null}function Gi(e){if(!Hi(e)||!e)return null;const t=e.num_propositions??e.min_propositions??6;if(t<2)return null;const n=e.operator_margin??.21875,o=Math.max(e.min_bet??10,.01),i=null!=e.max_bet?Math.max(o,Math.floor(e.max_bet/3/o)*o):Math.max(o,100),r=Ni(e,e=>e.includes("challenge")&&!e.includes("golden")),l=Ni(e,e=>e.includes("challenge")&&e.includes("golden")),a=Ni(e,e=>!e.includes("challenge"))??null;return{legs:t,unitMin:o,unitStep:o,unitMax:i,defaultUnit:o,baseMultiple:Math.round(Math.pow(2,t)*(1-n)*100)/100,challengeMultiple:5,challengeMisses:1,goldenPointFactor:2,boosts:[{id:"golden_point",label:"Golden Point",costUnits:1},{id:"captains_challenge",label:"Captain's Challenge",costUnits:1}],tagline:"Set your play, then pick your six. Every call a yes or a no.",ruleIds:{base:a?.id??e.default_rule_id??null,challenge:r?.id??null,goldenChallenge:l?.id??null}}}function Yi(e){return e?.quick_pick_only?"quick_pick":gi(e)?"game_set":jo(e)?"pick_your_dividend":wi(e)?"ladder":Wi(e)?"mirror":So(e)?"safety_net":Hi(e)?"six_again":no(e)?"selections":Oo(e)?"rule_setup":"selections"}function Vi(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(no(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 Ui(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||no(e)||Vi(e))}function qi(e){switch(Yi(e)){case"ladder":return{belowRequiredHint:(e,t)=>`Drop to Ladder ${e} or add another pick to stay on Ladder ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay on Ladder ${e}.`,switchTierLabel:e=>`Switch to Ladder ${e}`,overloadTitle:"Add more picks to climb higher",tableColumnLabel:"Ladder",tierButtonLabel:e=>`Ladder ${e}`};case"game_set":case"pick_your_dividend":case"mirror":case"safety_net":case"six_again":return{belowRequiredHint:(e,t)=>`Drop to ${e} legs or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e} legs.`,switchTierLabel:e=>`Switch to ${e} legs`,overloadTitle:"Add more legs to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`${e} legs`};default:return{belowRequiredHint:(e,t)=>`Drop to a ${e}-leg multi or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e}.`,switchTierLabel:e=>`Switch to ${e}-leg`,overloadTitle:"Add more picks to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`Multi ${e}`}}}function Ki(e){const t=Yi(e);return"six_again"===t||"pick_your_dividend"===t}function Zi(e){return"six_again"===Yi(e)?"Set by your ticket and boosts.":"Set by your dividend ladder rung."}function Xi(e,t,n){if(!e||t<=0||n<=0)return 0;switch(Yi(e)){case"game_set":return fi(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize;case"mirror":return Ti(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize;case"pick_your_dividend":return function(e,t,n=Io){if(!(e>0&&t>0))return 0;for(const o of n)if(Math.abs(Go(o,e).stake-t)<.005)return o;return 0}(t,n);default:return 0}}var Qi=t(null),Ji={};function $i(){const e=o(Qi);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function _i({apiUrl:t,apiKey:o,fetchImpl:r,getAuthHeaders:s,userId:d,getUserBalance:h,children:u,theme:g,colorScheme:f,demoGames:p,demoPropositions:y,demoEntries:m,demoMaxPayouts:b,gameCategory:w,jurisdiction:x,initialGameId:k,filterSport:S,initialSport:C,initialEventId:B,initialEventLabel:z,sportBaseKey:F,disableQuickPick:v=!1,renderTeamLogo:T,renderPropositionSilk:A,selectionVariant:R,disableEventSwipe:L,enableSportFavourites:D,onEntryPlaced:M,onBeforeSubmit:P,onCancel:H,onShare:O,onRecharge:I,onClearEventFilter:E,screenSize:j="desktop",howToPlayMarkdown:N,sportDisplayNames:G,categoryDisplayNames:Y}){const V=je(g,f),U=Ne(V),q=Ge(V),K=!(!p||!y),Z=l(()=>new ei({apiUrl:t,apiKey:o,fetchImpl:r,getAuthHeaders:s}),[t,o,r,s]),[X,Q]=c(0),J=a(0),[$,_]=c(0),[ee,te]=c([]),[ne,oe]=c({}),[ie,re]=c({}),[le,ae]=c(void 0),[ce,se]=c(null),[de,he]=c(void 0),ue=e.useCallback(async()=>{if(h)try{const e=await h();"number"==typeof e&&Number.isFinite(e)&&he(e)}catch(e){}},[h]);i(()=>{h?ue():he(void 0)},[h,ue]);const ge=a(null),fe=a(null),[pe,ye]=c(null),[me,be]=c(C??null),[we,xe]=c(B??null);i(()=>{C&&be(C)},[C]),i(()=>{xe(B??null)},[B]);const[ke,Se]=c(B),Ce=a(!1);i(()=>{if(!B)return Se(void 0),void(Ce.current=!1);Ce.current||Se(B)},[B]);const Be=w??pe??void 0,ze=S??C??void 0,Fe=yn(me??ze,F),ve=yn(ze,F)??ze,We=me??void 0,{games:Te,howToPlayMarkdown:Ae,loading:Re,error:Le}=ti(Z,{category:Be,jurisdiction:x,sport:Fe},{skip:K}),{propositions:De,loading:Me,error:Pe}=ni(Z,{category:Be,sport:ve,event_id:ke},{skip:K}),{sports:He,loading:Oe}=oi(Z,{skip:K}),{createEntry:Ie,loading:Ee,error:Ye,clearSubmitError:Ve}=li(Z),{preview:Ue}=di(Z),qe=l(()=>Bn((K?p:Te)??[],{category:Be,sport:Fe??We,sportBaseKey:F}),[K,p,Te,Be,Fe,We,F]),Ke=N??Ae??null,{maxPayouts:Ze,refetchGame:Xe}=ri(Z,qe??[],{skip:K,betAmount:20}),Qe=K?b??Ji:Ze,Je=K?y:De,$e=S?(Je??[]).filter(e=>e.sport===S):Je,_e=l(()=>an($e??[]),[$e]),et=l(()=>Be||(1===_e.length?_e[0]:void 0),[Be,_e]),tt=l(()=>{const e=$e??[];return et?xn(e,{category:et,sportBaseKey:F}):e},[$e,et,F]),nt=l(()=>We?xn(tt,{sport:We,sportBaseKey:F}):tt,[tt,We,F]),ot=l(()=>({category:et,sport:We,sportBaseKey:F}),[et,We,F]),it=l(()=>{const e=(qe??[]).filter(e=>e.active);if(!et&&_e.length>1)return[];const t=et?Bn(e,ot):e;return et||We?function(e,t,n){return n?.category||n?.sport?e.filter(e=>Cn(e,t,n)):e}(t,nt,ot):t},[qe,nt,ot,et,We,_e.length]),{step:rt,selectedGame:lt,selections:at,placedEntry:ct,setGameOnly:st,clearSelectedGame:dt,goToSportSelection:ht,goToConfirmation:ut,goToSuccess:gt,goBack:ft,reset:pt,toggleSelection:yt}=ai(k),mt=e.useCallback(()=>{Ce.current=!0,Se(void 0),pt(),E?.()},[pt,E]),bt=!!ke,wt=bt?z:void 0,xt=!K&&(Re||Me||!!lt&&Oe),kt=K?null:lt?Le||Pe:Le,St=l(()=>lt?Fn(nt,lt,F):nt,[lt,nt,F]),Ct=l(()=>{const e=lt?Fn(tt,lt,F):tt,t=lt?.allowed_sports,n=/* @__PURE__ */new Map;for(const o of e){const i=tn(o,e);"Other"!==i&&(t?.length&&!t.includes(i)||n.set(i,(n.get(i)??0)+1))}return Array.from(n.entries()).sort((e,t)=>t[1]-e[1]).map(([e,t])=>({key:e,count:t}))},[lt,tt,F]),Bt=l(()=>Ct.map(e=>e.key),[Ct]),zt=l(()=>lt?St:tt,[lt,St,tt]),Ft=l(()=>xn(lt?St:tt,{category:et}),[lt,St,tt,et]),vt=l(()=>{const e=new Set(Bt);return He.filter(t=>e.has(t.key))},[He,Bt]),Wt=l(()=>xn(St,{category:et,sport:me}),[St,et,me]),Tt=l(()=>{if(!lt||!no(lt))return[];const{min:e}=dn(lt,le),t=le??e;return io(Wt).filter(e=>e.propositionCount>=t)},[lt,le,Wt]),At=l(()=>no(lt)?so(Wt,we):Wt,[lt,Wt,we]),Rt=function(e,t){const[n,o]=c([]),r=a(/* @__PURE__ */new Set),s=l(()=>{const e=/* @__PURE__ */new Map;for(const n of t)e.set(n.id,n);for(const t of n)e.set(t.id,t);return e},[t,n]),d=l(()=>e?function(e){const t=/* @__PURE__ */new Set;for(const n of e)if(Et(n))for(const e of jt(n))t.add(e);return[...t]}(t).filter(e=>!s.has(e)):[],[e,t,s]);return i(()=>{if(!e||0===d.length)return;const t=d.filter(e=>!r.current.has(e));if(0===t.length)return;for(const e of t)r.current.add(e);let n=!1;return e.getPropositionsByIds(t).then(e=>{!n&&e.length>0&&o(t=>[...t,...e])}).catch(()=>{}),()=>{n=!0}},[e,d]),s}(K?null:Z,At),Lt=Object.keys(at).map(Number),Dt=Lt.length,Mt=l(()=>Wt.filter(e=>Lt.includes(e.id)),[Wt,Lt]);i(()=>{w||pe||1===_e.length&&ye(_e[0])},[w,pe,_e]),i(()=>{if(!lt)return;const e=St,t=new Set(e.map(on));let n=pe;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==pe&&ye(n));const o=n?e.filter(e=>on(e)===n):e,i=new Set(function(e){const t=/* @__PURE__ */new Set;for(const n of e){const o=tn(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),r=lt.allowed_sports;be(e=>e&&i.has(e)&&(!r?.length||r.includes(e))?e:1===r?.length&&i.has(r[0])?r[0]:1===i.size?Array.from(i)[0]:(()=>{const e=/* @__PURE__ */new Map;for(const i of o){const t=tn(i,o);"Other"!==t&&(r?.length&&!r.includes(t)||e.set(t,(e.get(t)??0)+1))}let t=null,n=0;for(const[o,i]of e)i>n&&(t=o,n=i);return t})())},[lt?.id,St,pe]),i(()=>{Ve()},[lt?.id,rt,Ve]),i(()=>{lt&&et&&(kn(lt,et)||dt())},[lt,et,dt]),i(()=>{lt&&(Cn(lt,nt,{category:et,sport:me,sportBaseKey:F})||dt())},[lt,et,me,F,nt,dt]),i(()=>{if(lt){const e=ge.current,t=fe.current!==lt.id;if(fe.current=lt.id,null!=e?.stake&&e.stake>0?_(e.stake):t&&_(0),e){const{count:t}=e;return ge.current=null,ae(t),void Q(t)}if(lt.allowed_propositions&&lt.allowed_propositions.length>0){const e=le;null!=e&&lt.allowed_propositions.includes(e)?Q(e):(ae(void 0),Q(0))}else ae(void 0),Q(lt.num_propositions||lt.max_propositions||0)}},[lt]);const Pt=(e,t,n)=>{const o=(Qe[e]?.top_payouts??[]).find(e=>e.proposition_count===t),i=o&&o.bet_amount&&o.bet_amount>0?o.bet_amount:20,r=o&&i>0?o.net_payout/i*n:0;return r>0?r:Xi((qe??[]).find(t=>t.id===e)??(lt?.id===e?lt:null),t,n)};i(()=>{if("sport"!==rt&&"confirm"!==rt||!lt||K)return;const e=no(lt)&&we?At.length:Number.MAX_SAFE_INTEGER;let t;if(lt.allowed_propositions&&lt.allowed_propositions.length>0){const n=lt.allowed_propositions?[...lt.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void re({});const o=le??n[0],i=n.filter(e=>e>o);if(0===i.length)return void re({});t=[o,...i]}else{const{min:n,max:o}=dn(lt),i=Math.min(o,e);if(n<=0||i<=n)return void re({});t=Array.from({length:i-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=Pt(lt.id,o,20);re(n)},[rt,lt,le,we,At.length,K,Qe]),i(()=>{if("confirm"!==rt||!lt)return;const e=Lt.length;if(0===e)return;let t=!1;const n={};for(let i=0;i<=e;i++)n[i]=Pt(lt.id,i,$);oe(n),e!==J.current?(J.current=e,Q(e)):(X>e||X<=0&&e>0)&&Q(e);const o=$>0?$:Math.max(lt.min_bet??20,.01);return(async()=>{try{const n=await Ue(lt.id,{actual:X,predicted:X,total:e,bet_amount:o,rule_id:ce});if(t)return;if(te(n.winning_counts),$>0&&n.payouts){const e={};for(const[t,o]of Object.entries(n.payouts)){const n=Number(t);e[n]=o>0?o:Pt(lt.id,n,$)}oe(e)}}catch{t||te([])}})(),()=>{t=!0}},[rt,lt,Lt.length,X,$,Ue,Qe,ce]);const Ht=l(()=>{return t=ce,(e=lt)&&null!=t?e.permitted_rules?.find(e=>e.id===t)??null:null;var e,t},[lt,ce]),Ot=!no(lt)||ho(Mt,we),It=lt?dn(lt,void 0,Ht):null,Nt=!(!lt||!Ot)&&(lt.allowed_propositions&&lt.allowed_propositions.length>0?null!=le&&Dt===le&&sn(Dt,It?.min,It?.max):sn(Dt,It?.min,It?.max)),Gt=lt?.min_bet??0,Yt=Math.max(Gt,.01),Vt=null==de||$<=de,Ut=!Ee&&$>=Yt&&Nt&&Vt,qt=e=>{ae(e),Q(e);for(const t of Object.keys(at))yt(Number(t),at[Number(t)])},Kt=e=>{ae(e),Q(e)},Zt=e=>{xe(no(e)?B??null:null),st(e)},Xt=e=>{if(e!==we){for(const e of Object.keys(at)){const t=Number(e);yt(t,at[t])}xe(e)}},Qt=(e,t,n)=>{ge.current={count:t,stake:n},st(e),Xe(e.id);const o=e.allowed_sports??[];let i=null;me&&o.some(e=>mn(me,e,F))?i=me:1===o.length&&(i=o[0]),be(i);for(const c of Object.keys(at)){const e=Number(c);yt(e,at[e])}let r=xn(Fn($e??[],e,F),{category:et,sport:i,sportBaseKey:F});const l=Math.max(0,Math.min(t,r.length)),a=[...r].sort(()=>Math.random()-.5).slice(0,l);for(const c of a)yt(c.id,Math.random()<.5?"yes":"no");ut()},Jt=a(!1),$t=async()=>{if(lt&&Nt&&!Jt.current){if(K){const e={id:Math.floor(1e4*Math.random()),game_id:lt.id,user_id:d,proposition_ids:Lt,selections:at,pending:!0,expected_correct:X,bet_amount:$};return M?.(e),gt(e),void ue()}Jt.current=!0;try{P&&await P($);const e=await Ie({game_id:lt.id,user_id:d,proposition_ids:Lt,selections:at,stake:$,rule_id:Ht?.id??null});M?.(e),gt(e),ue()}catch(e){}finally{Jt.current=!1}}},_t=n(e=>G?.[e]??vt.find(t=>t.key===e)?.label??fn(e,void 0,F),[G,vt,F]),en=n(e=>pn(e,Y),[Y]),nn=l(()=>({theme:V,bodyFont:U,headingFont:q,games:it,propositions:At,compositeComponentById:Rt,propositionsForCategoryPicker:zt,sportsForSelectedGame:Bt,sportOptions:Ct,propositionsForSportPicker:Ft,sportSummaries:vt,loading:xt,error:kt,step:rt,selectedGame:lt,selections:at,placedEntry:ct,selectedPropositionIds:Lt,selectedPropositions:Mt,selectionValid:Nt,selectedRuleId:ce,setSelectedRuleId:se,selectedRule:Ht,answeredCount:Dt,betAmount:$,setBetAmount:_,expectedCorrect:X,setExpectedCorrect:Q,selectedPropositionCount:le,handlePropositionCountChange:qt,upgradePropositionCount:Kt,winningCounts:ee,payouts:ne,overloadPayouts:ie,submitting:Ee,submitError:Ye,canSubmit:Ut,gamePrice:Gt,userBalance:de,hasSufficientBalance:Vt,refreshUserBalance:ue,handleSubmit:$t,selectGame:Zt,goToSportSelection:ht,goToConfirmation:ut,goBack:ft,reset:pt,clearSelectedGame:dt,toggleSelection:yt,quickPickGame:Qt,selectedCategory:pe,setSelectedCategory:ye,selectedSport:me,setSelectedSport:be,selectedEventId:we,sameGameMultiEvents:Tt,selectSameGameMultiEvent:Xt,apiUrl:t,apiKey:o,fetchImpl:r,getAuthHeaders:s,userId:d,disableQuickPick:v,renderTeamLogo:T,renderPropositionSilk:A,selectionVariant:R,disableEventSwipe:L,enableSportFavourites:D,filterSport:S,initialSport:C,initialEventId:B,sportBaseKey:F,gameCategory:w,eventFilterActive:bt,eventFilterLabel:wt,clearEventFilter:mt,screenSize:j,displaySportName:_t,displayCategoryName:en,maxPayouts:Qe??{},howToPlayMarkdown:Ke,onEntryPlaced:M,onCancel:H,onShare:O,onRecharge:I,demoEntries:m,demoGames:p,demoPropositions:y}),[V,U,q,it,At,Rt,zt,Ft,Bt,Ct,vt,xt,kt,rt,lt,at,ct,Lt,Mt,Nt,Dt,$,X,le,ce,Ht,ee,ne,ie,Ee,Ye,Ut,Gt,t,o,d,de,r,s,v,T,A,R,L,D,S,C,B,F,w,j,bt,wt,mt,pe,me,we,Tt,Qe,Ke,M,H,O,I,E,m,p,y,qt,_t,en]);/* @__PURE__ */
98
- return W(Qi.Provider,{value:nn,children:u})}function er({onPress:e,onDoubleClick:t,label:n="QUICKPICK",size:i="md",yesColor:r,noColor:l,theme:c}){const s=o(Qi),d=c??s?.theme??Be,h=ae(d),u=d.colors,g=r??ue(d),f=l??ge(d),p="sm"===i,y=p?h.space.xs:h.space.sm,m=p?6:8,b=p?h.fontSize.sm:h.fontSize.md,w=p?8.5:10,x=a(0);/* @__PURE__ */
99
- return T(B,{onPress:()=>{if(e(),t){const e=Date.now();e-x.current<300?(x.current=0,t()):x.current=e}},activeOpacity:.8,accessibilityRole:"button",accessibilityLabel:n,style:[tr.container,{borderColor:ne(u.border,.6),borderRadius:h.radius.sm,minHeight:h.touchTarget.min}],children:[/* @__PURE__ */T(z,{style:tr.topRow,children:[
88
+ /* @__PURE__ */W(I,{x:40,y:5,width:210,height:210,rx:42,fill:n})]}),/* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",left:.107*t,top:.107*t,width:.607*t,height:.607*t},children:/* @__PURE__ */W(Pn,{iconUrl:e,width:.607*t,height:.607*t,iconColor:o,accentColor:r})})]})}function lr({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:l,iconColor:s,accentColor:d,captionColor:h,bodyFont:g,legOptions:f,onPick:p,colors:y,menuShadow:b}){const[w,x]=c(!1),[k,C]=c(null),v=a(null),A=a(null),[L,R]=c(null),[D,M]=c(!1),[P,H]=c(null),O="web"===m.OS,I=40+40*f.length+12;i(()=>{if(!w||!O)return;const e=v.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<I&&i>r;R({top:t.top+o,bottom:t.bottom+o,right:t.right+n,flipUp:l})},[w,O,I]),r(()=>{if(!w)return;if(O){const e=e=>{const t=v.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||A.current&&A.current.contains(n)||x(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}const e=v.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=u.get("window").height-(t+o);M(r<I&&t>r),H({x:e,y:t,width:n,height:o})})},[w,O,I]);const E=/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:y.border},children:/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",color:y.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase",fontFamily:g},children:"How many picks?"})}),f.map((e,t)=>/* @__PURE__ */T(B,{onPress:()=>{x(!1),C(null),p(e)},onMouseEnter:()=>C(e),onMouseLeave:()=>C(t=>t===e?null:t),style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:0===t?0:1,borderTopColor:y.border,backgroundColor:k===e?y.backgroundAlt:"transparent"},children:[/* @__PURE__ */T(S,{style:{fontSize:14,fontWeight:"600",color:y.text,fontFamily:g},children:[e," picks"]}),/* @__PURE__ */W(S,{style:{backgroundColor:ne(y.primary,.14),color:y.primary,paddingVertical:2,paddingHorizontal:6,borderRadius:4,fontSize:10,fontWeight:"700",letterSpacing:.5,overflow:"hidden",fontFamily:g},children:"QP"})]},e))]});/* @__PURE__ */
89
+ return T(z,{ref:v,style:{position:"relative"},children:[
90
+ /* @__PURE__ */W(Hn,{iconUrl:e,gameName:t,onPress:()=>x(e=>!e),size:n,brandColor:o,cardColor:l,iconColor:s,accentColor:d,captionColor:h}),w&&O&&L&&"undefined"!=typeof document&&G(/* @__PURE__ */W("div",{ref:A,style:{position:"absolute",top:L.flipUp?void 0:L.bottom+6,bottom:L.flipUp&&"undefined"!=typeof window?window.innerHeight-L.top+6:void 0,left:L.right,transform:"translateX(-100%)",zIndex:20,backgroundColor:y.background,border:`1px solid ${y.border}`,borderRadius:8,minWidth:180,boxShadow:b,overflow:"hidden",fontFamily:g},children:E}),document.body),
91
+ /* @__PURE__ */W(In,{visible:w&&!O,anchor:P,onClose:()=>x(!1),flipUp:D,align:"right",children:/* @__PURE__ */W(z,{style:{elevation:6,backgroundColor:y.background,borderRadius:8,borderWidth:1,borderColor:y.border,minWidth:180,shadowColor:"#000",shadowOffset:{width:0,height:12},shadowOpacity:.16,shadowRadius:24,overflow:"hidden"},children:E})})]})}function ar({games:e,selectedGame:t,onSelectGame:n,loading:o,error:i,theme:s,colorScheme:d,showTier:h=!1,showCategory:u=!1,showTierFilter:g=!1,onPropositionCountChange:f,onPropositionCountSelected:p,onQuickPickGame:y,maxPayouts:m}){const b=je(s,d),w=b.colors,k=be(b),C=Ne(b),v=Ge(b),A=se(b),L=ce(b),R=fe(b),D="dark"===b.colorScheme,M=l(()=>function(e){const t=new Set(e.filter(e=>ko(e)&&wo(e.rule)===xo.straight).map(uo));return e.filter(e=>!(ko(e)&&wo(e.rule)!==xo.straight&&t.has(uo(e))))}(e),[e]),P=l(()=>fo(M),[M]),[H,O]=c(()=>po(M));r(()=>{0!==P.length&&(P.some(e=>e.id===H)||O(P[0].id))},[P,H]);const I=l(()=>!g||P.length<=1?M:go(M,so[H]),[M,g,P.length,H]),E=e=>e.allowed_propositions&&e.allowed_propositions.length>0&&e.game_name.replace(/\s+\d+\s*$/,"").trim()||e.game_name,j=(e,t)=>{e.quick_pick_only&&y&&t>0?y(e,t):(t>0&&!eo(e)&&f?.(t),n(e),p?.())},[N,G]=c(0),Y=N>0&&N<400,V=Y?108:124,U=N>0&&N<380,q=function(e,t){const n=t>0?Math.floor(t/68):e;return Math.max(2,Math.min(Math.ceil(e/2),n))}(I.length,N),K=N>0?(N-4*(q-1))/q:void 0,Z=N>0?Math.min(.86*N,380):0,X=Z>0?Math.max((N-Z)/2,4):4,Q=Z+14,J=I.length>1,$=J&&X>=48,_=a(null),[ee,te]=c(0),oe=e=>{const t=Math.max(0,Math.min(e,I.length-1));rt(_,t*Q),te(t)};r(()=>{rt(_,0,!1),te(0)},[H]);const re={shadowColor:"#000",shadowOpacity:D?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};return o?/* @__PURE__ */W(qn,{colors:ke(b),count:Math.min(Math.max(M.length,2),4),showTierTabs:g&&P.length>1}):i?/* @__PURE__ */W(z,{style:cr.centerContainer,children:/* @__PURE__ */W(S,{style:{color:w.error,fontFamily:C},children:i})}):0===M.length?/* @__PURE__ */W(z,{style:cr.centerContainer,children:/* @__PURE__ */W(S,{style:{color:w.textMuted,fontFamily:C},children:"No games available"})}):/* @__PURE__ */T(z,{style:{flexDirection:"column"},onLayout:e=>G(e.nativeEvent.layout.width),children:[g&&/* @__PURE__ */W(nr,{tabs:P,active:H,onChange:O,colors:w,bodyFont:C,useShortLabel:U}),0===I.length?/* @__PURE__ */W(z,{style:cr.centerContainer,children:/* @__PURE__ */W(S,{style:{color:w.textMuted,fontFamily:C},children:"No games in this collection"})}):/* @__PURE__ */T(z,{style:{position:"relative"},children:[/* @__PURE__ */W(x,{ref:_,horizontal:!0,showsHorizontalScrollIndicator:!1,decelerationRate:"fast",snapToInterval:Q>0?Q:void 0,snapToAlignment:"start",style:or,scrollEventThrottle:16,onScroll:e=>{if(Q<=0)return;const t=Math.round(e.nativeEvent.contentOffset.x/Q);te(e=>e===t?e:t)},contentContainerStyle:{alignItems:"stretch",gap:14,paddingLeft:X,paddingRight:X,paddingBottom:8},children:I.map(e=>{const o=zn(e),r=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>vn[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=sn(e),c=e.description||e.rule,s=e.call_to_action?.trim()||null,{legOptions:d,maxLegCount:g,tiers:f,modes:x,pydDividends:B,hasGenericDividends:F,minBet:D,maxBet:M}=er(e,m?.[e.id]),P=Ze(e),H=!o&&r?`Available ${r}`:null;/* @__PURE__ */
92
+ return T(z,{style:[cr.gameCard,rr,{width:Z||void 0,flexGrow:0,flexShrink:0,borderColor:i?w.primary:w.border,backgroundColor:i?w.infoBg:w.background??k,opacity:o?1:.5},re],pointerEvents:o?"auto":"none",children:[e.quick_pick_only&&y&&d.length>1?/* @__PURE__ */W(lr,{iconUrl:P,gameName:E(e),size:V,brandColor:w.primary,cardColor:k,iconColor:w.primaryText,accentColor:R,captionColor:w.textMuted,bodyFont:C,legOptions:d.map(Number),onPick:t=>j(e,t),colors:w,menuShadow:L}):/* @__PURE__ */W(Hn,{iconUrl:P,gameName:E(e),onPress:()=>j(e,g),size:V,brandColor:w.primary,cardColor:k,iconColor:w.primaryText,accentColor:R,captionColor:w.primary}),
93
+ /* @__PURE__ */T(S,{style:{marginTop:8,fontFamily:v,fontSize:13,letterSpacing:-.52,lineHeight:13},children:[/* @__PURE__ */W(S,{style:{fontWeight:"800",color:w.primary},children:"YES"}),/* @__PURE__ */W(S,{style:{fontWeight:"600",color:ne(w.primary,.85)},children:"NO"})]}),
94
+ /* @__PURE__ */T(z,{style:{marginTop:2,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6},children:[/* @__PURE__ */W(S,{style:{fontFamily:v,fontWeight:"600",fontSize:Y?19:21,color:A,letterSpacing:-.19,lineHeight:1.2*(Y?19:21),textAlign:"center",paddingHorizontal:4},children:E(e)}),/* @__PURE__ */W(kt,{variant:"icon",panel:ot(e),content:c||"Pick outcomes and land the payout for this game.",theme:b,title:E(e),label:`How to play ${E(e)}`,extra:/* @__PURE__ */W(tr,{tiers:F?f:[],modes:x,pydDividends:B,onPlayCount:d.length>1?t=>j(e,t):void 0,minBet:D,maxBet:M,colors:w,bodyFont:C,headingFont:v}),colors:w,bodyFont:C,headingFont:v})]}),s?/* @__PURE__ */W(S,{style:{marginTop:6,fontSize:13,lineHeight:17,fontWeight:"700",color:w.primary,textAlign:"center",fontFamily:C},children:s}):null,c?/* @__PURE__ */W(S,{style:{marginTop:8,fontSize:12.5,lineHeight:18,color:w.textMuted,textAlign:"center",fontFamily:C},children:c}):null,a.enabled&&/* @__PURE__ */W(z,{style:[cr.jackpotBadge,{backgroundColor:`${w.warning}15`,marginTop:8}],children:/* @__PURE__ */T(S,{style:[cr.jackpotBadgeText,{color:w.warning,fontFamily:C}],children:["★ ",a.progressive?a.amount>0?Qt(a.amount):a.limit>0?`Up to ${Qt(a.limit)}`:"Jackpot":Qt(a.amount)]})}),(u||h)&&/* @__PURE__ */T(z,{style:[cr.tagsRow,{justifyContent:"center",marginTop:8}],children:[u&&e.category&&/* @__PURE__ */W(z,{style:[cr.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[cr.tagText,{color:de(b),fontFamily:C}],children:e.category})}),u&&/* @__PURE__ */W(z,{style:[cr.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[cr.tagText,{color:de(b),fontFamily:C}],children:e.rule})}),u&&e.lotto_type&&/* @__PURE__ */W(z,{style:[cr.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[cr.tagText,{color:de(b),fontFamily:C}],children:e.lotto_type})}),h&&null!=e.tier&&/* @__PURE__ */W(z,{style:[cr.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */T(S,{style:[cr.tagText,{color:de(b),fontFamily:C}],children:["Tier ",e.tier]})})]}),0===d.length&&/* @__PURE__ */W(z,{style:{marginTop:8,width:"100%"},children:/* @__PURE__ */W(lt,{theme:b,variant:"primary",size:"sm",onPress:()=>{n(e),p?.()},children:"Select game"})}),H?/* @__PURE__ */W(z,{style:{marginTop:"auto",width:"100%",paddingTop:12},children:/* @__PURE__ */W(S,{style:{fontSize:11,lineHeight:15,fontWeight:"600",color:w.text,textAlign:"center",fontFamily:C},children:H})}):null]},l)})}),$&&/* @__PURE__ */W(F,{children:[-1,1].map(e=>{const t=e<0?ee>0:ee<I.length-1;/* @__PURE__ */
95
+ return W(B,{accessibilityRole:"button",accessibilityLabel:e<0?"Previous game":"Next game",onPress:()=>oe(ee+e),disabled:!t,style:{position:"absolute",top:"38%",left:e<0?2:void 0,right:e>0?2:void 0,width:44,height:44,borderRadius:22,borderWidth:1,borderColor:w.border,backgroundColor:ne(w.background??"#fff",.94),alignItems:"center",justifyContent:"center",opacity:t?1:.3,zIndex:1,...re},children:/* @__PURE__ */W(S,{style:{fontSize:18,lineHeight:20,color:w.primary,fontFamily:C},children:e<0?"‹":"›"})},e)})})]}),I.length>0&&J&&/* @__PURE__ */W(z,{style:{flexDirection:"row",justifyContent:"center",flexWrap:"wrap",paddingTop:4,paddingBottom:8},children:I.map((e,t)=>/* @__PURE__ */W(B,{accessibilityRole:"button",accessibilityLabel:`Go to ${E(e)}`,onPress:()=>oe(t),style:{paddingVertical:18.5,paddingHorizontal:5,marginVertical:-18.5,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(z,{style:{width:t===ee?22:7,height:7,borderRadius:999,backgroundColor:t===ee?w.primary:ne(w.primary,.25)}})},e.id))}),I.length>0&&J&&/* @__PURE__ */T(z,{style:{borderTopWidth:1,borderTopColor:w.border,paddingTop:10,marginTop:2},children:[/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.6,color:w.textMuted,fontFamily:v,marginBottom:8},children:"All games"}),/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",gap:4},children:I.map((e,t)=>{const n=zn(e);/* @__PURE__ */
96
+ return T(B,{accessibilityRole:"button",accessibilityState:{selected:t===ee,disabled:!n},onPress:()=>(e=>{j(e,er(e,m?.[e.id]).maxLegCount)})(e),disabled:!n,style:{alignItems:"center",gap:4,paddingHorizontal:4,paddingVertical:6,borderRadius:16,borderWidth:1,borderColor:t===ee?w.primary:"transparent",opacity:n?1:.5,width:K},children:[/* @__PURE__ */W(ir,{iconUrl:Ze(e),size:Y?44:52,brandColor:w.primary,iconColor:w.primaryText,accentColor:R}),/* @__PURE__ */W(S,{numberOfLines:2,style:{fontSize:11,fontWeight:"700",lineHeight:13,textAlign:"center",letterSpacing:-.11,color:t===ee?w.primary:A,fontFamily:v},children:E(e)})]},e.id)})})]})]})}var cr=k.create({centerContainer:{alignItems:"center",justifyContent:"center",padding:32,gap:8},gameCard:{flexDirection:"column",alignItems:"center",borderWidth:1,borderRadius:24,paddingHorizontal:20,paddingTop:22,paddingBottom:20},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}}),sr=class{constructor(e){this.inflight=/* @__PURE__ */new Map,this.cache=/* @__PURE__ */new Map,this.apiUrl=e.apiUrl,this.apiKey=e.apiKey,this.fetchImpl=e.fetchImpl??fetch.bind(globalThis),this.getAuthHeaders=e.getAuthHeaders}invalidateCache(){this.cache.clear()}invalidate(){this.invalidateCache()}async request(e,t,n){const o=`${this.apiUrl}${e}`,r=(t?.method??"GET").toUpperCase(),i="GET"===r,l=i,a=!i&&!n?.idempotent,c=`${r} ${o}`;if(l){const e=this.cache.get(c);if(e&&Date.now()-e.at<5e3)return e.value;const t=this.inflight.get(c);if(t)return t}const s=l?this.cache.get(c):void 0,d=(async()=>{let e;try{const n=this.getAuthHeaders?await this.getAuthHeaders():void 0;e=await this.fetchImpl(o,{...t,headers:{"Content-Type":"application/json",...this.apiKey?{"X-API-Key":this.apiKey}:{},...n??{},...s?.etag?{"If-None-Match":s.etag}:{},...t?.headers}})}catch(r){throw r}if(304===e.status&&s)return l&&this.cache.set(c,{at:Date.now(),value:s.value,etag:s.etag}),s.value;if(!e.ok){let t=`API request failed: ${e.status} ${e.statusText}`;try{const n=await e.json();422===e.status&&n.detail?Array.isArray(n.detail)?t=n.detail.map(e=>`${Array.isArray(e.loc)?e.loc.join("."):"field"}: ${e.msg}`).join("; "):"string"==typeof n.detail?t=n.detail:"object"==typeof n.detail&&(t=JSON.stringify(n.detail)):n.message?t=n.message:n.error&&(t=n.error)}catch{}throw new Error(t)}const n=await e.json();if(l){const t=e.headers.get("ETag")??void 0;this.cache.set(c,{at:Date.now(),value:n,etag:t})}return n})();return l?(this.inflight.set(c,d),d.catch(()=>{}).finally(()=>{this.inflight.delete(c)})):a&&d.finally(()=>this.invalidateCache()).catch(()=>{}),d}async getGames(e){const t=new URLSearchParams;e?.category&&t.append("category",e.category),e?.jurisdiction&&t.append("jurisdiction",e.jurisdiction),e?.sport&&t.append("sport",e.sport);const n=t.toString(),o=n?`/games?${n}`:"/games",r=await this.request(o);return{games:r.payload||[],howToPlayMarkdown:r.how_to_play_markdown??null}}async getGame(e){return(await this.request(`/games/${e}`)).payload}async getPropositions(e){const t=new URLSearchParams;e?.event_id&&t.append("event_id",e.event_id),e?.sport&&t.append("sport",e.sport),e?.category&&t.append("category",e.category);const n=t.toString(),o=n?`/propositions?${n}`:"/propositions";return(await this.request(o)).payload||[]}async getSports(){return(await this.request("/propositions/sports")).sports||[]}async getPropositionsByIds(e){if(0===e.length)return[];const t=new URLSearchParams({ids:e.join(","),include_expired:"true"});return(await this.request(`/propositions?${t.toString()}`)).payload||[]}async getProposition(e){const t=(await this.request(`/propositions/${e}?include_expired=true`)).payload;return Array.isArray(t)?t.find(t=>t.id===e)??t[0]:t}async getGameEntries(e){const t=new URLSearchParams;null!=e?.user_id&&t.append("user_id",String(e.user_id)),null!=e?.pending&&t.append("pending",String(e.pending));const n=t.toString(),o=n?`/game-entries?${n}`:"/game-entries";return((await this.request(o)).payload||[]).map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),null!=t.stake&&null==t.bet_amount&&(t.bet_amount=Number(t.stake)),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t})}async createGameEntry(e){const t=e.proposition_ids.map(t=>({proposition_id:t,user_prediction:e.selections?.[t]??"yes"})),n={game_id:e.game_id,user_id:e.user_id,propositions:t};null!=e.stake&&(n.stake=e.stake),null!=e.rule_id&&(n.rule_id=e.rule_id);const o=(await this.request("/game-entries",{method:"POST",body:JSON.stringify(n)})).payload;return null!=o.stake&&null==o.bet_amount&&(o.bet_amount=Number(o.stake)),o}async getPayoutsDue(e){const t=new URLSearchParams;null!=e?.game_id&&t.set("game_id",String(e.game_id)),null!=e?.limit&&t.set("limit",String(e.limit)),null!=e?.offset&&t.set("offset",String(e.offset));const n=t.toString();return await this.request(n?`/game-entries/payouts/due?${n}`:"/game-entries/payouts/due")}async getEntryPayout(e){return(await this.request(`/game-entries/${e}/payout`)).payload}async markEntryPaidOut(e){const t=await this.request(`/game-entries/${e}/payout/mark-paid-out`,{method:"POST",body:JSON.stringify({})});return this.invalidate(),t.payload}async updateGameEntryResult(e,t){return(await this.request(`/game-entries/${e}/result`,{method:"POST",body:JSON.stringify(t)})).payload}async getGameMaxPayout(e,t){const n=null!=t?`?bet_amount=${encodeURIComponent(String(t))}`:"";return(await this.request(`/games/${e}/max-payout${n}`)).payload}async getGamesMaxPayouts(e,t){if(0===e.length)return{};const n=new URLSearchParams({ids:e.join(",")});null!=t&&n.set("bet_amount",String(t));const o=await this.request(`/games/max-payouts?${n.toString()}`),r={};for(const[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 dr(e,t,o){const[i,l]=c([]),[s,d]=c(null),[h,u]=c(!o?.skip),[g,f]=c(null),p=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",y=a(t);y.current=t;const m=o?.skip??!1,b=n(async()=>{if(!m)try{u(!0),f(null);const t=await e.getGames(y.current);l(t.games),d(t.howToPlayMarkdown)}catch(t){f(t instanceof Error?t.message:"Failed to fetch games")}finally{u(!1)}},[e,p,m]);return r(()=>{b()},[b]),{games:i,howToPlayMarkdown:s,loading:h,error:g,refetch:n(async()=>{e.invalidate(),await b()},[e,b])}}function hr(e,t,o){const[i,l]=c([]),[s,d]=c(!o?.skip),[h,u]=c(null),g=o?.skip??!1,f=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!g)try{d(!0),u(null);const t=await e.getPropositions(p.current);l(t)}catch(t){u(t instanceof Error?t.message:"Failed to fetch propositions")}finally{d(!1)}},[e,f,g]);return r(()=>{y()},[y]),{propositions:i,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function ur(e,t){const[o,i]=c([]),[l,a]=c(!t?.skip),[s,d]=c(null),h=t?.skip??!1,u=n(async()=>{if(!h)try{a(!0),d(null),i(await e.getSports())}catch(t){d(t instanceof Error?t.message:"Failed to fetch sports")}finally{a(!1)}},[e,h]);return r(()=>{u()},[u]),{sports:o,loading:l,error:s,refetch:n(async()=>{e.invalidate(),await u()},[e,u])}}function gr(e,t,o){const[i,l]=c([]),[s,d]=c(!o?.skip),[h,u]=c(null),g=o?.skip??!1,f=t?`${t.user_id??""}_${t.pending??""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!g)try{d(!0),u(null);const t=await e.getGameEntries(p.current);l(t)}catch(t){u(t instanceof Error?t.message:"Failed to fetch entries")}finally{d(!1)}},[e,f,g]);return r(()=>{y()},[y]),{entries:i,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function fr(e,t,o){const[i,l]=c({}),[s,d]=c(!1),h=o?.skip??!1,u=o?.betAmount,g=a(/* @__PURE__ */new Set);return r(()=>{if(h||0===t.length)return;const n=t.filter(e=>!(e.id in i)&&!g.current.has(e.id));if(0===n.length)return;for(const e of n)g.current.add(e.id);let o=!1;return d(!0),(async()=>{try{const t=await e.getGamesMaxPayouts(n.map(e=>e.id),u);o||l(e=>({...e,...t}))}catch{}finally{o||d(!1)}})(),()=>{o=!0}},[e,t.map(e=>e.id).join(","),h,u]),{maxPayouts:i,loading:s,refetchGame:n(async(t,n)=>{if(!h)try{const o=await e.getGamesMaxPayouts([t],n??u);o[t]&&l(e=>({...e,[t]:o[t]}))}catch{}},[e,h,u])}}function pr(e){const[t,o]=c(!1),[r,i]=c(null),[l,a]=c(null);return{createEntry:async t=>{try{o(!0),i(null),await function(e=15e3){return"undefined"==typeof navigator||!1!==navigator.onLine||"undefined"==typeof window||"function"!=typeof window.addEventListener?Promise.resolve():new Promise(t=>{const n=()=>{window.removeEventListener("online",n),clearTimeout(o),t()},o=setTimeout(n,e);window.addEventListener("online",n)})}();const n=await e.createGameEntry(t);return a(n),n}catch(n){const e=n instanceof Error?n.message:"Failed to create entry";throw i(e),new Error(e)}finally{o(!1)}},loading:t,error:r,entry:l,clearSubmitError:n(()=>i(null),[])}}function yr(e){const[t,n]=c(e?"sport":"game"),[o,r]=c(null),[i,l]=c({}),[a,s]=c(null);return{step:t,selectedGame:o,selections:i,placedEntry:a,setGameOnly:e=>{r(e)},clearSelectedGame:()=>{r(null),l({})},goToSportSelection:e=>{e&&r(e),n("sport")},goToConfirmation:()=>{n("confirm")},goToSuccess:e=>{s(e),n("success")},goBack:()=>{"confirm"===t?n("sport"):"sport"===t&&(n("game"),r(null),l({}))},reset:()=>{n("game"),r(null),l({}),s(null)},toggleSelection:(e,t)=>{l(n=>{const o={...n};return o[e]===t?delete o[e]:o[e]=t,o})}}}function mr(e){const[t,o]=c(!1),[r,i]=c(null),[l,a]=c(null);return{evaluate:n(async(t,n)=>{try{o(!0),i(null);const r=await e.evaluateRule(t,n);return a(r),r}catch(r){const e=r instanceof Error?r.message:"Failed to evaluate rule";throw i(e),new Error(e)}finally{o(!1)}},[e]),loading:t,error:r,result:l}}function br(e){const[t,o]=c(!1),[r,i]=c(null),[l,a]=c(null);return{calculate:n(async(t,n)=>{try{o(!0),i(null);const r=await e.calculatePayout(t,n);return a(r),r}catch(r){const e=r instanceof Error?r.message:"Failed to calculate payout";throw i(e),new Error(e)}finally{o(!1)}},[e]),loading:t,error:r,result:l}}function wr(e){const[t,o]=c(!1),[r,i]=c(null),[l,a]=c(null);return{preview:n(async(t,n)=>{try{o(!0),i(null);const r=await e.getEntryPreview(t,n);return a(r),r}catch(r){const e=r instanceof Error?r.message:"Failed to preview entry";throw i(e),new Error(e)}finally{o(!1)}},[e]),loading:t,error:r,result:l}}var xr=["totals","spread","player"],kr={totals:"Total",spread:"Spread",player:"Player"},Sr={totals:"One total per match — the match total, a quarter or a half all count",spread:"One result per match — the line, the margin or the head-to-head all count",player:"One player prop per match"};function Cr(e,t){return t?`${Sr[e]} (taken)`:Sr[e]}var Br=/racing|greyhound|harness|trots/,zr=["spread","handicap","margin","line","h2h","head_to_head","moneyline","winner","result"];function vr(e,t,n=""){const o=e.toLowerCase(),r=t.toLowerCase();return Br.test(o)||Br.test(n.toLowerCase())?null:o.includes("player")?"player":o.includes("total")||o.includes("over_under")?"totals":zr.some(e=>o.includes(e))||/\bwin(s)?\b/.test(r)?"spread":/\btotal\b/.test(r)?"totals":null}function Fr(e){return vr(Pt(e)??"",Ht(e),e.sport??"")}function Wr(e,t){if(It(e)){const n=Nt(e,t),o=/* @__PURE__ */new Set;for(const t of n?.legs??[]){const n=t.prop?Fr(t.prop):vr("",t.text,e.sport??"");n&&o.add(n)}return[...o]}const n=Fr(e);return n?[n]:[]}function Tr(e){return to(e)||[e.home_team,e.away_team].filter(Boolean).join(" vs ").trim()||null}var Ar=/* @__PURE__ */new Set;function Lr(e,t,n){const o=/* @__PURE__ */new Map;for(const i of e){if(!(i.id in t))continue;const e=Tr(i);if(e)for(const t of Wr(i,n)){const n=o.get(e)??/* @__PURE__ */new Map;n.has(t)||n.set(t,i.id),o.set(e,n)}}const r=e=>{const t=e?o.get(e):void 0;return t?new Set(t.keys()):Ar};return{isCapped:e=>{const t=Tr(e);if(!t)return!1;const r=o.get(t);return!!r&&Wr(e,n).some(t=>{const n=r.get(t);return void 0!==n&&n!==e.id})},filledFor:r,slotsFor:e=>{const t=r(e);return xr.map(e=>({family:e,label:kr[e],filled:t.has(e)}))}}}var Rr=[1,5,10,20,50,100],Dr=[4,12];function Mr(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function Pr(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 Hr(e){if(!Mr(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Dr[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Dr[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=Rr.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 Or=50,Ir=[25,50,75,100],Er=[{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 jr(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function Nr(e,t){return Math.round(e*t/50*100)/100}function Gr(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:Nr(o,t),cumulative:Nr(n,t)}))}function Yr(e,t){return Nr(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function Vr(e,t,n){return Nr(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)}function Ur(e){if(!jr(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=Er.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??Ir[0],l=e.max_bet??Ir[Ir.length-1],a=Ir.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:Ir,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}var qr=.21875,Kr=6,Zr=5,Xr=1,Qr=2;function Jr(e){return!!e&&!e.quick_pick_only&&"six_again"===(e.rule??"").trim().toLowerCase()}var $r={golden_point:!1,captains_challenge:!1};function _r(e,t,n){const o=1+(t.golden_point?1:0)+(t.captains_challenge?1:0),r=e*n.baseMultiple*(t.golden_point?n.goldenPointFactor:1),i=t.captains_challenge?e*n.challengeMultiple:0;return{legs:n.legs,unit:e,stake:e*o,base:r,challenge:i,perfect:r+i,lowestWinningCount:n.legs-(t.captains_challenge?n.challengeMisses:0),ruleId:ei(t,n)}}function ei(e,t){return e.captains_challenge?e.golden_point?t.ruleIds.goldenChallenge:t.ruleIds.challenge:t.ruleIds.base}function ti(e,t){const n=_r(1,e,t);return{perfect:n.perfect/n.stake,challenge:n.challenge/n.stake}}function ni(e,t){return e.permitted_rules?.find(e=>t((e.name??"").toLowerCase().replace(/[^a-z]+/g," ").trim()))??null}function oi(e){if(!Jr(e)||!e)return null;const t=e.num_propositions??e.min_propositions??6;if(t<2)return null;const n=e.operator_margin??.21875,o=Math.max(e.min_bet??10,.01),r=null!=e.max_bet?Math.max(o,Math.floor(e.max_bet/3/o)*o):Math.max(o,100),i=ni(e,e=>e.includes("challenge")&&!e.includes("golden")),l=ni(e,e=>e.includes("challenge")&&e.includes("golden")),a=ni(e,e=>!e.includes("challenge"))??null;return{legs:t,unitMin:o,unitStep:o,unitMax:r,defaultUnit:o,baseMultiple:Math.round(Math.pow(2,t)*(1-n)*100)/100,challengeMultiple:5,challengeMisses:1,goldenPointFactor:2,boosts:[{id:"golden_point",label:"Golden Point",costUnits:1},{id:"captains_challenge",label:"Captain's Challenge",costUnits:1}],tagline:"Set your play, then pick your six. Every call a yes or a no.",ruleIds:{base:a?.id??e.default_rule_id??null,challenge:i?.id??null,goldenChallenge:l?.id??null}}}function ri(e){return e?.quick_pick_only?"quick_pick":Mr(e)?"game_set":Xo(e)?"pick_your_dividend":jr(e)?"ladder":ko(e)?"mirror":Lo(e)?"safety_net":Jr(e)?"six_again":eo(e)?"selections":qo(e)?"rule_setup":"selections"}function ii(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(eo(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 li(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||eo(e)||ii(e))}function ai(e){switch(ri(e)){case"ladder":return{belowRequiredHint:(e,t)=>`Drop to Ladder ${e} or add another pick to stay on Ladder ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay on Ladder ${e}.`,switchTierLabel:e=>`Switch to Ladder ${e}`,overloadTitle:"Add more picks to climb higher",tableColumnLabel:"Ladder",tierButtonLabel:e=>`Ladder ${e}`};case"game_set":case"pick_your_dividend":case"mirror":case"safety_net":case"six_again":return{belowRequiredHint:(e,t)=>`Drop to ${e} legs or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e} legs.`,switchTierLabel:e=>`Switch to ${e} legs`,overloadTitle:"Add more legs to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`${e} legs`};default:return{belowRequiredHint:(e,t)=>`Drop to a ${e}-leg multi or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e}.`,switchTierLabel:e=>`Switch to ${e}-leg`,overloadTitle:"Add more picks to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`Multi ${e}`}}}function ci(e){const t=ri(e);return"six_again"===t||"pick_your_dividend"===t}function si(e){return"six_again"===ri(e)?"Set by your ticket and boosts.":"Set by your dividend ladder rung."}function di(e,t,n){if(!e||t<=0||n<=0)return 0;switch(ri(e)){case"game_set":return Pr(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize;case"mirror":return So(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize;case"pick_your_dividend":return function(e,t,n=Ko){if(!(e>0&&t>0))return 0;for(const o of n)if(Math.abs(Jo(o,e).stake-t)<.005)return o;return 0}(t,n);default:return 0}}var hi=t(null),ui={};function gi(){const e=o(hi);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function fi({apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s,userId:d,getUserBalance:h,children:u,theme:g,colorScheme:f,demoGames:p,demoPropositions:y,demoEntries:m,demoMaxPayouts:b,gameCategory:w,jurisdiction:x,initialGameId:k,filterSport:S,initialSport:C,initialEventId:B,initialEventLabel:z,sportBaseKey:v,disableQuickPick:F=!1,renderTeamLogo:T,renderPropositionSilk:A,selectionVariant:L,disableEventSwipe:R,enableSportFavourites:D,onEntryPlaced:M,onBeforeSubmit:P,onCancel:H,onShare:O,onRecharge:I,onClearEventFilter:E,screenSize:j="desktop",howToPlayMarkdown:N,sportDisplayNames:G,categoryDisplayNames:Y}){const V=je(g,f),U=Ne(V),q=Ge(V),K=!(!p||!y),Z=l(()=>new sr({apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s}),[t,o,i,s]),[X,Q]=c(0),J=a(0),[$,_]=c(0),[ee,te]=c([]),[ne,oe]=c({}),[re,ie]=c({}),[le,ae]=c(void 0),[ce,se]=c(null),[de,he]=c(void 0),ue=e.useCallback(async()=>{if(h)try{const e=await h();"number"==typeof e&&Number.isFinite(e)&&he(e)}catch(e){}},[h]);r(()=>{h?ue():he(void 0)},[h,ue]);const ge=a(null),fe=a(null),[pe,ye]=c(null),[me,be]=c(C??null),[we,xe]=c(B??null);r(()=>{C&&be(C)},[C]),r(()=>{xe(B??null)},[B]);const[ke,Se]=c(B),Ce=a(!1);r(()=>{if(!B)return Se(void 0),void(Ce.current=!1);Ce.current||Se(B)},[B]);const Be=w??pe??void 0,ze=fn(me??S??C??void 0,v),ve=fn(S,v)??S,Fe=me??void 0,{games:We,howToPlayMarkdown:Te,loading:Ae,error:Le}=dr(Z,{category:Be,jurisdiction:x,sport:ze},{skip:K}),{propositions:Re,loading:De,error:Me}=hr(Z,{category:Be,sport:ve,event_id:ke},{skip:K}),{sports:Pe,loading:He}=ur(Z,{skip:K}),{createEntry:Oe,loading:Ie,error:Ee,clearSubmitError:Ye}=pr(Z),{preview:Ve}=wr(Z),Ue=l(()=>Sn((K?p:We)??[],{category:Be,sport:ze??Fe,sportBaseKey:v}),[K,p,We,Be,ze,Fe,v]),qe=N??Te??null,{maxPayouts:Ke,refetchGame:Ze}=fr(Z,Ue??[],{skip:K,betAmount:20}),Xe=K?b??ui:Ke,Qe=K?y:Re,Je=S?(Qe??[]).filter(e=>e.sport===S):Qe,$e=l(()=>rn(Je??[]),[Je]),_e=l(()=>Be||(1===$e.length?$e[0]:void 0),[Be,$e]),et=l(()=>{const e=Je??[];return _e?bn(e,{category:_e,sportBaseKey:v}):e},[Je,_e,v]),tt=l(()=>Fe?bn(et,{sport:Fe,sportBaseKey:v}):et,[et,Fe,v]),nt=l(()=>({category:_e,sport:Fe,sportBaseKey:v}),[_e,Fe,v]),ot=l(()=>{const e=(Ue??[]).filter(e=>e.active);if(!_e&&$e.length>1)return[];const t=_e?Sn(e,nt):e;return _e||Fe?function(e,t,n){return n?.category||n?.sport?e.filter(e=>kn(e,t,n)):e}(t,tt,nt):t},[Ue,tt,nt,_e,Fe,$e.length]),{step:rt,selectedGame:it,selections:lt,placedEntry:at,setGameOnly:ct,clearSelectedGame:st,goToSportSelection:dt,goToConfirmation:ht,goToSuccess:ut,goBack:gt,reset:ft,toggleSelection:pt}=yr(k),yt=e.useCallback(()=>{Ce.current=!0,Se(void 0),ft(),E?.()},[ft,E]),mt=!!ke,bt=mt?z:void 0,wt=!K&&(Ae||De||!!it&&He),xt=K?null:it?Le||Me:Le,kt=l(()=>it?Bn(tt,it,v):tt,[it,tt,v]),St=l(()=>{const e=it?Bn(et,it,v):et,t=it?.allowed_sports,n=/* @__PURE__ */new Map;for(const o of e){const r=_t(o,e);"Other"!==r&&(t?.length&&!t.includes(r)||n.set(r,(n.get(r)??0)+1))}return Array.from(n.entries()).sort((e,t)=>t[1]-e[1]).map(([e,t])=>({key:e,count:t}))},[it,et,v]),Ct=l(()=>St.map(e=>e.key),[St]),Bt=l(()=>it?kt:et,[it,kt,et]),zt=l(()=>bn(it?kt:et,{category:_e}),[it,kt,et,_e]),vt=l(()=>{const e=new Set(Ct);return Pe.filter(t=>e.has(t.key))},[Pe,Ct]),Ft=l(()=>bn(kt,{category:_e,sport:me}),[kt,_e,me]),Wt=l(()=>{if(!it||!eo(it))return[];const{min:e}=cn(it,le),t=le??e;return no(Ft).filter(e=>e.propositionCount>=t)},[it,le,Ft]),Tt=l(()=>eo(it)?ao(Ft,we):Ft,[it,Ft,we]),At=function(e,t){const[n,o]=c([]),i=a(/* @__PURE__ */new Set),s=l(()=>{const e=/* @__PURE__ */new Map;for(const n of t)e.set(n.id,n);for(const t of n)e.set(t.id,t);return e},[t,n]),d=l(()=>e?function(e){const t=/* @__PURE__ */new Set;for(const n of e)if(It(n))for(const e of Et(n))t.add(e);return[...t]}(t).filter(e=>!s.has(e)):[],[e,t,s]);return r(()=>{if(!e||0===d.length)return;const t=d.filter(e=>!i.current.has(e));if(0===t.length)return;for(const e of t)i.current.add(e);let n=!1;return e.getPropositionsByIds(t).then(e=>{!n&&e.length>0&&o(t=>[...t,...e])}).catch(()=>{}),()=>{n=!0}},[e,d]),s}(K?null:Z,l(()=>[...Je??[],...Tt],[Je,Tt])),Lt=l(()=>Lr(kt,lt,At),[kt,lt,At]),Rt=n((e,t)=>{if(!(e in lt)){const t=kt.find(t=>t.id===e);if(t&&Lt.isCapped(t))return}pt(e,t)},[lt,kt,Lt,pt]),Dt=Object.keys(lt).map(Number),Mt=Dt.length,Pt=l(()=>Ft.filter(e=>Dt.includes(e.id)),[Ft,Dt]);r(()=>{w||pe||1===$e.length&&ye($e[0])},[w,pe,$e]),r(()=>{if(!it)return;const e=kt,t=new Set(e.map(tn));let n=pe;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==pe&&ye(n));const o=n?e.filter(e=>tn(e)===n):e,r=new Set(function(e){const t=/* @__PURE__ */new Set;for(const n of e){const o=_t(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),i=it.allowed_sports;be(e=>e&&r.has(e)&&(!i?.length||i.includes(e))?e:1===i?.length&&r.has(i[0])?i[0]:1===r.size?Array.from(r)[0]:(()=>{const e=/* @__PURE__ */new Map;for(const r of o){const t=_t(r,o);"Other"!==t&&(i?.length&&!i.includes(t)||e.set(t,(e.get(t)??0)+1))}let t=null,n=0;for(const[o,r]of e)r>n&&(t=o,n=r);return t})())},[it?.id,kt,pe]),r(()=>{Ye()},[it?.id,rt,Ye]),r(()=>{it&&_e&&(wn(it,_e)||st())},[it,_e,st]),r(()=>{it&&(kn(it,tt,{category:_e,sport:me,sportBaseKey:v})||st())},[it,_e,me,v,tt,st]),r(()=>{if(it){const e=ge.current,t=fe.current!==it.id;if(fe.current=it.id,null!=e?.stake&&e.stake>0?_(e.stake):t&&_(Math.max(20,it.min_bet??0)),e){const{count:t}=e;return ge.current=null,ae(t),void Q(t)}if(it.allowed_propositions&&it.allowed_propositions.length>0){const e=le;null!=e&&it.allowed_propositions.includes(e)?Q(e):(ae(void 0),Q(0))}else ae(void 0),Q(it.num_propositions||it.max_propositions||0)}},[it]);const Ht=(e,t,n)=>{const o=(Xe[e]?.top_payouts??[]).find(e=>e.proposition_count===t),r=o&&o.bet_amount&&o.bet_amount>0?o.bet_amount:20,i=o&&r>0?o.net_payout/r*n:0;return i>0?i:di((Ue??[]).find(t=>t.id===e)??(it?.id===e?it:null),t,n)};r(()=>{if("sport"!==rt&&"confirm"!==rt||!it||K)return;const e=eo(it)&&we?Tt.length:Number.MAX_SAFE_INTEGER;let t;if(it.allowed_propositions&&it.allowed_propositions.length>0){const n=it.allowed_propositions?[...it.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void ie({});const o=le??n[0],r=n.filter(e=>e>o);if(0===r.length)return void ie({});t=[o,...r]}else{const{min:n,max:o}=cn(it),r=Math.min(o,e);if(n<=0||r<=n)return void ie({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=Ht(it.id,o,20);ie(n)},[rt,it,le,we,Tt.length,K,Xe]),r(()=>{if("confirm"!==rt||!it)return;const e=Dt.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=Ht(it.id,r,$);oe(n),e!==J.current?(J.current=e,Q(e)):(X>e||X<=0&&e>0)&&Q(e);const o=$>0?$:Math.max(it.min_bet??20,.01);return(async()=>{try{const n=await Ve(it.id,{actual:X,predicted:X,total:e,bet_amount:o,rule_id:ce});if(t)return;if(te(n.winning_counts),$>0&&n.payouts){const e={};for(const[t,o]of Object.entries(n.payouts)){const n=Number(t);e[n]=o>0?o:Ht(it.id,n,$)}oe(e)}}catch{t||te([])}})(),()=>{t=!0}},[rt,it,Dt.length,X,$,Ve,Xe,ce]);const Ot=l(()=>{return t=ce,(e=it)&&null!=t?e.permitted_rules?.find(e=>e.id===t)??null:null;var e,t},[it,ce]),jt=!eo(it)||co(Pt,we),Nt=it?cn(it,void 0,Ot):null,Gt=!(!it||!jt)&&(it.allowed_propositions&&it.allowed_propositions.length>0?null!=le&&Mt===le&&an(Mt,Nt?.min,Nt?.max):an(Mt,Nt?.min,Nt?.max)),Yt=it?.min_bet??0,Vt=Math.max(Yt,.01),Ut=null==de||$<=de,qt=!Ie&&$>=Vt&&Gt&&Ut,Kt=e=>{ae(e),Q(e);for(const t of Object.keys(lt))pt(Number(t),lt[Number(t)])},Zt=e=>{ae(e),Q(e)},Xt=e=>{xe(eo(e)?B??null:null),ct(e)},Qt=e=>{if(e!==we){for(const e of Object.keys(lt)){const t=Number(e);pt(t,lt[t])}xe(e)}},Jt=(e,t,n)=>{ge.current={count:t,stake:n},ct(e),Ze(e.id);const o=e.allowed_sports??[];let r=null;me&&o.some(e=>pn(me,e,v))?r=me:1===o.length&&(r=o[0]),be(r);for(const c of Object.keys(lt)){const e=Number(c);pt(e,lt[e])}let i=bn(Bn(Je??[],e,v),{category:_e,sport:r,sportBaseKey:v});const l=Math.max(0,Math.min(t,i.length)),a=function(e,t,n){const o=[],r=/* @__PURE__ */new Map;for(const i of e){if(o.length>=t)break;const e=Tr(i),l=e?Wr(i,n):[];if(e&&l.length>0){const t=r.get(e)??/* @__PURE__ */new Set;if(l.some(e=>t.has(e)))continue;for(const e of l)t.add(e);r.set(e,t)}o.push(i)}return o}([...i].sort(()=>Math.random()-.5),l,At);for(const c of a)pt(c.id,Math.random()<.5?"yes":"no");ht()},$t=a(!1),en=async()=>{if(it&&Gt&&!$t.current){if(K){const e={id:Math.floor(1e4*Math.random()),game_id:it.id,user_id:d,proposition_ids:Dt,selections:lt,pending:!0,expected_correct:X,bet_amount:$};return M?.(e),ut(e),void ue()}$t.current=!0;try{P&&await P($);const e=await Oe({game_id:it.id,user_id:d,proposition_ids:Dt,selections:lt,stake:$,rule_id:Ot?.id??null});M?.(e),ut(e),ue()}catch(e){}finally{$t.current=!1}}},nn=n(e=>G?.[e]??vt.find(t=>t.key===e)?.label??un(e,void 0,v),[G,vt,v]),on=n(e=>gn(e,Y),[Y]),ln=l(()=>({theme:V,bodyFont:U,headingFont:q,games:ot,propositions:Tt,compositeComponentById:At,propositionsForCategoryPicker:Bt,sportsForSelectedGame:Ct,sportOptions:St,propositionsForSportPicker:zt,sportSummaries:vt,loading:wt,error:xt,step:rt,selectedGame:it,selections:lt,placedEntry:at,selectedPropositionIds:Dt,selectedPropositions:Pt,selectionValid:Gt,selectedRuleId:ce,setSelectedRuleId:se,selectedRule:Ot,answeredCount:Mt,betAmount:$,setBetAmount:_,expectedCorrect:X,setExpectedCorrect:Q,selectedPropositionCount:le,handlePropositionCountChange:Kt,upgradePropositionCount:Zt,winningCounts:ee,payouts:ne,overloadPayouts:re,submitting:Ie,submitError:Ee,canSubmit:qt,gamePrice:Yt,userBalance:de,hasSufficientBalance:Ut,refreshUserBalance:ue,handleSubmit:en,selectGame:Xt,goToSportSelection:dt,goToConfirmation:ht,goBack:gt,reset:ft,clearSelectedGame:st,toggleSelection:Rt,quickPickGame:Jt,selectedCategory:pe,setSelectedCategory:ye,selectedSport:me,setSelectedSport:be,selectedEventId:we,sameGameMultiEvents:Wt,selectSameGameMultiEvent:Qt,apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s,userId:d,disableQuickPick:F,renderTeamLogo:T,renderPropositionSilk:A,selectionVariant:L,disableEventSwipe:R,enableSportFavourites:D,filterSport:S,initialSport:C,initialEventId:B,sportBaseKey:v,gameCategory:w,eventFilterActive:mt,eventFilterLabel:bt,clearEventFilter:yt,screenSize:j,displaySportName:nn,displayCategoryName:on,maxPayouts:Xe??{},howToPlayMarkdown:qe,onEntryPlaced:M,onCancel:H,onShare:O,onRecharge:I,demoEntries:m,demoGames:p,demoPropositions:y}),[V,U,q,ot,Tt,At,Bt,zt,Ct,St,vt,wt,xt,rt,it,lt,at,Dt,Pt,Gt,Mt,$,X,le,ce,Ot,ee,ne,re,Ie,Ee,qt,Yt,t,o,d,de,i,s,F,T,A,L,R,D,S,C,B,v,w,j,mt,bt,yt,pe,me,we,Wt,Xe,qe,M,H,O,I,E,m,p,y,Kt,nn,on]);/* @__PURE__ */
97
+ return W(hi.Provider,{value:ln,children:u})}function pi({onPress:e,onDoubleClick:t,label:n="QUICKPICK",size:r="md",yesColor:i,noColor:l,theme:c}){const s=o(hi),d=c??s?.theme??Be,h=ae(d),u=d.colors,g=i??ue(d),f=l??ge(d),p="sm"===r,y=p?h.space.xs:h.space.sm,m=p?6:8,b=p?h.fontSize.sm:h.fontSize.md,w=p?8.5:10,x=a(0);/* @__PURE__ */
98
+ return T(B,{onPress:()=>{if(e(),t){const e=Date.now();e-x.current<300?(x.current=0,t()):x.current=e}},activeOpacity:.8,accessibilityRole:"button",accessibilityLabel:n,style:[yi.container,{borderColor:ne(u.border,.6),borderRadius:h.radius.sm,minHeight:h.touchTarget.min}],children:[/* @__PURE__ */T(z,{style:yi.topRow,children:[
100
99
  /* @__PURE__ */T(A,{style:k.absoluteFill,viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[
101
100
  /* @__PURE__ */W(O,{points:"0,0 53,0 47,100 0,100",fill:g}),
102
101
  /* @__PURE__ */W(O,{points:"53,0 100,0 100,100 47,100",fill:f}),
103
102
  /* @__PURE__ */W(M,{x1:"53",y1:"0",x2:"47",y2:"100",stroke:"rgba(255,255,255,0.85)",strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})]}),
104
- /* @__PURE__ */W(z,{style:[tr.half,{paddingHorizontal:y,paddingVertical:m}],children:/* @__PURE__ */W(S,{style:[tr.halfLabel,{fontSize:b}],numberOfLines:1,children:"Yes"})}),
105
- /* @__PURE__ */W(z,{style:[tr.half,{paddingHorizontal:y,paddingVertical:m}],children:/* @__PURE__ */W(S,{style:[tr.halfLabel,{fontSize:b}],numberOfLines:1,children:"No"})})]}),/* @__PURE__ */W(z,{style:[tr.labelRow,{backgroundColor:u.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[tr.labelText,{color:u.buttonSecondaryText,fontSize:w,letterSpacing:.14*w,fontFamily:d.fonts?.mono??Ne(d)}],numberOfLines:1,children:n})})]})}var tr=k.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}}),nr=3;function or(e,t){const n=new Set(t.map(e=>e.eventId??e.event_id).filter(e=>Boolean(e)));if(0===n.size)return e;const o=[],i=[];for(const r of e){const e=r.eventId??r.event_id;(e&&n.has(e)?i:o).push(r)}return[...o,...i]}function ir(e,t,o){const[r,s]=c([]),[d,h]=c([]),[u,g]=c([]),[f,p]=c([]),[y,m]=c(null),b=l(()=>{const t=/* @__PURE__ */new Map;for(const n of e)t.set(n.id,n);return t},[e]),w=l(()=>e.filter(e=>null!=t[e.id]),[e,t]),x=l(()=>e.map(e=>e.id).join(","),[e]),k=a(null);i(()=>{if(k.current===x)return;k.current=x;const n=e.filter(e=>!(e.id in t)),o=e.filter(e=>null!=t[e.id]);s(n.map(e=>e.id)),h(or(n,o).slice(0,3).map(e=>e.id)),g([]),p([]),m(null)},[x,e,t]);const S=l(()=>{const e=new Set(u);return[...or(r.map(e=>b.get(e)).filter(e=>Boolean(e)).filter(t=>!e.has(t.id)),w).map(e=>e.id),...u.filter(e=>r.includes(e))]},[r,b,w,u]);i(()=>{h(e=>{const t=new Set(r),n=e.filter(e=>t.has(e));if(0===f.length&&!y){const t=S.slice(0,3);return t.length===n.length&&t.every((e,t)=>e===n[t])?n.length===e.length?e:n:t}if(n.length>=Math.min(3,r.length))return n.length===e.length?e:n;const o=[...n];for(const i of S){if(o.length>=3)break;o.includes(i)||o.push(i)}return o})},[r,S,f,y]);const C=l(()=>d.map(e=>b.get(e)).filter(e=>Boolean(e)),[d,b]),B=n((e,t)=>{m(null),t&&o(e,t),p(n=>[...n,{id:e,answer:t}]),h(t=>t.filter(t=>t!==e)),g(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]}),s(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]})},[o]),z=n(()=>{const e=f[f.length-1];e&&(e.answer&&o(e.id,e.answer),m({id:e.id,from:"yes"===e.answer?"right":"no"===e.answer?"left":"up"}),p(e=>e.slice(0,-1)),g(t=>t.filter(t=>t!==e.id)),s(t=>[e.id,...t.filter(t=>t!==e.id)]),h(t=>[e.id,...t.filter(t=>t!==e.id)].slice(0,3)))},[f,o]);return{visible:C,canSkip:r.length>1,canUndo:f.length>0,restored:y,resolve:B,undo:z}}var rr=g.bezier(.32,0,.67,0),lr=g.bezier(.22,1,.36,1),ar={stiffness:420,damping:34},cr={stiffness:280,damping:28},sr="#00C853",dr="#E53935",hr=e=>"web"===m.OS?{userSelect:"none",cursor:e?"grabbing":"grab"}:null;function ur(e){return"up"===e?{x:0,y:-720}:{x:"right"===e?640:-640,y:70}}function gr(e,t,n){return n&&-t>Math.abs(e)}function fr({prop:e,theme:t,depth:r=0,enterFrom:s,canSkip:d=!1,onResolve:u,registerApi:g,onDragStateChange:f,children:p}){const m=o(Qi),b=t??m?.theme??Be,w=Ge(b),x=b.colors.productYes??sr,C=b.colors.productNo??dr,B=0===r,[F,A]=c(!1),R=a(!1),L=a({x:0,y:0}),D=a({x:0,y:0}),M=a(null),P=a(0),H=a(null),O=a(null),I=a(null),E=a(d);E.current=d;const j=a(f);j.current=f;const N=a(new h.ValueXY({x:0,y:0})).current,G=a(new h.Value(0)).current,Y=n(()=>{N.setValue({x:L.current.x,y:L.current.y}),G.setValue(gr(L.current.x,L.current.y,E.current)?1:0)},[G,N]),V=n(()=>{null!=H.current&&(cancelAnimationFrame(H.current),H.current=null),O.current&&(O.current.stop(),O.current=null)},[]),U=n(e=>{V();let t=null;const n=o=>{const i=Math.min(null==t?1/60:(o-t)/1e3,1/30);t=o;const r=L.current,l=D.current;if(l.x+=(-e.stiffness*r.x-e.damping*l.x)*i,l.y+=(-e.stiffness*r.y-e.damping*l.y)*i,r.x+=l.x*i,r.y+=l.y*i,Math.abs(r.x)<.5&&Math.abs(r.y)<.5&&Math.abs(l.x)<2&&Math.abs(l.y)<2)return r.x=0,r.y=0,l.x=0,l.y=0,Y(),void(H.current=null);Y(),H.current=requestAnimationFrame(n)};H.current=requestAnimationFrame(n)},[Y,V]),q=n(t=>{if(R.current)return;if("up"===t&&!E.current)return;R.current=!0,V();const n="right"===t?"yes":"left"===t?"no":null,o=ur(t);L.current={...o},G.setValue("up"===t?1:0),O.current=h.timing(N,{toValue:o,duration:260,easing:rr,useNativeDriver:!1}),O.current.start(),I.current=setTimeout(()=>u(e.id,n),260)},[u,e.id,V,G,N]);i(()=>()=>{I.current&&clearTimeout(I.current),null!=H.current&&cancelAnimationFrame(H.current),O.current?.stop(),M.current&&j.current?.(!1)},[]),i(()=>{if(!s)return V(),L.current={x:0,y:0},D.current={x:0,y:0},void Y();const e=ur(s);L.current={x:e.x,y:e.y},D.current={x:0,y:0},Y(),U(cr)},[s,Y,U,V]),i(()=>{if(B&&g)return g({fly:q}),()=>g(null)},[q,B,g]);const K=l(()=>y.create({onStartShouldSetPanResponder:()=>!1,onMoveShouldSetPanResponder:(e,t)=>!R.current&&(Math.abs(t.dx)>2&&Math.abs(t.dx)>Math.abs(t.dy)||E.current&&-t.dy>2&&-t.dy>Math.abs(t.dx)),onPanResponderGrant:()=>{V(),M.current={x:L.current.x,y:L.current.y},D.current={x:0,y:0},P.current=Date.now(),A(!0),j.current?.(!0)},onPanResponderMove:(e,t)=>{if(R.current||!M.current)return;if(t.numberActiveTouches>1)return;const n=M.current.x+t.dx,o=Math.min(M.current.y+t.dy,0),i=e.nativeEvent.timestamp??Date.now(),r=i-P.current;if(r>0){const e=1-Math.exp(-r/40);D.current.x+=((n-L.current.x)/r*1e3-D.current.x)*e,D.current.y+=((o-L.current.y)/r*1e3-D.current.y)*e,P.current=i}L.current.x=n,L.current.y=o,Y()},onPanResponderRelease:e=>{if(!M.current)return;if(M.current=null,A(!1),j.current?.(!1),R.current)return;(e.nativeEvent.timestamp??Date.now())-P.current>90&&(D.current={x:0,y:0});const t=L.current,n=D.current;if(gr(t.x,t.y,E.current)){if(t.y<-110||n.y<-620)return q("up")}else{if(t.x>110||n.x>620)return q("right");if(t.x<-110||n.x<-620)return q("left")}U(ar)},onPanResponderTerminate:()=>{M.current=null,D.current={x:0,y:0},A(!1),j.current?.(!1),R.current||U(ar)},onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0}),[q,Y,U,V]),Z=N.x.interpolate({inputRange:[-260,0,260],outputRange:["-16deg","0deg","16deg"],extrapolate:"clamp"}),X=h.subtract(1,G),Q=h.multiply(X,N.x.interpolate({inputRange:[24,132],outputRange:[0,1],extrapolate:"clamp"})),J=h.multiply(X,N.x.interpolate({inputRange:[-132,-24],outputRange:[1,0],extrapolate:"clamp"})),$=h.multiply(G,N.y.interpolate({inputRange:[-120,-30],outputRange:[1,0],extrapolate:"clamp"})),_=a(new h.Value(r)).current;i(()=>{const e=h.timing(_,{toValue:r,duration:240,easing:lr,useNativeDriver:!1});return e.start(),()=>e.stop()},[r,_]);const ee=_.interpolate({inputRange:[0,3],outputRange:[0,36]}),te=_.interpolate({inputRange:[0,3],outputRange:[1,.88]});/* @__PURE__ */
106
- return W(h.View,{style:[k.absoluteFill,{zIndex:3-r,transform:[{translateY:ee},{scale:te}]}],pointerEvents:B?"auto":"none",children:/* @__PURE__ */T(h.View,{style:[{flex:1,transform:[{translateX:N.x},{translateY:N.y},{rotate:Z}]},B&&hr(F)],...B?K.panHandlers:{},children:[p,B&&/* @__PURE__ */T(v,{children:[
107
- /* @__PURE__ */W(h.View,{pointerEvents:"none",style:[mr.stamp,mr.stampLeft,{opacity:Q,borderColor:x,transform:[{rotate:"-12deg"}]}],children:/* @__PURE__ */W(S,{style:[mr.stampText,{color:x,fontFamily:w}],children:"Yes"})}),
108
- /* @__PURE__ */W(h.View,{pointerEvents:"none",style:[mr.stamp,mr.stampRight,{opacity:J,borderColor:C,transform:[{rotate:"12deg"}]}],children:/* @__PURE__ */W(S,{style:[mr.stampText,{color:C,fontFamily:w}],children:"No"})}),d&&/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[mr.skipPillWrap,{opacity:$}],children:/* @__PURE__ */W(z,{style:[mr.skipPill,{borderColor:b.colors.border,backgroundColor:b.colors.background}],children:/* @__PURE__ */W(S,{style:[mr.skipPillText,{color:b.colors.primary}],children:"Skip"})})})]})]})})}function pr({prop:e}){const{theme:t,headingFont:n,renderTeamLogo:o,renderPropositionSilk:i,displaySportName:r,gameCategory:l,compositeComponentById:a}=$i(),c=t.colors,{height:s}=F(),d=s<700?12:24,h=Gt(e,a),u=Ht(e),g=("racing"===l?[e.away_team?.trim()||e.home_team?.trim()]:[e.home_team?.trim(),e.away_team?.trim()]).filter(Boolean),f=(t,n)=>t&&i?.(t,n)||Hr(t??e,o,g.join(" vs "))||null;/* @__PURE__ */
109
- return T(z,{style:[mr.face,{backgroundColor:be(t),borderColor:c.border}],children:[
110
- /* @__PURE__ */W(z,{style:[mr.matchupBand,{backgroundColor:we(t)}],children:g.length>0?g.map((e,n)=>/* @__PURE__ */T(z,{style:mr.matchupTeam,children:[n>0&&/* @__PURE__ */W(S,{style:[mr.matchupVs,{color:me(t)}],children:"vs"}),o?.(e),
111
- /* @__PURE__ */W(S,{style:[mr.matchupName,{color:ye(t)}],children:e})]},`${e}-${n}`)):/* @__PURE__ */W(S,{style:[mr.matchupName,{color:ye(t)}],children:e.league??r(e.sport??"")})}),
112
- /* @__PURE__ */T(z,{style:[mr.faceBody,{paddingVertical:d,gap:12===d?12:16}],children:[/* @__PURE__ */T(z,{style:mr.propositionRow,children:[!h&&f(e,32),h?/* @__PURE__ */T(z,{style:{flex:1,gap:12},children:[/* @__PURE__ */T(S,{style:[mr.compositeLabel,{color:de(t)}],children:["All ","OR"===h.operator?"or any of these":"of these"]}),/* @__PURE__ */W(z,{style:{gap:8},children:h.legs.map((e,o)=>/* @__PURE__ */T(z,{style:mr.compositeLeg,children:[
103
+ /* @__PURE__ */W(z,{style:[yi.half,{paddingHorizontal:y,paddingVertical:m}],children:/* @__PURE__ */W(S,{style:[yi.halfLabel,{fontSize:b}],numberOfLines:1,children:"Yes"})}),
104
+ /* @__PURE__ */W(z,{style:[yi.half,{paddingHorizontal:y,paddingVertical:m}],children:/* @__PURE__ */W(S,{style:[yi.halfLabel,{fontSize:b}],numberOfLines:1,children:"No"})})]}),/* @__PURE__ */W(z,{style:[yi.labelRow,{backgroundColor:u.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[yi.labelText,{color:u.buttonSecondaryText,fontSize:w,letterSpacing:.14*w,fontFamily:d.fonts?.mono??Ne(d)}],numberOfLines:1,children:n})})]})}var yi=k.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}}),mi=3;function bi(e,t){const n=new Set(t.map(e=>e.eventId??e.event_id).filter(e=>Boolean(e)));if(0===n.size)return e;const o=[],r=[];for(const i of e){const e=i.eventId??i.event_id;(e&&n.has(e)?r:o).push(i)}return[...o,...r]}function wi(e,t,o,i){const[s,d]=c([]),[h,u]=c([]),[g,f]=c([]),[p,y]=c([]),[m,b]=c(null),w=l(()=>{const t=/* @__PURE__ */new Map;for(const n of e)t.set(n.id,n);return t},[e]),x=l(()=>e.filter(e=>null!=t[e.id]),[e,t]),k=l(()=>e.map(e=>e.id).join(","),[e]),S=a(null);r(()=>()=>{S.current=null},[]),r(()=>{if(S.current===k)return;S.current=k;const n=e.filter(e=>!(e.id in t)),o=e.filter(e=>null!=t[e.id]);d(n.map(e=>e.id)),u(bi(n,o).slice(0,3).map(e=>e.id)),f([]),y([]),b(null)},[k,e,t]);const C=l(()=>i?new Set(e.filter(e=>i(e)).map(e=>e.id)):/* @__PURE__ */new Set,[e,i]),B=l(()=>{const e=new Set(g);return[...bi(s.map(e=>w.get(e)).filter(e=>!!e&&!C.has(e.id)).filter(t=>!e.has(t.id)),x).map(e=>e.id),...g.filter(e=>s.includes(e)&&!C.has(e))]},[s,w,x,g,C]);r(()=>{u(e=>{const t=new Set(s),n=e.filter(e=>t.has(e)&&!C.has(e));if(0===p.length&&!m){const t=B.slice(0,3);return t.length===n.length&&t.every((e,t)=>e===n[t])?n.length===e.length?e:n:t}if(n.length>=Math.min(3,s.length))return n.length===e.length?e:n;const o=[...n];for(const r of B){if(o.length>=3)break;o.includes(r)||o.push(r)}return o})},[s,B,p,m,C]);const z=l(()=>h.map(e=>w.get(e)).filter(e=>Boolean(e)),[h,w]),v=n((e,t)=>{b(null),t&&o(e,t),y(n=>[...n,{id:e,answer:t}]),u(t=>t.filter(t=>t!==e)),f(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]}),d(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]})},[o]),F=n(()=>{const e=p[p.length-1];e&&(e.answer&&o(e.id,e.answer),b({id:e.id,from:"yes"===e.answer?"right":"no"===e.answer?"left":"up"}),y(e=>e.slice(0,-1)),f(t=>t.filter(t=>t!==e.id)),d(t=>[e.id,...t.filter(t=>t!==e.id)]),u(t=>[e.id,...t.filter(t=>t!==e.id)].slice(0,3)))},[p,o]);return{visible:z,canSkip:s.filter(e=>!C.has(e)).length>1,canUndo:p.length>0,restored:m,resolve:v,undo:F}}var xi=g.bezier(.32,0,.67,0),ki=g.bezier(.22,1,.36,1),Si={stiffness:420,damping:34},Ci={stiffness:280,damping:28},Bi="#00C853",zi="#E53935",vi=e=>"web"===m.OS?{userSelect:"none",cursor:e?"grabbing":"grab"}:null;function Fi(e){return"up"===e?{x:0,y:-720}:{x:"right"===e?640:-640,y:70}}function Wi(e,t,n){return n&&-t>Math.abs(e)}function Ti({prop:e,theme:t,depth:i=0,enterFrom:s,canSkip:d=!1,onResolve:u,registerApi:g,onDragStateChange:f,children:p}){const m=o(hi),b=t??m?.theme??Be,w=Ge(b),x=b.colors.productYes??Bi,C=b.colors.productNo??zi,B=0===i,[v,A]=c(!1),L=a(!1),R=a({x:0,y:0}),D=a({x:0,y:0}),M=a(null),P=a(0),H=a(null),O=a(null),I=a(null),E=a(d);E.current=d;const j=a(f);j.current=f;const N=a(new h.ValueXY({x:0,y:0})).current,G=a(new h.Value(0)).current,Y=n(()=>{N.setValue({x:R.current.x,y:R.current.y}),G.setValue(Wi(R.current.x,R.current.y,E.current)?1:0)},[G,N]),V=n(()=>{null!=H.current&&(cancelAnimationFrame(H.current),H.current=null),O.current&&(O.current.stop(),O.current=null)},[]),U=n(e=>{V();let t=null;const n=o=>{const r=Math.min(null==t?1/60:(o-t)/1e3,1/30);t=o;const i=R.current,l=D.current;if(l.x+=(-e.stiffness*i.x-e.damping*l.x)*r,l.y+=(-e.stiffness*i.y-e.damping*l.y)*r,i.x+=l.x*r,i.y+=l.y*r,Math.abs(i.x)<.5&&Math.abs(i.y)<.5&&Math.abs(l.x)<2&&Math.abs(l.y)<2)return i.x=0,i.y=0,l.x=0,l.y=0,Y(),void(H.current=null);Y(),H.current=requestAnimationFrame(n)};H.current=requestAnimationFrame(n)},[Y,V]),q=n(t=>{if(L.current)return;if("up"===t&&!E.current)return;L.current=!0,V();const n="right"===t?"yes":"left"===t?"no":null,o=Fi(t);R.current={...o},G.setValue("up"===t?1:0),O.current=h.timing(N,{toValue:o,duration:260,easing:xi,useNativeDriver:!1}),O.current.start(),I.current=setTimeout(()=>u(e.id,n),260)},[u,e.id,V,G,N]);r(()=>()=>{I.current&&clearTimeout(I.current),null!=H.current&&cancelAnimationFrame(H.current),O.current?.stop(),M.current&&j.current?.(!1)},[]),r(()=>{if(!s)return V(),R.current={x:0,y:0},D.current={x:0,y:0},void Y();const e=Fi(s);R.current={x:e.x,y:e.y},D.current={x:0,y:0},Y(),U(Ci)},[s,Y,U,V]),r(()=>{if(B&&g)return g({fly:q}),()=>g(null)},[q,B,g]);const K=l(()=>y.create({onStartShouldSetPanResponder:()=>!1,onMoveShouldSetPanResponder:(e,t)=>!L.current&&(Math.abs(t.dx)>2&&Math.abs(t.dx)>Math.abs(t.dy)||E.current&&-t.dy>2&&-t.dy>Math.abs(t.dx)),onPanResponderGrant:()=>{V(),M.current={x:R.current.x,y:R.current.y},D.current={x:0,y:0},P.current=Date.now(),A(!0),j.current?.(!0)},onPanResponderMove:(e,t)=>{if(L.current||!M.current)return;if(t.numberActiveTouches>1)return;const n=M.current.x+t.dx,o=Math.min(M.current.y+t.dy,0),r=e.nativeEvent.timestamp??Date.now(),i=r-P.current;if(i>0){const e=1-Math.exp(-i/40);D.current.x+=((n-R.current.x)/i*1e3-D.current.x)*e,D.current.y+=((o-R.current.y)/i*1e3-D.current.y)*e,P.current=r}R.current.x=n,R.current.y=o,Y()},onPanResponderRelease:e=>{if(!M.current)return;if(M.current=null,A(!1),j.current?.(!1),L.current)return;(e.nativeEvent.timestamp??Date.now())-P.current>90&&(D.current={x:0,y:0});const t=R.current,n=D.current;if(Wi(t.x,t.y,E.current)){if(t.y<-110||n.y<-620)return q("up")}else{if(t.x>110||n.x>620)return q("right");if(t.x<-110||n.x<-620)return q("left")}U(Si)},onPanResponderTerminate:()=>{M.current=null,D.current={x:0,y:0},A(!1),j.current?.(!1),L.current||U(Si)},onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0}),[q,Y,U,V]),Z=N.x.interpolate({inputRange:[-260,0,260],outputRange:["-16deg","0deg","16deg"],extrapolate:"clamp"}),X=h.subtract(1,G),Q=h.multiply(X,N.x.interpolate({inputRange:[24,132],outputRange:[0,1],extrapolate:"clamp"})),J=h.multiply(X,N.x.interpolate({inputRange:[-132,-24],outputRange:[1,0],extrapolate:"clamp"})),$=h.multiply(G,N.y.interpolate({inputRange:[-120,-30],outputRange:[1,0],extrapolate:"clamp"})),_=a(new h.Value(i)).current;r(()=>{const e=h.timing(_,{toValue:i,duration:240,easing:ki,useNativeDriver:!1});return e.start(),()=>e.stop()},[i,_]);const ee=_.interpolate({inputRange:[0,3],outputRange:[0,36]}),te=_.interpolate({inputRange:[0,3],outputRange:[1,.88]});/* @__PURE__ */
105
+ return W(h.View,{style:[k.absoluteFill,{zIndex:3-i,transform:[{translateY:ee},{scale:te}]}],pointerEvents:B?"auto":"none",children:/* @__PURE__ */T(h.View,{style:[{flex:1,transform:[{translateX:N.x},{translateY:N.y},{rotate:Z}]},B&&vi(v)],...B?K.panHandlers:{},children:[p,B&&/* @__PURE__ */T(F,{children:[
106
+ /* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Ri.stamp,Ri.stampLeft,{opacity:Q,borderColor:x,transform:[{rotate:"-12deg"}]}],children:/* @__PURE__ */W(S,{style:[Ri.stampText,{color:x,fontFamily:w}],children:"Yes"})}),
107
+ /* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Ri.stamp,Ri.stampRight,{opacity:J,borderColor:C,transform:[{rotate:"12deg"}]}],children:/* @__PURE__ */W(S,{style:[Ri.stampText,{color:C,fontFamily:w}],children:"No"})}),d&&/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Ri.skipPillWrap,{opacity:$}],children:/* @__PURE__ */W(z,{style:[Ri.skipPill,{borderColor:b.colors.border,backgroundColor:b.colors.background}],children:/* @__PURE__ */W(S,{style:[Ri.skipPillText,{color:b.colors.primary}],children:"Skip"})})})]})]})})}function Ai({prop:e}){const{theme:t,headingFont:n,renderTeamLogo:o,renderPropositionSilk:r,displaySportName:i,gameCategory:l,compositeComponentById:a}=gi(),c=t.colors,{height:s}=v(),d=s<700?12:24,h=Nt(e,a),u=Pt(e),g=("racing"===l?[e.away_team?.trim()||e.home_team?.trim()]:[e.home_team?.trim(),e.away_team?.trim()]).filter(Boolean),f=(t,n)=>t&&r?.(t,n)||Ji(t??e,o,g.join(" vs "))||null;/* @__PURE__ */
108
+ return T(z,{style:[Ri.face,{backgroundColor:be(t),borderColor:c.border}],children:[
109
+ /* @__PURE__ */W(z,{style:[Ri.matchupBand,{backgroundColor:we(t)}],children:g.length>0?g.map((e,n)=>/* @__PURE__ */T(z,{style:Ri.matchupTeam,children:[n>0&&/* @__PURE__ */W(S,{style:[Ri.matchupVs,{color:me(t)}],children:"vs"}),o?.(e),
110
+ /* @__PURE__ */W(S,{style:[Ri.matchupName,{color:ye(t)}],children:e})]},`${e}-${n}`)):/* @__PURE__ */W(S,{style:[Ri.matchupName,{color:ye(t)}],children:e.league??i(e.sport??"")})}),
111
+ /* @__PURE__ */T(z,{style:[Ri.faceBody,{paddingVertical:d,gap:12===d?12:16}],children:[/* @__PURE__ */T(z,{style:Ri.propositionRow,children:[!h&&f(e,32),h?/* @__PURE__ */T(z,{style:{flex:1,gap:12},children:[/* @__PURE__ */T(S,{style:[Ri.compositeLabel,{color:de(t)}],children:["All ","OR"===h.operator?"or any of these":"of these"]}),/* @__PURE__ */W(z,{style:{gap:8},children:h.legs.map((e,o)=>/* @__PURE__ */T(z,{style:Ri.compositeLeg,children:[
113
112
  /* @__PURE__ */W(S,{style:{color:c.primary,fontWeight:"700"},children:"OR"===h.operator?"/":"+"}),f(e.prop,24),
114
- /* @__PURE__ */T(z,{style:mr.compositeLegBody,children:[e.eventLabel?/* @__PURE__ */W(S,{style:[mr.compositeLegEvent,{color:c.textMuted}],children:e.eventLabel}):null,/* @__PURE__ */W(S,{style:[mr.compositeLegText,{color:he(t),fontFamily:n}],children:e.text})]})]},o))})]}):/* @__PURE__ */W(S,{style:[mr.proposition,{flex:1,color:he(t),fontFamily:n}],children:e.description??e.proposition})]}),e.outcome_description&&e.outcome_description!==e.description&&/* @__PURE__ */W(S,{style:[mr.outcome,{color:c.textMuted}],children:e.outcome_description})]}),
115
- /* @__PURE__ */T(z,{style:[mr.faceFooter,{borderTopColor:c.borderSubtle??c.border}],children:[e.sport?/* @__PURE__ */W(z,{style:[mr.sportChip,{backgroundColor:c.infoBg}],children:/* @__PURE__ */W(S,{style:[mr.sportChipText,{color:c.infoText}],children:r(e.sport)})}):null,u?/* @__PURE__ */W(S,{style:[mr.footerMeta,{color:c.textMuted}],children:u.replace(/[_-]+/g," ").toUpperCase()}):null,e.commence_time?/* @__PURE__ */W(S,{style:[mr.footerMeta,mr.footerDate,{color:c.textMuted}],children:_t(e.commence_time)}):null]})]})}function yr({onBack:e,onNext:t,viewSwitch:o,onDragStateChange:r}){const{theme:l,headingFont:c,propositions:s,selections:d,toggleSelection:h,selectedGame:u,selectedPropositionCount:g,answeredCount:f,selectionValid:p,goToConfirmation:y,goToSportSelection:m,loading:b,error:w,selectedRule:x}=$i(),k=l.colors,C=k.productYes??sr,A=k.productNo??dr,{height:R}=F(),L=Math.max(224,Math.min(.44*R,416)),D=a(null);i(()=>{u||(m(),e?.())},[m,e,u]);const{visible:M,canSkip:P,canUndo:H,restored:O,resolve:I,undo:E}=ir(s,d,h),j=u?dn(u,g??void 0,x):{min:0,max:0},N=j.max,G=N>0&&f>=N,Y=(()=>{if(!u)return null;if(j.min>0&&j.min===j.max)return j.min;const e=Yi(u);return null!=g&&g>0&&("game_set"===e||"pick_your_dividend"===e||Vi(u))?g:N>0?N:null})(),V=a(f);i(()=>{const e=V.current;if(V.current=f,null==Y||e>=Y||f!==Y)return;const n=setTimeout(()=>{y(),t?.()},420);return()=>clearTimeout(n)},[f,y,t,Y]);const U=!G&&M.length>0,q=n(e=>{D.current=e},[]);if(!u)return null;const K=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:n,disabled:o,accessibilityLabel:e,accessibilityRole:"button",style:[mr.circleButton,{borderColor:k.border,backgroundColor:k.background},o&&mr.disabled],children:/* @__PURE__ */W(S,{style:{fontSize:18,color:k.textMuted},children:t})});/* @__PURE__ */
116
- return T(z,{style:mr.container,children:[o?/* @__PURE__ */W(z,{style:mr.viewSwitchRow,children:o}):null,b?/* @__PURE__ */W(S,{style:[mr.loadingText,{color:k.textMuted}],children:"Loading…"}):w?/* @__PURE__ */W(z,{style:[mr.errorBox,{backgroundColor:k.errorBg,borderColor:k.error}],children:/* @__PURE__ */W(S,{style:{fontSize:14,color:k.errorText??k.error,textAlign:"center"},children:w})}):/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:mr.deckArea,children:U?/* @__PURE__ */W(z,{style:[mr.deck,{height:L}],children:M.map((e,t)=>/* @__PURE__ */W(fr,{prop:e,depth:t,canSkip:P,enterFrom:O?.id===e.id?O.from:null,onResolve:I,registerApi:0===t?q:void 0,onDragStateChange:0===t?r:void 0,children:/* @__PURE__ */W(pr,{prop:e})},e.id))}):/* @__PURE__ */T(z,{style:[mr.emptyState,{backgroundColor:be(l),borderColor:k.border}],children:[
117
- /* @__PURE__ */W(S,{style:[mr.emptyTitle,{color:se(l),fontFamily:c}],children:G?"Card full":"That’s the last one"}),
118
- /* @__PURE__ */W(S,{style:[mr.emptyBody,{color:k.textMuted}],children:G?`You've picked all ${N} legs for ${u.game_name}. Undo a swipe to change one, or lock it in.`:p?"You've been through every proposition. Lock your card in, or undo to revisit a pick.":`No propositions left to answer${j.min>0?` — this game needs at least ${j.min}`:""}. Undo a swipe or head back to widen the pool.`}),H&&/* @__PURE__ */W(B,{onPress:E,style:[mr.emptyUndo,{borderColor:k.border}],children:/* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:k.text},children:"Undo last swipe"})})]})}),/* @__PURE__ */T(z,{style:[mr.buttonArea,{backgroundColor:be(l),borderColor:k.border}],children:[/* @__PURE__ */T(z,{style:mr.buttonRow,children:[K("Undo last swipe","↺",E,!H),
119
- /* @__PURE__ */W(B,{onPress:()=>D.current?.fly("left"),disabled:!U,style:[mr.answerButton,{backgroundColor:A},!U&&mr.disabled],children:/* @__PURE__ */W(S,{style:[mr.answerButtonText,{fontFamily:c}],children:"NO"})}),
120
- /* @__PURE__ */W(B,{onPress:()=>D.current?.fly("right"),disabled:!U,style:[mr.answerButton,{backgroundColor:C},!U&&mr.disabled],children:/* @__PURE__ */W(S,{style:[mr.answerButtonText,{fontFamily:c}],children:"YES"})}),K("Skip this proposition","↑",()=>D.current?.fly("up"),!U||!P)]}),/* @__PURE__ */W(S,{style:[mr.gestureHint,{color:k.textMuted}],children:P?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})]})]})}var mr=k.create({container:{flex:1},viewSwitchRow:{flexDirection:"row",justifyContent:"flex-end",paddingBottom:12},loadingText:{paddingVertical:40,textAlign:"center",fontSize:14},errorBox:{borderRadius:12,borderWidth:1,padding:16},deckArea:{flex:1,minHeight:0,justifyContent:"center",paddingTop:12,paddingBottom:32},deck:{width:"100%",maxWidth:384,alignSelf:"center"},face:{flex:1,borderRadius:24,borderWidth:1,overflow:"hidden",shadowColor:"#0A1416",shadowOpacity:.25,shadowRadius:20,shadowOffset:{width:0,height:12},elevation:8},matchupBand:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4,paddingHorizontal:20,paddingVertical:12},matchupTeam:{flexDirection:"row",alignItems:"center",gap:6},matchupVs:{fontSize:12,marginRight:4},matchupName:{fontSize:14,fontWeight:"600"},faceBody:{flex:1,justifyContent:"center",gap:16,paddingHorizontal:20,paddingVertical:24},compositeLabel:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.5},compositeLeg:{flexDirection:"row",alignItems:"flex-start",gap:8},compositeLegBody:{flex:1,minWidth:0},compositeLegEvent:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:.25,lineHeight:13},compositeLegText:{fontSize:16,fontWeight:"700",lineHeight:21},propositionRow:{flexDirection:"row",alignItems:"flex-start",gap:8},proposition:{fontSize:21,fontWeight:"800",lineHeight:27,letterSpacing:-.3},outcome:{fontSize:14,lineHeight:19},faceFooter:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:8,borderTopWidth:1,paddingHorizontal:20,paddingVertical:12},sportChip:{borderRadius:999,paddingHorizontal:8,paddingVertical:2},sportChipText:{fontSize:11,fontWeight:"600",textTransform:"uppercase",letterSpacing:.5},footerMeta:{fontSize:11,letterSpacing:.5},footerDate:{marginLeft:"auto"},stamp:{position:"absolute",top:20,borderWidth:4,borderRadius:12,paddingHorizontal:12,paddingVertical:4},stampLeft:{left:20},stampRight:{right:20},stampText:{fontSize:24,fontWeight:"800",textTransform:"uppercase",letterSpacing:2},skipPillWrap:{position:"absolute",left:0,right:0,bottom:24,alignItems:"center"},skipPill:{borderWidth:1,borderRadius:999,paddingHorizontal:12,paddingVertical:4},skipPillText:{fontSize:12,fontWeight:"600",textTransform:"uppercase",letterSpacing:1.5},emptyState:{width:"100%",maxWidth:384,alignSelf:"center",alignItems:"center",gap:12,borderRadius:24,borderWidth:1,borderStyle:"dashed",paddingHorizontal:24,paddingVertical:40},emptyTitle:{fontSize:16,fontWeight:"800"},emptyBody:{fontSize:14,textAlign:"center",lineHeight:19},emptyUndo:{borderWidth:1,borderRadius:999,paddingHorizontal:20,paddingVertical:8},buttonArea:{flexShrink:0,borderWidth:1,borderRadius:16,paddingHorizontal:12,paddingTop:12,paddingBottom:10},buttonRow:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12,width:"100%",maxWidth:384,alignSelf:"center"},circleButton:{height:44,width:44,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},answerButton:{flex:1,height:56,borderRadius:999,alignItems:"center",justifyContent:"center"},answerButtonText:{fontSize:18,fontWeight:"800",letterSpacing:1.5,color:"#ffffff"},gestureHint:{marginTop:8,textAlign:"center",fontSize:11},disabled:{opacity:.35}});function br({propositions:e,title:t,onClose:o}){const{theme:i,selections:r,toggleSelection:l}=$i(),c=i.colors,{height:s}=F(),{visible:d,canSkip:h,canUndo:u,restored:g,resolve:f,undo:y}=ir(e,r,l),m=a(null),b=n(e=>{m.current=e},[]),w=Ge(i),x=me(i),k=d.length>0,C=be(i),v=Math.max(224,Math.min(.44*s,416)),A=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:n,disabled:o,accessibilityLabel:e,accessibilityRole:"button",style:[wr.circle,{borderColor:c.border,backgroundColor:c.background},o&&wr.disabled],children:/* @__PURE__ */W(S,{style:{fontSize:18,color:c.textMuted},children:t})}),R=(e,t,n)=>/* @__PURE__ */W(B,{onPress:()=>m.current?.fly(e),disabled:!k,style:[wr.answer,{backgroundColor:n},!k&&wr.disabled],children:/* @__PURE__ */W(S,{style:[wr.answerText,{fontFamily:w}],children:t.toUpperCase()})});/* @__PURE__ */
121
- return W(p,{visible:!0,transparent:!0,animationType:"fade",onRequestClose:o,children:/* @__PURE__ */W(z,{style:wr.backdrop,children:/* @__PURE__ */T(z,{style:[wr.panel,{backgroundColor:C,borderColor:c.border}],children:[
122
- /* @__PURE__ */T(z,{style:wr.header,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[wr.title,{color:ye(i),fontFamily:w}],children:t}),/* @__PURE__ */W(B,{onPress:o,accessibilityLabel:"Close",accessibilityRole:"button",style:[wr.close,{borderColor:c.border}],children:/* @__PURE__ */W(S,{style:{fontSize:16,color:x},children:"×"})})]}),
123
- /* @__PURE__ */W(z,{style:wr.deckArea,children:k?/* @__PURE__ */W(z,{style:[wr.deck,{height:v}],children:d.map((e,t)=>/* @__PURE__ */W(fr,{prop:e,depth:t,canSkip:h,enterFrom:g?.id===e.id?g.from:null,onResolve:f,registerApi:0===t?b:void 0,children:/* @__PURE__ */W(pr,{prop:e})},e.id))}):/* @__PURE__ */T(z,{style:[wr.empty,{borderColor:c.border}],children:[/* @__PURE__ */W(S,{style:[wr.emptyTitle,{color:se(i),fontFamily:w}],children:"That’s the last one"}),/* @__PURE__ */W(S,{style:[wr.emptyBody,{color:c.textMuted}],children:"You’ve been through every proposition on this fixture. Close to go back to the card, or undo to revisit a pick."})]})}),
124
- /* @__PURE__ */T(z,{style:wr.buttonRow,children:[A("Undo last swipe","↺",y,!u),R("left","No",ge(i)),R("right","Yes",ue(i)),A("Skip this proposition","↑",()=>m.current?.fly("up"),!k||!h)]}),
125
- /* @__PURE__ */W(S,{style:[wr.hint,{color:c.textMuted}],children:h?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})})})}var wr=k.create({backdrop:{flex:1,backgroundColor:"rgba(0,0,0,0.6)",alignItems:"center",justifyContent:"center",padding:16},panel:{width:"100%",maxWidth:420,borderRadius:24,borderWidth:1,padding:16,overflow:"hidden"},header:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:12},title:{flex:1,minWidth:0,fontSize:14,fontWeight:"700"},close:{width:32,height:32,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},deckArea:{justifyContent:"center",paddingTop:4,paddingBottom:12},deck:{width:"100%",alignSelf:"center"},empty:{alignItems:"center",gap:12,borderRadius:24,borderWidth:1,borderStyle:"dashed",paddingHorizontal:24,paddingVertical:40},emptyTitle:{fontSize:16,fontWeight:"800"},emptyBody:{fontSize:14,textAlign:"center"},buttonRow:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12,paddingTop:24},circle:{width:44,height:44,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},answer:{flex:1,height:56,borderRadius:999,alignItems:"center",justifyContent:"center"},answerText:{fontSize:18,fontWeight:"800",letterSpacing:1.5,color:"#fff"},hint:{marginTop:8,fontSize:11,textAlign:"center"},disabled:{opacity:.35}}),xr=["split","split-inline","compact"];function kr(e){return new Intl.DateTimeFormat("en-AU",{weekday:"short",day:"numeric",month:"short"}).format(e).replace(",","")}function Sr(e){return new Intl.DateTimeFormat("en-AU",{hour:"numeric",minute:"2-digit",hour12:!0}).format(e).replace(/\s/g,"").toLowerCase()}function Cr(e){const t=(e??"").trim().split(/\s+/).filter(Boolean);return(t[t.length-1]??"").slice(0,3).toUpperCase()}function Br(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}function zr(e){const t=e?.trim();if(t&&"undefined"!==t&&"null"!==t)return t}function Fr(e,t=!1){const n=Object.entries(e).map(([e,n])=>function(e,t,n){const[o,i]=n?[]:e.split(" vs ").map(zr),r=t.map(Br).filter(e=>null!==e),l=r.length>0?new Date(Math.min(...r.map(e=>e.getTime()))):null;return{key:e,title:n||!o?n?e:zr(t[0]?.league??void 0)??"":[o,i].filter(Boolean).join(" vs "),home:o,away:i,racing:n,date:l,props:t}}(e,n,t)),o=n.filter(e=>null!==e.date).sort((e,t)=>e.date.getTime()-t.date.getTime()),i=n.filter(e=>null===e.date),r=/* @__PURE__ */new Map;for(const a of o){const e=a.date.toDateString(),t=r.get(e);t?t.events.push(a):r.set(e,{key:e,label:kr(a.date),events:[a]})}const l=[...r.values()];return i.length>0&&l.push({key:"undated",label:"",events:i}),l}var vr={split:{fontSize:13,fontWeight:"700",lineHeight:18},compact:{fontSize:11,fontWeight:"700",lineHeight:15}};function Wr({variant:e,groups:t,racing:n,selections:o,onToggleSelection:i,atMax:r,theme:a,renderTeamLogo:s,componentById:d,disableEventSwipe:h=!1}){const u=a.colors,g=be(a),f=we(a),p=u.borderSubtle??u.border,y=ye(a),m=me(a),b=he(a),w=de(a),x=se(a),k=Ge(a),{width:C}=F(),[A,R]=c(null),[L,D]=c(/* @__PURE__ */new Set),[M,P]=c(/* @__PURE__ */new Set),H=e=>t=>e(e=>{const n=new Set(e);return n.delete(t)||n.add(t),n}),O=H(D),I=H(P),E=l(()=>Fr(t,n),[t,n]),j=e=>r&&!(e.id in o),N=(e,t)=>{j(e)||i(e.id,t)},G=(e,t)=>e?s?.(e,t)??null:null,Y=(e,t,n)=>/* @__PURE__ */W(dt,{theme:a,size:t,stretch:n,disabled:j(e),value:o[e.id]??null,onYes:()=>N(e,"yes"),onNo:()=>N(e,"no")}),V=(e,t)=>/* @__PURE__ */T(z,{style:Rr.question,children:[n?Hr(e,s,null):null,/* @__PURE__ */W(Gr,{prop:e,colors:u,componentById:d,textStyle:vr[t],textColor:b})]}),U=e=>{if(h)return null;const t=e.props.filter(e=>!j(e));return 0===t.length?null:/* @__PURE__ */W(B,{onPress:()=>R(e),accessibilityRole:"button",accessibilityLabel:`Swipe ${t.length} proposition${1===t.length?"":"s"}`,style:[Rr.roundButton,{borderColor:p}],children:/* @__PURE__ */W(Tr,{color:w})})},q=(e,t)=>/* @__PURE__ */W(B,{onPress:()=>O(e.key),accessibilityRole:"button",accessibilityState:{expanded:t},accessibilityLabel:`${t?"Hide":"Show"} ${e.props.length} proposition${1===e.props.length?"":"s"}`,style:[Rr.foldButton,{borderColor:p}],children:/* @__PURE__ */W(z,{style:{transform:[{rotate:t?"0deg":"-90deg"}]},children:/* @__PURE__ */W(Ar,{color:w})})}),K=e=>{if(!e.home&&!e.away)/* @__PURE__ */return W(S,{numberOfLines:1,style:[Rr.shortLabel,{color:y}],children:e.title});const t=[e.home,e.away].filter(Boolean).join(" v "),n=M.has(e.key);/* @__PURE__ */
126
- return T(B,{onPress:()=>I(e.key),accessibilityRole:"button",accessibilityLabel:t,accessibilityState:{selected:n},style:{minWidth:0,flexDirection:"row",alignItems:"center"},children:[
127
- /* @__PURE__ */W(S,{style:[Rr.shortLabel,{color:y,fontFamily:k}],children:n?e.home:Cr(e.home)}),
128
- /* @__PURE__ */W(S,{style:[Rr.vs,{color:m}],children:"v"}),
129
- /* @__PURE__ */W(S,{style:[Rr.shortLabel,{color:y,fontFamily:k}],children:n?e.away:Cr(e.away)})]})},Z=t=>"compact"===e?(e=>/* @__PURE__ */T(z,{style:[Rr.compactCard,{borderColor:u.border,backgroundColor:g}],children:[/* @__PURE__ */T(z,{style:[Rr.compactHeader,{backgroundColor:f}],children:[!e.racing&&G(e.home,18),K(e),!e.racing&&G(e.away,18),e.date&&/* @__PURE__ */W(S,{style:[Rr.compactTime,{color:m}],children:Sr(e.date)}),
130
- /* @__PURE__ */W(z,{style:{marginLeft:"auto"},children:U(e)})]}),e.props.map(e=>/* @__PURE__ */T(z,{style:[Rr.compactRow,{borderTopColor:p,opacity:j(e)?.45:1}],children:[/* @__PURE__ */W(z,{style:{flex:1,minWidth:0},children:V(e,"compact")}),Y(e,"xs")]},e.id))]},e.key))(t):((e,t)=>{const n=!L.has(e.key),o=`${e.props.length} proposition${1===e.props.length?"":"s"}`;/* @__PURE__ */
131
- return T(z,n?{style:[Rr.splitCard,{borderColor:u.border,backgroundColor:g}],children:[/* @__PURE__ */T(z,{style:[Rr.splitStub,{borderColor:p,backgroundColor:f}],children:[!e.racing&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:2},children:[G(e.home,24),G(e.away,24)]}),K(e),e.date&&/* @__PURE__ */W(S,{style:[Rr.time,{color:m}],children:Sr(e.date)}),U(e)]}),/* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */T(z,{style:[Rr.splitCountRow,{borderBottomColor:p}],children:[/* @__PURE__ */W(S,{style:[Rr.count,{color:m}],children:o}),/* @__PURE__ */W(z,{style:{marginLeft:"auto"},children:q(e,n)})]}),/* @__PURE__ */W(z,{style:Rr.splitBody,children:e.props.map(e=>/* @__PURE__ */T(z,{style:[t?{flexDirection:"row",alignItems:"center",gap:10}:{flexDirection:"column",gap:10},{opacity:j(e)?.45:1}],children:[/* @__PURE__ */W(z,{style:{flex:1,minWidth:0},children:V(e,"split")}),t?Y(e,"xs"):Y(e,"sm",!0)]},e.id))})]})]}:{style:[Rr.foldedStrip,{borderColor:u.border,backgroundColor:g}],children:[
132
- /* @__PURE__ */T(z,{style:[Rr.foldedStub,{borderColor:p,backgroundColor:f}],children:[!e.racing&&/* @__PURE__ */T(v,{children:[G(e.home,16),G(e.away,16)]}),K(e)]}),
133
- /* @__PURE__ */W(S,{style:[Rr.count,Rr.foldedCount,{color:m}],children:o}),
134
- /* @__PURE__ */W(z,{style:{marginLeft:"auto",paddingRight:8},children:q(e,n)})]},e.key)})(t,"split-inline"===e);/* @__PURE__ */
135
- return T(z,{style:{paddingBottom:16},children:[E.map(e=>{/* @__PURE__ */return T(z,{children:[e.label?(t=e.label,/* @__PURE__ */T(z,{style:Rr.dayHeader,children:[/* @__PURE__ */W(S,{style:[Rr.dayLabel,{color:x,fontFamily:k}],children:t}),/* @__PURE__ */W(z,{style:[Rr.rule,{backgroundColor:p}]})]})):null,e.events.map(Z)]},e.key);var t}),A&&/* @__PURE__ */W(br,{propositions:A.props.filter(e=>!j(e)),title:A.title,onClose:()=>R(null)})]})}function Tr({color:e}){/* @__PURE__ */
136
- return T(A,{width:15,height:15,viewBox:"0 0 24 24",fill:"none",children:[/* @__PURE__ */W(I,{x:3,y:5,width:12,height:16,rx:2,stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */W(H,{d:"M8.5 3h7a2 2 0 0 1 2 2v12",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Ar({color:e}){/* @__PURE__ */
137
- return W(A,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}var Rr=k.create({question:{flexDirection:"row",alignItems:"flex-start",gap:8,minWidth:0,flex:1},dayHeader:{flexDirection:"row",alignItems:"center",gap:8,marginTop:16,marginBottom:8},dayLabel:{fontSize:11,fontWeight:"700",letterSpacing:.3},rule:{flex:1,height:1},shortLabel:{fontSize:11.5,fontWeight:"700",lineHeight:15},vs:{fontSize:9,fontWeight:"600",paddingHorizontal:2},roundButton:{height:28,minWidth:28,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center",paddingHorizontal:6},foldButton:{width:24,height:24,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},count:{fontSize:10,fontWeight:"600"},foldedCount:{fontSize:11,paddingHorizontal:12},time:{fontSize:9.5,fontWeight:"500"},foldedStrip:{flexDirection:"row",alignItems:"center",borderRadius:16,borderWidth:1,overflow:"hidden",marginBottom:8},foldedStub:{flexDirection:"row",alignItems:"center",gap:4,alignSelf:"stretch",borderRightWidth:1,paddingHorizontal:8,paddingVertical:6},splitCard:{flexDirection:"row",alignItems:"stretch",borderRadius:16,borderWidth:1,overflow:"hidden",marginBottom:8},splitStub:{width:80,alignItems:"center",justifyContent:"center",gap:6,borderRightWidth:1,paddingHorizontal:8,paddingVertical:12},splitCountRow:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1},splitBody:{justifyContent:"center",gap:12,paddingHorizontal:12,paddingVertical:10},compactCard:{borderRadius:16,borderWidth:1,overflow:"hidden",marginBottom:8},compactHeader:{flexDirection:"row",alignItems:"center",gap:6,minWidth:0,paddingHorizontal:12,paddingVertical:8},compactTime:{fontSize:9,fontWeight:"500"},compactRow:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:12,paddingVertical:10,borderTopWidth:1}}),Lr={today:"Today",weekend:"This weekend",next7:"Next 7 days"},Dr=["today","weekend","next7"];function Mr(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function Pr(e,t,n){if(!e)return!1;const o=new Date(e);if(Number.isNaN(o.getTime()))return!1;const{start:i,end:r}=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:Mr(n,1)};case"weekend":{const e=n.getDay(),t=Mr(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:Mr(t,2)}}case"next7":return{start:n,end:Mr(n,7)}}}(t,n);return o>=i&&o<r}function Hr(e,t,n){if(!t||(o=n)&&o.split(" vs ").length>1)return null;var o;const i=e.outcome||e.description;return i?t(i):null}var Or=640,Ir=12;function Er({theme:e,variant:t,disabled:n,onPress:o,children:i}){const r=e.colors,[l,a]=c(!1),s="primary"===t?{bg:r.buttonPrimary,bgHover:r.buttonPrimaryHover,fg:r.buttonPrimaryText,border:r.buttonPrimary}:{bg:r.buttonSecondary,bgHover:r.buttonSecondaryHover,fg:r.buttonSecondaryText,border:r.border};/* @__PURE__ */
138
- return W(B,{onPress:o,disabled:n,activeOpacity:.85,...rt(()=>a(!0),()=>a(!1)),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:s.border,backgroundColor:l&&!n?s.bgHover:s.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:/* @__PURE__ */W(S,{style:{color:s.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:i})})}function jr({matchup:e,renderTeamLogo:t,altText:n,mutedColor:o,size:i="sm"}){const{width:r}=F(),l=r>=Or,[a,c=""]=e.split(" vs "),s=c.length>0,d="md"===i&&l?16:14;if(!s)/* @__PURE__ */return W(S,{style:{color:n,fontSize:d,fontWeight:"600"},children:e});const h=e=>/* @__PURE__ */T(z,{style:Vr.teamLogoRowWrap,children:[t?.(e),/* @__PURE__ */W(S,{style:{color:n,fontSize:d,fontWeight:"600",flexShrink:1},children:e})]}),u=/* @__PURE__ */W(S,{style:{color:o,fontSize:12,flexShrink:0},children:"vs"});/* @__PURE__ */
139
- return T(z,l?{style:Vr.matchupTeamsRow,children:[h(a),u,h(c)]}:{style:Vr.matchupTeamsStacked,children:[u,/* @__PURE__ */T(z,{style:{flexShrink:1,minWidth:0},children:[h(a),h(c)]})]})}function Nr({label:e,colors:t,onOpenChange:n}){const o="OR"===e?"If either wins, you win.":"Both must win for Yes.",[r,l]=c(!1);return i(()=>{n?.(r)},[r,n]),/* @__PURE__ */T(z,{style:{position:"relative",zIndex:r?9999:0,elevation:r?9999:0},children:[/* @__PURE__ */W(b,{onPress:()=>l(e=>!e),onHoverIn:()=>l(!0),onHoverOut:()=>l(!1),hitSlop:6,accessibilityLabel:o,accessibilityRole:"button",accessibilityState:{expanded:r},children:/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:6,backgroundColor:ne(t.primary,.14),borderWidth:1,borderColor:ne(t.primary,.45)},children:/* @__PURE__ */W(S,{style:{color:t.primary,fontSize:10,fontWeight:"700",lineHeight:10,textTransform:"uppercase",letterSpacing:.25},children:e})})}),r&&/* @__PURE__ */W(z,{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??ne(t.primary,.3),shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:.12,shadowRadius:4,elevation:9999},children:/* @__PURE__ */W(S,{style:{color:t.text,fontSize:11,lineHeight:15},children:o})})]})}function Gr({prop:t,colors:n,size:o="sm",componentById:i,textStyle:r,textColor:l}){const{width:a}=F(),s=a>=Or,d=Gt(t,i),h=t.description??t.proposition??"",u=r?.fontSize??("md"===o?s?16:14:s?14:12),g=r?.fontWeight??("md"===o?"500":"400"),f=r?.lineHeight,p=r?.textAlign,y=l??n.text,m=n.textMuted??n.textAltMuted??n.text,[b,w]=c(!1);if(!d)/* @__PURE__ */return W(S,{style:{color:y,fontSize:u,fontWeight:g,lineHeight:f,textAlign:p,flex:1},children:h});const{operator:x,legs:k}=d;return k.some(e=>e.eventLabel)?/* @__PURE__ */W(z,{style:{flex:1,minWidth:0,flexDirection:"column",gap:8,...b&&{zIndex:9999,elevation:9999,position:"relative"}},children:k.map((e,t)=>/* @__PURE__ */T(z,{style:{minWidth:0},children:[t>0&&/* @__PURE__ */W(z,{style:{marginBottom:4},children:/* @__PURE__ */W(Nr,{label:x,colors:n,onOpenChange:w})}),e.eventLabel&&/* @__PURE__ */W(S,{style:{color:m,fontSize:s?12:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:.25},children:e.eventLabel}),
140
- /* @__PURE__ */W(S,{style:{color:y,fontSize:u,fontWeight:g,lineHeight:f,textAlign:p},children:e.text})]},t))}):/* @__PURE__ */W(z,{style:{flex:1,minWidth:0,...b&&{zIndex:9999,elevation:9999,position:"relative"}},children:/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6,rowGap:4},children:k.map((t,o)=>/* @__PURE__ */T(e.Fragment,{children:[o>0&&/* @__PURE__ */W(Nr,{label:x,colors:n,onOpenChange:w}),/* @__PURE__ */W(S,{style:{color:y,fontSize:u,fontWeight:g,lineHeight:f,textAlign:p},children:t.text})]},o))})})}function Yr({game:t,propositions:n,selections:r,onToggleSelection:a,onNext:s,onBack:d,loading:h,error:u,theme:g,colorScheme:f,hideActions:p=!1,initialSport:y,renderTeamLogo:m,disableQuickPick:b=!1,selectedPropositionCount:w,onPropositionCountChange:x,gameCategory:k,headerExtra:R,variant:L,disableEventSwipe:D}){const M=o(Qi),P=M?.sportBaseKey,O=M?.compositeComponentById,I=L??M?.selectionVariant,E=D??M?.disableEventSwipe??!1,j=je(g,f),N=j.colors,G=be(j),Y=xe(j),V=N.matchupHeader??(t.color?ne(t.color,.14):we(j)),U=N.textAlt??N.text;Ge(j);const q=Ne(j);se(j);const{width:K}=F(),Z=K>=Or,X=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(j),Q=!!(t.allowed_propositions&&t.allowed_propositions.length>0),{min:J,max:$}=dn(t,w),_=J,ee=$,[te,oe]=e.useState(()=>new Set(Object.keys(An(n,k,P))));e.useEffect(()=>{const e=An(n,k,P),t=Object.keys(e);t.length>0&&oe(e=>t.every(t=>e.has(t))?e:new Set(t))},[n]);const ie=_>0&&_===ee,re=_||1,le=ee||n.length,ae=ee||_||n.length,[ce,de]=e.useState(ae),he=Object.keys(r).length,ue=ee>0&&he>=ee,ge=Q?null!=w&&he===w:sn(he,t.min_propositions,t.max_propositions);t.min_bet,ee>0?Math.max(2,2*ee):Math.max(2,2*he);const fe=e.useRef(he),pe=Q?null!=w&&he===w:ee>0&&he===ee;i(()=>{pe&&he>fe.current&&s?.(),fe.current=he},[he,pe]);const ye=(e,t)=>{!(e in r)&&ue||a(e,t)};i(()=>{const e=ee||n.length,t=_||1;de(n=>ie?ee:Math.max(t,Math.min(n,e)))},[n.length,_,ee,ie]);const me=l(()=>/* @__PURE__ */new Date,[]),Se=l(()=>function(e,t){const n=e.filter(e=>null!=function(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}(e));if(n.length<2)return[];const o=[];for(const i of Dr){let e=0,r=0;for(const o of n)if(Pr(o.commence_time,i,t)?e+=1:r+=1,e>0&&r>0)break;e>0&&r>0&&o.push({id:i,label:Lr[i]})}return o}(n,me),[n,me]),[Ce,Be]=c(null);i(()=>{Ce&&!Se.some(e=>e.id===Ce)&&Be(null)},[Se,Ce]);const ze=l(()=>function(e,t,n){return t?e.filter(e=>Pr(e.commence_time,t,n)):e.slice()}(n,Ce,me),[n,Ce,me]),Fe=l(()=>un(k,ze,P),[k,ze,P]),ve=l(()=>An(ze,k,P),[ze,k,P]),We=l(()=>{const e=/* @__PURE__ */new Set;for(const t of ze){const n=Ht(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[ze]),[Te,Ae]=c(null),[Re,Le]=c(!1);i(()=>{Te&&!We.includes(Te)&&Ae(null)},[We,Te]);const De=l(()=>{if(!Te)return ve;const e={};for(const[t,n]of Object.entries(ve)){const o=n.filter(e=>Ht(e)===Te);o.length>0&&(e[t]=o)}return e},[ve,Te]),Me=Object.keys(De);if(h)/* @__PURE__ */return W(Xn,{colors:ke(j)});if(u)/* @__PURE__ */return W(z,{style:Vr.centered,children:/* @__PURE__ */W(S,{style:{color:N.error},children:u})});const Pe=!b&&n.length>0,He=Se.length>0||We.length>1,Oe=(null!=Ce?1:0)+(null!=Te?1:0);/* @__PURE__ */
141
- return T(z,{style:{gap:Z?24:16,paddingBottom:64},children:[He||R?/* @__PURE__ */T(z,{style:Vr.filterHeaderRow,children:[/* @__PURE__ */W(z,{style:Vr.filterToggleRow,children:He?/* @__PURE__ */T(v,{children:[/* @__PURE__ */T(B,{onPress:()=>Le(e=>!e),activeOpacity:.85,accessibilityRole:"button",style:[Vr.filterToggle,{borderColor:Oe>0?N.primary:N.border,backgroundColor:Oe>0?N.primary:N.background??"#fff"}],children:[
142
- /* @__PURE__ */W(vt,{size:13,color:Oe>0?N.primaryText:N.text}),
143
- /* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"700",color:Oe>0?N.primaryText:N.text},children:"Filter"}),Oe>0&&/* @__PURE__ */T(S,{style:{fontSize:11,fontWeight:"700",color:N.primaryText},children:["· ",Oe]}),
144
- /* @__PURE__ */W(z,{style:{transform:[{rotate:Re?"-90deg":"90deg"}],opacity:.75},children:/* @__PURE__ */W(zt,{size:13,color:Oe>0?N.primaryText:N.text})})]}),Oe>0&&/* @__PURE__ */W(B,{onPress:()=>{Be(null),Ae(null)},activeOpacity:.85,accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"600",color:N.textMuted},children:"Clear"})})]}):null}),R]}):null,Re&&He&&/* @__PURE__ */T(z,{style:{gap:10},children:[Se.length>0&&/* @__PURE__ */W(Mt,{label:"When",options:[{value:null,label:"All dates"},...Se.map(e=>({value:e.id,label:e.label}))],value:Ce,onChange:e=>Be(e),theme:j,bodyFont:q}),We.length>1&&/* @__PURE__ */W(Mt,{label:"Market",options:[{value:null,label:"All markets"},...We.map(e=>{return{value:e,label:(t=e,t.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))};var t})],value:Te,onChange:Ae,theme:j,bodyFont:q})]}),Pe&&/* @__PURE__ */W(z,{style:[Vr.topBar,{justifyContent:"flex-end"}],children:/* @__PURE__ */T(z,{style:[Vr.quickPickRow,{gap:Z?8:6}],children:[!ie&&/* @__PURE__ */T(z,{style:Vr.quickPickCountRow,children:[/* @__PURE__ */W(C,{keyboardType:"number-pad",value:String(ce),onChangeText:e=>{const t=parseInt(e,10);isNaN(t)||de(Math.max(re,Math.min(le,t)))},style:[Vr.quickPickInput,{width:Z?56:40,paddingHorizontal:Z?8:4,paddingVertical:Z?6:4,fontSize:Z?14:12,color:U,backgroundColor:N.backgroundAlt,borderColor:N.border}]}),/* @__PURE__ */T(S,{style:{color:N.textMuted,fontSize:12},children:["/ ",n.length]})]}),/* @__PURE__ */W(er,{onPress:()=>{const e=ie?ee:ce;for(const n of Object.keys(r)){const e=Number(n);a(e,r[e])}const{yesPicks:t,noPicks:o}=Dn(n,e);for(const n of t)a(n.id,"yes");for(const n of o)a(n.id,"no");s?.()}})]})}),n.length>0&&I?/* @__PURE__ */W(Wr,{variant:I,groups:De,racing:Fe,selections:r,onToggleSelection:ye,atMax:ue,theme:j,renderTeamLogo:m,componentById:O,disableEventSwipe:E}):null,n.length>0&&!I&&/* @__PURE__ */W(z,{style:Vr.matchupList,children:Me.every(e=>1===De[e].length)?/* @__PURE__ */W(z,{style:[Vr.matchupCard,{borderColor:N.border,backgroundColor:G},X],children:Me.map((e,t)=>{const n=De[e][0],o="yes"===r[n.id],i="no"===r[n.id],l=n.id in r,a=ue&&!l,c=0===t,s=t===Me.length-1;/* @__PURE__ */
145
- return T(z,{style:{borderTopColor:N.border,borderTopWidth:c?0:1,opacity:a?.45:1},children:[/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:Z?12:10,backgroundColor:V,borderTopLeftRadius:c?Ir:0,borderTopRightRadius:c?Ir:0},children:[/* @__PURE__ */W(z,{style:{minWidth:0},children:/* @__PURE__ */W(jr,{matchup:e,renderTeamLogo:m,altText:U,mutedColor:N.textAltMuted??N.textMuted??U})}),n.commence_time&&/* @__PURE__ */W(S,{style:{color:N.textAltMuted??N.textMuted,fontSize:11,opacity:.7,marginTop:2},children:_t(n.commence_time)})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingHorizontal:16,paddingVertical:Z?14:12,backgroundColor:Y,borderTopWidth:1,borderTopColor:N.border,borderBottomLeftRadius:s?Ir:0,borderBottomRightRadius:s?Ir:0},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[Hr(n,m,e),/* @__PURE__ */W(Gr,{prop:n,colors:N,componentById:O})]}),/* @__PURE__ */W(dt,{theme:j,size:"sm",value:o?"yes":i?"no":null,onYes:()=>ye(n.id,"yes"),onNo:()=>ye(n.id,"no"),disabled:a})]})]},n.id)})}):Me.map(e=>{const t=De[e],n=te.has(e),o=t.filter(e=>e.id in r).length,i=t[0]?.commence_time;/* @__PURE__ */
146
- return T(z,{style:[Vr.matchupCard,{borderColor:N.border,backgroundColor:G},X],children:[/* @__PURE__ */T(B,{onPress:()=>{return t=e,oe(e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n});var t},style:[Vr.matchupHeader,{backgroundColor:V,borderTopLeftRadius:Ir,borderTopRightRadius:Ir,borderBottomLeftRadius:n?0:Ir,borderBottomRightRadius:n?0:Ir}],children:[/* @__PURE__ */T(z,{style:Vr.matchupHeaderLeft,children:[/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",style:{flexShrink:0,transform:[{rotate:n?"180deg":"0deg"}]},children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:N.textAltMuted??N.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),/* @__PURE__ */T(z,{style:Vr.matchupTeamWrapper,children:[/* @__PURE__ */W(jr,{matchup:e,renderTeamLogo:m,altText:U,mutedColor:N.textAltMuted??N.textMuted??U,size:"md"}),i&&/* @__PURE__ */W(S,{style:{color:N.textAltMuted??N.textMuted,fontSize:12,opacity:.7,marginTop:2,textAlign:"left"},children:_t(i)})]})]}),/* @__PURE__ */W(z,{style:Vr.matchupHeaderRight,children:o>0&&/* @__PURE__ */W(z,{style:[Vr.answeredBadge,{backgroundColor:N.successBg}],children:/* @__PURE__ */T(S,{style:{color:N.successText,fontSize:12,fontWeight:"500"},children:[o,"/",t.length]})})})]}),n&&/* @__PURE__ */W(z,{children:/* @__PURE__ */W(v,{children:t.map((n,o)=>{const i="yes"===r[n.id],l="no"===r[n.id],a=n.id in r,c=ue&&!a,s=o===t.length-1;/* @__PURE__ */
147
- return W(z,{style:{paddingHorizontal:16,paddingVertical:Z?14:12,backgroundColor:Y,borderTopColor:N.border,borderTopWidth:0===o?0:1,opacity:c?.45:1,borderBottomLeftRadius:s?Ir:0,borderBottomRightRadius:s?Ir:0},children:/* @__PURE__ */T(z,{style:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-start",columnGap:Z?16:8,rowGap:Z?16:8},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:128,flexDirection:"row",alignItems:"flex-start",gap:8},children:[Hr(n,m,e),/* @__PURE__ */W(Gr,{prop:n,colors:N,size:"md",componentById:O})]}),/* @__PURE__ */W(dt,{theme:j,size:"sm",value:i?"yes":l?"no":null,onYes:()=>ye(n.id,"yes"),onNo:()=>ye(n.id,"no"),disabled:c})]})},n.id)})})})]},e)})}),0===n.length&&/* @__PURE__ */W(z,{style:Vr.centered,children:/* @__PURE__ */W(S,{style:{color:N.textMuted},children:"No propositions available at this time"})}),!p&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:N.border,backgroundColor:G,marginHorizontal:Z?-24:-16,paddingHorizontal:Z?24:16,paddingVertical:Z?16:12},children:[/* @__PURE__ */W(Er,{theme:j,variant:"secondary",onPress:d,children:"Back"}),/* @__PURE__ */W(z,{style:{flexDirection:"row",alignItems:"center",gap:Z?12:8},children:/* @__PURE__ */W(Er,{theme:j,variant:"primary",disabled:!ge,onPress:s,children:"Wager"})})]})]})}var Vr=k.create({centered:{alignItems:"center",justifyContent:"center",padding:32,flexDirection:"row"},filterHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8},filterToggleRow:{flexDirection:"row",alignItems:"center",gap:8},filterToggle:{flexDirection:"row",alignItems:"center",gap:6,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:Ir,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:"row",alignItems:"center",gap:6,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 Ur({theme:e,variant:t,disabled:n,onPress:o,children:i}){const r=e.colors,[l,a]=c(!1),s="primary"===t?{bg:r.buttonPrimary,bgHover:r.buttonPrimaryHover,fg:r.buttonPrimaryText,border:r.buttonPrimary}:{bg:r.buttonSecondary,bgHover:r.buttonSecondaryHover,fg:r.buttonSecondaryText,border:r.border};/* @__PURE__ */
148
- return W(B,{onPress:o,disabled:n,activeOpacity:.85,...rt(()=>a(!0),()=>a(!1)),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:s.border,backgroundColor:l&&!n?s.bgHover:s.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:/* @__PURE__ */W(S,{style:{color:s.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:i})})}function qr({propositions:e,selections:t,onToggleSelection:n,onNext:o,onBack:i,theme:r,colorScheme:l,hideActions:a=!1,renderTeamLogo:s,allowAnswerToggle:d=!0,gameName:h,potentialPayout:u,defaultExpanded:g=!1,addMorePicks:f}){const p=je(r,l),y=p.colors,m=be(p),b=Ge(p),w=se(p),x=y.textAlt??y.text,{width:k}=F(),C=k>=640,v=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(p),[R,L]=c(null),[D,M]=c(g),P=e.filter(e=>e.id in t),O=P.length,I=Rn(P),E=y.matchupHeader??we(p),j=xe(p),N=C?16:12;/* @__PURE__ */
149
- return T(z,{style:{gap:C?24:16,paddingBottom:64},children:[
150
- /* @__PURE__ */T(z,{style:[Kr.section,{padding:C?24:16,backgroundColor:m,borderColor:y.border},v],children:[
151
- /* @__PURE__ */T(B,{onPress:()=>M(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:D},style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:12},children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,flex:1,minWidth:0},children:[/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",style:{flexShrink:0,transform:[{rotate:D?"180deg":"0deg"}]},children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:y.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),/* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8},children:[/* @__PURE__ */W(S,{style:{fontSize:C?18:16,fontWeight:"600",color:w,fontFamily:b},children:"Your Selections"}),/* @__PURE__ */W(z,{style:{backgroundColor:y.primary,paddingHorizontal:6,paddingVertical:2,borderRadius:999},children:/* @__PURE__ */W(S,{style:{color:y.primaryText,fontSize:12,fontWeight:"600"},children:O})})]}),h&&/* @__PURE__ */W(S,{numberOfLines:1,style:{color:y.textMuted,fontSize:14,marginTop:2},children:h})]})]}),null!=u&&u>0&&/* @__PURE__ */T(z,{style:{alignItems:"flex-end",flexShrink:0},children:[/* @__PURE__ */W(S,{style:{color:y.textMuted,fontSize:10,textTransform:"uppercase",letterSpacing:.25},children:"Potential Payout"}),/* @__PURE__ */W(S,{style:{color:w,fontSize:14,fontWeight:"700"},children:$t(u)})]})]}),f&&f.remaining>0&&/* @__PURE__ */T(z,{style:{marginTop:N,padding:12,borderRadius:8,borderWidth:1,borderColor:`${y.primary}30`,backgroundColor:`${y.primary}08`,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{flex:1,color:y.textMuted,fontSize:12},children:[1===f.remaining?"Add ":"Add up to ",
152
- /* @__PURE__ */T(S,{style:{color:y.primary,fontWeight:"700"},children:[f.remaining," more pick",1!==f.remaining?"s":""]}),null!=f.potentialPayout&&f.potentialPayout>0&&/* @__PURE__ */T(S,{children:[" ","to win up to"," ",
153
- /* @__PURE__ */W(S,{style:{color:w,fontWeight:"700"},children:$t(f.potentialPayout)})," ","with ",f.max," picks"]})]}),/* @__PURE__ */W(B,{onPress:()=>f.onAdd(),style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:y.buttonPrimary},children:/* @__PURE__ */W(S,{style:{color:y.buttonPrimaryText,fontSize:12,fontWeight:"600"},children:"Add picks"})})]}),D&&(0===P.length?/* @__PURE__ */W(z,{style:[Kr.emptyState,{marginTop:N}],children:/* @__PURE__ */W(S,{style:{color:y.textMuted},children:"No selections made yet"})}):/* @__PURE__ */W(z,{style:{gap:C?12:8,marginTop:N},children:I.map(e=>/* @__PURE__ */T(z,{style:{borderRadius:8,overflow:"hidden",borderWidth:1,borderColor:y.border},children:[e.key?/* @__PURE__ */T(z,{style:{paddingHorizontal:12,paddingVertical:8,backgroundColor:E},children:[/* @__PURE__ */W(jr,{matchup:e.key,renderTeamLogo:s,altText:x,mutedColor:y.textAltMuted??y.textMuted??x}),e.props[0].commence_time?/* @__PURE__ */W(S,{style:[Kr.propTime,{color:y.textAltMuted??y.textMuted}],children:_t(e.props[0].commence_time)}):null]}):null,e.props.map((o,r)=>{const l=t[o.id],a="yes"===l,c="no"===l;/* @__PURE__ */
154
- return T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:C?12:8,paddingHorizontal:12,paddingVertical:C?12:10,backgroundColor:j,borderTopWidth:e.key||r>0?1:0,borderTopColor:y.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[Hr(o,s,e.key),/* @__PURE__ */W(S,{style:{flex:1,minWidth:0,color:x,fontSize:14,lineHeight:19},children:o.description})]}),/* @__PURE__ */T(z,{style:Kr.rightControls,children:[d?/* @__PURE__ */W(dt,{theme:p,size:"sm",value:a?"yes":c?"no":null,onYes:()=>n(o.id,"yes"),onNo:()=>n(o.id,"no")}):l&&/* @__PURE__ */W(ht,{theme:p,size:"sm",value:"yes"===l?"yes":"no"}),/* @__PURE__ */W(B,{onPress:()=>{n(o.id,t[o.id]),i()},accessibilityLabel:"Remove selection",...rt(()=>L(o.id),()=>L(e=>e===o.id?null:e)),style:[Kr.removeButton,{backgroundColor:"transparent"}],children:/* @__PURE__ */W(A,{width:12,height:12,viewBox:"0 0 24 24",children:/* @__PURE__ */W(H,{d:"M6 18L18 6M6 6l12 12",stroke:R===o.id?y.error:y.textAltMuted??y.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})})]})]},o.id)})]},e.key??`solo-${e.props[0].id}`))}))]}),
155
- /* @__PURE__ */W(z,{style:[Kr.section,{padding:C?24:16,backgroundColor:m,borderColor:y.border},v],children:/* @__PURE__ */T(z,{style:Kr.summaryRow,children:[/* @__PURE__ */W(S,{style:{color:y.textMuted,fontSize:14},children:"Total Selections"}),/* @__PURE__ */W(S,{style:{color:y.text,fontSize:14,fontWeight:"600"},children:P.length})]})}),!a&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:y.border,backgroundColor:y.background,marginHorizontal:C?-24:-16,paddingHorizontal:C?24:16,paddingVertical:C?16:12},children:[/* @__PURE__ */W(Ur,{theme:p,variant:"secondary",onPress:i,children:"Back"}),/* @__PURE__ */W(Ur,{theme:p,variant:"primary",disabled:0===P.length,onPress:o,children:"Place bet"})]})]})}var Kr=k.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 Zr({game:t,propositions:n,selections:o,onToggleSelection:i,onRemoveSelection:r,onSubmit:l,onBack:a,loading:c,error:s,expectedCorrect:h,onExpectedCorrectChange:u,betAmount:g,onBetAmountChange:f,theme:p,colorScheme:y,hideActions:m=!1,winningCounts:w,payouts:x,renderTeamLogo:k,showCustomAmount:R=!1,betAmountLocked:L=!1,betAmountLockedNote:D,canSubmit:M,authenticated:P=!0,userBalance:O,onRecharge:I,boostBanner:E}){const j=je(p,y),N=j.colors,G=be(j),Y=Ge(j),V=se(j),U=de(j),q=he(j),K=N.textAlt??N.text,{width:Z}=F(),X=Z>=640,Q="dark"===j.colorScheme,J=n.length,$=t.min_bet??0,_=Math.max($,.01),ee=t.max_bet??null,te=[5,10,20,50,100,200,500].filter(e=>e>=_&&(null===ee||e<=ee)).slice(0,4),ne={};for(let e=0;e<=J;e++)ne[e]=g*e;const oe=x??ne,ie=oe[h]??0,re=hn(t),le=re.enabled&&h===J,[ae,ce]=e.useState(null),[ue,ge]=e.useState(!0),[fe,pe]=e.useState(!1),ye=c||g<_||!1===M,me=null!=O&&g>O,ke=m&&!!l&&P,Se=o?n.filter(e=>e.id in o):n,Ce=Rn(Se),Be=N.matchupHeader??we(j),ze=xe(j),Fe=Object.entries(oe).map(([e,t])=>({correct:Number(e),payout:t})).filter(e=>e.correct>0&&e.payout>0).sort((e,t)=>e.correct-t.correct),ve=1===Fe.length?Fe[0].correct:null;e.useEffect(()=>{null!==ve&&h!==ve&&u(ve)},[ve]);const We={shadowColor:"#000",shadowOpacity:Q?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};/* @__PURE__ */
156
- return T(z,{style:{gap:X?16:12,paddingBottom:64},children:[E,
157
- /* @__PURE__ */T(z,{style:[Xr.section,We,{padding:X?20:16,backgroundColor:G,borderColor:N.border}],children:[
158
- /* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(B,{onPress:()=>ge(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:ue},accessibilityLabel:ue?"Hide selections":"Show selections",testID:"entry-submission-selections-toggle",style:{flexDirection:"row",alignItems:"center",gap:8,flex:1},activeOpacity:.7,children:[/* @__PURE__ */W(z,{style:{transform:[{rotate:ue?"180deg":"0deg"}]},children:/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:N.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})}),/* @__PURE__ */W(S,{style:{fontSize:X?16:14,fontWeight:"600",color:V,fontFamily:Y},children:ue?"Hide Selections":"Review Selections"})]}),/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:999,flexShrink:0,backgroundColor:`${N.primary}15`},children:/* @__PURE__ */T(S,{style:{color:N.primary,fontSize:12,fontWeight:"600"},children:[Se.length," pick",1!==Se.length?"s":""]})})]}),!ue&&/* @__PURE__ */W(S,{style:{color:N.textMuted,fontSize:12,marginTop:8},children:"Tap to show your picks"}),ue&&/* @__PURE__ */W(z,{style:{gap:8,marginTop:12},children:Ce.map(e=>/* @__PURE__ */T(z,{style:{borderRadius:8,overflow:"hidden",borderWidth:1,borderColor:N.border},children:[e.key?/* @__PURE__ */T(z,{style:{paddingHorizontal:12,paddingVertical:8,backgroundColor:Be},children:[/* @__PURE__ */W(jr,{matchup:e.key,renderTeamLogo:k,altText:K,mutedColor:N.textAltMuted??N.textMuted??K}),e.props[0].commence_time?/* @__PURE__ */W(S,{style:{color:N.textAltMuted??N.textMuted,fontSize:11,marginTop:2,opacity:.7},children:_t(e.props[0].commence_time)}):null]}):null,e.props.map((t,n)=>{const l=o?.[t.id],a="yes"===l,c="no"===l,s=!!i;/* @__PURE__ */
159
- return T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8,paddingVertical:8,paddingHorizontal:12,backgroundColor:ze,borderTopWidth:e.key||n>0?1:0,borderTopColor:N.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[Hr(t,k,e.key),/* @__PURE__ */W(S,{style:{color:K,fontSize:X?14:12,flexShrink:1},children:t.description})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:0},children:[s?/* @__PURE__ */W(dt,{theme:j,size:"xs",value:a?"yes":c?"no":null,onYes:()=>i(t.id,"yes"),onNo:()=>i(t.id,"no")}):l?/* @__PURE__ */W(ht,{theme:j,size:"sm",value:"yes"===l?"yes":"no",style:{flexShrink:0}}):null,ue&&r&&/* @__PURE__ */W(b,{onPress:()=>{l&&i?.(t.id,l),r(t.id)},...rt(()=>ce(t.id),()=>ce(null)),accessibilityRole:"button",accessibilityLabel:"Remove selection",style:{flexShrink:0,width:44,height:44,alignItems:"center",justifyContent:"center",backgroundColor:"transparent"},children:/* @__PURE__ */W(z,{style:{width:26,height:26,borderRadius:13,alignItems:"center",justifyContent:"center",backgroundColor:ae===t.id?N.error:"transparent"},children:/* @__PURE__ */W(A,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M6 18L18 6M6 6l12 12",stroke:ae===t.id?"#fff":N.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})})]})]},t.id)})]},e.key??`solo-${e.props[0].id}`))})]}),ke&&/* @__PURE__ */T(z,{testID:"entry-submission-scroll-hint",style:{flexDirection:"row",alignItems:"center",gap:6,marginTop:-4},children:[/* @__PURE__ */W(S,{style:{color:N.textMuted,fontSize:X?14:12,fontWeight:"500"},children:"↓"}),/* @__PURE__ */W(S,{style:{color:N.textMuted,fontSize:X?14:12,fontWeight:"500",flex:1},children:"Scroll down to set your bet and place your entry"})]}),P?/* @__PURE__ */T(v,{children:[/* @__PURE__ */T(z,{style:[Xr.section,We,{padding:X?24:16,backgroundColor:G,borderColor:N.border}],children:[
160
- /* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:X?16:12},children:[/* @__PURE__ */W(S,{style:{fontSize:X?18:16,fontWeight:"600",color:V,fontFamily:Y},children:"How much are you betting?"}),null!=O&&/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"600",color:N.textMuted},children:["Balance: ",/* @__PURE__ */W(S,{style:{color:me?N.error:N.success},children:$t(O)})]})]}),me&&/* @__PURE__ */T(z,{style:{marginBottom:12,paddingHorizontal:12,paddingVertical:8,borderRadius:8,backgroundColor:N.errorBg??`${N.error}15`,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{flex:1,fontSize:12,fontWeight:"500",color:N.errorText??N.error},children:["Insufficient balance. Your bet of ",$t(g)," exceeds your available ",$t(O),"."]}),I&&/* @__PURE__ */W(B,{onPress:I,style:{paddingHorizontal:12,paddingVertical:4,borderRadius:6,backgroundColor:N.error},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:N.buttonPrimaryText??"#fff"},children:"Add funds"})})]}),/* @__PURE__ */T(z,L?{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:8,paddingHorizontal:12,paddingVertical:10,backgroundColor:N.backgroundAlt,borderWidth:1,borderColor:N.border},children:[/* @__PURE__ */W(S,{style:{fontSize:12,color:N.textMuted,flex:1},children:D??"Stake is set for this ticket."}),/* @__PURE__ */W(S,{style:{fontSize:18,fontWeight:"700",color:V,fontFamily:Y},children:$t(g)})]}:{style:{gap:16},children:[R&&/* @__PURE__ */T(z,{children:[
161
- /* @__PURE__ */W(S,{style:{fontSize:X?14:12,fontWeight:"600",color:U,marginBottom:8},children:"Entry amount"}),
162
- /* @__PURE__ */T(z,{style:{position:"relative"},children:[/* @__PURE__ */W(z,{style:{position:"absolute",left:12,top:0,bottom:0,justifyContent:"center",zIndex:1},pointerEvents:"none",children:/* @__PURE__ */W(S,{style:{color:N.textMuted},children:"$"})}),/* @__PURE__ */W(C,{keyboardType:"decimal-pad",placeholder:"Enter amount",accessibilityLabel:"Entry amount",value:g?String(g):"",onChangeText:e=>{if(""===e)return void f(0);const t=Number(e);if(!Number.isFinite(t))return;const n=Math.max(0,Math.round(100*t)/100);f(null!==ee?Math.min(n,ee):n)},onFocus:()=>pe(!0),onBlur:()=>pe(!1),style:{paddingLeft:32,paddingRight:16,paddingVertical:12,borderWidth:1,borderRadius:8,fontSize:18,fontWeight:"600",borderColor:fe?N.borderFocus??N.primary:N.border,color:K,backgroundColor:N.backgroundAlt},placeholderTextColor:N.textMuted})]}),
163
- /* @__PURE__ */T(S,{style:{fontSize:12,marginTop:6,color:N.textMuted},children:["Minimum bet: ",$t(_),null!==ee?` · Maximum: ${$t(ee)}`:""]}),g>0&&g<_&&/* @__PURE__ */T(S,{style:{fontSize:12,marginTop:4,color:N.error},children:["Bet amount must be at least ",$t(_)]})]}),/* @__PURE__ */T(z,{children:[(R||g>0)&&/* @__PURE__ */T(z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[R?/* @__PURE__ */W(S,{style:{fontSize:X?14:12,fontWeight:"600",color:U},children:"Add to bet"}):/* @__PURE__ */W(z,{}),g>0&&/* @__PURE__ */W(B,{onPress:()=>f(0),style:{paddingHorizontal:10,paddingVertical:4,borderRadius:6,backgroundColor:N.backgroundAlt,borderWidth:1.5,borderColor:N.border},children:/* @__PURE__ */W(S,{style:{color:N.textMuted,fontSize:12,fontWeight:"600"},children:"Clear bet"})})]}),/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8},children:te.map(e=>{const t=null!==ee&&g>=ee;/* @__PURE__ */
164
- return W(B,{onPress:()=>{const t=g+e;f(null!==ee?Math.min(t,ee):t)},disabled:t,style:{flex:1,minWidth:0,paddingHorizontal:12,paddingVertical:10,borderRadius:8,backgroundColor:"transparent",borderWidth:1,borderColor:N.border,opacity:t?.5:1,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */T(S,{style:{color:K,fontSize:14,fontWeight:"600"},children:["+",$t(e)]})},e)})})]})]})]}),/* @__PURE__ */W(z,{style:[Xr.section,We,{padding:X?20:16,backgroundColor:G,borderColor:N.border}],children:(()=>{const e=m&&!!l,t=/* @__PURE__ */T(v,{children:[
165
- /* @__PURE__ */T(z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[/* @__PURE__ */W(S,{style:{color:U,fontSize:14},children:"Bet"}),/* @__PURE__ */W(S,{style:{color:q,fontSize:14,fontWeight:"600"},children:$t(g)})]}),ie>0&&/* @__PURE__ */T(z,{style:{flexDirection:"row",flexWrap:"wrap",columnGap:8,justifyContent:"space-between",alignItems:"center",paddingTop:8,borderTopWidth:1,borderTopColor:N.border},children:[/* @__PURE__ */W(S,{style:{color:U,fontSize:14,fontWeight:"600"},children:"Potential Payout"}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center"},children:[/* @__PURE__ */W(S,{style:{color:V,fontSize:18,fontWeight:"700"},children:$t(ie)}),le&&/* @__PURE__ */W(S,{style:{color:N.warning,fontSize:12,marginLeft:4},children:"+ Jackpot"})]})]}),re.enabled&&/* @__PURE__ */T(z,{style:[Xr.jackpotBanner,{backgroundColor:`${N.warning}08`,borderColor:`${N.warning}25`}],children:[/* @__PURE__ */T(S,{style:{color:N.warning,fontSize:12,fontWeight:"600"},children:["★ ",re.progressive?"Progressive Jackpot":"Jackpot"]}),/* @__PURE__ */W(S,{style:{color:N.warning,fontSize:14,fontWeight:"700"},children:re.progressive?re.amount>0?$t(re.amount):re.limit>0?`Up to ${$t(re.limit)}`:"Progressive":$t(re.amount)})]})]});return e?/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"stretch",gap:16},children:[
113
+ /* @__PURE__ */T(z,{style:Ri.compositeLegBody,children:[e.eventLabel?/* @__PURE__ */W(S,{style:[Ri.compositeLegEvent,{color:c.textMuted}],children:e.eventLabel}):null,/* @__PURE__ */W(S,{style:[Ri.compositeLegText,{color:he(t),fontFamily:n}],children:e.text})]})]},o))})]}):/* @__PURE__ */W(S,{style:[Ri.proposition,{flex:1,color:he(t),fontFamily:n}],children:e.description??e.proposition})]}),e.outcome_description&&e.outcome_description!==e.description&&/* @__PURE__ */W(S,{style:[Ri.outcome,{color:c.textMuted}],children:e.outcome_description})]}),
114
+ /* @__PURE__ */T(z,{style:[Ri.faceFooter,{borderTopColor:c.borderSubtle??c.border}],children:[e.sport?/* @__PURE__ */W(z,{style:[Ri.sportChip,{backgroundColor:c.infoBg}],children:/* @__PURE__ */W(S,{style:[Ri.sportChipText,{color:c.infoText}],children:i(e.sport)})}):null,u?/* @__PURE__ */W(S,{style:[Ri.footerMeta,{color:c.textMuted}],children:u.replace(/[_-]+/g," ").toUpperCase()}):null,e.commence_time?/* @__PURE__ */W(S,{style:[Ri.footerMeta,Ri.footerDate,{color:c.textMuted}],children:Jt(e.commence_time)}):null]})]})}function Li({onBack:e,onNext:t,viewSwitch:o,onDragStateChange:i}){const{theme:c,headingFont:s,propositions:d,selections:h,toggleSelection:u,selectedGame:g,selectedPropositionCount:f,answeredCount:p,selectionValid:y,goToConfirmation:m,goToSportSelection:b,loading:w,error:x,selectedRule:k,compositeComponentById:C}=gi(),A=c.colors,L=A.productYes??Bi,R=A.productNo??zi,{height:D}=v(),M=Math.max(224,Math.min(.44*D,416)),P=a(null);r(()=>{g||(b(),e?.())},[b,e,g]);const H=l(()=>Lr(d,h,C),[d,h,C]),O=n(e=>H.isCapped(e),[H]),{visible:I,canSkip:E,canUndo:j,restored:N,resolve:G,undo:Y}=wi(d,h,u,O),V=g?cn(g,f??void 0,k):{min:0,max:0},U=V.max,q=U>0&&p>=U,K=(()=>{if(!g)return null;if(V.min>0&&V.min===V.max)return V.min;const e=ri(g);return null!=f&&f>0&&("game_set"===e||"pick_your_dividend"===e||ii(g))?f:U>0?U:null})(),Z=a(p);r(()=>{const e=Z.current;if(Z.current=p,null==K||e>=K||p!==K)return;const n=setTimeout(()=>{m(),t?.()},420);return()=>clearTimeout(n)},[p,m,t,K]);const X=!q&&I.length>0,Q=n(e=>{P.current=e},[]);if(!g)return null;const J=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:n,disabled:o,accessibilityLabel:e,accessibilityRole:"button",style:[Ri.circleButton,{borderColor:A.border,backgroundColor:A.background},o&&Ri.disabled],children:/* @__PURE__ */W(S,{style:{fontSize:18,color:A.textMuted},children:t})});/* @__PURE__ */
115
+ return T(z,{style:Ri.container,children:[o?/* @__PURE__ */W(z,{style:Ri.viewSwitchRow,children:o}):null,w?/* @__PURE__ */W(S,{style:[Ri.loadingText,{color:A.textMuted}],children:"Loading…"}):x?/* @__PURE__ */W(z,{style:[Ri.errorBox,{backgroundColor:A.errorBg,borderColor:A.error}],children:/* @__PURE__ */W(S,{style:{fontSize:14,color:A.errorText??A.error,textAlign:"center"},children:x})}):/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(z,{style:Ri.deckArea,children:X?/* @__PURE__ */W(z,{style:[Ri.deck,{height:M}],children:I.map((e,t)=>/* @__PURE__ */W(Ti,{prop:e,depth:t,canSkip:E,enterFrom:N?.id===e.id?N.from:null,onResolve:G,registerApi:0===t?Q:void 0,onDragStateChange:0===t?i:void 0,children:/* @__PURE__ */W(Ai,{prop:e})},e.id))}):/* @__PURE__ */T(z,{style:[Ri.emptyState,{backgroundColor:be(c),borderColor:A.border}],children:[
116
+ /* @__PURE__ */W(S,{style:[Ri.emptyTitle,{color:se(c),fontFamily:s}],children:q?"Card full":"That’s the last one"}),
117
+ /* @__PURE__ */W(S,{style:[Ri.emptyBody,{color:A.textMuted}],children:q?`You've picked all ${U} legs for ${g.game_name}. Undo a swipe to change one, or lock it in.`:y?"You've been through every proposition. Lock your card in, or undo to revisit a pick.":`No propositions left to answer${V.min>0?` — this game needs at least ${V.min}`:""}. Undo a swipe or head back to widen the pool.`}),j&&/* @__PURE__ */W(B,{onPress:Y,style:[Ri.emptyUndo,{borderColor:A.border}],children:/* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:A.text},children:"Undo last swipe"})})]})}),/* @__PURE__ */T(z,{style:[Ri.buttonArea,{backgroundColor:be(c),borderColor:A.border}],children:[/* @__PURE__ */T(z,{style:Ri.buttonRow,children:[J("Undo last swipe","↺",Y,!j),
118
+ /* @__PURE__ */W(B,{onPress:()=>P.current?.fly("left"),disabled:!X,style:[Ri.answerButton,{backgroundColor:R},!X&&Ri.disabled],children:/* @__PURE__ */W(S,{style:[Ri.answerButtonText,{fontFamily:s}],children:"NO"})}),
119
+ /* @__PURE__ */W(B,{onPress:()=>P.current?.fly("right"),disabled:!X,style:[Ri.answerButton,{backgroundColor:L},!X&&Ri.disabled],children:/* @__PURE__ */W(S,{style:[Ri.answerButtonText,{fontFamily:s}],children:"YES"})}),J("Skip this proposition","↑",()=>P.current?.fly("up"),!X||!E)]}),/* @__PURE__ */W(S,{style:[Ri.gestureHint,{color:A.textMuted}],children:E?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})]})]})}var Ri=k.create({container:{flex:1},viewSwitchRow:{flexDirection:"row",justifyContent:"flex-end",paddingBottom:12},loadingText:{paddingVertical:40,textAlign:"center",fontSize:14},errorBox:{borderRadius:12,borderWidth:1,padding:16},deckArea:{flex:1,minHeight:0,justifyContent:"center",paddingTop:12,paddingBottom:32},deck:{width:"100%",maxWidth:384,alignSelf:"center"},face:{flex:1,borderRadius:24,borderWidth:1,overflow:"hidden",shadowColor:"#0A1416",shadowOpacity:.25,shadowRadius:20,shadowOffset:{width:0,height:12},elevation:8},matchupBand:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4,paddingHorizontal:20,paddingVertical:12},matchupTeam:{flexDirection:"row",alignItems:"center",gap:6},matchupVs:{fontSize:12,marginRight:4},matchupName:{fontSize:14,fontWeight:"600"},faceBody:{flex:1,justifyContent:"center",gap:16,paddingHorizontal:20,paddingVertical:24},compositeLabel:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.5},compositeLeg:{flexDirection:"row",alignItems:"flex-start",gap:8},compositeLegBody:{flex:1,minWidth:0},compositeLegEvent:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:.25,lineHeight:13},compositeLegText:{fontSize:16,fontWeight:"700",lineHeight:21},propositionRow:{flexDirection:"row",alignItems:"flex-start",gap:8},proposition:{fontSize:21,fontWeight:"800",lineHeight:27,letterSpacing:-.3},outcome:{fontSize:14,lineHeight:19},faceFooter:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:8,borderTopWidth:1,paddingHorizontal:20,paddingVertical:12},sportChip:{borderRadius:999,paddingHorizontal:8,paddingVertical:2},sportChipText:{fontSize:11,fontWeight:"600",textTransform:"uppercase",letterSpacing:.5},footerMeta:{fontSize:11,letterSpacing:.5},footerDate:{marginLeft:"auto"},stamp:{position:"absolute",top:20,borderWidth:4,borderRadius:12,paddingHorizontal:12,paddingVertical:4},stampLeft:{left:20},stampRight:{right:20},stampText:{fontSize:24,fontWeight:"800",textTransform:"uppercase",letterSpacing:2},skipPillWrap:{position:"absolute",left:0,right:0,bottom:24,alignItems:"center"},skipPill:{borderWidth:1,borderRadius:999,paddingHorizontal:12,paddingVertical:4},skipPillText:{fontSize:12,fontWeight:"600",textTransform:"uppercase",letterSpacing:1.5},emptyState:{width:"100%",maxWidth:384,alignSelf:"center",alignItems:"center",gap:12,borderRadius:24,borderWidth:1,borderStyle:"dashed",paddingHorizontal:24,paddingVertical:40},emptyTitle:{fontSize:16,fontWeight:"800"},emptyBody:{fontSize:14,textAlign:"center",lineHeight:19},emptyUndo:{borderWidth:1,borderRadius:999,paddingHorizontal:20,paddingVertical:8},buttonArea:{flexShrink:0,borderWidth:1,borderRadius:16,paddingHorizontal:12,paddingTop:12,paddingBottom:10},buttonRow:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12,width:"100%",maxWidth:384,alignSelf:"center"},circleButton:{height:44,width:44,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},answerButton:{flex:1,height:56,borderRadius:999,alignItems:"center",justifyContent:"center"},answerButtonText:{fontSize:18,fontWeight:"800",letterSpacing:1.5,color:"#ffffff"},gestureHint:{marginTop:8,textAlign:"center",fontSize:11},disabled:{opacity:.35}});function Di({propositions:e,title:t,onClose:o}){const{theme:r,selections:i,toggleSelection:c,compositeComponentById:s}=gi(),d=r.colors,{height:h}=v(),u=l(()=>Lr(e,i,s),[e,i,s]),g=n(e=>u.isCapped(e),[u]),{visible:f,canSkip:y,canUndo:m,restored:b,resolve:w,undo:x}=wi(e,i,c,g),k=a(null),C=n(e=>{k.current=e},[]),F=Ge(r),A=me(r),L=f.length>0,R=be(r),D=Math.max(224,Math.min(.44*h,416)),M=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:n,disabled:o,accessibilityLabel:e,accessibilityRole:"button",style:[Mi.circle,{borderColor:d.border,backgroundColor:d.background},o&&Mi.disabled],children:/* @__PURE__ */W(S,{style:{fontSize:18,color:d.textMuted},children:t})}),P=(e,t,n)=>/* @__PURE__ */W(B,{onPress:()=>k.current?.fly(e),disabled:!L,style:[Mi.answer,{backgroundColor:n},!L&&Mi.disabled],children:/* @__PURE__ */W(S,{style:[Mi.answerText,{fontFamily:F}],children:t.toUpperCase()})});/* @__PURE__ */
120
+ return W(p,{visible:!0,transparent:!0,animationType:"fade",onRequestClose:o,children:/* @__PURE__ */W(z,{style:Mi.backdrop,children:/* @__PURE__ */T(z,{style:[Mi.panel,{backgroundColor:R,borderColor:d.border}],children:[
121
+ /* @__PURE__ */T(z,{style:Mi.header,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[Mi.title,{color:ye(r),fontFamily:F}],children:t}),/* @__PURE__ */W(B,{onPress:o,accessibilityLabel:"Close",accessibilityRole:"button",style:[Mi.close,{borderColor:d.border}],children:/* @__PURE__ */W(S,{style:{fontSize:16,color:A},children:"×"})})]}),
122
+ /* @__PURE__ */W(z,{style:Mi.deckArea,children:L?/* @__PURE__ */W(z,{style:[Mi.deck,{height:D}],children:f.map((e,t)=>/* @__PURE__ */W(Ti,{prop:e,depth:t,canSkip:y,enterFrom:b?.id===e.id?b.from:null,onResolve:w,registerApi:0===t?C:void 0,children:/* @__PURE__ */W(Ai,{prop:e})},e.id))}):/* @__PURE__ */T(z,{style:[Mi.empty,{borderColor:d.border}],children:[/* @__PURE__ */W(S,{style:[Mi.emptyTitle,{color:se(r),fontFamily:F}],children:"That’s the last one"}),/* @__PURE__ */W(S,{style:[Mi.emptyBody,{color:d.textMuted}],children:"You’ve been through every proposition on this fixture. Close to go back to the card, or undo to revisit a pick."})]})}),
123
+ /* @__PURE__ */T(z,{style:Mi.buttonRow,children:[M("Undo last swipe","↺",x,!m),P("left","No",ge(r)),P("right","Yes",ue(r)),M("Skip this proposition","↑",()=>k.current?.fly("up"),!L||!y)]}),
124
+ /* @__PURE__ */W(S,{style:[Mi.hint,{color:d.textMuted}],children:y?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})})})}var Mi=k.create({backdrop:{flex:1,backgroundColor:"rgba(0,0,0,0.6)",alignItems:"center",justifyContent:"center",padding:16},panel:{width:"100%",maxWidth:420,borderRadius:24,borderWidth:1,padding:16,overflow:"hidden"},header:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:12},title:{flex:1,minWidth:0,fontSize:14,fontWeight:"700"},close:{width:32,height:32,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},deckArea:{justifyContent:"center",paddingTop:4,paddingBottom:12},deck:{width:"100%",alignSelf:"center"},empty:{alignItems:"center",gap:12,borderRadius:24,borderWidth:1,borderStyle:"dashed",paddingHorizontal:24,paddingVertical:40},emptyTitle:{fontSize:16,fontWeight:"800"},emptyBody:{fontSize:14,textAlign:"center"},buttonRow:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12,paddingTop:24},circle:{width:44,height:44,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},answer:{flex:1,height:56,borderRadius:999,alignItems:"center",justifyContent:"center"},answerText:{fontSize:18,fontWeight:"800",letterSpacing:1.5,color:"#fff"},hint:{marginTop:8,fontSize:11,textAlign:"center"},disabled:{opacity:.35}}),Pi=["split","split-inline","compact"];function Hi(e){return new Intl.DateTimeFormat("en-AU",{weekday:"short",day:"numeric",month:"short"}).format(e).replace(",","")}function Oi(e){return new Intl.DateTimeFormat("en-AU",{hour:"numeric",minute:"2-digit",hour12:!0}).format(e).replace(/\s/g,"").toLowerCase()}function Ii(e){const t=(e??"").trim().split(/\s+/).filter(Boolean);return(t[t.length-1]??"").slice(0,3).toUpperCase()}function Ei(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}function ji(e){const t=e?.trim();if(t&&"undefined"!==t&&"null"!==t)return t}function Ni(e,t=!1){const n=Object.entries(e).map(([e,n])=>function(e,t,n){const[o,r]=n?[]:e.split(" vs ").map(ji),i=t.map(Ei).filter(e=>null!==e),l=i.length>0?new Date(Math.min(...i.map(e=>e.getTime()))):null;return{key:e,title:n||!o?n?e:ji(t[0]?.league??void 0)??"":[o,r].filter(Boolean).join(" vs "),home:o,away:r,racing:n,date:l,props:t}}(e,n,t)),o=n.filter(e=>null!==e.date).sort((e,t)=>e.date.getTime()-t.date.getTime()),r=n.filter(e=>null===e.date),i=/* @__PURE__ */new Map;for(const a of o){const e=a.date.toDateString(),t=i.get(e);t?t.events.push(a):i.set(e,{key:e,label:Hi(a.date),events:[a]})}const l=[...i.values()];return r.length>0&&l.push({key:"undated",label:"",events:r}),l}var Gi={split:{fontSize:13,fontWeight:"400",lineHeight:18},compact:{fontSize:11,fontWeight:"400",lineHeight:15}};function Yi({variant:e,groups:t,racing:n,selections:o,onToggleSelection:r,atMax:i,theme:a,renderTeamLogo:s,componentById:d,disableEventSwipe:h=!1}){const u=a.colors,g=be(a),f=we(a),p=u.borderSubtle??u.border,y=ye(a),m=me(a),b=he(a),w=de(a),x=se(a),k=Ge(a),{width:C}=v(),[A,L]=c(null),[R,D]=c(/* @__PURE__ */new Set),[M,P]=c(/* @__PURE__ */new Set),H=e=>t=>e(e=>{const n=new Set(e);return n.delete(t)||n.add(t),n}),O=H(D),I=H(P),E=l(()=>Ni(t,n),[t,n]),{width:j}=v(),N=l(()=>Lr(Object.values(t).flat(),o,d),[t,o,d]),G=e=>i&&!(e.id in o)||N.isCapped(e),Y=e=>j<640?null:/* @__PURE__ */W(z,{style:{flexDirection:"row",alignItems:"center",gap:4},children:N.slotsFor(Tr(e.props[0])).map(({family:e,label:t,filled:n})=>/* @__PURE__ */W(z,{accessibilityLabel:Cr(e,n),style:[qi.slotChip,{borderColor:n?y:p,borderStyle:n?"solid":"dashed"}],children:/* @__PURE__ */W(S,{style:[qi.slotChipText,{color:n?y:m}],children:t})},e))}),V=(e,t)=>{G(e)||r(e.id,t)},U=(e,t)=>e?s?.(e,t)??null:null,q=(e,t,n)=>/* @__PURE__ */W(st,{theme:a,size:t,stretch:n,disabled:G(e),value:o[e.id]??null,onYes:()=>V(e,"yes"),onNo:()=>V(e,"no")}),K=(e,t)=>/* @__PURE__ */T(z,{style:qi.question,children:[n?Ji(e,s,null):null,/* @__PURE__ */W(ol,{prop:e,colors:u,componentById:d,textStyle:Gi[t],textColor:b})]}),Z=e=>{if(h)return null;const t=e.props.filter(e=>!G(e));return 0===t.length?null:/* @__PURE__ */T(B,{onPress:()=>L(e),accessibilityRole:"button",accessibilityLabel:`Swipe ${t.length} proposition${1===t.length?"":"s"}`,style:[qi.swipePill,{borderColor:p}],children:[/* @__PURE__ */W(Vi,{color:y}),/* @__PURE__ */W(S,{style:[qi.swipeLabel,{color:y}],children:"SWIPE"})]})},X=(e,t)=>/* @__PURE__ */W(B,{onPress:()=>O(e.key),accessibilityRole:"button",accessibilityState:{expanded:t},accessibilityLabel:`${t?"Hide":"Show"} ${e.props.length} proposition${1===e.props.length?"":"s"}`,style:[qi.foldButton,{borderColor:p}],children:/* @__PURE__ */W(z,{style:{transform:[{rotate:t?"0deg":"-90deg"}]},children:/* @__PURE__ */W(Ui,{color:w})})}),Q=e=>{if(!e.home&&!e.away)/* @__PURE__ */return W(S,{numberOfLines:1,style:[qi.shortLabel,{color:y}],children:e.title});const t=[e.home,e.away].filter(Boolean).join(" v "),n=M.has(e.key);/* @__PURE__ */
125
+ return T(B,{onPress:()=>I(e.key),accessibilityRole:"button",accessibilityLabel:t,accessibilityState:{selected:n},style:{minWidth:0,maxWidth:"100%",flexDirection:"row",alignItems:"center"},children:[
126
+ /* @__PURE__ */W(S,{style:[qi.shortLabel,{color:y,fontFamily:k}],children:n?e.home:Ii(e.home)}),
127
+ /* @__PURE__ */W(S,{style:[qi.vs,{color:m}],children:"v"}),
128
+ /* @__PURE__ */W(S,{style:[qi.shortLabel,{color:y,fontFamily:k}],children:n?e.away:Ii(e.away)})]})},J=e=>e.racing||!e.home?/* @__PURE__ */W(S,{numberOfLines:1,style:[qi.shortLabel,{color:y,fontFamily:k}],children:e.title}):/* @__PURE__ */T(z,{style:{maxWidth:"100%",flexDirection:"row",alignItems:"center"},children:[
129
+ /* @__PURE__ */W(S,{numberOfLines:1,style:[qi.shortLabel,{color:y,fontFamily:k}],children:Ii(e.home)}),
130
+ /* @__PURE__ */W(S,{style:[qi.vs,{color:m}],children:"v"}),
131
+ /* @__PURE__ */W(S,{numberOfLines:1,style:[qi.shortLabel,{color:y,fontFamily:k}],children:Ii(e.away)})]}),$=t=>"compact"===e?(e=>/* @__PURE__ */T(z,{style:[qi.compactCard,{borderColor:u.border,backgroundColor:g}],children:[/* @__PURE__ */T(z,{style:[qi.compactHeader,{backgroundColor:f}],children:[!e.racing&&U(e.home,18),Q(e),!e.racing&&U(e.away,18),e.date&&/* @__PURE__ */W(S,{style:[qi.compactTime,{color:m}],children:Oi(e.date)}),
132
+ /* @__PURE__ */W(z,{style:{marginLeft:"auto"},children:Z(e)})]}),e.props.map(e=>/* @__PURE__ */T(z,{style:[qi.compactRow,{borderTopColor:p,opacity:G(e)?.45:1}],children:[/* @__PURE__ */W(z,{style:{flex:1,minWidth:0},children:K(e,"compact")}),q(e,"xs")]},e.id))]},e.key))(t):((e,t)=>{const n=!R.has(e.key),o=`${e.props.length} proposition${1===e.props.length?"":"s"}`;/* @__PURE__ */
133
+ return T(z,n?{style:[qi.splitCard,{borderColor:u.border,backgroundColor:g}],children:[/* @__PURE__ */T(z,{style:[qi.splitStub,{borderColor:p,backgroundColor:f}],children:[!e.racing&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:2},children:[U(e.home,24),U(e.away,24)]}),J(e),e.date&&/* @__PURE__ */W(S,{style:[qi.time,{color:m}],children:Oi(e.date)}),Z(e)]}),/* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */T(z,{style:[qi.splitCountRow,{borderBottomColor:p}],children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[qi.splitTitle,{color:y,fontFamily:k}],children:e.title}),/* @__PURE__ */T(z,{style:{marginLeft:"auto",flexDirection:"row",alignItems:"center",gap:8},children:[Y(e),X(e,n)]})]}),/* @__PURE__ */W(z,{style:qi.splitBody,children:e.props.map(e=>/* @__PURE__ */T(z,{style:[t?{flexDirection:"row",alignItems:"center",gap:10}:{flexDirection:"column",gap:10},{opacity:G(e)?.45:1}],children:[/* @__PURE__ */W(z,{style:{flex:1,minWidth:0},children:K(e,"split")}),t?q(e,"xs"):q(e,"sm",!0)]},e.id))})]})]}:{style:[qi.foldedStrip,{borderColor:u.border,backgroundColor:g}],children:[
134
+ /* @__PURE__ */T(z,{style:[qi.foldedStub,{borderColor:p,backgroundColor:f}],children:[!e.racing&&/* @__PURE__ */T(F,{children:[U(e.home,16),U(e.away,16)]}),Q(e)]}),
135
+ /* @__PURE__ */W(S,{style:[qi.count,qi.foldedCount,{color:m}],children:o}),
136
+ /* @__PURE__ */W(z,{style:{marginLeft:"auto",paddingRight:8},children:X(e,n)})]},e.key)})(t,"split-inline"===e);/* @__PURE__ */
137
+ return T(z,{style:{paddingBottom:16},children:[E.map(e=>{/* @__PURE__ */return T(z,{children:[e.label?(t=e.label,/* @__PURE__ */T(z,{style:qi.dayHeader,children:[/* @__PURE__ */W(S,{style:[qi.dayLabel,{color:x,fontFamily:k}],children:t}),/* @__PURE__ */W(z,{style:[qi.rule,{backgroundColor:p}]})]})):null,e.events.map($)]},e.key);var t}),A&&/* @__PURE__ */W(Di,{propositions:A.props.filter(e=>!G(e)),title:A.title,onClose:()=>L(null)})]})}function Vi({color:e}){/* @__PURE__ */
138
+ return T(A,{width:15,height:15,viewBox:"0 0 24 24",fill:"none",children:[/* @__PURE__ */W(I,{x:3,y:5,width:12,height:16,rx:2,stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */W(H,{d:"M8.5 3h7a2 2 0 0 1 2 2v12",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Ui({color:e}){/* @__PURE__ */
139
+ return W(A,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}var qi=k.create({question:{flexDirection:"row",alignItems:"flex-start",gap:8,minWidth:0,flex:1},dayHeader:{flexDirection:"row",alignItems:"center",gap:8,marginTop:16,marginBottom:8},dayLabel:{fontSize:11,fontWeight:"700",letterSpacing:.3},rule:{flex:1,height:1},shortLabel:{fontSize:11.5,fontWeight:"700",lineHeight:15},vs:{fontSize:9,fontWeight:"600",paddingHorizontal:2},swipePill:{flexDirection:"row",height:28,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center",gap:4,paddingHorizontal:4},swipeLabel:{fontSize:9,fontWeight:"700",letterSpacing:.25},foldButton:{width:24,height:24,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},count:{fontSize:10,fontWeight:"600"},splitTitle:{fontSize:11,fontWeight:"700",flexShrink:1},slotChip:{borderWidth:1,borderRadius:999,paddingHorizontal:6,paddingVertical:1},slotChipText:{fontSize:8.5,fontWeight:"700",letterSpacing:.25,textTransform:"uppercase"},foldedCount:{fontSize:11,paddingHorizontal:12},time:{fontSize:9.5,fontWeight:"500"},foldedStrip:{flexDirection:"row",alignItems:"center",borderRadius:16,borderWidth:1,overflow:"hidden",marginBottom:8},foldedStub:{flexDirection:"row",alignItems:"center",gap:4,alignSelf:"stretch",borderRightWidth:1,paddingHorizontal:8,paddingVertical:6},splitCard:{flexDirection:"row",alignItems:"stretch",borderRadius:16,borderWidth:1,overflow:"hidden",marginBottom:8},splitStub:{width:80,alignItems:"center",justifyContent:"center",gap:6,borderRightWidth:1,paddingHorizontal:8,paddingVertical:12},splitCountRow:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1},splitBody:{justifyContent:"center",gap:12,paddingHorizontal:12,paddingVertical:10},compactCard:{borderRadius:16,borderWidth:1,overflow:"hidden",marginBottom:8},compactHeader:{flexDirection:"row",alignItems:"center",gap:6,minWidth:0,paddingHorizontal:12,paddingVertical:8},compactTime:{fontSize:9,fontWeight:"500"},compactRow:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:12,paddingVertical:10,borderTopWidth:1}}),Ki={today:"Today",weekend:"This weekend",next7:"Next 7 days"},Zi=["today","weekend","next7"];function Xi(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function Qi(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:Xi(n,1)};case"weekend":{const e=n.getDay(),t=Xi(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:Xi(t,2)}}case"next7":return{start:n,end:Xi(n,7)}}}(t,n);return o>=r&&o<i}function Ji(e,t,n){if(!t||(o=n)&&o.split(" vs ").length>1)return null;var o;const r=e.outcome||e.description;return r?t(r):null}var $i=640,_i=12;function el({theme:e,variant:t,disabled:n,onPress:o,children:r}){const i=e.colors,[l,a]=c(!1),s="primary"===t?{bg:i.buttonPrimary,bgHover:i.buttonPrimaryHover,fg:i.buttonPrimaryText,border:i.buttonPrimary}:{bg:i.buttonSecondary,bgHover:i.buttonSecondaryHover,fg:i.buttonSecondaryText,border:i.border};/* @__PURE__ */
140
+ return W(B,{onPress:o,disabled:n,activeOpacity:.85,...it(()=>a(!0),()=>a(!1)),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:s.border,backgroundColor:l&&!n?s.bgHover:s.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:/* @__PURE__ */W(S,{style:{color:s.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:r})})}function tl({matchup:e,renderTeamLogo:t,altText:n,mutedColor:o,size:r="sm"}){const{width:i}=v(),l=i>=$i,[a,c=""]=e.split(" vs "),s=c.length>0,d="md"===r&&l?16:14;if(!s)/* @__PURE__ */return W(S,{style:{color:n,fontSize:d,fontWeight:"600"},children:e});const h=e=>/* @__PURE__ */T(z,{style:il.teamLogoRowWrap,children:[t?.(e),/* @__PURE__ */W(S,{style:{color:n,fontSize:d,fontWeight:"600",flexShrink:1},children:e})]}),u=/* @__PURE__ */W(S,{style:{color:o,fontSize:12,flexShrink:0},children:"vs"});/* @__PURE__ */
141
+ return T(z,l?{style:il.matchupTeamsRow,children:[h(a),u,h(c)]}:{style:il.matchupTeamsStacked,children:[u,/* @__PURE__ */T(z,{style:{flexShrink:1,minWidth:0},children:[h(a),h(c)]})]})}function nl({label:e,colors:t,onOpenChange:n}){const o="OR"===e?"If either wins, you win.":"Both must win for Yes.",[i,l]=c(!1);return r(()=>{n?.(i)},[i,n]),/* @__PURE__ */T(z,{style:{position:"relative",zIndex:i?9999:0,elevation:i?9999:0},children:[/* @__PURE__ */W(b,{onPress:()=>l(e=>!e),onHoverIn:()=>l(!0),onHoverOut:()=>l(!1),hitSlop:6,accessibilityLabel:o,accessibilityRole:"button",accessibilityState:{expanded:i},children:/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:6,backgroundColor:ne(t.primary,.14),borderWidth:1,borderColor:ne(t.primary,.45)},children:/* @__PURE__ */W(S,{style:{color:t.primary,fontSize:10,fontWeight:"700",lineHeight:10,textTransform:"uppercase",letterSpacing:.25},children:e})})}),i&&/* @__PURE__ */W(z,{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??ne(t.primary,.3),shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:.12,shadowRadius:4,elevation:9999},children:/* @__PURE__ */W(S,{style:{color:t.text,fontSize:11,lineHeight:15},children:o})})]})}function ol({prop:t,colors:n,size:o="sm",componentById:r,textStyle:i,textColor:l,renderTeamLogo:a}){const{width:s}=v(),d=s>=$i,h=Nt(t,r),u=t.description??t.proposition??"",g=i?.fontSize??("md"===o?d?16:14:d?14:12),f=i?.fontWeight??("md"===o?"500":"400"),p=i?.lineHeight,y=i?.textAlign,m=l??n.text,b=n.textMuted??n.textAltMuted??n.text,[w,x]=c(!1);if(!h)/* @__PURE__ */return W(S,{style:{color:m,fontSize:g,fontWeight:f,lineHeight:p,textAlign:y,flex:1},children:u});const{operator:k,legs:C}=h;if(C.some(e=>e.eventLabel)){const t=n.backgroundAlt??"transparent";/* @__PURE__ */
142
+ return W(z,{style:{flex:1,minWidth:0,flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:4,rowGap:2,...w&&{zIndex:9999,elevation:9999,position:"relative"}},children:C.map((o,r)=>{const i=o.prop?.home_team?.trim(),l=o.prop?.away_team?.trim(),c=a&&(i||l)?/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:2,flexShrink:0,backgroundColor:t,borderWidth:1,borderColor:n.border??"transparent",borderRadius:999,paddingHorizontal:4,paddingVertical:2},children:[i?a(i,16):null,i&&l?/* @__PURE__ */W(S,{style:{color:b,fontSize:9,fontWeight:"600",textTransform:"uppercase"},children:"vs"}):null,l?a(l,16):null]}):null;/* @__PURE__ */
143
+ return T(e.Fragment,{children:[r>0&&/* @__PURE__ */W(nl,{label:k,colors:n,onOpenChange:x}),c,!c&&o.eventLabel&&/* @__PURE__ */W(S,{style:{backgroundColor:t,color:b,fontSize:9,fontWeight:"700",textTransform:"uppercase",letterSpacing:.25,paddingHorizontal:3},children:o.eventLabel}),
144
+ /* @__PURE__ */W(S,{style:{flexShrink:1,color:m,fontSize:g,fontWeight:f,lineHeight:p,textAlign:y},children:o.text})]},r)})})}/* @__PURE__ */
145
+ return W(z,{style:{flex:1,minWidth:0,...w&&{zIndex:9999,elevation:9999,position:"relative"}},children:/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6,rowGap:4},children:C.map((t,o)=>/* @__PURE__ */T(e.Fragment,{children:[o>0&&/* @__PURE__ */W(nl,{label:k,colors:n,onOpenChange:x}),/* @__PURE__ */W(S,{style:{color:m,fontSize:g,fontWeight:f,lineHeight:p,textAlign:y},children:t.text})]},o))})})}function rl({game:t,propositions:n,selections:i,onToggleSelection:a,onNext:s,onBack:d,loading:h,error:u,theme:g,colorScheme:f,hideActions:p=!1,initialSport:y,renderTeamLogo:m,disableQuickPick:b=!1,selectedPropositionCount:w,onPropositionCountChange:x,gameCategory:k,headerExtra:L,variant:R,disableEventSwipe:D}){const M=o(hi),P=M?.sportBaseKey,O=M?.compositeComponentById,I=R??M?.selectionVariant,E=D??M?.disableEventSwipe??!1,j=je(g,f),N=j.colors,G=be(j),Y=xe(j),V=N.matchupHeader??(t.color?ne(t.color,.14):we(j)),U=N.textAlt??N.text;Ge(j);const q=Ne(j);se(j);const{width:K}=v(),Z=K>=$i,X=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(j),Q=!!(t.allowed_propositions&&t.allowed_propositions.length>0),{min:J,max:$}=cn(t,w),_=J,ee=$,[te,oe]=e.useState(()=>new Set(Object.keys(Wn(n,k,P))));e.useEffect(()=>{const e=Wn(n,k,P),t=Object.keys(e);t.length>0&&oe(e=>t.every(t=>e.has(t))?e:new Set(t))},[n]);const re=_>0&&_===ee,ie=_||1,le=ee||n.length,ae=ee||_||n.length,[ce,de]=e.useState(ae),he=Object.keys(i).length,ue=ee>0&&he>=ee,ge=Q?null!=w&&he===w:an(he,t.min_propositions,t.max_propositions);t.min_bet,ee>0?Math.max(2,2*ee):Math.max(2,2*he);const fe=e.useRef(he),pe=Q?null!=w&&he===w:ee>0&&he===ee;r(()=>{pe&&he>fe.current&&s?.(),fe.current=he},[he,pe]);const ye=l(()=>Lr(n,i,O),[n,i,O]),me=l(()=>n.some(e=>null!==Fr(e)),[n]),Se=(e,t)=>{if(e in i)return void a(e,t);if(ue)return;const o=n.find(t=>t.id===e);o&&ye.isCapped(o)||a(e,t)},Ce=e=>me&&0!==e.length?/* @__PURE__ */W(z,{style:{flexDirection:"row",alignItems:"center",gap:4},children:ye.slotsFor(Tr(e[0])).map(({family:e,label:t,filled:n})=>/* @__PURE__ */W(z,{accessibilityLabel:Cr(e,n),style:[il.slotChip,{borderColor:n?U:N.border,borderStyle:n?"solid":"dashed"}],children:/* @__PURE__ */W(S,{style:[il.slotChipText,{color:n?U:N.textMuted}],children:t})},e))}):null;r(()=>{const e=ee||n.length,t=_||1;de(n=>re?ee:Math.max(t,Math.min(n,e)))},[n.length,_,ee,re]);const Be=l(()=>/* @__PURE__ */new Date,[]),ze=l(()=>function(e,t){const n=e.filter(e=>null!=function(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}(e));if(n.length<2)return[];const o=[];for(const r of Zi){let e=0,i=0;for(const o of n)if(Qi(o.commence_time,r,t)?e+=1:i+=1,e>0&&i>0)break;e>0&&i>0&&o.push({id:r,label:Ki[r]})}return o}(n,Be),[n,Be]),[ve,Fe]=c(null);r(()=>{ve&&!ze.some(e=>e.id===ve)&&Fe(null)},[ze,ve]);const We=l(()=>function(e,t,n){return t?e.filter(e=>Qi(e.commence_time,t,n)):e.slice()}(n,ve,Be),[n,ve,Be]),Te=l(()=>dn(k,We,P),[k,We,P]),Ae=l(()=>Wn(We,k,P),[We,k,P]),Le=l(()=>{const e=/* @__PURE__ */new Set;for(const t of We){const n=Pt(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[We]),[Re,De]=c(null),[Me,Pe]=c(!1);r(()=>{Re&&!Le.includes(Re)&&De(null)},[Le,Re]);const He=l(()=>{if(!Re)return Ae;const e={};for(const[t,n]of Object.entries(Ae)){const o=n.filter(e=>Pt(e)===Re);o.length>0&&(e[t]=o)}return e},[Ae,Re]),Oe=Object.keys(He);if(h)/* @__PURE__ */return W(Kn,{colors:ke(j)});if(u)/* @__PURE__ */return W(z,{style:il.centered,children:/* @__PURE__ */W(S,{style:{color:N.error},children:u})});const Ie=!b&&n.length>0,Ee=ze.length>0||Le.length>1,Ye=(null!=ve?1:0)+(null!=Re?1:0);/* @__PURE__ */
146
+ return T(z,{style:{gap:Z?24:16,paddingBottom:64},children:[Ee||L?/* @__PURE__ */T(z,{style:il.filterHeaderRow,children:[/* @__PURE__ */W(z,{style:il.filterToggleRow,children:Ee?/* @__PURE__ */T(F,{children:[/* @__PURE__ */T(B,{onPress:()=>Pe(e=>!e),activeOpacity:.85,accessibilityRole:"button",style:[il.filterToggle,{borderColor:Ye>0?N.primary:N.border,backgroundColor:Ye>0?N.primary:N.background??"#fff"}],children:[
147
+ /* @__PURE__ */W(vt,{size:13,color:Ye>0?N.primaryText:N.text}),
148
+ /* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"700",color:Ye>0?N.primaryText:N.text},children:"Filter"}),Ye>0&&/* @__PURE__ */T(S,{style:{fontSize:11,fontWeight:"700",color:N.primaryText},children:["· ",Ye]}),
149
+ /* @__PURE__ */W(z,{style:{transform:[{rotate:Me?"-90deg":"90deg"}],opacity:.75},children:/* @__PURE__ */W(Bt,{size:13,color:Ye>0?N.primaryText:N.text})})]}),Ye>0&&/* @__PURE__ */W(B,{onPress:()=>{Fe(null),De(null)},activeOpacity:.85,accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"600",color:N.textMuted},children:"Clear"})})]}):null}),L]}):null,Me&&Ee&&/* @__PURE__ */T(z,{style:{gap:10},children:[ze.length>0&&/* @__PURE__ */W(Dt,{label:"When",options:[{value:null,label:"All dates"},...ze.map(e=>({value:e.id,label:e.label}))],value:ve,onChange:e=>Fe(e),theme:j,bodyFont:q}),Le.length>1&&/* @__PURE__ */W(Dt,{label:"Market",options:[{value:null,label:"All markets"},...Le.map(e=>{return{value:e,label:(t=e,t.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))};var t})],value:Re,onChange:De,theme:j,bodyFont:q})]}),Ie&&/* @__PURE__ */W(z,{style:[il.topBar,{justifyContent:"flex-end"}],children:/* @__PURE__ */T(z,{style:[il.quickPickRow,{gap:Z?8:6}],children:[!re&&/* @__PURE__ */T(z,{style:il.quickPickCountRow,children:[/* @__PURE__ */W(C,{keyboardType:"number-pad",value:String(ce),onChangeText:e=>{const t=parseInt(e,10);isNaN(t)||de(Math.max(ie,Math.min(le,t)))},style:[il.quickPickInput,{width:Z?56:40,paddingHorizontal:Z?8:4,paddingVertical:Z?6:4,fontSize:Z?14:12,color:U,backgroundColor:N.backgroundAlt,borderColor:N.border}]}),/* @__PURE__ */T(S,{style:{color:N.textMuted,fontSize:12},children:["/ ",n.length]})]}),/* @__PURE__ */W(pi,{onPress:()=>{const e=re?ee:ce;for(const n of Object.keys(i)){const e=Number(n);a(e,i[e])}const{yesPicks:t,noPicks:o}=Ln(n,e);for(const n of t)a(n.id,"yes");for(const n of o)a(n.id,"no");s?.()}})]})}),n.length>0&&I?/* @__PURE__ */W(Yi,{variant:I,groups:He,racing:Te,selections:i,onToggleSelection:Se,atMax:ue,theme:j,renderTeamLogo:m,componentById:O,disableEventSwipe:E}):null,n.length>0&&!I&&/* @__PURE__ */W(z,{style:il.matchupList,children:Oe.every(e=>1===He[e].length)?/* @__PURE__ */W(z,{style:[il.matchupCard,{borderColor:N.border,backgroundColor:G},X],children:Oe.map((e,t)=>{const n=He[e][0],o="yes"===i[n.id],r="no"===i[n.id],l=n.id in i,a=ue&&!l||ye.isCapped(n),c=0===t,s=t===Oe.length-1;/* @__PURE__ */
150
+ return T(z,{style:{borderTopColor:N.border,borderTopWidth:c?0:1,opacity:a?.45:1},children:[/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:Z?12:10,backgroundColor:V,borderTopLeftRadius:c?_i:0,borderTopRightRadius:c?_i:0},children:[/* @__PURE__ */W(z,{style:{minWidth:0},children:/* @__PURE__ */W(tl,{matchup:e,renderTeamLogo:m,altText:U,mutedColor:N.textAltMuted??N.textMuted??U})}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,marginTop:2,minWidth:0},children:[n.commence_time&&/* @__PURE__ */W(S,{style:{color:N.textAltMuted??N.textMuted,fontSize:11,opacity:.7},children:Jt(n.commence_time)}),Ce([n])]})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingHorizontal:16,paddingVertical:Z?14:12,backgroundColor:Y,borderTopWidth:1,borderTopColor:N.border,borderBottomLeftRadius:s?_i:0,borderBottomRightRadius:s?_i:0},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[Ji(n,m,e),/* @__PURE__ */W(ol,{prop:n,colors:N,componentById:O})]}),/* @__PURE__ */W(st,{theme:j,size:"sm",value:o?"yes":r?"no":null,onYes:()=>Se(n.id,"yes"),onNo:()=>Se(n.id,"no"),disabled:a})]})]},n.id)})}):Oe.map(e=>{const t=He[e],n=te.has(e),o=t.filter(e=>e.id in i).length,r=t[0]?.commence_time;/* @__PURE__ */
151
+ return T(z,{style:[il.matchupCard,{borderColor:N.border,backgroundColor:G},X],children:[/* @__PURE__ */T(B,{onPress:()=>{return t=e,oe(e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n});var t},style:[il.matchupHeader,{backgroundColor:V,borderTopLeftRadius:_i,borderTopRightRadius:_i,borderBottomLeftRadius:n?0:_i,borderBottomRightRadius:n?0:_i}],children:[/* @__PURE__ */T(z,{style:il.matchupHeaderLeft,children:[/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",style:{flexShrink:0,transform:[{rotate:n?"180deg":"0deg"}]},children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:N.textAltMuted??N.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),/* @__PURE__ */T(z,{style:il.matchupTeamWrapper,children:[/* @__PURE__ */W(tl,{matchup:e,renderTeamLogo:m,altText:U,mutedColor:N.textAltMuted??N.textMuted??U,size:"md"}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,marginTop:2,minWidth:0},children:[r&&/* @__PURE__ */W(S,{style:{color:N.textAltMuted??N.textMuted,fontSize:12,opacity:.7,textAlign:"left"},children:Jt(r)}),Ce(t)]})]})]}),/* @__PURE__ */W(z,{style:il.matchupHeaderRight,children:o>0&&/* @__PURE__ */W(z,{style:[il.answeredBadge,{backgroundColor:N.successBg}],children:/* @__PURE__ */T(S,{style:{color:N.successText,fontSize:12,fontWeight:"500"},children:[o,"/",t.length]})})})]}),n&&/* @__PURE__ */W(z,{children:/* @__PURE__ */W(F,{children:t.map((n,o)=>{const r="yes"===i[n.id],l="no"===i[n.id],a=n.id in i,c=ue&&!a||ye.isCapped(n),s=o===t.length-1;/* @__PURE__ */
152
+ return W(z,{style:{paddingHorizontal:16,paddingVertical:Z?14:12,backgroundColor:Y,borderTopColor:N.border,borderTopWidth:0===o?0:1,opacity:c?.45:1,borderBottomLeftRadius:s?_i:0,borderBottomRightRadius:s?_i:0},children:/* @__PURE__ */T(z,{style:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-start",columnGap:Z?16:8,rowGap:Z?16:8},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:128,flexDirection:"row",alignItems:"flex-start",gap:8},children:[Ji(n,m,e),/* @__PURE__ */W(ol,{prop:n,colors:N,size:"md",componentById:O})]}),/* @__PURE__ */W(st,{theme:j,size:"sm",value:r?"yes":l?"no":null,onYes:()=>Se(n.id,"yes"),onNo:()=>Se(n.id,"no"),disabled:c})]})},n.id)})})})]},e)})}),0===n.length&&/* @__PURE__ */W(z,{style:il.centered,children:/* @__PURE__ */W(S,{style:{color:N.textMuted},children:"No propositions available at this time"})}),!p&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:N.border,backgroundColor:G,marginHorizontal:Z?-24:-16,paddingHorizontal:Z?24:16,paddingVertical:Z?16:12},children:[/* @__PURE__ */W(el,{theme:j,variant:"secondary",onPress:d,children:"Back"}),/* @__PURE__ */W(z,{style:{flexDirection:"row",alignItems:"center",gap:Z?12:8},children:/* @__PURE__ */W(el,{theme:j,variant:"primary",disabled:!ge,onPress:s,children:"Wager"})})]})]})}var il=k.create({centered:{alignItems:"center",justifyContent:"center",padding:32,flexDirection:"row"},filterHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8},filterToggleRow:{flexDirection:"row",alignItems:"center",gap:8},filterToggle:{flexDirection:"row",alignItems:"center",gap:6,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:_i,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:"row",alignItems:"center",gap:6,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},slotChip:{borderWidth:1,borderRadius:999,paddingHorizontal:6,paddingVertical:1},slotChipText:{fontSize:9,fontWeight:"700",letterSpacing:.25,textTransform:"uppercase"}});function ll({theme:e,variant:t,disabled:n,onPress:o,children:r}){const i=e.colors,[l,a]=c(!1),s="primary"===t?{bg:i.buttonPrimary,bgHover:i.buttonPrimaryHover,fg:i.buttonPrimaryText,border:i.buttonPrimary}:{bg:i.buttonSecondary,bgHover:i.buttonSecondaryHover,fg:i.buttonSecondaryText,border:i.border};/* @__PURE__ */
153
+ return W(B,{onPress:o,disabled:n,activeOpacity:.85,...it(()=>a(!0),()=>a(!1)),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:s.border,backgroundColor:l&&!n?s.bgHover:s.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:/* @__PURE__ */W(S,{style:{color:s.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:r})})}function al({propositions:e,selections:t,onToggleSelection:n,onNext:o,onBack:r,theme:i,colorScheme:l,hideActions:a=!1,renderTeamLogo:s,allowAnswerToggle:d=!0,gameName:h,potentialPayout:u,defaultExpanded:g=!1,componentById:f,addMorePicks:p}){const y=je(i,l),m=y.colors,b=be(y),w=Ge(y),x=se(y),k=m.textAlt??m.text,{width:C}=v(),F=C>=640,L=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(y),[R,D]=c(null),[M,P]=c(g),O=e.filter(e=>e.id in t),I=O.length,E=Tn(O),j=m.matchupHeader??we(y),N=xe(y),G=F?16:12;/* @__PURE__ */
154
+ return T(z,{style:{gap:F?24:16,paddingBottom:64},children:[
155
+ /* @__PURE__ */T(z,{style:[cl.section,{padding:F?24:16,backgroundColor:b,borderColor:m.border},L],children:[
156
+ /* @__PURE__ */T(B,{onPress:()=>P(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:M},style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:12},children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,flex:1,minWidth:0},children:[/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",style:{flexShrink:0,transform:[{rotate:M?"180deg":"0deg"}]},children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:m.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),/* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8},children:[/* @__PURE__ */W(S,{style:{fontSize:F?18:16,fontWeight:"600",color:x,fontFamily:w},children:"Your Selections"}),/* @__PURE__ */W(z,{style:{backgroundColor:m.primary,paddingHorizontal:6,paddingVertical:2,borderRadius:999},children:/* @__PURE__ */W(S,{style:{color:m.primaryText,fontSize:12,fontWeight:"600"},children:I})})]}),h&&/* @__PURE__ */W(S,{numberOfLines:1,style:{color:m.textMuted,fontSize:14,marginTop:2},children:h})]})]}),null!=u&&u>0&&/* @__PURE__ */T(z,{style:{alignItems:"flex-end",flexShrink:0},children:[/* @__PURE__ */W(S,{style:{color:m.textMuted,fontSize:10,textTransform:"uppercase",letterSpacing:.25},children:"Potential Payout"}),/* @__PURE__ */W(S,{style:{color:x,fontSize:14,fontWeight:"700"},children:Qt(u)})]})]}),p&&p.remaining>0&&/* @__PURE__ */T(z,{style:{marginTop:G,padding:12,borderRadius:8,borderWidth:1,borderColor:`${m.primary}30`,backgroundColor:`${m.primary}08`,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{flex:1,color:m.textMuted,fontSize:12},children:[1===p.remaining?"Add ":"Add up to ",
157
+ /* @__PURE__ */T(S,{style:{color:m.primary,fontWeight:"700"},children:[p.remaining," more pick",1!==p.remaining?"s":""]}),null!=p.potentialPayout&&p.potentialPayout>0&&/* @__PURE__ */T(S,{children:[" ","to win up to"," ",
158
+ /* @__PURE__ */W(S,{style:{color:x,fontWeight:"700"},children:Qt(p.potentialPayout)})," ","with ",p.max," picks"]})]}),/* @__PURE__ */W(B,{onPress:()=>p.onAdd(),style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:m.buttonPrimary},children:/* @__PURE__ */W(S,{style:{color:m.buttonPrimaryText,fontSize:12,fontWeight:"600"},children:"Add picks"})})]}),M&&(0===O.length?/* @__PURE__ */W(z,{style:[cl.emptyState,{marginTop:G}],children:/* @__PURE__ */W(S,{style:{color:m.textMuted},children:"No selections made yet"})}):/* @__PURE__ */W(z,{style:{gap:F?12:8,marginTop:G},children:E.map(e=>/* @__PURE__ */T(z,{style:{borderRadius:8,overflow:"hidden",borderWidth:1,borderColor:m.border},children:[e.key?/* @__PURE__ */T(z,{style:{paddingHorizontal:12,paddingVertical:8,backgroundColor:j},children:[/* @__PURE__ */W(tl,{matchup:e.key,renderTeamLogo:s,altText:k,mutedColor:m.textAltMuted??m.textMuted??k}),e.props[0].commence_time?/* @__PURE__ */W(S,{style:[cl.propTime,{color:m.textAltMuted??m.textMuted}],children:Jt(e.props[0].commence_time)}):null]}):null,e.props.map((o,i)=>{const l=t[o.id],a="yes"===l,c="no"===l;/* @__PURE__ */
159
+ return T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:F?12:8,paddingHorizontal:12,paddingVertical:F?12:10,backgroundColor:N,borderTopWidth:e.key||i>0?1:0,borderTopColor:m.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[Ji(o,s,e.key),/* @__PURE__ */W(ol,{prop:o,colors:m,componentById:f??void 0,textStyle:{fontSize:14,fontWeight:"400",lineHeight:19},textColor:k})]}),/* @__PURE__ */T(z,{style:cl.rightControls,children:[d?/* @__PURE__ */W(st,{theme:y,size:"sm",value:a?"yes":c?"no":null,onYes:()=>n(o.id,"yes"),onNo:()=>n(o.id,"no")}):l&&/* @__PURE__ */W(dt,{theme:y,size:"sm",value:"yes"===l?"yes":"no"}),/* @__PURE__ */W(B,{onPress:()=>{n(o.id,t[o.id]),r()},accessibilityLabel:"Remove selection",...it(()=>D(o.id),()=>D(e=>e===o.id?null:e)),style:[cl.removeButton,{backgroundColor:"transparent"}],children:/* @__PURE__ */W(A,{width:12,height:12,viewBox:"0 0 24 24",children:/* @__PURE__ */W(H,{d:"M6 18L18 6M6 6l12 12",stroke:R===o.id?m.error:m.textAltMuted??m.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})})]})]},o.id)})]},e.key??`solo-${e.props[0].id}`))}))]}),
160
+ /* @__PURE__ */W(z,{style:[cl.section,{padding:F?24:16,backgroundColor:b,borderColor:m.border},L],children:/* @__PURE__ */T(z,{style:cl.summaryRow,children:[/* @__PURE__ */W(S,{style:{color:m.textMuted,fontSize:14},children:"Total Selections"}),/* @__PURE__ */W(S,{style:{color:m.text,fontSize:14,fontWeight:"600"},children:O.length})]})}),!a&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:m.border,backgroundColor:m.background,marginHorizontal:F?-24:-16,paddingHorizontal:F?24:16,paddingVertical:F?16:12},children:[/* @__PURE__ */W(ll,{theme:y,variant:"secondary",onPress:r,children:"Back"}),/* @__PURE__ */W(ll,{theme:y,variant:"primary",disabled:0===O.length,onPress:o,children:"Place bet"})]})]})}var cl=k.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 sl({game:t,propositions:n,selections:o,onToggleSelection:r,onRemoveSelection:i,onSubmit:l,onBack:a,loading:c,error:s,expectedCorrect:h,onExpectedCorrectChange:u,betAmount:g,onBetAmountChange:f,theme:p,colorScheme:y,hideActions:m=!1,winningCounts:w,payouts:x,renderTeamLogo:k,componentById:L,showCustomAmount:R=!1,betAmountLocked:D=!1,betAmountLockedNote:M,canSubmit:P,authenticated:O=!0,userBalance:I,onRecharge:E,boostBanner:j}){const N=je(p,y),G=N.colors,Y=be(N),V=Ge(N),U=se(N),q=de(N),K=he(N),Z=G.textAlt??G.text,{width:X}=v(),Q=X>=640,J="dark"===N.colorScheme,$=n.length,_=t.min_bet??0,ee=Math.max(_,.01),te=t.max_bet??null,ne=[5,10,20,50,100,200,500].filter(e=>e>=ee&&(null===te||e<=te)).slice(0,4),oe={};for(let e=0;e<=$;e++)oe[e]=g*e;const re=x??oe,ie=re[h]??0,le=sn(t),ae=le.enabled&&h===$,[ce,ue]=e.useState(null),[ge,fe]=e.useState(!0),[pe,ye]=e.useState(!1),me=c||g<ee||!1===P,ke=null!=I&&g>I,Se=m&&!!l&&O,Ce=o?n.filter(e=>e.id in o):n,Be=Tn(Ce),ze=G.matchupHeader??we(N),ve=xe(N),Fe=Object.entries(re).map(([e,t])=>({correct:Number(e),payout:t})).filter(e=>e.correct>0&&e.payout>0).sort((e,t)=>e.correct-t.correct),We=1===Fe.length?Fe[0].correct:null;e.useEffect(()=>{null!==We&&h!==We&&u(We)},[We]);const Te={shadowColor:"#000",shadowOpacity:J?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};/* @__PURE__ */
161
+ return T(z,{style:{gap:Q?16:12,paddingBottom:64},children:[j,
162
+ /* @__PURE__ */T(z,{style:[dl.section,Te,{padding:Q?20:16,backgroundColor:Y,borderColor:G.border}],children:[
163
+ /* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(B,{onPress:()=>fe(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:ge},accessibilityLabel:ge?"Hide selections":"Show selections",testID:"entry-submission-selections-toggle",style:{flexDirection:"row",alignItems:"center",gap:8,flex:1},activeOpacity:.7,children:[/* @__PURE__ */W(z,{style:{transform:[{rotate:ge?"180deg":"0deg"}]},children:/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:G.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})}),/* @__PURE__ */W(S,{style:{fontSize:Q?16:14,fontWeight:"600",color:U,fontFamily:V},children:ge?"Hide Selections":"Review Selections"})]}),/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:999,flexShrink:0,backgroundColor:`${G.primary}15`},children:/* @__PURE__ */T(S,{style:{color:G.primary,fontSize:12,fontWeight:"600"},children:[Ce.length," pick",1!==Ce.length?"s":""]})})]}),!ge&&/* @__PURE__ */W(S,{style:{color:G.textMuted,fontSize:12,marginTop:8},children:"Tap to show your picks"}),ge&&/* @__PURE__ */W(z,{style:{gap:8,marginTop:12},children:Be.map(e=>/* @__PURE__ */T(z,{style:{borderRadius:8,overflow:"hidden",borderWidth:1,borderColor:G.border},children:[e.key?/* @__PURE__ */T(z,{style:{paddingHorizontal:12,paddingVertical:8,backgroundColor:ze},children:[/* @__PURE__ */W(tl,{matchup:e.key,renderTeamLogo:k,altText:Z,mutedColor:G.textAltMuted??G.textMuted??Z}),e.props[0].commence_time?/* @__PURE__ */W(S,{style:{color:G.textAltMuted??G.textMuted,fontSize:11,marginTop:2,opacity:.7},children:Jt(e.props[0].commence_time)}):null]}):null,e.props.map((t,n)=>{const l=o?.[t.id],a="yes"===l,c="no"===l,s=!!r;/* @__PURE__ */
164
+ return T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8,paddingVertical:8,paddingHorizontal:12,backgroundColor:ve,borderTopWidth:e.key||n>0?1:0,borderTopColor:G.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[Ji(t,k,e.key),/* @__PURE__ */W(ol,{prop:t,colors:G,componentById:L??void 0,textStyle:{fontSize:Q?14:12,fontWeight:"400"},textColor:Z})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:0},children:[s?/* @__PURE__ */W(st,{theme:N,size:"xs",value:a?"yes":c?"no":null,onYes:()=>r(t.id,"yes"),onNo:()=>r(t.id,"no")}):l?/* @__PURE__ */W(dt,{theme:N,size:"sm",value:"yes"===l?"yes":"no",style:{flexShrink:0}}):null,ge&&i&&/* @__PURE__ */W(b,{onPress:()=>{l&&r?.(t.id,l),i(t.id)},...it(()=>ue(t.id),()=>ue(null)),accessibilityRole:"button",accessibilityLabel:"Remove selection",style:{flexShrink:0,width:44,height:44,alignItems:"center",justifyContent:"center",backgroundColor:"transparent"},children:/* @__PURE__ */W(z,{style:{width:26,height:26,borderRadius:13,alignItems:"center",justifyContent:"center",backgroundColor:ce===t.id?G.error:"transparent"},children:/* @__PURE__ */W(A,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M6 18L18 6M6 6l12 12",stroke:ce===t.id?"#fff":G.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})})]})]},t.id)})]},e.key??`solo-${e.props[0].id}`))})]}),Se&&/* @__PURE__ */T(z,{testID:"entry-submission-scroll-hint",style:{flexDirection:"row",alignItems:"center",gap:6,marginTop:-4},children:[/* @__PURE__ */W(S,{style:{color:G.textMuted,fontSize:Q?14:12,fontWeight:"500"},children:"↓"}),/* @__PURE__ */W(S,{style:{color:G.textMuted,fontSize:Q?14:12,fontWeight:"500",flex:1},children:"Scroll down to set your bet and place your entry"})]}),O?/* @__PURE__ */T(F,{children:[/* @__PURE__ */T(z,{style:[dl.section,Te,{padding:Q?24:16,backgroundColor:Y,borderColor:G.border}],children:[
165
+ /* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:Q?16:12},children:[/* @__PURE__ */W(S,{style:{fontSize:Q?18:16,fontWeight:"600",color:U,fontFamily:V},children:"How much are you betting?"}),null!=I&&/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"600",color:G.textMuted},children:["Balance: ",/* @__PURE__ */W(S,{style:{color:ke?G.error:G.success},children:Qt(I)})]})]}),ke&&/* @__PURE__ */T(z,{style:{marginBottom:12,paddingHorizontal:12,paddingVertical:8,borderRadius:8,backgroundColor:G.errorBg??`${G.error}15`,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{flex:1,fontSize:12,fontWeight:"500",color:G.errorText??G.error},children:["Insufficient balance. Your bet of ",Qt(g)," exceeds your available ",Qt(I),"."]}),E&&/* @__PURE__ */W(B,{onPress:E,style:{paddingHorizontal:12,paddingVertical:4,borderRadius:6,backgroundColor:G.error},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:G.buttonPrimaryText??"#fff"},children:"Add funds"})})]}),/* @__PURE__ */T(z,D?{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:8,paddingHorizontal:12,paddingVertical:10,backgroundColor:G.backgroundAlt,borderWidth:1,borderColor:G.border},children:[/* @__PURE__ */W(S,{style:{fontSize:12,color:G.textMuted,flex:1},children:M??"Stake is set for this ticket."}),/* @__PURE__ */W(S,{style:{fontSize:18,fontWeight:"700",color:U,fontFamily:V},children:Qt(g)})]}:{style:{gap:16},children:[R&&/* @__PURE__ */T(z,{children:[
166
+ /* @__PURE__ */W(S,{style:{fontSize:Q?14:12,fontWeight:"600",color:q,marginBottom:8},children:"Entry amount"}),
167
+ /* @__PURE__ */T(z,{style:{position:"relative"},children:[/* @__PURE__ */W(z,{style:{position:"absolute",left:12,top:0,bottom:0,justifyContent:"center",zIndex:1},pointerEvents:"none",children:/* @__PURE__ */W(S,{style:{color:G.textMuted},children:"$"})}),/* @__PURE__ */W(C,{keyboardType:"decimal-pad",placeholder:"Enter amount",accessibilityLabel:"Entry amount",value:g?String(g):"",onChangeText:e=>{if(""===e)return void f(0);const t=Number(e);if(!Number.isFinite(t))return;const n=Math.max(0,Math.round(100*t)/100);f(null!==te?Math.min(n,te):n)},onFocus:()=>ye(!0),onBlur:()=>ye(!1),style:{paddingLeft:32,paddingRight:16,paddingVertical:12,borderWidth:1,borderRadius:8,fontSize:18,fontWeight:"600",borderColor:pe?G.borderFocus??G.primary:G.border,color:Z,backgroundColor:G.backgroundAlt},placeholderTextColor:G.textMuted})]}),
168
+ /* @__PURE__ */T(S,{style:{fontSize:12,marginTop:6,color:G.textMuted},children:["Minimum bet: ",Qt(ee),null!==te?` · Maximum: ${Qt(te)}`:""]}),g>0&&g<ee&&/* @__PURE__ */T(S,{style:{fontSize:12,marginTop:4,color:G.error},children:["Bet amount must be at least ",Qt(ee)]})]}),/* @__PURE__ */T(z,{children:[(R||g>0)&&/* @__PURE__ */T(z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[R?/* @__PURE__ */W(S,{style:{fontSize:Q?14:12,fontWeight:"600",color:q},children:"Add to bet"}):/* @__PURE__ */W(z,{}),g>0&&/* @__PURE__ */W(B,{onPress:()=>f(0),style:{paddingHorizontal:10,paddingVertical:4,borderRadius:6,backgroundColor:G.backgroundAlt,borderWidth:1.5,borderColor:G.border},children:/* @__PURE__ */W(S,{style:{color:G.textMuted,fontSize:12,fontWeight:"600"},children:"Clear bet"})})]}),/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8},children:ne.map(e=>{const t=null!==te&&g>=te;/* @__PURE__ */
169
+ return W(B,{onPress:()=>{const t=g+e;f(null!==te?Math.min(t,te):t)},disabled:t,style:{flex:1,minWidth:0,paddingHorizontal:12,paddingVertical:10,borderRadius:8,backgroundColor:"transparent",borderWidth:1,borderColor:G.border,opacity:t?.5:1,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */T(S,{style:{color:Z,fontSize:14,fontWeight:"600"},children:["+",Qt(e)]})},e)})})]})]})]}),/* @__PURE__ */W(z,{style:[dl.section,Te,{padding:Q?20:16,backgroundColor:Y,borderColor:G.border}],children:(()=>{const e=m&&!!l,t=/* @__PURE__ */T(F,{children:[
170
+ /* @__PURE__ */T(z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[/* @__PURE__ */W(S,{style:{color:q,fontSize:14},children:"Bet"}),/* @__PURE__ */W(S,{style:{color:K,fontSize:14,fontWeight:"600"},children:Qt(g)})]}),ie>0&&/* @__PURE__ */T(z,{style:{flexDirection:"row",flexWrap:"wrap",columnGap:8,justifyContent:"space-between",alignItems:"center",paddingTop:8,borderTopWidth:1,borderTopColor:G.border},children:[/* @__PURE__ */W(S,{style:{color:q,fontSize:14,fontWeight:"600"},children:"Potential Payout"}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center"},children:[/* @__PURE__ */W(S,{style:{color:U,fontSize:18,fontWeight:"700"},children:Qt(ie)}),ae&&/* @__PURE__ */W(S,{style:{color:G.warning,fontSize:12,marginLeft:4},children:"+ Jackpot"})]})]}),le.enabled&&/* @__PURE__ */T(z,{style:[dl.jackpotBanner,{backgroundColor:`${G.warning}08`,borderColor:`${G.warning}25`}],children:[/* @__PURE__ */T(S,{style:{color:G.warning,fontSize:12,fontWeight:"600"},children:["★ ",le.progressive?"Progressive Jackpot":"Jackpot"]}),/* @__PURE__ */W(S,{style:{color:G.warning,fontSize:14,fontWeight:"700"},children:le.progressive?le.amount>0?Qt(le.amount):le.limit>0?`Up to ${Qt(le.limit)}`:"Progressive":Qt(le.amount)})]})]});return e?/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"stretch",gap:16},children:[
166
171
  /* @__PURE__ */W(z,{style:{flex:1,minWidth:0},children:t}),
167
- /* @__PURE__ */W(z,{style:{width:1,alignSelf:"stretch",backgroundColor:N.border}}),
168
- /* @__PURE__ */W(B,{onPress:l,disabled:ye,accessibilityState:{disabled:ye,busy:!!c},activeOpacity:.7,style:{flexShrink:0,paddingVertical:12,paddingHorizontal:20,borderRadius:8,backgroundColor:N.buttonPrimary,opacity:ye?.5:1,alignItems:"center",justifyContent:"center",minWidth:120},children:c?/* @__PURE__ */T(z,{style:{alignItems:"center",gap:8},children:[/* @__PURE__ */W(d,{size:"small",color:N.buttonPrimaryText}),/* @__PURE__ */W(S,{style:{color:N.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Placing Entry…"})]}):/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(S,{style:{color:N.buttonPrimaryText,fontSize:16,fontWeight:"700"},children:"Place Entry"}),/* @__PURE__ */W(S,{style:{color:N.buttonPrimaryText,fontSize:12,opacity:.9,marginTop:2},children:$t(g)})]})})]}):t})()})]}):/* @__PURE__ */T(z,{style:[Xr.section,We,{padding:X?24:16,backgroundColor:G,borderColor:N.border}],children:[
169
- /* @__PURE__ */W(S,{style:{fontSize:X?18:16,fontWeight:"600",color:V,fontFamily:Y},children:"Log in to place this entry"}),
170
- /* @__PURE__ */W(S,{style:{fontSize:X?14:12,color:N.textMuted,marginTop:4,marginBottom:16},children:"Your picks are held. Log in to set your bet and confirm."}),
171
- /* @__PURE__ */W(B,{onPress:l,style:{paddingVertical:12,paddingHorizontal:24,borderRadius:8,backgroundColor:N.buttonPrimary,alignItems:"center"},children:/* @__PURE__ */W(S,{style:{color:N.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Log in"})})]}),s&&/* @__PURE__ */W(z,{style:[Xr.errorBanner,{backgroundColor:N.errorBg,borderColor:N.error}],children:/* @__PURE__ */W(S,{style:{color:N.errorText,fontSize:14},children:s})}),!m&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:N.border,backgroundColor:N.background,marginHorizontal:X?-24:-16,paddingHorizontal:X?24:16,paddingVertical:X?16:12},children:[/* @__PURE__ */W(at,{theme:j,variant:"secondary",disabled:c,onPress:a,children:"Back"}),/* @__PURE__ */W(B,{onPress:l,disabled:ye,accessibilityState:{disabled:ye,busy:!!c},activeOpacity:.7,style:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,paddingHorizontal:24,paddingVertical:10,borderRadius:8,backgroundColor:N.buttonPrimary,opacity:ye?.5:1},children:c?/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(d,{size:"small",color:N.buttonPrimaryText}),/* @__PURE__ */W(S,{style:{color:N.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Placing Entry…"})]}):/* @__PURE__ */W(S,{style:{color:N.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:`Place Entry (${$t(g)})`})})]})]})}var Xr=k.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}}),Qr="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 Jr({index:e,size:t,wide:n,isWinning:o,isJackpot:i,isSelected:r,bgColor:l,borderFallback:a,warning:s,primary:d,textMuted:h,payout:u,onPress:g,accessibilityLabel:f}){const[p,y]=c(!1),m=!!g,b=o||i,w=m&&p?1.12:b?1.1:1;/* @__PURE__ */
172
- return T(B,{onPress:g,disabled:!m,activeOpacity:.7,accessibilityRole:"button",accessibilityLabel:f,accessibilityState:{disabled:!m,selected:r},...rt(()=>y(!0),()=>y(!1)),style:[_r.circle,{width:t,height:t,borderRadius:t/2,backgroundColor:l,borderColor:i?s:o?l:a,zIndex:r?10:i?6:o?5:1,transform:[{scale:w}]},b&&_r.circleWinning,m&&p&&_r.circleHovered],children:[i&&/* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",top:-3,right:-3,bottom:-3,left:-3,borderRadius:t/2+3,borderWidth:2,borderColor:`${s}80`}}),r&&/* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",top:-6,right:-6,bottom:-6,left:-6,borderRadius:t/2+6,borderWidth:3,borderColor:d}}),i&&/* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",top:-6,right:-6},children:/* @__PURE__ */W(A,{width:14,height:14,viewBox:"0 0 24 24",children:/* @__PURE__ */W(H,{d:Qr,fill:s,stroke:s,strokeWidth:1})})}),
173
- /* @__PURE__ */W(S,{style:{fontSize:n?16:14,lineHeight:n?16:14,fontWeight:"600",color:o||i?"#ffffff":h},children:e}),u>0&&/* @__PURE__ */W(S,{style:{fontSize:n?8:7,lineHeight:n?8:7,fontWeight:"400",color:o||i?"#ffffff":h},children:$t(u)})]})}function $r({game:e,totalSelections:t,expectedCorrect:n,onExpectedCorrectChange:o,theme:i=Be,colorWinning:r,colorNone:l,winningCounts:a,payouts:s}){const d=i.colors,{width:h}=F(),u=h>=640,g=r??d.payoutWinning,f=l??d.payoutNone,p=hn(e),y=u?48:40,[m,b]=c({width:0,height:0});/* @__PURE__ */
174
- return T(z,{style:_r.container,children:[
175
- /* @__PURE__ */W(S,{style:[_r.title,{color:d.textMuted}],children:"Payout Visualization"}),p.enabled&&/* @__PURE__ */T(z,{style:[_r.jackpotBanner,{borderColor:`${d.warning}30`}],onLayout:e=>b({width:e.nativeEvent.layout.width,height:e.nativeEvent.layout.height}),children:[m.width>0&&/* @__PURE__ */T(A,{style:k.absoluteFill,width:m.width,height:m.height,pointerEvents:"none",children:[/* @__PURE__ */W(L,{children:/* @__PURE__ */T(P,{id:"payout-jackpot-grad",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[/* @__PURE__ */W(E,{offset:"0%",stopColor:d.warning,stopOpacity:.094}),/* @__PURE__ */W(E,{offset:"100%",stopColor:d.warning,stopOpacity:.031})]})}),/* @__PURE__ */W(I,{x:0,y:0,width:m.width,height:m.height,fill:"url(#payout-jackpot-grad)"})]}),
176
- /* @__PURE__ */W(A,{width:16,height:16,viewBox:"0 0 24 24",style:{flexShrink:0},children:/* @__PURE__ */W(H,{d:Qr,fill:d.warning})}),
177
- /* @__PURE__ */W(S,{style:[_r.jackpotText,{color:d.warning}],children:p.progressive?p.amount>0?`Progressive Jackpot: ${$t(p.amount)}${p.limit>0?` (up to ${$t(p.limit)})`:""} for a perfect pick!`:p.limit>0?`Progressive Jackpot — up to ${$t(p.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${$t(p.amount)} for a perfect pick!`})]}),
178
- /* @__PURE__ */W(z,{style:[_r.circleGrid,{gap:u?8:6}],children:Array.from({length:t+1},(e,i)=>{const r=a.includes(i),l=s[i]??0,c=i===t,h=p.enabled&&c,m=h?d.warning:r?g:f,b=i===n,w=h?p.progressive?`${i} correct wins progressive jackpot${p.amount>0?` (currently ${$t(p.amount)})`:""}${p.limit>0?` up to ${$t(p.limit)}`:""} plus ${$t(l)}`:`${i} correct wins jackpot ${$t(p.amount)} plus ${$t(l)}`:r?`${i} correct wins ${$t(l)}`:l>0?`${i} correct pays ${$t(l)} but does not win`:`${i} correct — no payout`,x=o?`${w}. Tap to select`:w;/* @__PURE__ */
179
- return W(Jr,{index:i,size:y,wide:u,isWinning:r,isJackpot:h,isSelected:b,bgColor:m,borderFallback:d.border,warning:d.warning,primary:d.primary,textMuted:d.textMuted,payout:l,onPress:o?()=>o(i):void 0,accessibilityLabel:x},i)})}),
180
- /* @__PURE__ */T(S,{style:[_r.expectedText,{color:d.textMuted}],children:["Your expected: ",/* @__PURE__ */T(S,{style:_r.expectedBold,children:[n," correct"]})]})]})}var _r=k.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"}});function el({iconUrl:e,gameName:t,chipColor:n,textColor:o,iconColor:i,accentColor:r,brandColor:l,height:a=56,showTrademark:c=!0,compact:s=!1,onPress:d}){const h=n??l??"#0F4C5C",u=o??h,g=.85*a,f=1.8*g,p=g/2,y='Manrope, Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif',m=a,w=f-.18*g*2,x=g-.05*g*2,k=/* @__PURE__ */T(v,{children:[
172
+ /* @__PURE__ */W(z,{style:{width:1,alignSelf:"stretch",backgroundColor:G.border}}),
173
+ /* @__PURE__ */W(B,{onPress:l,disabled:me,accessibilityState:{disabled:me,busy:!!c},activeOpacity:.7,style:{flexShrink:0,paddingVertical:12,paddingHorizontal:20,borderRadius:8,backgroundColor:G.buttonPrimary,opacity:me?.5:1,alignItems:"center",justifyContent:"center",minWidth:120},children:c?/* @__PURE__ */T(z,{style:{alignItems:"center",gap:8},children:[/* @__PURE__ */W(d,{size:"small",color:G.buttonPrimaryText}),/* @__PURE__ */W(S,{style:{color:G.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Placing Entry…"})]}):/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(S,{style:{color:G.buttonPrimaryText,fontSize:16,fontWeight:"700"},children:"Place Entry"}),/* @__PURE__ */W(S,{style:{color:G.buttonPrimaryText,fontSize:12,opacity:.9,marginTop:2},children:Qt(g)})]})})]}):t})()})]}):/* @__PURE__ */T(z,{style:[dl.section,Te,{padding:Q?24:16,backgroundColor:Y,borderColor:G.border}],children:[
174
+ /* @__PURE__ */W(S,{style:{fontSize:Q?18:16,fontWeight:"600",color:U,fontFamily:V},children:"Log in to place this entry"}),
175
+ /* @__PURE__ */W(S,{style:{fontSize:Q?14:12,color:G.textMuted,marginTop:4,marginBottom:16},children:"Your picks are held. Log in to set your bet and confirm."}),
176
+ /* @__PURE__ */W(B,{onPress:l,style:{paddingVertical:12,paddingHorizontal:24,borderRadius:8,backgroundColor:G.buttonPrimary,alignItems:"center"},children:/* @__PURE__ */W(S,{style:{color:G.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Log in"})})]}),s&&/* @__PURE__ */W(z,{style:[dl.errorBanner,{backgroundColor:G.errorBg,borderColor:G.error}],children:/* @__PURE__ */W(S,{style:{color:G.errorText,fontSize:14},children:s})}),!m&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:G.border,backgroundColor:G.background,marginHorizontal:Q?-24:-16,paddingHorizontal:Q?24:16,paddingVertical:Q?16:12},children:[/* @__PURE__ */W(lt,{theme:N,variant:"secondary",disabled:c,onPress:a,children:"Back"}),/* @__PURE__ */W(B,{onPress:l,disabled:me,accessibilityState:{disabled:me,busy:!!c},activeOpacity:.7,style:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,paddingHorizontal:24,paddingVertical:10,borderRadius:8,backgroundColor:G.buttonPrimary,opacity:me?.5:1},children:c?/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(d,{size:"small",color:G.buttonPrimaryText}),/* @__PURE__ */W(S,{style:{color:G.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Placing Entry…"})]}):/* @__PURE__ */W(S,{style:{color:G.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:`Place Entry (${Qt(g)})`})})]})]})}var dl=k.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}}),hl="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 ul({index:e,size:t,wide:n,isWinning:o,isJackpot:r,isSelected:i,bgColor:l,borderFallback:a,warning:s,primary:d,textMuted:h,payout:u,onPress:g,accessibilityLabel:f}){const[p,y]=c(!1),m=!!g,b=o||r,w=m&&p?1.12:b?1.1:1;/* @__PURE__ */
177
+ return T(B,{onPress:g,disabled:!m,activeOpacity:.7,accessibilityRole:"button",accessibilityLabel:f,accessibilityState:{disabled:!m,selected:i},...it(()=>y(!0),()=>y(!1)),style:[fl.circle,{width:t,height:t,borderRadius:t/2,backgroundColor:l,borderColor:r?s:o?l:a,zIndex:i?10:r?6:o?5:1,transform:[{scale:w}]},b&&fl.circleWinning,m&&p&&fl.circleHovered],children:[r&&/* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",top:-3,right:-3,bottom:-3,left:-3,borderRadius:t/2+3,borderWidth:2,borderColor:`${s}80`}}),i&&/* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",top:-6,right:-6,bottom:-6,left:-6,borderRadius:t/2+6,borderWidth:3,borderColor:d}}),r&&/* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",top:-6,right:-6},children:/* @__PURE__ */W(A,{width:14,height:14,viewBox:"0 0 24 24",children:/* @__PURE__ */W(H,{d:hl,fill:s,stroke:s,strokeWidth:1})})}),
178
+ /* @__PURE__ */W(S,{style:{fontSize:n?16:14,lineHeight:n?16:14,fontWeight:"600",color:o||r?"#ffffff":h},children:e}),u>0&&/* @__PURE__ */W(S,{style:{fontSize:n?8:7,lineHeight:n?8:7,fontWeight:"400",color:o||r?"#ffffff":h},children:Qt(u)})]})}function gl({game:e,totalSelections:t,expectedCorrect:n,onExpectedCorrectChange:o,theme:r=Be,colorWinning:i,colorNone:l,winningCounts:a,payouts:s}){const d=r.colors,{width:h}=v(),u=h>=640,g=i??d.payoutWinning,f=l??d.payoutNone,p=sn(e),y=u?48:40,[m,b]=c({width:0,height:0});/* @__PURE__ */
179
+ return T(z,{style:fl.container,children:[
180
+ /* @__PURE__ */W(S,{style:[fl.title,{color:d.textMuted}],children:"Payout Visualization"}),p.enabled&&/* @__PURE__ */T(z,{style:[fl.jackpotBanner,{borderColor:`${d.warning}30`}],onLayout:e=>b({width:e.nativeEvent.layout.width,height:e.nativeEvent.layout.height}),children:[m.width>0&&/* @__PURE__ */T(A,{style:k.absoluteFill,width:m.width,height:m.height,pointerEvents:"none",children:[/* @__PURE__ */W(R,{children:/* @__PURE__ */T(P,{id:"payout-jackpot-grad",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[/* @__PURE__ */W(E,{offset:"0%",stopColor:d.warning,stopOpacity:.094}),/* @__PURE__ */W(E,{offset:"100%",stopColor:d.warning,stopOpacity:.031})]})}),/* @__PURE__ */W(I,{x:0,y:0,width:m.width,height:m.height,fill:"url(#payout-jackpot-grad)"})]}),
181
+ /* @__PURE__ */W(A,{width:16,height:16,viewBox:"0 0 24 24",style:{flexShrink:0},children:/* @__PURE__ */W(H,{d:hl,fill:d.warning})}),
182
+ /* @__PURE__ */W(S,{style:[fl.jackpotText,{color:d.warning}],children:p.progressive?p.amount>0?`Progressive Jackpot: ${Qt(p.amount)}${p.limit>0?` (up to ${Qt(p.limit)})`:""} for a perfect pick!`:p.limit>0?`Progressive Jackpot — up to ${Qt(p.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${Qt(p.amount)} for a perfect pick!`})]}),
183
+ /* @__PURE__ */W(z,{style:[fl.circleGrid,{gap:u?8:6}],children:Array.from({length:t+1},(e,r)=>{const i=a.includes(r),l=s[r]??0,c=r===t,h=p.enabled&&c,m=h?d.warning:i?g:f,b=r===n,w=h?p.progressive?`${r} correct wins progressive jackpot${p.amount>0?` (currently ${Qt(p.amount)})`:""}${p.limit>0?` up to ${Qt(p.limit)}`:""} plus ${Qt(l)}`:`${r} correct wins jackpot ${Qt(p.amount)} plus ${Qt(l)}`:i?`${r} correct wins ${Qt(l)}`:l>0?`${r} correct pays ${Qt(l)} but does not win`:`${r} correct — no payout`,x=o?`${w}. Tap to select`:w;/* @__PURE__ */
184
+ return W(ul,{index:r,size:y,wide:u,isWinning:i,isJackpot:h,isSelected:b,bgColor:m,borderFallback:d.border,warning:d.warning,primary:d.primary,textMuted:d.textMuted,payout:l,onPress:o?()=>o(r):void 0,accessibilityLabel:x},r)})}),
185
+ /* @__PURE__ */T(S,{style:[fl.expectedText,{color:d.textMuted}],children:["Your expected: ",/* @__PURE__ */T(S,{style:fl.expectedBold,children:[n," correct"]})]})]})}var fl=k.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"}});function pl({iconUrl:e,gameName:t,chipColor:n,textColor:o,iconColor:r,accentColor:i,brandColor:l,height:a=56,showTrademark:c=!0,compact:s=!1,onPress:d}){const h=n??l??"#0F4C5C",u=o??h,g=.85*a,f=1.8*g,p=g/2,y='Manrope, Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif',m=a,w=f-.18*g*2,x=g-.05*g*2,k=/* @__PURE__ */T(F,{children:[
181
186
  /* @__PURE__ */T(S,{accessibilityLabel:"YESNO",style:{fontFamily:y,fontSize:a,lineHeight:1.15*a,letterSpacing:-1,color:u,includeFontPadding:!1},children:[/* @__PURE__ */W(S,{style:{fontWeight:"900"},children:"YES"}),/* @__PURE__ */W(S,{style:{fontWeight:"300"},children:"NO"})]}),
182
- /* @__PURE__ */W(z,{accessible:!0,accessibilityRole:"image",accessibilityLabel:t,style:{width:f,height:g,borderRadius:p,backgroundColor:h,alignItems:"center",justifyContent:"center",flexShrink:0,transform:[{translateY:.06*-a}]},children:/* @__PURE__ */W(On,{iconUrl:e,width:w,height:x,iconColor:i,accentColor:r})}),
183
- /* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"flex-start",flexShrink:1,minWidth:0},children:[/* @__PURE__ */W(S,{style:{fontFamily:y,fontSize:m,lineHeight:1.15*m,fontWeight:"500",color:u,includeFontPadding:!1,flexShrink:1},children:t}),c&&/* @__PURE__ */W(S,{style:{fontFamily:y,fontSize:.3*m,lineHeight:.3*m,fontWeight:"600",color:u,marginLeft:.06*m,includeFontPadding:!1},children:"TM"})]})]});return d?/* @__PURE__ */W(b,{onPress:d,accessibilityRole:"button",accessibilityLabel:`Play ${t}`,testID:"brand-logo-play",style:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:.2*a,maxWidth:"100%",minWidth:0},children:k}):/* @__PURE__ */W(z,{style:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:.2*a,maxWidth:"100%",minWidth:0},children:k})}function tl({color:e,style:t}){/* @__PURE__ */
184
- return W(z,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function nl({colors:e}){const t=e.selectionCard??e.backgroundAlt;/* @__PURE__ */
185
- return T(z,{style:{width:"100%"},children:[/* @__PURE__ */W(z,{style:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:e.border,marginBottom:16},children:[0,1].map(t=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10},children:[/* @__PURE__ */W(tl,{color:e.textMuted,style:{height:14,width:68}}),/* @__PURE__ */W(tl,{color:e.textMuted,style:{height:20,width:20,borderRadius:999}})]},t))}),/* @__PURE__ */W(z,{style:{gap:12,width:"100%"},children:[0,1].map(n=>/* @__PURE__ */T(z,{style:{borderRadius:8,borderWidth:1,borderColor:e.border,backgroundColor:t,overflow:"hidden",width:"100%"},children:[/* @__PURE__ */T(z,{style:{width:"100%",paddingHorizontal:16,paddingVertical:12,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(z,{style:{flex:1,gap:6},children:[/* @__PURE__ */W(tl,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),/* @__PURE__ */W(tl,{color:e.textMuted,style:{height:12,width:128,maxWidth:"65%"}})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:12,flexShrink:0},children:[/* @__PURE__ */W(tl,{color:e.textMuted,style:{height:14,width:40}}),/* @__PURE__ */W(tl,{color:e.textMuted,style:{height:24,width:60,borderRadius:999}})]})]}),/* @__PURE__ */W(z,{style:{borderTopWidth:1,borderTopColor:e.border,width:"100%"},children:[0,1,2].map(t=>/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:10,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:0===t?0:1,borderTopColor:e.border},children:[/* @__PURE__ */T(z,{style:{flex:1,gap:4},children:[/* @__PURE__ */W(tl,{color:e.textMuted,style:{height:14,width:"88%"}}),/* @__PURE__ */W(tl,{color:e.textMuted,style:{height:12,width:"70%"}})]}),/* @__PURE__ */W(tl,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]},n))})]})}function ol({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,demoEntries:s,demoGames:d,demoPropositions:h,onSelectEntry:u,theme:g,colorScheme:f,renderTeamLogo:p,filterSport:y}){const m=je(g,f),b=!!(s&&d&&h),w=m.colors,x=Ge(m),[k,C]=c("pending"),[F,v]=c([]),R=l(()=>new ei({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:L,loading:D,error:M,refetch:P}=ii(R,{user_id:r},{skip:b}),{games:O,loading:I,error:E}=ti(R,void 0,{skip:b}),{propositions:j,loading:N,error:G}=ni(R,void 0,{skip:b}),Y=b?s:L,V=b?d:O,U=b?h:j,q=!b&&(D||I||N),K=b?null:M||E||G,Z=l(()=>Y.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}),[Y]),X=l(()=>{const e=/* @__PURE__ */new Map;for(const t of V)e.set(t.id,t);return e},[V]),Q=l(()=>{const e=/* @__PURE__ */new Map;for(const t of U)e.set(t.id,t);for(const t of Z)if(t.propositions)for(const n of t.propositions)e.has(n.id)||e.set(n.id,n);for(const t of F)e.set(t.id,t);return e},[U,Z,F]),J=a(/* @__PURE__ */new Set);i(()=>{if(q||b)return;const e=[];for(const n of Z)for(const t of n.proposition_ids??[])Q.has(t)||J.current.has(t)||(e.push(t),J.current.add(t));if(0===e.length)return;let t=!1;return(async()=>{try{const n=await R.getPropositionsByIds(e);!t&&n.length>0&&v(e=>[...e,...n])}catch{}})(),()=>{t=!0}},[Z,Q,q,b,R]);const $=l(()=>y?Z.filter(e=>{const t=e.proposition_ids??[];return 0===t.length||t.some(t=>(Q.get(t)??e.propositions?.find(e=>e.id===t))?.sport===y)}):Z,[Z,y,Q]),_=l(()=>$.filter(e=>Jt(e.pending)),[$]),ee=l(()=>$.filter(e=>!Jt(e.pending)),[$]),te="pending"===k?_:ee;return q?/* @__PURE__ */W(z,{style:rl.container,accessibilityLabel:"Loading entries",children:/* @__PURE__ */W(nl,{colors:ke(m)})}):K?/* @__PURE__ */W(z,{style:rl.container,children:/* @__PURE__ */T(z,{style:[rl.errorBanner,{backgroundColor:w.errorBg,borderColor:w.error}],children:[/* @__PURE__ */W(S,{style:{color:w.errorText},children:K}),/* @__PURE__ */W(B,{onPress:P,style:rl.retryButton,children:/* @__PURE__ */W(S,{style:{color:w.error,textDecorationLine:"underline",fontSize:14,fontWeight:"500"},children:"Try again"})})]})}):/* @__PURE__ */T(z,{style:rl.container,children:[
186
- /* @__PURE__ */W(z,{style:[rl.tabBar,{borderBottomColor:w.border}],children:["pending","completed"].map(e=>{const t=k===e,n="pending"===e?_.length:ee.length;/* @__PURE__ */
187
- return T(B,{onPress:()=>C(e),accessibilityRole:"tab",accessibilityState:{selected:t},style:[rl.tab,{borderBottomColor:t?w.primary:"transparent"}],children:[/* @__PURE__ */W(S,{style:[rl.tabLabel,{color:t?w.primary:w.textMuted,fontFamily:x}],children:"pending"===e?"Pending":"Completed"}),/* @__PURE__ */W(z,{style:[rl.tabBadge,{backgroundColor:t?`${w.primary}15`:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[rl.tabBadgeText,{color:t?w.primary:w.textMuted}],children:n})})]},e)})}),0===te.length&&/* @__PURE__ */T(z,{style:rl.emptyState,children:[
187
+ /* @__PURE__ */W(z,{accessible:!0,accessibilityRole:"image",accessibilityLabel:t,style:{width:f,height:g,borderRadius:p,backgroundColor:h,alignItems:"center",justifyContent:"center",flexShrink:0,transform:[{translateY:.06*-a}]},children:/* @__PURE__ */W(Pn,{iconUrl:e,width:w,height:x,iconColor:r,accentColor:i})}),
188
+ /* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"flex-start",flexShrink:1,minWidth:0},children:[/* @__PURE__ */W(S,{style:{fontFamily:y,fontSize:m,lineHeight:1.15*m,fontWeight:"500",color:u,includeFontPadding:!1,flexShrink:1},children:t}),c&&/* @__PURE__ */W(S,{style:{fontFamily:y,fontSize:.3*m,lineHeight:.3*m,fontWeight:"600",color:u,marginLeft:.06*m,includeFontPadding:!1},children:"TM"})]})]});return d?/* @__PURE__ */W(b,{onPress:d,accessibilityRole:"button",accessibilityLabel:`Play ${t}`,testID:"brand-logo-play",style:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:.2*a,maxWidth:"100%",minWidth:0},children:k}):/* @__PURE__ */W(z,{style:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:.2*a,maxWidth:"100%",minWidth:0},children:k})}function yl({color:e,style:t}){/* @__PURE__ */
189
+ return W(z,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function ml({colors:e}){const t=e.selectionCard??e.backgroundAlt;/* @__PURE__ */
190
+ return T(z,{style:{width:"100%"},children:[/* @__PURE__ */W(z,{style:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:e.border,marginBottom:16},children:[0,1].map(t=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10},children:[/* @__PURE__ */W(yl,{color:e.textMuted,style:{height:14,width:68}}),/* @__PURE__ */W(yl,{color:e.textMuted,style:{height:20,width:20,borderRadius:999}})]},t))}),/* @__PURE__ */W(z,{style:{gap:12,width:"100%"},children:[0,1].map(n=>/* @__PURE__ */T(z,{style:{borderRadius:8,borderWidth:1,borderColor:e.border,backgroundColor:t,overflow:"hidden",width:"100%"},children:[/* @__PURE__ */T(z,{style:{width:"100%",paddingHorizontal:16,paddingVertical:12,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(z,{style:{flex:1,gap:6},children:[/* @__PURE__ */W(yl,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),/* @__PURE__ */W(yl,{color:e.textMuted,style:{height:12,width:128,maxWidth:"65%"}})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:12,flexShrink:0},children:[/* @__PURE__ */W(yl,{color:e.textMuted,style:{height:14,width:40}}),/* @__PURE__ */W(yl,{color:e.textMuted,style:{height:24,width:60,borderRadius:999}})]})]}),/* @__PURE__ */W(z,{style:{borderTopWidth:1,borderTopColor:e.border,width:"100%"},children:[0,1,2].map(t=>/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:10,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:0===t?0:1,borderTopColor:e.border},children:[/* @__PURE__ */T(z,{style:{flex:1,gap:4},children:[/* @__PURE__ */W(yl,{color:e.textMuted,style:{height:14,width:"88%"}}),/* @__PURE__ */W(yl,{color:e.textMuted,style:{height:12,width:"70%"}})]}),/* @__PURE__ */W(yl,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]},n))})]})}function bl({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:i,demoEntries:s,demoGames:d,demoPropositions:h,onSelectEntry:u,theme:g,colorScheme:f,renderTeamLogo:p,filterSport:y}){const m=je(g,f),b=!!(s&&d&&h),w=m.colors,x=Ge(m),[k,C]=c("pending"),[v,F]=c([]),L=l(()=>new sr({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:R,loading:D,error:M,refetch:P}=gr(L,{user_id:i},{skip:b}),{games:O,loading:I,error:E}=dr(L,void 0,{skip:b}),{propositions:j,loading:N,error:G}=hr(L,void 0,{skip:b}),Y=b?s:R,V=b?d:O,U=b?h:j,q=!b&&(D||I||N),K=b?null:M||E||G,Z=l(()=>Y.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}),[Y]),X=l(()=>{const e=/* @__PURE__ */new Map;for(const t of V)e.set(t.id,t);return e},[V]),Q=l(()=>{const e=/* @__PURE__ */new Map;for(const t of U)e.set(t.id,t);for(const t of Z)if(t.propositions)for(const n of t.propositions)e.has(n.id)||e.set(n.id,n);for(const t of v)e.set(t.id,t);return e},[U,Z,v]),J=a(/* @__PURE__ */new Set);r(()=>{if(q||b)return;const e=[];for(const n of Z)for(const t of n.proposition_ids??[])Q.has(t)||J.current.has(t)||(e.push(t),J.current.add(t));if(0===e.length)return;let t=!1;return(async()=>{try{const n=await L.getPropositionsByIds(e);!t&&n.length>0&&F(e=>[...e,...n])}catch{}})(),()=>{t=!0}},[Z,Q,q,b,L]);const $=l(()=>y?Z.filter(e=>{const t=e.proposition_ids??[];return 0===t.length||t.some(t=>(Q.get(t)??e.propositions?.find(e=>e.id===t))?.sport===y)}):Z,[Z,y,Q]),_=l(()=>$.filter(e=>Xt(e.pending)),[$]),ee=l(()=>$.filter(e=>!Xt(e.pending)),[$]),te="pending"===k?_:ee;return q?/* @__PURE__ */W(z,{style:xl.container,accessibilityLabel:"Loading entries",children:/* @__PURE__ */W(ml,{colors:ke(m)})}):K?/* @__PURE__ */W(z,{style:xl.container,children:/* @__PURE__ */T(z,{style:[xl.errorBanner,{backgroundColor:w.errorBg,borderColor:w.error}],children:[/* @__PURE__ */W(S,{style:{color:w.errorText},children:K}),/* @__PURE__ */W(B,{onPress:P,style:xl.retryButton,children:/* @__PURE__ */W(S,{style:{color:w.error,textDecorationLine:"underline",fontSize:14,fontWeight:"500"},children:"Try again"})})]})}):/* @__PURE__ */T(z,{style:xl.container,children:[
191
+ /* @__PURE__ */W(z,{style:[xl.tabBar,{borderBottomColor:w.border}],children:["pending","completed"].map(e=>{const t=k===e,n="pending"===e?_.length:ee.length;/* @__PURE__ */
192
+ return T(B,{onPress:()=>C(e),accessibilityRole:"tab",accessibilityState:{selected:t},style:[xl.tab,{borderBottomColor:t?w.primary:"transparent"}],children:[/* @__PURE__ */W(S,{style:[xl.tabLabel,{color:t?w.primary:w.textMuted,fontFamily:x}],children:"pending"===e?"Pending":"Completed"}),/* @__PURE__ */W(z,{style:[xl.tabBadge,{backgroundColor:t?`${w.primary}15`:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[xl.tabBadgeText,{color:t?w.primary:w.textMuted}],children:n})})]},e)})}),0===te.length&&/* @__PURE__ */T(z,{style:xl.emptyState,children:[
188
193
  /* @__PURE__ */W(z,{style:{marginBottom:16},children:/* @__PURE__ */W(A,{width:48,height:48,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"pending"===k?"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"})})}),
189
- /* @__PURE__ */W(S,{style:[rl.emptyTitle,{color:w.text}],children:"pending"===k?"No pending entries":"No completed entries"}),
190
- /* @__PURE__ */W(S,{style:[rl.emptySubtitle,{color:w.textMuted}],children:"pending"===k?"Entries awaiting results will appear here":"Settled entries will appear here"})]}),
191
- /* @__PURE__ */W(z,{style:rl.entryList,children:te.map(e=>/* @__PURE__ */W(il,{entry:e,game:X.get(e.game_id),propositionsById:Q,onSelect:u,theme:m,renderTeamLogo:p},e.id))})]})}function il({entry:e,game:t,propositionsById:n,onSelect:o,theme:i,renderTeamLogo:r}){const a=i.colors,s=be(i),d=Ge(i),h="dark"===i.colorScheme,u=e.proposition_ids??[],g=l(()=>u.map(e=>n.get(e)).filter(Boolean),[u,n]),f=u.length,[p,y]=c(!1),m=f>0,b=l(()=>{const t=/* @__PURE__ */new Map;for(const n of e.propositions??[])t.set(n.id,n);return t},[e.propositions]),w=t=>{const o=e.selections?.[t];return null!=o?o:b.get(t)?.user_prediction??n.get(t)?.user_prediction},x=g.filter(e=>null!=e.result&&!e.is_voided).length,k=g.filter(e=>{if(null==e.result||e.is_voided)return!1;const t=w(e.id);return null!=t&&t===e.result}).length,C=null!=e.selections&&Object.keys(e.selections).length>0||(e.propositions??[]).some(e=>null!=e.user_prediction),F=Jt(e.pending),R=!F&&Qt(e.winning)>0,L=e.payout_status,D="fulfilled"===L&&R,M=F?"Pending":D?"Won — pay due":"paid_out"===L&&R?"Paid":R?"Won":"Lost",P=F||D?a.warningBg:R?a.successBg:a.errorBg,O=F||D?a.warningText:R?a.successText:a.errorText,I=C&&x>0?`${k}/${f} correct`:f>0?`${f} pick${1!==f?"s":""}`:null,E=C&&x>0?k>0?a.success:a.error:a.textMuted,j=/* @__PURE__ */T(z,{style:rl.cardHeader,children:[/* @__PURE__ */T(z,{style:rl.cardHeaderLeft,children:[(()=>{const n=t?t.allowed_propositions&&t.allowed_propositions.length>0&&t.game_name.replace(/\s+\d+\s*$/,"").trim()||t.game_name:`Game #${e.game_id}`;return t?/* @__PURE__ */W(el,{iconUrl:Ze(t),gameName:n,height:18,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:i.brand?.accent}):/* @__PURE__ */W(S,{style:[rl.cardGameName,{color:a.text,fontFamily:d}],numberOfLines:1,children:n})})(),/* @__PURE__ */T(z,{style:rl.metaRow,children:[(e.created_at||e.entry_date)&&/* @__PURE__ */W(S,{style:[rl.metaText,{color:a.textMuted}],children:_t(e.created_at||e.entry_date)}),I&&/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(S,{style:[rl.metaDot,{color:a.textMuted}],children:"·"}),/* @__PURE__ */W(S,{style:[rl.metaText,{fontWeight:"500",color:E}],children:I})]})]})]}),/* @__PURE__ */T(z,{style:rl.cardHeaderRight,children:[
192
- /* @__PURE__ */T(z,{style:rl.amounts,children:[Qt(e.bet_amount)>0&&/* @__PURE__ */W(S,{style:[rl.betLabel,{color:a.textMuted}],children:$t(Qt(e.bet_amount))}),!F&&Qt(e.winning)>0&&/* @__PURE__ */T(z,{style:{alignItems:"flex-end"},children:[/* @__PURE__ */W(S,{style:[rl.winAmount,{color:a.success}],children:$t(Qt(e.winning))}),(e.payout_jackpot??0)>0&&/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"400",color:a.textMuted},children:["incl. ",$t(Qt(e.payout_jackpot))," jackpot"]})]})]}),
193
- /* @__PURE__ */W(z,{style:[rl.statusPill,{backgroundColor:P}],children:/* @__PURE__ */W(S,{style:[rl.statusText,{color:O}],children:M})}),m&&/* @__PURE__ */W(z,{style:{transform:[{rotate:p?"180deg":"0deg"}]},accessibilityElementsHidden:!0,children:/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:a.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})]});/* @__PURE__ */
194
- return T(z,{style:[rl.card,{borderColor:a.border,backgroundColor:s,shadowColor:"#000",shadowOpacity:h?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}],children:[/* @__PURE__ */W(B,{testID:"entry-card",onPress:()=>{m&&y(e=>!e),o?.({entry:e,game:t,propositions:g})},activeOpacity:.7,disabled:!m&&!o,accessibilityLabel:`Entry #${e.id}`,accessibilityState:m?{expanded:p}:void 0,children:j}),p&&f>0&&u.map(t=>{const o=(t=>n.get(t)??e.propositions?.find(e=>e.id===t))(t),l=w(t);if(!o)/* @__PURE__ */return T(z,{style:[rl.propRow,{borderTopColor:a.border,borderTopWidth:1}],children:[/* @__PURE__ */W(z,{style:rl.propInfo,children:/* @__PURE__ */T(S,{style:{fontSize:14,color:a.textMuted},children:["Loading proposition #",t,"…"]})}),null!=l&&/* @__PURE__ */W(ht,{theme:i,size:"sm",value:"yes"===l?"yes":"no"})]},t);const c=o.result,s=null!=c,d=!!o.is_voided,h=s&&!d&&null!=l&&l===c;let u,g,f;d?(u="Void",g=`${a.textMuted}20`,f=a.textMuted):s?h?(u="Won",g=a.successBg,f=a.successText):(u="Lost",g=a.errorBg,f=a.errorText):(u="Pending",g=a.warningBg,f=a.warningText);const p=rn(o)?void 0:o.home_team;/* @__PURE__ */
195
- return T(z,{style:[rl.propRow,{borderTopColor:a.border,borderTopWidth:1}],children:[
196
- /* @__PURE__ */T(z,{style:rl.propInfo,children:[(o.home_team||o.away_team)&&/* @__PURE__ */T(z,{style:rl.teamsRow,children:[r&&p?r(p):null,p?/* @__PURE__ */W(S,{style:[rl.teamName,{color:a.text}],children:p}):null,p&&o.away_team?/* @__PURE__ */W(S,{style:[rl.vsText,{color:a.textMuted}],children:"vs"}):null,r&&o.away_team?r(o.away_team):null,o.away_team?/* @__PURE__ */W(S,{style:[rl.teamName,{color:a.text}],children:o.away_team}):null]}),(o.proposition||o.description)&&/* @__PURE__ */W(S,{style:{fontSize:12,color:a.textMuted,marginTop:2},children:o.proposition||o.description}),o.commence_time&&/* @__PURE__ */W(S,{style:{fontSize:12,color:a.textMuted,marginTop:2},children:_t(o.commence_time)})]}),
197
- /* @__PURE__ */T(z,{style:rl.outcomeCol,children:[/* @__PURE__ */W(S,{style:[rl.outcomeLabel,{color:a.textMuted}],children:"Pick"}),null!=l?/* @__PURE__ */W(ht,{theme:i,size:"sm",value:"yes"===l?"yes":"no"}):/* @__PURE__ */W(S,{style:{fontSize:12,color:a.textMuted},children:"—"})]}),
198
- /* @__PURE__ */T(z,{style:rl.outcomeCol,children:[/* @__PURE__ */W(S,{style:[rl.outcomeLabel,{color:a.textMuted}],children:"Result"}),/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:4,backgroundColor:g},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"700",color:f,textTransform:"uppercase"},children:u})})]})]},t)})]})}var rl=k.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"}});function ll({style:t}){const{theme:n,bodyFont:o,eventFilterActive:i,eventFilterLabel:r,clearEventFilter:l,gameCategory:a}=$i(),{width:c}=F(),s=c>=640,[d,h]=e.useState(!1);if(!i)return null;const u=n.colors,g=r??("racing"===a?"This race":"This event");/* @__PURE__ */
199
- return T(z,{style:[al.container,s&&al.containerWide,{borderColor:`${u.primary}33`,backgroundColor:u.surface},t],children:[/* @__PURE__ */T(z,{style:al.textBlock,children:[
200
- /* @__PURE__ */W(S,{style:[al.kicker,{color:u.primary,fontFamily:o}],children:"Event filter"}),
201
- /* @__PURE__ */W(S,{style:[al.label,{color:u.text,fontFamily:o}],numberOfLines:1,children:g}),
202
- /* @__PURE__ */W(S,{style:[al.hint,{color:u.textMuted,fontFamily:o}],children:"Only propositions from this event are shown."})]}),/* @__PURE__ */W(B,{onPress:l,...rt(()=>h(!0),()=>h(!1)),style:[al.button,s&&al.buttonWide,{borderColor:`${u.primary}44`,backgroundColor:u.background,opacity:d?.9:1}],children:/* @__PURE__ */W(S,{style:[al.buttonText,{color:u.text,fontFamily:o}],children:"Show all events"})})]})}var al=k.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 cl({onBack:t,title:n="Go back"}){const{theme:o}=$i(),i=o.colors,[r,l]=e.useState(!1);/* @__PURE__ */
203
- return W(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,...rt(()=>l(!0),()=>l(!1)),style:{padding:2,alignItems:"center",justifyContent:"center",borderRadius:999,transform:[{translateX:r?-2:0}]},children:/* @__PURE__ */W(A,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:r?i.text:i.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})}function sl({onBack:t,label:n="Games"}){const{theme:o}=$i(),i=o.colors,[r,l]=e.useState(!1),a=r?i.primary:i.textMuted;/* @__PURE__ */
204
- return T(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,activeOpacity:.7,...rt(()=>l(!0),()=>l(!1)),style:{flexDirection:"row",alignItems:"center",gap:6,alignSelf:"flex-start",marginBottom:12,transform:[{translateX:r?-2:0}]},children:[/* @__PURE__ */W(A,{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:a,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})}),/* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:a},children:n})]})}function dl({onBack:t,hideActions:n,label:o,children:i}){const{theme:r}=$i(),l=r.colors,{width:a}=F(),c=a>=640,[s,d]=e.useState(!1);if(!t&&null==o&&!i)return null;const h=e=>/* @__PURE__ */W(S,{style:{fontSize:c?14:12,flexShrink:1,color:e},children:o});/* @__PURE__ */
205
- return T(z,{style:{flexDirection:"row",alignItems:"center",gap:6,marginTop:2},children:[t&&(null!=o?/* @__PURE__ */T(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:"Go back",activeOpacity:.7,...rt(()=>d(!0),()=>d(!1)),style:{flexDirection:"row",alignItems:"center",gap:6,minWidth:0,flexShrink:1,transform:[{translateX:s?-2:0}]},children:[/* @__PURE__ */W(A,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:s?l.text:l.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})}),h(s?l.text:l.textMuted)]}):/* @__PURE__ */W(cl,{onBack:t})),!t&&null!=o&&h(l.textMuted),i]})}function hl({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:i,howToPlayMarkdown:r,selectedCategory:l,displayCategoryName:a}=$i(),c=n.colors,{width:s}=F(),d=s>=640,h=s>=768;/* @__PURE__ */
206
- return T(z,{style:d&&fl.headerWide,children:[/* @__PURE__ */T(z,{style:fl.titleRow,children:[/* @__PURE__ */W(S,{style:[fl.title,d&&fl.titleWide,h&&fl.titleDesktop,{color:se(n),fontFamily:o,flex:1}],children:"Choose your game"}),r?.trim()?/* @__PURE__ */W(z,{style:fl.howToPlayWrap,children:/* @__PURE__ */W(St,{content:r,title:"How to Play",colors:{text:c.text,textMuted:c.textMuted,border:c.border,background:c.background,backgroundAlt:c.backgroundAlt,primary:c.primary,primaryText:c.primaryText},bodyFont:i,headingFont:o})}):null]}),/* @__PURE__ */W(dl,{onBack:e,hideActions:t,label:l?a(l):void 0})]})}function ul({onCancel:e,onSelectGame:t}){const{theme:n,screenSize:o}=$i(),i=n.colors;return e&&"mobile"!==o?/* @__PURE__ */W(z,{style:[fl.footer],children:/* @__PURE__ */W(B,{onPress:e,style:[fl.secondaryBtn,{backgroundColor:i.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[fl.secondaryBtnText,{color:i.buttonSecondaryText}],children:"Cancel"})})}):null}function gl({onSelectGame:t,onGameSetup:n,onRuleSetup:o,onGameSetBet:i,onPickYourDividend:r,onLadder:l,onMirror:a,onSafetyNet:c,onQuickPick:s,onCancel:d,hideTitle:h,hideActions:u,showPerfectPickSetup:g=!1,showTierFilter:f=!1}){const p=$i(),{theme:y,games:m,loading:b,error:w,selectedGame:x,selectedPropositionCount:k,handlePropositionCountChange:S,maxPayouts:C}=p;y.colors;const B=e.useRef(x);B.current=x;const{width:v}=F(),A=v>=640;/* @__PURE__ */
207
- return T(z,{style:fl.container,children:[!h&&/* @__PURE__ */W(z,{style:{marginBottom:A?24:16},children:/* @__PURE__ */W(hl,{onBack:d,hideActions:u})}),
208
- /* @__PURE__ */W(ll,{}),
209
- /* @__PURE__ */W(z,{style:fl.content,children:/* @__PURE__ */W($o,{games:m,selectedGame:x,onSelectGame:e=>{B.current=e,p.selectGame(e)},loading:b,error:w,theme:y,showTierFilter:f,selectedPropositionCount:k,onPropositionCountChange:S,onPropositionCountSelected:()=>{const e=B.current;if("rule_setup"===Yi(e)&&Ui(e)&&!g)return p.goToSportSelection(),void t?.();const s=Yi(e);if("quick_pick"===s||"selections"===s)return p.goToSportSelection(),void t?.();n?n(s):({game_set:i,pick_your_dividend:r,ladder:l,mirror:a,safety_net:c,rule_setup:o}[s]??o)?.()},onQuickPickGame:(e,t)=>{p.quickPickGame(e,t),s?.()},maxPayouts:C})})]})}var fl=k.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},content:{flex:1},footer:{flexDirection:"row",alignItems:"center",paddingTop:16},secondaryBtn:{paddingHorizontal:20,paddingVertical:10,borderRadius:8},secondaryBtnText:{fontSize:14,fontWeight:"500"}});function pl({onBack:e,hideActions:t}={}){const{theme:n}=$i(),o=Ge(n),i=n.colors,{width:r}=F(),l=r>=640;/* @__PURE__ */
210
- return T(z,{style:l&&bl.headerWide,children:[/* @__PURE__ */W(S,{style:[bl.sectionTitle,l&&bl.sectionTitleWide,{color:i.primary,fontFamily:o}],children:"Pick a category"}),/* @__PURE__ */W(dl,{onBack:e,hideActions:t})]})}function yl({onCancel:e}){const{theme:t,screenSize:n}=$i(),o=t.colors;return e&&"mobile"!==n?/* @__PURE__ */W(z,{style:bl.footer,children:/* @__PURE__ */W(B,{onPress:e,style:[bl.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[bl.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null}function ml({onSelectCategory:t,onCancel:n,hideTitle:o,hideActions:i,renderCategoryIcon:r,getCategoryTagline:l}){const{theme:a,propositionsForCategoryPicker:c,loading:s,setSelectedCategory:d,setSelectedSport:h,clearSelectedGame:u,displayCategoryName:g}=$i(),f=a.colors,p=be(a),y=Ne(a),{width:m}=F(),b=m>=640,w=m>=400,[x,k]=e.useState(null),[C,v]=e.useState(0),A=w?C>0?(C-(b?12:10))/2:"48%":"100%";ln(c);const R=an(c);return s?/* @__PURE__ */W(z,{style:bl.container,children:/* @__PURE__ */W(_n,{colors:ke(a),bodyFont:y,variant:"category",categoryCount:R.length>0?R.length:2})}):/* @__PURE__ */T(z,{style:bl.container,children:[!o&&/* @__PURE__ */W(z,{style:bl.titleWrap,children:/* @__PURE__ */W(pl,{onBack:n,hideActions:i})}),/* @__PURE__ */W(z,{style:bl.content,children:/* @__PURE__ */W(z,{style:[bl.grid,b&&bl.gridWide],onLayout:e=>v(e.nativeEvent.layout.width),children:R.map(e=>{const n=l?.(e)??function(e){return Ut[e]??""}(e),o=x===e;/* @__PURE__ */
211
- return T(B,{onPress:()=>{d(e),h(null),u(),t?.(e)},...rt(()=>k(e),()=>k(t=>t===e?null:t)),style:[bl.card,b&&bl.cardWide,{width:A,backgroundColor:p,borderColor:o?f.primary:f.border},o&&bl.cardHovered],activeOpacity:.85,children:[/* @__PURE__ */W(Wt,{label:g(e),category:e,icon:r?.(e),theme:a}),n?/* @__PURE__ */W(S,{style:[bl.tagline,b&&bl.taglineWide,{color:f.primary,fontFamily:y}],children:n}):null]},e)})})})]})}var bl=k.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 wl(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 xl({name:e,renderTeamLogo:t,muted:n,headingFont:o,ink:i,wide:r}){if(!e)/* @__PURE__ */return W(S,{style:[Sl.teamName,{color:n,fontFamily:o}],children:"TBC"});const l=t?.(e);/* @__PURE__ */
212
- return T(z,{style:Sl.teamMark,children:[null!=l?/* @__PURE__ */W(z,{style:Sl.teamLogo,children:l}):null,/* @__PURE__ */W(S,{style:[Sl.teamName,r&&Sl.teamNameWide,{color:i,fontFamily:o}],children:e})]})}function kl({onSelectEvent:t}){const{theme:n,loading:o,sameGameMultiEvents:i,selectSameGameMultiEvent:r,renderTeamLogo:l,displaySportName:a}=$i(),c=n.colors,s=Ne(n),d=Ge(n),h=be(n),u=we(n),{width:g}=F(),f=g>=640,[p,y]=e.useState(null),[m,b]=e.useState(null);return o?/* @__PURE__ */W(z,{style:Sl.container,children:/* @__PURE__ */W(_n,{colors:ke(n),bodyFont:s,variant:"event"})}):/* @__PURE__ */T(z,{style:Sl.container,accessibilityLabel:"Available fixtures",children:[/* @__PURE__ */W(S,{style:[Sl.intro,{color:c.textMuted,fontFamily:s}],children:"All picks in your multi must come from one game."}),0===i.length?/* @__PURE__ */W(z,{accessibilityRole:"text",accessibilityLiveRegion:"polite",style:[Sl.emptyState,{borderColor:c.border,backgroundColor:h}],children:/* @__PURE__ */W(S,{style:[Sl.emptyText,{color:c.textMuted,fontFamily:s}],children:"No fixtures with available propositions."})}):/* @__PURE__ */W(z,{style:[Sl.list,f&&Sl.listWide],children:i.map(e=>{const n=p===e.id,o=m===e.id;/* @__PURE__ */
213
- return T(B,{accessibilityRole:"button",accessibilityLabel:`Select ${eo(e)}`,onPress:()=>{r(e.id),t?.(e.id)},activeOpacity:.85,...rt(()=>y(e.id),()=>y(t=>t===e.id?null:t)),onFocus:()=>b(e.id),onBlur:()=>b(t=>t===e.id?null:t),style:[Sl.card,f&&Sl.cardWide,{borderColor:n||o?c.primary:c.border,backgroundColor:h},n&&Sl.cardHovered],children:[/* @__PURE__ */T(z,{style:Sl.cardMain,children:[/* @__PURE__ */T(z,{style:[Sl.matchup,f&&Sl.matchupWide,{backgroundColor:u}],children:[
214
- /* @__PURE__ */W(xl,{name:e.homeTeam,renderTeamLogo:l,muted:c.textMuted,headingFont:d,ink:c.text,wide:f}),
215
- /* @__PURE__ */W(S,{style:[Sl.vs,{color:c.textMuted,fontFamily:d}],children:"vs"}),
216
- /* @__PURE__ */W(xl,{name:e.awayTeam,renderTeamLogo:l,muted:c.textMuted,headingFont:d,ink:c.text,wide:f})]}),/* @__PURE__ */T(S,{style:[Sl.meta,f&&Sl.metaWide,{color:c.textMuted,fontFamily:s}],children:[wl(e.commenceTime)," · ",e.propositionCount," proposition",1===e.propositionCount?"":"s",e.league||e.sport?` · ${e.league?.toUpperCase()??a(e.sport)}`:""]})]}),/* @__PURE__ */W(z,{style:{flexShrink:0,transform:[{translateX:n?2:0}]},children:/* @__PURE__ */W(zt,{size:22,color:c.textMuted})})]},e.id)})})]})}var Sl=k.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 Cl({counts:e,onPick:t,onDoubleAction:n,colors:o,align:l="right",direction:s="down",menuShadow:d="0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}){const[h,g]=c(!1),[f,p]=c(!1),[y,b]=c(null),w=a(0),x=a(null),k=a(null),[C,F]=c(null),[A,R]=c(null),L="web"===m.OS,D=36+36*e.length+12,M="up"===s||f?"up":"down";r(()=>{if(!h||!L)return;const e=x.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.scrollX||window.pageXOffset||0,o=window.scrollY||window.pageYOffset||0;F({top:t.top+o,bottom:t.bottom+o,left:t.left+n,right:t.right+n,width:t.width});const i=window.innerHeight-t.bottom,r=t.top;p(i<D&&r>i)},[h,L,D]),i(()=>{if(!h)return b(null),void(L||p(!1));if(L){const e=e=>{const t=x.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||k.current&&k.current.contains(n)||g(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}const e=x.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const i=u.get("window").height-(t+o);p(i<D&&t>i),R({x:e,y:t,width:n,height:o})})},[h,L,D]);const P=/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:o.border},children:/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",color:o.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase"},children:"How many picks?"})}),e.map(e=>/* @__PURE__ */T(B,{onPress:()=>{t(e),g(!1)},accessibilityRole:"menuitem",...rt(()=>b(e),()=>b(t=>t===e?null:t)),style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:1,borderTopColor:o.border,backgroundColor:y===e?o.backgroundAlt:"transparent"},children:[/* @__PURE__ */T(S,{style:{fontSize:14,fontWeight:"600",color:o.text},children:[e," picks"]}),/* @__PURE__ */W(z,{style:{backgroundColor:o.backgroundAlt,paddingHorizontal:6,paddingVertical:2,borderRadius:4},children:/* @__PURE__ */W(S,{style:{color:o.text,fontSize:10,fontWeight:"700",letterSpacing:.5},children:"QP"})})]},e))]});/* @__PURE__ */
194
+ /* @__PURE__ */W(S,{style:[xl.emptyTitle,{color:w.text}],children:"pending"===k?"No pending entries":"No completed entries"}),
195
+ /* @__PURE__ */W(S,{style:[xl.emptySubtitle,{color:w.textMuted}],children:"pending"===k?"Entries awaiting results will appear here":"Settled entries will appear here"})]}),
196
+ /* @__PURE__ */W(z,{style:xl.entryList,children:te.map(e=>/* @__PURE__ */W(wl,{entry:e,game:X.get(e.game_id),propositionsById:Q,onSelect:u,theme:m,renderTeamLogo:p},e.id))})]})}function wl({entry:e,game:t,propositionsById:n,onSelect:o,theme:r,renderTeamLogo:i}){const a=r.colors,s=be(r),d=Ge(r),h="dark"===r.colorScheme,u=e.proposition_ids??[],g=l(()=>u.map(e=>n.get(e)).filter(Boolean),[u,n]),f=u.length,[p,y]=c(!1),m=f>0,b=l(()=>{const t=/* @__PURE__ */new Map;for(const n of e.propositions??[])t.set(n.id,n);return t},[e.propositions]),w=t=>{const o=e.selections?.[t];return null!=o?o:b.get(t)?.user_prediction??n.get(t)?.user_prediction},x=g.filter(e=>null!=e.result&&!e.is_voided).length,k=g.filter(e=>{if(null==e.result||e.is_voided)return!1;const t=w(e.id);return null!=t&&t===e.result}).length,C=null!=e.selections&&Object.keys(e.selections).length>0||(e.propositions??[]).some(e=>null!=e.user_prediction),v=Xt(e.pending),L=!v&&Zt(e.winning)>0,R=e.payout_status,D="fulfilled"===R&&L,M=v?"Pending":D?"Won — pay due":"paid_out"===R&&L?"Paid":L?"Won":"Lost",P=v||D?a.warningBg:L?a.successBg:a.errorBg,O=v||D?a.warningText:L?a.successText:a.errorText,I=C&&x>0?`${k}/${f} correct`:f>0?`${f} pick${1!==f?"s":""}`:null,E=C&&x>0?k>0?a.success:a.error:a.textMuted,j=/* @__PURE__ */T(z,{style:xl.cardHeader,children:[/* @__PURE__ */T(z,{style:xl.cardHeaderLeft,children:[(()=>{const n=t?t.allowed_propositions&&t.allowed_propositions.length>0&&t.game_name.replace(/\s+\d+\s*$/,"").trim()||t.game_name:`Game #${e.game_id}`;return t?/* @__PURE__ */W(pl,{iconUrl:Ze(t),gameName:n,height:18,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:r.brand?.accent}):/* @__PURE__ */W(S,{style:[xl.cardGameName,{color:a.text,fontFamily:d}],numberOfLines:1,children:n})})(),/* @__PURE__ */T(z,{style:xl.metaRow,children:[(e.created_at||e.entry_date)&&/* @__PURE__ */W(S,{style:[xl.metaText,{color:a.textMuted}],children:Jt(e.created_at||e.entry_date)}),I&&/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(S,{style:[xl.metaDot,{color:a.textMuted}],children:"·"}),/* @__PURE__ */W(S,{style:[xl.metaText,{fontWeight:"500",color:E}],children:I})]})]})]}),/* @__PURE__ */T(z,{style:xl.cardHeaderRight,children:[
197
+ /* @__PURE__ */T(z,{style:xl.amounts,children:[Zt(e.bet_amount)>0&&/* @__PURE__ */W(S,{style:[xl.betLabel,{color:a.textMuted}],children:Qt(Zt(e.bet_amount))}),!v&&Zt(e.winning)>0&&/* @__PURE__ */T(z,{style:{alignItems:"flex-end"},children:[/* @__PURE__ */W(S,{style:[xl.winAmount,{color:a.success}],children:Qt(Zt(e.winning))}),(e.payout_jackpot??0)>0&&/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"400",color:a.textMuted},children:["incl. ",Qt(Zt(e.payout_jackpot))," jackpot"]})]})]}),
198
+ /* @__PURE__ */W(z,{style:[xl.statusPill,{backgroundColor:P}],children:/* @__PURE__ */W(S,{style:[xl.statusText,{color:O}],children:M})}),m&&/* @__PURE__ */W(z,{style:{transform:[{rotate:p?"180deg":"0deg"}]},accessibilityElementsHidden:!0,children:/* @__PURE__ */W(A,{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m6 9 6 6 6-6",stroke:a.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})]});/* @__PURE__ */
199
+ return T(z,{style:[xl.card,{borderColor:a.border,backgroundColor:s,shadowColor:"#000",shadowOpacity:h?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}],children:[/* @__PURE__ */W(B,{testID:"entry-card",onPress:()=>{m&&y(e=>!e),o?.({entry:e,game:t,propositions:g})},activeOpacity:.7,disabled:!m&&!o,accessibilityLabel:`Entry #${e.id}`,accessibilityState:m?{expanded:p}:void 0,children:j}),p&&f>0&&u.map(t=>{const o=(t=>n.get(t)??e.propositions?.find(e=>e.id===t))(t),l=w(t);if(!o)/* @__PURE__ */return T(z,{style:[xl.propRow,{borderTopColor:a.border,borderTopWidth:1}],children:[/* @__PURE__ */W(z,{style:xl.propInfo,children:/* @__PURE__ */T(S,{style:{fontSize:14,color:a.textMuted},children:["Loading proposition #",t,"…"]})}),null!=l&&/* @__PURE__ */W(dt,{theme:r,size:"sm",value:"yes"===l?"yes":"no"})]},t);const c=o.result,s=null!=c,d=!!o.is_voided,h=s&&!d&&null!=l&&l===c;let u,g,f;d?(u="Void",g=`${a.textMuted}20`,f=a.textMuted):s?h?(u="Won",g=a.successBg,f=a.successText):(u="Lost",g=a.errorBg,f=a.errorText):(u="Pending",g=a.warningBg,f=a.warningText);const p=nn(o)?void 0:o.home_team;/* @__PURE__ */
200
+ return T(z,{style:[xl.propRow,{borderTopColor:a.border,borderTopWidth:1}],children:[
201
+ /* @__PURE__ */T(z,{style:xl.propInfo,children:[(o.home_team||o.away_team)&&/* @__PURE__ */T(z,{style:xl.teamsRow,children:[i&&p?i(p):null,p?/* @__PURE__ */W(S,{style:[xl.teamName,{color:a.text}],children:p}):null,p&&o.away_team?/* @__PURE__ */W(S,{style:[xl.vsText,{color:a.textMuted}],children:"vs"}):null,i&&o.away_team?i(o.away_team):null,o.away_team?/* @__PURE__ */W(S,{style:[xl.teamName,{color:a.text}],children:o.away_team}):null]}),(o.proposition||o.description)&&/* @__PURE__ */W(S,{style:{fontSize:12,color:a.textMuted,marginTop:2},children:o.proposition||o.description}),o.commence_time&&/* @__PURE__ */W(S,{style:{fontSize:12,color:a.textMuted,marginTop:2},children:Jt(o.commence_time)})]}),
202
+ /* @__PURE__ */T(z,{style:xl.outcomeCol,children:[/* @__PURE__ */W(S,{style:[xl.outcomeLabel,{color:a.textMuted}],children:"Pick"}),null!=l?/* @__PURE__ */W(dt,{theme:r,size:"sm",value:"yes"===l?"yes":"no"}):/* @__PURE__ */W(S,{style:{fontSize:12,color:a.textMuted},children:"—"})]}),
203
+ /* @__PURE__ */T(z,{style:xl.outcomeCol,children:[/* @__PURE__ */W(S,{style:[xl.outcomeLabel,{color:a.textMuted}],children:"Result"}),/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:4,backgroundColor:g},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"700",color:f,textTransform:"uppercase"},children:u})})]})]},t)})]})}var xl=k.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"}});function kl({style:t}){const{theme:n,bodyFont:o,eventFilterActive:r,eventFilterLabel:i,clearEventFilter:l,gameCategory:a}=gi(),{width:c}=v(),s=c>=640,[d,h]=e.useState(!1);if(!r)return null;const u=n.colors,g=i??("racing"===a?"This race":"This event");/* @__PURE__ */
204
+ return T(z,{style:[Sl.container,s&&Sl.containerWide,{borderColor:`${u.primary}33`,backgroundColor:u.surface},t],children:[/* @__PURE__ */T(z,{style:Sl.textBlock,children:[
205
+ /* @__PURE__ */W(S,{style:[Sl.kicker,{color:u.primary,fontFamily:o}],children:"Event filter"}),
206
+ /* @__PURE__ */W(S,{style:[Sl.label,{color:u.text,fontFamily:o}],numberOfLines:1,children:g}),
207
+ /* @__PURE__ */W(S,{style:[Sl.hint,{color:u.textMuted,fontFamily:o}],children:"Only propositions from this event are shown."})]}),/* @__PURE__ */W(B,{onPress:l,...it(()=>h(!0),()=>h(!1)),style:[Sl.button,s&&Sl.buttonWide,{borderColor:`${u.primary}44`,backgroundColor:u.background,opacity:d?.9:1}],children:/* @__PURE__ */W(S,{style:[Sl.buttonText,{color:u.text,fontFamily:o}],children:"Show all events"})})]})}var Sl=k.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 Cl({onBack:t,title:n="Go back"}){const{theme:o}=gi(),r=o.colors,[i,l]=e.useState(!1);/* @__PURE__ */
208
+ return W(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,...it(()=>l(!0),()=>l(!1)),style:{padding:2,alignItems:"center",justifyContent:"center",borderRadius:999,transform:[{translateX:i?-2:0}]},children:/* @__PURE__ */W(A,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:i?r.text:r.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})}function Bl({onBack:t,label:n="Games"}){const{theme:o}=gi(),r=o.colors,[i,l]=e.useState(!1),a=i?r.primary:r.textMuted;/* @__PURE__ */
209
+ return T(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,activeOpacity:.7,...it(()=>l(!0),()=>l(!1)),style:{flexDirection:"row",alignItems:"center",gap:6,alignSelf:"flex-start",marginBottom:12,transform:[{translateX:i?-2:0}]},children:[/* @__PURE__ */W(A,{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:a,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})}),/* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:a},children:n})]})}function zl({onBack:t,hideActions:n,label:o,children:r}){const{theme:i}=gi(),l=i.colors,{width:a}=v(),c=a>=640,[s,d]=e.useState(!1);if(!t&&null==o&&!r)return null;const h=e=>/* @__PURE__ */W(S,{style:{fontSize:c?14:12,flexShrink:1,color:e},children:o});/* @__PURE__ */
210
+ return T(z,{style:{flexDirection:"row",alignItems:"center",gap:6,marginTop:2},children:[t&&(null!=o?/* @__PURE__ */T(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:"Go back",activeOpacity:.7,...it(()=>d(!0),()=>d(!1)),style:{flexDirection:"row",alignItems:"center",gap:6,minWidth:0,flexShrink:1,transform:[{translateX:s?-2:0}]},children:[/* @__PURE__ */W(A,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:s?l.text:l.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})}),h(s?l.text:l.textMuted)]}):/* @__PURE__ */W(Cl,{onBack:t})),!t&&null!=o&&h(l.textMuted),r]})}function vl({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,howToPlayMarkdown:i,selectedCategory:l,displayCategoryName:a}=gi(),c=n.colors,{width:s}=v(),d=s>=640,h=s>=768;/* @__PURE__ */
211
+ return T(z,{style:d&&Tl.headerWide,children:[/* @__PURE__ */T(z,{style:Tl.titleRow,children:[/* @__PURE__ */W(S,{style:[Tl.title,d&&Tl.titleWide,h&&Tl.titleDesktop,{color:se(n),fontFamily:o,flex:1}],children:"Choose your game"}),i?.trim()?/* @__PURE__ */W(z,{style:Tl.howToPlayWrap,children:/* @__PURE__ */W(kt,{content:i,title:"How to Play",colors:{text:c.text,textMuted:c.textMuted,border:c.border,background:c.background,backgroundAlt:c.backgroundAlt,primary:c.primary,primaryText:c.primaryText},bodyFont:r,headingFont:o})}):null]}),/* @__PURE__ */W(zl,{onBack:e,hideActions:t,label:l?a(l):void 0})]})}function Fl({onCancel:e,onSelectGame:t}){const{theme:n,screenSize:o}=gi(),r=n.colors;return e&&"mobile"!==o?/* @__PURE__ */W(z,{style:[Tl.footer],children:/* @__PURE__ */W(B,{onPress:e,style:[Tl.secondaryBtn,{backgroundColor:r.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[Tl.secondaryBtnText,{color:r.buttonSecondaryText}],children:"Cancel"})})}):null}function Wl({onSelectGame:t,onGameSetup:n,onRuleSetup:o,onGameSetBet:r,onPickYourDividend:i,onLadder:l,onMirror:a,onSafetyNet:c,onQuickPick:s,onCancel:d,hideTitle:h,hideActions:u,showPerfectPickSetup:g=!1,showTierFilter:f=!1}){const p=gi(),{theme:y,games:m,loading:b,error:w,selectedGame:x,selectedPropositionCount:k,handlePropositionCountChange:S,maxPayouts:C}=p;y.colors;const B=e.useRef(x);B.current=x;const{width:F}=v(),A=F>=640;/* @__PURE__ */
212
+ return T(z,{style:Tl.container,children:[!h&&/* @__PURE__ */W(z,{style:{marginBottom:A?24:16},children:/* @__PURE__ */W(vl,{onBack:d,hideActions:u})}),
213
+ /* @__PURE__ */W(kl,{}),
214
+ /* @__PURE__ */W(z,{style:Tl.content,children:/* @__PURE__ */W(ar,{games:m,selectedGame:x,onSelectGame:e=>{B.current=e,p.selectGame(e)},loading:b,error:w,theme:y,showTierFilter:f,selectedPropositionCount:k,onPropositionCountChange:S,onPropositionCountSelected:()=>{const e=B.current;if("rule_setup"===ri(e)&&li(e)&&!g)return p.goToSportSelection(),void t?.();const s=ri(e);if("quick_pick"===s||"selections"===s)return p.goToSportSelection(),void t?.();n?n(s):({game_set:r,pick_your_dividend:i,ladder:l,mirror:a,safety_net:c,rule_setup:o}[s]??o)?.()},onQuickPickGame:(e,t)=>{p.quickPickGame(e,t),s?.()},maxPayouts:C})})]})}var Tl=k.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},content:{flex:1},footer:{flexDirection:"row",alignItems:"center",paddingTop:16},secondaryBtn:{paddingHorizontal:20,paddingVertical:10,borderRadius:8},secondaryBtnText:{fontSize:14,fontWeight:"500"}});function Al({onBack:e,hideActions:t}={}){const{theme:n}=gi(),o=Ge(n),r=n.colors,{width:i}=v(),l=i>=640;/* @__PURE__ */
215
+ return T(z,{style:l&&Dl.headerWide,children:[/* @__PURE__ */W(S,{style:[Dl.sectionTitle,l&&Dl.sectionTitleWide,{color:r.primary,fontFamily:o}],children:"Pick a category"}),/* @__PURE__ */W(zl,{onBack:e,hideActions:t})]})}function Ll({onCancel:e}){const{theme:t,screenSize:n}=gi(),o=t.colors;return e&&"mobile"!==n?/* @__PURE__ */W(z,{style:Dl.footer,children:/* @__PURE__ */W(B,{onPress:e,style:[Dl.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[Dl.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null}function Rl({onSelectCategory:t,onCancel:n,hideTitle:o,hideActions:r,renderCategoryIcon:i,getCategoryTagline:l}){const{theme:a,propositionsForCategoryPicker:c,loading:s,setSelectedCategory:d,setSelectedSport:h,clearSelectedGame:u,displayCategoryName:g}=gi(),f=a.colors,p=be(a),y=Ne(a),{width:m}=v(),b=m>=640,w=m>=400,[x,k]=e.useState(null),[C,F]=e.useState(0),A=w?C>0?(C-(b?12:10))/2:"48%":"100%";on(c);const L=rn(c);return s?/* @__PURE__ */W(z,{style:Dl.container,children:/* @__PURE__ */W(Jn,{colors:ke(a),bodyFont:y,variant:"category",categoryCount:L.length>0?L.length:2})}):/* @__PURE__ */T(z,{style:Dl.container,children:[!o&&/* @__PURE__ */W(z,{style:Dl.titleWrap,children:/* @__PURE__ */W(Al,{onBack:n,hideActions:r})}),/* @__PURE__ */W(z,{style:Dl.content,children:/* @__PURE__ */W(z,{style:[Dl.grid,b&&Dl.gridWide],onLayout:e=>F(e.nativeEvent.layout.width),children:L.map(e=>{const n=l?.(e)??function(e){return Vt[e]??""}(e),o=x===e;/* @__PURE__ */
216
+ return T(B,{onPress:()=>{d(e),h(null),u(),t?.(e)},...it(()=>k(e),()=>k(t=>t===e?null:t)),style:[Dl.card,b&&Dl.cardWide,{width:A,backgroundColor:p,borderColor:o?f.primary:f.border},o&&Dl.cardHovered],activeOpacity:.85,children:[/* @__PURE__ */W(Ft,{label:g(e),category:e,icon:i?.(e),theme:a}),n?/* @__PURE__ */W(S,{style:[Dl.tagline,b&&Dl.taglineWide,{color:f.primary,fontFamily:y}],children:n}):null]},e)})})})]})}var Dl=k.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 Ml(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 Pl({name:e,renderTeamLogo:t,muted:n,headingFont:o,ink:r,wide:i}){if(!e)/* @__PURE__ */return W(S,{style:[Ol.teamName,{color:n,fontFamily:o}],children:"TBC"});const l=t?.(e);/* @__PURE__ */
217
+ return T(z,{style:Ol.teamMark,children:[null!=l?/* @__PURE__ */W(z,{style:Ol.teamLogo,children:l}):null,/* @__PURE__ */W(S,{style:[Ol.teamName,i&&Ol.teamNameWide,{color:r,fontFamily:o}],children:e})]})}function Hl({onSelectEvent:t}){const{theme:n,loading:o,sameGameMultiEvents:r,selectSameGameMultiEvent:i,renderTeamLogo:l,displaySportName:a}=gi(),c=n.colors,s=Ne(n),d=Ge(n),h=be(n),u=we(n),{width:g}=v(),f=g>=640,[p,y]=e.useState(null),[m,b]=e.useState(null);return o?/* @__PURE__ */W(z,{style:Ol.container,children:/* @__PURE__ */W(Jn,{colors:ke(n),bodyFont:s,variant:"event"})}):/* @__PURE__ */T(z,{style:Ol.container,accessibilityLabel:"Available fixtures",children:[/* @__PURE__ */W(S,{style:[Ol.intro,{color:c.textMuted,fontFamily:s}],children:"All picks in your multi must come from one game."}),0===r.length?/* @__PURE__ */W(z,{accessibilityRole:"text",accessibilityLiveRegion:"polite",style:[Ol.emptyState,{borderColor:c.border,backgroundColor:h}],children:/* @__PURE__ */W(S,{style:[Ol.emptyText,{color:c.textMuted,fontFamily:s}],children:"No fixtures with available propositions."})}):/* @__PURE__ */W(z,{style:[Ol.list,f&&Ol.listWide],children:r.map(e=>{const n=p===e.id,o=m===e.id;/* @__PURE__ */
218
+ return T(B,{accessibilityRole:"button",accessibilityLabel:`Select ${$n(e)}`,onPress:()=>{i(e.id),t?.(e.id)},activeOpacity:.85,...it(()=>y(e.id),()=>y(t=>t===e.id?null:t)),onFocus:()=>b(e.id),onBlur:()=>b(t=>t===e.id?null:t),style:[Ol.card,f&&Ol.cardWide,{borderColor:n||o?c.primary:c.border,backgroundColor:h},n&&Ol.cardHovered],children:[/* @__PURE__ */T(z,{style:Ol.cardMain,children:[/* @__PURE__ */T(z,{style:[Ol.matchup,f&&Ol.matchupWide,{backgroundColor:u}],children:[
219
+ /* @__PURE__ */W(Pl,{name:e.homeTeam,renderTeamLogo:l,muted:c.textMuted,headingFont:d,ink:c.text,wide:f}),
220
+ /* @__PURE__ */W(S,{style:[Ol.vs,{color:c.textMuted,fontFamily:d}],children:"vs"}),
221
+ /* @__PURE__ */W(Pl,{name:e.awayTeam,renderTeamLogo:l,muted:c.textMuted,headingFont:d,ink:c.text,wide:f})]}),/* @__PURE__ */T(S,{style:[Ol.meta,f&&Ol.metaWide,{color:c.textMuted,fontFamily:s}],children:[Ml(e.commenceTime)," · ",e.propositionCount," proposition",1===e.propositionCount?"":"s",e.league||e.sport?` · ${e.league?.toUpperCase()??a(e.sport)}`:""]})]}),/* @__PURE__ */W(z,{style:{flexShrink:0,transform:[{translateX:n?2:0}]},children:/* @__PURE__ */W(Bt,{size:22,color:c.textMuted})})]},e.id)})})]})}var Ol=k.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 Il({counts:e,onPick:t,onDoubleAction:n,colors:o,align:l="right",direction:s="down",menuShadow:d="0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}){const[h,g]=c(!1),[f,p]=c(!1),[y,b]=c(null),w=a(0),x=a(null),k=a(null),[C,v]=c(null),[A,L]=c(null),R="web"===m.OS,D=36+36*e.length+12,M="up"===s||f?"up":"down";i(()=>{if(!h||!R)return;const e=x.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.scrollX||window.pageXOffset||0,o=window.scrollY||window.pageYOffset||0;v({top:t.top+o,bottom:t.bottom+o,left:t.left+n,right:t.right+n,width:t.width});const r=window.innerHeight-t.bottom,i=t.top;p(r<D&&i>r)},[h,R,D]),r(()=>{if(!h)return b(null),void(R||p(!1));if(R){const e=e=>{const t=x.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||k.current&&k.current.contains(n)||g(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}const e=x.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=u.get("window").height-(t+o);p(r<D&&t>r),L({x:e,y:t,width:n,height:o})})},[h,R,D]);const P=/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:o.border},children:/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",color:o.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase"},children:"How many picks?"})}),e.map(e=>/* @__PURE__ */T(B,{onPress:()=>{t(e),g(!1)},accessibilityRole:"menuitem",...it(()=>b(e),()=>b(t=>t===e?null:t)),style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:1,borderTopColor:o.border,backgroundColor:y===e?o.backgroundAlt:"transparent"},children:[/* @__PURE__ */T(S,{style:{fontSize:14,fontWeight:"600",color:o.text},children:[e," picks"]}),/* @__PURE__ */W(z,{style:{backgroundColor:o.backgroundAlt,paddingHorizontal:6,paddingVertical:2,borderRadius:4},children:/* @__PURE__ */W(S,{style:{color:o.text,fontSize:10,fontWeight:"700",letterSpacing:.5},children:"QP"})})]},e))]});/* @__PURE__ */
217
222
  return T(z,{ref:x,style:{position:"relative",flexShrink:0},children:[
218
- /* @__PURE__ */W(er,{onPress:()=>{if(!n)return void g(e=>!e);const e=Date.now();if(e-w.current<280)return w.current=0,g(!1),void n();w.current=e,setTimeout(()=>{w.current&&Date.now()-w.current>=270&&(w.current=0,g(e=>!e))},290)}}),h&&L&&C&&"undefined"!=typeof document&&G(/* @__PURE__ */W("div",{ref:k,role:"menu",style:{position:"absolute",top:"up"===M?void 0:C.bottom+6,..."up"===M?{top:C.top-6,transform:"translateY(-100%)"}:null,left:"left"===l?C.left:void 0,..."right"===l?{left:C.right,transform:"up"===M?"translate(-100%, -100%)":"translateX(-100%)"}:null,zIndex:20,backgroundColor:o.background,border:`1px solid ${o.border}`,borderRadius:8,minWidth:160,boxShadow:d,overflow:"hidden"},children:P}),document.body),
219
- /* @__PURE__ */W(jn,{visible:h&&!L,anchor:A,onClose:()=>g(!1),flipUp:"up"===M,align:l,children:/* @__PURE__ */W(z,{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:P})})]})}var Bl="Your stake";function zl(e,t){const n=e?.top_payouts?.find(e=>Number(e.proposition_count)===t);if(!n)return 0;const o=n.bet_amount&&n.bet_amount>0?n.bet_amount:20,i=Number(n.net_payout);return Number.isFinite(i)?i/o*20:0}function Fl({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",title:i,sportBaseKey:r}){const l=qt(e,r,t),a=function(e){return e.length<=3?92:4===e.length?72:56}(l);/* @__PURE__ */
220
- return T(A,{viewBox:"0 0 360 360",width:n,height:n,accessibilityLabel:i??`${l} button`,children:[
221
- /* @__PURE__ */W(I,{x:2,y:2,width:356,height:356,rx:78,fill:"#DDD9D2",stroke:Yt,strokeWidth:4}),
222
- /* @__PURE__ */W(I,{x:50,y:10,width:260,height:260,rx:52,fill:Yt,opacity:.3}),
223
- /* @__PURE__ */W(I,{x:50,y:35,width:260,height:260,rx:52,fill:Yt,opacity:.55}),
224
- /* @__PURE__ */W(I,{x:50,y:60,width:260,height:260,rx:52,fill:Yt}),
225
- /* @__PURE__ */W(N,{x:180,y:220,fontFamily:"Manrope, Poppins, sans-serif",fontSize:a,letterSpacing:-3,textAnchor:"middle",fontWeight:"800",fill:"#DFFF1A",children:l}),o&&/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(N,{x:180,y:345,fontFamily:"Manrope, Poppins, sans-serif",fontSize:24,letterSpacing:-.5,textAnchor:"middle",fontWeight:"700",fill:Yt,children:o}),/* @__PURE__ */W(N,{x:262,y:333,fontFamily:"Manrope, Poppins, sans-serif",fontSize:10,fontWeight:"600",fill:Yt,children:"TM"})]})]})}var vl="yesno:favourite-sport",Wl=null;function Tl(){try{return globalThis.localStorage??null}catch{return null}}function Al({label:t="Pick your sport",sublabel:n,renderSportLogo:o,style:i}){const{theme:r,sportOptions:l,sportSummaries:a,selectedSport:c,setSelectedSport:s,sportBaseKey:d,displaySportName:h,selections:u,toggleSelection:g,enableSportFavourites:f}=$i(),p=r.colors,y=be(r),m=Ne(r),b=Ge(r),w=se(r),x=fe(r),[k,C]=e.useState(null);if(e.useEffect(()=>{C(f?function(){try{const e=Tl()?.getItem(vl);if(e)return e}catch{}return Wl}():null)},[f]),l.length<2)return null;const F=k?[...l].sort((e,t)=>Number(t.key===k)-Number(e.key===k)):l,v=void 0===n?f?"Tap to select. Star your favourite to pin it up front.":"Tap to select.":n;/* @__PURE__ */
226
- return T(z,{style:[Ll.wrap,i],children:[t?/* @__PURE__ */W(S,{style:[Ll.label,{color:w,fontFamily:b}],children:t}):null,v?/* @__PURE__ */W(S,{style:[Ll.hint,{color:p.textMuted,fontFamily:m}],children:v}):null,
227
- /* @__PURE__ */W(Rt,{theme:r,contentContainerStyle:Ll.shelf,children:F.map(({key:e,count:t})=>{const n=a.find(t=>t.key===e),i=n?.games_today??0,l=c===e,F=k===e,v=n?.label??h(e);/* @__PURE__ */
228
- return T(z,{style:Ll.slot,children:[/* @__PURE__ */T(B,{accessibilityRole:"button",accessibilityState:{selected:l},activeOpacity:.85,onPress:()=>(e=>{if(e!==c){for(const e of Object.keys(u)){const t=Number(e);g(t,u[t])}s(e)}})(e),style:[Ll.card,Rl(r),{backgroundColor:y,borderColor:l?p.primary:p.border,borderWidth:l?2:1,paddingTop:(f?26:12)-(l?1:0),paddingBottom:l?7:8}],children:[
229
- /* @__PURE__ */T(z,{style:Ll.tile,children:[o?o(e):/* @__PURE__ */W(Fl,{gameKey:e,size:40,footer:null,sportBaseKey:d,title:`${v} button`}),i>0&&/* @__PURE__ */W(z,{style:[Ll.liveDot,{backgroundColor:p.success,borderColor:y}]})]}),
230
- /* @__PURE__ */W(S,{numberOfLines:2,style:[Ll.name,{color:l?w:p.text,fontFamily:b}],children:v}),
231
- /* @__PURE__ */W(S,{numberOfLines:1,style:[Ll.caption,{color:l?p.primary:ne(p.textMuted,.9),fontFamily:m}],children:Kt(i,t).toUpperCase()})]}),f&&/* @__PURE__ */W(B,{accessibilityRole:"button",accessibilityState:{selected:F},accessibilityLabel:F?`Unpin ${v}`:`Pin ${v} to the front`,activeOpacity:.7,onPress:()=>(e=>{const t=k===e?null:e;C(t),function(e){Wl=e;try{e?Tl()?.setItem(vl,e):Tl()?.removeItem(vl)}catch{}}(t)})(e),style:Ll.starHit,children:/* @__PURE__ */W(z,{style:[Ll.star,{backgroundColor:F?ne(x,.22):y,borderColor:F?x:p.border}],children:/* @__PURE__ */W(At,{size:12,filled:F,color:F?w:ne(p.textMuted,.6)})})})]},e)})})]})}function Rl(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}var Ll=k.create({wrap:{minWidth:0},label:{paddingLeft:2,fontSize:14,fontWeight:"800",lineHeight:18,letterSpacing:-.2},hint:{marginBottom:6,paddingLeft:2,fontSize:12,lineHeight:16},shelf:{alignItems:"stretch",gap:10,paddingHorizontal:2,paddingTop:4,paddingBottom:10},slot:{position:"relative",width:88},card:{width:88,minHeight:44,borderRadius:16,paddingHorizontal:6,alignItems:"center",gap:6},tile:{position:"relative"},liveDot:{position:"absolute",top:-2,right:-2,width:10,height:10,borderRadius:5,borderWidth:2},name:{fontSize:11,fontWeight:"800",lineHeight:13,letterSpacing:-.2,textAlign:"center"},caption:{fontSize:9,fontWeight:"700",letterSpacing:.9,textAlign:"center"},starHit:{position:"absolute",left:0,top:0,width:32,height:32,alignItems:"center",justifyContent:"center",zIndex:1},star:{width:20,height:20,borderRadius:10,borderWidth:1,alignItems:"center",justifyContent:"center"}});function Dl(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 Ml({iconUrl:e,size:t=56}){const{theme:n}=$i(),o=n.colors,i=n.brand?.chip??o.primary,r=n.brand?.icon??o.primaryText,l=pe(i,fe(n),r);/* @__PURE__ */
232
- return W(z,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:i,borderWidth:1,borderColor:Dl(r,.16),alignItems:"center",justifyContent:"center",shadowColor:i,shadowOpacity:.45,shadowRadius:9,shadowOffset:{width:0,height:4},elevation:2},children:/* @__PURE__ */W(On,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:r,accentColor:l})})}function Pl({eyebrow:e,iconUrl:t,gameName:n,tagline:o,style:i}){const{theme:r,screenSize:l}=$i(),a=r.colors,c=Ge(r),s="mobile"===l,{width:d}=F(),h=d>=640;/* @__PURE__ */
233
- return T(z,{style:[Hl.block,h&&Hl.blockWide,i],children:[e&&h?/* @__PURE__ */W(S,{style:[Hl.eyebrow,{color:a.primary,fontFamily:c}],children:e.toUpperCase()}):null,
234
- /* @__PURE__ */W(el,{iconUrl:t,gameName:n,height:s?20:32,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:r.brand?.accent,compact:s}),o?/* @__PURE__ */W(S,{style:[Hl.tagline,h&&Hl.taglineWide,{color:a.textMuted}],children:o}):null]})}var Hl=k.create({block:{alignItems:"center",marginBottom:16},blockWide:{marginBottom:28},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:20,textAlign:"center"},tagline:{marginTop:8,fontSize:13,lineHeight:18,textAlign:"center",maxWidth:384},taglineWide:{marginTop:12,fontSize:15,lineHeight:24}});function Ol({ariaLabel:e,children:t}){const{width:n}=F();return n>=640?/* @__PURE__ */W(z,{accessibilityRole:"radiogroup",accessibilityLabel:e,style:El.grid,children:t}):/* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,accessibilityRole:"radiogroup",accessibilityLabel:e,contentContainerStyle:El.rail,children:t})}function Il(e,t="21%"){return e?{flexGrow:1,flexBasis:t,minWidth:0}:{width:124,flexGrow:0,flexShrink:0}}var El=k.create({grid:{flexDirection:"row",flexWrap:"wrap",gap:8},rail:{flexDirection:"row",gap:8,paddingBottom:4}});function jl({legs:e,prizeBall:t=!0}){const{theme:n}=$i(),o=n.colors.primary,i=fe(n);/* @__PURE__ */
235
- return T(z,{style:{flexDirection:"row",alignItems:"center"},children:[Array.from({length:e}).map((e,t)=>/* @__PURE__ */W(z,{style:{width:5,height:5,borderRadius:1.5,backgroundColor:o,opacity:.85,marginRight:3}},t)),t?/* @__PURE__ */W(z,{style:{width:7,height:7,borderRadius:999,backgroundColor:i,marginLeft:2}}):null]})}function Nl({tile:e,label:t,stat:n,detail:o,onSelect:i,children:r}){const{theme:l}=$i(),a=l.colors,s=Ge(l),d=se(l),h=a.primary,u=a.selectionCard??a.backgroundAlt,{width:g}=F(),f=g>=640,[p,y]=c(!1);/* @__PURE__ */
236
- return T(z,{...rt(()=>y(!0),()=>y(!1)),style:[Gl.card,f&&Gl.cardWide,{backgroundColor:u,borderColor:p?h:a.border,shadowColor:p?h:"#000",shadowOpacity:p?.28:.08,shadowRadius:p?14:10,shadowOffset:{width:0,height:p?12:8},elevation:p?4:1,transform:[{translateY:p?-2:0}]}],children:[/* @__PURE__ */T(B,{onPress:i,activeOpacity:.85,style:[Gl.cardMain,f&&Gl.cardMainWide],children:[e,
237
- /* @__PURE__ */T(z,{style:[Gl.cardText,f&&Gl.cardTextWide],children:[/* @__PURE__ */T(z,{style:Gl.titleRow,children:[/* @__PURE__ */W(S,{style:[Gl.cardTitle,f&&Gl.cardTitleWide,{color:d,fontFamily:s}],children:t}),n?/* @__PURE__ */W(z,{style:[Gl.statChip,{backgroundColor:Dl(h,.12)}],children:/* @__PURE__ */W(S,{style:[Gl.statChipText,{color:h}],children:n.toUpperCase()})}):null]}),o&&o.length>0?/* @__PURE__ */W(z,{style:Gl.detailBlock,children:(f?o:o.slice(0,1)).map(e=>/* @__PURE__ */W(S,{style:[Gl.detailLine,f&&Gl.detailLineWide,{color:a.textMuted}],children:e},e))}):null]}),
238
- /* @__PURE__ */W(z,{style:[Gl.chevron,{transform:[{translateX:p?2:0}]}],children:/* @__PURE__ */W(A,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:h,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]}),r?/* @__PURE__ */W(z,{style:[Gl.childrenWrap,{borderTopColor:Dl(d,.08)}],children:r}):null]})}var Gl=k.create({card:{flexGrow:1,borderWidth:2,borderRadius:24,paddingHorizontal:14,paddingVertical:14},cardWide:{paddingHorizontal:20,paddingVertical:20},cardMain:{flexDirection:"row",alignItems:"flex-start",gap:14,flexGrow:1},cardMainWide:{gap:16},cardText:{flex:1,minWidth:0,gap:4},cardTextWide:{gap:6},titleRow:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4},cardTitle:{fontSize:16,fontWeight:"800",letterSpacing:-.4},cardTitleWide:{fontSize:20,letterSpacing:-.5},statChip:{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 Yl({style:e}){/* @__PURE__ */
239
- return W(Al,{style:[{marginBottom:16},e]})}function Vl({onChange:e}){const{theme:t,selectedGame:n,selectedSport:o,sportSummaries:i,displaySportName:r,headingFont:l}=$i(),a=t.colors;if(!n)return null;const c=o?i.find(e=>e.key===o)?.label??r(o):null;/* @__PURE__ */
240
- return T(lt,{theme:t,level:"raised",padding:"sm",radius:"lg",style:Ul.card,children:[
241
- /* @__PURE__ */W(Ml,{iconUrl:Ze(n),size:44}),
242
- /* @__PURE__ */T(z,{style:Ul.info,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[Ul.name,{color:se(t),fontFamily:l}],children:n.game_name}),c?/* @__PURE__ */W(S,{numberOfLines:1,style:[Ul.sport,{color:a.textMuted}],children:c}):null]}),
243
- /* @__PURE__ */W(at,{theme:t,variant:"ghost",size:"sm",radius:"pill",onPress:e,children:"Change"})]})}var Ul=k.create({card:{marginBottom:16,flexDirection:"row",alignItems:"center",gap:12},info:{flex:1,minWidth:0},name:{fontSize:15,fontWeight:"700",lineHeight:18},sport:{fontSize:13,lineHeight:16}});function ql({onBack:e,onNext:t,hideActions:n}={}){const{theme:o,headingFont:i,bodyFont:r,selectedGame:l,propositions:a,selections:c,toggleSelection:s,selectedPropositionCount:d,disableQuickPick:h,answeredCount:u,goToConfirmation:g,selectedEventId:f,sameGameMultiEvents:p,selectSameGameMultiEvent:y,selectedRule:m,howToPlayMarkdown:b,maxPayouts:w}=$i(),x=o.colors,k=ot(l),C=Uo(l??{},l?w?.[l.id]:void 0),{width:B}=F(),v=B>=640,A=no(l)&&!f,R=p.find(e=>e.id===f),L=l?dn(l,d,m):{min:0,max:0},D=L.min,M=no(l)&&f?Math.min(L.max,a.length):L.max,P=D>0&&D===M,H=!(l?.allowed_propositions&&l.allowed_propositions.length>0)&&D>0&&M>D,O=P?M:M||a.length,I=e=>{const t=Math.max(0,Math.min(e??O,a.length));for(const r of Object.keys(c)){const e=Number(r);s(e,c[e])}const n=[...a].sort(()=>Math.random()-.5).slice(0,t),o=[],i=[];for(const r of n)Math.random()<.5?o.push(r):i.push(r);for(const r of o)s(r.id,"yes");for(const r of i)s(r.id,"no")},E=!h&&a.length>0,j=H?Array.from({length:M-D+1},(e,t)=>D+t).filter(e=>e<=a.length):[],N=u>0?u:D||O;/* @__PURE__ */
244
- return T(z,{style:[$l.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */T(z,{children:[/* @__PURE__ */W(S,{style:[$l.title,{fontSize:v?24:20,color:se(o),fontFamily:i}],children:A?"Choose a Game":"Select Propositions"}),l&&/* @__PURE__ */W(dl,{onBack:f?()=>y(null):e,hideActions:n,label:R?eo(R):l.game_name,children:k||b?.trim()?/* @__PURE__ */W(St,{variant:"icon",content:b,panel:k,theme:o,title:`${l.game_name} — How to Play`,extra:/* @__PURE__ */W(qo,{tiers:C.hasGenericDividends?C.tiers:[],modes:C.modes,pydDividends:C.pydDividends,minBet:C.minBet,maxBet:C.maxBet,colors:x,bodyFont:r,headingFont:i}),colors:{text:x.text,textMuted:x.textMuted,border:x.border,background:x.background,backgroundAlt:x.backgroundAlt,primary:x.primary,primaryText:x.primaryText},bodyFont:r,headingFont:i}):null})]}),E&&(j.length>1?/* @__PURE__ */W(Cl,{counts:j,onPick:e=>{I(e),g(),t?.()},onDoubleAction:()=>{I(N),g(),t?.()},colors:x,menuShadow:ce(o)}):/* @__PURE__ */W(z,{style:{flexShrink:0},children:/* @__PURE__ */W(er,{onPress:()=>{I(),g(),t?.()}})}))]})}function Kl({number:e,color:t,size:n=34,label:o,onSelect:i}){const r=(e,o)=>({position:"absolute",left:e,top:.4*e,width:n,height:n,borderRadius:.26*n,backgroundColor:t,opacity:o});/* @__PURE__ */
245
- return W(ut,{children:/* @__PURE__ */T(B,{accessibilityRole:"button",accessibilityLabel:o,onPress:i,activeOpacity:.8,style:{position:"relative",width:n+.2*n,height:1.3*n},children:[
246
- /* @__PURE__ */W(z,{style:r(.44*n,.3)}),
247
- /* @__PURE__ */W(z,{style:r(.22*n,.55)}),
248
- /* @__PURE__ */W(z,{style:{position:"absolute",left:0,top:0,width:n,height:n,borderRadius:.26*n,backgroundColor:t,alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(S,{style:{color:"#fff",fontSize:n*(e>9?.42:.5),fontWeight:"800"},children:String(e)})})]})})}function Zl({onNext:t,onBack:n,hideButtons:o=!1}){const{theme:i,headingFont:r,selectedGame:l,selectedPropositionCount:a,selectedEventId:c,propositions:s,goToConfirmation:d,selectedRule:h,maxPayouts:u,betAmount:g,setBetAmount:f,selections:p,gamePrice:y}=$i(),m=i.colors,b=l?dn(l,a,h):{min:0,max:0},w=b.min,k=no(l)&&c?Math.min(b.max,s.length):b.max,B=e.useRef(!1);e.useEffect(()=>{B.current=!1},[l?.id]),e.useEffect(()=>{g<=0&&!B.current&&f(Math.max(10,y))},[g,y,f]);const F=e.useRef([]);F.current=function(e,t){const n=Object.keys(t).map(Number),o=new Set(n),i=e.filter(e=>o.has(e)),r=n.filter(e=>!i.includes(e)).sort((e,t)=>e-t);return 0===r.length&&i.length===e.length?e:[...i,...r]}(F.current,p);const v=function({selections:e,order:t,minReq:n,maxReq:o,stake:i,payout20:r=0}){const l=[];for(const h of t){const t=e[h];t&&l.push({id:h,number:l.length+1,side:t})}const a=l.length,c=a>=n,s=Math.max(0,n-a),d=c?r*(i/20):0;return{legs:l,count:a,dividend:d,dividendText:$t(d),ctaLabel:c?`Continue with ${a} ›`:0===a?`Select at least ${n}`:`Add ${s} more to continue`,ctaDisabled:!c,atMax:o>0&&a>=o}}({selections:p,order:F.current,minReq:w,maxReq:k,stake:g,payout20:l?zl(u?.[l.id],F.current.length):0}),A=ue(i),R=ge(i),L=m.primaryText,D=pe(m.primary,fe(i),m.primaryText),M={fontSize:10,fontWeight:"700",letterSpacing:.8,textTransform:"uppercase"},P=Ki(l),[H,O]=e.useState(null),I=v.legs.find(e=>e.id===H)??null,E=I?s.find(e=>e.id===I.id)?.description??s.find(e=>e.id===I.id)?.proposition??"":"";/* @__PURE__ */
223
+ /* @__PURE__ */W(pi,{onPress:()=>{if(!n)return void g(e=>!e);const e=Date.now();if(e-w.current<280)return w.current=0,g(!1),void n();w.current=e,setTimeout(()=>{w.current&&Date.now()-w.current>=270&&(w.current=0,g(e=>!e))},290)}}),h&&R&&C&&"undefined"!=typeof document&&G(/* @__PURE__ */W("div",{ref:k,role:"menu",style:{position:"absolute",top:"up"===M?void 0:C.bottom+6,..."up"===M?{top:C.top-6,transform:"translateY(-100%)"}:null,left:"left"===l?C.left:void 0,..."right"===l?{left:C.right,transform:"up"===M?"translate(-100%, -100%)":"translateX(-100%)"}:null,zIndex:20,backgroundColor:o.background,border:`1px solid ${o.border}`,borderRadius:8,minWidth:160,boxShadow:d,overflow:"hidden"},children:P}),document.body),
224
+ /* @__PURE__ */W(In,{visible:h&&!R,anchor:A,onClose:()=>g(!1),flipUp:"up"===M,align:l,children:/* @__PURE__ */W(z,{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:P})})]})}var El="Your stake";function jl(e,t){const n=e?.top_payouts?.find(e=>Number(e.proposition_count)===t);if(!n)return 0;const o=n.bet_amount&&n.bet_amount>0?n.bet_amount:20,r=Number(n.net_payout);return Number.isFinite(r)?r/o*20:0}function Nl({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",title:r,sportBaseKey:i}){const l=Ut(e,i,t),a=function(e){return e.length<=3?92:4===e.length?72:56}(l);/* @__PURE__ */
225
+ return T(A,{viewBox:"0 0 360 360",width:n,height:n,accessibilityLabel:r??`${l} button`,children:[
226
+ /* @__PURE__ */W(I,{x:2,y:2,width:356,height:356,rx:78,fill:"#DDD9D2",stroke:Gt,strokeWidth:4}),
227
+ /* @__PURE__ */W(I,{x:50,y:10,width:260,height:260,rx:52,fill:Gt,opacity:.3}),
228
+ /* @__PURE__ */W(I,{x:50,y:35,width:260,height:260,rx:52,fill:Gt,opacity:.55}),
229
+ /* @__PURE__ */W(I,{x:50,y:60,width:260,height:260,rx:52,fill:Gt}),
230
+ /* @__PURE__ */W(N,{x:180,y:220,fontFamily:"Manrope, Poppins, sans-serif",fontSize:a,letterSpacing:-3,textAnchor:"middle",fontWeight:"800",fill:"#DFFF1A",children:l}),o&&/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(N,{x:180,y:345,fontFamily:"Manrope, Poppins, sans-serif",fontSize:24,letterSpacing:-.5,textAnchor:"middle",fontWeight:"700",fill:Gt,children:o}),/* @__PURE__ */W(N,{x:262,y:333,fontFamily:"Manrope, Poppins, sans-serif",fontSize:10,fontWeight:"600",fill:Gt,children:"TM"})]})]})}var Gl="yesno:favourite-sport",Yl=null;function Vl(){try{return globalThis.localStorage??null}catch{return null}}function Ul({label:t="Pick your sport",sublabel:n,renderSportLogo:o,style:r}){const{theme:i,sportOptions:l,sportSummaries:a,selectedSport:c,setSelectedSport:s,sportBaseKey:d,displaySportName:h,selections:u,toggleSelection:g,enableSportFavourites:f}=gi(),p=i.colors,y=be(i),m=Ne(i),b=Ge(i),w=se(i),x=fe(i),[k,C]=e.useState(null);if(e.useEffect(()=>{C(f?function(){try{const e=Vl()?.getItem(Gl);if(e)return e}catch{}return Yl}():null)},[f]),l.length<2)return null;const v=k?[...l].sort((e,t)=>Number(t.key===k)-Number(e.key===k)):l,F=void 0===n?f?"Tap to select. Star your favourite to pin it up front.":"Tap to select.":n;/* @__PURE__ */
231
+ return T(z,{style:[Kl.wrap,r],children:[t?/* @__PURE__ */W(S,{style:[Kl.label,{color:w,fontFamily:b}],children:t}):null,F?/* @__PURE__ */W(S,{style:[Kl.hint,{color:p.textMuted,fontFamily:m}],children:F}):null,
232
+ /* @__PURE__ */W(At,{theme:i,contentContainerStyle:Kl.shelf,children:v.map(({key:e})=>{const t=a.find(t=>t.key===e),n=t?.games_today??0,r=c===e,l=k===e,m=t?.label??h(e);/* @__PURE__ */
233
+ return T(z,{style:Kl.slot,children:[/* @__PURE__ */T(B,{accessibilityRole:"button",accessibilityState:{selected:r},activeOpacity:.85,onPress:()=>(e=>{if(e!==c){for(const e of Object.keys(u)){const t=Number(e);g(t,u[t])}s(e)}})(e),style:[Kl.card,ql(i),{backgroundColor:y,borderColor:r?p.primary:p.border,borderWidth:r?2:1,paddingTop:(f?26:12)-(r?1:0),paddingBottom:r?7:8}],children:[/* @__PURE__ */T(z,{style:Kl.tile,children:[o?o(e):/* @__PURE__ */W(Nl,{gameKey:e,size:40,footer:null,sportBaseKey:d,title:`${m} button`}),n>0&&/* @__PURE__ */W(z,{style:[Kl.liveDot,{backgroundColor:p.success,borderColor:y}]})]}),/* @__PURE__ */W(S,{numberOfLines:2,style:[Kl.name,{color:r?w:p.text,fontFamily:b}],children:m})]}),f&&/* @__PURE__ */W(B,{accessibilityRole:"button",accessibilityState:{selected:l},accessibilityLabel:l?`Unpin ${m}`:`Pin ${m} to the front`,activeOpacity:.7,onPress:()=>(e=>{const t=k===e?null:e;C(t),function(e){Yl=e;try{e?Vl()?.setItem(Gl,e):Vl()?.removeItem(Gl)}catch{}}(t)})(e),style:Kl.starHit,children:/* @__PURE__ */W(z,{style:[Kl.star,{backgroundColor:l?ne(x,.22):y,borderColor:l?x:p.border}],children:/* @__PURE__ */W(Tt,{size:12,filled:l,color:l?w:ne(p.textMuted,.6)})})})]},e)})})]})}function ql(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}var Kl=k.create({wrap:{minWidth:0},label:{paddingLeft:2,fontSize:14,fontWeight:"800",lineHeight:18,letterSpacing:-.2},hint:{marginBottom:6,paddingLeft:2,fontSize:12,lineHeight:16},shelf:{alignItems:"stretch",gap:10,paddingHorizontal:2,paddingTop:4,paddingBottom:10},slot:{position:"relative",width:88},card:{width:88,minHeight:44,borderRadius:16,paddingHorizontal:6,alignItems:"center",gap:6},tile:{position:"relative"},liveDot:{position:"absolute",top:-2,right:-2,width:10,height:10,borderRadius:5,borderWidth:2},name:{fontSize:11,fontWeight:"800",lineHeight:13,letterSpacing:-.2,textAlign:"center"},starHit:{position:"absolute",left:0,top:0,width:32,height:32,alignItems:"center",justifyContent:"center",zIndex:1},star:{width:20,height:20,borderRadius:10,borderWidth:1,alignItems:"center",justifyContent:"center"}});function Zl(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 Xl({iconUrl:e,size:t=56}){const{theme:n}=gi(),o=n.colors,r=n.brand?.chip??o.primary,i=n.brand?.icon??o.primaryText,l=pe(r,fe(n),i);/* @__PURE__ */
234
+ return W(z,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:r,borderWidth:1,borderColor:Zl(i,.16),alignItems:"center",justifyContent:"center",shadowColor:r,shadowOpacity:.45,shadowRadius:9,shadowOffset:{width:0,height:4},elevation:2},children:/* @__PURE__ */W(Pn,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:i,accentColor:l})})}function Ql({eyebrow:e,iconUrl:t,gameName:n,tagline:o,style:r}){const{theme:i,screenSize:l}=gi(),a=i.colors,c=Ge(i),s="mobile"===l,{width:d}=v(),h=d>=640;/* @__PURE__ */
235
+ return T(z,{style:[Jl.block,h&&Jl.blockWide,r],children:[e&&h?/* @__PURE__ */W(S,{style:[Jl.eyebrow,{color:a.primary,fontFamily:c}],children:e.toUpperCase()}):null,
236
+ /* @__PURE__ */W(pl,{iconUrl:t,gameName:n,height:s?20:32,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:i.brand?.accent,compact:s}),o?/* @__PURE__ */W(S,{style:[Jl.tagline,h&&Jl.taglineWide,{color:a.textMuted}],children:o}):null]})}var Jl=k.create({block:{alignItems:"center",marginBottom:16},blockWide:{marginBottom:28},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:20,textAlign:"center"},tagline:{marginTop:8,fontSize:13,lineHeight:18,textAlign:"center",maxWidth:384},taglineWide:{marginTop:12,fontSize:15,lineHeight:24}});function $l({ariaLabel:e,children:t}){const{width:n}=v();return n>=640?/* @__PURE__ */W(z,{accessibilityRole:"radiogroup",accessibilityLabel:e,style:ea.grid,children:t}):/* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,accessibilityRole:"radiogroup",accessibilityLabel:e,contentContainerStyle:ea.rail,children:t})}function _l(e,t="21%"){return e?{flexGrow:1,flexBasis:t,minWidth:0}:{width:124,flexGrow:0,flexShrink:0}}var ea=k.create({grid:{flexDirection:"row",flexWrap:"wrap",gap:8},rail:{flexDirection:"row",gap:8,paddingBottom:4}});function ta({legs:e,prizeBall:t=!0}){const{theme:n}=gi(),o=n.colors.primary,r=fe(n);/* @__PURE__ */
237
+ return T(z,{style:{flexDirection:"row",alignItems:"center"},children:[Array.from({length:e}).map((e,t)=>/* @__PURE__ */W(z,{style:{width:5,height:5,borderRadius:1.5,backgroundColor:o,opacity:.85,marginRight:3}},t)),t?/* @__PURE__ */W(z,{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}}):null]})}function na({tile:e,label:t,stat:n,detail:o,onSelect:r,children:i}){const{theme:l}=gi(),a=l.colors,s=Ge(l),d=se(l),h=a.primary,u=a.selectionCard??a.backgroundAlt,{width:g}=v(),f=g>=640,[p,y]=c(!1);/* @__PURE__ */
238
+ return T(z,{...it(()=>y(!0),()=>y(!1)),style:[oa.card,f&&oa.cardWide,{backgroundColor:u,borderColor:p?h:a.border,shadowColor:p?h:"#000",shadowOpacity:p?.28:.08,shadowRadius:p?14:10,shadowOffset:{width:0,height:p?12:8},elevation:p?4:1,transform:[{translateY:p?-2:0}]}],children:[/* @__PURE__ */T(B,{onPress:r,activeOpacity:.85,style:[oa.cardMain,f&&oa.cardMainWide],children:[e,
239
+ /* @__PURE__ */T(z,{style:[oa.cardText,f&&oa.cardTextWide],children:[/* @__PURE__ */T(z,{style:oa.titleRow,children:[/* @__PURE__ */W(S,{style:[oa.cardTitle,f&&oa.cardTitleWide,{color:d,fontFamily:s}],children:t}),n?/* @__PURE__ */W(z,{style:[oa.statChip,{backgroundColor:Zl(h,.12)}],children:/* @__PURE__ */W(S,{style:[oa.statChipText,{color:h}],children:n.toUpperCase()})}):null]}),o&&o.length>0?/* @__PURE__ */W(z,{style:oa.detailBlock,children:(f?o:o.slice(0,1)).map(e=>/* @__PURE__ */W(S,{style:[oa.detailLine,f&&oa.detailLineWide,{color:a.textMuted}],children:e},e))}):null]}),
240
+ /* @__PURE__ */W(z,{style:[oa.chevron,{transform:[{translateX:p?2:0}]}],children:/* @__PURE__ */W(A,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:h,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]}),i?/* @__PURE__ */W(z,{style:[oa.childrenWrap,{borderTopColor:Zl(d,.08)}],children:i}):null]})}var oa=k.create({card:{flexGrow:1,borderWidth:2,borderRadius:24,paddingHorizontal:14,paddingVertical:14},cardWide:{paddingHorizontal:20,paddingVertical:20},cardMain:{flexDirection:"row",alignItems:"flex-start",gap:14,flexGrow:1},cardMainWide:{gap:16},cardText:{flex:1,minWidth:0,gap:4},cardTextWide:{gap:6},titleRow:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4},cardTitle:{fontSize:16,fontWeight:"800",letterSpacing:-.4},cardTitleWide:{fontSize:20,letterSpacing:-.5},statChip:{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 ra({style:e}){/* @__PURE__ */
241
+ return W(Ul,{style:[{marginBottom:16},e]})}function ia({onBack:e,onNext:t,hideActions:n}={}){const{theme:o,headingFont:r,bodyFont:i,selectedGame:l,propositions:a,selections:c,toggleSelection:s,selectedPropositionCount:d,disableQuickPick:h,answeredCount:u,goToConfirmation:g,selectedEventId:f,sameGameMultiEvents:p,selectSameGameMultiEvent:y,selectedRule:m,howToPlayMarkdown:b,maxPayouts:w}=gi(),x=o.colors,k=ot(l),C=er(l??{},l?w?.[l.id]:void 0),{width:B}=v(),F=B>=640,A=eo(l)&&!f,L=p.find(e=>e.id===f),R=l?cn(l,d,m):{min:0,max:0},D=R.min,M=eo(l)&&f?Math.min(R.max,a.length):R.max,P=D>0&&D===M,H=!(l?.allowed_propositions&&l.allowed_propositions.length>0)&&D>0&&M>D,O=P?M:M||a.length,I=e=>{const t=Math.max(0,Math.min(e??O,a.length));for(const i of Object.keys(c)){const e=Number(i);s(e,c[e])}const n=[...a].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)s(i.id,"yes");for(const i of r)s(i.id,"no")},E=!h&&a.length>0,j=H?Array.from({length:M-D+1},(e,t)=>D+t).filter(e=>e<=a.length):[],N=u>0?u:D||O;/* @__PURE__ */
242
+ return T(z,{style:[ha.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */T(z,{children:[/* @__PURE__ */W(S,{style:[ha.title,{fontSize:F?24:20,color:se(o),fontFamily:r}],children:A?"Choose a Game":"Select Propositions"}),l&&/* @__PURE__ */W(zl,{onBack:f?()=>y(null):e,hideActions:n,label:L?$n(L):l.game_name,children:k||b?.trim()?/* @__PURE__ */W(kt,{variant:"icon",content:b,panel:k,theme:o,title:`${l.game_name} — How to Play`,extra:/* @__PURE__ */W(tr,{tiers:C.hasGenericDividends?C.tiers:[],modes:C.modes,pydDividends:C.pydDividends,minBet:C.minBet,maxBet:C.maxBet,colors:x,bodyFont:i,headingFont:r}),colors:{text:x.text,textMuted:x.textMuted,border:x.border,background:x.background,backgroundAlt:x.backgroundAlt,primary:x.primary,primaryText:x.primaryText},bodyFont:i,headingFont:r}):null})]}),E&&(j.length>1?/* @__PURE__ */W(Il,{counts:j,onPick:e=>{I(e),g(),t?.()},onDoubleAction:()=>{I(N),g(),t?.()},colors:x,menuShadow:ce(o)}):/* @__PURE__ */W(z,{style:{flexShrink:0},children:/* @__PURE__ */W(pi,{onPress:()=>{I(),g(),t?.()}})}))]})}function la({number:e,color:t,size:n=34,label:o,selected:r,onSelect:i}){const l=(e,o)=>({position:"absolute",left:e,top:.4*e,width:n,height:n,borderRadius:.26*n,backgroundColor:t,opacity:o});/* @__PURE__ */
243
+ return W(ht,{children:/* @__PURE__ */T(B,{accessibilityRole:"button",accessibilityLabel:o,onPress:i,activeOpacity:.8,style:{position:"relative",width:n+.2*n,height:1.3*n},children:[
244
+ /* @__PURE__ */W(z,{style:l(.44*n,.3)}),
245
+ /* @__PURE__ */W(z,{style:l(.22*n,.55)}),
246
+ /* @__PURE__ */W(z,{style:{position:"absolute",left:0,top:0,width:n,height:n,borderRadius:.26*n,backgroundColor:t,alignItems:"center",justifyContent:"center",borderWidth:r?2:0,borderColor:"#fff"},children:/* @__PURE__ */W(S,{style:{color:"#fff",fontSize:n*(e>9?.42:.5),fontWeight:"800"},children:String(e)})})]})})}function aa({onNext:t,onBack:n,hideButtons:o=!1}){const{theme:r,headingFont:i,selectedGame:l,selectedPropositionCount:a,selectedEventId:c,propositions:s,goToConfirmation:d,selectedRule:h,maxPayouts:u,betAmount:g,setBetAmount:f,selections:p,gamePrice:y,toggleSelection:m}=gi(),b=r.colors,w=l?cn(l,a,h):{min:0,max:0},k=w.min,B=eo(l)&&c?Math.min(w.max,s.length):w.max,v=e.useRef(!1);e.useEffect(()=>{v.current=!1},[l?.id]),e.useEffect(()=>{g<=0&&!v.current&&f(Math.max(20,y))},[g,y,f]);const F=e.useRef([]);F.current=function(e,t){const n=Object.keys(t).map(Number),o=new Set(n),r=e.filter(e=>o.has(e)),i=n.filter(e=>!r.includes(e)).sort((e,t)=>e-t);return 0===i.length&&r.length===e.length?e:[...r,...i]}(F.current,p);const A=function({selections:e,order:t,minReq:n,maxReq:o,stake:r,payout20:i=0}){const l=[];for(const h of t){const t=e[h];t&&l.push({id:h,number:l.length+1,side:t})}const a=l.length,c=a>=n,s=Math.max(0,n-a),d=c?i*(r/20):0;return{legs:l,count:a,dividend:d,dividendText:Qt(d),ctaLabel:c?`Continue with ${a} ›`:0===a?`Select at least ${n}`:`Add ${s} more to continue`,ctaDisabled:!c,atMax:o>0&&a>=o}}({selections:p,order:F.current,minReq:k,maxReq:B,stake:g,payout20:l?jl(u?.[l.id],F.current.length):0}),L=ue(r),R=ge(r),D=b.primaryText,M=pe(b.primary,fe(r),b.primaryText),P={fontSize:10,fontWeight:"700",letterSpacing:.8,textTransform:"uppercase"},H=ci(l),[O,I]=e.useState(null),E=A.legs.find(e=>e.id===O)??null,j=E?s.find(e=>e.id===E.id)?.description??s.find(e=>e.id===E.id)?.proposition??"":"";/* @__PURE__ */
249
247
  return T(z,{children:[
250
- /* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:{minHeight:44,marginBottom:6},contentContainerStyle:{alignItems:"center"},children:0===v.legs.length?/* @__PURE__ */W(S,{style:{fontSize:13,color:m.textMuted},children:"Tap Yes or No to start building your multi."}):v.legs.map(e=>/* @__PURE__ */W(Kl,{number:e.number,color:"yes"===e.side?A:R,label:`Leg ${e.number}, answered ${e.side}`,onSelect:()=>O(t=>t===e.id?null:e.id)},e.id))}),I&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:8},children:[/* @__PURE__ */W(S,{style:{paddingHorizontal:6,paddingVertical:2,borderRadius:4,fontSize:10,fontWeight:"700",textTransform:"uppercase",color:"#fff",backgroundColor:"yes"===I.side?A:R},children:I.side}),/* @__PURE__ */W(S,{numberOfLines:1,style:{flex:1,fontSize:12,color:m.text},children:E})]}),
251
- /* @__PURE__ */T(z,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:10,marginBottom:8},children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8},children:[/* @__PURE__ */W(S,{style:[M,{color:m.textMuted}],children:Bl}),/* @__PURE__ */T(z,P?{accessibilityLabel:`${Bl}. ${Zi(l)}`,style:{flexDirection:"row",alignItems:"center",gap:8,borderRadius:10,paddingHorizontal:12,paddingVertical:8,borderWidth:1,borderColor:m.border,backgroundColor:m.backgroundAlt},children:[/* @__PURE__ */W(S,{style:{fontSize:15,fontWeight:"800",color:m.text},children:$t(g)}),/* @__PURE__ */W(S,{style:{fontSize:10,color:m.textMuted},children:"locked"})]}:{style:{flexDirection:"row",alignItems:"center",width:108,borderRadius:10,borderWidth:1,borderColor:m.border,backgroundColor:m.background,overflow:"hidden"},children:[/* @__PURE__ */W(S,{style:{paddingLeft:11,fontSize:16,fontWeight:"800",color:m.text},children:"$"}),/* @__PURE__ */W(C,{keyboardType:"decimal-pad",accessibilityLabel:Bl,value:g>0?String(g):"",onChangeText:e=>{B.current=!0,f(Math.max(0,parseFloat(e)||0))},style:{flex:1,minWidth:0,paddingVertical:8,paddingLeft:3,paddingRight:8,fontSize:15,fontWeight:"800",color:m.text,fontFamily:r}})]})]}),/* @__PURE__ */T(z,{style:{flexGrow:1,flexBasis:150,minWidth:0,flexDirection:"row",alignItems:"baseline",justifyContent:"flex-end",gap:8,borderRadius:10,paddingHorizontal:12,paddingVertical:6,backgroundColor:m.primary},children:[/* @__PURE__ */W(S,{style:[M,{color:L,opacity:.7}],children:"Potential dividend"}),/* @__PURE__ */W(S,{style:{fontSize:20,fontWeight:"800",color:D},children:v.dividendText})]})]}),!o&&/* @__PURE__ */W(at,{theme:i,block:!0,size:"md",radius:"lg",disabled:v.ctaDisabled,onPress:()=>{d(),t?.()},children:v.ctaLabel})]})}function Xl({view:e,onChange:t}){const{theme:n}=$i(),o=n.colors,i=(n,i)=>{const r=e===n;/* @__PURE__ */
252
- return W(B,{onPress:()=>t(n),accessibilityRole:"button",accessibilityState:{selected:r},style:[Ql.option,{backgroundColor:r?o.primary:"transparent"}],children:/* @__PURE__ */W(S,{style:[Ql.optionText,{color:r?o.primaryText:o.textMuted}],children:i})},n)};/* @__PURE__ */
253
- return T(z,{style:[Ql.track,{backgroundColor:o.backgroundAlt,borderColor:o.border}],children:[i("list","List"),i("swipe","Swipe")]})}var Ql=k.create({track:{flexDirection:"row",alignItems:"center",gap:4,borderRadius:8,borderWidth:1,padding:2,flexShrink:0},option:{borderRadius:6,paddingHorizontal:10,paddingVertical:4},optionText:{fontSize:12,fontWeight:"600"}});function Jl({onNext:t,onBack:n,hideTitle:o,hideActions:i,defaultView:r="list",view:l,onViewChange:a,hideViewSwitch:c,onSwipeDragStateChange:s}){const d=$i(),{selectedRule:h}=d,{theme:u,selectedGame:g,propositions:f,selections:p,toggleSelection:y,loading:m,error:b,disableQuickPick:w,renderTeamLogo:x,filterSport:k,initialSport:S,gameCategory:C,selectedPropositionCount:B,handlePropositionCountChange:F,goToConfirmation:A,goBack:R,selectedCategory:L,setSelectedCategory:D,selectedSport:M,selectedEventId:P,propositionsForCategoryPicker:H,answeredCount:O}=d,[I,E]=e.useState(r),j=l??I,N=e.useCallback(e=>{void 0===l&&E(e),a?.(e)},[l,a]);e.useEffect(()=>{g||(d.goToSportSelection(),n?.())},[g,d,n]);const G=e.useMemo(()=>{if(!g)return null;const{min:e,max:t}=dn(g,B??void 0,h);if(e>0&&e===t)return e;const n=Yi(g);return null!=B&&B>0&&("game_set"===n||"pick_your_dividend"===n||"safety_net"===n||Vi(g))?B:null},[g,B]),Y=e.useRef(O);e.useEffect(()=>{const e=Y.current;Y.current=O,null!=G&&e<G&&O===G&&(A(),t?.())},[O,G]);const V=e.useMemo(()=>an(H??[]),[H]);if(e.useEffect(()=>{g&&1===V.length&&L!==V[0]&&D(V[0])},[g,V,L,D]),!g)return null;const U=V.length>1&&!L,q=!U&&no(g)&&!P,K=(()=>{if(!no(g)||!P)return g;const e=Math.min(g.max_propositions??f.length,f.length);return{...g,max_propositions:e,allowed_propositions:g.allowed_propositions?.filter(t=>t<=e)}})(),Z=()=>{R(),n?.()};/* @__PURE__ */
254
- return T(z,{style:$l.container,children:[!o&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(ql,{onBack:i?Z:void 0,onNext:i?t:void 0,hideActions:i})}),!no(g)&&/* @__PURE__ */W(ll,{}),
255
- /* @__PURE__ */W(z,{style:$l.content,children:U?/* @__PURE__ */W(ml,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>D(e)}):q?/* @__PURE__ */W(kl,{}):"swipe"===j?/* @__PURE__ */W(yr,{onBack:Z,onNext:t,viewSwitch:c?void 0:/* @__PURE__ */W(Xl,{view:j,onChange:N}),onDragStateChange:s}):/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(Vl,{onChange:Z}),/* @__PURE__ */W(Yr,{game:K,propositions:f,selections:p,onToggleSelection:y,onNext:()=>{A(),t?.()},onBack:Z,loading:m,error:b,theme:u,hideActions:!0,initialSport:k??S,renderTeamLogo:x,disableQuickPick:!0,selectedPropositionCount:B,onPropositionCountChange:F,gameCategory:C,headerExtra:c?void 0:/* @__PURE__ */W(Xl,{view:j,onChange:N})})]})}),!i&&!U&&!q&&/* @__PURE__ */W(z,{style:{marginTop:24},children:/* @__PURE__ */W(Zl,{onNext:t,onBack:n})})]})}var $l=k.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function _l({tiers:e,selectedCount:t,onSelect:n,colors:o,bodyFont:i,extraBetAmount:r,buttonLabel:l,columnLabel:a="Legs",buildYourOwn:s,quickPickOnly:d,onQuickPick:h,collapsible:u,expanded:g,onExpandedChange:f,summaryTiers:p}){const[y,m]=c(!1),b=g??y,w=null!=r&&20!==r,k=w?`$${Math.round(r)} returns`:"$20 returns",C=e.some(e=>e.payout20>0),F=!!u&&!b,A=C&&!F,R=(p??e).reduce((e,t)=>t.payout20>e?t.payout20:e,0),L=w&&R>0?R*(r/20):R,D=e.length>0?82*e.length+8*Math.max(0,e.length-1):82,M=/* @__PURE__ */T(v,{children:[/* @__PURE__ */T(z,{style:{flexDirection:"column",gap:8,width:70,flexShrink:0},children:[/* @__PURE__ */W(z,{style:{paddingVertical:6,justifyContent:"center"},children:/* @__PURE__ */W(S,{style:[ea.labelText,{color:o.textMuted,fontFamily:i}],children:d?"Quick Pick":a})}),A&&/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:{paddingVertical:4,justifyContent:"center"},children:/* @__PURE__ */W(S,{style:[ea.labelText,{color:o.textMuted,fontFamily:i}],children:"Dividend"})}),/* @__PURE__ */W(z,{style:{paddingVertical:4,justifyContent:"center"},children:/* @__PURE__ */W(S,{style:[ea.labelText,{color:o.textMuted,fontFamily:i}],children:k})})]})]}),d?/* @__PURE__ */T(z,{style:{gap:8,alignSelf:"flex-start",width:D},children:[/* @__PURE__ */W(Cl,{counts:(p??e).map(e=>e.count),onPick:e=>h?h(e):n(e),align:"left",direction:"up",colors:{background:o.background??"#ffffff",backgroundAlt:o.backgroundAlt??"#f3f4f6",border:o.border??"#e5e7eb",text:o.text??"#111827"}}),C&&!F&&/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8},children:e.map(({count:e,payout20:t})=>{const n=w&&t>0?t*(r/20):null;/* @__PURE__ */
256
- return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(z,{style:[ea.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[ea.tableCellText,{color:o.success}],children:[e,"/",e]})}),/* @__PURE__ */W(z,{style:[ea.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[ea.tableCellText,{color:o.primary}],children:t>0?$t(n??t):"—"})})]},String(e))})})]}):s?/* @__PURE__ */T(z,{style:{gap:8,alignSelf:"flex-start",width:D},children:[/* @__PURE__ */W(B,{onPress:()=>n(e[0]?.count??0),style:[ea.optionButton,{paddingHorizontal:0,alignSelf:"stretch",alignItems:"center",borderColor:o.buttonPrimary??o.primary,backgroundColor:o.buttonPrimary??o.primary}],children:/* @__PURE__ */W(S,{style:[ea.optionButtonText,{color:o.buttonPrimaryText??"#ffffff",fontFamily:i}],children:"Make Your Selections"})}),C&&!F&&/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8},children:e.map(({count:e,payout20:t})=>{const n=t>0?$t(w?t*(r/20):t):"—";/* @__PURE__ */
257
- return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(z,{style:[ea.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[ea.tableCellText,{color:o.success}],children:[e,"/",e]})}),/* @__PURE__ */W(z,{style:[ea.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[ea.tableCellText,{color:o.primary}],children:n})})]},String(e))})})]}):e.map(({count:e,payout20:a})=>{const c=t===e,s=w&&a>0?a*(r/20):null;/* @__PURE__ */
258
- return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(B,{onPress:()=>n(e),accessibilityState:{selected:c},style:[ea.optionButton,{alignSelf:"stretch",alignItems:"center",borderColor:c?o.buttonPrimary??o.primary:o.border??o.primary,backgroundColor:c?o.buttonPrimary??o.primary:o.buttonSecondary??o.background}],children:/* @__PURE__ */W(S,{style:[ea.optionButtonText,{color:c?o.buttonPrimaryText??"#ffffff":o.buttonSecondaryText??o.text,fontFamily:i}],numberOfLines:1,children:l?l(e):`Multi ${e}`})}),!F&&a>0&&/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:[ea.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[ea.tableCellText,{color:o.success}],children:[e,"/",e]})}),w?null!=s&&/* @__PURE__ */W(z,{style:[ea.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[ea.tableCellText,{color:o.primary}],children:$t(s)})}):/* @__PURE__ */W(z,{style:[ea.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[ea.tableCellText,{color:o.primary}],children:$t(a)})})]})]},String(e))})]});/* @__PURE__ */
259
- return T(z,{style:{flexDirection:"column",gap:8,alignSelf:"stretch"},children:[d?/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8,alignItems:"flex-start",paddingBottom:6},children:M}):/* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:{flexDirection:"row",gap:8,alignItems:"flex-start",paddingBottom:6},children:M}),u&&(C?/* @__PURE__ */T(z,{style:{alignSelf:"flex-start",flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4,maxWidth:"100%"},children:[/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"600",color:o.text,fontFamily:i},children:["Win up to ",
260
- /* @__PURE__ */W(S,{style:{color:o.heading??o.text??o.primary},children:$t(L)}),
261
- /* @__PURE__ */W(S,{style:{color:o.textMuted},children:` for $${w?Math.round(r):20}`})]}),/* @__PURE__ */W(B,{onPress:()=>{return e=!b,void 0===g&&m(e),void f?.(e);var e},accessibilityRole:"button",accessibilityState:{expanded:b},style:{paddingVertical:4,paddingHorizontal:10,borderRadius:6,backgroundColor:b?o.buttonSecondary:o.background??"#ffffff",borderWidth:1,borderColor:b?o.primary??o.border:o.border},children:/* @__PURE__ */W(S,{style:{color:o.text,fontSize:12,fontWeight:"600",fontFamily:i},children:b?"Hide dividends":"Show dividends"})})]}):/* @__PURE__ */W(z,{style:{alignSelf:"flex-start",paddingVertical:2,opacity:0},pointerEvents:"none",children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",fontFamily:i},children:"Show dividends"})}))]})}var ea=k.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 ta(e){return{game_id:e.selectedGame.id,rule_id:e.selectedRule?.id??null,proposition_ids:e.selectedPropositionIds,selections:e.selections,stake:e.betAmount}}function na({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,selectedGame:i,selectedEventId:r,propositions:l,selections:a,toggleSelection:c,upgradePropositionCount:s,selectedPropositionCount:d,disableQuickPick:h,answeredCount:u,selectedRule:g}=$i(),f=n.colors,{width:p}=F(),y=p>=640,m=i?dn(i,d,g):{min:0,max:0},b=m.min,w=no(i)&&r?Math.min(m.max,l.length):m.max,x=b>0&&b===w,k=!(i?.allowed_propositions&&i.allowed_propositions.length>0)&&b>0&&w>b,C=x?w:w||l.length,B=e=>{const t=Math.max(0,Math.min(e??C,l.length));for(const i of Object.keys(a)){const e=Number(i);c(e,a[e])}const{yesPicks:n,noPicks:o}=Dn(l,t);for(const i of n)c(i.id,"yes");for(const i of o)c(i.id,"no");s(t)},v=!h&&l.length>0,A=k?Array.from({length:w-b+1},(e,t)=>b+t):[],R=u>0?u:b||C;/* @__PURE__ */
262
- return T(z,{style:[ra.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */T(z,{children:[/* @__PURE__ */W(S,{style:[ra.title,{fontSize:y?24:20,color:se(n),fontFamily:o}],children:"Place Your Wager"}),i&&/* @__PURE__ */W(dl,{onBack:e,hideActions:t,label:i.game_name})]}),v&&(A.length>1?/* @__PURE__ */W(Cl,{counts:A,onPick:e=>B(e),onDoubleAction:()=>B(R),colors:f,menuShadow:ce(n)}):/* @__PURE__ */W(z,{style:{flexShrink:0},children:/* @__PURE__ */W(er,{onPress:()=>B()})}))]})}function oa({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o}){const i=$i(),{theme:r,selectedGame:l,expectedCorrect:a,betAmount:c,submitting:s,submitError:d,canSubmit:h,payouts:u,selectedPropositionIds:g,screenSize:f}=i,p=r.colors,{width:y}=F(),m=y>=640;if(!l)return null;const b=u[a]??0,w=hn(l),x=a===g.length,k=w?.enabled&&x,C=e&&"mobile"!==f;/* @__PURE__ */
263
- return T(z,{style:ra.footer,children:[C&&/* @__PURE__ */W(at,{theme:r,variant:"secondary",onPress:e,children:"Back"}),/* @__PURE__ */T(z,{style:ra.footerRight,children:[d?/* @__PURE__ */W(S,{style:[ra.errorText,{color:p.error}],children:d}):null,(b>0||k)&&m&&/* @__PURE__ */T(z,{style:ra.payoutInfo,children:[/* @__PURE__ */W(S,{style:[ra.payoutLabel,{color:p.textMuted}],children:"Potential winnings"}),/* @__PURE__ */T(S,{style:[ra.payoutAmount,{color:p.heading??p.text}],children:[$t(b),k?/* @__PURE__ */W(S,{style:{color:p.warning},children:" + Jackpot"}):null]})]}),
264
- /* @__PURE__ */W(at,{theme:r,variant:"primary",disabled:!h,onPress:async()=>{n?(await i.handleSubmit(),t?.()):o?.(ta(i))},children:n?s?"Placing…":`Place Entry (${$t(c)})`:"Log in to place entry"})]})]})}function ia({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,hideTitle:r,hideActions:l}){const a=$i(),{theme:c,selectedGame:s,selectedPropositions:d,selections:h,propositions:u,selectedPropositionCount:g,selectedEventId:f,expectedCorrect:p,setExpectedCorrect:y,betAmount:m,setBetAmount:b,submitting:w,submitError:x,canSubmit:k,winningCounts:C,payouts:A,overloadPayouts:R,renderTeamLogo:L,userBalance:D,onRecharge:M,goBack:P,toggleSelection:H,upgradePropositionCount:O,goToSportSelection:I,selectedRule:E}=a,j=c.colors,{width:N}=F(),G=N>=640;if(i(()=>{s||(I(),e?.())},[s,I,e]),!s)return null;const Y=!!(s.allowed_propositions&&s.allowed_propositions.length>0),V=dn(s,g,E),U=V.min,q=no(s)&&f?Math.min(V.max,u.length):V.max,K=Object.keys(h).length,Z=U>0&&K<U,X=!Y&&U>0&&q>U&&K>=U&&K<q,Q=Y?[...s.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(g??0)):[],J=Y&&Q.length>0&&!Z,$=X||J,_=q-K;j.textAlt??j.text;const ee=()=>{P(),e?.()},te=(Y?[...s.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===K&&e<(g??1/0)),ne=Y&&K<Math.min(...s.allowed_propositions??[1/0]),oe=Y&&Z&&!ne,ie=qi(s),re=function(e,t,n,o){const i=e?.description?.trim();if(i)return i;const r=(t??[]).filter(e=>Number.isFinite(e)).sort((e,t)=>e-t);if(0===r.length||n<=0)return null;const l=r[0];if(l>=n)return"Get every pick right to win.";if(!r.every((e,t)=>e===l+t)||r[r.length-1]!==n)return 2===r.length&&0===r[0]&&r[1]===n?`Get all ${n} picks right — or all ${n} wrong — to win.`:`Get exactly ${r.join(" or ")} of your ${n} picks right to win.`;const a=r.map(e=>o?.[e]).filter(e=>Number.isFinite(e));if(a.length===r.length&&a.length>1&&a.every((e,t)=>0===t||e>a[t-1]))return`Get ${l} of your ${n} picks right to start winning — every pick after that grows the prize.`;const c=n-l;return`Get ${l} of your ${n} picks right to win — up to ${1===c?"one miss":`${c} misses`} still pays.`}(E,C,K,A),le=A[K]||Xi(s,K,m),ae=(C??[]).length>1?"Top prize":"That pays",ce=null!=te?ie.belowRequiredHint(te,g??U):ie.belowRequiredAddOnlyHint(g??U);return i(()=>{!Z||Y&&!ne||ee()},[Z,Y,ne]),/* @__PURE__ */T(z,{style:ra.container,children:[!r&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(na,{onBack:e,hideActions:l})}),
265
- /* @__PURE__ */W(z,{style:ra.content,children:/* @__PURE__ */W(Zr,{game:s,propositions:d,selections:h,onToggleSelection:H,onRemoveSelection:()=>{},onSubmit:async()=>{n?(await a.handleSubmit(),t?.()):o?.(ta(a))},onBack:ee,loading:w,error:x,expectedCorrect:p,onExpectedCorrectChange:y,betAmount:m,onBetAmountChange:b,theme:c,showCustomAmount:!0,betAmountLocked:Ki(s),betAmountLockedNote:Zi(s),hideActions:!0,winningCounts:C,payouts:A,renderTeamLogo:L,canSubmit:k,authenticated:n,userBalance:D,onRecharge:M,boostBanner:/* @__PURE__ */T(v,{children:[(re||le>0)&&/* @__PURE__ */T(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${j.primary}30`,backgroundColor:`${j.primary}08`,marginBottom:12},children:[
266
- /* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1,color:j.textMuted,marginBottom:4},children:"How you win"}),re&&/* @__PURE__ */W(S,{style:{fontSize:G?14:12,color:j.text},children:re}),le>0&&/* @__PURE__ */T(S,{style:{fontSize:G?14:12,color:j.textMuted,marginTop:6},children:[`${ae} `/* @__PURE__ */,W(S,{style:{fontWeight:"700",color:se(c)},children:$t(le)})]})]}),oe&&/* @__PURE__ */T(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${j.warning}40`,backgroundColor:`${j.warning}10`,flexDirection:G?"row":"column",alignItems:G?"center":"flex-start",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{fontSize:G?14:12,color:j.text,flexShrink:1},children:["You have ",
267
- /* @__PURE__ */T(S,{style:{fontWeight:"700"},children:[K," pick",1!==K?"s":""]}),`. ${ce}`]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[/* @__PURE__ */W(B,{onPress:ee,style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:j.buttonSecondary},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:j.buttonSecondaryText},children:"Add a pick"})}),null!=te&&/* @__PURE__ */W(B,{onPress:()=>O(te),style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:j.buttonPrimary},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:j.buttonPrimaryText},children:ie.switchTierLabel(te)})})]})]}),$&&/* @__PURE__ */W(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${j.primary}30`,backgroundColor:`${j.primary}08`},children:J?(()=>{const e=g??K,t=R[e],n=m>0?m:20,o=null!=t&&t>0?t*(n/20):null;/* @__PURE__ */
248
+ /* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:{minHeight:44,marginBottom:6},contentContainerStyle:{alignItems:"center"},children:0===A.legs.length?/* @__PURE__ */W(S,{style:{fontSize:13,color:b.textMuted},children:"Tap Yes or No to start building your multi."}):A.legs.map(e=>/* @__PURE__ */W(la,{number:e.number,color:"yes"===e.side?L:R,label:`Leg ${e.number}, answered ${e.side}`,selected:e.id===O,onSelect:()=>I(t=>t===e.id?null:e.id)},e.id))}),E?/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:8},children:[
249
+ /* @__PURE__ */W(S,{style:{paddingHorizontal:6,paddingVertical:2,borderRadius:4,fontSize:10,fontWeight:"700",textTransform:"uppercase",backgroundColor:"yes"===E.side?L:R,color:"#fff"},children:E.side}),
250
+ /* @__PURE__ */W(S,{numberOfLines:2,style:{flex:1,fontSize:12,color:b.text},children:j}),
251
+ /* @__PURE__ */W(lt,{theme:r,variant:"ghost",size:"sm",radius:"pill",onPress:()=>{I(null),m(E.id,E.side)},children:"Remove"})]}):A.legs.length>0?/* @__PURE__ */W(S,{style:{fontSize:12,marginBottom:8,color:b.textMuted},children:"Tap a leg to read it."}):null,
252
+ /* @__PURE__ */T(z,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:10,marginBottom:8},children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",gap:8},children:[/* @__PURE__ */W(S,{style:[P,{color:b.textMuted}],children:El}),/* @__PURE__ */T(z,H?{accessibilityLabel:`${El}. ${si(l)}`,style:{flexDirection:"row",alignItems:"center",gap:8,borderRadius:10,paddingHorizontal:12,paddingVertical:8,borderWidth:1,borderColor:b.border,backgroundColor:b.backgroundAlt},children:[/* @__PURE__ */W(S,{style:{fontSize:15,fontWeight:"800",color:b.text},children:Qt(g)}),/* @__PURE__ */W(S,{style:{fontSize:10,color:b.textMuted},children:"locked"})]}:{style:{flexDirection:"row",alignItems:"center",width:108,borderRadius:10,borderWidth:1,borderColor:b.border,backgroundColor:b.background,overflow:"hidden"},children:[/* @__PURE__ */W(S,{style:{paddingLeft:11,fontSize:16,fontWeight:"800",color:b.text},children:"$"}),/* @__PURE__ */W(C,{keyboardType:"decimal-pad",accessibilityLabel:El,value:g>0?String(g):"",onChangeText:e=>{v.current=!0,f(Math.max(0,parseFloat(e)||0))},style:{flex:1,minWidth:0,paddingVertical:8,paddingLeft:3,paddingRight:8,fontSize:15,fontWeight:"800",color:b.text,fontFamily:i}})]})]}),/* @__PURE__ */T(z,{style:{flexGrow:1,flexBasis:150,minWidth:0,flexDirection:"row",alignItems:"baseline",justifyContent:"flex-end",gap:8,borderRadius:10,paddingHorizontal:12,paddingVertical:6,backgroundColor:b.primary},children:[/* @__PURE__ */W(S,{style:[P,{color:D,opacity:.7}],children:"Potential dividend"}),/* @__PURE__ */W(S,{style:{fontSize:20,fontWeight:"800",color:M},children:A.dividendText})]})]}),!o&&/* @__PURE__ */W(lt,{theme:r,block:!0,size:"md",radius:"lg",disabled:A.ctaDisabled,onPress:()=>{d(),t?.()},children:A.ctaLabel})]})}function ca({view:e,onChange:t}){const{theme:n}=gi(),o=n.colors,r="list"===e?"swipe":"list",i="swipe"===r;/* @__PURE__ */
253
+ return T(B,{accessibilityRole:"button",onPress:()=>t(r),style:[sa.button,{borderColor:o.primary,backgroundColor:Zl(o.primary,.1)}],children:[/* @__PURE__ */W(S,{style:[sa.glyph,{color:o.primary}],children:i?"⇆":"☰"}),/* @__PURE__ */W(S,{style:[sa.label,{color:o.primary}],children:i?"Swipe cards":"List view"})]})}var sa=k.create({button:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:0,borderRadius:999,borderWidth:1,paddingHorizontal:12,paddingVertical:6},glyph:{fontSize:13},label:{fontSize:11,fontWeight:"700"}});function da({onNext:t,onBack:n,hideTitle:o,hideActions:r,defaultView:i="list",view:l,onViewChange:a,hideViewSwitch:c,onSwipeDragStateChange:s}){const d=gi(),{selectedRule:h}=d,{theme:u,selectedGame:g,propositions:f,selections:p,toggleSelection:y,loading:m,error:b,disableQuickPick:w,renderTeamLogo:x,filterSport:k,initialSport:S,gameCategory:C,selectedPropositionCount:B,handlePropositionCountChange:v,goToConfirmation:F,goBack:A,selectedCategory:L,setSelectedCategory:R,selectedSport:D,selectedEventId:M,propositionsForCategoryPicker:P,answeredCount:H}=d,[O,I]=e.useState(i),E=l??O,j=e.useCallback(e=>{void 0===l&&I(e),a?.(e)},[l,a]);e.useEffect(()=>{g||(d.goToSportSelection(),n?.())},[g,d,n]);const N=e.useMemo(()=>{if(!g)return null;const{min:e,max:t}=cn(g,B??void 0,h);if(e>0&&e===t)return e;const n=ri(g);return null!=B&&B>0&&("game_set"===n||"pick_your_dividend"===n||"safety_net"===n||ii(g))?B:null},[g,B]),G=e.useRef(H);e.useEffect(()=>{const e=G.current;G.current=H,null!=N&&e<N&&H===N&&(F(),t?.())},[H,N]);const Y=e.useMemo(()=>rn(P??[]),[P]);if(e.useEffect(()=>{g&&1===Y.length&&L!==Y[0]&&R(Y[0])},[g,Y,L,R]),!g)return null;const V=Y.length>1&&!L,U=!V&&eo(g)&&!M,q=(()=>{if(!eo(g)||!M)return g;const e=Math.min(g.max_propositions??f.length,f.length);return{...g,max_propositions:e,allowed_propositions:g.allowed_propositions?.filter(t=>t<=e)}})(),K=()=>{A(),n?.()};/* @__PURE__ */
254
+ return T(z,{style:ha.container,children:[!o&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(ia,{onBack:r?K:void 0,onNext:r?t:void 0,hideActions:r})}),!eo(g)&&/* @__PURE__ */W(kl,{}),
255
+ /* @__PURE__ */W(z,{style:ha.content,children:V?/* @__PURE__ */W(Rl,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>R(e)}):U?/* @__PURE__ */W(Hl,{}):"swipe"===E?/* @__PURE__ */W(Li,{onBack:K,onNext:t,viewSwitch:c?void 0:/* @__PURE__ */W(ca,{view:E,onChange:j}),onDragStateChange:s}):/* @__PURE__ */W(rl,{game:q,propositions:f,selections:p,onToggleSelection:y,onNext:()=>{F(),t?.()},onBack:K,loading:m,error:b,theme:u,hideActions:!0,initialSport:k??S,renderTeamLogo:x,disableQuickPick:!0,selectedPropositionCount:B,onPropositionCountChange:v,gameCategory:C,headerExtra:c?void 0:/* @__PURE__ */W(ca,{view:E,onChange:j})})}),!r&&!V&&!U&&/* @__PURE__ */W(z,{style:{marginTop:24},children:/* @__PURE__ */W(aa,{onNext:t,onBack:n})})]})}var ha=k.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function ua({tiers:e,selectedCount:t,onSelect:n,colors:o,bodyFont:r,extraBetAmount:i,buttonLabel:l,columnLabel:a="Legs",buildYourOwn:s,quickPickOnly:d,onQuickPick:h,collapsible:u,expanded:g,onExpandedChange:f,summaryTiers:p}){const[y,m]=c(!1),b=g??y,w=null!=i&&20!==i,k=w?`$${Math.round(i)} returns`:"$20 returns",C=e.some(e=>e.payout20>0),v=!!u&&!b,A=C&&!v,L=(p??e).reduce((e,t)=>t.payout20>e?t.payout20:e,0),R=w&&L>0?L*(i/20):L,D=e.length>0?82*e.length+8*Math.max(0,e.length-1):82,M=/* @__PURE__ */T(F,{children:[/* @__PURE__ */T(z,{style:{flexDirection:"column",gap:8,width:70,flexShrink:0},children:[/* @__PURE__ */W(z,{style:{paddingVertical:6,justifyContent:"center"},children:/* @__PURE__ */W(S,{style:[ga.labelText,{color:o.textMuted,fontFamily:r}],children:d?"Quick Pick":a})}),A&&/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(z,{style:{paddingVertical:4,justifyContent:"center"},children:/* @__PURE__ */W(S,{style:[ga.labelText,{color:o.textMuted,fontFamily:r}],children:"Dividend"})}),/* @__PURE__ */W(z,{style:{paddingVertical:4,justifyContent:"center"},children:/* @__PURE__ */W(S,{style:[ga.labelText,{color:o.textMuted,fontFamily:r}],children:k})})]})]}),d?/* @__PURE__ */T(z,{style:{gap:8,alignSelf:"flex-start",width:D},children:[/* @__PURE__ */W(Il,{counts:(p??e).map(e=>e.count),onPick:e=>h?h(e):n(e),align:"left",direction:"up",colors:{background:o.background??"#ffffff",backgroundAlt:o.backgroundAlt??"#f3f4f6",border:o.border??"#e5e7eb",text:o.text??"#111827"}}),C&&!v&&/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8},children:e.map(({count:e,payout20:t})=>{const n=w&&t>0?t*(i/20):null;/* @__PURE__ */
256
+ return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(z,{style:[ga.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[ga.tableCellText,{color:o.success}],children:[e,"/",e]})}),/* @__PURE__ */W(z,{style:[ga.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[ga.tableCellText,{color:o.primary}],children:t>0?Qt(n??t):"—"})})]},String(e))})})]}):s?/* @__PURE__ */T(z,{style:{gap:8,alignSelf:"flex-start",width:D},children:[/* @__PURE__ */W(B,{onPress:()=>n(e[0]?.count??0),style:[ga.optionButton,{paddingHorizontal:0,alignSelf:"stretch",alignItems:"center",borderColor:o.buttonPrimary??o.primary,backgroundColor:o.buttonPrimary??o.primary}],children:/* @__PURE__ */W(S,{style:[ga.optionButtonText,{color:o.buttonPrimaryText??"#ffffff",fontFamily:r}],children:"Make Your Selections"})}),C&&!v&&/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8},children:e.map(({count:e,payout20:t})=>{const n=t>0?Qt(w?t*(i/20):t):"—";/* @__PURE__ */
257
+ return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(z,{style:[ga.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[ga.tableCellText,{color:o.success}],children:[e,"/",e]})}),/* @__PURE__ */W(z,{style:[ga.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[ga.tableCellText,{color:o.primary}],children:n})})]},String(e))})})]}):e.map(({count:e,payout20:a})=>{const c=t===e,s=w&&a>0?a*(i/20):null;/* @__PURE__ */
258
+ return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(B,{onPress:()=>n(e),accessibilityState:{selected:c},style:[ga.optionButton,{alignSelf:"stretch",alignItems:"center",borderColor:c?o.buttonPrimary??o.primary:o.border??o.primary,backgroundColor:c?o.buttonPrimary??o.primary:o.buttonSecondary??o.background}],children:/* @__PURE__ */W(S,{style:[ga.optionButtonText,{color:c?o.buttonPrimaryText??"#ffffff":o.buttonSecondaryText??o.text,fontFamily:r}],numberOfLines:1,children:l?l(e):`Multi ${e}`})}),!v&&a>0&&/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(z,{style:[ga.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[ga.tableCellText,{color:o.success}],children:[e,"/",e]})}),w?null!=s&&/* @__PURE__ */W(z,{style:[ga.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[ga.tableCellText,{color:o.primary}],children:Qt(s)})}):/* @__PURE__ */W(z,{style:[ga.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[ga.tableCellText,{color:o.primary}],children:Qt(a)})})]})]},String(e))})]});/* @__PURE__ */
259
+ return T(z,{style:{flexDirection:"column",gap:8,alignSelf:"stretch"},children:[d?/* @__PURE__ */W(z,{style:{flexDirection:"row",gap:8,alignItems:"flex-start",paddingBottom:6},children:M}):/* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:{flexDirection:"row",gap:8,alignItems:"flex-start",paddingBottom:6},children:M}),u&&(C?/* @__PURE__ */T(z,{style:{alignSelf:"flex-start",flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4,maxWidth:"100%"},children:[/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"600",color:o.text,fontFamily:r},children:["Win up to ",
260
+ /* @__PURE__ */W(S,{style:{color:o.heading??o.text??o.primary},children:Qt(R)}),
261
+ /* @__PURE__ */W(S,{style:{color:o.textMuted},children:` for $${w?Math.round(i):20}`})]}),/* @__PURE__ */W(B,{onPress:()=>{return e=!b,void 0===g&&m(e),void f?.(e);var e},accessibilityRole:"button",accessibilityState:{expanded:b},style:{paddingVertical:4,paddingHorizontal:10,borderRadius:6,backgroundColor:b?o.buttonSecondary:o.background??"#ffffff",borderWidth:1,borderColor:b?o.primary??o.border:o.border},children:/* @__PURE__ */W(S,{style:{color:o.text,fontSize:12,fontWeight:"600",fontFamily:r},children:b?"Hide dividends":"Show dividends"})})]}):/* @__PURE__ */W(z,{style:{alignSelf:"flex-start",paddingVertical:2,opacity:0},pointerEvents:"none",children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",fontFamily:r},children:"Show dividends"})}))]})}var ga=k.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 fa(e){return{game_id:e.selectedGame.id,rule_id:e.selectedRule?.id??null,proposition_ids:e.selectedPropositionIds,selections:e.selections,stake:e.betAmount}}function pa({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,selectedGame:r,selectedEventId:i,propositions:l,selections:a,toggleSelection:c,upgradePropositionCount:s,selectedPropositionCount:d,disableQuickPick:h,answeredCount:u,selectedRule:g}=gi(),f=n.colors,{width:p}=v(),y=p>=640,m=r?cn(r,d,g):{min:0,max:0},b=m.min,w=eo(r)&&i?Math.min(m.max,l.length):m.max,x=b>0&&b===w,k=!(r?.allowed_propositions&&r.allowed_propositions.length>0)&&b>0&&w>b,C=x?w:w||l.length,B=e=>{const t=Math.max(0,Math.min(e??C,l.length));for(const r of Object.keys(a)){const e=Number(r);c(e,a[e])}const{yesPicks:n,noPicks:o}=Ln(l,t);for(const r of n)c(r.id,"yes");for(const r of o)c(r.id,"no");s(t)},F=!h&&l.length>0,A=k?Array.from({length:w-b+1},(e,t)=>b+t):[],L=u>0?u:b||C;/* @__PURE__ */
262
+ return T(z,{style:[ba.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */T(z,{children:[/* @__PURE__ */W(S,{style:[ba.title,{fontSize:y?24:20,color:se(n),fontFamily:o}],children:"Place Your Wager"}),r&&/* @__PURE__ */W(zl,{onBack:e,hideActions:t,label:r.game_name})]}),F&&(A.length>1?/* @__PURE__ */W(Il,{counts:A,onPick:e=>B(e),onDoubleAction:()=>B(L),colors:f,menuShadow:ce(n)}):/* @__PURE__ */W(z,{style:{flexShrink:0},children:/* @__PURE__ */W(pi,{onPress:()=>B()})}))]})}function ya({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o}){const r=gi(),{theme:i,selectedGame:l,expectedCorrect:a,betAmount:c,submitting:s,submitError:d,canSubmit:h,payouts:u,selectedPropositionIds:g,screenSize:f}=r,p=i.colors,{width:y}=v(),m=y>=640;if(!l)return null;const b=u[a]??0,w=sn(l),x=a===g.length,k=w?.enabled&&x,C=e&&"mobile"!==f;/* @__PURE__ */
263
+ return T(z,{style:ba.footer,children:[C&&/* @__PURE__ */W(lt,{theme:i,variant:"secondary",onPress:e,children:"Back"}),/* @__PURE__ */T(z,{style:ba.footerRight,children:[d?/* @__PURE__ */W(S,{style:[ba.errorText,{color:p.error}],children:d}):null,(b>0||k)&&m&&/* @__PURE__ */T(z,{style:ba.payoutInfo,children:[/* @__PURE__ */W(S,{style:[ba.payoutLabel,{color:p.textMuted}],children:"Potential winnings"}),/* @__PURE__ */T(S,{style:[ba.payoutAmount,{color:p.heading??p.text}],children:[Qt(b),k?/* @__PURE__ */W(S,{style:{color:p.warning},children:" + Jackpot"}):null]})]}),
264
+ /* @__PURE__ */W(lt,{theme:i,variant:"primary",disabled:!h,onPress:async()=>{n?(await r.handleSubmit(),t?.()):o?.(fa(r))},children:n?s?"Placing…":`Place Entry (${Qt(c)})`:"Log in to place entry"})]})]})}function ma({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,hideTitle:i,hideActions:l}){const a=gi(),{theme:c,selectedGame:s,selectedPropositions:d,selections:h,compositeComponentById:u,propositions:g,selectedPropositionCount:f,selectedEventId:p,expectedCorrect:y,setExpectedCorrect:m,betAmount:b,setBetAmount:w,submitting:x,submitError:k,canSubmit:C,winningCounts:A,payouts:L,overloadPayouts:R,renderTeamLogo:D,userBalance:M,onRecharge:P,goBack:H,toggleSelection:O,upgradePropositionCount:I,goToSportSelection:E,selectedRule:j}=a,N=c.colors,{width:G}=v(),Y=G>=640;if(r(()=>{s||(E(),e?.())},[s,E,e]),!s)return null;const V=!!(s.allowed_propositions&&s.allowed_propositions.length>0),U=cn(s,f,j),q=U.min,K=eo(s)&&p?Math.min(U.max,g.length):U.max,Z=Object.keys(h).length,X=q>0&&Z<q,Q=!V&&q>0&&K>q&&Z>=q&&Z<K,J=V?[...s.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(f??0)):[],$=V&&J.length>0&&!X,_=Q||$,ee=K-Z;N.textAlt??N.text;const te=()=>{H(),e?.()},ne=(V?[...s.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===Z&&e<(f??1/0)),oe=V&&Z<Math.min(...s.allowed_propositions??[1/0]),re=V&&X&&!oe,ie=ai(s),le=function(e,t,n,o){const r=e?.description?.trim();if(r)return r;const i=(t??[]).filter(e=>Number.isFinite(e)).sort((e,t)=>e-t);if(0===i.length||n<=0)return null;const l=i[0];if(l>=n)return"Get every pick right to win.";if(!i.every((e,t)=>e===l+t)||i[i.length-1]!==n)return 2===i.length&&0===i[0]&&i[1]===n?`Get all ${n} picks right — or all ${n} wrong — to win.`:`Get exactly ${i.join(" or ")} of your ${n} picks right to win.`;const a=i.map(e=>o?.[e]).filter(e=>Number.isFinite(e));if(a.length===i.length&&a.length>1&&a.every((e,t)=>0===t||e>a[t-1]))return`Get ${l} of your ${n} picks right to start winning — every pick after that grows the prize.`;const c=n-l;return`Get ${l} of your ${n} picks right to win — up to ${1===c?"one miss":`${c} misses`} still pays.`}(j,A,Z,L),ae=L[Z]||di(s,Z,b),ce=(A??[]).length>1?"Top prize":"That pays",de=null!=ne?ie.belowRequiredHint(ne,f??q):ie.belowRequiredAddOnlyHint(f??q);return r(()=>{!X||V&&!oe||te()},[X,V,oe]),/* @__PURE__ */T(z,{style:ba.container,children:[!i&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(pa,{onBack:e,hideActions:l})}),
265
+ /* @__PURE__ */W(z,{style:ba.content,children:/* @__PURE__ */W(sl,{componentById:u,game:s,propositions:d,selections:h,onToggleSelection:O,onRemoveSelection:()=>{},onSubmit:async()=>{n?(await a.handleSubmit(),t?.()):o?.(fa(a))},onBack:te,loading:x,error:k,expectedCorrect:y,onExpectedCorrectChange:m,betAmount:b,onBetAmountChange:w,theme:c,showCustomAmount:!0,betAmountLocked:ci(s),betAmountLockedNote:si(s),hideActions:!0,winningCounts:A,payouts:L,renderTeamLogo:D,canSubmit:C,authenticated:n,userBalance:M,onRecharge:P,boostBanner:/* @__PURE__ */T(F,{children:[(le||ae>0)&&/* @__PURE__ */T(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${N.primary}30`,backgroundColor:`${N.primary}08`,marginBottom:12},children:[
266
+ /* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1,color:N.textMuted,marginBottom:4},children:"How you win"}),le&&/* @__PURE__ */W(S,{style:{fontSize:Y?14:12,color:N.text},children:le}),ae>0&&/* @__PURE__ */T(S,{style:{fontSize:Y?14:12,color:N.textMuted,marginTop:6},children:[`${ce} `/* @__PURE__ */,W(S,{style:{fontWeight:"700",color:se(c)},children:Qt(ae)})]})]}),re&&/* @__PURE__ */T(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${N.warning}40`,backgroundColor:`${N.warning}10`,flexDirection:Y?"row":"column",alignItems:Y?"center":"flex-start",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{fontSize:Y?14:12,color:N.text,flexShrink:1},children:["You have ",
267
+ /* @__PURE__ */T(S,{style:{fontWeight:"700"},children:[Z," pick",1!==Z?"s":""]}),`. ${de}`]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[/* @__PURE__ */W(B,{onPress:te,style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:N.buttonSecondary},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:N.buttonSecondaryText},children:"Add a pick"})}),null!=ne&&/* @__PURE__ */W(B,{onPress:()=>I(ne),style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:N.buttonPrimary},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:N.buttonPrimaryText},children:ie.switchTierLabel(ne)})})]})]}),_&&/* @__PURE__ */W(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${N.primary}30`,backgroundColor:`${N.primary}08`},children:$?(()=>{const e=f??Z,t=R[e],n=b>0?b:20,o=null!=t&&t>0?t*(n/20):null;/* @__PURE__ */
268
268
  return T(z,{children:[
269
- /* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:j.primary,marginBottom:4},children:ie.overloadTitle}),null!=o&&/* @__PURE__ */T(S,{style:{fontSize:12,color:j.textMuted,marginBottom:8},children:["Currently winning up to ",
270
- /* @__PURE__ */W(S,{style:{color:j.heading??j.text,fontWeight:"700"},children:$t(o)}),` with ${e} picks`]}),
271
- /* @__PURE__ */W(_l,{tiers:Q.map(e=>({count:e,payout20:R[e]??0})),selectedCount:void 0,onSelect:e=>{O(e),ee()},colors:j,bodyFont:a.bodyFont,extraBetAmount:20!==n?n:void 0,columnLabel:ie.tableColumnLabel,buttonLabel:ie.tierButtonLabel})]})})():/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{fontSize:12,color:j.textMuted,flex:1},children:[1===_?"Add ":"Add up to ",/* @__PURE__ */T(S,{style:{color:j.primary,fontWeight:"700"},children:[_," more pick",1!==_?"s":""]})]}),/* @__PURE__ */W(B,{onPress:ee,style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:j.buttonPrimary},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:j.buttonPrimaryText},children:"Add picks"})})]})})]})})}),l&&x?/* @__PURE__ */W(z,{style:{marginTop:12,alignItems:"flex-end"},children:/* @__PURE__ */W(S,{style:[ra.errorText,{color:j.error}],children:x})}):null]})}var ra=k.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},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"}}),la=m.select({ios:"Menlo",default:"monospace"});function aa({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:i,placedEntry:r}=$i(),l=n.colors,{width:a}=F(),c=a>=640;/* @__PURE__ */
272
- return T(z,{style:da.titleRow,children:[/* @__PURE__ */T(z,{style:da.titleText,children:[/* @__PURE__ */W(S,{style:[da.title,c&&da.titleWide,{color:se(n),fontFamily:o}],children:"Entry Placed!"}),/* @__PURE__ */W(dl,{onBack:e,hideActions:t,children:/* @__PURE__ */W(S,{style:[da.message,{color:l.textMuted,fontFamily:i}],children:r?/* @__PURE__ */T(v,{children:["Entry"," ",
273
- /* @__PURE__ */T(S,{style:{color:l.primary,fontWeight:"600",fontFamily:la},children:["#",r.id]})," ","successfully submitted"]}):"Your entry has been successfully submitted"})})]}),/* @__PURE__ */W(z,{style:[da.checkCircle,c&&da.checkCircleWide,{backgroundColor:`${l.success}20`}],children:/* @__PURE__ */W(A,{width:c?28:24,height:c?28:24,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M5 13l4 4L19 7",stroke:l.success,strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})})})]})}function ca({onPlayAgain:e,onDone:t,onShare:n}){const{theme:o,reset:i,placedEntry:r,selectedGame:l,selectedPropositions:a,selections:c,betAmount:s}=$i();return o.colors,/* @__PURE__ */T(z,{style:da.footer,children:[/* @__PURE__ */W(at,{theme:o,variant:"secondary",onPress:()=>{i(),e?.()},children:"Place Another"}),t&&/* @__PURE__ */W(at,{theme:o,variant:"primary",onPress:t,children:"Done"})]})}function sa({onPlayAgain:t,onDone:n,onBack:o,onShare:i,hideTitle:r,hideActions:l}){const a=$i(),{theme:c,bodyFont:s,headingFont:d,selectedGame:h,placedEntry:u,betAmount:g,selectedPropositionIds:f,selectedPropositions:p,selections:y,payouts:m,onShare:b}=a,w=c.colors,x=be(c),k=w.textAlt??w.text,{width:C}=F(),B=C>=640,A={shadowColor:"#000",shadowOpacity:"dark"===c.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2},R=u?.proposition_ids?u.proposition_ids.length:f.length,L=m[R]??null,D=e.useRef(!1);return e.useEffect(()=>{u&&h?D.current=!1:(a.goToSportSelection(),D.current||(D.current=!0,t?t():n?.()))},[u,h,a,t,n]),u?/* @__PURE__ */T(z,{style:da.container,children:[!r&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(aa,{onBack:o,hideActions:l})}),/* @__PURE__ */T(z,{style:[da.content,{gap:B?16:12}],children:[/* @__PURE__ */T(z,{style:[da.summaryCard,B&&da.summaryCardWide,{backgroundColor:x,borderColor:w.border},A],children:[/* @__PURE__ */T(z,{style:da.summaryHeader,children:[(()=>{const e=h?h.allowed_propositions&&h.allowed_propositions.length>0&&h.game_name.replace(/\s+\d+\s*$/,"").trim()||h.game_name:"Entry summary";return h?/* @__PURE__ */W(z,{style:{flex:1,minWidth:0},children:/* @__PURE__ */W(el,{iconUrl:Ze(h),gameName:e,height:18,chipColor:w.primary,textColor:w.text,iconColor:w.primaryText,accentColor:c.brand?.accent})}):/* @__PURE__ */W(S,{numberOfLines:1,style:[da.summaryHeading,B&&da.summaryHeadingWide,{color:se(c),fontFamily:d,flex:1}],children:e})})(),/* @__PURE__ */W(z,{style:{backgroundColor:`${w.primary}15`,borderRadius:999,paddingHorizontal:8,paddingVertical:2,flexShrink:0},children:/* @__PURE__ */T(S,{style:{color:w.primary,fontSize:12,fontWeight:"600",fontFamily:s},children:[R," pick",1!==R?"s":""]})})]}),/* @__PURE__ */T(z,{style:da.statsGrid,children:[
274
- /* @__PURE__ */T(z,{style:[da.statCell,B&&da.statCellWide],children:[/* @__PURE__ */W(S,{style:[da.statLabel,{color:w.textMuted,fontFamily:s}],children:"Selections"}),/* @__PURE__ */W(S,{style:[da.statValue,{color:k,fontFamily:s}],children:R})]}),g>0&&/* @__PURE__ */T(z,{style:[da.statCell,B&&da.statCellWide],children:[/* @__PURE__ */W(S,{style:[da.statLabel,{color:w.textMuted,fontFamily:s}],children:"Wager"}),/* @__PURE__ */W(S,{style:[da.statValue,{color:k,fontFamily:s}],children:$t(g)})]}),null!=L&&L>0&&/* @__PURE__ */T(z,{style:[da.statCell,B&&da.statCellWide],children:[/* @__PURE__ */W(S,{style:[da.statLabel,{color:w.textMuted,fontFamily:s}],children:"Potential win"}),/* @__PURE__ */W(S,{style:[da.statValue,{color:w.heading??w.text,fontWeight:"700",fontFamily:s}],children:$t(L)})]})]})]}),p.length>0&&/* @__PURE__ */T(z,{style:[da.summaryCard,B&&da.summaryCardWide,{backgroundColor:x,borderColor:w.border},A],children:[/* @__PURE__ */W(S,{style:[da.summaryHeading,B&&da.summaryHeadingWide,{color:se(c),fontFamily:d,marginBottom:8}],children:"Your picks"}),/* @__PURE__ */W(z,{style:da.pickList,children:p.map((e,t)=>{const n=y?.[e.id],o="yes"===n;/* @__PURE__ */
275
- return T(z,{style:[da.pickRow,{backgroundColor:w.backgroundAlt}],children:[
269
+ /* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:N.primary,marginBottom:4},children:ie.overloadTitle}),null!=o&&/* @__PURE__ */T(S,{style:{fontSize:12,color:N.textMuted,marginBottom:8},children:["Currently winning up to ",
270
+ /* @__PURE__ */W(S,{style:{color:N.heading??N.text,fontWeight:"700"},children:Qt(o)}),` with ${e} picks`]}),
271
+ /* @__PURE__ */W(ua,{tiers:J.map(e=>({count:e,payout20:R[e]??0})),selectedCount:void 0,onSelect:e=>{I(e),te()},colors:N,bodyFont:a.bodyFont,extraBetAmount:20!==n?n:void 0,columnLabel:ie.tableColumnLabel,buttonLabel:ie.tierButtonLabel})]})})():/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(S,{style:{fontSize:12,color:N.textMuted,flex:1},children:[1===ee?"Add ":"Add up to ",/* @__PURE__ */T(S,{style:{color:N.primary,fontWeight:"700"},children:[ee," more pick",1!==ee?"s":""]})]}),/* @__PURE__ */W(B,{onPress:te,style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:N.buttonPrimary},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:N.buttonPrimaryText},children:"Add picks"})})]})})]})})}),l&&k?/* @__PURE__ */W(z,{style:{marginTop:12,alignItems:"flex-end"},children:/* @__PURE__ */W(S,{style:[ba.errorText,{color:N.error}],children:k})}):null]})}var ba=k.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},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"}}),wa=m.select({ios:"Menlo",default:"monospace"});function xa({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,placedEntry:i}=gi(),l=n.colors,{width:a}=v(),c=a>=640;/* @__PURE__ */
272
+ return T(z,{style:Ca.titleRow,children:[/* @__PURE__ */T(z,{style:Ca.titleText,children:[/* @__PURE__ */W(S,{style:[Ca.title,c&&Ca.titleWide,{color:se(n),fontFamily:o}],children:"Entry Placed!"}),/* @__PURE__ */W(zl,{onBack:e,hideActions:t,children:/* @__PURE__ */W(S,{style:[Ca.message,{color:l.textMuted,fontFamily:r}],children:i?/* @__PURE__ */T(F,{children:["Entry"," ",
273
+ /* @__PURE__ */T(S,{style:{color:l.primary,fontWeight:"600",fontFamily:wa},children:["#",i.id]})," ","successfully submitted"]}):"Your entry has been successfully submitted"})})]}),/* @__PURE__ */W(z,{style:[Ca.checkCircle,c&&Ca.checkCircleWide,{backgroundColor:`${l.success}20`}],children:/* @__PURE__ */W(A,{width:c?28:24,height:c?28:24,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"M5 13l4 4L19 7",stroke:l.success,strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})})})]})}function ka({onPlayAgain:e,onDone:t,onShare:n}){const{theme:o,reset:r,placedEntry:i,selectedGame:l,selectedPropositions:a,selections:c,betAmount:s}=gi();return o.colors,/* @__PURE__ */T(z,{style:Ca.footer,children:[/* @__PURE__ */W(lt,{theme:o,variant:"secondary",onPress:()=>{r(),e?.()},children:"Place Another"}),t&&/* @__PURE__ */W(lt,{theme:o,variant:"primary",onPress:t,children:"Done"})]})}function Sa({onPlayAgain:t,onDone:n,onBack:o,onShare:r,hideTitle:i,hideActions:l}){const a=gi(),{theme:c,bodyFont:s,headingFont:d,selectedGame:h,placedEntry:u,betAmount:g,selectedPropositionIds:f,selectedPropositions:p,selections:y,payouts:m,onShare:b}=a,w=c.colors,x=be(c),k=w.textAlt??w.text,{width:C}=v(),B=C>=640,A={shadowColor:"#000",shadowOpacity:"dark"===c.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2},L=u?.proposition_ids?u.proposition_ids.length:f.length,R=m[L]??null,D=e.useRef(!1);return e.useEffect(()=>{u&&h?D.current=!1:(a.goToSportSelection(),D.current||(D.current=!0,t?t():n?.()))},[u,h,a,t,n]),u?/* @__PURE__ */T(z,{style:Ca.container,children:[!i&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(xa,{onBack:o,hideActions:l})}),/* @__PURE__ */T(z,{style:[Ca.content,{gap:B?16:12}],children:[/* @__PURE__ */T(z,{style:[Ca.summaryCard,B&&Ca.summaryCardWide,{backgroundColor:x,borderColor:w.border},A],children:[/* @__PURE__ */T(z,{style:Ca.summaryHeader,children:[(()=>{const e=h?h.allowed_propositions&&h.allowed_propositions.length>0&&h.game_name.replace(/\s+\d+\s*$/,"").trim()||h.game_name:"Entry summary";return h?/* @__PURE__ */W(z,{style:{flex:1,minWidth:0},children:/* @__PURE__ */W(pl,{iconUrl:Ze(h),gameName:e,height:18,chipColor:w.primary,textColor:w.text,iconColor:w.primaryText,accentColor:c.brand?.accent})}):/* @__PURE__ */W(S,{numberOfLines:1,style:[Ca.summaryHeading,B&&Ca.summaryHeadingWide,{color:se(c),fontFamily:d,flex:1}],children:e})})(),/* @__PURE__ */W(z,{style:{backgroundColor:`${w.primary}15`,borderRadius:999,paddingHorizontal:8,paddingVertical:2,flexShrink:0},children:/* @__PURE__ */T(S,{style:{color:w.primary,fontSize:12,fontWeight:"600",fontFamily:s},children:[L," pick",1!==L?"s":""]})})]}),/* @__PURE__ */T(z,{style:Ca.statsGrid,children:[
274
+ /* @__PURE__ */T(z,{style:[Ca.statCell,B&&Ca.statCellWide],children:[/* @__PURE__ */W(S,{style:[Ca.statLabel,{color:w.textMuted,fontFamily:s}],children:"Selections"}),/* @__PURE__ */W(S,{style:[Ca.statValue,{color:k,fontFamily:s}],children:L})]}),g>0&&/* @__PURE__ */T(z,{style:[Ca.statCell,B&&Ca.statCellWide],children:[/* @__PURE__ */W(S,{style:[Ca.statLabel,{color:w.textMuted,fontFamily:s}],children:"Wager"}),/* @__PURE__ */W(S,{style:[Ca.statValue,{color:k,fontFamily:s}],children:Qt(g)})]}),null!=R&&R>0&&/* @__PURE__ */T(z,{style:[Ca.statCell,B&&Ca.statCellWide],children:[/* @__PURE__ */W(S,{style:[Ca.statLabel,{color:w.textMuted,fontFamily:s}],children:"Potential win"}),/* @__PURE__ */W(S,{style:[Ca.statValue,{color:w.heading??w.text,fontWeight:"700",fontFamily:s}],children:Qt(R)})]})]})]}),p.length>0&&/* @__PURE__ */T(z,{style:[Ca.summaryCard,B&&Ca.summaryCardWide,{backgroundColor:x,borderColor:w.border},A],children:[/* @__PURE__ */W(S,{style:[Ca.summaryHeading,B&&Ca.summaryHeadingWide,{color:se(c),fontFamily:d,marginBottom:8}],children:"Your picks"}),/* @__PURE__ */W(z,{style:Ca.pickList,children:p.map((e,t)=>{const n=y?.[e.id],o="yes"===n;/* @__PURE__ */
275
+ return T(z,{style:[Ca.pickRow,{backgroundColor:w.backgroundAlt}],children:[
276
276
  /* @__PURE__ */W(z,{style:{width:20,height:20,borderRadius:10,backgroundColor:w.primary,alignItems:"center",justifyContent:"center",flexShrink:0},children:/* @__PURE__ */W(S,{style:{color:w.primaryText,fontSize:10,fontWeight:"700",fontFamily:s},children:t+1})}),
277
- /* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */T(S,{numberOfLines:1,style:{color:k,fontSize:B?14:12,fontWeight:"500",fontFamily:s},children:[rn(e)?null:/* @__PURE__ */T(v,{children:[e.home_team," ",
278
- /* @__PURE__ */W(S,{style:{color:w.textMuted},children:"vs"})," "]}),e.away_team]}),/* @__PURE__ */W(S,{numberOfLines:1,style:{color:w.textMuted,fontSize:11,fontFamily:s},children:e.description})]}),null!=n&&/* @__PURE__ */W(ht,{theme:c,size:"sm",value:o?"yes":"no",style:{alignSelf:"center",flexShrink:0}})]},e.id)})})]})]})]}):null}var da=k.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 ha({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o}=$i(),{width:i}=F(),r=i>=640;/* @__PURE__ */
279
- return T(z,{style:ga.header,children:[/* @__PURE__ */W(S,{style:[ga.title,{fontSize:r?24:20,color:se(n),fontFamily:o}],children:"Your Entries"}),/* @__PURE__ */W(dl,{onBack:e,hideActions:t})]})}function ua({onSelectEntry:e,onBack:t,hideTitle:n,hideActions:o}){const{theme:i,apiUrl:r,apiKey:l,fetchImpl:a,getAuthHeaders:c,userId:s,demoEntries:d,demoGames:h,demoPropositions:u,renderTeamLogo:g,filterSport:f}=$i();/* @__PURE__ */
280
- return T(z,{style:ga.container,children:[!n&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(ha,{onBack:t,hideActions:o})}),/* @__PURE__ */W(z,{style:ga.content,children:/* @__PURE__ */W(ol,{apiUrl:r,apiKey:l,fetchImpl:a,getAuthHeaders:c,userId:s,demoEntries:d,demoGames:h,demoPropositions:u,onSelectEntry:e,theme:i,renderTeamLogo:g,filterSport:f})})]})}var ga=k.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function fa({onBack:e,hideActions:t,backLabel:n="Category"}={}){const{theme:o,selectedCategory:i}=$i(),r=o.colors,l=Ge(o),{width:a}=F(),c=a>=640;/* @__PURE__ */
281
- return T(z,{style:c&&ma.headerWide,children:[/* @__PURE__ */W(S,{style:[ma.sectionTitle,c&&ma.sectionTitleWide,{color:r.primary,fontFamily:l}],children:cn(i)}),/* @__PURE__ */W(dl,{onBack:e,hideActions:t,label:e?n:void 0})]})}function pa({onCancel:e}){const{theme:t,screenSize:n}=$i(),o=t.colors;return e&&"mobile"!==n?/* @__PURE__ */W(z,{style:ma.footer,children:/* @__PURE__ */W(B,{onPress:e,style:[ma.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[ma.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null}function ya({onSelectSport:t,onCancel:n,hideTitle:o,hideActions:i,renderSportLogo:r,renderSportTagline:l,backLabel:a,comingSoonSports:c}){const{theme:s,propositionsForSportPicker:d,sportSummaries:h,loading:u,setSelectedSport:g,clearSelectedGame:f,selectedCategory:p,sportBaseKey:y,displaySportName:m}=$i(),b=s.colors,w=be(s),x=Ge(s),k=Ne(s),C=se(s),{width:v}=F(),A=v>=640,R=A?48:40,[L,D]=e.useState(null),M=en(d),P=Object.keys(M);return u?/* @__PURE__ */W(z,{style:ma.container,children:/* @__PURE__ */W(_n,{colors:ke(s),bodyFont:k,variant:"sport",categoryCount:P.length>0?P.length:2})}):/* @__PURE__ */T(z,{style:ma.container,children:[!o&&/* @__PURE__ */W(z,{style:ma.titleWrap,children:/* @__PURE__ */W(fa,{onBack:n,hideActions:i,backLabel:a})}),/* @__PURE__ */W(z,{style:ma.content,children:/* @__PURE__ */T(z,{style:ma.grid,children:[P.map(e=>{const n=h.find(t=>t.key===e),o=n?.active_props??M[e].length,i=l?.(e,o)??(n?`${a=n.games_today} game${1===a?"":"s"} today · ${c=n.active_props} pick${1===c?"":"s"} available`:function(e,t){return 0===e?"racing"===t?"No races today":"casino"===t?"No games today":"No picks available":"racing"===t?`${e} race${1===e?"":"s"} today`:"casino"===t?`${e} game${1===e?"":"s"} available`:`${e} pick${1===e?"":"s"} available`}(o,p));var a,c;const s=m(e),d=L===e,u=n?n.games_today>0:o>0;/* @__PURE__ */
282
- return T(B,{onPress:()=>{g(e),f(),t?.(e)},...rt(()=>D(e),()=>D(t=>t===e?null:t)),style:[ma.gridCard,A&&ma.gridCardWide,{backgroundColor:w,borderColor:d?b.primary:b.border},ma.gridCardRaised],activeOpacity:.85,children:[r?r(e):/* @__PURE__ */W(Fl,{gameKey:e,size:R,footer:null,sportBaseKey:y,title:`${s} button`}),
283
- /* @__PURE__ */T(z,{style:ma.gridText,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[ma.gridName,A&&ma.gridNameWide,{color:C,fontFamily:x}],children:s}),/* @__PURE__ */T(z,{style:ma.gridTaglineRow,children:[u?/* @__PURE__ */W(z,{style:[ma.liveDot,{backgroundColor:b.success}]}):null,/* @__PURE__ */W(S,{numberOfLines:1,style:[ma.gridMeta,{color:b.primary,fontFamily:k}],children:i})]})]}),
284
- /* @__PURE__ */W(z,{style:ma.gridChevron,children:/* @__PURE__ */W(zt,{size:20,color:b.textMuted})})]},e)}),c?.map(e=>{const{game:t,league:n}=function(e,t){const n=e.match(/^(.*?)\s*\(([^)]+)\)\s*$/);return n?{game:n[1].trim(),league:n[2].trim()}:{game:e,league:t}}(e.label,e.short??qt(e.key,y));/* @__PURE__ */
285
- return T(z,{style:[ma.gridCard,A&&ma.gridCardWide,{backgroundColor:ne(b.backgroundAlt,.4),borderColor:ne(b.border,.7)}],children:[
286
- /* @__PURE__ */W(z,{style:ma.comingSoonLogo,children:r?r(e.key):/* @__PURE__ */W(Fl,{gameKey:e.key,short:e.short,size:R,footer:null,sportBaseKey:y,title:`${e.label} button`})}),
287
- /* @__PURE__ */T(z,{style:ma.gridText,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[ma.gridName,A&&ma.gridNameWide,{color:b.textMuted,fontFamily:x}],children:n&&n!==t?`${t} · ${n}`:t}),/* @__PURE__ */W(S,{numberOfLines:1,style:[ma.gridMeta,ma.gridMetaSpaced,{color:b.textMuted,fontFamily:k}],children:(o=e.seasonStart,o?`Starts ${o}`:"Coming soon")})]}),
288
- /* @__PURE__ */T(z,{style:[ma.soonPill,{backgroundColor:b.backgroundAlt}],children:[/* @__PURE__ */W(Ft,{size:12,color:b.textMuted}),/* @__PURE__ */W(S,{style:[ma.soonPillText,{color:b.textMuted,fontFamily:k}],children:"Soon"})]})]},e.key);var o})]})})]})}var ma=k.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:12},gridCard:{flexBasis:"100%",flexGrow:1,minWidth:0,flexDirection:"row",alignItems:"center",gap:12,borderRadius:16,borderWidth:1,paddingHorizontal:12,paddingVertical:12},gridCardWide:{flexBasis:"48%",gap:14,paddingHorizontal:16,paddingVertical:16},gridCardRaised:{shadowColor:"#000",shadowOpacity:.1,shadowRadius:6,shadowOffset:{width:0,height:4},elevation:2},gridText:{flexDirection:"column",alignItems:"flex-start",minWidth:0,flexShrink:1,flexGrow:1},gridName:{fontSize:14,fontWeight:"800",letterSpacing:-.35,lineHeight:18,maxWidth:"100%"},gridNameWide:{fontSize:16,lineHeight:20},gridTaglineRow:{marginTop:4,flexDirection:"row",alignItems:"center",gap:6,minWidth:0},gridMeta:{fontSize:9.3,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.1,flexShrink:1},gridMetaSpaced:{marginTop:4},liveDot:{width:6,height:6,borderRadius:3},gridChevron:{marginLeft:"auto"},comingSoonLogo:{opacity:.6},soonPill:{marginLeft:"auto",flexDirection:"row",alignItems:"center",gap:4,borderRadius:999,paddingHorizontal:8,paddingVertical:4},soonPillText:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},footer:{flexDirection:"row",alignItems:"center",paddingTop:16},secondaryBtn:{paddingHorizontal:20,paddingVertical:10,borderRadius:8},secondaryBtnText:{fontSize:14,fontWeight:"500"}});function ba(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 wa({ink:e,ball:t,size:n,balls:o=1}){/* @__PURE__ */
277
+ /* @__PURE__ */T(z,{style:{flex:1,minWidth:0},children:[/* @__PURE__ */T(S,{numberOfLines:1,style:{color:k,fontSize:B?14:12,fontWeight:"500",fontFamily:s},children:[nn(e)?null:/* @__PURE__ */T(F,{children:[e.home_team," ",
278
+ /* @__PURE__ */W(S,{style:{color:w.textMuted},children:"vs"})," "]}),e.away_team]}),/* @__PURE__ */W(S,{numberOfLines:1,style:{color:w.textMuted,fontSize:11,fontFamily:s},children:e.description})]}),null!=n&&/* @__PURE__ */W(dt,{theme:c,size:"sm",value:o?"yes":"no",style:{alignSelf:"center",flexShrink:0}})]},e.id)})})]})]})]}):null}var Ca=k.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 Ba({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o}=gi(),{width:r}=v(),i=r>=640;/* @__PURE__ */
279
+ return T(z,{style:va.header,children:[/* @__PURE__ */W(S,{style:[va.title,{fontSize:i?24:20,color:se(n),fontFamily:o}],children:"Your Entries"}),/* @__PURE__ */W(zl,{onBack:e,hideActions:t})]})}function za({onSelectEntry:e,onBack:t,hideTitle:n,hideActions:o}){const{theme:r,apiUrl:i,apiKey:l,fetchImpl:a,getAuthHeaders:c,userId:s,demoEntries:d,demoGames:h,demoPropositions:u,renderTeamLogo:g,filterSport:f}=gi();/* @__PURE__ */
280
+ return T(z,{style:va.container,children:[!n&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(Ba,{onBack:t,hideActions:o})}),/* @__PURE__ */W(z,{style:va.content,children:/* @__PURE__ */W(bl,{apiUrl:i,apiKey:l,fetchImpl:a,getAuthHeaders:c,userId:s,demoEntries:d,demoGames:h,demoPropositions:u,onSelectEntry:e,theme:r,renderTeamLogo:g,filterSport:f})})]})}var va=k.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function Fa({onBack:e,hideActions:t,backLabel:n="Category"}={}){const{theme:o,selectedCategory:r}=gi(),i=o.colors,l=Ge(o),{width:a}=v(),c=a>=640;/* @__PURE__ */
281
+ return T(z,{style:c&&Aa.headerWide,children:[/* @__PURE__ */W(S,{style:[Aa.sectionTitle,c&&Aa.sectionTitleWide,{color:i.primary,fontFamily:l}],children:ln(r)}),/* @__PURE__ */W(zl,{onBack:e,hideActions:t,label:e?n:void 0})]})}function Wa({onCancel:e}){const{theme:t,screenSize:n}=gi(),o=t.colors;return e&&"mobile"!==n?/* @__PURE__ */W(z,{style:Aa.footer,children:/* @__PURE__ */W(B,{onPress:e,style:[Aa.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[Aa.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null}function Ta({onSelectSport:t,onCancel:n,hideTitle:o,hideActions:r,renderSportLogo:i,renderSportTagline:l,backLabel:a,comingSoonSports:c}){const{theme:s,propositionsForSportPicker:d,sportSummaries:h,loading:u,setSelectedSport:g,clearSelectedGame:f,selectedCategory:p,sportBaseKey:y,displaySportName:m}=gi(),b=s.colors,w=be(s),x=Ge(s),k=Ne(s),C=se(s),{width:F}=v(),A=F>=640,L=A?48:40,[R,D]=e.useState(null),M=$t(d),P=Object.keys(M);return u?/* @__PURE__ */W(z,{style:Aa.container,children:/* @__PURE__ */W(Jn,{colors:ke(s),bodyFont:k,variant:"sport",categoryCount:P.length>0?P.length:2})}):/* @__PURE__ */T(z,{style:Aa.container,children:[!o&&/* @__PURE__ */W(z,{style:Aa.titleWrap,children:/* @__PURE__ */W(Fa,{onBack:n,hideActions:r,backLabel:a})}),/* @__PURE__ */W(z,{style:Aa.content,children:/* @__PURE__ */T(z,{style:Aa.grid,children:[P.map(e=>{const n=h.find(t=>t.key===e),o=n?.active_props??M[e].length,r=l?.(e,o)??(n?`${a=n.games_today} game${1===a?"":"s"} today · ${c=n.active_props} pick${1===c?"":"s"} available`:function(e,t){return 0===e?"racing"===t?"No races today":"casino"===t?"No games today":"No picks available":"racing"===t?`${e} race${1===e?"":"s"} today`:"casino"===t?`${e} game${1===e?"":"s"} available`:`${e} pick${1===e?"":"s"} available`}(o,p));var a,c;const s=m(e),d=R===e,u=n?n.games_today>0:o>0;/* @__PURE__ */
282
+ return T(B,{onPress:()=>{g(e),f(),t?.(e)},...it(()=>D(e),()=>D(t=>t===e?null:t)),style:[Aa.gridCard,A&&Aa.gridCardWide,{backgroundColor:w,borderColor:d?b.primary:b.border},Aa.gridCardRaised],activeOpacity:.85,children:[i?i(e):/* @__PURE__ */W(Nl,{gameKey:e,size:L,footer:null,sportBaseKey:y,title:`${s} button`}),
283
+ /* @__PURE__ */T(z,{style:Aa.gridText,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[Aa.gridName,A&&Aa.gridNameWide,{color:C,fontFamily:x}],children:s}),/* @__PURE__ */T(z,{style:Aa.gridTaglineRow,children:[u?/* @__PURE__ */W(z,{style:[Aa.liveDot,{backgroundColor:b.success}]}):null,/* @__PURE__ */W(S,{numberOfLines:1,style:[Aa.gridMeta,{color:b.primary,fontFamily:k}],children:r})]})]}),
284
+ /* @__PURE__ */W(z,{style:Aa.gridChevron,children:/* @__PURE__ */W(Bt,{size:20,color:b.textMuted})})]},e)}),c?.map(e=>{const{game:t,league:n}=function(e,t){const n=e.match(/^(.*?)\s*\(([^)]+)\)\s*$/);return n?{game:n[1].trim(),league:n[2].trim()}:{game:e,league:t}}(e.label,e.short??Ut(e.key,y));/* @__PURE__ */
285
+ return T(z,{style:[Aa.gridCard,A&&Aa.gridCardWide,{backgroundColor:ne(b.backgroundAlt,.4),borderColor:ne(b.border,.7)}],children:[
286
+ /* @__PURE__ */W(z,{style:Aa.comingSoonLogo,children:i?i(e.key):/* @__PURE__ */W(Nl,{gameKey:e.key,short:e.short,size:L,footer:null,sportBaseKey:y,title:`${e.label} button`})}),
287
+ /* @__PURE__ */T(z,{style:Aa.gridText,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[Aa.gridName,A&&Aa.gridNameWide,{color:b.textMuted,fontFamily:x}],children:n&&n!==t?`${t} · ${n}`:t}),/* @__PURE__ */W(S,{numberOfLines:1,style:[Aa.gridMeta,Aa.gridMetaSpaced,{color:b.textMuted,fontFamily:k}],children:(o=e.seasonStart,o?`Starts ${o}`:"Coming soon")})]}),
288
+ /* @__PURE__ */T(z,{style:[Aa.soonPill,{backgroundColor:b.backgroundAlt}],children:[/* @__PURE__ */W(zt,{size:12,color:b.textMuted}),/* @__PURE__ */W(S,{style:[Aa.soonPillText,{color:b.textMuted,fontFamily:k}],children:"Soon"})]})]},e.key);var o})]})})]})}var Aa=k.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:12},gridCard:{flexBasis:"100%",flexGrow:1,minWidth:0,flexDirection:"row",alignItems:"center",gap:12,borderRadius:16,borderWidth:1,paddingHorizontal:12,paddingVertical:12},gridCardWide:{flexBasis:"48%",gap:14,paddingHorizontal:16,paddingVertical:16},gridCardRaised:{shadowColor:"#000",shadowOpacity:.1,shadowRadius:6,shadowOffset:{width:0,height:4},elevation:2},gridText:{flexDirection:"column",alignItems:"flex-start",minWidth:0,flexShrink:1,flexGrow:1},gridName:{fontSize:14,fontWeight:"800",letterSpacing:-.35,lineHeight:18,maxWidth:"100%"},gridNameWide:{fontSize:16,lineHeight:20},gridTaglineRow:{marginTop:4,flexDirection:"row",alignItems:"center",gap:6,minWidth:0},gridMeta:{fontSize:9.3,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.1,flexShrink:1},gridMetaSpaced:{marginTop:4},liveDot:{width:6,height:6,borderRadius:3},gridChevron:{marginLeft:"auto"},comingSoonLogo:{opacity:.6},soonPill:{marginLeft:"auto",flexDirection:"row",alignItems:"center",gap:4,borderRadius:999,paddingHorizontal:8,paddingVertical:4},soonPillText:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},footer:{flexDirection:"row",alignItems:"center",paddingTop:16},secondaryBtn:{paddingHorizontal:20,paddingVertical:10,borderRadius:8},secondaryBtnText:{fontSize:14,fontWeight:"500"}});function La(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 Ra({ink:e,ball:t,size:n,balls:o=1}){/* @__PURE__ */
289
289
  return T(A,{width:n,height:n,viewBox:"2 12 76 62",fill:"none",children:[
290
290
  /* @__PURE__ */W(M,{x1:"9",y1:"18",x2:"71",y2:"18",stroke:e,strokeWidth:2.5,strokeLinecap:"round"}),
291
291
  /* @__PURE__ */W(H,{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}),
292
292
  /* @__PURE__ */W(H,{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"}),
293
- /* @__PURE__ */W(D,{cx:"40",cy:"64",rx:"18",ry:"4.5",fill:"none",stroke:e,strokeWidth:2.2}),(o>=2?[{cx:33,cy:52,r:6.6},{cx:48,cy:49,r:6.6}]:[{cx:40,cy:50,r:8}]).map((e,n)=>/* @__PURE__ */W(R,{cx:e.cx,cy:e.cy,r:e.r,fill:t},n))]})}function xa({ink:e,ball:t,size:n}){/* @__PURE__ */
293
+ /* @__PURE__ */W(D,{cx:"40",cy:"64",rx:"18",ry:"4.5",fill:"none",stroke:e,strokeWidth:2.2}),(o>=2?[{cx:33,cy:52,r:6.6},{cx:48,cy:49,r:6.6}]:[{cx:40,cy:50,r:8}]).map((e,n)=>/* @__PURE__ */W(L,{cx:e.cx,cy:e.cy,r:e.r,fill:t},n))]})}function Da({ink:e,ball:t,size:n}){/* @__PURE__ */
294
294
  return T(A,{width:n,height:n,viewBox:"0 0 100 100",fill:"none",children:[
295
- /* @__PURE__ */W(R,{cx:"50",cy:"50",r:"34",stroke:e,strokeWidth:3,opacity:.9}),
296
- /* @__PURE__ */W(R,{cx:"50",cy:"50",r:"23",stroke:e,strokeWidth:3,opacity:.65}),
297
- /* @__PURE__ */W(R,{cx:"50",cy:"50",r:"8",fill:t}),
295
+ /* @__PURE__ */W(L,{cx:"50",cy:"50",r:"34",stroke:e,strokeWidth:3,opacity:.9}),
296
+ /* @__PURE__ */W(L,{cx:"50",cy:"50",r:"23",stroke:e,strokeWidth:3,opacity:.65}),
297
+ /* @__PURE__ */W(L,{cx:"50",cy:"50",r:"8",fill:t}),
298
298
  /* @__PURE__ */W(M,{x1:"80",y1:"20",x2:"55",y2:"45",stroke:e,strokeWidth:4,strokeLinecap:"round"}),
299
- /* @__PURE__ */W(H,{d:"M50 50 l8 -3 -3 8 z",fill:e})]})}function ka({ink:e,ball:t,size:n}){const o=[{x:16,h:22},{x:40,h:40},{x:64,h:60}];/* @__PURE__ */
299
+ /* @__PURE__ */W(H,{d:"M50 50 l8 -3 -3 8 z",fill:e})]})}function Ma({ink:e,ball:t,size:n}){const o=[{x:16,h:22},{x:40,h:40},{x:64,h:60}];/* @__PURE__ */
300
300
  return T(A,{width:n,height:n,viewBox:"0 0 100 100",fill:"none",children:[
301
- /* @__PURE__ */W(M,{x1:"10",y1:"84",x2:"90",y2:"84",stroke:e,strokeWidth:2,opacity:.5}),o.map((n,i)=>/* @__PURE__ */W(I,{x:n.x,y:84-n.h,width:16,height:n.h,rx:3.5,fill:i===o.length-1?t:e,opacity:i===o.length-1?1:.5+.22*i},n.x)),
301
+ /* @__PURE__ */W(M,{x1:"10",y1:"84",x2:"90",y2:"84",stroke:e,strokeWidth:2,opacity:.5}),o.map((n,r)=>/* @__PURE__ */W(I,{x:n.x,y:84-n.h,width:16,height:n.h,rx:3.5,fill:r===o.length-1?t:e,opacity:r===o.length-1?1:.5+.22*r},n.x)),
302
302
  /* @__PURE__ */W(H,{d:"M14 60 L38 48 L62 30 L86 14",stroke:e,strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),
303
- /* @__PURE__ */W(H,{d:"M86 14 l-9 1 M86 14 l1 9",stroke:e,strokeWidth:3,strokeLinecap:"round"})]})}function Sa({kind:e,balls:t,...n}){return"safety_net"===e?/* @__PURE__ */W(wa,{...n,balls:t}):/* @__PURE__ */W("pick"===e?ka:xa,{...n})}function Ca({kind:e,size:t=56,balls:n}){const{theme:o}=$i(),i=o.colors,r=o.brand?.chip??i.primary,l=o.brand?.icon??i.primaryText,a=fe(o);/* @__PURE__ */
304
- return W(z,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:r,borderWidth:1,borderColor:ba(l,.16),alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(Sa,{kind:e,ink:l,ball:a,balls:n,size:Math.round(.68*t)})})}function Ba({option:e,renderDividends:t}){const{theme:n}=$i(),o=n.colors,i=Ge(n),r=o.primary,l=fe(n),a=e.dividends??[];return t?/* @__PURE__ */W(v,{children:t(e)}):/* @__PURE__ */T(z,{style:Ra.dividends,children:[/* @__PURE__ */T(z,{style:Ra.dividendRow,children:[/* @__PURE__ */W(S,{style:[Ra.dividendsCaption,{color:o.textMuted}],children:"IF YOU LAND"}),/* @__PURE__ */T(S,{style:[Ra.dividendsCaption,{color:o.textMuted}],children:["$",20," RETURNS"]})]}),a.map((t,n)=>{const a=e.tierLegs?.[n];/* @__PURE__ */
305
- return T(z,{style:Ra.dividendTierRow,children:[/* @__PURE__ */T(z,{style:Ra.dividendLabelCol,children:[/* @__PURE__ */W(S,{style:[Ra.dividendLabel,{color:o.text}],children:t.label}),null!=a&&a>0&&/* @__PURE__ */T(z,{style:Ra.tierLegs,accessibilityElementsHidden:!0,importantForAccessibility:"no-hide-descendants",children:[Array.from({length:a}).map((e,t)=>/* @__PURE__ */W(z,{style:[Ra.tierLegDot,{backgroundColor:r}]},t)),0===t.misses&&/* @__PURE__ */W(z,{style:[Ra.tierLegBall,{backgroundColor:l}]})]})]}),/* @__PURE__ */W(S,{style:[Ra.dividendMult,{color:r,fontFamily:i}],children:$t(t.payout20)})]},t.misses)})]})}function za({option:e,renderDividends:t}){const{theme:o}=$i(),l=o.colors,s=e.dividends??[],d=s.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[h,g]=c(!1),f=a(null),p=a(null),[y,b]=c(null),[w,x]=c(!1),[k,C]=c(null),F="web"===m.OS,A=40+36*Math.max(s.length,1)+12,R=n(()=>{const e=f.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom,o=t.top,i=n<A&&o>n;b({left:t.left,top:i?t.top-6:t.bottom+6,flipUp:i})},[A]);r(()=>{if(!h||!F)return void b(null);R();const e=()=>g(!1),t=()=>R();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[h,F,R]),i(()=>{if(!h)return;if(F){const e=e=>{const t=f.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||p.current&&p.current.contains(n)||g(!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 i=u.get("window").height-(t+o);x(i<A&&t>i),C({x:e,y:t,width:n,height:o})})},[h,F,A]);const L=t?/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:8},children:t(e)}):/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:l.border},children:/* @__PURE__ */T(S,{style:{fontSize:10,fontWeight:"700",color:l.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase"},children:["Dividends for $",20]})}),s.map((e,t)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:0===t?0:1,borderTopColor:l.border,gap:12},children:[/* @__PURE__ */W(S,{style:{fontWeight:"700",color:l.text,fontSize:13,flex:1},children:e.label}),/* @__PURE__ */W(S,{style:{fontWeight:"700",color:e.payout20>0?l.heading??l.text:l.textMuted,fontSize:13,textAlign:"right"},children:e.payout20>0?$t(e.payout20):"—"})]},e.misses))]});/* @__PURE__ */
303
+ /* @__PURE__ */W(H,{d:"M86 14 l-9 1 M86 14 l1 9",stroke:e,strokeWidth:3,strokeLinecap:"round"})]})}function Pa({kind:e,balls:t,...n}){return"safety_net"===e?/* @__PURE__ */W(Ra,{...n,balls:t}):/* @__PURE__ */W("pick"===e?Ma:Da,{...n})}function Ha({kind:e,size:t=56,balls:n}){const{theme:o}=gi(),r=o.colors,i=o.brand?.chip??r.primary,l=o.brand?.icon??r.primaryText,a=fe(o);/* @__PURE__ */
304
+ return W(z,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:i,borderWidth:1,borderColor:La(l,.16),alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(Pa,{kind:e,ink:l,ball:a,balls:n,size:Math.round(.68*t)})})}function Oa({option:e,renderDividends:t}){const{theme:n}=gi(),o=n.colors,r=Ge(n),i=o.primary,l=fe(n),a=e.dividends??[];return t?/* @__PURE__ */W(F,{children:t(e)}):/* @__PURE__ */T(z,{style:Va.dividends,children:[/* @__PURE__ */T(z,{style:Va.dividendRow,children:[/* @__PURE__ */W(S,{style:[Va.dividendsCaption,{color:o.textMuted}],children:"IF YOU LAND"}),/* @__PURE__ */T(S,{style:[Va.dividendsCaption,{color:o.textMuted}],children:["$",20," RETURNS"]})]}),a.map((t,n)=>{const a=e.tierLegs?.[n];/* @__PURE__ */
305
+ return T(z,{style:Va.dividendTierRow,children:[/* @__PURE__ */T(z,{style:Va.dividendLabelCol,children:[/* @__PURE__ */W(S,{style:[Va.dividendLabel,{color:o.text}],children:t.label}),null!=a&&a>0&&/* @__PURE__ */T(z,{style:Va.tierLegs,accessibilityElementsHidden:!0,importantForAccessibility:"no-hide-descendants",children:[Array.from({length:a}).map((e,t)=>/* @__PURE__ */W(z,{style:[Va.tierLegDot,{backgroundColor:i}]},t)),0===t.misses&&/* @__PURE__ */W(z,{style:[Va.tierLegBall,{backgroundColor:l}]})]})]}),/* @__PURE__ */W(S,{style:[Va.dividendMult,{color:i,fontFamily:r}],children:Qt(t.payout20)})]},t.misses)})]})}function Ia({option:e,renderDividends:t}){const{theme:o}=gi(),l=o.colors,s=e.dividends??[],d=s.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[h,g]=c(!1),f=a(null),p=a(null),[y,b]=c(null),[w,x]=c(!1),[k,C]=c(null),v="web"===m.OS,A=40+36*Math.max(s.length,1)+12,L=n(()=>{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<A&&o>n;b({left:t.left,top:r?t.top-6:t.bottom+6,flipUp:r})},[A]);i(()=>{if(!h||!v)return void b(null);L();const e=()=>g(!1),t=()=>L();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[h,v,L]),r(()=>{if(!h)return;if(v){const e=e=>{const t=f.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||p.current&&p.current.contains(n)||g(!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=u.get("window").height-(t+o);x(r<A&&t>r),C({x:e,y:t,width:n,height:o})})},[h,v,A]);const R=t?/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:8},children:t(e)}):/* @__PURE__ */T(F,{children:[/* @__PURE__ */W(z,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:l.border},children:/* @__PURE__ */T(S,{style:{fontSize:10,fontWeight:"700",color:l.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase"},children:["Dividends for $",20]})}),s.map((e,t)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:0===t?0:1,borderTopColor:l.border,gap:12},children:[/* @__PURE__ */W(S,{style:{fontWeight:"700",color:l.text,fontSize:13,flex:1},children:e.label}),/* @__PURE__ */W(S,{style:{fontWeight:"700",color:e.payout20>0?l.heading??l.text:l.textMuted,fontSize:13,textAlign:"right"},children:e.payout20>0?Qt(e.payout20):"—"})]},e.misses))]});/* @__PURE__ */
306
306
  return T(z,{style:{alignSelf:"center",maxWidth:"100%",width:"100%",alignItems:"center"},children:[/* @__PURE__ */T(z,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",columnGap:8,rowGap:4,maxWidth:"100%"},children:[d>0?/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"600",color:l.text},children:["Win up to ",
307
- /* @__PURE__ */W(S,{style:{color:l.heading??l.text},children:$t(d)}),
308
- /* @__PURE__ */T(S,{style:{color:l.textMuted},children:[" for $",20]})]}):null,/* @__PURE__ */T(z,{ref:f,collapsable:!1,style:{position:"relative",alignSelf:"flex-start"},children:[/* @__PURE__ */W(B,{onPress:()=>g(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:h},style:{paddingVertical:4,paddingHorizontal:10,borderRadius:6,backgroundColor:h?l.buttonSecondary:l.background,borderWidth:1,borderColor:h?l.primary??l.border:l.border},children:/* @__PURE__ */W(S,{style:{color:l.text,fontSize:12,fontWeight:"600"},children:h?"Hide dividends":"Show dividends"})}),/* @__PURE__ */W(jn,{visible:h&&!F,anchor:k,onClose:()=>g(!1),flipUp:w,align:"left",children:/* @__PURE__ */W(z,{style:{elevation:8,backgroundColor:l.background,borderRadius:8,borderWidth:1,borderColor:l.border,minWidth:220,shadowColor:"#000",shadowOffset:{width:0,height:6},shadowOpacity:.18,shadowRadius:12,overflow:"hidden"},children:L})})]})]}),h&&F&&y&&"undefined"!=typeof document?G(/* @__PURE__ */W("div",{ref:p,style:{position:"fixed",left:y.left,top:y.top,transform:y.flipUp?"translateY(-100%)":void 0,zIndex:9999,backgroundColor:l.background,border:`1px solid ${l.border}`,borderRadius:8,minWidth:220,overflow:"hidden",boxShadow:"0 8px 24px rgba(0,0,0,0.18)"},children:L}),document.body):null]})}function Fa({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:i}=$i(),r=i.colors,l=Ge(i),a=se(i),s=r.primary,d=r.selectionCard??r.backgroundAlt,{width:h}=F(),u=h>=640,g="safety_net"===e?Math.max(1,(t.detail?.length??2)-1):void 0,f=!!o||(t.dividends?.length??0)>0,p=f&&!!t.dividendsInline,[y,m]=c(!1);/* @__PURE__ */
309
- return T(z,{...rt(()=>m(!0),()=>m(!1)),style:[Ra.card,u&&Ra.cardWide,{backgroundColor:d,borderColor:y?s:r.border,shadowColor:y?s:"#000",shadowOpacity:y?.28:.08,shadowRadius:y?14:8,shadowOffset:{width:0,height:y?12:8},elevation:y?4:1,transform:[{translateY:y?-2:0}]}],children:[/* @__PURE__ */T(B,{onPress:n,activeOpacity:.85,accessibilityRole:"button",style:Ra.cardMain,children:[
310
- /* @__PURE__ */W(Ca,{kind:e,balls:g,size:60}),
311
- /* @__PURE__ */T(z,{style:Ra.cardText,children:[
312
- /* @__PURE__ */W(S,{style:[Ra.cardTitle,{color:a,fontFamily:l}],children:t.label}),t.stat?/* @__PURE__ */W(z,{style:[Ra.statChip,{backgroundColor:ba(s,.12)}],children:/* @__PURE__ */W(S,{style:[Ra.statChipText,{color:s}],children:t.stat.toUpperCase()})}):null,
313
- /* @__PURE__ */W(z,{style:Ra.detailBlock,children:t.detail?.map(e=>/* @__PURE__ */W(S,{style:[Ra.detailLine,{color:r.textMuted}],children:e},e))})]}),
314
- /* @__PURE__ */W(z,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:y?2:0}]},children:/* @__PURE__ */W(A,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:s,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]}),f?/* @__PURE__ */W(z,{style:[Ra.dividendsWrap,{borderTopColor:ba(a,.08)}],children:/* @__PURE__ */W(p?Ba:za,{option:t,renderDividends:o})}):null]})}function va({kind:e,highlights:t,onSelect:n,accessibilityLabel:o}){const{theme:i}=$i(),r=i.colors,l=se(i),a=fe(i),s=r.primary,d=r.selectionCard??r.backgroundAlt,{width:h}=F(),u=h>=640,[g,f]=c(!1);/* @__PURE__ */
315
- return W(z,{...rt(()=>f(!0),()=>f(!1)),style:[Ra.card,u&&Ra.cardWide,{backgroundColor:d,borderColor:g?s:r.border,shadowColor:g?s:"#000",shadowOpacity:g?.28:.08,shadowRadius:g?14:8,shadowOffset:{width:0,height:g?12:8},elevation:g?4:1,transform:[{translateY:g?-2:0}]}],children:/* @__PURE__ */T(B,{onPress:n,activeOpacity:.85,accessibilityRole:"button",accessibilityLabel:o,style:Ra.cardMain,children:[
316
- /* @__PURE__ */W(Ca,{kind:e,size:60}),
317
- /* @__PURE__ */W(z,{style:{flex:1,minWidth:0,gap:8},children:t.map(e=>/* @__PURE__ */T(z,{style:Ra.bulletRow,children:[/* @__PURE__ */W(z,{style:[Ra.dot,{backgroundColor:a}]}),/* @__PURE__ */W(S,{style:[Ra.bulletText,{color:l}],children:e})]},e))}),
318
- /* @__PURE__ */W(z,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:g?2:0}]},children:/* @__PURE__ */W(A,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:s,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})})}function Wa({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o,selectedPropositionCount:i}=$i(),r=Ge(n),l=n.colors,a=Ho(o,i),{width:c}=F(),s=c<640;/* @__PURE__ */
319
- return T(z,{style:[Ra.header,s&&Ra.headerCompact],children:[/* @__PURE__ */W(S,{accessibilityRole:"header",style:[Ra.sectionTitle,s&&Ra.sectionTitleCompact,{color:l.primary,fontFamily:r}],children:a?.title??"About this game"}),/* @__PURE__ */W(dl,{onBack:e,hideActions:t,label:o?`${o.game_name}${a?.subtitle?` · ${a.subtitle}`:""}`:void 0})]})}function Ta({onContinue:e,canContinue:t,continueLabel:n="Continue"}){const{theme:o,screenSize:i}=$i(),r=o.colors;return e&&"mobile"!==i?/* @__PURE__ */W(z,{style:Ra.footer,children:/* @__PURE__ */W(B,{onPress:e,disabled:!t,accessibilityRole:"button",accessibilityState:{disabled:!t},style:[Ra.smallBtn,{backgroundColor:r.buttonPrimary,opacity:t?1:.45}],children:/* @__PURE__ */W(S,{style:[Ra.smallBtnText,{color:r.buttonPrimaryText}],children:n})})}):null}function Aa({onContinue:e,onBack:t,hideTitle:n,config:o,renderDividends:i,backLabel:r="Games"}){const{theme:a,selectedGame:c,selectedPropositionCount:s,setExpectedCorrect:d,handlePropositionCountChange:h,bodyFont:u,screenSize:g}=$i(),f=a.colors,p=Ge(a),y="mobile"===g,{width:m}=F(),b=m>=640,w=l(()=>o??Ho(c,s),[o,c,s]),x=w?.options??[],k=t=>{null!=t?.expectedCorrect&&d(t.expectedCorrect),null!=t?.propositionCount&&h(t.propositionCount),e?.()};if(!c||!w)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:f.textMuted,fontFamily:u},children:"No rule setup required."})});const C=w.kind,B=w.headline??w.heroTitle,v=w.continueLabel??"Continue";/* @__PURE__ */
320
- return T(z,{style:[Ra.container,{backgroundColor:f.background}],children:[t?/* @__PURE__ */W(z,{style:Ra.backRow,children:/* @__PURE__ */W(sl,{onBack:t,label:r})}):null,/* @__PURE__ */T(ut,{style:Ra.inner,children:[n?null:/* @__PURE__ */W(S,{accessibilityRole:"header",style:[Ra.sectionTitle,Ra.sectionTitleInBody,{color:f.primary,fontFamily:p,textAlign:"center"}],children:w.title}),
321
- /* @__PURE__ */T(z,{style:Ra.headerBlock,children:[
322
- /* @__PURE__ */W(el,{iconUrl:Ze(c),gameName:c.game_name,height:y?24:32,chipColor:f.primary,textColor:f.text,iconColor:f.primaryText,accentColor:a.brand?.accent,compact:y}),w.subtitle?/* @__PURE__ */W(S,{style:[Ra.pickSubtitle,{color:f.textMuted}],children:w.subtitle}):null,B||w.heroTagline?/* @__PURE__ */W(S,{style:[Ra.tagline,{color:f.textMuted}],children:w.heroTagline??B}):null]}),
323
- /* @__PURE__ */W(Yl,{}),x.length>0?/* @__PURE__ */W(z,{style:[Ra.cardList,b&&x.length>1&&Ra.cardGrid],children:x.map(e=>/* @__PURE__ */W(z,{style:b&&x.length>1?Ra.cardCell:void 0,children:/* @__PURE__ */W(Fa,{kind:C,option:e,onSelect:()=>k(e),renderDividends:i})},e.id))}):w.highlights&&w.highlights.length>0?/* @__PURE__ */W(va,{kind:C,highlights:w.highlights,onSelect:()=>k(),accessibilityLabel:v}):null]})]})}var Ra=k.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},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 La({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=$i(),i=Ge(n),r=n.colors,{width:l}=F(),a=l<640;/* @__PURE__ */
324
- return T(z,{style:[Ma.header,a&&Ma.headerCompact],children:[/* @__PURE__ */W(S,{style:[Ma.sectionTitle,a&&Ma.sectionTitleCompact,{color:r.primary,fontFamily:i}],children:"The fastest multi"}),/* @__PURE__ */W(dl,{onBack:e,hideActions:t,label:o?.game_name})]})}function Da({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:i,backLabel:r="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:g,quickPickGame:f,goToSportSelection:p}=$i(),y=a.colors,m=Ne(a),b=Ge(a),w=se(a),x=be(a),{width:k}=F(),v=k>=640,[A,R]=c(!1),L=l(()=>i??pi(s),[i,s]),[D,M]=c(()=>L?null!=d&&L.legOptions.includes(d)?d:L.defaultLegs:8),[P,H]=c(()=>L?.defaultStake??20);if(!s||!gi(s)||!L)/* @__PURE__ */return W(z,{style:[Ma.container,{backgroundColor:y.background}],children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No game set available."})});const O=fi(P,D,{operatorMargin:L.operatorMargin,perLegProbability:L.perLegProbability}),I=P>=L.minStake,E=(e,t)=>/* @__PURE__ */T(z,{style:Ma.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[Ma.controlLabelText,{color:y.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[Ma.controlValueText,{color:w}],children:t})]});/* @__PURE__ */
325
- return T(z,{style:[Ma.container,{backgroundColor:y.background}],children:[n?/* @__PURE__ */W(z,{style:Ma.backRow,children:/* @__PURE__ */W(sl,{onBack:n,label:r})}):null,/* @__PURE__ */T(ut,{style:Ma.inner,children:[
326
- /* @__PURE__ */W(Pl,{eyebrow:o?null:"The fastest multi",iconUrl:Ze(s),gameName:s.game_name,tagline:L.tagline}),
327
- /* @__PURE__ */W(Yl,{}),
328
- /* @__PURE__ */T(z,{style:[Ma.ticket,v&&Ma.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[E("Legs",`${D} legs`),
329
- /* @__PURE__ */W(z,{style:Ma.chipRow,children:L.legOptions.map(e=>{const t=e===D;/* @__PURE__ */
330
- return W(B,{onPress:()=>M(e),accessibilityRole:"radio",accessibilityState:{selected:t},activeOpacity:.8,style:[Ma.chip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */W(S,{style:[Ma.chipText,{color:t?y.primaryText:y.textMuted}],children:e})},e)})}),
331
- /* @__PURE__ */T(z,{style:Ma.hintRow,children:[/* @__PURE__ */W(S,{style:[Ma.hintText,{color:y.textMuted}],children:"Easier to land"}),/* @__PURE__ */W(S,{style:[Ma.hintText,{color:y.textMuted}],children:"Bigger prize"})]}),
332
- /* @__PURE__ */T(z,{style:Ma.stakeBlock,children:[E("Stake",$t(P)),
333
- /* @__PURE__ */T(z,{style:[Ma.inputWrap,{borderColor:A?y.borderFocus??y.primary:y.border,backgroundColor:y.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[Ma.inputPrefix,{color:y.textMuted}],children:"$"}),/* @__PURE__ */W(C,{keyboardType:"decimal-pad",placeholder:"Enter stake",placeholderTextColor:y.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>R(!0),onBlur:()=>R(!1),value:P?String(P):"",onChangeText:e=>{if(""===e)return void H(0);const t=Number(e);Number.isFinite(t)&&H((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==L.maxStake?Math.min(t,L.maxStake):t})(t))},style:[Ma.input,{color:y.textAlt??y.text,fontFamily:m}]})]}),
334
- /* @__PURE__ */W(z,{style:Ma.chipRow,children:L.quickStakes.map(e=>{const t=e===P;/* @__PURE__ */
335
- return W(B,{onPress:()=>H(e),activeOpacity:.8,style:[Ma.stakeChip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */T(S,{style:[Ma.chipText,{color:t?y.primaryText:y.textMuted}],children:["$",e]})},e)})}),!I&&P>0?/* @__PURE__ */T(S,{style:[Ma.errorText,{color:y.error}],children:["Minimum stake is ",$t(L.minStake),"."]}):null]}),
336
- /* @__PURE__ */T(z,{style:[Ma.dividendBlock,{borderTopColor:Dl(w,.08)}],children:[
337
- /* @__PURE__ */T(z,{style:Ma.dividendCaptionRow,children:[/* @__PURE__ */T(S,{style:[Ma.dividendCaption,{color:y.textMuted}],children:["If all ",D," land"]}),/* @__PURE__ */T(S,{style:[Ma.dividendCaption,{color:y.textMuted}],children:[$t(P)," returns"]})]}),
338
- /* @__PURE__ */T(z,{style:Ma.dividendMainRow,children:[/* @__PURE__ */T(z,{style:Ma.dividendMainLeft,children:[/* @__PURE__ */W(S,{style:[Ma.perfectTicket,{color:y.text}],children:"Perfect ticket"}),/* @__PURE__ */W(jl,{legs:D})]}),/* @__PURE__ */W(S,{style:[Ma.prize,v&&Ma.prizeWide,{color:y.primary,fontFamily:b}],children:$t(O.prize)})]}),
339
- /* @__PURE__ */T(S,{style:[Ma.multipleLine,{color:y.textMuted}],children:[(j=O.multiple,`×${(Math.round(10*j)/10).toLocaleString("en-US",{maximumFractionDigits:1})}`)," your stake · total return, stake included"]}),
340
- /* @__PURE__ */W(S,{style:[Ma.allOrNothing,{color:y.textMuted}],children:"All or nothing. Miss a single leg and the ticket does not pay."})]})]}),
341
- /* @__PURE__ */T(z,{style:[Ma.modeCards,v&&Ma.modeCardsWide],children:[/* @__PURE__ */W(z,{style:v?Ma.modeCardCell:void 0,children:/* @__PURE__ */W(Nl,{tile:/* @__PURE__ */W(Ml,{iconUrl:Ze(s),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{I&&(h(D),u(D),g(P),p(),t?.())}})}),/* @__PURE__ */W(z,{style:v?Ma.modeCardCell:void 0,children:/* @__PURE__ */W(Nl,{tile:/* @__PURE__ */W(Ml,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{I&&(u(D),g(P),f(s,D,P),e?.())}})})]})]})]});var j}var Ma=k.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},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 Pa({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=$i(),i=Ge(n),r=n.colors;/* @__PURE__ */
342
- return T(z,{style:Oa.titleWrap,children:[/* @__PURE__ */W(S,{style:[Oa.eyebrow,Oa.eyebrowLeft,{color:r.primary,fontFamily:i}],children:"The dividend is set"}),/* @__PURE__ */W(dl,{onBack:e,hideActions:t,label:o?.game_name})]})}function Ha({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:i,backLabel:r="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:g,quickPickGame:f,goToSportSelection:p}=$i(),y=a.colors,m=Ne(a),b=Ge(a),w=se(a),x=be(a),{width:k}=F(),C=k>=640,[v,A]=c(null),[R,L]=c(null),D=l(()=>i??Vo(s),[i,s]),[M,P]=c(()=>D?.defaultDividend??1e4),[H,O]=c(()=>{const e=D?.dividends[0]?.rungs.map(e=>e.legs)??[];return null!=d&&e.includes(d)?d:D?.defaultLegs??9});if(!s||!jo(s)||!D)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No dividend series available."})});const I=D.dividends.find(e=>e.dividend===M)??D.dividends[0],E=I.rungs.find(e=>e.legs===H)??I.rungs[0],j=Math.max(...I.rungs.map(e=>e.legs)),N=Math.min(...I.rungs.map(e=>e.legs));/* @__PURE__ */
343
- return T(z,{style:Oa.container,children:[n?/* @__PURE__ */W(z,{style:Oa.backRow,children:/* @__PURE__ */W(sl,{onBack:n,label:r})}):null,/* @__PURE__ */T(ut,{style:Oa.inner,children:[
344
- /* @__PURE__ */W(Pl,{eyebrow:o?null:"Pick your dividend",iconUrl:Ze(s),gameName:s.game_name,tagline:D.tagline}),
345
- /* @__PURE__ */W(Yl,{}),
346
- /* @__PURE__ */T(z,{style:[Oa.ticket,C&&Oa.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.12,shadowRadius:12,shadowOffset:{width:0,height:8},elevation:1}],children:[(G=$t(I.dividend),/* @__PURE__ */T(z,{style:Oa.sectionLabelRow,children:[/* @__PURE__ */W(S,{style:[Oa.sectionLabelText,{color:y.textMuted}],children:"Set dividend"}),G?/* @__PURE__ */W(S,{style:[Oa.sectionValueText,{color:w}],children:G}):null]})),
347
- /* @__PURE__ */W(Ol,{ariaLabel:"Set dividend",children:D.dividends.map(e=>{const t=e.dividend===M,n=v===e.dividend;/* @__PURE__ */
348
- return T(B,{onPress:()=>P(e.dividend),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...rt(()=>A(e.dividend),()=>A(null)),style:[Oa.dividendTile,Il(C),{backgroundColor:t?Dl(y.primary,.08):"transparent",borderColor:t||n?y.primary:y.border}],children:[/* @__PURE__ */W(S,{style:[Oa.dividendValue,C&&Oa.dividendValueWide,{color:w,fontFamily:b}],children:$t(e.dividend)}),/* @__PURE__ */T(S,{style:[Oa.dividendFrom,{color:y.textMuted}],children:["from ",$t(e.rungs[0]?.stake??0)]})]},e.dividend)})}),
349
- /* @__PURE__ */W(S,{style:[Oa.ticketNote,{color:y.textMuted}],children:"One set amount — it does not move, whatever you spend."}),
350
- /* @__PURE__ */T(z,{style:[Oa.ladderDivider,{borderTopColor:Dl(w,.08)}],children:[
351
- /* @__PURE__ */T(z,{style:Oa.ladderHeaderRow,children:[/* @__PURE__ */W(S,{style:[Oa.ladderHeaderText,{color:y.textMuted}],children:"Legs to land"}),/* @__PURE__ */W(S,{style:[Oa.ladderHeaderText,{color:y.textMuted}],children:"Your stake"})]}),
352
- /* @__PURE__ */W(z,{style:Oa.rungList,children:I.rungs.map(e=>{const t=e.legs===H,n=R===e.legs;/* @__PURE__ */
353
- return T(B,{onPress:()=>O(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...rt(()=>L(e.legs),()=>L(null)),style:[Oa.rungRow,{backgroundColor:t?Dl(y.primary,.08):"transparent",borderColor:t||n?y.primary:y.border}],children:[/* @__PURE__ */T(z,{style:Oa.rungLeft,children:[/* @__PURE__ */T(S,{style:[Oa.rungLegs,{color:y.text}],children:[e.legs," legs",C?e.legs===j?" · the long climb":e.legs===N?" · the sprint":"":""]}),/* @__PURE__ */W(jl,{legs:e.legs})]}),/* @__PURE__ */W(S,{style:[Oa.rungStake,C&&Oa.rungStakeWide,{color:y.primary,fontFamily:b}],children:$t(e.stake)})]},e.legs)})}),
354
- /* @__PURE__ */W(S,{style:[Oa.ticketNote,{color:y.textMuted}],children:"Same dividend on every rung — a little for the long climb, more for the short one."})]})]}),
355
- /* @__PURE__ */T(z,{style:[Oa.cardList,C&&Oa.cardListWide],children:[/* @__PURE__ */W(z,{style:C?Oa.cardCell:void 0,children:/* @__PURE__ */W(Nl,{tile:/* @__PURE__ */W(Ml,{iconUrl:Ze(s),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${E.legs} legs`,`${$t(E.stake)} chasing the ${$t(I.dividend)}`],onSelect:()=>{var e;h((e=E).legs),u(e.legs),g(e.stake),p(),t?.()}})}),/* @__PURE__ */W(z,{style:C?Oa.cardCell:void 0,children:/* @__PURE__ */W(Nl,{tile:/* @__PURE__ */W(Ml,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${E.legs} legs at ${$t(E.stake)}`,"Straight to the bet slip"],onSelect:()=>{u(E.legs),g(E.stake),f(s,E.legs,E.stake),e?.()}})})]})]})]});var G}var Oa=k.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},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:6},dividendTile:{borderWidth:1,borderRadius:12,paddingHorizontal:6,paddingVertical:10,alignItems:"center"},dividendValue:{fontSize:16,fontWeight:"800",letterSpacing:-.32,fontVariant:["tabular-nums"]},dividendValueWide:{fontSize:20,letterSpacing:-.4},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:6},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 Ia({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=$i(),i=Ge(n),r=n.colors;/* @__PURE__ */
356
- return T(z,{style:ja.titleWrap,children:[/* @__PURE__ */W(S,{style:[ja.eyebrow,{color:r.primary,fontFamily:i}],children:"Every step pays"}),/* @__PURE__ */W(dl,{onBack:e,hideActions:t,label:o?.game_name})]})}function Ea({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:i,backLabel:r="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:g,quickPickGame:f,goToSportSelection:p,screenSize:y,bodyFont:m}=$i(),b=a.colors,w="mobile"===y,x=Ge(a),k=se(a),C=fe(a),v=be(a),{width:A}=F(),R=A>=640,[L,D]=c(null),M=l(()=>i??Bi(s),[i,s]),[P,H]=c(()=>M?null!=d&&M.ladders.some(e=>e.legs===d)?d:M.defaultLegs:8),[O,I]=c(()=>M?.defaultStake??50),[E,j]=c(!1);if(!s||!wi(s)||!M)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:b.textMuted,fontFamily:m},children:"No ladders available."})});const N=M.ladders.find(e=>e.legs===P)??M.ladders[0],G=ki(N,O),Y=Si(N,O),V=[...G].reverse(),U=w&&V.length>4,q=U&&!E?V.slice(0,3):V,K=(e,t)=>/* @__PURE__ */T(z,{style:ja.sectionLabelRow,children:[/* @__PURE__ */W(S,{style:[ja.sectionLabelText,{color:b.textMuted}],children:e}),t?/* @__PURE__ */W(S,{style:[ja.sectionLabelValue,{color:k}],children:t}):null]});/* @__PURE__ */
357
- return T(z,{style:[ja.container,{backgroundColor:b.background}],children:[n?/* @__PURE__ */W(z,{style:ja.backRow,children:/* @__PURE__ */W(sl,{onBack:n,label:r})}):null,/* @__PURE__ */T(ut,{style:ja.inner,children:[
358
- /* @__PURE__ */W(Pl,{eyebrow:o?null:"Climb the ladder. Stack the prizes.",iconUrl:Ze(s),gameName:s.game_name,tagline:M.tagline}),
359
- /* @__PURE__ */W(Yl,{}),
360
- /* @__PURE__ */T(z,{style:[ja.builder,R&&ja.builderWide,{backgroundColor:v,borderColor:b.border,shadowColor:k,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[K("Your bet",$t(O)),
361
- /* @__PURE__ */W(z,{style:ja.betRow,children:M.stakes.map(e=>{const t=e===O;/* @__PURE__ */
362
- return W(B,{onPress:()=>I(e),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},style:[ja.betChip,{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border}],children:/* @__PURE__ */T(S,{style:[ja.betChipText,{color:t?b.primaryText:b.textMuted}],children:["$",e]})},e)})}),
363
- /* @__PURE__ */W(S,{style:[ja.betNote,{color:b.textMuted}],children:"Every prize scales with your bet."}),
364
- /* @__PURE__ */T(z,{style:ja.laddersBlock,children:[K(`${M.ladders.length} ladders to choose from`),/* @__PURE__ */W(Ol,{ariaLabel:"Ladder",children:M.ladders.map(e=>{const t=e.legs===P,n=L===e.legs;/* @__PURE__ */
365
- return T(B,{onPress:()=>H(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...rt(()=>D(e.legs),()=>D(null)),style:[ja.ladderTile,Il(R,"17%"),{backgroundColor:t?Dl(b.primary,.08):"transparent",borderColor:t||n?b.primary:b.border}],children:[
366
- /* @__PURE__ */T(S,{style:[ja.ladderTileLabel,{color:b.primary}],children:["Ladder ",e.legs]}),
367
- /* @__PURE__ */W(S,{style:[ja.ladderTilePrize,{color:k,fontFamily:x}],children:$t(Si(e,O))}),
368
- /* @__PURE__ */T(S,{style:[ja.ladderTileNote,{color:b.textMuted}],children:["Win from ",e.firstPayingTier," right"]})]},e.legs)})})]}),
369
- /* @__PURE__ */T(z,{style:[ja.stackTable,{borderTopColor:Dl(k,.08)}],children:[
370
- /* @__PURE__ */T(S,{style:[ja.stackIntro,{color:b.text}],children:["Ladder ",N.legs," wins from ",N.firstPayingTier," right — every tier stacks into the"," ",
371
- /* @__PURE__ */W(S,{style:{fontWeight:"700",color:k},children:$t(Y)})," Full Stack Prize."]}),
372
- /* @__PURE__ */T(z,{style:ja.rungHeader,children:[/* @__PURE__ */W(S,{style:[ja.rungHeaderCaption,{color:b.textMuted}],children:"Get right"}),/* @__PURE__ */T(z,{style:ja.rungHeaderRight,children:[/* @__PURE__ */W(S,{style:[ja.rungHeaderCaption,ja.rungColPrize,{color:b.textMuted}],children:"Tier pays"}),/* @__PURE__ */W(S,{style:[ja.rungHeaderCaption,ja.rungColTotal,{color:b.textMuted}],children:"You collect"})]})]}),
373
- /* @__PURE__ */W(z,{style:ja.rungList,children:q.map(e=>{const t=e.atLeast===N.legs;/* @__PURE__ */
374
- return T(z,{style:ja.rungRow,children:[/* @__PURE__ */T(z,{style:ja.rungLeft,children:[/* @__PURE__ */T(z,{style:ja.rungLabelRow,children:[/* @__PURE__ */T(S,{style:[ja.rungLabel,{color:b.text}],children:[e.atLeast," of ",N.legs]}),t&&R?/* @__PURE__ */W(z,{style:[ja.fullStackChip,{backgroundColor:Dl(C,.35)}],children:/* @__PURE__ */W(S,{style:[ja.fullStackChipText,{color:k}],children:"Full stack"})}):null]}),/* @__PURE__ */W(jl,{legs:e.atLeast,prizeBall:t})]}),/* @__PURE__ */T(z,{style:ja.rungRight,children:[/* @__PURE__ */W(S,{style:[ja.rungPrize,ja.rungColPrice,{color:b.textMuted}],children:$t(e.prize)}),/* @__PURE__ */W(S,{style:[ja.rungCumulative,ja.rungColTotal,R&&ja.rungCumulativeWide,{color:b.primary,fontFamily:x}],children:$t(e.cumulative)})]})]},e.atLeast)})}),U?/* @__PURE__ */W(B,{onPress:()=>j(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:E},style:[ja.tierToggle,{borderColor:b.border}],children:/* @__PURE__ */W(S,{style:[ja.tierToggleText,{color:b.primary}],children:E?"Show fewer tiers":`Show all ${V.length} tiers`})}):null,
375
- /* @__PURE__ */T(S,{style:[ja.stackNote,{color:b.textMuted}],children:["Land below ",N.firstPayingTier," right and the ticket does not pay."]})]})]}),
376
- /* @__PURE__ */T(z,{style:[ja.modeCards,R&&ja.modeCardsWide],children:[/* @__PURE__ */W(z,{style:R?ja.modeCardCell:void 0,children:/* @__PURE__ */W(Nl,{tile:/* @__PURE__ */W(Ml,{iconUrl:Ze(s),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${N.legs} outcomes`,`Win from ${N.firstPayingTier} right — every tier stacks`],onSelect:()=>{h(N.legs),u(N.legs),g(O),p(),t?.()}})}),/* @__PURE__ */W(z,{style:R?ja.modeCardCell:void 0,children:/* @__PURE__ */W(Nl,{tile:/* @__PURE__ */W(Ml,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${N.legs} legs at ${$t(O)}`,"Straight to the bet slip"],onSelect:()=>{u(N.legs),g(O),f(s,N.legs,O),e?.()}})})]})]})]})}var ja=k.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},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:18,fontWeight:"800",letterSpacing:-.36,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:10},rungColPrice:{width:64,textAlign:"right"},rungColPrize:{width:64,textAlign:"right"},rungColTotal:{width:84,textAlign:"right"},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:10,flexShrink:0},rungPrize:{fontSize:11,fontVariant:["tabular-nums"]},rungCumulative:{fontSize:14,fontWeight:"800",fontVariant:["tabular-nums"]},rungCumulativeWide:{fontSize:16},tierToggle:{marginTop:8,borderWidth:1,borderRadius:8,paddingVertical:8,alignItems:"center"},tierToggleText:{fontSize:11,fontWeight:"700"},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 Na({legs:e,right:t}){const{theme:n}=$i(),o=n.colors.primary,i=fe(n);/* @__PURE__ */
377
- return T(z,{style:{flexDirection:"row",alignItems:"center"},children:[Array.from({length:e}).map((e,n)=>/* @__PURE__ */W(z,{style:{width:5,height:5,borderRadius:1.5,marginRight:3,backgroundColor:t?o:"transparent",borderWidth:t?0:1,borderColor:t?void 0:Dl(o,.45),opacity:t?.85:1}},n)),/* @__PURE__ */W(z,{style:{width:7,height:7,borderRadius:999,backgroundColor:i,marginLeft:2}})]})}function Ga({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=$i(),i=Ge(n),r=n.colors;/* @__PURE__ */
378
- return T(z,{style:Va.header,children:[/* @__PURE__ */W(S,{style:[Va.eyebrow,{color:r.primary,fontFamily:i}],children:"All right, or all wrong"}),/* @__PURE__ */W(dl,{onBack:e,hideActions:t,label:o?.game_name})]})}function Ya({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:i,backLabel:r="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:g,quickPickGame:f,goToSportSelection:p}=$i(),y=a.colors,m=Ne(a),b=Ge(a),w=se(a),x=be(a),{width:k}=F(),v=k>=640,[A,R]=c(!1),L=l(()=>i??Ai(s),[i,s]),[D,M]=c(()=>L?null!=d&&L.legOptions.includes(d)?d:L.defaultLegs:8),[P,H]=c(()=>L?.defaultStake??20);if(!s||!Wi(s)||!L)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No mirror available."})});const O=Ti(P,D,{operatorMargin:L.operatorMargin,perLegProbability:L.perLegProbability}),I=P>=L.minStake,E=(e,t)=>/* @__PURE__ */T(z,{style:Va.controlLabel,children:[/* @__PURE__ */W(S,{style:[Va.controlLabelText,{color:y.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[Va.controlValueText,{color:w}],children:t})]}),j=e=>/* @__PURE__ */T(z,{style:Va.winRow,children:[/* @__PURE__ */T(z,{style:Va.winRowLeft,children:[/* @__PURE__ */W(S,{style:[Va.winRowLabel,{color:y.text}],children:e?`All ${D} right`:`All ${D} wrong`}),/* @__PURE__ */W(Na,{legs:D,right:e})]}),/* @__PURE__ */W(S,{style:[Va.winRowPrize,v&&Va.winRowPrizeWide,{color:y.primary,fontFamily:b}],children:$t(O.prize)})]});/* @__PURE__ */
379
- return T(z,{style:Va.container,children:[n?/* @__PURE__ */W(z,{style:Va.backRow,children:/* @__PURE__ */W(sl,{onBack:n,label:r})}):null,/* @__PURE__ */T(ut,{style:Va.inner,children:[
380
- /* @__PURE__ */W(Pl,{eyebrow:o?null:"All right, or all wrong",iconUrl:Ze(s),gameName:s.game_name,tagline:L.tagline}),
381
- /* @__PURE__ */W(Yl,{}),
382
- /* @__PURE__ */T(z,{style:[Va.ticket,v&&Va.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[E("Legs",`${D} legs`),
383
- /* @__PURE__ */W(z,{style:Va.chipRow,children:L.legOptions.map(e=>{const t=e===D;/* @__PURE__ */
384
- return W(B,{onPress:()=>M(e),accessibilityRole:"radio",accessibilityState:{selected:t},style:[Va.legChip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */W(S,{style:[Va.chipText,{color:t?y.primaryText:y.textMuted}],children:e})},e)})}),
385
- /* @__PURE__ */T(z,{style:Va.hintRow,children:[/* @__PURE__ */W(S,{style:[Va.hintText,{color:y.textMuted}],children:"Easier to sweep"}),/* @__PURE__ */W(S,{style:[Va.hintText,{color:y.textMuted}],children:"Bigger prize"})]}),
386
- /* @__PURE__ */T(z,{style:Va.stakeBlock,children:[E("Stake",$t(P)),
387
- /* @__PURE__ */T(z,{style:[Va.inputWrap,{borderColor:A?y.borderFocus??y.primary:y.border,backgroundColor:y.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[Va.inputPrefix,{color:y.textMuted}],children:"$"}),/* @__PURE__ */W(C,{keyboardType:"numeric",placeholder:"Enter stake",placeholderTextColor:y.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>R(!0),onBlur:()=>R(!1),value:P?String(P):"",onChangeText:e=>{if(""===e)return void H(0);const t=Number(e);Number.isFinite(t)&&H((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==L.maxStake?Math.min(t,L.maxStake):t})(t))},style:[Va.input,{color:y.textAlt??y.text,fontFamily:m}]})]}),
388
- /* @__PURE__ */W(z,{style:Va.quickStakeRow,children:L.quickStakes.map(e=>{const t=e===P;/* @__PURE__ */
389
- return W(B,{onPress:()=>H(e),style:[Va.stakeChip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */W(S,{style:[Va.chipText,{color:t?y.primaryText:y.textMuted}],children:`$${e}`})},e)})}),!I&&P>0?/* @__PURE__ */W(S,{style:[Va.errorText,{color:y.error}],children:`Minimum stake is ${$t(L.minStake)}.`}):null]}),
390
- /* @__PURE__ */T(z,{style:[Va.winSection,{borderTopColor:Dl(w,.08)}],children:[
391
- /* @__PURE__ */T(z,{style:Va.winHeader,children:[/* @__PURE__ */W(S,{style:[Va.winHeaderText,{color:y.textMuted}],children:"Two ways to win"}),/* @__PURE__ */W(S,{style:[Va.winHeaderText,{color:y.textMuted}],children:`${$t(P)} pays each`})]}),
392
- /* @__PURE__ */T(z,{style:Va.winRows,children:[j(!0),j(!1)]}),
393
- /* @__PURE__ */W(S,{style:[Va.splitNote,{color:y.textMuted}],children:"Anything in between — a split card — does not pay."})]})]}),
394
- /* @__PURE__ */T(z,{style:[Va.cardList,v&&Va.cardListWide],children:[/* @__PURE__ */W(z,{style:v?Va.cardCell:void 0,children:/* @__PURE__ */W(Nl,{tile:/* @__PURE__ */W(Ml,{iconUrl:Ze(s),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","Aim for the sweep — either direction pays"],onSelect:()=>{I&&(h(D),u(D),g(P),p(),t?.())}})}),/* @__PURE__ */W(z,{style:v?Va.cardCell:void 0,children:/* @__PURE__ */W(Nl,{tile:/* @__PURE__ */W(Ml,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{I&&(u(D),g(P),f(s,D,P),e?.())}})})]})]})]})}var Va=k.create({container:{flex:1,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},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 Ua({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=$i(),i=Ge(n),r=n.colors,{width:l}=F(),a=l<640;/* @__PURE__ */
395
- return T(z,{style:[Ka.header,a&&Ka.headerCompact],children:[/* @__PURE__ */W(S,{style:[Ka.sectionTitle,a&&Ka.sectionTitleCompact,{color:r.primary,fontFamily:i}],children:"Choose your safety net"}),/* @__PURE__ */W(dl,{onBack:e,hideActions:t,label:o?.game_name})]})}function qa({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:i,backLabel:r="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:g,setSelectedRuleId:f,quickPickGame:p,goToSportSelection:y}=$i(),m=a.colors,b=Ne(a),w=Ge(a),x=se(a),k=be(a),{width:v}=F(),A=v>=640,[R,L]=c(!1),D=l(()=>i??Lo(s),[i,s]),[M,P]=c(()=>D?.defaultModeId??"extra_shot"),[H,O]=c(()=>{const e=D?.modes.find(e=>e.id===(D?.defaultModeId??"extra_shot"));return e?null!=d&&e.legOptions.includes(d)?d:e.defaultLegs:8}),[I,E]=c(()=>D?.defaultStake??20);if(!s||!So(s)||!D)/* @__PURE__ */return W(z,{style:[Ka.container,{backgroundColor:m.background}],children:/* @__PURE__ */W(S,{style:{color:m.textMuted,fontFamily:b},children:"No safety net available."})});const j=D.modes.find(e=>e.id===M)??D.modes[0],N=Fo(I,H,j.allowedMisses,D.pricing),G=e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==D.maxStake?Math.min(t,D.maxStake):t},Y=I>=D.minStake,V=(e,t)=>/* @__PURE__ */T(z,{style:Ka.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[Ka.controlLabelText,{color:m.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[Ka.controlValueText,{color:x}],children:t})]}),U=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:o,accessibilityRole:"radio",accessibilityState:{selected:n},activeOpacity:.8,style:[Ka.chip,{backgroundColor:n?m.primary:"transparent",borderColor:n?m.primary:m.border}],children:/* @__PURE__ */W(S,{style:[Ka.chipText,{color:n?m.primaryText:m.textMuted}],children:t})},e),q=[{label:"Perfect",amount:N.perfect},...N.nearMiss.map((e,t)=>({label:`All but ${t+1}`,amount:e}))];/* @__PURE__ */
396
- return T(z,{style:[Ka.container,{backgroundColor:m.background}],children:[n?/* @__PURE__ */W(z,{style:Ka.backRow,children:/* @__PURE__ */W(sl,{onBack:n,label:r})}):null,/* @__PURE__ */T(ut,{style:Ka.inner,children:[
397
- /* @__PURE__ */W(Pl,{eyebrow:o?null:"Choose your safety net",iconUrl:Ze(s),gameName:s.game_name,tagline:D.tagline}),
398
- /* @__PURE__ */W(Yl,{}),
399
- /* @__PURE__ */T(z,{style:[Ka.ticket,A&&Ka.ticketWide,{backgroundColor:k,borderColor:m.border,shadowColor:x,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[V("Safety net",j.label),
400
- /* @__PURE__ */W(z,{style:Ka.chipRow,children:D.modes.map(e=>U(e.id,e.label,e.id===j.id,()=>(e=>{const t=D.modes.find(t=>t.id===e);t&&(P(e),f(t.ruleId),t.legOptions.includes(H)||O(t.legOptions.reduce((e,t)=>Math.abs(t-H)<Math.abs(e-H)?t:e,t.legOptions[0])))})(e.id)))}),
401
- /* @__PURE__ */W(S,{style:[Ka.modeExplain,A&&Ka.modeExplainWide,{color:m.textMuted}],children:j.explain}),
402
- /* @__PURE__ */T(z,{style:Ka.legsBlock,children:[V("Legs",`${H} legs`),
403
- /* @__PURE__ */W(z,{style:Ka.chipRow,children:j.legOptions.map(e=>U(e,String(e),e===H,()=>O(e)))}),
404
- /* @__PURE__ */T(z,{style:Ka.hintRow,children:[/* @__PURE__ */W(S,{style:[Ka.hintText,{color:m.textMuted}],children:"Easier to land"}),/* @__PURE__ */W(S,{style:[Ka.hintText,{color:m.textMuted}],children:"Bigger prizes"})]})]}),
405
- /* @__PURE__ */T(z,{style:Ka.stakeBlock,children:[V("Stake",$t(I)),
406
- /* @__PURE__ */T(z,{style:[Ka.inputWrap,{borderColor:R?m.borderFocus??m.primary:m.border,backgroundColor:m.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[Ka.inputPrefix,{color:m.textMuted}],children:"$"}),/* @__PURE__ */W(C,{keyboardType:"decimal-pad",placeholder:"Enter stake",placeholderTextColor:m.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>L(!0),onBlur:()=>L(!1),value:I?String(I):"",onChangeText:e=>{if(""===e)return void E(0);const t=Number(e);Number.isFinite(t)&&E(G(t))},style:[Ka.input,{color:m.textAlt??m.text,fontFamily:b}]})]}),
407
- /* @__PURE__ */W(z,{style:Ka.chipRow,children:D.quickAdds.map(e=>/* @__PURE__ */W(B,{onPress:()=>E(G((I||0)+e)),activeOpacity:.8,style:[Ka.stakeChip,{backgroundColor:"transparent",borderColor:m.border}],children:/* @__PURE__ */T(S,{style:[Ka.chipText,{color:m.textMuted}],children:["+$",e]})},e))}),!Y&&I>0?/* @__PURE__ */T(S,{style:[Ka.errorText,{color:m.error}],children:["Minimum stake is ",$t(D.minStake),"."]}):null]}),
408
- /* @__PURE__ */T(z,{style:[Ka.prizeBlock,{borderTopColor:Dl(x,.08)}],children:[
409
- /* @__PURE__ */T(z,{style:Ka.prizeCaptionRow,children:[/* @__PURE__ */W(S,{style:[Ka.prizeCaption,{color:m.textMuted}],children:"What you can win"}),/* @__PURE__ */T(S,{style:[Ka.prizeCaption,{color:m.textMuted}],children:[$t(I)," returns"]})]}),
410
- /* @__PURE__ */T(z,{style:Ka.prizeRows,children:[q.map(e=>/* @__PURE__ */T(z,{style:Ka.prizeRow,children:[/* @__PURE__ */W(S,{style:[Ka.prizeRowLabel,A&&Ka.prizeRowLabelWide,{color:m.text}],children:e.label}),/* @__PURE__ */W(S,{style:[Ka.prizeRowAmount,A&&Ka.prizeRowAmountWide,{color:m.primary,fontFamily:w}],children:$t(Math.round(e.amount))})]},e.label)),/* @__PURE__ */T(z,{style:[Ka.sweepRow,{backgroundColor:m.primary}],children:[/* @__PURE__ */T(z,{style:Ka.sweepLeft,children:[/* @__PURE__ */W(S,{style:[Ka.sweepLabel,A&&Ka.sweepLabelWide,{color:m.primaryText,fontFamily:w}],children:"Clean sweep"}),/* @__PURE__ */W(S,{style:[Ka.sweepSub,{color:m.primaryText}],children:"every leg right — all prizes"})]}),/* @__PURE__ */W(S,{style:[Ka.sweepAmount,A&&Ka.sweepAmountWide,{color:m.primaryText,fontFamily:w}],children:$t(Math.round(N.sweep))})]})]}),
411
- /* @__PURE__ */W(S,{style:[Ka.stakeNote,{color:m.textMuted}],children:"Total returns, stake included."}),
412
- /* @__PURE__ */T(S,{style:[Ka.missNote,{color:m.textMuted}],children:["Miss ",1===j.allowedMisses?"two":"three"," or more and the ticket does not pay."]})]})]}),
413
- /* @__PURE__ */T(z,{style:[Ka.modeCards,A&&Ka.modeCardsWide],children:[/* @__PURE__ */W(z,{style:A?Ka.modeCardCell:void 0,children:/* @__PURE__ */W(Nl,{tile:/* @__PURE__ */W(Ml,{iconUrl:Ze(s),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{Y&&(f(j.ruleId),h(H),u(H-j.allowedMisses),g(I),y(),t?.())}})}),/* @__PURE__ */W(z,{style:A?Ka.modeCardCell:void 0,children:/* @__PURE__ */W(Nl,{tile:/* @__PURE__ */W(Ml,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{Y&&(f(j.ruleId),u(H-j.allowedMisses),g(I),p(s,H,I),e?.())}})})]})]})]})}var Ka=k.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},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"},modeExplain:{fontSize:12,lineHeight:17,marginTop:8},modeExplainWide:{fontSize:13,lineHeight:18},legsBlock:{marginTop:16},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,marginBottom:8},inputPrefix:{fontSize:16,fontWeight:"700",marginRight:4},input:{flex:1,paddingVertical:12,fontSize:18,fontWeight:"600",fontVariant:["tabular-nums"]},errorText:{fontSize:12,marginTop:8},prizeBlock:{marginTop:16,paddingTop:12,borderTopWidth:1},prizeCaptionRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},prizeCaption:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},prizeRows:{marginTop:6,gap:6},prizeRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},prizeRowLabel:{fontSize:12},prizeRowLabelWide:{fontSize:13},prizeRowAmount:{fontSize:14,fontWeight:"800",fontVariant:["tabular-nums"]},prizeRowAmountWide:{fontSize:16},sweepRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:12,paddingHorizontal:12,paddingVertical:10,marginTop:4},sweepLeft:{flex:1,minWidth:0,gap:2},sweepLabel:{fontSize:14,fontWeight:"800"},sweepLabelWide:{fontSize:15},sweepSub:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:.6,opacity:.75},sweepAmount:{fontSize:20,fontWeight:"800",fontVariant:["tabular-nums"]},sweepAmountWide:{fontSize:24},stakeNote:{fontSize:11,marginTop:6},missNote:{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 Za({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=$i(),i=Ge(n),r=n.colors,{width:l}=F(),a=l<640;/* @__PURE__ */
414
- return T(z,{style:[Qa.header,a&&Qa.headerCompact],children:[/* @__PURE__ */W(S,{style:[Qa.sectionTitle,a&&Qa.sectionTitleCompact,{color:r.primary,fontFamily:i}],children:"Set your play"}),/* @__PURE__ */W(dl,{onBack:e,hideActions:t,label:o?.game_name})]})}function Xa({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:i,backLabel:r="Games"}){const{theme:a,selectedGame:s,handlePropositionCountChange:d,setExpectedCorrect:h,setBetAmount:u,setSelectedRuleId:g,quickPickGame:f,goToSportSelection:p}=$i(),y=a.colors,m=Ne(a),b=Ge(a),w=se(a),x=be(a),{width:k}=F(),C=k>=640,v=l(()=>i??Gi(s),[i,s]),[A,R]=c(()=>v?.defaultUnit??10),[L,D]=c(Oi);if(!s||!Hi(s)||!v)/* @__PURE__ */return W(z,{style:[Qa.container,{backgroundColor:y.background}],children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No card available."})});const M=Ii(A,L,v),P=1*A,H=A>v.unitMin,O=A<v.unitMax,I=e=>R(t=>Math.min(v.unitMax,Math.max(v.unitMin,t+e*v.unitStep))),E=()=>{g(M.ruleId),h(M.lowestWinningCount),u(M.stake)},j=(e,t)=>/* @__PURE__ */T(z,{style:Qa.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[Qa.controlLabelText,{color:y.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[Qa.controlValueText,{color:w}],children:t})]}),N=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:n,disabled:!t,accessibilityRole:"button",accessibilityLabel:o,activeOpacity:.8,style:[Qa.stepButton,{backgroundColor:y.primary,opacity:t?1:.35}],children:/* @__PURE__ */W(S,{style:[Qa.stepButtonText,{color:y.primaryText}],children:e})}),G={golden_point:`Go for the decider. Doubles a winning card to ${$t(A*v.baseMultiple*v.goldenPointFactor)}.`,captains_challenge:`Collect ${$t(A*v.challengeMultiple)} whenever you land ${v.legs-v.challengeMisses} or ${v.legs} of ${v.legs}. Stacks on a winning card.`};/* @__PURE__ */
415
- return T(z,{style:[Qa.container,{backgroundColor:y.background}],children:[n?/* @__PURE__ */W(z,{style:Qa.backRow,children:/* @__PURE__ */W(sl,{onBack:n,label:r})}):null,/* @__PURE__ */T(ut,{style:Qa.inner,children:[
416
- /* @__PURE__ */W(Pl,{eyebrow:o?null:"Set your play",iconUrl:Ze(s),gameName:s.game_name,tagline:v.tagline}),
417
- /* @__PURE__ */W(Yl,{}),
418
- /* @__PURE__ */T(z,{style:[Qa.ticket,C&&Qa.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[j("Your play",`steps of ${$t(v.unitStep)}`),
419
- /* @__PURE__ */T(z,{style:Qa.stepRow,children:[N("−",H,()=>I(-1),"Lower stake"),
420
- /* @__PURE__ */T(z,{style:Qa.stepMid,children:[/* @__PURE__ */W(S,{style:[Qa.stepValue,{color:w,fontFamily:b}],children:$t(A)}),/* @__PURE__ */W(S,{style:[Qa.stepCaption,{color:y.textMuted}],children:"per play"})]}),N("+",O,()=>I(1),"Raise stake")]}),
421
- /* @__PURE__ */T(z,{style:Qa.boostBlock,children:[j("Boost your card",`${$t(P)} each`),/* @__PURE__ */W(z,{style:Qa.boostRows,children:v.boosts.map(e=>{const t=L[e.id];/* @__PURE__ */
422
- return T(B,{onPress:()=>{return t=e.id,D(e=>({...e,[t]:!e[t]}));var t},accessibilityRole:"switch",accessibilityState:{checked:t},activeOpacity:.85,style:[Qa.boostRow,{backgroundColor:t?Dl(y.primary,.08):"transparent",borderColor:t?y.primary:y.border}],children:[/* @__PURE__ */T(z,{style:Qa.boostBody,children:[/* @__PURE__ */T(z,{style:Qa.boostTitleRow,children:[/* @__PURE__ */W(S,{style:[Qa.boostLabel,C&&Qa.boostLabelWide,{color:w,fontFamily:b}],children:e.label}),/* @__PURE__ */W(z,{style:[Qa.boostAmt,{backgroundColor:Dl(y.primary,.12)}],children:/* @__PURE__ */T(S,{style:[Qa.boostAmtText,{color:y.primary}],children:["+",$t(P*e.costUnits)]})})]}),/* @__PURE__ */W(S,{style:[Qa.boostSub,C&&Qa.boostSubWide,{color:y.textMuted}],children:G[e.id]})]}),/* @__PURE__ */W(z,{style:[Qa.toggle,{backgroundColor:t?y.primary:y.border}],children:/* @__PURE__ */W(z,{style:[Qa.toggleKnob,{backgroundColor:y.background,transform:[{translateX:t?20:0}]}]})})]},e.id)})})]}),
423
- /* @__PURE__ */T(z,{style:[Qa.prizeBlock,{borderTopColor:Dl(w,.08)}],children:[
424
- /* @__PURE__ */T(z,{style:Qa.prizeCaptionRow,children:[/* @__PURE__ */W(S,{style:[Qa.prizeCaption,{color:y.textMuted}],children:"What you can win"}),/* @__PURE__ */T(S,{style:[Qa.prizeCaption,{color:y.textMuted}],children:[$t(M.stake)," total wager"]})]}),M.challenge>0?/* @__PURE__ */T(z,{style:Qa.prizeRow,children:[/* @__PURE__ */T(S,{style:[Qa.prizeRowLabel,C&&Qa.prizeRowLabelWide,{color:y.text}],children:[v.legs-v.challengeMisses," of ",v.legs]}),/* @__PURE__ */W(S,{style:[Qa.prizeRowAmount,C&&Qa.prizeRowAmountWide,{color:y.primary,fontFamily:b}],children:$t(M.challenge)})]}):null,
425
- /* @__PURE__ */T(z,{style:[Qa.sweepRow,{backgroundColor:y.primary}],children:[/* @__PURE__ */T(z,{style:Qa.sweepLeft,children:[/* @__PURE__ */T(S,{style:[Qa.sweepLabel,C&&Qa.sweepLabelWide,{color:y.primaryText,fontFamily:b}],children:[v.legs," of ",v.legs]}),/* @__PURE__ */W(S,{style:[Qa.sweepSub,{color:y.primaryText}],children:M.challenge>0?"every call right — both prizes":"every call right"})]}),/* @__PURE__ */W(S,{style:[Qa.sweepAmount,C&&Qa.sweepAmountWide,{color:y.primaryText,fontFamily:b}],children:$t(M.perfect)})]}),
426
- /* @__PURE__ */W(S,{style:[Qa.missNote,{color:y.textMuted}],children:M.challenge>0?`Fewer than ${v.legs-v.challengeMisses} right and the card does not pay.`:"Every call has to land — one miss and the card does not pay."})]})]}),
427
- /* @__PURE__ */T(z,{style:[Qa.modeCards,C&&Qa.modeCardsWide],children:[/* @__PURE__ */W(z,{style:C?Qa.modeCardCell:void 0,children:/* @__PURE__ */W(Nl,{tile:/* @__PURE__ */W(Ml,{iconUrl:Ze(s),size:60}),label:`Pick my ${v.legs}`,stat:"Your calls",detail:["A clean yes or no on every call","You read the games, you make the calls"],onSelect:()=>{E(),d(v.legs),p(),t?.()}})}),/* @__PURE__ */W(z,{style:C?Qa.modeCardCell:void 0,children:/* @__PURE__ */W(Nl,{tile:/* @__PURE__ */W(Ml,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${v.legs} calls for you`,"Straight to the bet slip"],onSelect:()=>{E(),f(s,v.legs,M.stake),e?.()}})})]})]})]})}var Qa=k.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},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"]},stepRow:{flexDirection:"row",alignItems:"center",gap:12},stepButton:{width:44,height:44,borderRadius:12,alignItems:"center",justifyContent:"center"},stepButtonText:{fontSize:24,fontWeight:"800",lineHeight:26},stepMid:{flex:1,alignItems:"center"},stepValue:{fontSize:24,fontWeight:"800",fontVariant:["tabular-nums"]},stepCaption:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:.8},boostBlock:{marginTop:16},boostRows:{gap:8},boostRow:{flexDirection:"row",alignItems:"center",gap:12,borderWidth:1,borderRadius:16,paddingHorizontal:12,paddingVertical:12},boostBody:{flex:1,minWidth:0},boostTitleRow:{flexDirection:"row",alignItems:"center",gap:8},boostLabel:{fontSize:14,fontWeight:"800"},boostLabelWide:{fontSize:15},boostAmt:{borderRadius:6,paddingHorizontal:6,paddingVertical:2},boostAmtText:{fontSize:10,fontWeight:"800",fontVariant:["tabular-nums"]},boostSub:{fontSize:11,lineHeight:15,marginTop:4},boostSubWide:{fontSize:12,lineHeight:16},toggle:{width:48,height:28,borderRadius:999,justifyContent:"center",paddingHorizontal:3},toggleKnob:{width:22,height:22,borderRadius:11},prizeBlock:{marginTop:16,paddingTop:12,borderTopWidth:1},prizeCaptionRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},prizeCaption:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},prizeRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,marginTop:6},prizeRowLabel:{fontSize:12},prizeRowLabelWide:{fontSize:13},prizeRowAmount:{fontSize:14,fontWeight:"800",fontVariant:["tabular-nums"]},prizeRowAmountWide:{fontSize:16},sweepRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:12,paddingHorizontal:12,paddingVertical:10,marginTop:6},sweepLeft:{flex:1,minWidth:0,gap:2},sweepLabel:{fontSize:14,fontWeight:"800"},sweepLabelWide:{fontSize:15},sweepSub:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:.6,opacity:.75},sweepAmount:{fontSize:20,fontWeight:"800",fontVariant:["tabular-nums"]},sweepAmountWide:{fontSize:24},missNote:{fontSize:11,fontStyle:"italic",marginTop:6},modeCards:{marginTop:16,gap:12},modeCardsWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},modeCardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function Ja({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=$i(),i=Ge(n),r=n.colors;/* @__PURE__ */
428
- return T(z,{style:_a.header,children:[/* @__PURE__ */W(S,{style:[_a.eyebrow,{color:r.primary,fontFamily:i}],children:"All or nothing"}),/* @__PURE__ */W(dl,{onBack:e,hideActions:t,label:o?.game_name})]})}function $a({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,backLabel:i="Games"}){const{theme:r,selectedGame:a,selectedPropositionCount:s,handlePropositionCountChange:d,setExpectedCorrect:h,quickPickGame:u,goToSportSelection:g}=$i(),f=r.colors,p=Ne(r),{width:y}=F(),m=y>=640,b=l(()=>{if(!a)return[];if(a.allowed_propositions&&a.allowed_propositions.length>0)return[...a.allowed_propositions].sort((e,t)=>e-t);const{min:e,max:t}=dn(a);return Ln(e,t)},[a]),w=Ui(a),x=b[0]??0,k=b[b.length-1]??0,[C]=c(()=>null!=s&&b.includes(s)?s:k),B=l(()=>Ho(a,C||void 0),[a,C]);if(!a||0===b.length||"exact"!==B?.kind)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:f.textMuted,fontFamily:p},children:"No setup available."})});const v=w?["Any yes/no props in the pool",`Pick ${x}–${k} legs — all must land`]:["A clean yes or no on every leg",`All ${C} have to land`],A=w?[`We fill ${C} legs across any markets`,"Straight to the bet slip"]:[`We fill all ${C} legs for you`,"Straight to the bet slip"];/* @__PURE__ */
429
- return T(z,{style:_a.container,children:[n?/* @__PURE__ */W(z,{style:_a.backRow,children:/* @__PURE__ */W(sl,{onBack:n,label:i})}):null,/* @__PURE__ */T(ut,{style:_a.inner,children:[
430
- /* @__PURE__ */W(Pl,{eyebrow:o?null:B.title,iconUrl:Ze(a),gameName:a.game_name,tagline:B.heroTagline}),
431
- /* @__PURE__ */W(Yl,{}),
432
- /* @__PURE__ */T(z,{style:[_a.cardList,m&&_a.cardListWide],children:[/* @__PURE__ */W(z,{style:m?_a.cardCell:void 0,children:/* @__PURE__ */W(Nl,{tile:/* @__PURE__ */W(Ml,{iconUrl:Ze(a),size:60}),label:"Pick my own",stat:"Your calls",detail:v,onSelect:()=>{w||(d(C),h(C)),g(),t?.()}})}),/* @__PURE__ */W(z,{style:m?_a.cardCell:void 0,children:/* @__PURE__ */W(Nl,{tile:/* @__PURE__ */W(Ml,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:A,onSelect:()=>{h(C),u(a,C),e?.()}})})]})]})]})}var _a=k.create({container:{flex:1,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},tagline:{fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384,marginTop:12},taglineWide:{fontSize:15,lineHeight:24},cardList:{gap:12},cardListWide:{flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},cardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function ec({onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:i="Games"}){const{theme:r,selectedGame:l,goToSportSelection:a,bodyFont:c}=$i(),s={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:i};switch(Yi(l)){case"game_set":/* @__PURE__ */return W(Da,{...s});case"pick_your_dividend":/* @__PURE__ */return W(Ha,{...s});case"ladder":/* @__PURE__ */return W(Ea,{...s});case"mirror":/* @__PURE__ */return W(Ya,{...s});case"safety_net":/* @__PURE__ */return W(qa,{...s});case"six_again":/* @__PURE__ */return W(Xa,{...s});case"rule_setup":return"exact"===Ho(l)?.kind?/* @__PURE__ */W($a,{...s}):/* @__PURE__ */W(Aa,{onBack:n,hideTitle:o,backLabel:i,onContinue:()=>{a(),e?.()}});default:/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:r.colors.textMuted,fontFamily:c},children:"No setup required — this game goes straight to picks."})})}}function tc({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:i=!0}){const{theme:r}=$i(),l=se(r),a=fe(r),c=r.colors.primaryHover??function(e){const t=/^#([0-9a-f]{6})$/i.exec((e??"").trim());if(!t)return e;const n=parseInt(t[1],16);return`rgba(${n>>16&255}, ${n>>8&255}, ${255&n}, 0.7)`}(l),s=Ge(r)??"Manrope, Poppins, sans-serif",d=n&&n.length>0?n:t.split(/\s+/),h=.72*o,u=.5*o,g=Math.min(.62*o/d.length,.3*o);/* @__PURE__ */
307
+ /* @__PURE__ */W(S,{style:{color:l.heading??l.text},children:Qt(d)}),
308
+ /* @__PURE__ */T(S,{style:{color:l.textMuted},children:[" for $",20]})]}):null,/* @__PURE__ */T(z,{ref:f,collapsable:!1,style:{position:"relative",alignSelf:"flex-start"},children:[/* @__PURE__ */W(B,{onPress:()=>g(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:h},style:{paddingVertical:4,paddingHorizontal:10,borderRadius:6,backgroundColor:h?l.buttonSecondary:l.background,borderWidth:1,borderColor:h?l.primary??l.border:l.border},children:/* @__PURE__ */W(S,{style:{color:l.text,fontSize:12,fontWeight:"600"},children:h?"Hide dividends":"Show dividends"})}),/* @__PURE__ */W(In,{visible:h&&!v,anchor:k,onClose:()=>g(!1),flipUp:w,align:"left",children:/* @__PURE__ */W(z,{style:{elevation:8,backgroundColor:l.background,borderRadius:8,borderWidth:1,borderColor:l.border,minWidth:220,shadowColor:"#000",shadowOffset:{width:0,height:6},shadowOpacity:.18,shadowRadius:12,overflow:"hidden"},children:R})})]})]}),h&&v&&y&&"undefined"!=typeof document?G(/* @__PURE__ */W("div",{ref:p,style:{position:"fixed",left:y.left,top:y.top,transform:y.flipUp?"translateY(-100%)":void 0,zIndex:9999,backgroundColor:l.background,border:`1px solid ${l.border}`,borderRadius:8,minWidth:220,overflow:"hidden",boxShadow:"0 8px 24px rgba(0,0,0,0.18)"},children:R}),document.body):null]})}function Ea({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=gi(),i=r.colors,l=Ge(r),a=se(r),s=i.primary,d=i.selectionCard??i.backgroundAlt,{width:h}=v(),u=h>=640,g="safety_net"===e?Math.max(1,(t.detail?.length??2)-1):void 0,f=!!o||(t.dividends?.length??0)>0,p=f&&!!t.dividendsInline,[y,m]=c(!1);/* @__PURE__ */
309
+ return T(z,{...it(()=>m(!0),()=>m(!1)),style:[Va.card,u&&Va.cardWide,{backgroundColor:d,borderColor:y?s:i.border,shadowColor:y?s:"#000",shadowOpacity:y?.28:.08,shadowRadius:y?14:8,shadowOffset:{width:0,height:y?12:8},elevation:y?4:1,transform:[{translateY:y?-2:0}]}],children:[/* @__PURE__ */T(B,{onPress:n,activeOpacity:.85,accessibilityRole:"button",style:Va.cardMain,children:[
310
+ /* @__PURE__ */W(Ha,{kind:e,balls:g,size:60}),
311
+ /* @__PURE__ */T(z,{style:Va.cardText,children:[
312
+ /* @__PURE__ */W(S,{style:[Va.cardTitle,{color:a,fontFamily:l}],children:t.label}),t.stat?/* @__PURE__ */W(z,{style:[Va.statChip,{backgroundColor:La(s,.12)}],children:/* @__PURE__ */W(S,{style:[Va.statChipText,{color:s}],children:t.stat.toUpperCase()})}):null,
313
+ /* @__PURE__ */W(z,{style:Va.detailBlock,children:t.detail?.map(e=>/* @__PURE__ */W(S,{style:[Va.detailLine,{color:i.textMuted}],children:e},e))})]}),
314
+ /* @__PURE__ */W(z,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:y?2:0}]},children:/* @__PURE__ */W(A,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:s,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]}),f?/* @__PURE__ */W(z,{style:[Va.dividendsWrap,{borderTopColor:La(a,.08)}],children:/* @__PURE__ */W(p?Oa:Ia,{option:t,renderDividends:o})}):null]})}function ja({kind:e,highlights:t,onSelect:n,accessibilityLabel:o}){const{theme:r}=gi(),i=r.colors,l=se(r),a=fe(r),s=i.primary,d=i.selectionCard??i.backgroundAlt,{width:h}=v(),u=h>=640,[g,f]=c(!1);/* @__PURE__ */
315
+ return W(z,{...it(()=>f(!0),()=>f(!1)),style:[Va.card,u&&Va.cardWide,{backgroundColor:d,borderColor:g?s:i.border,shadowColor:g?s:"#000",shadowOpacity:g?.28:.08,shadowRadius:g?14:8,shadowOffset:{width:0,height:g?12:8},elevation:g?4:1,transform:[{translateY:g?-2:0}]}],children:/* @__PURE__ */T(B,{onPress:n,activeOpacity:.85,accessibilityRole:"button",accessibilityLabel:o,style:Va.cardMain,children:[
316
+ /* @__PURE__ */W(Ha,{kind:e,size:60}),
317
+ /* @__PURE__ */W(z,{style:{flex:1,minWidth:0,gap:8},children:t.map(e=>/* @__PURE__ */T(z,{style:Va.bulletRow,children:[/* @__PURE__ */W(z,{style:[Va.dot,{backgroundColor:a}]}),/* @__PURE__ */W(S,{style:[Va.bulletText,{color:l}],children:e})]},e))}),
318
+ /* @__PURE__ */W(z,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:g?2:0}]},children:/* @__PURE__ */W(A,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:/* @__PURE__ */W(H,{d:"m9 6 6 6-6 6",stroke:s,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})})}function Na({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o,selectedPropositionCount:r}=gi(),i=Ge(n),l=n.colors,a=Uo(o,r),{width:c}=v(),s=c<640;/* @__PURE__ */
319
+ return T(z,{style:[Va.header,s&&Va.headerCompact],children:[/* @__PURE__ */W(S,{accessibilityRole:"header",style:[Va.sectionTitle,s&&Va.sectionTitleCompact,{color:l.primary,fontFamily:i}],children:a?.title??"About this game"}),/* @__PURE__ */W(zl,{onBack:e,hideActions:t,label:o?`${o.game_name}${a?.subtitle?` · ${a.subtitle}`:""}`:void 0})]})}function Ga({onContinue:e,canContinue:t,continueLabel:n="Continue"}){const{theme:o,screenSize:r}=gi(),i=o.colors;return e&&"mobile"!==r?/* @__PURE__ */W(z,{style:Va.footer,children:/* @__PURE__ */W(B,{onPress:e,disabled:!t,accessibilityRole:"button",accessibilityState:{disabled:!t},style:[Va.smallBtn,{backgroundColor:i.buttonPrimary,opacity:t?1:.45}],children:/* @__PURE__ */W(S,{style:[Va.smallBtnText,{color:i.buttonPrimaryText}],children:n})})}):null}function Ya({onContinue:e,onBack:t,hideTitle:n,config:o,renderDividends:r,backLabel:i="Games"}){const{theme:a,selectedGame:c,selectedPropositionCount:s,setExpectedCorrect:d,handlePropositionCountChange:h,bodyFont:u,screenSize:g}=gi(),f=a.colors,p=Ge(a),y="mobile"===g,{width:m}=v(),b=m>=640,w=l(()=>o??Uo(c,s),[o,c,s]),x=w?.options??[],k=t=>{null!=t?.expectedCorrect&&d(t.expectedCorrect),null!=t?.propositionCount&&h(t.propositionCount),e?.()};if(!c||!w)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:f.textMuted,fontFamily:u},children:"No rule setup required."})});const C=w.kind,B=w.headline??w.heroTitle,F=w.continueLabel??"Continue";/* @__PURE__ */
320
+ return T(z,{style:[Va.container,{backgroundColor:f.background}],children:[t?/* @__PURE__ */W(z,{style:Va.backRow,children:/* @__PURE__ */W(Bl,{onBack:t,label:i})}):null,/* @__PURE__ */T(ht,{style:Va.inner,children:[n?null:/* @__PURE__ */W(S,{accessibilityRole:"header",style:[Va.sectionTitle,Va.sectionTitleInBody,{color:f.primary,fontFamily:p,textAlign:"center"}],children:w.title}),
321
+ /* @__PURE__ */T(z,{style:Va.headerBlock,children:[
322
+ /* @__PURE__ */W(pl,{iconUrl:Ze(c),gameName:c.game_name,height:y?24:32,chipColor:f.primary,textColor:f.text,iconColor:f.primaryText,accentColor:a.brand?.accent,compact:y}),w.subtitle?/* @__PURE__ */W(S,{style:[Va.pickSubtitle,{color:f.textMuted}],children:w.subtitle}):null,B||w.heroTagline?/* @__PURE__ */W(S,{style:[Va.tagline,{color:f.textMuted}],children:w.heroTagline??B}):null]}),
323
+ /* @__PURE__ */W(ra,{}),x.length>0?/* @__PURE__ */W(z,{style:[Va.cardList,b&&x.length>1&&Va.cardGrid],children:x.map(e=>/* @__PURE__ */W(z,{style:b&&x.length>1?Va.cardCell:void 0,children:/* @__PURE__ */W(Ea,{kind:C,option:e,onSelect:()=>k(e),renderDividends:r})},e.id))}):w.highlights&&w.highlights.length>0?/* @__PURE__ */W(ja,{kind:C,highlights:w.highlights,onSelect:()=>k(),accessibilityLabel:F}):null]})]})}var Va=k.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},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 Ua({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=gi(),r=Ge(n),i=n.colors,{width:l}=v(),a=l<640;/* @__PURE__ */
324
+ return T(z,{style:[Ka.header,a&&Ka.headerCompact],children:[/* @__PURE__ */W(S,{style:[Ka.sectionTitle,a&&Ka.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"The fastest multi"}),/* @__PURE__ */W(zl,{onBack:e,hideActions:t,label:o?.game_name})]})}function qa({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:g,quickPickGame:f,goToSportSelection:p}=gi(),y=a.colors,m=Ne(a),b=Ge(a),w=se(a),x=be(a),{width:k}=v(),F=k>=640,[A,L]=c(!1),R=l(()=>r??Hr(s),[r,s]),[D,M]=c(()=>R?null!=d&&R.legOptions.includes(d)?d:R.defaultLegs:8),[P,H]=c(()=>R?.defaultStake??20);if(!s||!Mr(s)||!R)/* @__PURE__ */return W(z,{style:[Ka.container,{backgroundColor:y.background}],children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No game set available."})});const O=Pr(P,D,{operatorMargin:R.operatorMargin,perLegProbability:R.perLegProbability}),I=P>=R.minStake,E=(e,t)=>/* @__PURE__ */T(z,{style:Ka.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[Ka.controlLabelText,{color:y.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[Ka.controlValueText,{color:w}],children:t})]});/* @__PURE__ */
325
+ return T(z,{style:[Ka.container,{backgroundColor:y.background}],children:[n?/* @__PURE__ */W(z,{style:Ka.backRow,children:/* @__PURE__ */W(Bl,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:Ka.inner,children:[
326
+ /* @__PURE__ */W(Ql,{eyebrow:o?null:"The fastest multi",iconUrl:Ze(s),gameName:s.game_name,tagline:R.tagline}),
327
+ /* @__PURE__ */W(ra,{}),
328
+ /* @__PURE__ */T(z,{style:[Ka.ticket,F&&Ka.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[E("Legs",`${D} legs`),
329
+ /* @__PURE__ */W(z,{style:Ka.chipRow,children:R.legOptions.map(e=>{const t=e===D;/* @__PURE__ */
330
+ return W(B,{onPress:()=>M(e),accessibilityRole:"radio",accessibilityState:{selected:t},activeOpacity:.8,style:[Ka.chip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */W(S,{style:[Ka.chipText,{color:t?y.primaryText:y.textMuted}],children:e})},e)})}),
331
+ /* @__PURE__ */T(z,{style:Ka.hintRow,children:[/* @__PURE__ */W(S,{style:[Ka.hintText,{color:y.textMuted}],children:"Easier to land"}),/* @__PURE__ */W(S,{style:[Ka.hintText,{color:y.textMuted}],children:"Bigger prize"})]}),
332
+ /* @__PURE__ */T(z,{style:Ka.stakeBlock,children:[E("Stake",Qt(P)),
333
+ /* @__PURE__ */T(z,{style:[Ka.inputWrap,{borderColor:A?y.borderFocus??y.primary:y.border,backgroundColor:y.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[Ka.inputPrefix,{color:y.textMuted}],children:"$"}),/* @__PURE__ */W(C,{keyboardType:"decimal-pad",placeholder:"Enter stake",placeholderTextColor:y.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>L(!0),onBlur:()=>L(!1),value:P?String(P):"",onChangeText:e=>{if(""===e)return void H(0);const t=Number(e);Number.isFinite(t)&&H((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==R.maxStake?Math.min(t,R.maxStake):t})(t))},style:[Ka.input,{color:y.textAlt??y.text,fontFamily:m}]})]}),
334
+ /* @__PURE__ */W(z,{style:Ka.chipRow,children:R.quickStakes.map(e=>{const t=e===P;/* @__PURE__ */
335
+ return W(B,{onPress:()=>H(e),activeOpacity:.8,style:[Ka.stakeChip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */T(S,{style:[Ka.chipText,{color:t?y.primaryText:y.textMuted}],children:["$",e]})},e)})}),!I&&P>0?/* @__PURE__ */T(S,{style:[Ka.errorText,{color:y.error}],children:["Minimum stake is ",Qt(R.minStake),"."]}):null]}),
336
+ /* @__PURE__ */T(z,{style:[Ka.dividendBlock,{borderTopColor:Zl(w,.08)}],children:[
337
+ /* @__PURE__ */T(z,{style:Ka.dividendCaptionRow,children:[/* @__PURE__ */T(S,{style:[Ka.dividendCaption,{color:y.textMuted}],children:["If all ",D," land"]}),/* @__PURE__ */T(S,{style:[Ka.dividendCaption,{color:y.textMuted}],children:[Qt(P)," returns"]})]}),
338
+ /* @__PURE__ */T(z,{style:Ka.dividendMainRow,children:[/* @__PURE__ */T(z,{style:Ka.dividendMainLeft,children:[/* @__PURE__ */W(S,{style:[Ka.perfectTicket,{color:y.text}],children:"Perfect ticket"}),/* @__PURE__ */W(ta,{legs:D})]}),/* @__PURE__ */W(S,{style:[Ka.prize,F&&Ka.prizeWide,{color:y.primary,fontFamily:b}],children:Qt(O.prize)})]}),
339
+ /* @__PURE__ */T(S,{style:[Ka.multipleLine,{color:y.textMuted}],children:[(j=O.multiple,`×${(Math.round(10*j)/10).toLocaleString("en-US",{maximumFractionDigits:1})}`)," your stake · total return, stake included"]}),
340
+ /* @__PURE__ */W(S,{style:[Ka.allOrNothing,{color:y.textMuted}],children:"All or nothing. Miss a single leg and the ticket does not pay."})]})]}),
341
+ /* @__PURE__ */T(z,{style:[Ka.modeCards,F&&Ka.modeCardsWide],children:[/* @__PURE__ */W(z,{style:F?Ka.modeCardCell:void 0,children:/* @__PURE__ */W(na,{tile:/* @__PURE__ */W(Xl,{iconUrl:Ze(s),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{I&&(h(D),u(D),g(P),p(),t?.())}})}),/* @__PURE__ */W(z,{style:F?Ka.modeCardCell:void 0,children:/* @__PURE__ */W(na,{tile:/* @__PURE__ */W(Xl,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{I&&(u(D),g(P),f(s,D,P),e?.())}})})]})]})]});var j}var Ka=k.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},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 Za({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=gi(),r=Ge(n),i=n.colors;/* @__PURE__ */
342
+ return T(z,{style:Qa.titleWrap,children:[/* @__PURE__ */W(S,{style:[Qa.eyebrow,Qa.eyebrowLeft,{color:i.primary,fontFamily:r}],children:"The dividend is set"}),/* @__PURE__ */W(zl,{onBack:e,hideActions:t,label:o?.game_name})]})}function Xa({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:g,quickPickGame:f,goToSportSelection:p}=gi(),y=a.colors,m=Ne(a),b=Ge(a),w=se(a),x=be(a),{width:k}=v(),C=k>=640,[F,A]=c(null),[L,R]=c(null),D=l(()=>r??_o(s),[r,s]),[M,P]=c(()=>D?.defaultDividend??1e4),[H,O]=c(()=>{const e=D?.dividends[0]?.rungs.map(e=>e.legs)??[];return null!=d&&e.includes(d)?d:D?.defaultLegs??9});if(!s||!Xo(s)||!D)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No dividend series available."})});const I=D.dividends.find(e=>e.dividend===M)??D.dividends[0],E=I.rungs.find(e=>e.legs===H)??I.rungs[0],j=Math.max(...I.rungs.map(e=>e.legs)),N=Math.min(...I.rungs.map(e=>e.legs));/* @__PURE__ */
343
+ return T(z,{style:Qa.container,children:[n?/* @__PURE__ */W(z,{style:Qa.backRow,children:/* @__PURE__ */W(Bl,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:Qa.inner,children:[
344
+ /* @__PURE__ */W(Ql,{eyebrow:o?null:"Pick your dividend",iconUrl:Ze(s),gameName:s.game_name,tagline:D.tagline}),
345
+ /* @__PURE__ */W(ra,{}),
346
+ /* @__PURE__ */T(z,{style:[Qa.ticket,C&&Qa.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.12,shadowRadius:12,shadowOffset:{width:0,height:8},elevation:1}],children:[(G=Qt(I.dividend),/* @__PURE__ */T(z,{style:Qa.sectionLabelRow,children:[/* @__PURE__ */W(S,{style:[Qa.sectionLabelText,{color:y.textMuted}],children:"Set dividend"}),G?/* @__PURE__ */W(S,{style:[Qa.sectionValueText,{color:w}],children:G}):null]})),
347
+ /* @__PURE__ */W($l,{ariaLabel:"Set dividend",children:D.dividends.map(e=>{const t=e.dividend===M,n=F===e.dividend;/* @__PURE__ */
348
+ return T(B,{onPress:()=>P(e.dividend),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...it(()=>A(e.dividend),()=>A(null)),style:[Qa.dividendTile,_l(C),{backgroundColor:t?Zl(y.primary,.08):"transparent",borderColor:t||n?y.primary:y.border}],children:[/* @__PURE__ */W(S,{style:[Qa.dividendValue,C&&Qa.dividendValueWide,{color:w,fontFamily:b}],children:Qt(e.dividend)}),/* @__PURE__ */T(S,{style:[Qa.dividendFrom,{color:y.textMuted}],children:["from ",Qt(e.rungs[0]?.stake??0)]})]},e.dividend)})}),
349
+ /* @__PURE__ */W(S,{style:[Qa.ticketNote,{color:y.textMuted}],children:"One set amount — it does not move, whatever you spend."}),
350
+ /* @__PURE__ */T(z,{style:[Qa.ladderDivider,{borderTopColor:Zl(w,.08)}],children:[
351
+ /* @__PURE__ */T(z,{style:Qa.ladderHeaderRow,children:[/* @__PURE__ */W(S,{style:[Qa.ladderHeaderText,{color:y.textMuted}],children:"Legs to land"}),/* @__PURE__ */W(S,{style:[Qa.ladderHeaderText,{color:y.textMuted}],children:"Your stake"})]}),
352
+ /* @__PURE__ */W(z,{style:Qa.rungList,children:I.rungs.map(e=>{const t=e.legs===H,n=L===e.legs;/* @__PURE__ */
353
+ return T(B,{onPress:()=>O(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...it(()=>R(e.legs),()=>R(null)),style:[Qa.rungRow,{backgroundColor:t?Zl(y.primary,.08):"transparent",borderColor:t||n?y.primary:y.border}],children:[/* @__PURE__ */T(z,{style:Qa.rungLeft,children:[/* @__PURE__ */T(S,{style:[Qa.rungLegs,{color:y.text}],children:[e.legs," legs",C?e.legs===j?" · the long climb":e.legs===N?" · the sprint":"":""]}),/* @__PURE__ */W(ta,{legs:e.legs})]}),/* @__PURE__ */W(S,{style:[Qa.rungStake,C&&Qa.rungStakeWide,{color:y.primary,fontFamily:b}],children:Qt(e.stake)})]},e.legs)})}),
354
+ /* @__PURE__ */W(S,{style:[Qa.ticketNote,{color:y.textMuted}],children:"Same dividend on every rung — a little for the long climb, more for the short one."})]})]}),
355
+ /* @__PURE__ */T(z,{style:[Qa.cardList,C&&Qa.cardListWide],children:[/* @__PURE__ */W(z,{style:C?Qa.cardCell:void 0,children:/* @__PURE__ */W(na,{tile:/* @__PURE__ */W(Xl,{iconUrl:Ze(s),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${E.legs} legs`,`${Qt(E.stake)} chasing the ${Qt(I.dividend)}`],onSelect:()=>{var e;h((e=E).legs),u(e.legs),g(e.stake),p(),t?.()}})}),/* @__PURE__ */W(z,{style:C?Qa.cardCell:void 0,children:/* @__PURE__ */W(na,{tile:/* @__PURE__ */W(Xl,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${E.legs} legs at ${Qt(E.stake)}`,"Straight to the bet slip"],onSelect:()=>{u(E.legs),g(E.stake),f(s,E.legs,E.stake),e?.()}})})]})]})]});var G}var Qa=k.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},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:6},dividendTile:{borderWidth:1,borderRadius:12,paddingHorizontal:6,paddingVertical:10,alignItems:"center"},dividendValue:{fontSize:16,fontWeight:"800",letterSpacing:-.32,fontVariant:["tabular-nums"]},dividendValueWide:{fontSize:20,letterSpacing:-.4},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:6},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 Ja({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=gi(),r=Ge(n),i=n.colors;/* @__PURE__ */
356
+ return T(z,{style:_a.titleWrap,children:[/* @__PURE__ */W(S,{style:[_a.eyebrow,{color:i.primary,fontFamily:r}],children:"Every step pays"}),/* @__PURE__ */W(zl,{onBack:e,hideActions:t,label:o?.game_name})]})}function $a({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:g,quickPickGame:f,goToSportSelection:p,screenSize:y,bodyFont:m}=gi(),b=a.colors,w="mobile"===y,x=Ge(a),k=se(a),C=fe(a),F=be(a),{width:A}=v(),L=A>=640,[R,D]=c(null),M=l(()=>r??Ur(s),[r,s]),[P,H]=c(()=>M?null!=d&&M.ladders.some(e=>e.legs===d)?d:M.defaultLegs:8),[O,I]=c(()=>M?.defaultStake??50),[E,j]=c(!1);if(!s||!jr(s)||!M)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:b.textMuted,fontFamily:m},children:"No ladders available."})});const N=M.ladders.find(e=>e.legs===P)??M.ladders[0],G=Gr(N,O),Y=Yr(N,O),V=[...G].reverse(),U=w&&V.length>4,q=U&&!E?V.slice(0,3):V,K=(e,t)=>/* @__PURE__ */T(z,{style:_a.sectionLabelRow,children:[/* @__PURE__ */W(S,{style:[_a.sectionLabelText,{color:b.textMuted}],children:e}),t?/* @__PURE__ */W(S,{style:[_a.sectionLabelValue,{color:k}],children:t}):null]});/* @__PURE__ */
357
+ return T(z,{style:[_a.container,{backgroundColor:b.background}],children:[n?/* @__PURE__ */W(z,{style:_a.backRow,children:/* @__PURE__ */W(Bl,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:_a.inner,children:[
358
+ /* @__PURE__ */W(Ql,{eyebrow:o?null:"Climb the ladder. Stack the prizes.",iconUrl:Ze(s),gameName:s.game_name,tagline:M.tagline}),
359
+ /* @__PURE__ */W(ra,{}),
360
+ /* @__PURE__ */T(z,{style:[_a.builder,L&&_a.builderWide,{backgroundColor:F,borderColor:b.border,shadowColor:k,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[K("Your bet",Qt(O)),
361
+ /* @__PURE__ */W(z,{style:_a.betRow,children:M.stakes.map(e=>{const t=e===O;/* @__PURE__ */
362
+ return W(B,{onPress:()=>I(e),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},style:[_a.betChip,{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border}],children:/* @__PURE__ */T(S,{style:[_a.betChipText,{color:t?b.primaryText:b.textMuted}],children:["$",e]})},e)})}),
363
+ /* @__PURE__ */W(S,{style:[_a.betNote,{color:b.textMuted}],children:"Every prize scales with your bet."}),
364
+ /* @__PURE__ */T(z,{style:_a.laddersBlock,children:[K(`${M.ladders.length} ladders to choose from`),/* @__PURE__ */W($l,{ariaLabel:"Ladder",children:M.ladders.map(e=>{const t=e.legs===P,n=R===e.legs;/* @__PURE__ */
365
+ return T(B,{onPress:()=>H(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...it(()=>D(e.legs),()=>D(null)),style:[_a.ladderTile,_l(L,"17%"),{backgroundColor:t?Zl(b.primary,.08):"transparent",borderColor:t||n?b.primary:b.border}],children:[
366
+ /* @__PURE__ */T(S,{style:[_a.ladderTileLabel,{color:b.primary}],children:["Ladder ",e.legs]}),
367
+ /* @__PURE__ */W(S,{style:[_a.ladderTilePrize,{color:k,fontFamily:x}],children:Qt(Yr(e,O))}),
368
+ /* @__PURE__ */T(S,{style:[_a.ladderTileNote,{color:b.textMuted}],children:["Win from ",e.firstPayingTier," right"]})]},e.legs)})})]}),
369
+ /* @__PURE__ */T(z,{style:[_a.stackTable,{borderTopColor:Zl(k,.08)}],children:[
370
+ /* @__PURE__ */T(S,{style:[_a.stackIntro,{color:b.text}],children:["Ladder ",N.legs," wins from ",N.firstPayingTier," right — every tier stacks into the"," ",
371
+ /* @__PURE__ */W(S,{style:{fontWeight:"700",color:k},children:Qt(Y)})," Full Stack Prize."]}),
372
+ /* @__PURE__ */T(z,{style:_a.rungHeader,children:[/* @__PURE__ */W(S,{style:[_a.rungHeaderCaption,{color:b.textMuted}],children:"Get right"}),/* @__PURE__ */T(z,{style:_a.rungHeaderRight,children:[/* @__PURE__ */W(S,{style:[_a.rungHeaderCaption,_a.rungColPrize,{color:b.textMuted}],children:"Tier pays"}),/* @__PURE__ */W(S,{style:[_a.rungHeaderCaption,_a.rungColTotal,{color:b.textMuted}],children:"You collect"})]})]}),
373
+ /* @__PURE__ */W(z,{style:_a.rungList,children:q.map(e=>{const t=e.atLeast===N.legs;/* @__PURE__ */
374
+ return T(z,{style:_a.rungRow,children:[/* @__PURE__ */T(z,{style:_a.rungLeft,children:[/* @__PURE__ */T(z,{style:_a.rungLabelRow,children:[/* @__PURE__ */T(S,{style:[_a.rungLabel,{color:b.text}],children:[e.atLeast," of ",N.legs]}),t&&L?/* @__PURE__ */W(z,{style:[_a.fullStackChip,{backgroundColor:Zl(C,.35)}],children:/* @__PURE__ */W(S,{style:[_a.fullStackChipText,{color:k}],children:"Full stack"})}):null]}),/* @__PURE__ */W(ta,{legs:e.atLeast,prizeBall:t})]}),/* @__PURE__ */T(z,{style:_a.rungRight,children:[/* @__PURE__ */W(S,{style:[_a.rungPrize,_a.rungColPrice,{color:b.textMuted}],children:Qt(e.prize)}),/* @__PURE__ */W(S,{style:[_a.rungCumulative,_a.rungColTotal,L&&_a.rungCumulativeWide,{color:b.primary,fontFamily:x}],children:Qt(e.cumulative)})]})]},e.atLeast)})}),U?/* @__PURE__ */W(B,{onPress:()=>j(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:E},style:[_a.tierToggle,{borderColor:b.border}],children:/* @__PURE__ */W(S,{style:[_a.tierToggleText,{color:b.primary}],children:E?"Show fewer tiers":`Show all ${V.length} tiers`})}):null,
375
+ /* @__PURE__ */T(S,{style:[_a.stackNote,{color:b.textMuted}],children:["Land below ",N.firstPayingTier," right and the ticket does not pay."]})]})]}),
376
+ /* @__PURE__ */T(z,{style:[_a.modeCards,L&&_a.modeCardsWide],children:[/* @__PURE__ */W(z,{style:L?_a.modeCardCell:void 0,children:/* @__PURE__ */W(na,{tile:/* @__PURE__ */W(Xl,{iconUrl:Ze(s),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${N.legs} outcomes`,`Win from ${N.firstPayingTier} right — every tier stacks`],onSelect:()=>{h(N.legs),u(N.legs),g(O),p(),t?.()}})}),/* @__PURE__ */W(z,{style:L?_a.modeCardCell:void 0,children:/* @__PURE__ */W(na,{tile:/* @__PURE__ */W(Xl,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${N.legs} legs at ${Qt(O)}`,"Straight to the bet slip"],onSelect:()=>{u(N.legs),g(O),f(s,N.legs,O),e?.()}})})]})]})]})}var _a=k.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},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:18,fontWeight:"800",letterSpacing:-.36,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:10},rungColPrice:{width:64,textAlign:"right"},rungColPrize:{width:64,textAlign:"right"},rungColTotal:{width:84,textAlign:"right"},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:10,flexShrink:0},rungPrize:{fontSize:11,fontVariant:["tabular-nums"]},rungCumulative:{fontSize:14,fontWeight:"800",fontVariant:["tabular-nums"]},rungCumulativeWide:{fontSize:16},tierToggle:{marginTop:8,borderWidth:1,borderRadius:8,paddingVertical:8,alignItems:"center"},tierToggleText:{fontSize:11,fontWeight:"700"},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 ec({depth:e,theme:t}){const n=t.colors,o=fe(t);/* @__PURE__ */
377
+ return W(z,{style:rc.variantEdgeBar,children:Array.from({length:9}).map((t,r)=>{const i=Math.min(r,8-r)<e;/* @__PURE__ */
378
+ return W(z,{style:[rc.variantEdgeSlot,i?{backgroundColor:r<4.5?n.primary:o}:{borderWidth:1,borderColor:n.border}]},r)})})}function tc({legs:e,correct:t}){const{theme:n}=gi(),o=n.colors.primary;/* @__PURE__ */
379
+ return W(z,{style:{flexDirection:"row",alignItems:"center"},children:Array.from({length:e}).map((e,n)=>{const r=n<t;/* @__PURE__ */
380
+ return W(S,{style:{width:14,marginRight:2,fontSize:14,lineHeight:16,fontWeight:"700",textAlign:"center",color:r?o:Zl(o,.45)},children:r?"✓":"✕"},n)})})}function nc({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=gi(),r=Ge(n),i=n.colors;/* @__PURE__ */
381
+ return T(z,{style:rc.header,children:[/* @__PURE__ */W(S,{style:[rc.eyebrow,{color:i.primary,fontFamily:r}],children:"All right, or all wrong"}),/* @__PURE__ */W(zl,{onBack:e,hideActions:t,label:o?.game_name})]})}function oc({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:g,quickPickGame:f,goToSportSelection:p,games:y,selectGame:m}=gi(),b=a.colors,w=Ne(a),x=Ge(a),k=se(a),F=be(a),{width:A}=v(),L=A>=640,[R,D]=c(!1),M=l(()=>r??Co(s),[r,s]),[P,H]=c(()=>M?null!=d&&M.legOptions.includes(d)?d:M.defaultLegs:8),[O,I]=c(()=>M?.defaultStake??20),[E,j]=c(!1);if(!s||!ko(s)||!M)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:b.textMuted,fontFamily:w},children:"No mirror available."})});const N=M.variant,G=M.legOptions,Y=G.includes(P)?P:G[0],V=function(e,t,n,o){const r=zo(e),i=t*(1-(o?.operatorMargin??.21875)),l=Math.round(Math.pow(2,n)),a=[];let c=0;for(let s=0;s<r.depth;s++){const e=vo(n,s),t=n-s===s?e:2*e;c+=t,a.push({distance:s,label:r.tierNames[s]??`Tier ${s+1}`,correctCounts:n-s===s?[s]:[n-s,s],prize:Math.round(i/r.depth*l/(2*e)*100)/100,outcomes:t})}return{variant:r.id,legs:n,stake:t,tiers:a,totalOutcomes:l,winningOutcomes:c,oddsOneIn:Math.round(l/c*1e4)/1e4}}(N.id,O,Y,{operatorMargin:M.operatorMargin}),U=function(e){const{legs:t}=e;return e.tiers.flatMap(e=>e.correctCounts.map(n=>({correct:n,label:n===t?`All ${t} right`:0===n?`All ${t} wrong`:`${n} of ${t} right`,prize:e.prize})))}(V),q=function(e,t){if(!t)return[];const n=uo(t);return n<so.premier?[]:Bo.flatMap(t=>{const o=e.find(e=>ko(e)&&wo(e.rule)===xo[t.id]&&uo(e)===n);return o?[{variant:t,game:o}]:[]})}(y,s),K=Y-(N.depth-1);if(q.length>1&&!E)/* @__PURE__ */return T(z,{style:rc.container,children:[n?/* @__PURE__ */W(z,{style:rc.backRow,children:/* @__PURE__ */W(Bl,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:rc.inner,children:[
382
+ /* @__PURE__ */W(Ql,{eyebrow:o?null:"All right, or all wrong",iconUrl:Ze(s),gameName:"Mirror",tagline:"Land near an edge. How wide the edge is, is the mirror you pick."}),
383
+ /* @__PURE__ */W(ra,{}),
384
+ /* @__PURE__ */W(z,{style:[rc.modeCards,L&&rc.modeCardsWide],children:q.map(({variant:e,game:t})=>{const n=Co(t)?.legOptions??[];/* @__PURE__ */
385
+ return W(z,{style:L?rc.modeCardCell:void 0,children:/* @__PURE__ */T(na,{tile:/* @__PURE__ */W(Xl,{iconUrl:Ze(t),size:60}),label:e.name,stat:e.waysToWin,detail:[e.description,...n.length>0?[`${n[0]}–${n[n.length-1]} legs`]:[]],onSelect:()=>{m(t),j(!0)},children:[/* @__PURE__ */W(ec,{depth:e.depth,theme:a}),/* @__PURE__ */T(z,{style:rc.variantEdgeLabels,children:[/* @__PURE__ */W(S,{style:[rc.variantEdgeText,{color:b.textMuted}],children:"All wrong"}),/* @__PURE__ */W(S,{style:[rc.variantEdgeText,{color:b.textMuted}],children:"All right"})]})]})},t.id)})})]})]});const Z=O>=M.minStake,X=(e,t)=>/* @__PURE__ */T(z,{style:rc.controlLabel,children:[/* @__PURE__ */W(S,{style:[rc.controlLabelText,{color:b.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[rc.controlValueText,{color:k}],children:t})]});/* @__PURE__ */
386
+ return T(z,{style:rc.container,children:[q.length>1?/* @__PURE__ */W(z,{style:rc.backRow,children:/* @__PURE__ */W(Bl,{onBack:()=>j(!1),label:"Mirrors"})}):n?/* @__PURE__ */W(z,{style:rc.backRow,children:/* @__PURE__ */W(Bl,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:rc.inner,children:[
387
+ /* @__PURE__ */W(Ql,{eyebrow:o?null:"All right, or all wrong",iconUrl:Ze(s),gameName:s.game_name,tagline:M.tagline}),
388
+ /* @__PURE__ */W(ra,{}),
389
+ /* @__PURE__ */T(z,{style:rc.variantBlock,children:[X(N.name,N.waysToWin),
390
+ /* @__PURE__ */W(ec,{depth:N.depth,theme:a}),
391
+ /* @__PURE__ */T(z,{style:rc.variantEdgeLabels,children:[
392
+ /* @__PURE__ */W(S,{style:[rc.variantEdgeText,{color:b.textMuted}],children:"All wrong"}),
393
+ /* @__PURE__ */W(S,{style:[rc.variantEdgeText,{color:b.textMuted}],children:`${G[0]}–${G[G.length-1]} legs`}),
394
+ /* @__PURE__ */W(S,{style:[rc.variantEdgeText,{color:b.textMuted}],children:"All right"})]})]}),
395
+ /* @__PURE__ */T(z,{style:[rc.ticket,L&&rc.ticketWide,{backgroundColor:F,borderColor:b.border,shadowColor:k,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[X("Legs",`${Y} legs`),
396
+ /* @__PURE__ */W(z,{style:rc.chipRow,children:G.map(e=>{const t=e===Y;/* @__PURE__ */
397
+ return W(B,{onPress:()=>H(e),accessibilityRole:"radio",accessibilityState:{selected:t},style:[rc.legChip,{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border}],children:/* @__PURE__ */W(S,{style:[rc.chipText,{color:t?b.primaryText:b.textMuted}],children:e})},e)})}),
398
+ /* @__PURE__ */T(z,{style:rc.hintRow,children:[/* @__PURE__ */W(S,{style:[rc.hintText,{color:b.textMuted}],children:"Easier to sweep"}),/* @__PURE__ */W(S,{style:[rc.hintText,{color:b.textMuted}],children:"Bigger prize"})]}),
399
+ /* @__PURE__ */T(z,{style:rc.stakeBlock,children:[X("Stake",Qt(O)),
400
+ /* @__PURE__ */T(z,{style:[rc.inputWrap,{borderColor:R?b.borderFocus??b.primary:b.border,backgroundColor:b.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[rc.inputPrefix,{color:b.textMuted}],children:"$"}),/* @__PURE__ */W(C,{keyboardType:"numeric",placeholder:"Enter stake",placeholderTextColor:b.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>D(!0),onBlur:()=>D(!1),value:O?String(O):"",onChangeText:e=>{if(""===e)return void I(0);const t=Number(e);Number.isFinite(t)&&I((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==M.maxStake?Math.min(t,M.maxStake):t})(t))},style:[rc.input,{color:b.textAlt??b.text,fontFamily:w}]})]}),
401
+ /* @__PURE__ */W(z,{style:rc.quickStakeRow,children:M.quickStakes.map(e=>{const t=e===O;/* @__PURE__ */
402
+ return W(B,{onPress:()=>I(e),style:[rc.stakeChip,{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border}],children:/* @__PURE__ */W(S,{style:[rc.chipText,{color:t?b.primaryText:b.textMuted}],children:`$${e}`})},e)})}),!Z&&O>0?/* @__PURE__ */W(S,{style:[rc.errorText,{color:b.error}],children:`Minimum stake is ${Qt(M.minStake)}.`}):null]}),
403
+ /* @__PURE__ */T(z,{style:[rc.winSection,{borderTopColor:Zl(k,.08)}],children:[
404
+ /* @__PURE__ */T(z,{style:rc.winHeader,children:[/* @__PURE__ */W(S,{style:[rc.winHeaderText,{color:b.textMuted}],children:"What it pays"}),/* @__PURE__ */W(S,{style:[rc.waysChip,{backgroundColor:Zl(b.primary,.12),color:b.primary}],children:N.waysToWin})]}),
405
+ /* @__PURE__ */W(z,{style:rc.winRows,children:U.map(e=>/* @__PURE__ */T(z,{style:rc.winRow,children:[/* @__PURE__ */T(z,{style:rc.winRowLeft,children:[/* @__PURE__ */W(S,{style:[rc.winRowLabel,{color:b.text}],children:e.label}),/* @__PURE__ */W(tc,{legs:Y,correct:e.correct})]}),/* @__PURE__ */W(S,{style:[rc.winRowPrize,L&&rc.winRowPrizeWide,{color:b.primary,fontFamily:x}],children:Qt(e.prize)})]},e.correct))}),
406
+ /* @__PURE__ */W(S,{style:[rc.splitNote,{color:b.textMuted}],children:"Anything in between — a split card — does not pay."})]})]}),
407
+ /* @__PURE__ */T(z,{style:[rc.cardList,L&&rc.cardListWide],children:[/* @__PURE__ */W(z,{style:L?rc.cardCell:void 0,children:/* @__PURE__ */W(na,{tile:/* @__PURE__ */W(Xl,{iconUrl:Ze(s),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","Aim for the sweep — either direction pays"],onSelect:()=>{Z&&(h(Y),u(K),g(O),p(),t?.())}})}),/* @__PURE__ */W(z,{style:L?rc.cardCell:void 0,children:/* @__PURE__ */W(na,{tile:/* @__PURE__ */W(Xl,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{Z&&(u(K),g(O),f(s,Y,O),e?.())}})})]})]})]})}var rc=k.create({container:{flex:1,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},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},variantBlock:{marginBottom:12},variantEdgeBar:{marginTop:8,flexDirection:"row",gap:3},variantEdgeSlot:{flex:1,height:14,borderRadius:4},variantEdgeLabels:{marginTop:4,flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},modeCards:{marginTop:16,gap:12},modeCardsWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},modeCardCell:{flexBasis:"30%",flexGrow:1,minWidth:"30%"},variantEdgeText:{fontSize:9,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},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},waysChip:{fontSize:11,fontWeight:"800",paddingHorizontal:8,paddingVertical:2,borderRadius:999,overflow:"hidden"},winRowLabel:{fontSize:13,fontWeight:"600"},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 ic({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=gi(),r=Ge(n),i=n.colors,{width:l}=v(),a=l<640;/* @__PURE__ */
408
+ return T(z,{style:[ac.header,a&&ac.headerCompact],children:[/* @__PURE__ */W(S,{style:[ac.sectionTitle,a&&ac.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"Choose your safety net"}),/* @__PURE__ */W(zl,{onBack:e,hideActions:t,label:o?.game_name})]})}function lc({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:g,setSelectedRuleId:f,quickPickGame:p,goToSportSelection:y}=gi(),m=a.colors,b=Ne(a),w=Ge(a),x=se(a),k=be(a),{width:F}=v(),A=F>=640,[L,R]=c(!1),D=l(()=>r??No(s),[r,s]),[M,P]=c(()=>D?.defaultModeId??"extra_shot"),[H,O]=c(()=>{const e=D?.modes.find(e=>e.id===(D?.defaultModeId??"extra_shot"));return e?null!=d&&e.legOptions.includes(d)?d:e.defaultLegs:8}),[I,E]=c(()=>D?.defaultStake??20);if(!s||!Lo(s)||!D)/* @__PURE__ */return W(z,{style:[ac.container,{backgroundColor:m.background}],children:/* @__PURE__ */W(S,{style:{color:m.textMuted,fontFamily:b},children:"No safety net available."})});const j=D.modes.find(e=>e.id===M)??D.modes[0],N=Po(I,H,j.allowedMisses,D.pricing),G=e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==D.maxStake?Math.min(t,D.maxStake):t},Y=I>=D.minStake,V=(e,t)=>/* @__PURE__ */T(z,{style:ac.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[ac.controlLabelText,{color:m.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[ac.controlValueText,{color:x}],children:t})]}),U=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:o,accessibilityRole:"radio",accessibilityState:{selected:n},activeOpacity:.8,style:[ac.chip,{backgroundColor:n?m.primary:"transparent",borderColor:n?m.primary:m.border}],children:/* @__PURE__ */W(S,{style:[ac.chipText,{color:n?m.primaryText:m.textMuted}],children:t})},e),q=[{label:"Perfect",amount:N.perfect},...N.nearMiss.map((e,t)=>({label:`All but ${t+1}`,amount:e}))];/* @__PURE__ */
409
+ return T(z,{style:[ac.container,{backgroundColor:m.background}],children:[n?/* @__PURE__ */W(z,{style:ac.backRow,children:/* @__PURE__ */W(Bl,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:ac.inner,children:[
410
+ /* @__PURE__ */W(Ql,{eyebrow:o?null:"Choose your safety net",iconUrl:Ze(s),gameName:s.game_name,tagline:D.tagline}),
411
+ /* @__PURE__ */W(ra,{}),
412
+ /* @__PURE__ */T(z,{style:[ac.ticket,A&&ac.ticketWide,{backgroundColor:k,borderColor:m.border,shadowColor:x,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[V("Safety net",j.label),
413
+ /* @__PURE__ */W(z,{style:ac.chipRow,children:D.modes.map(e=>U(e.id,e.label,e.id===j.id,()=>(e=>{const t=D.modes.find(t=>t.id===e);t&&(P(e),f(t.ruleId),t.legOptions.includes(H)||O(t.legOptions.reduce((e,t)=>Math.abs(t-H)<Math.abs(e-H)?t:e,t.legOptions[0])))})(e.id)))}),
414
+ /* @__PURE__ */W(S,{style:[ac.modeExplain,A&&ac.modeExplainWide,{color:m.textMuted}],children:j.explain}),
415
+ /* @__PURE__ */T(z,{style:ac.legsBlock,children:[V("Legs",`${H} legs`),
416
+ /* @__PURE__ */W(z,{style:ac.chipRow,children:j.legOptions.map(e=>U(e,String(e),e===H,()=>O(e)))}),
417
+ /* @__PURE__ */T(z,{style:ac.hintRow,children:[/* @__PURE__ */W(S,{style:[ac.hintText,{color:m.textMuted}],children:"Easier to land"}),/* @__PURE__ */W(S,{style:[ac.hintText,{color:m.textMuted}],children:"Bigger prizes"})]})]}),
418
+ /* @__PURE__ */T(z,{style:ac.stakeBlock,children:[V("Stake",Qt(I)),
419
+ /* @__PURE__ */T(z,{style:[ac.inputWrap,{borderColor:L?m.borderFocus??m.primary:m.border,backgroundColor:m.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[ac.inputPrefix,{color:m.textMuted}],children:"$"}),/* @__PURE__ */W(C,{keyboardType:"decimal-pad",placeholder:"Enter stake",placeholderTextColor:m.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>R(!0),onBlur:()=>R(!1),value:I?String(I):"",onChangeText:e=>{if(""===e)return void E(0);const t=Number(e);Number.isFinite(t)&&E(G(t))},style:[ac.input,{color:m.textAlt??m.text,fontFamily:b}]})]}),
420
+ /* @__PURE__ */W(z,{style:ac.chipRow,children:D.quickAdds.map(e=>/* @__PURE__ */W(B,{onPress:()=>E(G((I||0)+e)),activeOpacity:.8,style:[ac.stakeChip,{backgroundColor:"transparent",borderColor:m.border}],children:/* @__PURE__ */T(S,{style:[ac.chipText,{color:m.textMuted}],children:["+$",e]})},e))}),!Y&&I>0?/* @__PURE__ */T(S,{style:[ac.errorText,{color:m.error}],children:["Minimum stake is ",Qt(D.minStake),"."]}):null]}),
421
+ /* @__PURE__ */T(z,{style:[ac.prizeBlock,{borderTopColor:Zl(x,.08)}],children:[
422
+ /* @__PURE__ */T(z,{style:ac.prizeCaptionRow,children:[/* @__PURE__ */W(S,{style:[ac.prizeCaption,{color:m.textMuted}],children:"What you can win"}),/* @__PURE__ */T(S,{style:[ac.prizeCaption,{color:m.textMuted}],children:[Qt(I)," returns"]})]}),
423
+ /* @__PURE__ */T(z,{style:ac.prizeRows,children:[q.map(e=>/* @__PURE__ */T(z,{style:ac.prizeRow,children:[/* @__PURE__ */W(S,{style:[ac.prizeRowLabel,A&&ac.prizeRowLabelWide,{color:m.text}],children:e.label}),/* @__PURE__ */W(S,{style:[ac.prizeRowAmount,A&&ac.prizeRowAmountWide,{color:m.primary,fontFamily:w}],children:Qt(Math.round(e.amount))})]},e.label)),/* @__PURE__ */T(z,{style:[ac.sweepRow,{backgroundColor:m.primary}],children:[/* @__PURE__ */T(z,{style:ac.sweepLeft,children:[/* @__PURE__ */W(S,{style:[ac.sweepLabel,A&&ac.sweepLabelWide,{color:m.primaryText,fontFamily:w}],children:"Clean sweep"}),/* @__PURE__ */W(S,{style:[ac.sweepSub,{color:m.primaryText}],children:"every leg right — all prizes"})]}),/* @__PURE__ */W(S,{style:[ac.sweepAmount,A&&ac.sweepAmountWide,{color:m.primaryText,fontFamily:w}],children:Qt(Math.round(N.sweep))})]})]}),
424
+ /* @__PURE__ */W(S,{style:[ac.stakeNote,{color:m.textMuted}],children:"Total returns, stake included."}),
425
+ /* @__PURE__ */T(S,{style:[ac.missNote,{color:m.textMuted}],children:["Miss ",1===j.allowedMisses?"two":"three"," or more and the ticket does not pay."]})]})]}),
426
+ /* @__PURE__ */T(z,{style:[ac.modeCards,A&&ac.modeCardsWide],children:[/* @__PURE__ */W(z,{style:A?ac.modeCardCell:void 0,children:/* @__PURE__ */W(na,{tile:/* @__PURE__ */W(Xl,{iconUrl:Ze(s),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{Y&&(f(j.ruleId),h(H),u(H-j.allowedMisses),g(I),y(),t?.())}})}),/* @__PURE__ */W(z,{style:A?ac.modeCardCell:void 0,children:/* @__PURE__ */W(na,{tile:/* @__PURE__ */W(Xl,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{Y&&(f(j.ruleId),u(H-j.allowedMisses),g(I),p(s,H,I),e?.())}})})]})]})]})}var ac=k.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},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"},modeExplain:{fontSize:12,lineHeight:17,marginTop:8},modeExplainWide:{fontSize:13,lineHeight:18},legsBlock:{marginTop:16},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,marginBottom:8},inputPrefix:{fontSize:16,fontWeight:"700",marginRight:4},input:{flex:1,paddingVertical:12,fontSize:18,fontWeight:"600",fontVariant:["tabular-nums"]},errorText:{fontSize:12,marginTop:8},prizeBlock:{marginTop:16,paddingTop:12,borderTopWidth:1},prizeCaptionRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},prizeCaption:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},prizeRows:{marginTop:6,gap:6},prizeRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},prizeRowLabel:{fontSize:12},prizeRowLabelWide:{fontSize:13},prizeRowAmount:{fontSize:14,fontWeight:"800",fontVariant:["tabular-nums"]},prizeRowAmountWide:{fontSize:16},sweepRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:12,paddingHorizontal:12,paddingVertical:10,marginTop:4},sweepLeft:{flex:1,minWidth:0,gap:2},sweepLabel:{fontSize:14,fontWeight:"800"},sweepLabelWide:{fontSize:15},sweepSub:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:.6,opacity:.75},sweepAmount:{fontSize:20,fontWeight:"800",fontVariant:["tabular-nums"]},sweepAmountWide:{fontSize:24},stakeNote:{fontSize:11,marginTop:6},missNote:{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 cc({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=gi(),r=Ge(n),i=n.colors,{width:l}=v(),a=l<640;/* @__PURE__ */
427
+ return T(z,{style:[dc.header,a&&dc.headerCompact],children:[/* @__PURE__ */W(S,{style:[dc.sectionTitle,a&&dc.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"Set your play"}),/* @__PURE__ */W(zl,{onBack:e,hideActions:t,label:o?.game_name})]})}function sc({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:a,selectedGame:s,handlePropositionCountChange:d,setExpectedCorrect:h,setBetAmount:u,setSelectedRuleId:g,quickPickGame:f,goToSportSelection:p}=gi(),y=a.colors,m=Ne(a),b=Ge(a),w=se(a),x=be(a),k=pe(y.primary,fe(a),y.primaryText),{width:C}=v(),F=C>=640,A=l(()=>r??oi(s),[r,s]),[L,R]=c(()=>A?.defaultUnit??10),[D,M]=c($r);if(!s||!Jr(s)||!A)/* @__PURE__ */return W(z,{style:[dc.container,{backgroundColor:y.background}],children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No card available."})});const P=_r(L,D,A),H=1*L,O=L>A.unitMin,I=L<A.unitMax,E=e=>R(t=>Math.min(A.unitMax,Math.max(A.unitMin,t+e*A.unitStep))),j=()=>{g(P.ruleId),h(P.lowestWinningCount),u(P.stake)},N=(e,t)=>/* @__PURE__ */T(z,{style:dc.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[dc.controlLabelText,{color:y.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[dc.controlValueText,{color:w}],children:t})]}),G=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:n,disabled:!t,accessibilityRole:"button",accessibilityLabel:o,activeOpacity:.8,style:[dc.stepButton,{backgroundColor:y.primary,opacity:t?1:.35}],children:/* @__PURE__ */W(S,{style:[dc.stepButtonText,{color:y.primaryText}],children:e})}),Y={golden_point:`Go for the decider. Double your win to ${Qt(L*A.baseMultiple*A.goldenPointFactor)}.`,captains_challenge:`Collect ${Qt(L*A.challengeMultiple)} whenever you land ${A.legs-A.challengeMisses} or ${A.legs} of ${A.legs}. Stacks on a winning slip.`};/* @__PURE__ */
428
+ return T(z,{style:[dc.container,{backgroundColor:y.background}],children:[n?/* @__PURE__ */W(z,{style:dc.backRow,children:/* @__PURE__ */W(Bl,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:dc.inner,children:[
429
+ /* @__PURE__ */W(Ql,{eyebrow:o?null:"Set your play",iconUrl:Ze(s),gameName:s.game_name,tagline:A.tagline}),
430
+ /* @__PURE__ */W(ra,{}),
431
+ /* @__PURE__ */T(z,{style:[dc.ticket,F&&dc.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[
432
+ /* @__PURE__ */T(z,{style:[dc.playCard,{backgroundColor:y.primary}],children:[/* @__PURE__ */T(z,{style:dc.playCardSide,children:[/* @__PURE__ */W(S,{style:[dc.playCardKey,{color:y.primaryText}],children:"Total stake"}),/* @__PURE__ */W(S,{style:[dc.playCardStake,{color:y.primaryText,fontFamily:b}],children:Qt(P.stake)})]}),/* @__PURE__ */T(z,{style:[dc.playCardSide,dc.playCardRight],children:[/* @__PURE__ */W(S,{style:[dc.playCardKey,{color:y.primaryText}],children:"To win"}),/* @__PURE__ */T(z,{style:dc.playCardWinRow,children:[/* @__PURE__ */W(S,{style:[dc.playCardWin,{color:k,fontFamily:b}],children:Qt(P.base)}),P.challenge>0?/* @__PURE__ */T(S,{style:[dc.playCardChip,{backgroundColor:k,color:w}],children:["+",Qt(P.challenge)]}):null]})]})]}),
433
+ /* @__PURE__ */T(z,{style:dc.stakeBlock,children:[N("Your stake",`steps of ${Qt(A.unitStep)}`),/* @__PURE__ */T(z,{style:dc.stepRow,children:[G("−",O,()=>E(-1),"Lower stake"),
434
+ /* @__PURE__ */T(z,{style:dc.stepMid,children:[/* @__PURE__ */W(S,{style:[dc.stepValue,{color:w,fontFamily:b}],children:Qt(L)}),/* @__PURE__ */W(S,{style:[dc.stepCaption,{color:y.textMuted}],children:"per play"})]}),G("+",I,()=>E(1),"Raise stake")]})]}),
435
+ /* @__PURE__ */W(S,{style:[dc.playNote,{color:y.primary}],children:P.challenge>0?`Captain's Challenge pays ${Qt(P.challenge)} on ${A.legs-A.challengeMisses} or ${A.legs} of ${A.legs}.`:""}),
436
+ /* @__PURE__ */T(z,{style:dc.boostBlock,children:[N("Boost your card",`${Qt(H)} each`),/* @__PURE__ */W(z,{style:dc.boostRows,children:A.boosts.map(e=>{const t=D[e.id];/* @__PURE__ */
437
+ return T(B,{onPress:()=>{return t=e.id,M(e=>({...e,[t]:!e[t]}));var t},accessibilityRole:"switch",accessibilityState:{checked:t},activeOpacity:.85,style:[dc.boostRow,{backgroundColor:t?Zl(y.primary,.08):"transparent",borderColor:t?y.primary:y.border}],children:[/* @__PURE__ */T(z,{style:dc.boostBody,children:[/* @__PURE__ */T(z,{style:dc.boostTitleRow,children:[/* @__PURE__ */W(S,{style:[dc.boostLabel,F&&dc.boostLabelWide,{color:w,fontFamily:b}],children:e.label}),/* @__PURE__ */W(z,{style:[dc.boostAmt,{backgroundColor:Zl(y.primary,.12)}],children:/* @__PURE__ */T(S,{style:[dc.boostAmtText,{color:y.primary}],children:["+",Qt(H*e.costUnits)]})})]}),/* @__PURE__ */W(S,{style:[dc.boostSub,F&&dc.boostSubWide,{color:y.textMuted}],children:Y[e.id]})]}),/* @__PURE__ */W(z,{style:[dc.toggle,{backgroundColor:t?y.primary:y.border}],children:/* @__PURE__ */W(z,{style:[dc.toggleKnob,{backgroundColor:y.background,transform:[{translateX:t?20:0}]}]})})]},e.id)})})]})]}),
438
+ /* @__PURE__ */T(z,{style:[dc.modeCards,F&&dc.modeCardsWide],children:[/* @__PURE__ */W(z,{style:F?dc.modeCardCell:void 0,children:/* @__PURE__ */W(na,{tile:/* @__PURE__ */W(Xl,{iconUrl:Ze(s),size:60}),label:`Pick my ${A.legs}`,stat:"Your calls",detail:["A clean yes or no on every call","You read the games, you make the calls"],onSelect:()=>{j(),d(A.legs),p(),t?.()}})}),/* @__PURE__ */W(z,{style:F?dc.modeCardCell:void 0,children:/* @__PURE__ */W(na,{tile:/* @__PURE__ */W(Xl,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${A.legs} calls for you`,"Straight to the bet slip"],onSelect:()=>{j(),f(s,A.legs,P.stake),e?.()}})})]})]})]})}var dc=k.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},ticket:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},ticketWide:{paddingHorizontal:20,paddingVertical:20},playCard:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:16,paddingHorizontal:16,paddingVertical:14},playCardSide:{minWidth:0,flexShrink:1},playCardRight:{alignItems:"flex-end"},playCardKey:{fontSize:11,fontWeight:"600",opacity:.72},playCardStake:{fontSize:24,fontWeight:"800"},playCardWinRow:{flexDirection:"row",alignItems:"baseline",gap:6},playCardWin:{fontSize:26,fontWeight:"800",lineHeight:28},playCardChip:{fontSize:11,fontWeight:"800",borderRadius:6,paddingHorizontal:6,paddingVertical:2,overflow:"hidden"},stakeBlock:{marginTop:12},playNote:{marginTop:8,minHeight:16,fontSize:11,fontWeight:"700",textAlign:"center"},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"]},stepRow:{flexDirection:"row",alignItems:"center",gap:12},stepButton:{width:44,height:44,borderRadius:12,alignItems:"center",justifyContent:"center"},stepButtonText:{fontSize:24,fontWeight:"800",lineHeight:26},stepMid:{flex:1,alignItems:"center"},stepValue:{fontSize:24,fontWeight:"800",fontVariant:["tabular-nums"]},stepCaption:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:.8},boostBlock:{marginTop:16},boostRows:{gap:8},boostRow:{flexDirection:"row",alignItems:"center",gap:12,borderWidth:1,borderRadius:16,paddingHorizontal:12,paddingVertical:12},boostBody:{flex:1,minWidth:0},boostTitleRow:{flexDirection:"row",alignItems:"center",gap:8},boostLabel:{fontSize:14,fontWeight:"800"},boostLabelWide:{fontSize:15},boostAmt:{borderRadius:6,paddingHorizontal:6,paddingVertical:2},boostAmtText:{fontSize:10,fontWeight:"800",fontVariant:["tabular-nums"]},boostSub:{fontSize:11,lineHeight:15,marginTop:4},boostSubWide:{fontSize:12,lineHeight:16},toggle:{width:48,height:28,borderRadius:999,justifyContent:"center",paddingHorizontal:3},toggleKnob:{width:22,height:22,borderRadius:11},modeCards:{marginTop:16,gap:12},modeCardsWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},modeCardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function hc({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=gi(),r=Ge(n),i=n.colors;/* @__PURE__ */
439
+ return T(z,{style:gc.header,children:[/* @__PURE__ */W(S,{style:[gc.eyebrow,{color:i.primary,fontFamily:r}],children:"All or nothing"}),/* @__PURE__ */W(zl,{onBack:e,hideActions:t,label:o?.game_name})]})}function uc({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,backLabel:r="Games"}){const{theme:i,selectedGame:a,selectedPropositionCount:s,handlePropositionCountChange:d,setExpectedCorrect:h,quickPickGame:u,goToSportSelection:g}=gi(),f=i.colors,p=Ne(i),{width:y}=v(),m=y>=640,b=l(()=>{if(!a)return[];if(a.allowed_propositions&&a.allowed_propositions.length>0)return[...a.allowed_propositions].sort((e,t)=>e-t);const{min:e,max:t}=cn(a);return An(e,t)},[a]),w=li(a),x=b[0]??0,k=b[b.length-1]??0,[C]=c(()=>null!=s&&b.includes(s)?s:k),B=l(()=>Uo(a,C||void 0),[a,C]);if(!a||0===b.length||"exact"!==B?.kind)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:f.textMuted,fontFamily:p},children:"No setup available."})});const F=w?["Any yes/no props in the pool",`Pick ${x}–${k} legs — all must land`]:["A clean yes or no on every leg",`All ${C} have to land`],A=w?[`We fill ${C} legs across any markets`,"Straight to the bet slip"]:[`We fill all ${C} legs for you`,"Straight to the bet slip"];/* @__PURE__ */
440
+ return T(z,{style:gc.container,children:[n?/* @__PURE__ */W(z,{style:gc.backRow,children:/* @__PURE__ */W(Bl,{onBack:n,label:r})}):null,/* @__PURE__ */T(ht,{style:gc.inner,children:[
441
+ /* @__PURE__ */W(Ql,{eyebrow:o?null:B.title,iconUrl:Ze(a),gameName:a.game_name,tagline:B.heroTagline}),
442
+ /* @__PURE__ */W(ra,{}),
443
+ /* @__PURE__ */T(z,{style:[gc.cardList,m&&gc.cardListWide],children:[/* @__PURE__ */W(z,{style:m?gc.cardCell:void 0,children:/* @__PURE__ */W(na,{tile:/* @__PURE__ */W(Xl,{iconUrl:Ze(a),size:60}),label:"Pick my own",stat:"Your calls",detail:F,onSelect:()=>{w||(d(C),h(C)),g(),t?.()}})}),/* @__PURE__ */W(z,{style:m?gc.cardCell:void 0,children:/* @__PURE__ */W(na,{tile:/* @__PURE__ */W(Xl,{iconUrl:`${Ye}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:A,onSelect:()=>{h(C),u(a,C),e?.()}})})]})]})]})}var gc=k.create({container:{flex:1,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},tagline:{fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384,marginTop:12},taglineWide:{fontSize:15,lineHeight:24},cardList:{gap:12},cardListWide:{flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},cardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function fc({onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r="Games"}){const{theme:i,selectedGame:l,goToSportSelection:a,bodyFont:c}=gi(),s={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r};switch(ri(l)){case"game_set":/* @__PURE__ */return W(qa,{...s});case"pick_your_dividend":/* @__PURE__ */return W(Xa,{...s});case"ladder":/* @__PURE__ */return W($a,{...s});case"mirror":/* @__PURE__ */return W(oc,{...s});case"safety_net":/* @__PURE__ */return W(lc,{...s});case"six_again":/* @__PURE__ */return W(sc,{...s});case"rule_setup":return"exact"===Uo(l)?.kind?/* @__PURE__ */W(uc,{...s}):/* @__PURE__ */W(Ya,{onBack:n,hideTitle:o,backLabel:r,onContinue:()=>{a(),e?.()}});default:/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:i.colors.textMuted,fontFamily:c},children:"No setup required — this game goes straight to picks."})})}}function pc({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0}){const{theme:i}=gi(),l=se(i),a=fe(i),c=i.colors.primaryHover??function(e){const t=/^#([0-9a-f]{6})$/i.exec((e??"").trim());if(!t)return e;const n=parseInt(t[1],16);return`rgba(${n>>16&255}, ${n>>8&255}, ${255&n}, 0.7)`}(l),s=Ge(i)??"Manrope, Poppins, sans-serif",d=n&&n.length>0?n:t.split(/\s+/),h=.72*o,u=.5*o,g=Math.min(.62*o/d.length,.3*o);/* @__PURE__ */
433
444
  return T(z,{accessible:!0,accessibilityRole:"image",accessibilityLabel:`YESNO ${t}`,style:{flexDirection:"row",alignItems:"center",gap:.22*o},children:[
434
- /* @__PURE__ */W(On,{iconUrl:e,width:h,height:h,iconColor:l,accentColor:a}),
445
+ /* @__PURE__ */W(Pn,{iconUrl:e,width:h,height:h,iconColor:l,accentColor:a}),
435
446
  /* @__PURE__ */T(S,{style:{fontFamily:s,fontSize:u,letterSpacing:.045*-u,lineHeight:u,color:l,includeFontPadding:!1},children:[/* @__PURE__ */W(S,{style:{fontWeight:"800"},children:"YES"}),/* @__PURE__ */W(S,{style:{fontWeight:"600"},children:"NO"})]}),
436
447
  /* @__PURE__ */W(z,{style:{width:Math.max(2,Math.round(.045*o)),height:.78*o,backgroundColor:c}}),
437
- /* @__PURE__ */W(z,{style:{flexDirection:"column"},children:d.map((e,t)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"flex-start"},children:[/* @__PURE__ */W(S,{style:{fontFamily:s,fontSize:g,fontWeight:"500",letterSpacing:.012*-g,lineHeight:1.14*g,color:l,includeFontPadding:!1},children:e}),i&&t===d.length-1?/* @__PURE__ */W(S,{style:{fontFamily:s,fontSize:.36*g,fontWeight:"500",color:l,marginLeft:1},children:"™"}):null]},`${e}-${t}`))})]})}export{ei as BladeApiClient,tc as BrandLockup,Mi as CHALLENGE_MISSES,Di as CHALLENGE_MULTIPLE,Bt as CategoryIcon,ml as CategoryPickerPage,yl as CategoryPickerPageActions,pl as CategoryPickerPageTitle,zt as ChevronRightIcon,ia as ConfirmPage,oa as ConfirmPageActions,na as ConfirmPageTitle,wo as DOUBLE_SHOT_MIN_LEGS,bo as EXTRA_SHOT_MIN_LEGS,ua as EntriesPage,ha as EntriesPageTitle,Zr as EntrySubmission,ll as EventFilterBanner,kl as EventPickerPage,br as EventSwipeModal,Dt as FilterChipCarousel,Mt as FilterChipRow,uo as GAME_TIER_LEVEL,go as GAME_TIER_TABS,Pi as GOLDEN_POINT_FACTOR,ol as GameEntries,Fl as GameLogo,gl as GamePage,ul as GamePageActions,hl as GamePageTitle,$o as GameSelector,Da as GameSetBetPage,La as GameSetBetPageTitle,ec as GameSetupPage,St as HowToPlayButton,yt as HowToPlayPanel,bi as LADDER_FAMILY,yi as LADDER_REFERENCE_BET,mi as LADDER_STAKES,Ea as LadderPage,Ia as LadderPageTitle,Ft as LockIcon,zi as MIRROR_STANDARD_MARGIN,Ya as MirrorPage,Ga as MirrorPageTitle,Oi as NO_BOOSTS,Eo as PYD_LEG_RUNGS,Io as PYD_RETAIL_DIVIDENDS,$r as PayoutCircles,$a as PerfectPickPage,Ja as PerfectPickPageTitle,Ha as PickYourDividendPage,Pa as PickYourDividendPageTitle,_i as PlaceEntryProvider,er as QuickPickButton,Aa as RuleSetupPage,Ta as RuleSetupPageActions,Wa as RuleSetupPageTitle,xr as SELECTION_VARIANTS,Li as SIX_AGAIN_LEGS,Ri as SIX_AGAIN_MARGIN,qa as SafetyNetPage,Ua as SafetyNetPageTitle,Rt as ScrollShelf,qr as SelectionReview,Wr as SelectionVariantList,Jl as SelectionsPage,Zl as SelectionsPageActions,ql as SelectionsPageTitle,Xa as SixAgainPage,Za as SixAgainPageTitle,ya as SportPickerPage,pa as SportPickerPageActions,fa as SportPickerPageTitle,Al as SportRail,At as StarIcon,sa as SuccessPage,ca as SuccessPageActions,aa as SuccessPageTitle,fr as SwipeCard,pr as SwipeCardFace,yr as SwipeDeck,nr as VISIBLE_DEPTH,Wt as YesNoCategoryLabel,yo as availableGameTierTabs,Tn as contrastTextColour,Fe as darkTheme,mo as defaultGameTierId,Be as defaultTheme,Le as defaultThemeSet,po as filterGamesByTierLevel,so as filterPropositionsToEvent,$t as formatCurrency,_t as formatDate,eo as formatSameGameMultiEventLabel,Si as fullStackPrize,Oo as gameNeedsRuleSetup,fi as gameSetPrize,qi as getConfirmBoostCopy,Yi as getGameFlow,pi as getGameSetBetConfig,hn as getJackpotInfo,Bi as getLadderConfig,Ai as getMirrorConfig,Vo as getPickYourDividendConfig,oo as getPropositionEventId,Ho as getRuleSetupConfig,Lo as getSafetyNetConfig,Co as getSafetyNetPricing,Gi as getSixAgainConfig,gn as getSportDisplayName,He as getTheme,Oe as getThemeSet,Te as goldLightTheme,ve as goldTheme,Me as goldThemeSet,We as greenLightTheme,ze as greenTheme,De as greenThemeSet,en as groupPropositionsBySport,io as groupSameGameMultiEvents,Fr as groupSelectionDays,Vi as isFixedCardExactGame,gi as isGameSetBetGame,wi as isLadderGame,Wi as isMirrorGame,Ui as isOpenExactMultiGame,jo as isPickYourDividendGame,So as isSafetyNetGame,no as isSameGameMultiGame,co as isSelectableSameGameMultiProposition,Hi as isSixAgainGame,Ce as isThemeSet,sn as isValidSelectionCount,Ci as ladderCollectAt,ki as ladderTiers,Ti as mirrorPrize,ho as propositionsBelongToEvent,Yo as pydLadder,Go as pydRung,pn as resolveCategoryDisplayName,fo as resolveGameTierLevel,Xt as resolvePrice,fn as resolveSportDisplayName,Se as resolveTheme,Bo as roundDividendAmount,vo as safetyNetCollect,Fo as safetyNetTicket,Ei as sixAgainRuleId,ji as sixAgainStakeMultiples,Ii as sixAgainTicket,fe as themeAccent,Ne as themeBodyFont,se as themeHeading,Ge as themeHeadingFont,de as themeLabel,Ee as themeSets,ye as themeTextAlt,me as themeTextAltMuted,he as themeValue,Ie as themes,si as useCalculatePayout,li as useCreateGameEntry,di as useEntryPreview,ci as useEvaluateRule,ii as useGameEntries,ri as useGameMaxPayouts,ti as useGames,$i as usePlaceEntry,ai as usePlaceEntryFlow,ni as usePropositions,je as useResolvedTheme,oi as useSports,ir as useSwipeDeck};
448
+ /* @__PURE__ */W(z,{style:{flexDirection:"column"},children:d.map((e,t)=>/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"flex-start"},children:[/* @__PURE__ */W(S,{style:{fontFamily:s,fontSize:g,fontWeight:"500",letterSpacing:.012*-g,lineHeight:1.14*g,color:l,includeFontPadding:!1},children:e}),r&&t===d.length-1?/* @__PURE__ */W(S,{style:{fontFamily:s,fontSize:.36*g,fontWeight:"500",color:l,marginLeft:1},children:"™"}):null]},`${e}-${t}`))})]})}export{sr as BladeApiClient,pc as BrandLockup,Xr as CHALLENGE_MISSES,Zr as CHALLENGE_MULTIPLE,Ct as CategoryIcon,Rl as CategoryPickerPage,Ll as CategoryPickerPageActions,Al as CategoryPickerPageTitle,Bt as ChevronRightIcon,ma as ConfirmPage,ya as ConfirmPageActions,pa as ConfirmPageTitle,Wo as DOUBLE_SHOT_MIN_LEGS,Fo as EXTRA_SHOT_MIN_LEGS,za as EntriesPage,Ba as EntriesPageTitle,sl as EntrySubmission,kl as EventFilterBanner,Hl as EventPickerPage,Di as EventSwipeModal,Rt as FilterChipCarousel,Dt as FilterChipRow,so as GAME_TIER_LEVEL,ho as GAME_TIER_TABS,Qr as GOLDEN_POINT_FACTOR,bl as GameEntries,Nl as GameLogo,Wl as GamePage,Fl as GamePageActions,vl as GamePageTitle,ar as GameSelector,qa as GameSetBetPage,Ua as GameSetBetPageTitle,fc as GameSetupPage,kt as HowToPlayButton,pt as HowToPlayPanel,Er as LADDER_FAMILY,Or as LADDER_REFERENCE_BET,Ir as LADDER_STAKES,$a as LadderPage,Ja as LadderPageTitle,zt as LockIcon,yo as MIRROR_STANDARD_MARGIN,oc as MirrorPage,nc as MirrorPageTitle,$r as NO_BOOSTS,Zo as PYD_LEG_RUNGS,Ko as PYD_RETAIL_DIVIDENDS,gl as PayoutCircles,uc as PerfectPickPage,hc as PerfectPickPageTitle,Xa as PickYourDividendPage,Za as PickYourDividendPageTitle,fi as PlaceEntryProvider,pi as QuickPickButton,Ya as RuleSetupPage,Ga as RuleSetupPageActions,Na as RuleSetupPageTitle,Pi as SELECTION_VARIANTS,Kr as SIX_AGAIN_LEGS,qr as SIX_AGAIN_MARGIN,lc as SafetyNetPage,ic as SafetyNetPageTitle,At as ScrollShelf,al as SelectionReview,Yi as SelectionVariantList,da as SelectionsPage,aa as SelectionsPageActions,ia as SelectionsPageTitle,sc as SixAgainPage,cc as SixAgainPageTitle,Ta as SportPickerPage,Wa as SportPickerPageActions,Fa as SportPickerPageTitle,Ul as SportRail,Tt as StarIcon,Sa as SuccessPage,ka as SuccessPageActions,xa as SuccessPageTitle,Ti as SwipeCard,Ai as SwipeCardFace,Li as SwipeDeck,mi as VISIBLE_DEPTH,Ft as YesNoCategoryLabel,fo as availableGameTierTabs,Fn as contrastTextColour,ve as darkTheme,po as defaultGameTierId,Be as defaultTheme,Re as defaultThemeSet,go as filterGamesByTierLevel,ao as filterPropositionsToEvent,Qt as formatCurrency,Jt as formatDate,$n as formatSameGameMultiEventLabel,Yr as fullStackPrize,qo as gameNeedsRuleSetup,Pr as gameSetPrize,ai as getConfirmBoostCopy,ri as getGameFlow,Hr as getGameSetBetConfig,sn as getJackpotInfo,Ur as getLadderConfig,Co as getMirrorConfig,_o as getPickYourDividendConfig,to as getPropositionEventId,Uo as getRuleSetupConfig,No as getSafetyNetConfig,Ro as getSafetyNetPricing,oi as getSixAgainConfig,hn as getSportDisplayName,He as getTheme,Oe as getThemeSet,Te as goldLightTheme,Fe as goldTheme,Me as goldThemeSet,We as greenLightTheme,ze as greenTheme,De as greenThemeSet,$t as groupPropositionsBySport,no as groupSameGameMultiEvents,Ni as groupSelectionDays,ii as isFixedCardExactGame,Mr as isGameSetBetGame,jr as isLadderGame,ko as isMirrorGame,li as isOpenExactMultiGame,Xo as isPickYourDividendGame,Lo as isSafetyNetGame,eo as isSameGameMultiGame,lo as isSelectableSameGameMultiProposition,Jr as isSixAgainGame,Ce as isThemeSet,an as isValidSelectionCount,Vr as ladderCollectAt,Gr as ladderTiers,So as mirrorPrize,co as propositionsBelongToEvent,$o as pydLadder,Jo as pydRung,gn as resolveCategoryDisplayName,uo as resolveGameTierLevel,Kt as resolvePrice,un as resolveSportDisplayName,Se as resolveTheme,Do as roundDividendAmount,Ho as safetyNetCollect,Po as safetyNetTicket,ei as sixAgainRuleId,ti as sixAgainStakeMultiples,_r as sixAgainTicket,fe as themeAccent,Ne as themeBodyFont,se as themeHeading,Ge as themeHeadingFont,de as themeLabel,Ee as themeSets,ye as themeTextAlt,me as themeTextAltMuted,he as themeValue,Ie as themes,br as useCalculatePayout,pr as useCreateGameEntry,wr as useEntryPreview,mr as useEvaluateRule,gr as useGameEntries,fr as useGameMaxPayouts,dr as useGames,gi as usePlaceEntry,yr as usePlaceEntryFlow,hr as usePropositions,je as useResolvedTheme,ur as useSports,wi as useSwipeDeck};