@simple-parlay/components 1.30.0 → 1.30.1

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,31 +1,31 @@
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 f,Image as g,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 L,Defs as R,Ellipse as M,Line as D,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 Z(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 q(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();return t?J(t)?t:`<!DOCTYPE html>\n<html lang="en-AU">\n<head>\n<meta charset="UTF-8">\n<meta name="viewport" content="width=device-width, initial-scale=1.0">\n<title>YES NO - How to Play</title>\n<style>${K}</style>\n</head>\n<body>\n<main class="page">\n${n=function(e){return/<table\s+class=["']props["']/i.test(e)?e:function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=0;for(;o<t.length;){const e=U(t[o]);if(e){const r=[e];let i=o+1;for(;i<t.length;){const e=U(t[i]);if(!e)break;r.push(e),i+=1}n.push(Z(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+=Z([...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=q(e),n=t.match(/^<main[^>]*>([\s\S]*)<\/main>$/i);return n?n[1].trim():t}(t)),/class=["']logo["']/i.test(n)?n:/<div class=["']masthead["']>/i.test(n)?n.replace(/(<div class=["']masthead["']>)/i,'$1\n <img class="logo" src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%202400%20500%22%20width%3D%222400%22%20height%3D%22500%22%3E%0A%20%20%3Ctitle%3EYESNO%20Multi%20Logo%20%E2%80%94%20Horizontal%20Master%3C%2Ftitle%3E%0A%20%20%3Cdesc%3EYESNO%20Multi%20master%20logo.%20Horizontal%20pipe%20lockup%3A%20YESNO%20wordmark%2C%20stacked%20tile%20icon%2C%20pipe%20divider%2C%20Multi%20extension%2C%20TM.%3C%2Fdesc%3E%0A%0A%20%20%3C!--%20YESNO%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAA68AAADMCAYAAACcEJWAAABCUUlEQVR4nO3dd7xcRfnH8U9ooU%2BQDiIdpHcRRbEgII69IQ5SRRCQgPSiCNKlinQBZUQRUJRBwYIiSBWUDqIUKQJCyFBMQkjy%2B2NOfoaQ3Oy9d3efc3a%2F79drXze5udn5brm7%2B5wz88wIREREpOOcDwsDSwALAQ4YVX1dAJhzmstcwAhgYnV5rfo6DngRGDvN1%2BeA53KKU7p2Q0REeojzYQFgJcrr82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3654UpXehHzuAyF%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%2FJziJMvxRZo0uXQBIiIiIn00t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BGfAnsBBVFcj%2FrBsVWPyGNXPaq9NKl2AiLSP88EBC4FAtf1D2z0KfB64BEg5xXWWYfXjs%2Bewx80pfmfYY8pocj7MobrIZR7wKmAOzU%2BsrKU6ZP024Jb6dnP9zztG4c2PmiwR2SznwwuA%2BcChVL%2Bwty5b0a%2FcQnWg7ueAL%2BcUHytcj0hrOR%2B2AV5GtTRgj%2Fo2G9gJmAU4YDowDZhKdeHVOqqLY56%2BraPaVujB%2BrZ2g%2F99P3A38FOqxuou%2FUyqyRKRAdS%2FqF9N9c54f%2BCVwC4NRN8H3EB1deB1wDdzij9rIFdEZNzUZInIhDgfnkP17vhFwO7ArlSN107A9vVtW6p3yFsBU6jeFf%2Byvq0DHgLupdpw8R7gP4BbqT5auDmnuLap%2ByMiMiz%2FCXQ4TDPqI2KNAAAAAElFTkSuQmCC%22%20x%3D%221430%22%20y%3D%22148%22%20width%3D%22601%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20TM%20superscript%20at%20top-right%20of%20Multi%20--%3E%0A%20%20%3Ctext%20x%3D%222045%22%20y%3D%22190%22%20font-family%3D%22Manrope%2C%20Poppins%2C%20sans-serif%22%20font-size%3D%2256%22%20font-weight%3D%22600%22%20fill%3D%22%230F4C5C%22%3ETM%3C%2Ftext%3E%0A%3C%2Fsvg%3E%0A" alt="YESNO Multi" />'):n}\n</main>\n</body>\n</html>`:"";var n}var _=/^(#{1,3})\s+(.+)$/,ee=/^[-*]\s+(.+)$/,te=/^-{3,}$/;function ne(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}function oe(e){const t=[],n=/\*\*(.+?)\*\*/g;let o,r=0;for(;null!==(o=n.exec(e));)o.index>r&&t.push({text:e.slice(r,o.index),bold:!1}),t.push({text:o[1],bold:!0}),r=o.index+o[0].length;return r<e.length&&t.push({text:e.slice(r),bold:!1}),0===t.length&&t.push({text:e,bold:!1}),t}function re(e){return e.colors.heading??e.colors.text}function ie(e){return e.colors.label??e.colors.text}function le(e){return e.colors.value??e.colors.text}function ae(e){return e.colors.productYes??"#00C853"}function ce(e){return e.colors.productNo??"#E53935"}function se(e){return e.brand?.accent??e.colors.primary}function de(e){return e.colors.textAlt??e.colors.text}function he(e){return e.colors.textAltMuted??e.colors.textMuted}function ue(e){return e.colors.selectionCard??e.colors.surface??e.colors.backgroundAlt}function fe(e){return e.colors.matchupHeader??e.colors.backgroundAlt}function ge(e){return e.colors.selectionProp??e.colors.background}function pe(e){return{textMuted:e.colors.textMuted,border:e.colors.border,background:e.colors.background,backgroundAlt:e.colors.backgroundAlt,primary:e.colors.primary,selectionCard:ue(e)}}function ye(e,t="light"){return e?me(e)?"dark"===t?e.dark:e.light:e:be}function me(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"}},we={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"}},xe={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"}},ke={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"}},Se={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"}},Ce={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"}},Be={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"}},ze={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"}},Fe={light:be,dark:xe},ve={light:Se,dark:we},We={light:Ce,dark:ke},Te={light:Be,dark:ze};function Ae(e){return{default:be,green:we,"green-light":Se,dark:xe,gold:ke,"gold-light":Ce,yesno:ze,"yesno-light":Be}[e]||be}function Le(e){return{default:Fe,green:ve,gold:We,yesno:Te}[e]||Fe}var Re={default:be,green:we,"green-light":Se,dark:xe,gold:ke,"gold-light":Ce,yesno:ze,"yesno-light":Be},Me={default:Fe,green:ve,gold:We,yesno:Te};function De(e,t="light"){return ye(e,t)}function Pe(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 He={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:48},Oe={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},Ee={min:44};function je(e){const t="dark"===e.colorScheme,n=e.colors;return{space:{...He},radius:{...Oe},fontSize:{...Ie},touchTarget:{...Ee},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??Pe(n.border,t?.6:.5)},isDark:t}}function Ne(e){return"dark"===e.colorScheme?"0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 60px -28px rgba(0,0,0,0.7)":"0 1px 0 rgba(255,255,255,0.7) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}function Ge(e){return e.fonts?.body??"System"}function Ye(e){return e.fonts?.heading??e.fonts?.body??"System"}var Ve="game-icon:",Ue={perfect_pick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Perfect Pick.\n Single-glyph identifier ("100%") on a transparent background.\n\n Themable: the digits use currentColor (primary tone) and the\n trailing % uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <text x="50" y="50"\n font-family="Manrope, Poppins, sans-serif"\n font-size="32"\n letter-spacing="-1"\n text-anchor="middle"\n dominant-baseline="central"\n font-weight="800"\n fill="currentColor"><tspan fill="currentColor">100</tspan><tspan fill="var(--icon-accent, #DFFF1A)">%</tspan></text>\n</svg>',head_to_head:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Head to Head.\n Two arrowheads clashing across a citron diamond. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Source design lives in an 80×60 box; centre it in 100×100 by\n shifting (10, 20) so the diamond at (40,30) lands at (50,50). --\x3e\n \x3c!-- Themable: arrowheads use currentColor (primary tone), the\n centre diamond uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(10, 20)">\n <path d="M 6 14 L 32 30 L 6 46 L 18 30 Z" fill="currentColor"/>\n <path d="M 74 14 L 48 30 L 74 46 L 62 30 Z" fill="currentColor"/>\n <polygon points="40,20 50,30 40,40 30,30" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',total_points:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Total Points.\n Sigma glyph with italic X superscript. Transparent background;\n rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Sigma + italic X superscript, centred together in the viewBox.\n Sigma 90×98 × 0.55 = 49.5×53.9. Translating to (15, 22) puts the\n sigma centre at (~40, 49) and leaves room for the X glyph at the\n upper right so the combined mark balances around (50, 50). --\x3e\n \x3c!-- Themable: sigma uses currentColor (primary), X superscript\n uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(15, 22) scale(0.55)">\n <path d="M 0,0 L 90,0 L 90,15 L 25,15 L 58,49 L 25,83 L 90,83 L 90,98 L 0,98 L 49,49 Z"\n fill="currentColor"/>\n </g>\n <text x="75" y="30"\n font-family="Manrope, Poppins, sans-serif"\n font-size="22"\n font-style="italic"\n font-weight="400"\n text-anchor="middle"\n dominant-baseline="central"\n fill="var(--icon-accent, #DFFF1A)">X</text>\n</svg>',quickpick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — QuickPick.\n Lightning bolt glyph. Transparent background; rendered onto the\n programmatic Press-to-Play tile.\n\n Themable: bolt fill uses currentColor (primary tone); edge stroke uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(28, 16) scale(0.55)">\n <path d="M 50 8 L 5 80 L 32 80 L 22 132 L 75 50 L 47 50 L 60 8 Z"\n fill="currentColor"\n stroke="var(--icon-accent, #DFFF1A)"\n stroke-width="3.5"\n stroke-linejoin="round"/>\n </g>\n</svg>',safety_net:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Safety Net.\n The brand basketball rim + curved diamond-mesh net catching a citron ball,\n taken from the YESNO Safety Net lockup / app icon. Transparent background;\n rendered on Press-to-Play tiles and brand lockups.\n\n Themable: net uses currentColor (teal on light, white on teal tile);\n ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(-2, -6.2) scale(1.3)">\n <line x1="9" y1="18" x2="71" y2="18" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>\n <path d="M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/>\n <ellipse cx="40" cy="64" rx="18" ry="4.5" fill="none" stroke="currentColor" stroke-width="2.2"/>\n <circle cx="40" cy="50" r="8" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',ladder:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n The sub-brand staircase: four offset rungs climbing to the top, from the\n YESNO Ladder lockup ("Climb the ladder. Stack the prizes."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: alternating rungs use currentColor (primary tone) and the\n icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="4" y="76" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="20" y="54" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="36" y="32" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="52" y="10" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',game_set:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Game Set Bet.\n The sub-brand tennis ball: citron ball with the S-curve seam, from the\n Game Set Bet lockup / app icon ("Game. Set. Bet."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the seam uses currentColor (teal on light, paper on the teal\n app-icon tile); the ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(4, 4) scale(1.15)">\n <circle cx="40" cy="40" r="34" fill="var(--icon-accent, #DFFF1A)"/>\n <path d="M40 8 C12 14 11 40 40 40 C69 40 68 66 40 72" fill="none" stroke="currentColor" stroke-width="4.5" stroke-linecap="round"/>\n </g>\n</svg>',pick_your_dividend:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n Splayed ladder rails and rungs with the citron ball resting at the top —\n the stacked-multi that pays every rung your streak reaches. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n\n Themable: rails/rungs use currentColor (primary tone); the ball uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <line x1="36" y1="16" x2="27" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="64" y1="16" x2="73" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="33.8" y1="34" x2="66.2" y2="34" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n <line x1="31.5" y1="52" x2="68.5" y2="52" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.8"/>\n <line x1="29.3" y1="70" x2="70.7" y2="70" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.6"/>\n <circle cx="50" cy="20" r="9" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Mirror.\n Two offset square-stacks reflected across a central seam, from the YESNO\n Mirror Standard mark ("Get them all right, you win. All wrong, you win.").\n Transparent background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left stack --\x3e\n <rect x="6" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="14" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- right stack — the reflection across x=50 --\x3e\n <rect x="66" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="58" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',same_game_multi:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon - Same Game Multi.\n Three proposition legs contained inside one rounded fixture card: many\n picks, one game. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the fixture and leg marks use currentColor (primary tone); the\n locked lead leg uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="14" y="14" width="72" height="72" rx="13" fill="none" stroke="currentColor" stroke-width="6"/>\n <circle cx="31" cy="35" r="6" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="43" y="31" width="31" height="8" rx="4" fill="currentColor"/>\n <circle cx="31" cy="51" r="6" fill="currentColor" opacity="0.8"/>\n <rect x="43" y="47" width="25" height="8" rx="4" fill="currentColor" opacity="0.8"/>\n <circle cx="31" cy="67" r="6" fill="currentColor" opacity="0.6"/>\n <rect x="43" y="63" width="19" height="8" rx="4" fill="currentColor" opacity="0.6"/>\n</svg>',unknown:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Unknown game fallback.\n Question mark glyph on a transparent background.\n\n Themable: the mark uses currentColor (primary tone) and the dot uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <path\n d="M 28 42 C 28 26 36 16 46 16 C 58 16 66 26 66 38 C 66 48 58 54 50 58 L 50 68"\n fill="none"\n stroke="currentColor"\n stroke-width="8"\n stroke-linecap="round"\n stroke-linejoin="round"\n />\n <circle cx="50" cy="82" r="5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>'},Ze={perfectpick:"perfect_pick",headtohead:"head_to_head",totalpoints:"total_points",quickpick:"quickpick",safetynet:"safety_net",gameset:"game_set",gamesetbet:"game_set",pickyourdividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",mirrorstandard:"mirror",samegame:"same_game_multi",samegamemulti:"same_game_multi"},Ke={safety_net:"safety_net",game_set:"game_set",pick_your_dividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",same_game_multi:"same_game_multi"};function qe(e){if(e.quick_pick_only)return"quickpick";return Ke[e.rule?.trim().toLowerCase()??""]||(Ze[t=e.game_name??"",t.toLowerCase().replace(/[^a-z0-9]+/g,"")]??"unknown");var t}function Xe(e){return`${Ve}${qe(e)}`}function Qe(e){return function(e){return e.startsWith(Ve)}(e)?Ue[e.slice(10)]??Ue.unknown:null}var Je={text:"YES",tone:"yes"},$e={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"}],et=["zero","one","two","three","four","five","six","seven","eight"],tt=[{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."}],nt=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."}],ot={perfect_pick:{summary:["Perfect Pick is the multi you already know, with one big difference. You pick ",Je," or ",$e," across your legs, every leg has to land, and one perfect card takes the prize."],steps:tt,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 ",Je," or ",$e," on each matchup, land every leg, and the card pays."],steps:tt,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},total_points:{summary:["Total Points is all about the scoreboard. Call ",Je," or ",$e," on each total, land every leg, and the card pays."],steps:tt,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},quickpick:{summary:["QuickPick fills the card for you. We generate the ",Je," and ",$e," 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 ",Je," or ",$e," 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:nt("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 ",Je," or ",$e," on every leg — reach the first rung and you start winning, and every rung after that stacks another prize on top."],steps:nt("ladder"),demoPrompt:"Try a {n}-leg ladder — the climb starts at {n1} right."},game_set:{summary:["Game Set Bet is straight sets. Pick ",Je," or ",$e," on every leg — each extra leg doubles the prize, and a clean card takes the lot."],steps:nt("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 ",Je," or ",$e," on every leg — land them all and the entry pays the dividend you picked."],steps:nt("dividend"),demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},mirror:{summary:["Mirror pays both ways. Pick ",Je," or ",$e," 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:nt("card"),demoPrompt:"Try a {n}-leg mirror — sweep it either way."},same_game_multi:{summary:["Same Game Multi keeps every leg inside one fixture. Pick ",Je," or ",$e," across the game — land every leg and the card pays."],steps:tt,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."}};function rt(e){if(!e)return null;const t=qe(e),n=ot[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,et[i-1]??String(i-1)).replace(/\{n\}/g,et[i]??String(i))}}function it(e,t,n=!0){const o=e.current;o&&("number"!=typeof o.scrollLeft?o.scrollTo?.({x:t,y:0,animated:n}):o.scroll({left: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=je(t),f=t.colors,g={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:f.buttonPrimary,bgPressed:f.buttonPrimaryHover,fg:f.buttonPrimaryText,border:f.buttonPrimary},secondary:{bg:f.buttonSecondary,bgPressed:f.buttonSecondaryHover,fg:f.buttonSecondaryText,border:f.border},ghost:{bg:"transparent",bgPressed:Pe(f.text,u.isDark?.1:.06),fg:f.text,border:"transparent"},danger:{bg:f.error,bgPressed:Pe(f.error,.85),fg:"#ffffff",border:f.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:g[o].h,paddingHorizontal:g[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:g[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){const i=je(e),l=at[o];return{container:{paddingVertical:l.paddingVertical,paddingHorizontal:l.paddingHorizontal,borderRadius:i.radius.sm,alignItems:"center",justifyContent:"center",backgroundColor:t?n:"transparent",borderWidth:1,borderColor:t?"transparent":e.colors.border,opacity:r?.5:1},label:{fontSize:l.fontSize,fontWeight:"600",lineHeight:1.2*l.fontSize,color:t?"#ffffff":e.colors.text}}}function st({theme:e,value:t,onYes:n,onNo:o,size:r="md",disabled:i,yesLabel:l="Yes",noLabel:a="No",style:c}){const s=ct(e,"yes"===t,ae(e),r,i),d=ct(e,"no"===t,ce(e),r,i);/* @__PURE__ */
3
- return T(z,{style:[{flexDirection:"row",gap:8,flexShrink:0},c],children:[/* @__PURE__ */W(b,{accessibilityRole:"button",accessibilityState:{selected:"yes"===t,disabled:!!i},disabled:i,onPress:i?void 0:n,style:s.container,children:/* @__PURE__ */W(S,{style:s.label,children:l})}),/* @__PURE__ */W(b,{accessibilityRole:"button",accessibilityState:{selected:"no"===t,disabled:!!i},disabled:i,onPress:i?void 0:o,style:d.container,children:/* @__PURE__ */W(S,{style:d.label,children:a})})]})}function dt({theme:e,value:t,size:n="md",style:o}){const r=je(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?ae(e):ce(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 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:f.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,r],children:o})}function ut({segments:e,theme:t,bodyFont:n}){/* @__PURE__ */
6
- return W(S,{style:[gt.summary,{color:t.colors.text,fontFamily:n}],children:e.map((e,n)=>/* @__PURE__ */W(S,"string"==typeof e?{children:e}:{style:{fontWeight:"800",color:"yes"===e.tone?ae(t):ce(t)},children:e.text},n))})}function ft({panel:e,theme:t,dividends:n,bodyFont:o,headingFont:r}){const i=t.colors,l=t.brand?.accent??i.primaryText,a=ue(t),[s,d]=c("learn"),[h,u]=c(()=>e.demoLegs.map(()=>null)),[f,g]=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"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)=>{f||u(n=>n.map((n,o)=>o===e?t:n))},k=f?"Settled":`${y} of ${p} called`,C=!f&&m,F=e=>[gt.segment,{backgroundColor:e?i.primary:"transparent"}],v=e=>[gt.segmentText,{color:e?i.primaryText:i.textMuted,fontFamily:r}];/* @__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 f,Image as g,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 Z(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 q(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();return t?J(t)?t:`<!DOCTYPE html>\n<html lang="en-AU">\n<head>\n<meta charset="UTF-8">\n<meta name="viewport" content="width=device-width, initial-scale=1.0">\n<title>YES NO - How to Play</title>\n<style>${K}</style>\n</head>\n<body>\n<main class="page">\n${n=function(e){return/<table\s+class=["']props["']/i.test(e)?e:function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=0;for(;o<t.length;){const e=U(t[o]);if(e){const r=[e];let i=o+1;for(;i<t.length;){const e=U(t[i]);if(!e)break;r.push(e),i+=1}n.push(Z(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+=Z([...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=q(e),n=t.match(/^<main[^>]*>([\s\S]*)<\/main>$/i);return n?n[1].trim():t}(t)),/class=["']logo["']/i.test(n)?n:/<div class=["']masthead["']>/i.test(n)?n.replace(/(<div class=["']masthead["']>)/i,'$1\n <img class="logo" src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%202400%20500%22%20width%3D%222400%22%20height%3D%22500%22%3E%0A%20%20%3Ctitle%3EYESNO%20Multi%20Logo%20%E2%80%94%20Horizontal%20Master%3C%2Ftitle%3E%0A%20%20%3Cdesc%3EYESNO%20Multi%20master%20logo.%20Horizontal%20pipe%20lockup%3A%20YESNO%20wordmark%2C%20stacked%20tile%20icon%2C%20pipe%20divider%2C%20Multi%20extension%2C%20TM.%3C%2Fdesc%3E%0A%0A%20%20%3C!--%20YESNO%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAA68AAADMCAYAAACcEJWAAABCUUlEQVR4nO3dd7xcRfnH8U9ooU%2BQDiIdpHcRRbEgII69IQ5SRRCQgPSiCNKlinQBZUQRUJRBwYIiSBWUDqIUKQJCyFBMQkjy%2B2NOfoaQ3Oy9d3efc3a%2F79drXze5udn5brm7%2B5wz88wIREREpOOcDwsDSwALAQ4YVX1dAJhzmstcwAhgYnV5rfo6DngRGDvN1%2BeA53KKU7p2Q0REeojzYQFgJcrr82LVZfFp%2FrwwMDcwcpqvUy9zUV6fJ0xzGT%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N82fnwH%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%2FJziJMvxRZo0uXQBIiIiIn00tXQBIiIiIiVYz8xqJktERETEwFTDLu6wnOLVRmPL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SP88EBC4FAtf1D2z0KfB64BEg5xXWWYfXjs%2Bewx80pfmfYY8pocj7MobrIZR7wKmAOzU%2BsrKU6ZP024Jb6dnP9zztG4c2PmiwR2SznwwuA%2BcChVL%2Bwty5b0a%2FcQnWg7ueAL%2BcUHytcj0hrOR%2B2AV5GtTRgj%2Fo2G9gJmAU4YDowDZhKdeHVOqqLY56%2BraPaVujB%2BrZ2g%2F99P3A38FOqxuou%2FUyqyRKRAdS%2FqF9N9c54f%2BCVwC4NRN8H3EB1deB1wDdzij9rIFdEZNzUZInIhDgfnkP17vhFwO7ArlSN107A9vVtW6p3yFsBU6jeFf%2Byvq0DHgLupdpw8R7gP4BbqT5auDmnuLap%2ByMiMiz%2FCXQ4TDPqI2KNAAAAAElFTkSuQmCC%22%20x%3D%221430%22%20y%3D%22148%22%20width%3D%22601%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20TM%20superscript%20at%20top-right%20of%20Multi%20--%3E%0A%20%20%3Ctext%20x%3D%222045%22%20y%3D%22190%22%20font-family%3D%22Manrope%2C%20Poppins%2C%20sans-serif%22%20font-size%3D%2256%22%20font-weight%3D%22600%22%20fill%3D%22%230F4C5C%22%3ETM%3C%2Ftext%3E%0A%3C%2Fsvg%3E%0A" alt="YESNO Multi" />'):n}\n</main>\n</body>\n</html>`:"";var n}var _=/^(#{1,3})\s+(.+)$/,ee=/^[-*]\s+(.+)$/,te=/^-{3,}$/;function ne(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}function oe(e){const t=[],n=/\*\*(.+?)\*\*/g;let o,r=0;for(;null!==(o=n.exec(e));)o.index>r&&t.push({text:e.slice(r,o.index),bold:!1}),t.push({text:o[1],bold:!0}),r=o.index+o[0].length;return r<e.length&&t.push({text:e.slice(r),bold:!1}),0===t.length&&t.push({text:e,bold:!1}),t}function re(e){return e.colors.heading??e.colors.text}function ie(e){return e.colors.label??e.colors.text}function le(e){return e.colors.value??e.colors.text}function ae(e){return e.colors.productYes??"#00C853"}function ce(e){return e.colors.productNo??"#E53935"}function se(e){return e.brand?.accent??e.colors.primary}function de(e,t,n){const o=t?.trim().toLowerCase()===e.trim().toLowerCase();return t&&!o?t:n}function he(e){return e.colors.textAlt??e.colors.text}function ue(e){return e.colors.textAltMuted??e.colors.textMuted}function fe(e){return e.colors.selectionCard??e.colors.surface??e.colors.backgroundAlt}function ge(e){return e.colors.matchupHeader??e.colors.backgroundAlt}function pe(e){return e.colors.selectionProp??e.colors.background}function ye(e){return{textMuted:e.colors.textMuted,border:e.colors.border,background:e.colors.background,backgroundAlt:e.colors.backgroundAlt,primary:e.colors.primary,selectionCard:fe(e)}}function me(e,t="light"){return e?be(e)?"dark"===t?e.dark:e.light:e:we}function be(e){return"light"in e&&"dark"in e&&!("colors"in e)}var we={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"}},xe={name:"green",colorScheme:"dark",fonts:{body:"Inter",heading:"Inter",mono:"JetBrainsMono"},colors:{primary:"#00E676",primaryHover:"#00C853",primaryText:"#0a0a0a",payoutWinning:"#34d399",payoutNone:"#3f3f46",success:"#00E676",successBg:"#0d2818",successText:"#a7f3d0",error:"#ff5252",errorBg:"#2d1215",errorText:"#fca5a5",warning:"#ffab40",warningBg:"#2d1f0a",warningText:"#fde68a",info:"#40c4ff",infoBg:"#0a1e2d",infoText:"#bae6fd",border:"#2a2a2e",borderFocus:"#00E676",background:"#121214",backgroundAlt:"#1a1a1e",selectionCard:"#1e1e22",matchupHeader:"#0f2419",selectionProp:"#161618",text:"#e4e4e7",textAlt:"#e4e4e7",textAltMuted:"#a1a1aa",textMuted:"#71717a",heading:"#ffffff",label:"#a1a1aa",value:"#00E676",buttonPrimary:"#00E676",buttonPrimaryHover:"#00C853",buttonPrimaryText:"#0a0a0a",buttonSecondary:"#27272a",buttonSecondaryHover:"#3f3f46",buttonSecondaryText:"#e4e4e7"},brand:{accent:"#DFFF1A"}},ke={name:"dark",colorScheme:"dark",colors:{primary:"#60a5fa",primaryHover:"#3b82f6",primaryText:"#ffffff",payoutWinning:"#16a34a",payoutNone:"#374151",success:"#34d399",successBg:"#064e3b",successText:"#d1fae5",error:"#f87171",errorBg:"#7f1d1d",errorText:"#fecaca",warning:"#fbbf24",warningBg:"#78350f",warningText:"#fef3c7",info:"#60a5fa",infoBg:"#1e3a8a",infoText:"#dbeafe",border:"#4b5563",borderFocus:"#60a5fa",background:"#1f2937",backgroundAlt:"#111827",selectionCard:"#374151",matchupHeader:"#1e3a5f",selectionProp:"#1f2937",text:"#f9fafb",textAlt:"#f9fafb",textAltMuted:"#6b7280",textMuted:"#9ca3af",buttonPrimary:"#60a5fa",buttonPrimaryHover:"#3b82f6",buttonPrimaryText:"#ffffff",buttonSecondary:"#374151",buttonSecondaryHover:"#4b5563",buttonSecondaryText:"#f9fafb"}},Se={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"}},Ce={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"}},Be={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"}},ze={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"}},Fe={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"}},ve={light:we,dark:ke},We={light:Ce,dark:xe},Te={light:Be,dark:Se},Ae={light:ze,dark:Fe};function Re(e){return{default:we,green:xe,"green-light":Ce,dark:ke,gold:Se,"gold-light":Be,yesno:Fe,"yesno-light":ze}[e]||we}function Le(e){return{default:ve,green:We,gold:Te,yesno:Ae}[e]||ve}var De={default:we,green:xe,"green-light":Ce,dark:ke,gold:Se,"gold-light":Be,yesno:Fe,"yesno-light":ze},Me={default:ve,green:We,gold:Te,yesno:Ae};function Pe(e,t="light"){return me(e,t)}function He(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},Ie={xs:4,sm:8,md:12,lg:16,xl:24,pill:999},Ee={xs:11,sm:13,md:14,lg:16,xl:18,xxl:22,display:28},je={min:44};function Ne(e){const t="dark"===e.colorScheme,n=e.colors;return{space:{...Oe},radius:{...Ie},fontSize:{...Ee},touchTarget:{...je},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??He(n.border,t?.6:.5)},isDark:t}}function Ge(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 Ye(e){return e.fonts?.body??"System"}function Ve(e){return e.fonts?.heading??e.fonts?.body??"System"}var Ue="game-icon:",Ze={perfect_pick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Perfect Pick.\n Single-glyph identifier ("100%") on a transparent background.\n\n Themable: the digits use currentColor (primary tone) and the\n trailing % uses the icon-accent CSS variable (default #DFFF1A).\n\n Laid out with geometry, not font metrics: two separate single-chunk <text>\n elements at explicit x, each pinned with textLength, and an explicit baseline\n y instead of dominant-baseline. react-native-svg anchors each <tspan> as its\n own chunk and ignores letter-spacing, so the old one-text/two-tspan version\n drifted off centre on native and pushed the % outside the viewBox. Combined\n extent is 8..92, centred on 50, whatever font actually resolves.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <text x="8" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="56"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">100</text>\n <text x="66" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="26"\n lengthAdjust="spacingAndGlyphs"\n fill="var(--icon-accent, #DFFF1A)">%</text>\n</svg>',head_to_head:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Head to Head.\n Two arrowheads clashing across a citron diamond. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Source design lives in an 80×60 box; centre it in 100×100 by\n shifting (10, 20) so the diamond at (40,30) lands at (50,50). --\x3e\n \x3c!-- Themable: arrowheads use currentColor (primary tone), the\n centre diamond uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(10, 20)">\n <path d="M 6 14 L 32 30 L 6 46 L 18 30 Z" fill="currentColor"/>\n <path d="M 74 14 L 48 30 L 74 46 L 62 30 Z" fill="currentColor"/>\n <polygon points="40,20 50,30 40,40 30,30" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',total_points:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Total Points.\n Sigma glyph with italic X superscript. Transparent background;\n rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Sigma + italic X superscript, centred together in the viewBox.\n Sigma 90×98 × 0.55 = 49.5×53.9. Translating to (15, 22) puts the\n sigma centre at (~40, 49) and leaves room for the X glyph at the\n upper right so the combined mark balances around (50, 50). --\x3e\n \x3c!-- Themable: sigma uses currentColor (primary), X superscript\n uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(15, 22) scale(0.55)">\n <path d="M 0,0 L 90,0 L 90,15 L 25,15 L 58,49 L 25,83 L 90,83 L 90,98 L 0,98 L 49,49 Z"\n fill="currentColor"/>\n </g>\n <text x="75" y="30"\n font-family="Manrope, Poppins, sans-serif"\n font-size="22"\n font-style="italic"\n font-weight="400"\n text-anchor="middle"\n dominant-baseline="central"\n fill="var(--icon-accent, #DFFF1A)">X</text>\n</svg>',quickpick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — QuickPick.\n Lightning bolt glyph. Transparent background; rendered onto the\n programmatic Press-to-Play tile.\n\n Themable: bolt fill uses currentColor (primary tone); edge stroke uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(28, 16) scale(0.55)">\n <path d="M 50 8 L 5 80 L 32 80 L 22 132 L 75 50 L 47 50 L 60 8 Z"\n fill="currentColor"\n stroke="var(--icon-accent, #DFFF1A)"\n stroke-width="3.5"\n stroke-linejoin="round"/>\n </g>\n</svg>',safety_net:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Safety Net.\n The brand basketball rim + curved diamond-mesh net catching a citron ball,\n taken from the YESNO Safety Net lockup / app icon. Transparent background;\n rendered on Press-to-Play tiles and brand lockups.\n\n Themable: net uses currentColor (teal on light, white on teal tile);\n ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(-2, -6.2) scale(1.3)">\n <line x1="9" y1="18" x2="71" y2="18" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>\n <path d="M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/>\n <ellipse cx="40" cy="64" rx="18" ry="4.5" fill="none" stroke="currentColor" stroke-width="2.2"/>\n <circle cx="40" cy="50" r="8" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',ladder:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n The sub-brand staircase: four offset rungs climbing to the top, from the\n YESNO Ladder lockup ("Climb the ladder. Stack the prizes."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: alternating rungs use currentColor (primary tone) and the\n icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="4" y="76" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="20" y="54" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="36" y="32" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="52" y="10" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',game_set:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Game Set Bet.\n The sub-brand tennis ball: citron ball with the S-curve seam, from the\n Game Set Bet lockup / app icon ("Game. Set. Bet."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the seam uses currentColor (teal on light, paper on the teal\n app-icon tile); the ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(4, 4) scale(1.15)">\n <circle cx="40" cy="40" r="34" fill="var(--icon-accent, #DFFF1A)"/>\n <path d="M40 8 C12 14 11 40 40 40 C69 40 68 66 40 72" fill="none" stroke="currentColor" stroke-width="4.5" stroke-linecap="round"/>\n </g>\n</svg>',pick_your_dividend:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n Splayed ladder rails and rungs with the citron ball resting at the top —\n the stacked-multi that pays every rung your streak reaches. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n\n Themable: rails/rungs use currentColor (primary tone); the ball uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <line x1="36" y1="16" x2="27" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="64" y1="16" x2="73" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="33.8" y1="34" x2="66.2" y2="34" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n <line x1="31.5" y1="52" x2="68.5" y2="52" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.8"/>\n <line x1="29.3" y1="70" x2="70.7" y2="70" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.6"/>\n <circle cx="50" cy="20" r="9" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Mirror.\n Two offset square-stacks reflected across a central seam, from the YESNO\n Mirror Standard mark ("Get them all right, you win. All wrong, you win.").\n Transparent background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left stack --\x3e\n <rect x="6" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="14" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- right stack — the reflection across x=50 --\x3e\n <rect x="66" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="58" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',same_game_multi:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon - Same Game Multi.\n Three proposition legs contained inside one rounded fixture card: many\n picks, one game. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the fixture and leg marks use currentColor (primary tone); the\n locked lead leg uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="14" y="14" width="72" height="72" rx="13" fill="none" stroke="currentColor" stroke-width="6"/>\n <circle cx="31" cy="35" r="6" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="43" y="31" width="31" height="8" rx="4" fill="currentColor"/>\n <circle cx="31" cy="51" r="6" fill="currentColor" opacity="0.8"/>\n <rect x="43" y="47" width="25" height="8" rx="4" fill="currentColor" opacity="0.8"/>\n <circle cx="31" cy="67" r="6" fill="currentColor" opacity="0.6"/>\n <rect x="43" y="63" width="19" height="8" rx="4" fill="currentColor" opacity="0.6"/>\n</svg>',unknown:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Unknown game fallback.\n Question mark glyph on a transparent background.\n\n Themable: the mark uses currentColor (primary tone) and the dot uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <path\n d="M 28 42 C 28 26 36 16 46 16 C 58 16 66 26 66 38 C 66 48 58 54 50 58 L 50 68"\n fill="none"\n stroke="currentColor"\n stroke-width="8"\n stroke-linecap="round"\n stroke-linejoin="round"\n />\n <circle cx="50" cy="82" r="5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>'},Ke={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"},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"};function Xe(e){if(e.quick_pick_only)return"quickpick";return qe[e.rule?.trim().toLowerCase()??""]||(Ke[t=e.game_name??"",t.toLowerCase().replace(/[^a-z0-9]+/g,"")]??"unknown");var t}function Qe(e){return`${Ue}${Xe(e)}`}function Je(e){return function(e){return e.startsWith(Ue)}(e)?Ze[e.slice(10)]??Ze.unknown:null}var $e={text:"YES",tone:"yes"},_e={text:"NO",tone:"no"},et=[{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"}],tt=["zero","one","two","three","four","five","six","seven","eight"],nt=[{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."}],ot=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."}],rt={perfect_pick:{summary:["Perfect Pick is the multi you already know, with one big difference. You pick ",$e," or ",_e," across your legs, every leg has to land, and one perfect card takes the prize."],steps:nt,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 ",$e," or ",_e," on each matchup, land every leg, and the card pays."],steps:nt,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},total_points:{summary:["Total Points is all about the scoreboard. Call ",$e," or ",_e," on each total, land every leg, and the card pays."],steps:nt,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},quickpick:{summary:["QuickPick fills the card for you. We generate the ",$e," and ",_e," 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 ",$e," or ",_e," 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:ot("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 ",$e," or ",_e," on every leg — reach the first rung and you start winning, and every rung after that stacks another prize on top."],steps:ot("ladder"),demoPrompt:"Try a {n}-leg ladder — the climb starts at {n1} right."},game_set:{summary:["Game Set Bet is straight sets. Pick ",$e," or ",_e," on every leg — each extra leg doubles the prize, and a clean card takes the lot."],steps:ot("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 ",$e," or ",_e," on every leg — land them all and the entry pays the dividend you picked."],steps:ot("dividend"),demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},mirror:{summary:["Mirror pays both ways. Pick ",$e," or ",_e," 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:ot("card"),demoPrompt:"Try a {n}-leg mirror — sweep it either way."},same_game_multi:{summary:["Same Game Multi keeps every leg inside one fixture. Pick ",$e," or ",_e," across the game — land every leg and the card pays."],steps:nt,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."}};function it(e){if(!e)return null;const t=Xe(e),n=rt[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),et.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:et.slice(0,i),demoPrompt:l(n.demoPrompt).replace(/\{n1\}/g,tt[i-1]??String(i-1)).replace(/\{n\}/g,tt[i]??String(i))}}function lt(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 at(e,t){return{onMouseEnter:e,onMouseLeave:t}}function ct({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=Ne(t),f=t.colors,g={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:f.buttonPrimary,bgPressed:f.buttonPrimaryHover,fg:f.buttonPrimaryText,border:f.buttonPrimary},secondary:{bg:f.buttonSecondary,bgPressed:f.buttonSecondaryHover,fg:f.buttonSecondaryText,border:f.border},ghost:{bg:"transparent",bgPressed:He(f.text,u.isDark?.1:.06),fg:f.text,border:"transparent"},danger:{bg:f.error,bgPressed:He(f.error,.85),fg:"#ffffff",border:f.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:g[o].h,paddingHorizontal:g[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:g[o].fs,fontWeight:"500"},children:d}):d})}var st={xs:{paddingVertical:3,paddingHorizontal:10,fontSize:11},sm:{paddingVertical:6,paddingHorizontal:14,fontSize:13},md:{paddingVertical:8,paddingHorizontal:18,fontSize:14}};function dt(e,t,n,o,r){const i=Ne(e),l=st[o];return{container:{paddingVertical:l.paddingVertical,paddingHorizontal:l.paddingHorizontal,borderRadius:i.radius.sm,alignItems:"center",justifyContent:"center",backgroundColor:t?n:"transparent",borderWidth:1,borderColor:t?"transparent":e.colors.border,opacity:r?.5:1},label:{fontSize:l.fontSize,fontWeight:"600",lineHeight:1.2*l.fontSize,color:t?"#ffffff":e.colors.text}}}function ht({theme:e,value:t,onYes:n,onNo:o,size:r="md",disabled:i,yesLabel:l="Yes",noLabel:a="No",style:c}){const s=dt(e,"yes"===t,ae(e),r,i),d=dt(e,"no"===t,ce(e),r,i);/* @__PURE__ */
3
+ return T(z,{style:[{flexDirection:"row",gap:8,flexShrink:0},c],children:[/* @__PURE__ */W(b,{accessibilityRole:"button",accessibilityState:{selected:"yes"===t,disabled:!!i},disabled:i,onPress:i?void 0:n,style:s.container,children:/* @__PURE__ */W(S,{style:s.label,children:l})}),/* @__PURE__ */W(b,{accessibilityRole:"button",accessibilityState:{selected:"no"===t,disabled:!!i},disabled:i,onPress:i?void 0:o,style:d.container,children:/* @__PURE__ */W(S,{style:d.label,children:a})})]})}function ut({theme:e,value:t,size:n="md",style:o}){const r=Ne(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?ae(e):ce(e)},o],children:/* @__PURE__ */W(S,{style:{fontSize:i,fontWeight:"700",letterSpacing:.04*i,textTransform:"uppercase",color:"#ffffff"},children:"yes"===t?"Yes":"No"})})}function ft({delay:t=0,style:n,children:o}){const r=function(t=0){const n=e.useRef(new h.Value(0)).current;return e.useEffect(()=>{let e=!1;const o=o=>{e||(o?n.setValue(1):h.timing(n,{toValue:1,duration:500,delay:t,easing:f.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,r],children:o})}function gt({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)=>/* @__PURE__ */W(S,"string"==typeof e?{children:e}:{style:{fontWeight:"800",color:"yes"===e.tone?ae(t):ce(t)},children:e.text},n))})}function pt({panel:e,theme:t,dividends:n,bodyFont:o,headingFont:r}){const i=t.colors,l=t.brand?.accent??i.primaryText,a=fe(t),[s,d]=c("learn"),[h,u]=c(()=>e.demoLegs.map(()=>null)),[f,g]=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"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)=>{f||u(n=>n.map((n,o)=>o===e?t:n))},k=f?"Settled":`${y} of ${p} called`,C=!f&&m,F=e=>[yt.segment,{backgroundColor:e?i.primary:"transparent"}],v=e=>[yt.segmentText,{color:e?i.primaryText:i.textMuted,fontFamily:r}];/* @__PURE__ */
7
7
  return T(z,{children:[
8
- /* @__PURE__ */T(z,{style:[gt.segments,{borderColor:i.border,backgroundColor:i.backgroundAlt}],children:[
8
+ /* @__PURE__ */T(z,{style:[yt.segments,{borderColor:i.border,backgroundColor:i.backgroundAlt}],children:[
9
9
  /* @__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"})}),
10
10
  /* @__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:[
11
- /* @__PURE__ */W(ut,{segments:e.summary,theme:t,bodyFont:o}),
12
- /* @__PURE__ */T(z,{style:[gt.steps,gt.stepsSpaced],children:[/* @__PURE__ */W(z,{pointerEvents:"none",style:[gt.rail,{backgroundColor:Pe(i.primary,.25)}]}),e.steps.map((e,t)=>/* @__PURE__ */T(z,{style:gt.step,children:[/* @__PURE__ */W(z,{style:[gt.stepTile,{backgroundColor:i.primary}],children:/* @__PURE__ */W(S,{style:[gt.stepTileText,{color:l,fontFamily:r}],children:t+1})}),/* @__PURE__ */T(z,{style:gt.stepText,children:[/* @__PURE__ */W(S,{style:[gt.stepTitle,{color:i.primary,fontFamily:r}],children:e.title}),/* @__PURE__ */W(S,{style:[gt.stepDetail,{color:i.textMuted,fontFamily:o}],children:e.detail})]})]},e.title))]}),
13
- /* @__PURE__ */W(B,{onPress:()=>d("try"),accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:[gt.tryLink,{color:i.primary,fontFamily:r}],children:"Try a quick demo →"})})]}),"try"===s&&/* @__PURE__ */T(z,{style:[gt.slip,gt.slipFlush,{borderColor:i.border,backgroundColor:a}],children:[
14
- /* @__PURE__ */W(z,{style:gt.slipHead,children:/* @__PURE__ */T(z,{style:gt.slipHeadRow,children:[/* @__PURE__ */W(S,{style:[gt.prompt,gt.promptGrow,{color:i.textMuted,fontFamily:o}],children:f?"Here is how it settled.":e.demoPrompt}),/* @__PURE__ */W(z,{style:[gt.counter,C?{borderColor:i.primary,backgroundColor:i.primary}:{borderColor:Pe(i.border,.9),backgroundColor:"transparent"}],children:/* @__PURE__ */W(S,{style:[gt.counterText,{color:C?i.primaryText:i.textMuted,fontFamily:o}],children:k})})]})}),
15
- /* @__PURE__ */W(z,{style:gt.legs,children:e.demoLegs.map((e,n)=>{const r=h[n]===e.outcome;/* @__PURE__ */
16
- return T(z,{style:[gt.leg,n>0&&{borderTopWidth:1,borderTopColor:Pe(i.border,.7)}],children:[/* @__PURE__ */T(z,{style:gt.legMain,children:[/* @__PURE__ */W(z,{style:[gt.pip,f?{backgroundColor:r?i.success:i.error}:{borderWidth:1.5,borderColor:h[n]?i.primary:i.border}],children:/* @__PURE__ */W(S,{style:[gt.pipText,{color:f?"#fff":h[n]?i.primary:i.textMuted}],children:f?r?"✓":"✗":n+1})}),/* @__PURE__ */W(z,{style:gt.legText,children:/* @__PURE__ */W(S,{style:[gt.legQuestion,{color:i.text,fontFamily:o}],children:e.question})})]}),f?/* @__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:[gt.perforation,{borderTopColor:Pe(i.border,.9)}]}),
18
- /* @__PURE__ */W(z,{style:gt.slipFoot,children:f?/* @__PURE__ */T(z,{children:[/* @__PURE__ */T(z,{style:[gt.verdict,{backgroundColor:w.won?i.successBg:i.errorBg}],children:[/* @__PURE__ */W(z,{style:[gt.stamp,{borderColor:w.won?i.successText:i.errorText}],children:/* @__PURE__ */W(S,{style:[gt.stampText,{color:w.won?i.successText:i.errorText,fontFamily:r}],children:w.won?"Winner":"No win"})}),/* @__PURE__ */W(S,{style:[gt.verdictText,{color:w.won?i.successText:i.errorText,fontFamily:o}],children:w.message})]}),/* @__PURE__ */W(B,{onPress:()=>{u(e.demoLegs.map(()=>null)),g(!1)},accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:[gt.tryAgain,{color:i.textMuted,fontFamily:o}],children:"↺ Deal it again"})})]}):/* @__PURE__ */W(lt,{theme:t,size:"sm",block:!0,disabled:!m,onPress:()=>g(!0),children:"Run the demo"})})]})]})}var gt=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 pt({text:e,colors:t}){/* @__PURE__ */
19
- return W(S,{children:oe(e).map((e,n)=>/* @__PURE__ */W(S,{style:{fontWeight:e.bold?"700":"400",color:e.bold?t.text:t.textMuted},children:e.text},n))})}function yt({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 mt({rows:e}){/* @__PURE__ */
11
+ /* @__PURE__ */W(gt,{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:He(i.primary,.25)}]}),e.steps.map((e,t)=>/* @__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:t+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:e.detail})]})]},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:f?"Here is how it settled.":e.demoPrompt}),/* @__PURE__ */W(z,{style:[yt.counter,C?{borderColor:i.primary,backgroundColor:i.primary}:{borderColor:He(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:He(i.border,.7)}],children:[/* @__PURE__ */T(z,{style:yt.legMain,children:[/* @__PURE__ */W(z,{style:[yt.pip,f?{backgroundColor:r?i.success:i.error}:{borderWidth:1.5,borderColor:h[n]?i.primary:i.border}],children:/* @__PURE__ */W(S,{style:[yt.pipText,{color:f?"#fff":h[n]?i.primary:i.textMuted}],children:f?r?"✓":"✗":n+1})}),/* @__PURE__ */W(z,{style:yt.legText,children:/* @__PURE__ */W(S,{style:[yt.legQuestion,{color:i.text,fontFamily:o}],children:e.question})})]}),f?/* @__PURE__ */W(ut,{theme:t,size:"sm",value:e.outcome}):/* @__PURE__ */W(ht,{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:He(i.border,.9)}]}),
18
+ /* @__PURE__ */W(z,{style:yt.slipFoot,children:f?/* @__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)),g(!1)},accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:[yt.tryAgain,{color:i.textMuted,fontFamily:o}],children:"↺ Deal it again"})})]}):/* @__PURE__ */W(ct,{theme:t,size:"sm",block:!0,disabled:!m,onPress:()=>g(!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}){/* @__PURE__ */
19
+ return W(S,{children:oe(e).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__ */
20
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:[
21
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})}),
22
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"})}),
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 bt({content:e,colors:t,bodyFont:n,headingFont:o}){/* @__PURE__ */
24
- return W(z,{style:{gap:14},children:ne(e).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(pt,{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(pt,{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(pt,{text:e,colors:t})]},o))},r):"propsTable"===e.type?/* @__PURE__ */W(mt,{rows:e.rows},r):/* @__PURE__ */W(z,{style:{height:1,backgroundColor:t.border,marginVertical:4}},r))})}function wt({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:f}=F(),g=f>=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=q(t);return!!X.test(n)||Q.test(t)}(e);/* @__PURE__ */
25
- return T(v,{children:["icon"===l?/* @__PURE__ */W(B,{onPress:()=>u(!0),style:[xt.iconButton,{borderColor:a.primary,backgroundColor:`${a.primary}14`}],accessibilityRole:"button",accessibilityLabel:i,children:/* @__PURE__ */W(S,{style:[xt.iconButtonText,{color:a.primary,fontFamily:s}],children:"?"})}):/* @__PURE__ */T(B,{onPress:()=>u(!0),style:[xt.button,{borderColor:a.primary,backgroundColor:`${a.primary}10`}],accessibilityRole:"button",accessibilityLabel:i,children:[/* @__PURE__ */W(S,{style:[xt.buttonText,{color:a.primary,fontFamily:s}],children:i}),/* @__PURE__ */W(S,{style:[xt.buttonText,{color:a.primary,fontFamily:s}],children:"?"})]}),/* @__PURE__ */W(p,{visible:h,animationType:"none",transparent:!0,onRequestClose:()=>u(!1),children:/* @__PURE__ */T(z,{style:[xt.overlay,g?{justifyContent:"center",alignItems:"center",padding:16}:{justifyContent:"flex-end"}],children:[/* @__PURE__ */W(b,{style:k.absoluteFill,onPress:()=>u(!1)}),/* @__PURE__ */T(z,{style:[xt.sheet,g?{maxWidth:672,maxHeight:"85%",borderRadius:16}:{maxHeight:"88%",borderTopLeftRadius:16,borderTopRightRadius:16},{backgroundColor:a.background,borderColor:a.border}],children:[
26
- /* @__PURE__ */W(z,{style:[xt.header,{paddingHorizontal:g?24:16,borderBottomColor:a.border,backgroundColor:a.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[xt.title,{color:a.text,fontFamily:d??s}],children:r})}),
27
- /* @__PURE__ */W(x,{contentContainerStyle:m?void 0:{paddingHorizontal:g?24:16,paddingVertical:20},children:y?/* @__PURE__ */W(ft,{panel:t,theme:n,dividends:o,bodyFont:s,headingFont:d}):/* @__PURE__ */T(v,{children:[m?/* @__PURE__ */W(yt,{content:e,colors:a}):/* @__PURE__ */W(bt,{content:e??"",colors:a,bodyFont:s,headingFont:d}),o?/* @__PURE__ */W(z,{style:m?{paddingHorizontal:g?24:16,paddingBottom:20}:{marginTop:16},children:o}):null]})}),
28
- /* @__PURE__ */W(w,{style:[xt.footer,{paddingHorizontal:g?24:16,borderTopColor:a.border,backgroundColor:a.backgroundAlt}],children:/* @__PURE__ */W(B,{onPress:()=>u(!1),style:[xt.doneButton,{alignSelf:"stretch",alignItems:"center",backgroundColor:a.primary}],children:/* @__PURE__ */W(S,{style:[xt.doneText,{color:a.primaryText,fontFamily:s}],children:"Got it"})})})]})]})})]})}var xt=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:{paddingVertical:16,borderTopWidth:1},doneButton:{borderRadius:12,paddingVertical:13,paddingHorizontal:20},doneText:{fontSize:14,fontWeight:"700"}});function kt({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:[
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}){/* @__PURE__ */
24
+ return W(z,{style:{gap:14},children:ne(e).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:f}=F(),g=f>=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=q(t);return!!X.test(n)||Q.test(t)}(e);/* @__PURE__ */
25
+ return T(v,{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,g?{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,g?{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:g?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:g?24:16,paddingVertical:20},children:y?/* @__PURE__ */W(pt,{panel:t,theme:n,dividends:o,bodyFont:s,headingFont:d}):/* @__PURE__ */T(v,{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:g?24:16,paddingBottom:20}:{marginTop:16},children:o}):null]})}),
28
+ /* @__PURE__ */W(w,{style:[St.footer,{paddingHorizontal:g?24:16,borderTopColor:a.border,backgroundColor:a.backgroundAlt}],children:/* @__PURE__ */W(B,{onPress:()=>u(!1),style:[St.doneButton,{alignSelf:"stretch",alignItems:"center",backgroundColor:a.primary}],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:{paddingVertical:16,borderTopWidth:1},doneButton:{borderRadius:12,paddingVertical:13,paddingHorizontal:20},doneText:{fontSize:14,fontWeight:"700"}});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:[
29
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}),
30
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}),
31
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:[
@@ -34,357 +34,351 @@ return T(v,{children:["icon"===l?/* @__PURE__ */W(B,{onPress:()=>u(!0),style:[xt
34
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
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
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 St({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 Ct({size:e=20,color:t="currentColor"}){/* @__PURE__ */
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 Bt({size:e=20,color:t="currentColor"}){/* @__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 zt({label:e,category:t,icon:n,theme:o,disabled:r=!1}){const i=o.colors,l=Ye(o),{width:a}=F(),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:[Ft.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:Ft.yes,children:"YES"}),/* @__PURE__ */W(S,{style:Ft.no,children:"NO"})]}),
43
- /* @__PURE__ */W(z,{accessible:!0,accessibilityRole:"image",accessibilityLabel:e,style:[Ft.pill,{width:1.6*c,height:.85*c,borderRadius:.425*c,backgroundColor:d,transform:[{translateY:.02*-c}]}],children:n??/* @__PURE__ */W(kt,{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 Ft=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 vt({groups:t,theme:n,bodyFont:o}){const r=n.colors,i=a(null),l=a(0),s=a(0),d=a(0),[h,u]=c(!1),[f,g]=c(!1),p=()=>{const e=d.current-s.current;u(l.current>2),g(l.current<e-2)},y=e=>{it(i,Math.max(0,l.current+e*Math.round(.7*s.current)))},m=r.background??"#fff";return 0===t.length?null:/* @__PURE__ */T(z,{style:Tt.wrap,children:[
45
- /* @__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:Tt.chips,children:t.map((t,n)=>/* @__PURE__ */T(e.Fragment,{children:[n>0&&/* @__PURE__ */W(z,{style:[Tt.divider,{backgroundColor:r.border}]}),t.label?/* @__PURE__ */W(S,{style:[Tt.groupLabel,{color:r.textMuted,fontFamily:o}],children:t.label}):null,t.options.map(e=>{const n=e.value===t.value;/* @__PURE__ */
46
- return W(B,{onPress:()=>t.onChange(e.value),activeOpacity:.8,style:[Tt.chip,{borderColor:n?r.primary:r.border,backgroundColor:n?r.primary:m}],children:/* @__PURE__ */W(S,{style:[Tt.chipText,{color:n?r.primaryText:r.primary,fontFamily:o}],children:e.label})},e.value??"__all")})]},t.label??n))}),h&&/* @__PURE__ */W(B,{accessibilityLabel:"Scroll left",onPress:()=>y(-1),style:[Tt.nav,Tt.navLeft,{backgroundColor:m,borderColor:r.border}],children:/* @__PURE__ */W(z,{style:Tt.navFlip,children:/* @__PURE__ */W(St,{size:14,color:r.primary})})}),f&&/* @__PURE__ */W(B,{accessibilityLabel:"Scroll right",onPress:()=>y(1),style:[Tt.nav,Tt.navRight,{backgroundColor:m,borderColor:r.border}],children:/* @__PURE__ */W(St,{size:14,color:r.primary})})]})}function Wt({label:e,options:t,value:n,onChange:o,theme:r,bodyFont:i}){/* @__PURE__ */
47
- return W(vt,{groups:[{label:e,options:t,value:n,onChange:o}],theme:r,bodyFont:i})}var Tt=k.create({wrap:{position:"relative",minWidth:0},chips:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:2,paddingVertical:2},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},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 At(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function Lt(e){return(e.description??e.proposition??"").trim()}var Rt={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function Mt(e){return"composite_and"===(t=At(e))||"composite_or"===t;var t}function Dt(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 Pt(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 Ht(e,t){if(!Mt(e))return null;const n=function(e){return Mt(e)?("composite_and"===(t=At(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=Dt(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:Lt(o),eventLabel:Pt(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(Rt[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(Lt(e),n);return r?{operator:n,legs:r.map(e=>({text:e,eventLabel:null}))}:null}var Ot="#0F4C5C",It={aussierules_afl:"AFL",rugbyleague_nrl:"NRL",basketball_nba:"NBA",basketball_ncaab:"CBB",americanfootball_nfl:"NFL",americanfootball_ncaaf:"CFB",soccer_epl:"EPL",soccer_italy_serie_a:"SEA",soccer_spain_la_liga:"LIG",soccer_germany_bundesliga:"BUN",soccer_usa_mls:"MLS",baseball_mlb:"MLB",icehockey_nhl:"NHL",horse_racing_aus:"RLT",roulette:"RLT",dice:"DCE",cointrio:"CT3"},Et={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner"};function jt(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=It[e];if(o)return o;if(t&&e.startsWith(`${t}_`)){const n=e.slice(t.length+1).replace(/_/g," ").split(/\s+/).filter(Boolean).map(e=>e[0]).join("").slice(0,4).toUpperCase();if(n)return n}return e.startsWith("casino_")?e.slice(7,11).toUpperCase()||"CSN":e.slice(0,3).toUpperCase()||"·"}function Nt(e){return!!e.is_composite_component||!!(t=At(e))&&t.startsWith("co_");var t}function Gt(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0}function Yt(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function Vt(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}function Ut(e){return"yes"===e.toLowerCase()?"Yes":"No"}function Zt(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 Kt(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 qt(e){return e.reduce((t,n)=>{const o=Xt(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function Xt(e,t){if(e.sport)return e.sport;if(Mt(e)&&t)for(const n of Dt(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var Qt=["sports","casino","racing"];function Jt(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=At(e).toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"sports"}function $t(e){return"racing"===Jt(e)}function _t(e){const t={};for(const n of e){const e=Jt(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function en(e){const t=_t(e);return Qt.filter(e=>(t[e]?.length??0)>0)}function tn(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";default:return"Choose a Sport"}}function nn(e,t,n,o){return o&&o.length>0?o.includes(e):!(void 0!==t&&e<t||void 0!==n&&e>n)}function on(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 rn(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 ln(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 an(e,t,n){const o=t?.[e];return o||ln(e,n)}function cn(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 sn(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function dn(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function hn(e,t,n){return!t||!!e&&(dn(e,t,n)||dn(t,e,n))}function un(e,t){return t.find(t=>t.id===e)}function fn(e,t){let n=e;return t?.category&&(n=n.filter(e=>Jt(e)===t.category)),t?.sport&&(n=n.filter(n=>Mt(n)?function(e,t,n,o){if(hn(e.sport,t,n))return!0;if(!o)return!1;for(const r of Dt(e)){const e=un(r,o);if(e&&hn(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):hn(n.sport,t.sport,t.sportBaseKey))),n}function gn(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t?t:"sports"}(e)===t}function pn(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>dn(t,e,n))}function yn(e,t,n){return!(n?.category&&!gn(e,n.category))&&!(n?.sport&&!pn(e,n.sport,n.sportBaseKey))&&fn(bn(t,e),n).length>0}function mn(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!gn(e,t.category)||t.sport&&!pn(e,t.sport,t.sportBaseKey))):e}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(Nt(l))return!1;if(r)if(Mt(l)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>dn(e.sport,t,n)))return!0;if(!o)return!1;for(const r of Dt(e)){const e=un(r,o);if(e?.sport&&t.some(t=>dn(e.sport,t,n)))return!0}return!1}(l,o,n,e))return!1}else if(!l.sport||!o.some(e=>dn(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=At(e);return!!o&&n.includes(o)}(l,t))}):e.filter(e=>!Nt(e))}function wn(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 xn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function kn(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 Sn(e,t,n){return function(e,t,n){return"racing"===e||!(!t?.length||!t.every($t))||!!n&&Boolean(t?.some(e=>e.sport===n||(e.sport||"").startsWith(`${n}_`)))}(t,e,n)?function(e){return e.reduce((e,t)=>{const n=t.away_team||t.eventId||"Race";return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e):function(e){return e.reduce((e,t)=>{const n=`${t.home_team} vs ${t.away_team}`;return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e)}function Cn(e){const t=[];for(const n of e){const e=n.home_team&&n.away_team&&!$t(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 Bn(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 zn(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 Fn=/* @__PURE__ */new Map,vn=/* @__PURE__ */new Map;function Wn(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 Tn({iconUrl:t,width:n,height:o,iconColor:r,accentColor:i,accessibilityLabel:l}){const a=Qe(t),[c,s]=e.useState(()=>a??Fn.get(t)??null);return e.useEffect(()=>{const e=Qe(t);if(e)return void s(e);if(Fn.has(t))return void s(Fn.get(t));let n=!1;return function(e){const t=Fn.get(e);if(void 0!==t)return Promise.resolve(t);const n=vn.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=>(Fn.set(e,t),vn.delete(e),t)).catch(t=>{throw vn.delete(e),t});return vn.set(e,o),o}(t).then(e=>{n||s(e)}).catch(()=>{n||s(null)}),()=>{n=!0}},[t]),c?/* @__PURE__ */W(j,{xml:Wn(c,r,i),width:n,height:o,accessibilityLabel:l}):/* @__PURE__ */W(g,{source:{uri:t},style:{width:n,height:o},resizeMode:"contain",accessibilityLabel:l})}function An({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,f]=e.useState(!1),[g,p]=e.useState(!1),y=(n||"").toUpperCase(),w=170,x=r/360,k=a??l,S=e.useRef(new h.Value(0)).current,C=e=>({position:"absolute",left:40*x,top:5*x,width:210*x,height:210*x,borderRadius:42*x,backgroundColor:i,opacity:e}),B=e=>({transform:[{translateX:S.interpolate({inputRange:[0,1],outputRange:[e*x,0]})},{translateY:S.interpolate({inputRange:[0,1],outputRange:[e*x,0]})}]}),F=!!o&&(u||g);e.useEffect(()=>{h.timing(S,{toValue:F?1:0,duration:220,useNativeDriver:"web"!==m.OS}).start()},[F,S]);const v=()=>/* @__PURE__ */T(z,{style:[Ln.container,{width:r,height:r}],children:[
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__ */
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 Ft({size:e=20,color:t="currentColor"}){/* @__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 vt({label:e,category:t,icon:n,theme:o,disabled:r=!1}){const i=o.colors,l=Ve(o),{width:a}=F(),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({groups:t,theme:n,bodyFont:o}){const r=n.colors,i=a(null),l=a(0),s=a(0),d=a(0),[h,u]=c(!1),[f,g]=c(!1),p=()=>{const e=d.current-s.current;u(l.current>2),g(l.current<e-2)},y=e=>{lt(i,Math.max(0,l.current+e*Math.round(.7*s.current)))},m=r.background??"#fff";return 0===t.length?null:/* @__PURE__ */T(z,{style:Rt.wrap,children:[
45
+ /* @__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:Rt.chips,children:t.map((t,n)=>/* @__PURE__ */T(e.Fragment,{children:[n>0&&/* @__PURE__ */W(z,{style:[Rt.divider,{backgroundColor:r.border}]}),t.label?/* @__PURE__ */W(S,{style:[Rt.groupLabel,{color:r.textMuted,fontFamily:o}],children:t.label}):null,t.options.map(e=>{const n=e.value===t.value;/* @__PURE__ */
46
+ return W(B,{onPress:()=>t.onChange(e.value),activeOpacity:.8,style:[Rt.chip,{borderColor:n?r.primary:r.border,backgroundColor:n?r.primary:m}],children:/* @__PURE__ */W(S,{style:[Rt.chipText,{color:n?r.primaryText:r.primary,fontFamily:o}],children:e.label})},e.value??"__all")})]},t.label??n))}),h&&/* @__PURE__ */W(B,{accessibilityLabel:"Scroll left",onPress:()=>y(-1),style:[Rt.nav,Rt.navLeft,{backgroundColor:m,borderColor:r.border}],children:/* @__PURE__ */W(z,{style:Rt.navFlip,children:/* @__PURE__ */W(Bt,{size:14,color:r.primary})})}),f&&/* @__PURE__ */W(B,{accessibilityLabel:"Scroll right",onPress:()=>y(1),style:[Rt.nav,Rt.navRight,{backgroundColor:m,borderColor:r.border}],children:/* @__PURE__ */W(Bt,{size:14,color:r.primary})})]})}function At({label:e,options:t,value:n,onChange:o,theme:r,bodyFont:i}){/* @__PURE__ */
47
+ return W(Tt,{groups:[{label:e,options:t,value:n,onChange:o}],theme:r,bodyFont:i})}var Rt=k.create({wrap:{position:"relative",minWidth:0},chips:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:2,paddingVertical:2},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},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 Lt(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function Dt(e){return(e.description??e.proposition??"").trim()}var Mt={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function Pt(e){return"composite_and"===(t=Lt(e))||"composite_or"===t;var t}function Ht(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 Ot(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 It(e,t){if(!Pt(e))return null;const n=function(e){return Pt(e)?("composite_and"===(t=Lt(e))?"AND":"composite_or"===t?"OR":null)||function(e){const t=e.source_data;if(!t)return null;try{const e=JSON.parse(t)?.composite?.operator;if("and"===e)return"AND";if("or"===e)return"OR"}catch{return null}return null}(e):null;var t}(e);if(!n)return null;const o=Ht(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:Dt(o),eventLabel:Ot(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(Mt[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(Dt(e),n);return r?{operator:n,legs:r.map(e=>({text:e,eventLabel:null}))}:null}var Et="#0F4C5C",jt={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"},Nt={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner"};function Gt(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=jt[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 Yt(e){return!!e.is_composite_component||!!(t=Lt(e))&&t.startsWith("co_");var t}function Vt(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0}function Ut(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function Zt(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}function Kt(e){return"yes"===e.toLowerCase()?"Yes":"No"}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 Xt(e){const t="string"==typeof e?new Date(e.endsWith("Z")||/[+-]\d{2}:\d{2}$/.test(e)?e:e+"Z"):e;return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}).format(t)}function Qt(e){return e.reduce((t,n)=>{const o=Jt(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function Jt(e,t){if(e.sport)return e.sport;if(Pt(e)&&t)for(const n of Ht(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var $t=["sports","casino","racing"];function _t(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=Lt(e).toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"sports"}function en(e){return"racing"===_t(e)}function tn(e){const t={};for(const n of e){const e=_t(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function nn(e){const t=tn(e);return $t.filter(e=>(t[e]?.length??0)>0)}function on(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";default:return"Choose a Sport"}}function rn(e,t,n,o){return o&&o.length>0?o.includes(e):!(void 0!==t&&e<t||void 0!==n&&e>n)}function ln(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 an(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 cn(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 sn(e,t,n){const o=t?.[e];return o||cn(e,n)}function dn(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 hn(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function un(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function fn(e,t,n){return!t||!!e&&(un(e,t,n)||un(t,e,n))}function gn(e,t){return t.find(t=>t.id===e)}function pn(e,t){let n=e;return t?.category&&(n=n.filter(e=>_t(e)===t.category)),t?.sport&&(n=n.filter(n=>Pt(n)?function(e,t,n,o){if(fn(e.sport,t,n))return!0;if(!o)return!1;for(const r of Ht(e)){const e=gn(r,o);if(e&&fn(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):fn(n.sport,t.sport,t.sportBaseKey))),n}function yn(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t?t:"sports"}(e)===t}function mn(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>un(t,e,n))}function bn(e,t,n){return!(n?.category&&!yn(e,n.category))&&!(n?.sport&&!mn(e,n.sport,n.sportBaseKey))&&pn(xn(t,e),n).length>0}function wn(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!yn(e,t.category)||t.sport&&!mn(e,t.sport,t.sportBaseKey))):e}function xn(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(Yt(l))return!1;if(r)if(Pt(l)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>un(e.sport,t,n)))return!0;if(!o)return!1;for(const r of Ht(e)){const e=gn(r,o);if(e?.sport&&t.some(t=>un(e.sport,t,n)))return!0}return!1}(l,o,n,e))return!1}else if(!l.sport||!o.some(e=>un(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=Lt(e);return!!o&&n.includes(o)}(l,t))}):e.filter(e=>!Yt(e))}function kn(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 Sn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function Cn(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 Bn(e,t,n){return function(e,t,n){return"racing"===e||!(!t?.length||!t.every(en))||!!n&&Boolean(t?.some(e=>e.sport===n||(e.sport||"").startsWith(`${n}_`)))}(t,e,n)?function(e){return e.reduce((e,t)=>{const n=t.away_team||t.eventId||"Race";return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e):function(e){return e.reduce((e,t)=>{const n=`${t.home_team} vs ${t.away_team}`;return e[n]||(e[n]=[]),e[n].push(t),e},{})}(e)}function zn(e){const t=[];for(const n of e){const e=n.home_team&&n.away_team&&!en(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 Fn(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 vn(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 Wn=/* @__PURE__ */new Map,Tn=/* @__PURE__ */new Map;function An(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 Rn({iconUrl:t,width:n,height:o,iconColor:r,accentColor:i,accessibilityLabel:l}){const a=Je(t),[c,s]=e.useState(()=>a??Wn.get(t)??null);return e.useEffect(()=>{const e=Je(t);if(e)return void s(e);if(Wn.has(t))return void s(Wn.get(t));let n=!1;return function(e){const t=Wn.get(e);if(void 0!==t)return Promise.resolve(t);const n=Tn.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=>(Wn.set(e,t),Tn.delete(e),t)).catch(t=>{throw Tn.delete(e),t});return Tn.set(e,o),o}(t).then(e=>{n||s(e)}).catch(()=>{n||s(null)}),()=>{n=!0}},[t]),c?/* @__PURE__ */W(j,{xml:An(c,r,i),width:n,height:o,accessibilityLabel:l}):/* @__PURE__ */W(g,{source:{uri:t},style:{width:n,height:o},resizeMode:"contain",accessibilityLabel:l})}function Ln({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,f]=e.useState(!1),[g,p]=e.useState(!1),y=(n||"").toUpperCase(),w=170,x=r/360,k=a??l,S=de(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}),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||g);e.useEffect(()=>{h.timing(C,{toValue:v?1:0,duration:220,useNativeDriver:"web"!==m.OS}).start()},[v,C]);const R=()=>/* @__PURE__ */T(z,{style:[Dn.container,{width:r,height:r}],children:[
48
48
  /* @__PURE__ */T(A,{viewBox:"0 0 360 360",width:r,height:r,children:[
49
49
  /* @__PURE__ */W(I,{x:2,y:2,width:356,height:356,rx:78,fill:l,stroke:i,strokeWidth:4}),
50
50
  /* @__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"}),
51
51
  /* @__PURE__ */W(N,{x:180,y:338,fontFamily:"Manrope, Poppins, sans-serif",fontSize:18,letterSpacing:2,fontWeight:"500",textAnchor:"middle",fill:s,children:y})]}),
52
- /* @__PURE__ */W(h.View,{pointerEvents:"none",style:[C(.3),B(50)]}),
53
- /* @__PURE__ */W(h.View,{pointerEvents:"none",style:[C(.55),B(25)]}),
54
- /* @__PURE__ */W(z,{pointerEvents:"none",style:C(1)}),
55
- /* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",left:60*x,top:25*x,width:w*x,height:w*x},children:/* @__PURE__ */W(Tn,{iconUrl:t,width:w*x,height:w*x,iconColor:k,accentColor:c})})]});return o?/* @__PURE__ */W(b,{onPress:o,onPressIn:()=>p(!0),onPressOut:()=>p(!1),onHoverIn:"web"===m.OS?()=>f(!0):void 0,onHoverOut:"web"===m.OS?()=>f(!1):void 0,accessibilityRole:"button",accessibilityLabel:d??`Press to play ${n}`,style:{width:r,height:r,borderRadius:r/360*78,transform:[{scale:g?.96:1}]},children:v()}):v()}var Ln=k.create({container:{position:"relative"}});function Rn({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__ */
56
- 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 Mn(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function Dn(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function Pn(e){if(!e||e.quick_pick_only)return!1;const t=Dn(e.selection_scope);if("samegamemulti"===Dn(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(Dn);return n.includes("samegame")||n.includes("samegamemulti")}function Hn(e){return(e.eventId??e.event_id)?.trim()||null}function On(e){const t=/* @__PURE__ */new Map;for(const n of e){if(!Nn(n))continue;const e=Hn(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=In(o.homeTeam,n.home_team),o.awayTeam=In(o.awayTeam,n.away_team),o.sport=In(o.sport,n.sport),o.league=In(o.league,n.league),o.commenceTime=jn(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=En(e.commenceTime),o=En(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function In(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function En(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function jn(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=En(e),r=En(n);return r!==o?r<o?n:e:e.localeCompare(n)<=0?e:n}function Nn(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function Gn(e,t){return t?e.filter(e=>Nn(e)&&Hn(e)===t):[]}function Yn(e,t){return!!t&&e.length>0&&e.every(e=>Nn(e)&&Hn(e)===t)}var Vn={signature:1,premier:2,exclusive:3},Un=[{id:"signature",label:"Signature Games",shortLabel:"Signature",level:1},{id:"premier",label:"Premier Games",shortLabel:"Premier",level:2},{id:"exclusive",label:"Exclusive Games",shortLabel:"Exclusive",level:3}];function Zn(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function Kn(e,t){return e.filter(e=>Zn(e)===t)}function qn(e){const t=new Set(e.map(Zn));return Un.filter(e=>t.has(e.level))}function Xn(e){return qn(e)[0]?.id??"signature"}var Qn=4,Jn=6,$n=[4,12],_n=[5,10,20,50];function eo(e){return!!e&&!e.quick_pick_only&&"safety_net"===(e.rule??"").trim().toLowerCase()}function to(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 no(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)}function oo(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 ro(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=oo(t,0);for(let d=1;d<=r;d+=1)s+=oo(t,d),c.push(no(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 io(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 lo(e){return e.includes(8)?8:e[Math.floor(e.length/2)]}function ao(e){return e.toLowerCase().replace(/[^a-z]+/g," ").trim()}function co(e,t){const n=ao(t);return e.permitted_rules?.find(e=>ao(e.name??"").includes(n))??null}function so(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 ho(e){if(!eo(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??$n[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??$n[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n),r=co(e,"Extra Shot"),i=co(e,"Double Shot"),l=so(o,r,4).filter(e=>e>1),a=so(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:lo(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:lo(a),ruleId:i?.id??null});const d=Math.max(e.min_bet??5,.01),h=e.max_bet??null,u=_n.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:to(e)}}function uo(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function fo(e,t,n){const o=Math.max(0,e-t),r=ro(20,e,o,n),i=[];for(let l=0;l<=o;l+=1){const t=Math.round(io(r,l));i.push({misses:l,label:`${e-l}/${e}`,multiplier:t/20,payout20:t})}return i}function go(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:fo(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:fo(e,e-2,t),expectedCorrect:e-2}]}function po(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:go(t,to(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:uo(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 yo(e){return null!=po(e)}var mo=[2500,5e3,7500,1e4,12500,15e3,2e4],bo=[12,11,10,9,8,7,6];function wo(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function xo(e){return Math.round(100*e)/100}function ko(e,t,n=.21875){const o=Math.pow(2,t),r=e/(1-n)/o,i=Number.isInteger(r),l=xo(r),a=i?r:xo(.96*r);return{legs:t,exactStake:l,stake:a,margin:1-e/(a*o),multiple:e/a,oddsOneIn:o,discounted:!i}}function So(e,t=bo){return{dividend:e,rungs:t.map(t=>ko(e,t))}}function Co(e,t){if(!wo(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,r=bo.filter(e=>e>=n&&e<=o);if(0===r.length)return null;const i=t?.dividends??mo;return{dividends:i.map(e=>So(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 Bo(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?Bn(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=wo(e)?Co(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})),f=po(e,s),g="safety_net"===f?.kind?(f.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:g,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 zo({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))),f=parseFloat(h),g=d(Number.isFinite(f)&&f>0?f:20),p=g/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:{marginTop:8,flexDirection:"row",alignItems:"center",gap:4,flexWrap:"wrap"},children:[
52
+ /* @__PURE__ */W(h.View,{pointerEvents:"none",style:[B(.3),F(50)]}),
53
+ /* @__PURE__ */W(h.View,{pointerEvents:"none",style:[B(.55),F(25)]}),
54
+ /* @__PURE__ */W(z,{pointerEvents:"none",style:B(1)}),
55
+ /* @__PURE__ */W(z,{pointerEvents:"none",style:{position:"absolute",left:60*x,top:25*x,width:w*x,height:w*x},children:/* @__PURE__ */W(Rn,{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?()=>f(!0):void 0,onHoverOut:"web"===m.OS?()=>f(!1):void 0,accessibilityRole:"button",accessibilityLabel:d??`Press to play ${n}`,style:{width:r,height:r,borderRadius:r/360*78,transform:[{scale:g?.96:1}]},children:R()}):R()}var Dn=k.create({container:{position:"relative"}});function Mn({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__ */
56
+ 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 Pn(e){return e.selectionCard??e.backgroundAlt}function Hn({color:e,style:t}){/* @__PURE__ */
57
+ return W(z,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function On({colors:t,count:n=2}){const{width:o}=F(),r=o>=400,i=o>=640,[l,a]=e.useState(0),c=r?l>0?(l-12)/2:"48%":"100%",s=Pn(t);/* @__PURE__ */
58
+ 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(Hn,{color:t.textMuted,style:{height:20,width:176,maxWidth:"100%"}}),/* @__PURE__ */W(Hn,{color:t.textMuted,style:{height:12,width:96,maxWidth:"70%"}})]},n))})}function In({colors:e,count:t=4}){const{width:n}=F(),o=n>=640,r=Pn(e);/* @__PURE__ */
59
+ 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:[
60
+ /* @__PURE__ */W(Hn,{color:e.textMuted,style:{height:o?48:40,width:o?48:40,borderRadius:12}}),
61
+ /* @__PURE__ */T(z,{style:{flex:o?1:void 0,minWidth:0,alignItems:o?"flex-start":"center",gap:6},children:[/* @__PURE__ */W(Hn,{color:e.textMuted,style:{height:14,width:80}}),/* @__PURE__ */W(Hn,{color:e.textMuted,style:{height:10,width:48}})]}),o&&/* @__PURE__ */W(Hn,{color:e.textMuted,style:{height:20,width:20,borderRadius:6}})]},n))})}function En({colors:e,count:t=3}){const n=Pn(e);/* @__PURE__ */
62
+ 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(Hn,{color:e.textMuted,style:{height:16,width:176,maxWidth:"100%"}})}),/* @__PURE__ */W(Hn,{color:e.textMuted,style:{height:12,width:160,maxWidth:"80%",marginTop:8}})]}),/* @__PURE__ */W(Hn,{color:e.textMuted,style:{height:20,width:20,borderRadius:6}})]},o))})}function jn({colors:e,tileSize:t=116,width:n}){/* @__PURE__ */
63
+ 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:Pn(e)},children:[
64
+ /* @__PURE__ */W(Hn,{color:e.textMuted,style:{width:t,height:t,borderRadius:16}}),
65
+ /* @__PURE__ */W(Hn,{color:e.textMuted,style:{height:12,width:44,marginTop:4}}),
66
+ /* @__PURE__ */W(Hn,{color:e.textMuted,style:{height:17,width:128,maxWidth:"80%",marginTop:2}}),
67
+ /* @__PURE__ */W(Hn,{color:e.textMuted,style:{height:11,width:"75%",marginTop:10}})]})}function Nn({colors:e}){/* @__PURE__ */
68
+ return W(z,{style:{flexDirection:"row",gap:8,marginBottom:12,width:"100%"},children:[0,1,2].map(t=>/* @__PURE__ */W(Hn,{color:e.textMuted,style:{height:38,flex:1,borderRadius:999}},t))})}function Gn({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__ */
69
+ return T(z,{style:{width:"100%"},onLayout:e=>l(e.nativeEvent.layout.width),children:[r&&/* @__PURE__ */W(Nn,{colors:t}),/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:n}).map((e,n)=>/* @__PURE__ */W(jn,{colors:t,tileSize:o,width:a},n))})]})}function Yn({colors:e,groups:t=2,rowsPerGroup:n=2}){const{width:o}=F(),r=o>=640;/* @__PURE__ */
70
+ return T(z,{style:{gap:r?24:16,paddingBottom:64,width:"100%"},children:[/* @__PURE__ */W(Hn,{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:Pn(e),overflow:"hidden"},children:[/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:12,gap:6,backgroundColor:e.backgroundAlt},children:[/* @__PURE__ */W(Hn,{color:e.textMuted,style:{height:16,width:176,maxWidth:"80%"}}),/* @__PURE__ */W(Hn,{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(Hn,{color:e.textMuted,style:{height:16,flex:1,maxWidth:"58%"}}),/* @__PURE__ */T(z,{style:{flexDirection:"row",gap:6,flexShrink:0},children:[/* @__PURE__ */W(Hn,{color:e.textMuted,style:{height:r?32:28,width:r?48:44,borderRadius:8}}),/* @__PURE__ */W(Hn,{color:e.textMuted,style:{height:r?32:28,width:r?48:44,borderRadius:8}})]})]},n))]},o))})]})}function Vn({colors:e}){/* @__PURE__ */
71
+ 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(Hn,{color:e.textMuted,style:{height:14,width:68}}),/* @__PURE__ */W(Hn,{color:e.textMuted,style:{height:20,width:20,borderRadius:999}})]},t))})}function Un({colors:e}){/* @__PURE__ */
72
+ return T(z,{style:{borderRadius:8,borderWidth:1,borderColor:e.border,backgroundColor:Pn(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(Hn,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),/* @__PURE__ */W(Hn,{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(Hn,{color:e.textMuted,style:{height:14,width:40}}),/* @__PURE__ */W(Hn,{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(Hn,{color:e.textMuted,style:{height:14,width:"88%"}}),/* @__PURE__ */W(Hn,{color:e.textMuted,style:{height:12,width:"70%"}})]}),/* @__PURE__ */W(Hn,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]})}function Zn({colors:e,rows:t=2}){/* @__PURE__ */
73
+ return T(z,{style:{width:"100%"},children:[/* @__PURE__ */W(Vn,{colors:e}),/* @__PURE__ */W(z,{style:{gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */W(Un,{colors:e},n))})]})}function Kn({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(In,{colors:e,count:Math.max(i,2)});case"event":/* @__PURE__ */return W(En,{colors:e});case"games":/* @__PURE__ */return W(Gn,{colors:e,count:r,showTierTabs:l});case"propositions":/* @__PURE__ */return W(Yn,{colors:e});case"entries":/* @__PURE__ */return W(Zn,{colors:e,rows:2});default:/* @__PURE__ */return W(On,{colors:e,count:i})}})();/* @__PURE__ */
74
+ 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 qn(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function Xn(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function Qn(e){if(!e||e.quick_pick_only)return!1;const t=Xn(e.selection_scope);if("samegamemulti"===Xn(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(Xn);return n.includes("samegame")||n.includes("samegamemulti")}function Jn(e){return(e.eventId??e.event_id)?.trim()||null}function $n(e){const t=/* @__PURE__ */new Map;for(const n of e){if(!no(n))continue;const e=Jn(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=_n(o.homeTeam,n.home_team),o.awayTeam=_n(o.awayTeam,n.away_team),o.sport=_n(o.sport,n.sport),o.league=_n(o.league,n.league),o.commenceTime=to(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=eo(e.commenceTime),o=eo(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function _n(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function eo(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function to(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=eo(e),r=eo(n);return r!==o?r<o?n:e:e.localeCompare(n)<=0?e:n}function no(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function oo(e,t){return t?e.filter(e=>no(e)&&Jn(e)===t):[]}function ro(e,t){return!!t&&e.length>0&&e.every(e=>no(e)&&Jn(e)===t)}var io={signature:1,premier:2,exclusive:3},lo=[{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 ao(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function co(e,t){return e.filter(e=>ao(e)===t)}function so(e){const t=new Set(e.map(ao));return lo.filter(e=>t.has(e.level))}function ho(e){return so(e)[0]?.id??"signature"}var uo=4,fo=6,go=[4,12],po=[5,10,20,50];function yo(e){return!!e&&!e.quick_pick_only&&"safety_net"===(e.rule??"").trim().toLowerCase()}function mo(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 wo(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 xo(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=wo(t,0);for(let d=1;d<=r;d+=1)s+=wo(t,d),c.push(bo(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 ko(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 So(e){return e.includes(8)?8:e[Math.floor(e.length/2)]}function Co(e){return e.toLowerCase().replace(/[^a-z]+/g," ").trim()}function Bo(e,t){const n=Co(t);return e.permitted_rules?.find(e=>Co(e.name??"").includes(n))??null}function zo(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 Fo(e){if(!yo(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??go[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??go[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=Bo(e,"Extra Shot"),i=Bo(e,"Double Shot"),l=zo(o,r,4).filter(e=>e>1),a=zo(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:So(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:So(a),ruleId:i?.id??null});const d=Math.max(e.min_bet??5,.01),h=e.max_bet??null,u=po.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:mo(e)}}function vo(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function Wo(e,t,n){const o=Math.max(0,e-t),r=xo(20,e,o,n),i=[];for(let l=0;l<=o;l+=1){const t=Math.round(ko(r,l));i.push({misses:l,label:`${e-l}/${e}`,multiplier:t/20,payout20:t})}return i}function To(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:Wo(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:Wo(e,e-2,t),expectedCorrect:e-2}]}function Ao(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:To(t,mo(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:vo(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 Ro(e){return null!=Ao(e)}var Lo=[2500,5e3,7500,1e4,12500,15e3,2e4],Do=[12,11,10,9,8,7,6];function Mo(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function Po(e){return Math.round(100*e)/100}function Ho(e,t,n=.21875){const o=Math.pow(2,t),r=e/(1-n)/o,i=Number.isInteger(r),l=Po(r),a=i?r:Po(.96*r);return{legs:t,exactStake:l,stake:a,margin:1-e/(a*o),multiple:e/a,oddsOneIn:o,discounted:!i}}function Oo(e,t=Do){return{dividend:e,rungs:t.map(t=>Ho(e,t))}}function Io(e,t){if(!Mo(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,r=Do.filter(e=>e>=n&&e<=o);if(0===r.length)return null;const i=t?.dividends??Lo;return{dividends:i.map(e=>Oo(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 Eo(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?Fn(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=Mo(e)?Io(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})),f=Ao(e,s),g="safety_net"===f?.kind?(f.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:g,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 jo({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))),f=parseFloat(h),g=d(Number.isFinite(f)&&f>0?f:20),p=g/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:{marginTop:8,flexDirection:"row",alignItems:"center",gap:4,flexWrap:"wrap"},children:[
57
75
  /* @__PURE__ */W(S,{style:{fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:a},children:"Example values for a"}),
58
76
  /* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"700",color:l.textMuted,fontFamily:a},children:"$"}),
59
77
  /* @__PURE__ */W(C,{value:h,onChangeText:u,onBlur:()=>u(String(g)),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}}),
60
- /* @__PURE__ */T(S,{style:{fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:a},children:["bet",null!=i?` (${Zt(r)}–${Zt(i)})`:` (min ${Zt(r)})`,"."]})]});/* @__PURE__ */
78
+ /* @__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__ */
61
79
  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__ */W(z,{style:{paddingHorizontal:14,paddingVertical:12},children:t?.length?t.map((e,n)=>/* @__PURE__ */T(z,{style:{borderTopWidth:0===n?0:1,borderTopColor:l.border,paddingTop:0===n?0:8,marginTop:0===n?0:8},children:[
62
- /* @__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:Zt(e.payout20*p)})]},e.label)),n===t.length-1&&b]},e.id)):/* @__PURE__ */T(v,n?.length?{children:[
63
- /* @__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:Zt(e.dividend)}),/* @__PURE__ */W(S,{style:{fontWeight:"600",color:l.text,fontSize:12,fontFamily:a},children:Zt(e.stakeFrom)})]},e.dividend)),
80
+ /* @__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)),n===t.length-1&&b]},e.id)):/* @__PURE__ */T(v,n?.length?{children:[
81
+ /* @__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)),
64
82
  /* @__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:[
65
- /* @__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?Zt(e.payout20*p):"—"})]},e.count)),b]})})]})}function Fo({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__ */
66
- 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 vo={scrollSnapType:"x mandatory"},Wo={scrollSnapAlign:"center"};function To({iconUrl:e,size:t,brandColor:n,iconColor:o,accentColor:r}){/* @__PURE__ */
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:"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)),b]})})]})}function No({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 Go={scrollSnapType:"x mandatory"},Yo={scrollSnapAlign:"center"};function Vo({iconUrl:e,size:t,brandColor:n,iconColor:o,accentColor:r}){/* @__PURE__ */
67
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:[
68
86
  /* @__PURE__ */W(I,{x:90,y:55,width:210,height:210,rx:42,fill:n,opacity:.3}),
69
87
  /* @__PURE__ */W(I,{x:65,y:30,width:210,height:210,rx:42,fill:n,opacity:.55}),
70
- /* @__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(Tn,{iconUrl:e,width:.607*t,height:.607*t,iconColor:o,accentColor:r})})]})}function Ao({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:l,iconColor:s,accentColor:d,captionColor:h,bodyFont:f,legOptions:g,onPick:p,colors:y,menuShadow:b}){const[w,x]=c(!1),[k,C]=c(null),F=a(null),A=a(null),[L,R]=c(null),[M,D]=c(!1),[P,H]=c(null),O="web"===m.OS,I=40+40*g.length+12;i(()=>{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,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=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 r=u.get("window").height-(t+o);D(r<I&&t>r),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:f},children:"How many picks?"})}),g.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:f},children:[e," picks"]}),/* @__PURE__ */W(S,{style:{backgroundColor:Pe(y.primary,.14),color:y.primary,paddingVertical:2,paddingHorizontal:6,borderRadius:4,fontSize:10,fontWeight:"700",letterSpacing:.5,overflow:"hidden",fontFamily:f},children:"QP"})]},e))]});/* @__PURE__ */
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(Rn,{iconUrl:e,width:.607*t,height:.607*t,iconColor:o,accentColor:r})})]})}function Uo({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:l,iconColor:s,accentColor:d,captionColor:h,bodyFont:f,legOptions:g,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*g.length+12;i(()=>{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,r=window.innerHeight-t.bottom,i=t.top,l=r<I&&i>r;L({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=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 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(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:f},children:"How many picks?"})}),g.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:f},children:[e," picks"]}),/* @__PURE__ */W(S,{style:{backgroundColor:He(y.primary,.14),color:y.primary,paddingVertical:2,paddingHorizontal:6,borderRadius:4,fontSize:10,fontWeight:"700",letterSpacing:.5,overflow:"hidden",fontFamily:f},children:"QP"})]},e))]});/* @__PURE__ */
71
89
  return T(z,{ref:F,style:{position:"relative"},children:[
72
- /* @__PURE__ */W(An,{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:f},children:E}),document.body),
73
- /* @__PURE__ */W(Rn,{visible:w&&!O,anchor:P,onClose:()=>x(!1),flipUp:M,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 Lo({color:e,style:t}){/* @__PURE__ */
74
- return W(z,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function Ro({colors:e,count:t=3,tileSize:n=100}){const o=e.selectionCard??e.backgroundAlt;/* @__PURE__ */
75
- return W(z,{style:{gap:12,width:"100%"},accessibilityLabel:"Loading",children:Array.from({length:t}).map((t,r)=>/* @__PURE__ */W(z,{style:{borderRadius:12,borderWidth:2,borderTopWidth:4,padding:16,gap:16,width:"100%",borderColor:e.border,borderTopColor:e.primary,backgroundColor:o},children:/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"flex-start",gap:12,width:"100%"},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,gap:8},children:[
76
- /* @__PURE__ */W(Lo,{color:e.textMuted,style:{height:28,width:144,maxWidth:"85%"}}),
77
- /* @__PURE__ */W(Lo,{color:e.textMuted,style:{height:14,width:"100%"}}),
78
- /* @__PURE__ */W(Lo,{color:e.textMuted,style:{height:14,width:"82%"}}),
79
- /* @__PURE__ */W(Lo,{color:e.textMuted,style:{height:20,width:112,borderRadius:999}})]}),/* @__PURE__ */W(Lo,{color:e.textMuted,style:{width:n,height:n,borderRadius:12,flexShrink:0}})]})},r))})}function Mo({games:e,selectedGame:t,onSelectGame:n,loading:o,error:i,theme:s,colorScheme:d,showTier:h=!1,showCategory:u=!1,showTierFilter:f=!1,onPropositionCountChange:g,onPropositionCountSelected:p,onQuickPickGame:y,maxPayouts:m}){const b=De(s,d),w=b.colors,k=ue(b),C=Ge(b),F=Ye(b),A=re(b),L=Ne(b),R=se(b),M="dark"===b.colorScheme,D=l(()=>qn(e),[e]),[P,H]=c(()=>Xn(e));r(()=>{0!==D.length&&(D.some(e=>e.id===P)||H(D[0].id))},[D,P]);const O=l(()=>!f||D.length<=1?e:Kn(e,Vn[P]),[e,f,D.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&&!Pn(e)&&g?.(t),n(e),p?.())},[j,N]=c(0),G=j>0&&j<400,Y=G?108:124,V=j>0&&j<380,U=j>0?Math.min(.86*j,380):0,Z=U>0?Math.max((j-U)/2,4):4,K=U+14,q=O.length>1,X=q&&Z>=48,Q=a(null),J=a(null),[$,_]=c(0),ee=e=>{const t=Math.max(0,Math.min(e,O.length-1));it(Q,t*K),_(t)};r(()=>{G&&0!==j&&it(J,Math.max(0,80*$-j/2+40))},[$,G,j]),r(()=>{it(Q,0,!1),_(0)},[P]);const te={shadowColor:"#000",shadowOpacity:M?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};return o?/* @__PURE__ */W(Ro,{colors:pe(b),count:Math.min(Math.max(e.length,2),4),showTierTabs:f&&D.length>1}):i?/* @__PURE__ */W(z,{style:Po.centerContainer,children:/* @__PURE__ */W(S,{style:{color:w.error,fontFamily:C},children:i})}):0===e.length?/* @__PURE__ */W(z,{style:Po.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:[f&&/* @__PURE__ */W(Fo,{tabs:D,active:P,onChange:H,colors:w,bodyFont:C,useShortLabel:V}),0===O.length?/* @__PURE__ */W(z,{style:Po.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:Q,horizontal:!0,showsHorizontalScrollIndicator:!1,decelerationRate:"fast",snapToInterval:K>0?K:void 0,snapToAlignment:"start",style:vo,scrollEventThrottle:16,onScroll:e=>{if(K<=0)return;const t=Math.round(e.nativeEvent.contentOffset.x/K);_(e=>e===t?e:t)},contentContainerStyle:{alignItems:"stretch",gap:14,paddingLeft:Z,paddingRight:Z,paddingBottom:8},children:O.map(e=>{const o=wn(e),r=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>xn[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=rn(e),c=e.description||e.rule,s=e.call_to_action?.trim()||null,{legOptions:d,maxLegCount:f,tiers:g,modes:x,pydDividends:B,hasGenericDividends:v,minBet:M,maxBet:D}=Bo(e,m?.[e.id]),P=Xe(e),H=!o&&r?`Available ${r}`:null;/* @__PURE__ */
80
- return T(z,{style:[Po.gameCard,Wo,{width:U||void 0,flexGrow:0,flexShrink:0,borderColor:i?w.primary:w.border,backgroundColor:i?w.infoBg:w.background??k,opacity:o?1:.5},te],pointerEvents:o?"auto":"none",children:[e.quick_pick_only&&y&&d.length>1?/* @__PURE__ */W(Ao,{iconUrl:P,gameName:I(e),size:Y,brandColor:w.primary,cardColor:k,iconColor:w.primaryText,accentColor:R,captionColor:w.textMuted,bodyFont:C,legOptions:d.map(Number),onPick:t=>E(e,t),colors:w,menuShadow:L}):/* @__PURE__ */W(An,{iconUrl:P,gameName:I(e),onPress:()=>E(e,f),size:Y,brandColor:w.primary,cardColor:k,iconColor:w.primaryText,accentColor:R,captionColor:w.primary}),
81
- /* @__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:Pe(w.primary,.85)},children:"NO"})]}),
82
- /* @__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(wt,{variant:"icon",panel:rt(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(zo,{tiers:v?g:[],modes:x,pydDividends:B,onPlayCount:d.length>1?t=>E(e,t):void 0,minBet:M,maxBet:D,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:[Po.jackpotBadge,{backgroundColor:`${w.warning}15`,marginTop:8}],children:/* @__PURE__ */T(S,{style:[Po.jackpotBadgeText,{color:w.warning,fontFamily:C}],children:["★ ",a.progressive?a.amount>0?Zt(a.amount):a.limit>0?`Up to ${Zt(a.limit)}`:"Jackpot":Zt(a.amount)]})}),(u||h)&&/* @__PURE__ */T(z,{style:[Po.tagsRow,{justifyContent:"center",marginTop:8}],children:[u&&e.category&&/* @__PURE__ */W(z,{style:[Po.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[Po.tagText,{color:ie(b),fontFamily:C}],children:e.category})}),u&&/* @__PURE__ */W(z,{style:[Po.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[Po.tagText,{color:ie(b),fontFamily:C}],children:e.rule})}),u&&e.lotto_type&&/* @__PURE__ */W(z,{style:[Po.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[Po.tagText,{color:ie(b),fontFamily:C}],children:e.lotto_type})}),h&&null!=e.tier&&/* @__PURE__ */W(z,{style:[Po.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */T(S,{style:[Po.tagText,{color:ie(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)})}),X&&/* @__PURE__ */W(v,{children:[-1,1].map(e=>{const t=e<0?$>0:$<O.length-1;/* @__PURE__ */
83
- return W(B,{accessibilityRole:"button",accessibilityLabel:e<0?"Previous game":"Next game",onPress:()=>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:Pe(w.background??"#fff",.94),alignItems:"center",justifyContent:"center",opacity:t?1:.3,zIndex:1,...te},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:()=>ee(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:Pe(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(Do,{isNarrow:G,stripRef:J,children:O.map((e,t)=>/* @__PURE__ */T(B,{accessibilityRole:"button",accessibilityState:{selected:t===$},onPress:()=>{ee(t),wn(e)&&(e=>{const{legOptions:t,maxLegCount:n}=Bo(e,m?.[e.id]);e.quick_pick_only&&y&&t.length>1||E(e,n)})(e)},style:{alignItems:"center",gap:4,paddingHorizontal:4,paddingVertical:6,borderRadius:16,borderWidth:1,borderColor:t===$?w.primary:"transparent",...G?{width:76,flexGrow:0,flexShrink:0}:{flexGrow:1,flexBasis:84}},children:[/* @__PURE__ */W(To,{iconUrl:Xe(e),size:G?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===$?w.primary:A,fontFamily:F},children:I(e)})]},e.id))})]})]})}function Do({isNarrow:e,stripRef:t,children:n}){return e?/* @__PURE__ */W(x,{ref:t,horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:{gap:4},children:n}):/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",gap:4},children:n})}var Po=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}}),Ho=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 Oo(e,t,o){const[i,l]=c([]),[s,d]=c(null),[h,u]=c(!o?.skip),[f,g]=c(null),p=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",y=a(t);y.current=t;const m=o?.skip??!1,b=n(async()=>{if(!m)try{u(!0),g(null);const t=await e.getGames(y.current);l(t.games),d(t.howToPlayMarkdown)}catch(t){g(t instanceof Error?t.message:"Failed to fetch games")}finally{u(!1)}},[e,p,m]);return r(()=>{b()},[b]),{games:i,howToPlayMarkdown:s,loading:h,error:f,refetch:n(async()=>{e.invalidate(),await b()},[e,b])}}function Io(e,t,o){const[i,l]=c([]),[s,d]=c(!o?.skip),[h,u]=c(null),f=o?.skip??!1,g=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!f)try{d(!0),u(null),l(await e.getPropositions(p.current))}catch(t){u(t instanceof Error?t.message:"Failed to fetch propositions")}finally{d(!1)}},[e,g,f]);return r(()=>{y()},[y]),{propositions:i,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function Eo(e,t){const[o,i]=c([]),[l,a]=c(!t?.skip),[s,d]=c(null),h=t?.skip??!1,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 jo(e,t,o){const[i,l]=c([]),[s,d]=c(!o?.skip),[h,u]=c(null),f=o?.skip??!1,g=t?`${t.user_id??""}_${t.pending??""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!f)try{d(!0),u(null),l(await e.getGameEntries(p.current))}catch(t){u(t instanceof Error?t.message:"Failed to fetch entries")}finally{d(!1)}},[e,g,f]);return r(()=>{y()},[y]),{entries:i,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function No(e,t,o){const[i,l]=c({}),[s,d]=c(!1),h=o?.skip??!1,u=o?.betAmount,f=a(/* @__PURE__ */new Set);return r(()=>{if(h||0===t.length)return;const n=t.filter(e=>!(e.id in i)&&!f.current.has(e.id));if(0===n.length)return;for(const e of n)f.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 Go(e){const[t,n]=c(!1),[o,r]=c(null),[i,l]=c(null);return{createEntry:async t=>{try{n(!0),r(null);const o=await e.createGameEntry(t);return l(o),o}catch(o){const e=o instanceof Error?o.message:"Failed to create entry";throw r(e),new Error(e)}finally{n(!1)}},loading:t,error:o,entry:i}}function Yo(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 Vo(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 Uo(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 Zo(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 Ko=t(null),qo={};function Xo(){const e=o(Ko);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function Qo({apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s,userId:d,getUserBalance:h,children:u,theme:f,colorScheme:g,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,onEntryPlaced:A,onBeforeSubmit:L,onCancel:R,onShare:M,onRecharge:D,onClearEventFilter:P,screenSize:H="desktop",howToPlayMarkdown:O,sportDisplayNames:I,categoryDisplayNames:E}){const j=De(f,g),N=Ge(j),G=Ye(j),Y=!(!p||!y),V=l(()=>new Ho({apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s}),[t,o,i,s]),[U,Z]=c(0),K=a(0),[q,X]=c(0),[Q,J]=c([]),[$,_]=c({}),[ee,te]=c({}),[ne,oe]=c(void 0),[re,ie]=c(null),[le,ae]=c(void 0),ce=e.useCallback(async()=>{if(h)try{const e=await h();"number"==typeof e&&Number.isFinite(e)&&ae(e)}catch(e){}},[h]);r(()=>{h?ce():ae(void 0)},[h,ce]);const se=a(null),[de,he]=c(null),[ue,fe]=c(C??null),[ge,pe]=c(B??null);r(()=>{C&&fe(C)},[C]),r(()=>{pe(B??null)},[B]);const[ye,me]=c(B),be=a(!1);r(()=>{if(!B)return me(void 0),void(be.current=!1);be.current||me(B)},[B]);const we=w??de??void 0,xe=S??C??void 0,ke=sn(ue??xe,F),Se=sn(xe,F)??xe,Ce=ue??void 0,{games:Be,howToPlayMarkdown:ze,loading:Fe,error:ve}=Oo(V,{category:we,jurisdiction:x,sport:ke},{skip:Y}),{propositions:We,loading:Te,error:Ae}=Io(V,{category:we,sport:Se,event_id:ye},{skip:Y}),{sports:Le,loading:Re}=Eo(V,{skip:Y}),{createEntry:Me,loading:Pe,error:He}=Go(V),{preview:Oe}=Zo(V),Ie=l(()=>mn((Y?p:Be)??[],{category:we,sport:ke??Ce,sportBaseKey:F}),[Y,p,Be,we,ke,Ce,F]),Ee=O??ze??null,{maxPayouts:je,refetchGame:Ne}=No(V,Ie??[],{skip:Y,betAmount:20}),Ve=Y?b??qo:je,Ue=Y?y:We,Ze=S?(Ue??[]).filter(e=>e.sport===S):Ue,Ke=l(()=>en(Ze??[]),[Ze]),qe=l(()=>we||(1===Ke.length?Ke[0]:void 0),[we,Ke]),Xe=l(()=>{const e=Ze??[];return qe?fn(e,{category:qe,sportBaseKey:F}):e},[Ze,qe,F]),Qe=l(()=>Ce?fn(Xe,{sport:Ce,sportBaseKey:F}):Xe,[Xe,Ce,F]),Je=l(()=>({category:qe,sport:Ce,sportBaseKey:F}),[qe,Ce,F]),$e=l(()=>{const e=(Ie??[]).filter(e=>e.active);if(!qe&&Ke.length>1)return[];const t=qe?mn(e,Je):e;return qe||Ce?function(e,t,n){return n?.category||n?.sport?e.filter(e=>yn(e,t,n)):e}(t,Qe,Je):t},[Ie,Qe,Je,qe,Ce,Ke.length]),{step:_e,selectedGame:et,selections:tt,placedEntry:nt,setGameOnly:ot,clearSelectedGame:rt,goToSportSelection:it,goToConfirmation:lt,goToSuccess:at,goBack:ct,reset:st,toggleSelection:dt}=Yo(k),ht=e.useCallback(()=>{be.current=!0,me(void 0),st(),P?.()},[st,P]),ut=!!ye,ft=ut?z:void 0,gt=!Y&&(et?Fe||Te||Re:Fe),pt=Y?null:et?ve||Ae:ve,yt=l(()=>et?bn(Qe,et,F):Qe,[et,Qe,F]),mt=l(()=>et?yt:Xe,[et,yt,Xe]),bt=l(()=>fn(et?yt:Xe,{category:qe}),[et,yt,Xe,qe]),wt=l(()=>{const e=new Set(bt.map(e=>e.sport).filter(Boolean));return Le.filter(t=>e.has(t.key))},[Le,bt]),xt=l(()=>fn(yt,{category:qe,sport:ue}),[yt,qe,ue]),kt=l(()=>{if(!et||!Pn(et))return[];const{min:e}=on(et,ne),t=ne??e;return On(xt).filter(e=>e.propositionCount>=t)},[et,ne,xt]),St=l(()=>Pn(et)?Gn(xt,ge):xt,[et,xt,ge]),Ct=Object.keys(tt).map(Number),Bt=Ct.length,zt=l(()=>xt.filter(e=>Ct.includes(e.id)),[xt,Ct]);r(()=>{w||de||1===Ke.length&&he(Ke[0])},[w,de,Ke]),r(()=>{if(!et)return;const e=yt,t=new Set(e.map(Jt));let n=de;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==de&&he(n));const o=n?e.filter(e=>Jt(e)===n):e,r=new Set(function(e){const t=/* @__PURE__ */new Set;for(const n of e){const o=Xt(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),i=et.allowed_sports;fe(e=>e&&r.has(e)?e:1===i?.length&&r.has(i[0])?i[0]:i&&i.length>1?e&&i.includes(e)&&r.has(e)?e:null:1===r.size?Array.from(r)[0]:null)},[et?.id,yt,de]),r(()=>{et&&qe&&(gn(et,qe)||rt())},[et,qe,rt]),r(()=>{et&&(yn(et,Qe,{category:qe,sport:ue,sportBaseKey:F})||rt())},[et,qe,ue,F,Qe,rt]),r(()=>{if(et){if(X(0),se.current){const{count:e}=se.current;return se.current=null,oe(e),void Z(e)}if(et.allowed_propositions&&et.allowed_propositions.length>0){const e=ne;null!=e&&et.allowed_propositions.includes(e)?Z(e):(oe(void 0),Z(0))}else oe(void 0),Z(et.num_propositions||et.max_propositions||0)}},[et]);const Ft=(e,t,n)=>{const o=(Ve[e]?.top_payouts??[]).find(e=>e.proposition_count===t);if(!o)return 0;const r=o.bet_amount&&o.bet_amount>0?o.bet_amount:20;return r<=0?0:o.net_payout/r*n};r(()=>{if("sport"!==_e&&"confirm"!==_e||!et||Y)return;const e=Pn(et)&&ge?St.length:Number.MAX_SAFE_INTEGER;let t;if(et.allowed_propositions&&et.allowed_propositions.length>0){const n=et.allowed_propositions?[...et.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void te({});const o=ne??n[0],r=n.filter(e=>e>o);if(0===r.length)return void te({});t=[o,...r]}else{const{min:n,max:o}=on(et),r=Math.min(o,e);if(n<=0||r<=n)return void te({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=Ft(et.id,o,20);te(n)},[_e,et,ne,ge,St.length,Y,Ve]),r(()=>{if("confirm"!==_e||!et)return;const e=Ct.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=Ft(et.id,r,q);_(n),e!==K.current?(K.current=e,Z(e)):(U>e||U<=0&&e>0)&&Z(e);const o=q>0?q:Math.max(et.min_bet??20,.01);return(async()=>{try{const n=await Oe(et.id,{actual:U,predicted:U,total:e,bet_amount:o});if(t)return;J(n.winning_counts)}catch{t||J([])}})(),()=>{t=!0}},[_e,et,Ct.length,U,q,Oe,Ve]);const vt=l(()=>{return t=re,(e=et)&&null!=t?e.permitted_rules?.find(e=>e.id===t)??null:null;var e,t},[et,re]),Wt=!Pn(et)||Yn(zt,ge),Tt=et?on(et,void 0,vt):null,At=!(!et||!Wt)&&(et.allowed_propositions&&et.allowed_propositions.length>0?null!=ne&&Bt===ne&&nn(Bt,Tt?.min,Tt?.max):nn(Bt,Tt?.min,Tt?.max)),Lt=et?.min_bet??0,Rt=Math.max(Lt,.01),Mt=null==le||q<=le,Dt=!Pe&&q>=Rt&&At&&Mt,Pt=e=>{oe(e),Z(e);for(const t of Object.keys(tt))dt(Number(t),tt[Number(t)])},Ht=e=>{oe(e),Z(e)},Ot=e=>{pe(Pn(e)?B??null:null),ot(e)},It=e=>{if(e!==ge){for(const e of Object.keys(tt)){const t=Number(e);dt(t,tt[t])}pe(e)}},Et=(e,t)=>{se.current={count:t},ot(e),Ne(e.id);const n=e.allowed_sports??[];let o=null;ue&&n.some(e=>dn(ue,e,F))?o=ue:1===n.length&&(o=n[0]),fe(o);for(const a of Object.keys(tt)){const e=Number(a);dt(e,tt[e])}let r=fn(bn(Ze??[],e,F),{category:qe,sport:o,sportBaseKey:F});const i=Math.max(0,Math.min(t,r.length)),l=[...r].sort(()=>Math.random()-.5).slice(0,i);for(const a of l)dt(a.id,Math.random()<.5?"yes":"no");lt()},jt=async()=>{if(et&&At){if(Y){const e={id:Math.floor(1e4*Math.random()),game_id:et.id,user_id:d,proposition_ids:Ct,selections:tt,pending:!0,expected_correct:U,bet_amount:q};return A?.(e),at(e),void ce()}try{L&&await L(q);const e=await Me({game_id:et.id,user_id:d,proposition_ids:Ct,selections:tt,stake:q,rule_id:vt?.id??null});A?.(e),at(e),ce()}catch(e){}}},Nt=n(e=>I?.[e]??wt.find(t=>t.key===e)?.label??an(e,void 0,F),[I,wt,F]),Gt=n(e=>cn(e,E),[E]),Yt=l(()=>({theme:j,bodyFont:N,headingFont:G,games:$e,propositions:St,propositionsForCategoryPicker:mt,propositionsForSportPicker:bt,sportSummaries:wt,loading:gt,error:pt,step:_e,selectedGame:et,selections:tt,placedEntry:nt,selectedPropositionIds:Ct,selectedPropositions:zt,selectionValid:At,selectedRuleId:re,setSelectedRuleId:ie,selectedRule:vt,answeredCount:Bt,betAmount:q,setBetAmount:X,expectedCorrect:U,setExpectedCorrect:Z,selectedPropositionCount:ne,handlePropositionCountChange:Pt,upgradePropositionCount:Ht,winningCounts:Q,payouts:$,overloadPayouts:ee,submitting:Pe,submitError:He,canSubmit:Dt,gamePrice:Lt,userBalance:le,hasSufficientBalance:Mt,refreshUserBalance:ce,handleSubmit:jt,selectGame:Ot,goToSportSelection:it,goToConfirmation:lt,goBack:ct,reset:st,clearSelectedGame:rt,toggleSelection:dt,quickPickGame:Et,selectedCategory:de,setSelectedCategory:he,selectedSport:ue,setSelectedSport:fe,selectedEventId:ge,sameGameMultiEvents:kt,selectSameGameMultiEvent:It,apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s,userId:d,disableQuickPick:v,renderTeamLogo:T,filterSport:S,initialSport:C,initialEventId:B,sportBaseKey:F,gameCategory:w,eventFilterActive:ut,eventFilterLabel:ft,clearEventFilter:ht,screenSize:H,displaySportName:Nt,displayCategoryName:Gt,maxPayouts:Ve??{},howToPlayMarkdown:Ee,onEntryPlaced:A,onCancel:R,onShare:M,onRecharge:D,demoEntries:m,demoGames:p,demoPropositions:y}),[j,N,G,$e,St,mt,bt,wt,gt,pt,_e,et,tt,nt,Ct,zt,At,Bt,q,U,ne,re,vt,Q,$,ee,Pe,He,Dt,Lt,t,o,d,le,i,s,v,T,S,C,B,F,w,H,ut,ft,ht,de,ue,ge,kt,Ve,Ee,A,R,M,D,P,m,p,y,Pt,Nt,Gt]);/* @__PURE__ */
84
- return W(Ko.Provider,{value:Yt,children:u})}function Jo({onPress:e,onDoubleClick:t,label:n="QUICKPICK",size:r="md",yesColor:i,noColor:l,theme:c}){const s=o(Ko),d=c??s?.theme??be,h=je(d),u=d.colors,f=i??ae(d),g=l??ce(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__ */
85
- 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:[$o.container,{borderColor:Pe(u.border,.6),borderRadius:h.radius.sm,minHeight:h.touchTarget.min}],children:[/* @__PURE__ */T(z,{style:$o.topRow,children:[
90
+ /* @__PURE__ */W(Ln,{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:f},children:E}),document.body),
91
+ /* @__PURE__ */W(Mn,{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 Zo({games:e,selectedGame:t,onSelectGame:n,loading:o,error:i,theme:s,colorScheme:d,showTier:h=!1,showCategory:u=!1,showTierFilter:f=!1,onPropositionCountChange:g,onPropositionCountSelected:p,onQuickPickGame:y,maxPayouts:m}){const b=Pe(s,d),w=b.colors,k=fe(b),C=Ye(b),F=Ve(b),A=re(b),R=Ge(b),L=se(b),D="dark"===b.colorScheme,M=l(()=>so(e),[e]),[P,H]=c(()=>ho(e));r(()=>{0!==M.length&&(M.some(e=>e.id===P)||H(M[0].id))},[M,P]);const O=l(()=>!f||M.length<=1?e:co(e,io[P]),[e,f,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&&!Qn(e)&&g?.(t),n(e),p?.())},[j,N]=c(0),G=j>0&&j<400,Y=G?108:124,V=j>0&&j<380,U=j>0?Math.min(.86*j,380):0,Z=U>0?Math.max((j-U)/2,4):4,K=U+14,q=O.length>1,X=q&&Z>=48,Q=a(null),J=a(null),[$,_]=c(0),ee=e=>{const t=Math.max(0,Math.min(e,O.length-1));lt(Q,t*K),_(t)};r(()=>{G&&0!==j&&lt(J,Math.max(0,80*$-j/2+40))},[$,G,j]),r(()=>{lt(Q,0,!1),_(0)},[P]);const te={shadowColor:"#000",shadowOpacity:D?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};return o?/* @__PURE__ */W(Gn,{colors:ye(b),count:Math.min(Math.max(e.length,2),4),showTierTabs:f&&M.length>1}):i?/* @__PURE__ */W(z,{style:qo.centerContainer,children:/* @__PURE__ */W(S,{style:{color:w.error,fontFamily:C},children:i})}):0===e.length?/* @__PURE__ */W(z,{style:qo.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:[f&&/* @__PURE__ */W(No,{tabs:M,active:P,onChange:H,colors:w,bodyFont:C,useShortLabel:V}),0===O.length?/* @__PURE__ */W(z,{style:qo.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:Q,horizontal:!0,showsHorizontalScrollIndicator:!1,decelerationRate:"fast",snapToInterval:K>0?K:void 0,snapToAlignment:"start",style:Go,scrollEventThrottle:16,onScroll:e=>{if(K<=0)return;const t=Math.round(e.nativeEvent.contentOffset.x/K);_(e=>e===t?e:t)},contentContainerStyle:{alignItems:"stretch",gap:14,paddingLeft:Z,paddingRight:Z,paddingBottom:8},children:O.map(e=>{const o=kn(e),r=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>Sn[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=an(e),c=e.description||e.rule,s=e.call_to_action?.trim()||null,{legOptions:d,maxLegCount:f,tiers:g,modes:x,pydDividends:B,hasGenericDividends:v,minBet:D,maxBet:M}=Eo(e,m?.[e.id]),P=Qe(e),H=!o&&r?`Available ${r}`:null;/* @__PURE__ */
92
+ return T(z,{style:[qo.gameCard,Yo,{width:U||void 0,flexGrow:0,flexShrink:0,borderColor:i?w.primary:w.border,backgroundColor:i?w.infoBg:w.background??k,opacity:o?1:.5},te],pointerEvents:o?"auto":"none",children:[e.quick_pick_only&&y&&d.length>1?/* @__PURE__ */W(Uo,{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(Ln,{iconUrl:P,gameName:I(e),onPress:()=>E(e,f),size:Y,brandColor:w.primary,cardColor:k,iconColor:w.primaryText,accentColor:L,captionColor:w.primary}),
93
+ /* @__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:He(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: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(kt,{variant:"icon",panel:it(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(jo,{tiers:v?g:[],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:[qo.jackpotBadge,{backgroundColor:`${w.warning}15`,marginTop:8}],children:/* @__PURE__ */T(S,{style:[qo.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:[qo.tagsRow,{justifyContent:"center",marginTop:8}],children:[u&&e.category&&/* @__PURE__ */W(z,{style:[qo.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[qo.tagText,{color:ie(b),fontFamily:C}],children:e.category})}),u&&/* @__PURE__ */W(z,{style:[qo.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[qo.tagText,{color:ie(b),fontFamily:C}],children:e.rule})}),u&&e.lotto_type&&/* @__PURE__ */W(z,{style:[qo.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[qo.tagText,{color:ie(b),fontFamily:C}],children:e.lotto_type})}),h&&null!=e.tier&&/* @__PURE__ */W(z,{style:[qo.tag,{backgroundColor:w.backgroundAlt}],children:/* @__PURE__ */T(S,{style:[qo.tagText,{color:ie(b),fontFamily:C}],children:["Tier ",e.tier]})})]}),0===d.length&&/* @__PURE__ */W(z,{style:{marginTop:8,width:"100%"},children:/* @__PURE__ */W(ct,{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)})}),X&&/* @__PURE__ */W(v,{children:[-1,1].map(e=>{const t=e<0?$>0:$<O.length-1;/* @__PURE__ */
95
+ return W(B,{accessibilityRole:"button",accessibilityLabel:e<0?"Previous game":"Next game",onPress:()=>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:He(w.background??"#fff",.94),alignItems:"center",justifyContent:"center",opacity:t?1:.3,zIndex:1,...te},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:()=>ee(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:He(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(Ko,{isNarrow:G,stripRef:J,children:O.map((e,t)=>/* @__PURE__ */T(B,{accessibilityRole:"button",accessibilityState:{selected:t===$},onPress:()=>{ee(t),kn(e)&&(e=>{const{legOptions:t,maxLegCount:n}=Eo(e,m?.[e.id]);e.quick_pick_only&&y&&t.length>1||E(e,n)})(e)},style:{alignItems:"center",gap:4,paddingHorizontal:4,paddingVertical:6,borderRadius:16,borderWidth:1,borderColor:t===$?w.primary:"transparent",...G?{width:76,flexGrow:0,flexShrink:0}:{flexGrow:1,flexBasis:84}},children:[/* @__PURE__ */W(Vo,{iconUrl:Qe(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))})]})]})}function Ko({isNarrow:e,stripRef:t,children:n}){return e?/* @__PURE__ */W(x,{ref:t,horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:{gap:4},children:n}):/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",gap:4},children:n})}var qo=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}}),Xo=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 Qo(e,t,o){const[i,l]=c([]),[s,d]=c(null),[h,u]=c(!o?.skip),[f,g]=c(null),p=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",y=a(t);y.current=t;const m=o?.skip??!1,b=n(async()=>{if(!m)try{u(!0),g(null);const t=await e.getGames(y.current);l(t.games),d(t.howToPlayMarkdown)}catch(t){g(t instanceof Error?t.message:"Failed to fetch games")}finally{u(!1)}},[e,p,m]);return r(()=>{b()},[b]),{games:i,howToPlayMarkdown:s,loading:h,error:f,refetch:n(async()=>{e.invalidate(),await b()},[e,b])}}function Jo(e,t,o){const[i,l]=c([]),[s,d]=c(!o?.skip),[h,u]=c(null),f=o?.skip??!1,g=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!f)try{d(!0),u(null),l(await e.getPropositions(p.current))}catch(t){u(t instanceof Error?t.message:"Failed to fetch propositions")}finally{d(!1)}},[e,g,f]);return r(()=>{y()},[y]),{propositions:i,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function $o(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 _o(e,t,o){const[i,l]=c([]),[s,d]=c(!o?.skip),[h,u]=c(null),f=o?.skip??!1,g=t?`${t.user_id??""}_${t.pending??""}`:"",p=a(t);p.current=t;const y=n(async()=>{if(!f)try{d(!0),u(null),l(await e.getGameEntries(p.current))}catch(t){u(t instanceof Error?t.message:"Failed to fetch entries")}finally{d(!1)}},[e,g,f]);return r(()=>{y()},[y]),{entries:i,loading:s,error:h,refetch:n(async()=>{e.invalidate(),await y()},[e,y])}}function er(e,t,o){const[i,l]=c({}),[s,d]=c(!1),h=o?.skip??!1,u=o?.betAmount,f=a(/* @__PURE__ */new Set);return r(()=>{if(h||0===t.length)return;const n=t.filter(e=>!(e.id in i)&&!f.current.has(e.id));if(0===n.length)return;for(const e of n)f.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 tr(e){const[t,n]=c(!1),[o,r]=c(null),[i,l]=c(null);return{createEntry:async t=>{try{n(!0),r(null);const o=await e.createGameEntry(t);return l(o),o}catch(o){const e=o instanceof Error?o.message:"Failed to create entry";throw r(e),new Error(e)}finally{n(!1)}},loading:t,error:o,entry:i}}function nr(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 or(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 rr(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 ir(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 lr=t(null),ar={};function cr(){const e=o(lr);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function sr({apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s,userId:d,getUserBalance:h,children:u,theme:f,colorScheme:g,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,onEntryPlaced:A,onBeforeSubmit:R,onCancel:L,onShare:D,onRecharge:M,onClearEventFilter:P,screenSize:H="desktop",howToPlayMarkdown:O,sportDisplayNames:I,categoryDisplayNames:E}){const j=Pe(f,g),N=Ye(j),G=Ve(j),Y=!(!p||!y),V=l(()=>new Xo({apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s}),[t,o,i,s]),[U,Z]=c(0),K=a(0),[q,X]=c(0),[Q,J]=c([]),[$,_]=c({}),[ee,te]=c({}),[ne,oe]=c(void 0),[re,ie]=c(null),[le,ae]=c(void 0),ce=e.useCallback(async()=>{if(h)try{const e=await h();"number"==typeof e&&Number.isFinite(e)&&ae(e)}catch(e){}},[h]);r(()=>{h?ce():ae(void 0)},[h,ce]);const se=a(null),[de,he]=c(null),[ue,fe]=c(C??null),[ge,pe]=c(B??null);r(()=>{C&&fe(C)},[C]),r(()=>{pe(B??null)},[B]);const[ye,me]=c(B),be=a(!1);r(()=>{if(!B)return me(void 0),void(be.current=!1);be.current||me(B)},[B]);const we=w??de??void 0,xe=S??C??void 0,ke=hn(ue??xe,F),Se=hn(xe,F)??xe,Ce=ue??void 0,{games:Be,howToPlayMarkdown:ze,loading:Fe,error:ve}=Qo(V,{category:we,jurisdiction:x,sport:ke},{skip:Y}),{propositions:We,loading:Te,error:Ae}=Jo(V,{category:we,sport:Se,event_id:ye},{skip:Y}),{sports:Re,loading:Le}=$o(V,{skip:Y}),{createEntry:De,loading:Me,error:He}=tr(V),{preview:Oe}=ir(V),Ie=l(()=>wn((Y?p:Be)??[],{category:we,sport:ke??Ce,sportBaseKey:F}),[Y,p,Be,we,ke,Ce,F]),Ee=O??ze??null,{maxPayouts:je,refetchGame:Ne}=er(V,Ie??[],{skip:Y,betAmount:20}),Ge=Y?b??ar:je,Ue=Y?y:We,Ze=S?(Ue??[]).filter(e=>e.sport===S):Ue,Ke=l(()=>nn(Ze??[]),[Ze]),qe=l(()=>we||(1===Ke.length?Ke[0]:void 0),[we,Ke]),Xe=l(()=>{const e=Ze??[];return qe?pn(e,{category:qe,sportBaseKey:F}):e},[Ze,qe,F]),Qe=l(()=>Ce?pn(Xe,{sport:Ce,sportBaseKey:F}):Xe,[Xe,Ce,F]),Je=l(()=>({category:qe,sport:Ce,sportBaseKey:F}),[qe,Ce,F]),$e=l(()=>{const e=(Ie??[]).filter(e=>e.active);if(!qe&&Ke.length>1)return[];const t=qe?wn(e,Je):e;return qe||Ce?function(e,t,n){return n?.category||n?.sport?e.filter(e=>bn(e,t,n)):e}(t,Qe,Je):t},[Ie,Qe,Je,qe,Ce,Ke.length]),{step:_e,selectedGame:et,selections:tt,placedEntry:nt,setGameOnly:ot,clearSelectedGame:rt,goToSportSelection:it,goToConfirmation:lt,goToSuccess:at,goBack:ct,reset:st,toggleSelection:dt}=nr(k),ht=e.useCallback(()=>{be.current=!0,me(void 0),st(),P?.()},[st,P]),ut=!!ye,ft=ut?z:void 0,gt=!Y&&(et?Fe||Te||Le:Fe),pt=Y?null:et?ve||Ae:ve,yt=l(()=>et?xn(Qe,et,F):Qe,[et,Qe,F]),mt=l(()=>et?yt:Xe,[et,yt,Xe]),bt=l(()=>pn(et?yt:Xe,{category:qe}),[et,yt,Xe,qe]),wt=l(()=>{const e=new Set(bt.map(e=>e.sport).filter(Boolean));return Re.filter(t=>e.has(t.key))},[Re,bt]),xt=l(()=>pn(yt,{category:qe,sport:ue}),[yt,qe,ue]),kt=l(()=>{if(!et||!Qn(et))return[];const{min:e}=ln(et,ne),t=ne??e;return $n(xt).filter(e=>e.propositionCount>=t)},[et,ne,xt]),St=l(()=>Qn(et)?oo(xt,ge):xt,[et,xt,ge]),Ct=Object.keys(tt).map(Number),Bt=Ct.length,zt=l(()=>xt.filter(e=>Ct.includes(e.id)),[xt,Ct]);r(()=>{w||de||1===Ke.length&&he(Ke[0])},[w,de,Ke]),r(()=>{if(!et)return;const e=yt,t=new Set(e.map(_t));let n=de;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==de&&he(n));const o=n?e.filter(e=>_t(e)===n):e,r=new Set(function(e){const t=/* @__PURE__ */new Set;for(const n of e){const o=Jt(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),i=et.allowed_sports;fe(e=>e&&r.has(e)?e:1===i?.length&&r.has(i[0])?i[0]:i&&i.length>1?e&&i.includes(e)&&r.has(e)?e:null:1===r.size?Array.from(r)[0]:null)},[et?.id,yt,de]),r(()=>{et&&qe&&(yn(et,qe)||rt())},[et,qe,rt]),r(()=>{et&&(bn(et,Qe,{category:qe,sport:ue,sportBaseKey:F})||rt())},[et,qe,ue,F,Qe,rt]),r(()=>{if(et){if(X(0),se.current){const{count:e}=se.current;return se.current=null,oe(e),void Z(e)}if(et.allowed_propositions&&et.allowed_propositions.length>0){const e=ne;null!=e&&et.allowed_propositions.includes(e)?Z(e):(oe(void 0),Z(0))}else oe(void 0),Z(et.num_propositions||et.max_propositions||0)}},[et]);const Ft=(e,t,n)=>{const o=(Ge[e]?.top_payouts??[]).find(e=>e.proposition_count===t);if(!o)return 0;const r=o.bet_amount&&o.bet_amount>0?o.bet_amount:20;return r<=0?0:o.net_payout/r*n};r(()=>{if("sport"!==_e&&"confirm"!==_e||!et||Y)return;const e=Qn(et)&&ge?St.length:Number.MAX_SAFE_INTEGER;let t;if(et.allowed_propositions&&et.allowed_propositions.length>0){const n=et.allowed_propositions?[...et.allowed_propositions].filter(t=>t<=e).sort((e,t)=>e-t):[];if(0===n.length)return void te({});const o=ne??n[0],r=n.filter(e=>e>o);if(0===r.length)return void te({});t=[o,...r]}else{const{min:n,max:o}=ln(et),r=Math.min(o,e);if(n<=0||r<=n)return void te({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=Ft(et.id,o,20);te(n)},[_e,et,ne,ge,St.length,Y,Ge]),r(()=>{if("confirm"!==_e||!et)return;const e=Ct.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=Ft(et.id,r,q);_(n),e!==K.current?(K.current=e,Z(e)):(U>e||U<=0&&e>0)&&Z(e);const o=q>0?q:Math.max(et.min_bet??20,.01);return(async()=>{try{const n=await Oe(et.id,{actual:U,predicted:U,total:e,bet_amount:o});if(t)return;J(n.winning_counts)}catch{t||J([])}})(),()=>{t=!0}},[_e,et,Ct.length,U,q,Oe,Ge]);const vt=l(()=>{return t=re,(e=et)&&null!=t?e.permitted_rules?.find(e=>e.id===t)??null:null;var e,t},[et,re]),Wt=!Qn(et)||ro(zt,ge),Tt=et?ln(et,void 0,vt):null,At=!(!et||!Wt)&&(et.allowed_propositions&&et.allowed_propositions.length>0?null!=ne&&Bt===ne&&rn(Bt,Tt?.min,Tt?.max):rn(Bt,Tt?.min,Tt?.max)),Rt=et?.min_bet??0,Lt=Math.max(Rt,.01),Dt=null==le||q<=le,Mt=!Me&&q>=Lt&&At&&Dt,Pt=e=>{oe(e),Z(e);for(const t of Object.keys(tt))dt(Number(t),tt[Number(t)])},Ht=e=>{oe(e),Z(e)},Ot=e=>{pe(Qn(e)?B??null:null),ot(e)},It=e=>{if(e!==ge){for(const e of Object.keys(tt)){const t=Number(e);dt(t,tt[t])}pe(e)}},Et=(e,t)=>{se.current={count:t},ot(e),Ne(e.id);const n=e.allowed_sports??[];let o=null;ue&&n.some(e=>un(ue,e,F))?o=ue:1===n.length&&(o=n[0]),fe(o);for(const a of Object.keys(tt)){const e=Number(a);dt(e,tt[e])}let r=pn(xn(Ze??[],e,F),{category:qe,sport:o,sportBaseKey:F});const i=Math.max(0,Math.min(t,r.length)),l=[...r].sort(()=>Math.random()-.5).slice(0,i);for(const a of l)dt(a.id,Math.random()<.5?"yes":"no");lt()},jt=async()=>{if(et&&At){if(Y){const e={id:Math.floor(1e4*Math.random()),game_id:et.id,user_id:d,proposition_ids:Ct,selections:tt,pending:!0,expected_correct:U,bet_amount:q};return A?.(e),at(e),void ce()}try{R&&await R(q);const e=await De({game_id:et.id,user_id:d,proposition_ids:Ct,selections:tt,stake:q,rule_id:vt?.id??null});A?.(e),at(e),ce()}catch(e){}}},Nt=n(e=>I?.[e]??wt.find(t=>t.key===e)?.label??sn(e,void 0,F),[I,wt,F]),Gt=n(e=>dn(e,E),[E]),Yt=l(()=>({theme:j,bodyFont:N,headingFont:G,games:$e,propositions:St,propositionsForCategoryPicker:mt,propositionsForSportPicker:bt,sportSummaries:wt,loading:gt,error:pt,step:_e,selectedGame:et,selections:tt,placedEntry:nt,selectedPropositionIds:Ct,selectedPropositions:zt,selectionValid:At,selectedRuleId:re,setSelectedRuleId:ie,selectedRule:vt,answeredCount:Bt,betAmount:q,setBetAmount:X,expectedCorrect:U,setExpectedCorrect:Z,selectedPropositionCount:ne,handlePropositionCountChange:Pt,upgradePropositionCount:Ht,winningCounts:Q,payouts:$,overloadPayouts:ee,submitting:Me,submitError:He,canSubmit:Mt,gamePrice:Rt,userBalance:le,hasSufficientBalance:Dt,refreshUserBalance:ce,handleSubmit:jt,selectGame:Ot,goToSportSelection:it,goToConfirmation:lt,goBack:ct,reset:st,clearSelectedGame:rt,toggleSelection:dt,quickPickGame:Et,selectedCategory:de,setSelectedCategory:he,selectedSport:ue,setSelectedSport:fe,selectedEventId:ge,sameGameMultiEvents:kt,selectSameGameMultiEvent:It,apiUrl:t,apiKey:o,fetchImpl:i,getAuthHeaders:s,userId:d,disableQuickPick:v,renderTeamLogo:T,filterSport:S,initialSport:C,initialEventId:B,sportBaseKey:F,gameCategory:w,eventFilterActive:ut,eventFilterLabel:ft,clearEventFilter:ht,screenSize:H,displaySportName:Nt,displayCategoryName:Gt,maxPayouts:Ge??{},howToPlayMarkdown:Ee,onEntryPlaced:A,onCancel:L,onShare:D,onRecharge:M,demoEntries:m,demoGames:p,demoPropositions:y}),[j,N,G,$e,St,mt,bt,wt,gt,pt,_e,et,tt,nt,Ct,zt,At,Bt,q,U,ne,re,vt,Q,$,ee,Me,He,Mt,Rt,t,o,d,le,i,s,v,T,S,C,B,F,w,H,ut,ft,ht,de,ue,ge,kt,Ge,Ee,A,L,D,M,P,m,p,y,Pt,Nt,Gt]);/* @__PURE__ */
96
+ return W(lr.Provider,{value:Yt,children:u})}function dr({onPress:e,onDoubleClick:t,label:n="QUICKPICK",size:r="md",yesColor:i,noColor:l,theme:c}){const s=o(lr),d=c??s?.theme??we,h=Ne(d),u=d.colors,f=i??ae(d),g=l??ce(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__ */
97
+ 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:[hr.container,{borderColor:He(u.border,.6),borderRadius:h.radius.sm,minHeight:h.touchTarget.min}],children:[/* @__PURE__ */T(z,{style:hr.topRow,children:[
86
98
  /* @__PURE__ */T(A,{style:k.absoluteFill,viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[
87
99
  /* @__PURE__ */W(O,{points:"0,0 53,0 47,100 0,100",fill:f}),
88
100
  /* @__PURE__ */W(O,{points:"53,0 100,0 100,100 47,100",fill:g}),
89
- /* @__PURE__ */W(D,{x1:"53",y1:"0",x2:"47",y2:"100",stroke:"rgba(255,255,255,0.85)",strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})]}),
90
- /* @__PURE__ */W(z,{style:[$o.half,{paddingHorizontal:y,paddingVertical:m}],children:/* @__PURE__ */W(S,{style:[$o.halfLabel,{fontSize:b}],numberOfLines:1,children:"Yes"})}),
91
- /* @__PURE__ */W(z,{style:[$o.half,{paddingHorizontal:y,paddingVertical:m}],children:/* @__PURE__ */W(S,{style:[$o.halfLabel,{fontSize:b}],numberOfLines:1,children:"No"})})]}),/* @__PURE__ */W(z,{style:[$o.labelRow,{backgroundColor:u.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[$o.labelText,{color:u.buttonSecondaryText,fontSize:w,letterSpacing:.14*w,fontFamily:d.fonts?.mono??Ge(d)}],numberOfLines:1,children:n})})]})}var $o=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}});function _o(e){return e.selectionCard??e.backgroundAlt}function er({color:e,style:t}){/* @__PURE__ */
92
- return W(z,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function tr({colors:t,count:n=2}){const{width:o}=F(),r=o>=400,i=o>=640,[l,a]=e.useState(0),c=r?l>0?(l-12)/2:"48%":"100%",s=_o(t);/* @__PURE__ */
93
- 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(er,{color:t.textMuted,style:{height:20,width:176,maxWidth:"100%"}}),/* @__PURE__ */W(er,{color:t.textMuted,style:{height:12,width:96,maxWidth:"70%"}})]},n))})}function nr({colors:e,count:t=4}){const{width:n}=F(),o=n>=640,r=_o(e);/* @__PURE__ */
94
- 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:[
95
- /* @__PURE__ */W(er,{color:e.textMuted,style:{height:o?48:40,width:o?48:40,borderRadius:12}}),
96
- /* @__PURE__ */T(z,{style:{flex:o?1:void 0,minWidth:0,alignItems:o?"flex-start":"center",gap:6},children:[/* @__PURE__ */W(er,{color:e.textMuted,style:{height:14,width:80}}),/* @__PURE__ */W(er,{color:e.textMuted,style:{height:10,width:48}})]}),o&&/* @__PURE__ */W(er,{color:e.textMuted,style:{height:20,width:20,borderRadius:6}})]},n))})}function or({colors:e,count:t=3}){const n=_o(e);/* @__PURE__ */
97
- 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(er,{color:e.textMuted,style:{height:16,width:176,maxWidth:"100%"}})}),/* @__PURE__ */W(er,{color:e.textMuted,style:{height:12,width:160,maxWidth:"80%",marginTop:8}})]}),/* @__PURE__ */W(er,{color:e.textMuted,style:{height:20,width:20,borderRadius:6}})]},o))})}function rr({colors:e,tileSize:t=116,width:n}){/* @__PURE__ */
98
- 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:_o(e)},children:[
99
- /* @__PURE__ */W(er,{color:e.textMuted,style:{width:t,height:t,borderRadius:16}}),
100
- /* @__PURE__ */W(er,{color:e.textMuted,style:{height:12,width:44,marginTop:4}}),
101
- /* @__PURE__ */W(er,{color:e.textMuted,style:{height:17,width:128,maxWidth:"80%",marginTop:2}}),
102
- /* @__PURE__ */W(er,{color:e.textMuted,style:{height:11,width:"75%",marginTop:10}})]})}function ir({colors:e}){/* @__PURE__ */
103
- return W(z,{style:{flexDirection:"row",gap:8,marginBottom:12,width:"100%"},children:[0,1,2].map(t=>/* @__PURE__ */W(er,{color:e.textMuted,style:{height:38,flex:1,borderRadius:999}},t))})}function lr({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__ */
104
- return T(z,{style:{width:"100%"},onLayout:e=>l(e.nativeEvent.layout.width),children:[r&&/* @__PURE__ */W(ir,{colors:t}),/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:n}).map((e,n)=>/* @__PURE__ */W(rr,{colors:t,tileSize:o,width:a},n))})]})}function ar({colors:e,groups:t=2,rowsPerGroup:n=2}){const{width:o}=F(),r=o>=640;/* @__PURE__ */
105
- return T(z,{style:{gap:r?24:16,paddingBottom:64,width:"100%"},children:[/* @__PURE__ */W(er,{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:_o(e),overflow:"hidden"},children:[/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:12,gap:6,backgroundColor:e.backgroundAlt},children:[/* @__PURE__ */W(er,{color:e.textMuted,style:{height:16,width:176,maxWidth:"80%"}}),/* @__PURE__ */W(er,{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(er,{color:e.textMuted,style:{height:16,flex:1,maxWidth:"58%"}}),/* @__PURE__ */T(z,{style:{flexDirection:"row",gap:6,flexShrink:0},children:[/* @__PURE__ */W(er,{color:e.textMuted,style:{height:r?32:28,width:r?48:44,borderRadius:8}}),/* @__PURE__ */W(er,{color:e.textMuted,style:{height:r?32:28,width:r?48:44,borderRadius:8}})]})]},n))]},o))})]})}function cr({colors:e}){/* @__PURE__ */
106
- 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(er,{color:e.textMuted,style:{height:14,width:68}}),/* @__PURE__ */W(er,{color:e.textMuted,style:{height:20,width:20,borderRadius:999}})]},t))})}function sr({colors:e}){/* @__PURE__ */
107
- return T(z,{style:{borderRadius:8,borderWidth:1,borderColor:e.border,backgroundColor:_o(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(er,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),/* @__PURE__ */W(er,{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(er,{color:e.textMuted,style:{height:14,width:40}}),/* @__PURE__ */W(er,{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(er,{color:e.textMuted,style:{height:14,width:"88%"}}),/* @__PURE__ */W(er,{color:e.textMuted,style:{height:12,width:"70%"}})]}),/* @__PURE__ */W(er,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]})}function dr({colors:e,rows:t=2}){/* @__PURE__ */
108
- return T(z,{style:{width:"100%"},children:[/* @__PURE__ */W(cr,{colors:e}),/* @__PURE__ */W(z,{style:{gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>/* @__PURE__ */W(sr,{colors:e},n))})]})}function hr({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(nr,{colors:e,count:Math.max(i,2)});case"event":/* @__PURE__ */return W(or,{colors:e});case"games":/* @__PURE__ */return W(lr,{colors:e,count:r,showTierTabs:l});case"propositions":/* @__PURE__ */return W(ar,{colors:e});case"entries":/* @__PURE__ */return W(dr,{colors:e,rows:2});default:/* @__PURE__ */return W(tr,{colors:e,count:i})}})();/* @__PURE__ */
109
- 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]})}var ur={today:"Today",weekend:"This weekend",next7:"Next 7 days"},fr=["today","weekend","next7"];function gr(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: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:gr(n,1)};case"weekend":{const e=n.getDay(),t=gr(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:gr(t,2)}}case"next7":return{start:n,end:gr(n,7)}}}(t,n);return o>=r&&o<i}function yr(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 mr=12;function br({theme:e,value:t,onYes:n,onNo:o,disabled:r}){const i=e.colors,l=(e,t)=>({paddingVertical:6,paddingHorizontal:14,borderRadius:8,borderWidth:1,backgroundColor:e?t:"transparent",borderColor:e?"transparent":i.border,opacity:r?.5:1}),a=e=>({color:e?"#ffffff":i.text,fontSize:13,fontWeight:"600",lineHeight:16});/* @__PURE__ */
101
+ /* @__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"})]}),
102
+ /* @__PURE__ */W(z,{style:[hr.half,{paddingHorizontal:y,paddingVertical:m}],children:/* @__PURE__ */W(S,{style:[hr.halfLabel,{fontSize:b}],numberOfLines:1,children:"Yes"})}),
103
+ /* @__PURE__ */W(z,{style:[hr.half,{paddingHorizontal:y,paddingVertical:m}],children:/* @__PURE__ */W(S,{style:[hr.halfLabel,{fontSize:b}],numberOfLines:1,children:"No"})})]}),/* @__PURE__ */W(z,{style:[hr.labelRow,{backgroundColor:u.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[hr.labelText,{color:u.buttonSecondaryText,fontSize:w,letterSpacing:.14*w,fontFamily:d.fonts?.mono??Ye(d)}],numberOfLines:1,children:n})})]})}var hr=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}}),ur={today:"Today",weekend:"This weekend",next7:"Next 7 days"},fr=["today","weekend","next7"];function gr(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: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:gr(n,1)};case"weekend":{const e=n.getDay(),t=gr(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:gr(t,2)}}case"next7":return{start:n,end:gr(n,7)}}}(t,n);return o>=r&&o<i}function yr(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 mr=12;function br({theme:e,value:t,onYes:n,onNo:o,disabled:r}){const i=e.colors,l=(e,t)=>({paddingVertical:6,paddingHorizontal:14,borderRadius:8,borderWidth:1,backgroundColor:e?t:"transparent",borderColor:e?"transparent":i.border,opacity:r?.5:1}),a=e=>({color:e?"#ffffff":i.text,fontSize:13,fontWeight:"600",lineHeight:16});/* @__PURE__ */
110
104
  return T(z,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[/* @__PURE__ */W(B,{onPress:n,disabled:r,accessibilityState:{selected:"yes"===t},style:l("yes"===t,ae(e)),children:/* @__PURE__ */W(S,{style:a("yes"===t),children:"Yes"})}),/* @__PURE__ */W(B,{onPress:o,disabled:r,accessibilityState:{selected:"no"===t},style:l("no"===t,ce(e)),children:/* @__PURE__ */W(S,{style:a("no"===t),children:"No"})})]})}function wr({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__ */
111
- return W(B,{onPress:o,disabled:n,activeOpacity:.85,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:s.border,backgroundColor:l&&!n?s.bgHover:s.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:/* @__PURE__ */W(S,{style:{color:s.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:r})})}function xr({matchup:e,renderTeamLogo:t,altText:n,mutedColor:o,size:r="sm"}){const{width:i}=F(),l=i>=640,[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:Br.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__ */
112
- return T(z,l?{style:Br.matchupTeamsRow,children:[h(a),u,h(c)]}:{style:Br.matchupTeamsStacked,children:[u,/* @__PURE__ */T(z,{style:{flexShrink:1,minWidth:0},children:[h(a),h(c)]})]})}function kr({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:Pe(t.primary,.14),borderWidth:1,borderColor:Pe(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??Pe(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 Sr({prop:t,colors:n,size:o="sm",componentById:r}){const{width:i}=F(),l=i>=640,a=Ht(t,r),s=t.description??t.proposition??"",d="md"===o?l?16:14:l?14:12,h="md"===o?"500":"400",u=n.textMuted??n.textAltMuted??n.text,[f,g]=c(!1);if(!a)/* @__PURE__ */return W(S,{style:{color:n.text,fontSize:d,fontWeight:h,flex:1},children:s});const{operator:p,legs:y}=a;return y.some(e=>e.eventLabel)?/* @__PURE__ */W(z,{style:{flex:1,minWidth:0,flexDirection:"column",gap:8,...f&&{zIndex:9999,elevation:9999,position:"relative"}},children:y.map((e,t)=>/* @__PURE__ */T(z,{style:{minWidth:0},children:[t>0&&/* @__PURE__ */W(z,{style:{marginBottom:4},children:/* @__PURE__ */W(kr,{label:p,colors:n,onOpenChange:g})}),e.eventLabel&&/* @__PURE__ */W(S,{style:{color:u,fontSize:l?12:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:.25},children:e.eventLabel}),
113
- /* @__PURE__ */W(S,{style:{color:n.text,fontSize:d,fontWeight:h},children:e.text})]},t))}):/* @__PURE__ */W(z,{style:{flex:1,minWidth:0,...f&&{zIndex:9999,elevation:9999,position:"relative"}},children:/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6,rowGap:4},children:y.map((t,o)=>/* @__PURE__ */T(e.Fragment,{children:[o>0&&/* @__PURE__ */W(kr,{label:p,colors:n,onOpenChange:g}),/* @__PURE__ */W(S,{style:{color:n.text,fontSize:d,fontWeight:h},children:t.text})]},o))})})}function Cr({game:t,propositions:n,selections:i,onToggleSelection:s,onNext:d,onBack:h,loading:u,error:f,theme:g,colorScheme:p,hideActions:y=!1,initialSport:m,renderTeamLogo:b,disableQuickPick:w=!1,selectedPropositionCount:x,onPropositionCountChange:k,gameCategory:L,headerExtra:R}){const M=o(Ko),D=M?.sportBaseKey,P=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(Mt(n))for(const e of Dt(n))t.add(e);return[...t]}(t).filter(e=>!s.has(e)):[],[e,t,s]);return r(()=>{if(!e||0===d.length)return;const t=d.filter(e=>!i.current.has(e));if(0===t.length)return;for(const e of t)i.current.add(e);let n=!1;return e.getPropositionsByIds(t).then(e=>{!n&&e.length>0&&o(t=>[...t,...e])}).catch(()=>{}),()=>{n=!0}},[e,d]),s}(l(()=>M?.apiUrl?new Ho({apiUrl:M.apiUrl,apiKey:M.apiKey,fetchImpl:M.fetchImpl,getAuthHeaders:M.getAuthHeaders}):null,[M?.apiUrl,M?.apiKey,M?.fetchImpl,M?.getAuthHeaders]),n),O=De(g,p),I=O.colors,E=ue(O),j=ge(O),N=I.matchupHeader??(t.color?Pe(t.color,.14):fe(O)),G=I.textAlt??I.text;Ye(O);const Y=Ge(O);re(O);const{width:V}=F(),U=V>=640,Z=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(O),K=!!(t.allowed_propositions&&t.allowed_propositions.length>0),{min:q,max:X}=on(t,x),Q=q,J=X,[$,_]=e.useState(()=>new Set(Object.keys(Sn(n,L,D))));e.useEffect(()=>{const e=Sn(n,L,D),t=Object.keys(e);t.length>0&&_(e=>t.every(t=>e.has(t))?e:new Set(t))},[n]);const ee=Q>0&&Q===J,te=Q||1,ne=J||n.length,oe=J||Q||n.length,[ie,le]=e.useState(oe),ae=Object.keys(i).length,ce=J>0&&ae>=J,se=K?null!=x&&ae===x:nn(ae,t.min_propositions,t.max_propositions);t.min_bet,J>0?Math.max(2,2*J):Math.max(2,2*ae);const de=e.useRef(ae),he=K?null!=x&&ae===x:J>0&&ae===J;r(()=>{he&&ae>de.current&&d?.(),de.current=ae},[ae,he]);const ye=(e,t)=>{!(e in i)&&ce||s(e,t)};r(()=>{const e=J||n.length,t=Q||1;le(n=>ee?J:Math.max(t,Math.min(n,e)))},[n.length,Q,J,ee]);const me=l(()=>/* @__PURE__ */new Date,[]),be=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 fr){let e=0,i=0;for(const o of n)if(pr(o.commence_time,r,t)?e+=1:i+=1,e>0&&i>0)break;e>0&&i>0&&o.push({id:r,label:ur[r]})}return o}(n,me),[n,me]),[we,xe]=c(null);r(()=>{we&&!be.some(e=>e.id===we)&&xe(null)},[be,we]);const ke=l(()=>function(e,t,n){return t?e.filter(e=>pr(e.commence_time,t,n)):e.slice()}(n,we,me),[n,we,me]),Se=l(()=>Sn(ke,L,D),[ke,L,D]),Ce=l(()=>{const e=/* @__PURE__ */new Set;for(const t of ke){const n=At(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[ke]),[Be,ze]=c(null),[Fe,ve]=c(!1);r(()=>{Be&&!Ce.includes(Be)&&ze(null)},[Ce,Be]);const We=l(()=>{if(!Be)return Se;const e={};for(const[t,n]of Object.entries(Se)){const o=n.filter(e=>At(e)===Be);o.length>0&&(e[t]=o)}return e},[Se,Be]),Te=Object.keys(We);if(u)/* @__PURE__ */return W(ar,{colors:pe(O)});if(f)/* @__PURE__ */return W(z,{style:Br.centered,children:/* @__PURE__ */W(S,{style:{color:I.error},children:f})});const Ae=!w&&n.length>0,Le=be.length>0||Ce.length>1,Re=(null!=we?1:0)+(null!=Be?1:0);/* @__PURE__ */
114
- return T(z,{style:{gap:U?24:16,paddingBottom:64},children:[Le||R?/* @__PURE__ */T(z,{style:Br.filterHeaderRow,children:[/* @__PURE__ */W(z,{style:Br.filterToggleRow,children:Le?/* @__PURE__ */T(v,{children:[/* @__PURE__ */T(B,{onPress:()=>ve(e=>!e),activeOpacity:.85,accessibilityRole:"button",style:[Br.filterToggle,{borderColor:Re>0?I.primary:I.border,backgroundColor:Re>0?I.primary:I.background??"#fff"}],children:[
115
- /* @__PURE__ */W(Bt,{size:13,color:Re>0?I.primaryText:I.text}),
116
- /* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"700",color:Re>0?I.primaryText:I.text},children:"Filter"}),Re>0&&/* @__PURE__ */T(S,{style:{fontSize:11,fontWeight:"700",color:I.primaryText},children:["· ",Re]}),
117
- /* @__PURE__ */W(z,{style:{transform:[{rotate:Fe?"-90deg":"90deg"}],opacity:.75},children:/* @__PURE__ */W(St,{size:13,color:Re>0?I.primaryText:I.text})})]}),Re>0&&/* @__PURE__ */W(B,{onPress:()=>{xe(null),ze(null)},activeOpacity:.85,accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"600",color:I.textMuted},children:"Clear"})})]}):null}),R]}):null,Fe&&Le&&/* @__PURE__ */T(z,{style:{gap:10},children:[be.length>0&&/* @__PURE__ */W(Wt,{label:"When",options:[{value:null,label:"All dates"},...be.map(e=>({value:e.id,label:e.label}))],value:we,onChange:e=>xe(e),theme:O,bodyFont:Y}),Ce.length>1&&/* @__PURE__ */W(Wt,{label:"Market",options:[{value:null,label:"All markets"},...Ce.map(e=>{return{value:e,label:(t=e,t.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))};var t})],value:Be,onChange:ze,theme:O,bodyFont:Y})]}),Ae&&/* @__PURE__ */W(z,{style:[Br.topBar,{justifyContent:"flex-end"}],children:/* @__PURE__ */T(z,{style:[Br.quickPickRow,{gap:U?8:6}],children:[!ee&&/* @__PURE__ */T(z,{style:Br.quickPickCountRow,children:[/* @__PURE__ */W(C,{keyboardType:"number-pad",value:String(ie),onChangeText:e=>{const t=parseInt(e,10);isNaN(t)||le(Math.max(te,Math.min(ne,t)))},style:[Br.quickPickInput,{width:U?56:40,paddingHorizontal:U?8:4,paddingVertical:U?6:4,fontSize:U?14:12,color:G,backgroundColor:I.backgroundAlt,borderColor:I.border}]}),/* @__PURE__ */T(S,{style:{color:I.textMuted,fontSize:12},children:["/ ",n.length]})]}),/* @__PURE__ */W(Jo,{onPress:()=>{const e=ee?J:ie;for(const n of Object.keys(i)){const e=Number(n);s(e,i[e])}const{yesPicks:t,noPicks:o}=zn(n,e);for(const n of t)s(n.id,"yes");for(const n of o)s(n.id,"no");d?.()}})]})}),n.length>0&&/* @__PURE__ */W(z,{style:Br.matchupList,children:Te.every(e=>1===We[e].length)?/* @__PURE__ */W(z,{style:[Br.matchupCard,{borderColor:I.border,backgroundColor:E},Z],children:Te.map((e,t)=>{const n=We[e][0],o="yes"===i[n.id],r="no"===i[n.id],l=n.id in i,a=ce&&!l,c=0===t,s=t===Te.length-1;/* @__PURE__ */
118
- return T(z,{style:{borderTopColor:I.border,borderTopWidth:c?0:1,opacity:a?.45:1},children:[/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:U?12:10,backgroundColor:N,borderTopLeftRadius:c?mr:0,borderTopRightRadius:c?mr:0},children:[/* @__PURE__ */W(z,{style:{minWidth:0},children:/* @__PURE__ */W(xr,{matchup:e,renderTeamLogo:b,altText:G,mutedColor:I.textAltMuted??I.textMuted??G})}),n.commence_time&&/* @__PURE__ */W(S,{style:{color:I.textAltMuted??I.textMuted,fontSize:11,opacity:.7,marginTop:2},children:Kt(n.commence_time)})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingHorizontal:16,paddingVertical:U?14:12,backgroundColor:j,borderTopWidth:1,borderTopColor:I.border,borderBottomLeftRadius:s?mr:0,borderBottomRightRadius:s?mr:0},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[yr(n,b,e),/* @__PURE__ */W(Sr,{prop:n,colors:I,componentById:P})]}),/* @__PURE__ */W(br,{theme:O,value:o?"yes":r?"no":null,onYes:()=>ye(n.id,"yes"),onNo:()=>ye(n.id,"no"),disabled:a})]})]},n.id)})}):Te.map(e=>{const t=We[e],n=$.has(e),o=t.filter(e=>e.id in i).length,r=t[0]?.commence_time;/* @__PURE__ */
119
- return T(z,{style:[Br.matchupCard,{borderColor:I.border,backgroundColor:E},Z],children:[/* @__PURE__ */T(B,{onPress:()=>{return t=e,_(e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n});var t},style:[Br.matchupHeader,{backgroundColor:N,borderTopLeftRadius:mr,borderTopRightRadius:mr,borderBottomLeftRadius:n?0:mr,borderBottomRightRadius:n?0:mr}],children:[/* @__PURE__ */T(z,{style:Br.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:I.textAltMuted??I.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),/* @__PURE__ */T(z,{style:Br.matchupTeamWrapper,children:[/* @__PURE__ */W(xr,{matchup:e,renderTeamLogo:b,altText:G,mutedColor:I.textAltMuted??I.textMuted??G,size:"md"}),r&&/* @__PURE__ */W(S,{style:{color:I.textAltMuted??I.textMuted,fontSize:12,opacity:.7,marginTop:2,textAlign:"left"},children:Kt(r)})]})]}),/* @__PURE__ */W(z,{style:Br.matchupHeaderRight,children:o>0&&/* @__PURE__ */W(z,{style:[Br.answeredBadge,{backgroundColor:I.successBg}],children:/* @__PURE__ */T(S,{style:{color:I.successText,fontSize:12,fontWeight:"500"},children:[o,"/",t.length]})})})]}),n&&/* @__PURE__ */W(z,{children:/* @__PURE__ */W(v,{children:t.map((n,o)=>{const r="yes"===i[n.id],l="no"===i[n.id],a=n.id in i,c=ce&&!a,s=o===t.length-1;/* @__PURE__ */
120
- return W(z,{style:{paddingHorizontal:16,paddingVertical:U?14:12,backgroundColor:j,borderTopColor:I.border,borderTopWidth:0===o?0:1,opacity:c?.45:1,borderBottomLeftRadius:s?mr:0,borderBottomRightRadius:s?mr:0},children:/* @__PURE__ */T(z,{style:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-start",columnGap:U?16:8,rowGap:U?16:8},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:128,flexDirection:"row",alignItems:"flex-start",gap:8},children:[yr(n,b,e),/* @__PURE__ */W(Sr,{prop:n,colors:I,size:"md",componentById:P})]}),/* @__PURE__ */W(br,{theme:O,value:r?"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:Br.centered,children:/* @__PURE__ */W(S,{style:{color:I.textMuted},children:"No propositions available at this time"})}),!y&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:I.border,backgroundColor:E,marginHorizontal:U?-24:-16,paddingHorizontal:U?24:16,paddingVertical:U?16:12},children:[/* @__PURE__ */W(wr,{theme:O,variant:"secondary",onPress:h,children:"Back"}),/* @__PURE__ */W(z,{style:{flexDirection:"row",alignItems:"center",gap:U?12:8},children:/* @__PURE__ */W(wr,{theme:O,variant:"primary",disabled:!se,onPress:d,children:"Wager"})})]})]})}var Br=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:mr,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 zr({theme:e,value:t,onYes:n,onNo:o,disabled:r}){const i=e.colors,l=(e,t)=>({paddingVertical:6,paddingHorizontal:14,borderRadius:8,borderWidth:1,backgroundColor:e?t:"transparent",borderColor:e?"transparent":i.border,opacity:r?.5:1}),a=e=>({color:e?"#ffffff":i.text,fontSize:13,fontWeight:"600",lineHeight:16});/* @__PURE__ */
105
+ return W(B,{onPress:o,disabled:n,activeOpacity:.85,...at(()=>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 xr({matchup:e,renderTeamLogo:t,altText:n,mutedColor:o,size:r="sm"}){const{width:i}=F(),l=i>=640,[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:Br.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__ */
106
+ return T(z,l?{style:Br.matchupTeamsRow,children:[h(a),u,h(c)]}:{style:Br.matchupTeamsStacked,children:[u,/* @__PURE__ */T(z,{style:{flexShrink:1,minWidth:0},children:[h(a),h(c)]})]})}function kr({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:He(t.primary,.14),borderWidth:1,borderColor:He(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??He(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 Sr({prop:t,colors:n,size:o="sm",componentById:r}){const{width:i}=F(),l=i>=640,a=It(t,r),s=t.description??t.proposition??"",d="md"===o?l?16:14:l?14:12,h="md"===o?"500":"400",u=n.textMuted??n.textAltMuted??n.text,[f,g]=c(!1);if(!a)/* @__PURE__ */return W(S,{style:{color:n.text,fontSize:d,fontWeight:h,flex:1},children:s});const{operator:p,legs:y}=a;return y.some(e=>e.eventLabel)?/* @__PURE__ */W(z,{style:{flex:1,minWidth:0,flexDirection:"column",gap:8,...f&&{zIndex:9999,elevation:9999,position:"relative"}},children:y.map((e,t)=>/* @__PURE__ */T(z,{style:{minWidth:0},children:[t>0&&/* @__PURE__ */W(z,{style:{marginBottom:4},children:/* @__PURE__ */W(kr,{label:p,colors:n,onOpenChange:g})}),e.eventLabel&&/* @__PURE__ */W(S,{style:{color:u,fontSize:l?12:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:.25},children:e.eventLabel}),
107
+ /* @__PURE__ */W(S,{style:{color:n.text,fontSize:d,fontWeight:h},children:e.text})]},t))}):/* @__PURE__ */W(z,{style:{flex:1,minWidth:0,...f&&{zIndex:9999,elevation:9999,position:"relative"}},children:/* @__PURE__ */W(z,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6,rowGap:4},children:y.map((t,o)=>/* @__PURE__ */T(e.Fragment,{children:[o>0&&/* @__PURE__ */W(kr,{label:p,colors:n,onOpenChange:g}),/* @__PURE__ */W(S,{style:{color:n.text,fontSize:d,fontWeight:h},children:t.text})]},o))})})}function Cr({game:t,propositions:n,selections:i,onToggleSelection:s,onNext:d,onBack:h,loading:u,error:f,theme:g,colorScheme:p,hideActions:y=!1,initialSport:m,renderTeamLogo:b,disableQuickPick:w=!1,selectedPropositionCount:x,onPropositionCountChange:k,gameCategory:R,headerExtra:L}){const D=o(lr),M=D?.sportBaseKey,P=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(Pt(n))for(const e of Ht(n))t.add(e);return[...t]}(t).filter(e=>!s.has(e)):[],[e,t,s]);return r(()=>{if(!e||0===d.length)return;const t=d.filter(e=>!i.current.has(e));if(0===t.length)return;for(const e of t)i.current.add(e);let n=!1;return e.getPropositionsByIds(t).then(e=>{!n&&e.length>0&&o(t=>[...t,...e])}).catch(()=>{}),()=>{n=!0}},[e,d]),s}(l(()=>D?.apiUrl?new Xo({apiUrl:D.apiUrl,apiKey:D.apiKey,fetchImpl:D.fetchImpl,getAuthHeaders:D.getAuthHeaders}):null,[D?.apiUrl,D?.apiKey,D?.fetchImpl,D?.getAuthHeaders]),n),O=Pe(g,p),I=O.colors,E=fe(O),j=pe(O),N=I.matchupHeader??(t.color?He(t.color,.14):ge(O)),G=I.textAlt??I.text;Ve(O);const Y=Ye(O);re(O);const{width:V}=F(),U=V>=640,Z=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(O),K=!!(t.allowed_propositions&&t.allowed_propositions.length>0),{min:q,max:X}=ln(t,x),Q=q,J=X,[$,_]=e.useState(()=>new Set(Object.keys(Bn(n,R,M))));e.useEffect(()=>{const e=Bn(n,R,M),t=Object.keys(e);t.length>0&&_(e=>t.every(t=>e.has(t))?e:new Set(t))},[n]);const ee=Q>0&&Q===J,te=Q||1,ne=J||n.length,oe=J||Q||n.length,[ie,le]=e.useState(oe),ae=Object.keys(i).length,ce=J>0&&ae>=J,se=K?null!=x&&ae===x:rn(ae,t.min_propositions,t.max_propositions);t.min_bet,J>0?Math.max(2,2*J):Math.max(2,2*ae);const de=e.useRef(ae),he=K?null!=x&&ae===x:J>0&&ae===J;r(()=>{he&&ae>de.current&&d?.(),de.current=ae},[ae,he]);const ue=(e,t)=>{!(e in i)&&ce||s(e,t)};r(()=>{const e=J||n.length,t=Q||1;le(n=>ee?J:Math.max(t,Math.min(n,e)))},[n.length,Q,J,ee]);const me=l(()=>/* @__PURE__ */new Date,[]),be=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 fr){let e=0,i=0;for(const o of n)if(pr(o.commence_time,r,t)?e+=1:i+=1,e>0&&i>0)break;e>0&&i>0&&o.push({id:r,label:ur[r]})}return o}(n,me),[n,me]),[we,xe]=c(null);r(()=>{we&&!be.some(e=>e.id===we)&&xe(null)},[be,we]);const ke=l(()=>function(e,t,n){return t?e.filter(e=>pr(e.commence_time,t,n)):e.slice()}(n,we,me),[n,we,me]),Se=l(()=>Bn(ke,R,M),[ke,R,M]),Ce=l(()=>{const e=/* @__PURE__ */new Set;for(const t of ke){const n=Lt(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[ke]),[Be,ze]=c(null),[Fe,ve]=c(!1);r(()=>{Be&&!Ce.includes(Be)&&ze(null)},[Ce,Be]);const We=l(()=>{if(!Be)return Se;const e={};for(const[t,n]of Object.entries(Se)){const o=n.filter(e=>Lt(e)===Be);o.length>0&&(e[t]=o)}return e},[Se,Be]),Te=Object.keys(We);if(u)/* @__PURE__ */return W(Yn,{colors:ye(O)});if(f)/* @__PURE__ */return W(z,{style:Br.centered,children:/* @__PURE__ */W(S,{style:{color:I.error},children:f})});const Ae=!w&&n.length>0,Re=be.length>0||Ce.length>1,Le=(null!=we?1:0)+(null!=Be?1:0);/* @__PURE__ */
108
+ return T(z,{style:{gap:U?24:16,paddingBottom:64},children:[Re||L?/* @__PURE__ */T(z,{style:Br.filterHeaderRow,children:[/* @__PURE__ */W(z,{style:Br.filterToggleRow,children:Re?/* @__PURE__ */T(v,{children:[/* @__PURE__ */T(B,{onPress:()=>ve(e=>!e),activeOpacity:.85,accessibilityRole:"button",style:[Br.filterToggle,{borderColor:Le>0?I.primary:I.border,backgroundColor:Le>0?I.primary:I.background??"#fff"}],children:[
109
+ /* @__PURE__ */W(Ft,{size:13,color:Le>0?I.primaryText:I.text}),
110
+ /* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"700",color:Le>0?I.primaryText:I.text},children:"Filter"}),Le>0&&/* @__PURE__ */T(S,{style:{fontSize:11,fontWeight:"700",color:I.primaryText},children:["· ",Le]}),
111
+ /* @__PURE__ */W(z,{style:{transform:[{rotate:Fe?"-90deg":"90deg"}],opacity:.75},children:/* @__PURE__ */W(Bt,{size:13,color:Le>0?I.primaryText:I.text})})]}),Le>0&&/* @__PURE__ */W(B,{onPress:()=>{xe(null),ze(null)},activeOpacity:.85,accessibilityRole:"button",children:/* @__PURE__ */W(S,{style:{fontSize:11,fontWeight:"600",color:I.textMuted},children:"Clear"})})]}):null}),L]}):null,Fe&&Re&&/* @__PURE__ */T(z,{style:{gap:10},children:[be.length>0&&/* @__PURE__ */W(At,{label:"When",options:[{value:null,label:"All dates"},...be.map(e=>({value:e.id,label:e.label}))],value:we,onChange:e=>xe(e),theme:O,bodyFont:Y}),Ce.length>1&&/* @__PURE__ */W(At,{label:"Market",options:[{value:null,label:"All markets"},...Ce.map(e=>{return{value:e,label:(t=e,t.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))};var t})],value:Be,onChange:ze,theme:O,bodyFont:Y})]}),Ae&&/* @__PURE__ */W(z,{style:[Br.topBar,{justifyContent:"flex-end"}],children:/* @__PURE__ */T(z,{style:[Br.quickPickRow,{gap:U?8:6}],children:[!ee&&/* @__PURE__ */T(z,{style:Br.quickPickCountRow,children:[/* @__PURE__ */W(C,{keyboardType:"number-pad",value:String(ie),onChangeText:e=>{const t=parseInt(e,10);isNaN(t)||le(Math.max(te,Math.min(ne,t)))},style:[Br.quickPickInput,{width:U?56:40,paddingHorizontal:U?8:4,paddingVertical:U?6:4,fontSize:U?14:12,color:G,backgroundColor:I.backgroundAlt,borderColor:I.border}]}),/* @__PURE__ */T(S,{style:{color:I.textMuted,fontSize:12},children:["/ ",n.length]})]}),/* @__PURE__ */W(dr,{onPress:()=>{const e=ee?J:ie;for(const n of Object.keys(i)){const e=Number(n);s(e,i[e])}const{yesPicks:t,noPicks:o}=vn(n,e);for(const n of t)s(n.id,"yes");for(const n of o)s(n.id,"no");d?.()}})]})}),n.length>0&&/* @__PURE__ */W(z,{style:Br.matchupList,children:Te.every(e=>1===We[e].length)?/* @__PURE__ */W(z,{style:[Br.matchupCard,{borderColor:I.border,backgroundColor:E},Z],children:Te.map((e,t)=>{const n=We[e][0],o="yes"===i[n.id],r="no"===i[n.id],l=n.id in i,a=ce&&!l,c=0===t,s=t===Te.length-1;/* @__PURE__ */
112
+ return T(z,{style:{borderTopColor:I.border,borderTopWidth:c?0:1,opacity:a?.45:1},children:[/* @__PURE__ */T(z,{style:{paddingHorizontal:16,paddingVertical:U?12:10,backgroundColor:N,borderTopLeftRadius:c?mr:0,borderTopRightRadius:c?mr:0},children:[/* @__PURE__ */W(z,{style:{minWidth:0},children:/* @__PURE__ */W(xr,{matchup:e,renderTeamLogo:b,altText:G,mutedColor:I.textAltMuted??I.textMuted??G})}),n.commence_time&&/* @__PURE__ */W(S,{style:{color:I.textAltMuted??I.textMuted,fontSize:11,opacity:.7,marginTop:2},children:Xt(n.commence_time)})]}),/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingHorizontal:16,paddingVertical:U?14:12,backgroundColor:j,borderTopWidth:1,borderTopColor:I.border,borderBottomLeftRadius:s?mr:0,borderBottomRightRadius:s?mr:0},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[yr(n,b,e),/* @__PURE__ */W(Sr,{prop:n,colors:I,componentById:P})]}),/* @__PURE__ */W(br,{theme:O,value:o?"yes":r?"no":null,onYes:()=>ue(n.id,"yes"),onNo:()=>ue(n.id,"no"),disabled:a})]})]},n.id)})}):Te.map(e=>{const t=We[e],n=$.has(e),o=t.filter(e=>e.id in i).length,r=t[0]?.commence_time;/* @__PURE__ */
113
+ return T(z,{style:[Br.matchupCard,{borderColor:I.border,backgroundColor:E},Z],children:[/* @__PURE__ */T(B,{onPress:()=>{return t=e,_(e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n});var t},style:[Br.matchupHeader,{backgroundColor:N,borderTopLeftRadius:mr,borderTopRightRadius:mr,borderBottomLeftRadius:n?0:mr,borderBottomRightRadius:n?0:mr}],children:[/* @__PURE__ */T(z,{style:Br.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:I.textAltMuted??I.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),/* @__PURE__ */T(z,{style:Br.matchupTeamWrapper,children:[/* @__PURE__ */W(xr,{matchup:e,renderTeamLogo:b,altText:G,mutedColor:I.textAltMuted??I.textMuted??G,size:"md"}),r&&/* @__PURE__ */W(S,{style:{color:I.textAltMuted??I.textMuted,fontSize:12,opacity:.7,marginTop:2,textAlign:"left"},children:Xt(r)})]})]}),/* @__PURE__ */W(z,{style:Br.matchupHeaderRight,children:o>0&&/* @__PURE__ */W(z,{style:[Br.answeredBadge,{backgroundColor:I.successBg}],children:/* @__PURE__ */T(S,{style:{color:I.successText,fontSize:12,fontWeight:"500"},children:[o,"/",t.length]})})})]}),n&&/* @__PURE__ */W(z,{children:/* @__PURE__ */W(v,{children:t.map((n,o)=>{const r="yes"===i[n.id],l="no"===i[n.id],a=n.id in i,c=ce&&!a,s=o===t.length-1;/* @__PURE__ */
114
+ return W(z,{style:{paddingHorizontal:16,paddingVertical:U?14:12,backgroundColor:j,borderTopColor:I.border,borderTopWidth:0===o?0:1,opacity:c?.45:1,borderBottomLeftRadius:s?mr:0,borderBottomRightRadius:s?mr:0},children:/* @__PURE__ */T(z,{style:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-start",columnGap:U?16:8,rowGap:U?16:8},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:128,flexDirection:"row",alignItems:"flex-start",gap:8},children:[yr(n,b,e),/* @__PURE__ */W(Sr,{prop:n,colors:I,size:"md",componentById:P})]}),/* @__PURE__ */W(br,{theme:O,value:r?"yes":l?"no":null,onYes:()=>ue(n.id,"yes"),onNo:()=>ue(n.id,"no"),disabled:c})]})},n.id)})})})]},e)})}),0===n.length&&/* @__PURE__ */W(z,{style:Br.centered,children:/* @__PURE__ */W(S,{style:{color:I.textMuted},children:"No propositions available at this time"})}),!y&&/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:I.border,backgroundColor:E,marginHorizontal:U?-24:-16,paddingHorizontal:U?24:16,paddingVertical:U?16:12},children:[/* @__PURE__ */W(wr,{theme:O,variant:"secondary",onPress:h,children:"Back"}),/* @__PURE__ */W(z,{style:{flexDirection:"row",alignItems:"center",gap:U?12:8},children:/* @__PURE__ */W(wr,{theme:O,variant:"primary",disabled:!se,onPress:d,children:"Wager"})})]})]})}var Br=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:mr,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 zr({theme:e,value:t,onYes:n,onNo:o,disabled:r}){const i=e.colors,l=(e,t)=>({paddingVertical:6,paddingHorizontal:14,borderRadius:8,borderWidth:1,backgroundColor:e?t:"transparent",borderColor:e?"transparent":i.border,opacity:r?.5:1}),a=e=>({color:e?"#ffffff":i.text,fontSize:13,fontWeight:"600",lineHeight:16});/* @__PURE__ */
121
115
  return T(z,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[/* @__PURE__ */W(B,{onPress:n,disabled:r,accessibilityState:{selected:"yes"===t},style:l("yes"===t,ae(e)),children:/* @__PURE__ */W(S,{style:a("yes"===t),children:"Yes"})}),/* @__PURE__ */W(B,{onPress:o,disabled:r,accessibilityState:{selected:"no"===t},style:l("no"===t,ce(e)),children:/* @__PURE__ */W(S,{style:a("no"===t),children:"No"})})]})}function Fr({theme:e,value:t}){/* @__PURE__ */
122
116
  return W(z,{style:{paddingVertical:2,paddingHorizontal:8,borderRadius:8,backgroundColor:"yes"===t?ae(e):ce(e),alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(S,{style:{color:"#ffffff",fontSize:10,fontWeight:"700",letterSpacing:.4,textTransform:"uppercase"},children:"yes"===t?"Yes":"No"})})}function vr({theme:e,variant:t,disabled:n,onPress:o,children:r}){const i=e.colors,[l,a]=c(!1),s="primary"===t?{bg:i.buttonPrimary,bgHover:i.buttonPrimaryHover,fg:i.buttonPrimaryText,border:i.buttonPrimary}:{bg:i.buttonSecondary,bgHover:i.buttonSecondaryHover,fg:i.buttonSecondaryText,border:i.border};/* @__PURE__ */
123
- return W(B,{onPress:o,disabled:n,activeOpacity:.85,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:s.border,backgroundColor:l&&!n?s.bgHover:s.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:/* @__PURE__ */W(S,{style:{color:s.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:r})})}function Wr({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:f=!1,addMorePicks:g}){const p=De(i,l),y=p.colors,m=ue(p),b=Ye(p),w=re(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),[L,R]=c(null),[M,D]=c(f),P=e.filter(e=>e.id in t),O=P.length,I=Cn(P),E=y.matchupHeader??fe(p),j=ge(p),N=C?16:12;/* @__PURE__ */
117
+ return W(B,{onPress:o,disabled:n,activeOpacity:.85,...at(()=>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 Wr({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:f=!1,addMorePicks:g}){const p=Pe(i,l),y=p.colors,m=fe(p),b=Ve(p),w=re(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(f),P=e.filter(e=>e.id in t),O=P.length,I=zn(P),E=y.matchupHeader??ge(p),j=pe(p),N=C?16:12;/* @__PURE__ */
124
118
  return T(z,{style:{gap:C?24:16,paddingBottom:64},children:[
125
119
  /* @__PURE__ */T(z,{style:[Tr.section,{padding:C?24:16,backgroundColor:m,borderColor:y.border},v],children:[
126
- /* @__PURE__ */T(B,{onPress:()=>D(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: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:Zt(u)})]})]}),g&&g.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===g.remaining?"Add ":"Add up to ",
120
+ /* @__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:qt(u)})]})]}),g&&g.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===g.remaining?"Add ":"Add up to ",
127
121
  /* @__PURE__ */T(S,{style:{color:y.primary,fontWeight:"700"},children:[g.remaining," more pick",1!==g.remaining?"s":""]}),null!=g.potentialPayout&&g.potentialPayout>0&&/* @__PURE__ */T(S,{children:[" ","to win up to"," ",
128
- /* @__PURE__ */W(S,{style:{color:w,fontWeight:"700"},children:Zt(g.potentialPayout)})," ","with ",g.max," picks"]})]}),/* @__PURE__ */W(B,{onPress:()=>g.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"})})]}),M&&(0===P.length?/* @__PURE__ */W(z,{style:[Tr.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(xr,{matchup:e.key,renderTeamLogo:s,altText:x,mutedColor:y.textAltMuted??y.textMuted??x}),e.props[0].commence_time?/* @__PURE__ */W(S,{style:[Tr.propTime,{color:y.textAltMuted??y.textMuted}],children:Kt(e.props[0].commence_time)}):null]}):null,e.props.map((o,i)=>{const l=t[o.id],a="yes"===l,c="no"===l;/* @__PURE__ */
129
- 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||i>0?1:0,borderTopColor:y.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[yr(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:Tr.rightControls,children:[d?/* @__PURE__ */W(zr,{theme:p,value:a?"yes":c?"no":null,onYes:()=>n(o.id,"yes"),onNo:()=>n(o.id,"no")}):l&&/* @__PURE__ */W(Fr,{theme:p,value:"yes"===l?"yes":"no"}),/* @__PURE__ */W(B,{onPress:()=>{n(o.id,t[o.id]),r()},accessibilityLabel:"Remove selection",onMouseEnter:()=>R(o.id),onMouseLeave:()=>R(e=>e===o.id?null:e),style:[Tr.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:L===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}`))}))]}),
130
- /* @__PURE__ */W(z,{style:[Tr.section,{padding:C?24:16,backgroundColor:m,borderColor:y.border},v],children:/* @__PURE__ */T(z,{style:Tr.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(vr,{theme:p,variant:"secondary",onPress:r,children:"Back"}),/* @__PURE__ */W(vr,{theme:p,variant:"primary",disabled:0===P.length,onPress:o,children:"Place bet"})]})]})}var Tr=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 Ar({game:t,propositions:n,selections:o,onToggleSelection:r,onRemoveSelection:i,onSubmit:l,onBack:a,loading:c,error:s,expectedCorrect:h,onExpectedCorrectChange:u,betAmount:f,onBetAmountChange:g,theme:p,colorScheme:y,hideActions:m=!1,winningCounts:w,payouts:x,renderTeamLogo:k,showCustomAmount:L=!1,betAmountLocked:R=!1,betAmountLockedNote:M,canSubmit:D,authenticated:P=!0,userBalance:O,onRecharge:I,boostBanner:E}){const j=De(p,y),N=j.colors,G=ue(j),Y=Ye(j),V=re(j),U=ie(j),Z=le(j),K=N.textAlt??N.text,{width:q}=F(),X=q>=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]=f*e;const oe=x??ne,se=oe[h]??0,de=rn(t),he=de.enabled&&h===J,[pe,ye]=e.useState(null),[me,be]=e.useState(!0),[we,xe]=e.useState(!1),ke=c||f<_||!1===D,Se=null!=O&&f>O,Ce=m&&!!l&&P,Be=o?n.filter(e=>e.id in o):n,ze=Cn(Be),Fe=N.matchupHeader??fe(j),ve=ge(j),We=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),Te=1===We.length?We[0].correct:null;e.useEffect(()=>{null!==Te&&h!==Te&&u(Te)},[Te]);const Ae={shadowColor:"#000",shadowOpacity:Q?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};/* @__PURE__ */
122
+ /* @__PURE__ */W(S,{style:{color:w,fontWeight:"700"},children:qt(g.potentialPayout)})," ","with ",g.max," picks"]})]}),/* @__PURE__ */W(B,{onPress:()=>g.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:[Tr.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(xr,{matchup:e.key,renderTeamLogo:s,altText:x,mutedColor:y.textAltMuted??y.textMuted??x}),e.props[0].commence_time?/* @__PURE__ */W(S,{style:[Tr.propTime,{color:y.textAltMuted??y.textMuted}],children:Xt(e.props[0].commence_time)}):null]}):null,e.props.map((o,i)=>{const l=t[o.id],a="yes"===l,c="no"===l;/* @__PURE__ */
123
+ 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||i>0?1:0,borderTopColor:y.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[yr(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:Tr.rightControls,children:[d?/* @__PURE__ */W(zr,{theme:p,value:a?"yes":c?"no":null,onYes:()=>n(o.id,"yes"),onNo:()=>n(o.id,"no")}):l&&/* @__PURE__ */W(Fr,{theme:p,value:"yes"===l?"yes":"no"}),/* @__PURE__ */W(B,{onPress:()=>{n(o.id,t[o.id]),r()},accessibilityLabel:"Remove selection",...at(()=>L(o.id),()=>L(e=>e===o.id?null:e)),style:[Tr.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}`))}))]}),
124
+ /* @__PURE__ */W(z,{style:[Tr.section,{padding:C?24:16,backgroundColor:m,borderColor:y.border},v],children:/* @__PURE__ */T(z,{style:Tr.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(vr,{theme:p,variant:"secondary",onPress:r,children:"Back"}),/* @__PURE__ */W(vr,{theme:p,variant:"primary",disabled:0===P.length,onPress:o,children:"Place bet"})]})]})}var Tr=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 Ar({game:t,propositions:n,selections:o,onToggleSelection:r,onRemoveSelection:i,onSubmit:l,onBack:a,loading:c,error:s,expectedCorrect:h,onExpectedCorrectChange:u,betAmount:f,onBetAmountChange:g,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=Pe(p,y),N=j.colors,G=fe(j),Y=Ve(j),V=re(j),U=ie(j),Z=le(j),K=N.textAlt??N.text,{width:q}=F(),X=q>=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]=f*e;const oe=x??ne,se=oe[h]??0,de=an(t),he=de.enabled&&h===J,[ue,ye]=e.useState(null),[me,be]=e.useState(!0),[we,xe]=e.useState(!1),ke=c||f<_||!1===M,Se=null!=O&&f>O,Ce=m&&!!l&&P,Be=o?n.filter(e=>e.id in o):n,ze=zn(Be),Fe=N.matchupHeader??ge(j),ve=pe(j),We=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),Te=1===We.length?We[0].correct:null;e.useEffect(()=>{null!==Te&&h!==Te&&u(Te)},[Te]);const Ae={shadowColor:"#000",shadowOpacity:Q?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};/* @__PURE__ */
131
125
  return T(z,{style:{gap:X?16:12,paddingBottom:64},children:[
132
- /* @__PURE__ */T(z,{style:[Lr.section,Ae,{padding:X?20:16,backgroundColor:G,borderColor:N.border}],children:[
133
- /* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(B,{onPress:()=>be(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:me},accessibilityLabel:me?"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:me?"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:me?"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:[Be.length," pick",1!==Be.length?"s":""]})})]}),!me&&/* @__PURE__ */W(S,{style:{color:N.textMuted,fontSize:12,marginTop:8},children:"Tap to show your picks"}),me&&/* @__PURE__ */W(z,{style:{gap:8,marginTop:12},children:ze.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:Fe},children:[/* @__PURE__ */W(xr,{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:Kt(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__ */
134
- 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:N.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[yr(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__ */T(z,{style:{flexDirection:"row",gap:8,flexShrink:0,alignItems:"center"},children:[/* @__PURE__ */W(B,{onPress:()=>r(t.id,"yes"),accessibilityState:{selected:a},style:{paddingHorizontal:10,paddingVertical:3,alignItems:"center",justifyContent:"center",borderRadius:8,backgroundColor:a?ae(j):"transparent",borderWidth:1,borderColor:a?"transparent":N.border},children:/* @__PURE__ */W(S,{style:{color:a?"#ffffff":N.text,fontSize:11,fontWeight:"600"},children:"Yes"})}),/* @__PURE__ */W(B,{onPress:()=>r(t.id,"no"),accessibilityState:{selected:c},style:{paddingHorizontal:10,paddingVertical:3,alignItems:"center",justifyContent:"center",borderRadius:8,backgroundColor:c?ce(j):"transparent",borderWidth:1,borderColor:c?"transparent":N.border},children:/* @__PURE__ */W(S,{style:{color:c?"#ffffff":N.text,fontSize:11,fontWeight:"600"},children:"No"})})]}):l?/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:8,flexShrink:0,backgroundColor:"yes"===l?ae(j):ce(j)},children:/* @__PURE__ */W(S,{style:{color:"#ffffff",fontSize:10,fontWeight:"700",letterSpacing:.4,textTransform:"uppercase"},children:"yes"===l?"Yes":"No"})}):null,me&&i&&/* @__PURE__ */W(b,{onPress:()=>{l&&r?.(t.id,l),i(t.id)},onMouseEnter:()=>ye(t.id),onMouseLeave:()=>ye(null),accessibilityRole:"button",accessibilityLabel:"Remove selection",style:{flexShrink:0,width:44,height:44,borderRadius:999,alignItems:"center",justifyContent:"center",backgroundColor:pe===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:pe===t.id?"#fff":N.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})]},t.id)})]},e.key??`solo-${e.props[0].id}`))}),E?/* @__PURE__ */W(z,{style:{marginTop:8},children:E}):null]}),Ce&&/* @__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:[Lr.section,Ae,{padding:X?24:16,backgroundColor:G,borderColor:N.border}],children:[
135
- /* @__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:Se?N.error:N.success},children:Zt(O)})]})]}),Se&&/* @__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 ",Zt(f)," exceeds your available ",Zt(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,R?{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:M??"Stake is set for this ticket."}),/* @__PURE__ */W(S,{style:{fontSize:18,fontWeight:"700",color:V,fontFamily:Y},children:Zt(f)})]}:{style:{gap:16},children:[L&&/* @__PURE__ */T(z,{children:[
126
+ /* @__PURE__ */T(z,{style:[Rr.section,Ae,{padding:X?20:16,backgroundColor:G,borderColor:N.border}],children:[
127
+ /* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[/* @__PURE__ */T(B,{onPress:()=>be(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:me},accessibilityLabel:me?"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:me?"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:me?"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:[Be.length," pick",1!==Be.length?"s":""]})})]}),!me&&/* @__PURE__ */W(S,{style:{color:N.textMuted,fontSize:12,marginTop:8},children:"Tap to show your picks"}),me&&/* @__PURE__ */W(z,{style:{gap:8,marginTop:12},children:ze.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:Fe},children:[/* @__PURE__ */W(xr,{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:Xt(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__ */
128
+ 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:N.border},children:[/* @__PURE__ */T(z,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[yr(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__ */T(z,{style:{flexDirection:"row",gap:8,flexShrink:0,alignItems:"center"},children:[/* @__PURE__ */W(B,{onPress:()=>r(t.id,"yes"),accessibilityState:{selected:a},style:{paddingHorizontal:10,paddingVertical:3,alignItems:"center",justifyContent:"center",borderRadius:8,backgroundColor:a?ae(j):"transparent",borderWidth:1,borderColor:a?"transparent":N.border},children:/* @__PURE__ */W(S,{style:{color:a?"#ffffff":N.text,fontSize:11,fontWeight:"600"},children:"Yes"})}),/* @__PURE__ */W(B,{onPress:()=>r(t.id,"no"),accessibilityState:{selected:c},style:{paddingHorizontal:10,paddingVertical:3,alignItems:"center",justifyContent:"center",borderRadius:8,backgroundColor:c?ce(j):"transparent",borderWidth:1,borderColor:c?"transparent":N.border},children:/* @__PURE__ */W(S,{style:{color:c?"#ffffff":N.text,fontSize:11,fontWeight:"600"},children:"No"})})]}):l?/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:8,flexShrink:0,backgroundColor:"yes"===l?ae(j):ce(j)},children:/* @__PURE__ */W(S,{style:{color:"#ffffff",fontSize:10,fontWeight:"700",letterSpacing:.4,textTransform:"uppercase"},children:"yes"===l?"Yes":"No"})}):null,me&&i&&/* @__PURE__ */W(b,{onPress:()=>{l&&r?.(t.id,l),i(t.id)},...at(()=>ye(t.id),()=>ye(null)),accessibilityRole:"button",accessibilityLabel:"Remove selection",style:{flexShrink:0,width:44,height:44,borderRadius:999,alignItems:"center",justifyContent:"center",backgroundColor:ue===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:ue===t.id?"#fff":N.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})]},t.id)})]},e.key??`solo-${e.props[0].id}`))}),E?/* @__PURE__ */W(z,{style:{marginTop:8},children:E}):null]}),Ce&&/* @__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:[Rr.section,Ae,{padding:X?24:16,backgroundColor:G,borderColor:N.border}],children:[
129
+ /* @__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:Se?N.error:N.success},children:qt(O)})]})]}),Se&&/* @__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 ",qt(f)," exceeds your available ",qt(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:qt(f)})]}:{style:{gap:16},children:[R&&/* @__PURE__ */T(z,{children:[
136
130
  /* @__PURE__ */W(S,{style:{fontSize:X?14:12,fontWeight:"600",color:U,marginBottom:8},children:"Entry amount"}),
137
131
  /* @__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:f?String(f):"",onChangeText:e=>{if(""===e)return void g(0);const t=Number(e);if(!Number.isFinite(t))return;const n=Math.max(0,Math.round(100*t)/100);g(null!==ee?Math.min(n,ee):n)},onFocus:()=>xe(!0),onBlur:()=>xe(!1),style:{paddingLeft:32,paddingRight:16,paddingVertical:12,borderWidth:1,borderRadius:8,fontSize:18,fontWeight:"600",borderColor:we?N.borderFocus??N.primary:N.border,color:K,backgroundColor:N.backgroundAlt},placeholderTextColor:N.textMuted})]}),
138
- /* @__PURE__ */T(S,{style:{fontSize:12,marginTop:6,color:N.textMuted},children:["Minimum bet: ",Zt(_),null!==ee?` · Maximum: ${Zt(ee)}`:""]}),f>0&&f<_&&/* @__PURE__ */T(S,{style:{fontSize:12,marginTop:4,color:N.error},children:["Bet amount must be at least ",Zt(_)]})]}),/* @__PURE__ */T(z,{children:[(L||f>0)&&/* @__PURE__ */T(z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[L?/* @__PURE__ */W(S,{style:{fontSize:X?14:12,fontWeight:"600",color:U},children:"Add to bet"}):/* @__PURE__ */W(z,{}),f>0&&/* @__PURE__ */W(B,{onPress:()=>g(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&&f>=ee;/* @__PURE__ */
139
- return W(B,{onPress:()=>{const t=f+e;g(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:["+",Zt(e)]})},e)})})]})]})]}),/* @__PURE__ */W(z,{style:[Lr.section,Ae,{padding:X?20:16,backgroundColor:G,borderColor:N.border}],children:(()=>{const e=m&&!!l,t=/* @__PURE__ */T(v,{children:[
140
- /* @__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:Z,fontSize:14,fontWeight:"600"},children:Zt(f)})]}),se>0&&/* @__PURE__ */T(z,{style:{flexDirection:"row",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:Zt(se)}),he&&/* @__PURE__ */W(S,{style:{color:N.warning,fontSize:12,marginLeft:4},children:"+ Jackpot"})]})]}),de.enabled&&/* @__PURE__ */T(z,{style:[Lr.jackpotBanner,{backgroundColor:`${N.warning}08`,borderColor:`${N.warning}25`}],children:[/* @__PURE__ */T(S,{style:{color:N.warning,fontSize:12,fontWeight:"600"},children:["★ ",de.progressive?"Progressive Jackpot":"Jackpot"]}),/* @__PURE__ */W(S,{style:{color:N.warning,fontSize:14,fontWeight:"700"},children:de.progressive?de.amount>0?Zt(de.amount):de.limit>0?`Up to ${Zt(de.limit)}`:"Progressive":Zt(de.amount)})]})]});return e?/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"stretch",gap:16},children:[
132
+ /* @__PURE__ */T(S,{style:{fontSize:12,marginTop:6,color:N.textMuted},children:["Minimum bet: ",qt(_),null!==ee?` · Maximum: ${qt(ee)}`:""]}),f>0&&f<_&&/* @__PURE__ */T(S,{style:{fontSize:12,marginTop:4,color:N.error},children:["Bet amount must be at least ",qt(_)]})]}),/* @__PURE__ */T(z,{children:[(R||f>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,{}),f>0&&/* @__PURE__ */W(B,{onPress:()=>g(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&&f>=ee;/* @__PURE__ */
133
+ return W(B,{onPress:()=>{const t=f+e;g(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:["+",qt(e)]})},e)})})]})]})]}),/* @__PURE__ */W(z,{style:[Rr.section,Ae,{padding:X?20:16,backgroundColor:G,borderColor:N.border}],children:(()=>{const e=m&&!!l,t=/* @__PURE__ */T(v,{children:[
134
+ /* @__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:Z,fontSize:14,fontWeight:"600"},children:qt(f)})]}),se>0&&/* @__PURE__ */T(z,{style:{flexDirection:"row",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:qt(se)}),he&&/* @__PURE__ */W(S,{style:{color:N.warning,fontSize:12,marginLeft:4},children:"+ Jackpot"})]})]}),de.enabled&&/* @__PURE__ */T(z,{style:[Rr.jackpotBanner,{backgroundColor:`${N.warning}08`,borderColor:`${N.warning}25`}],children:[/* @__PURE__ */T(S,{style:{color:N.warning,fontSize:12,fontWeight:"600"},children:["★ ",de.progressive?"Progressive Jackpot":"Jackpot"]}),/* @__PURE__ */W(S,{style:{color:N.warning,fontSize:14,fontWeight:"700"},children:de.progressive?de.amount>0?qt(de.amount):de.limit>0?`Up to ${qt(de.limit)}`:"Progressive":qt(de.amount)})]})]});return e?/* @__PURE__ */T(z,{style:{flexDirection:"row",alignItems:"stretch",gap:16},children:[
141
135
  /* @__PURE__ */W(z,{style:{flex:1,minWidth:0},children:t}),
142
136
  /* @__PURE__ */W(z,{style:{width:1,alignSelf:"stretch",backgroundColor:N.border}}),
143
- /* @__PURE__ */W(B,{onPress:l,disabled:ke,accessibilityState:{disabled:ke,busy:!!c},activeOpacity:.7,style:{flexShrink:0,paddingVertical:12,paddingHorizontal:20,borderRadius:8,backgroundColor:N.buttonPrimary,opacity:ke?.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:Zt(f)})]})})]}):t})()})]}):/* @__PURE__ */T(z,{style:[Lr.section,Ae,{padding:X?24:16,backgroundColor:G,borderColor:N.border}],children:[
137
+ /* @__PURE__ */W(B,{onPress:l,disabled:ke,accessibilityState:{disabled:ke,busy:!!c},activeOpacity:.7,style:{flexShrink:0,paddingVertical:12,paddingHorizontal:20,borderRadius:8,backgroundColor:N.buttonPrimary,opacity:ke?.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:qt(f)})]})})]}):t})()})]}):/* @__PURE__ */T(z,{style:[Rr.section,Ae,{padding:X?24:16,backgroundColor:G,borderColor:N.border}],children:[
144
138
  /* @__PURE__ */W(S,{style:{fontSize:X?18:16,fontWeight:"600",color:V,fontFamily:Y},children:"Log in to place this entry"}),
145
139
  /* @__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."}),
146
- /* @__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:[Lr.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(lt,{theme:j,variant:"secondary",disabled:c,onPress:a,children:"Back"}),/* @__PURE__ */W(B,{onPress:l,disabled:ke,accessibilityState:{disabled:ke,busy:!!c},activeOpacity:.7,style:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,paddingHorizontal:24,paddingVertical:10,borderRadius:8,backgroundColor:N.buttonPrimary,opacity:ke?.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 (${Zt(f)})`})})]})]})}var Lr=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}}),Rr="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 Mr({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:f,accessibilityLabel:g}){const[p,y]=c(!1),m=!!f,b=o||r,w=m&&p?1.12:b?1.1:1;/* @__PURE__ */
147
- return T(B,{onPress:f,disabled:!m,activeOpacity:.7,accessibilityRole:"button",accessibilityLabel:g,accessibilityState:{disabled:!m,selected:i},onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),style:[Pr.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&&Pr.circleWinning,m&&p&&Pr.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:Rr,fill:s,stroke:s,strokeWidth:1})})}),
148
- /* @__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:Zt(u)})]})}function Dr({game:e,totalSelections:t,expectedCorrect:n,onExpectedCorrectChange:o,theme:r=be,colorWinning:i,colorNone:l,winningCounts:a,payouts:c}){const s=r.colors,{width:d}=F(),h=d>=640,u=i??s.payoutWinning,f=l??s.payoutNone,g=rn(e),p=h?48:40;/* @__PURE__ */
140
+ /* @__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:[Rr.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(ct,{theme:j,variant:"secondary",disabled:c,onPress:a,children:"Back"}),/* @__PURE__ */W(B,{onPress:l,disabled:ke,accessibilityState:{disabled:ke,busy:!!c},activeOpacity:.7,style:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,paddingHorizontal:24,paddingVertical:10,borderRadius:8,backgroundColor:N.buttonPrimary,opacity:ke?.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 (${qt(f)})`})})]})]})}var Rr=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}}),Lr="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 Dr({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:f,accessibilityLabel:g}){const[p,y]=c(!1),m=!!f,b=o||r,w=m&&p?1.12:b?1.1:1;/* @__PURE__ */
141
+ return T(B,{onPress:f,disabled:!m,activeOpacity:.7,accessibilityRole:"button",accessibilityLabel:g,accessibilityState:{disabled:!m,selected:i},...at(()=>y(!0),()=>y(!1)),style:[Pr.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&&Pr.circleWinning,m&&p&&Pr.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:Lr,fill:s,stroke:s,strokeWidth:1})})}),
142
+ /* @__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 Mr({game:e,totalSelections:t,expectedCorrect:n,onExpectedCorrectChange:o,theme:r=we,colorWinning:i,colorNone:l,winningCounts:a,payouts:c}){const s=r.colors,{width:d}=F(),h=d>=640,u=i??s.payoutWinning,f=l??s.payoutNone,g=an(e),p=h?48:40;/* @__PURE__ */
149
143
  return T(z,{style:Pr.container,children:[
150
144
  /* @__PURE__ */W(S,{style:[Pr.title,{color:s.textMuted}],children:"Payout Visualization"}),g.enabled&&/* @__PURE__ */T(z,{style:[Pr.jackpotBanner,{borderColor:`${s.warning}30`}],children:[
151
- /* @__PURE__ */T(A,{style:k.absoluteFill,width:"100%",height:"100%",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:s.warning,stopOpacity:.094}),/* @__PURE__ */W(E,{offset:"100%",stopColor:s.warning,stopOpacity:.031})]})}),/* @__PURE__ */W(I,{x:"0",y:"0",width:"100%",height:"100%",fill:"url(#payout-jackpot-grad)"})]}),
152
- /* @__PURE__ */W(A,{width:16,height:16,viewBox:"0 0 24 24",style:{flexShrink:0},children:/* @__PURE__ */W(H,{d:Rr,fill:s.warning})}),
153
- /* @__PURE__ */W(S,{style:[Pr.jackpotText,{color:s.warning}],children:g.progressive?g.amount>0?`Progressive Jackpot: ${Zt(g.amount)}${g.limit>0?` (up to ${Zt(g.limit)})`:""} for a perfect pick!`:g.limit>0?`Progressive Jackpot — up to ${Zt(g.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${Zt(g.amount)} for a perfect pick!`})]}),
154
- /* @__PURE__ */W(z,{style:[Pr.circleGrid,{gap:h?8:6}],children:Array.from({length:t+1},(e,r)=>{const i=a.includes(r),l=c[r]??0,d=r===t,y=g.enabled&&d,m=y?s.warning:i?u:f,b=r===n,w=y?g.progressive?`${r} correct wins progressive jackpot${g.amount>0?` (currently ${Zt(g.amount)})`:""}${g.limit>0?` up to ${Zt(g.limit)}`:""} plus ${Zt(l)}`:`${r} correct wins jackpot ${Zt(g.amount)} plus ${Zt(l)}`:i?`${r} correct wins ${Zt(l)}`:l>0?`${r} correct pays ${Zt(l)} but does not win`:`${r} correct — no payout`,x=o?`${w}. Tap to select`:w;/* @__PURE__ */
155
- return W(Mr,{index:r,size:p,wide:h,isWinning:i,isJackpot:y,isSelected:b,bgColor:m,borderFallback:s.border,warning:s.warning,primary:s.primary,textMuted:s.textMuted,payout:l,onPress:o?()=>o(r):void 0,accessibilityLabel:x},r)})}),
145
+ /* @__PURE__ */T(A,{style:k.absoluteFill,width:"100%",height:"100%",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:s.warning,stopOpacity:.094}),/* @__PURE__ */W(E,{offset:"100%",stopColor:s.warning,stopOpacity:.031})]})}),/* @__PURE__ */W(I,{x:"0",y:"0",width:"100%",height:"100%",fill:"url(#payout-jackpot-grad)"})]}),
146
+ /* @__PURE__ */W(A,{width:16,height:16,viewBox:"0 0 24 24",style:{flexShrink:0},children:/* @__PURE__ */W(H,{d:Lr,fill:s.warning})}),
147
+ /* @__PURE__ */W(S,{style:[Pr.jackpotText,{color:s.warning}],children:g.progressive?g.amount>0?`Progressive Jackpot: ${qt(g.amount)}${g.limit>0?` (up to ${qt(g.limit)})`:""} for a perfect pick!`:g.limit>0?`Progressive Jackpot — up to ${qt(g.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${qt(g.amount)} for a perfect pick!`})]}),
148
+ /* @__PURE__ */W(z,{style:[Pr.circleGrid,{gap:h?8:6}],children:Array.from({length:t+1},(e,r)=>{const i=a.includes(r),l=c[r]??0,d=r===t,y=g.enabled&&d,m=y?s.warning:i?u:f,b=r===n,w=y?g.progressive?`${r} correct wins progressive jackpot${g.amount>0?` (currently ${qt(g.amount)})`:""}${g.limit>0?` up to ${qt(g.limit)}`:""} plus ${qt(l)}`:`${r} correct wins jackpot ${qt(g.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__ */
149
+ return W(Dr,{index:r,size:p,wide:h,isWinning:i,isJackpot:y,isSelected:b,bgColor:m,borderFallback:s.border,warning:s.warning,primary:s.primary,textMuted:s.textMuted,payout:l,onPress:o?()=>o(r):void 0,accessibilityLabel:x},r)})}),
156
150
  /* @__PURE__ */T(S,{style:[Pr.expectedText,{color:s.textMuted}],children:["Your expected: ",/* @__PURE__ */T(S,{style:Pr.expectedBold,children:[n," correct"]})]})]})}var Pr=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 Hr({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,f=.85*a,g=1.8*f,p=f/2,y='Manrope, Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif',m=a,w=g-.18*f*2,x=f-.05*f*2,k=/* @__PURE__ */T(v,{children:[
157
151
  /* @__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"})]}),
158
- /* @__PURE__ */W(z,{accessible:!0,accessibilityRole:"image",accessibilityLabel:t,style:{width:g,height:f,borderRadius:p,backgroundColor:h,alignItems:"center",justifyContent:"center",flexShrink:0,transform:[{translateY:.06*-a}]},children:/* @__PURE__ */W(Tn,{iconUrl:e,width:w,height:x,iconColor:r,accentColor:i})}),
152
+ /* @__PURE__ */W(z,{accessible:!0,accessibilityRole:"image",accessibilityLabel:t,style:{width:g,height:f,borderRadius:p,backgroundColor:h,alignItems:"center",justifyContent:"center",flexShrink:0,transform:[{translateY:.06*-a}]},children:/* @__PURE__ */W(Rn,{iconUrl:e,width:w,height:x,iconColor:r,accentColor:i})}),
159
153
  /* @__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 Or({color:e,style:t}){/* @__PURE__ */
160
154
  return W(z,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function Ir({colors:e}){const t=e.selectionCard??e.backgroundAlt;/* @__PURE__ */
161
- 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(Or,{color:e.textMuted,style:{height:14,width:68}}),/* @__PURE__ */W(Or,{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(Or,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),/* @__PURE__ */W(Or,{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(Or,{color:e.textMuted,style:{height:14,width:40}}),/* @__PURE__ */W(Or,{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(Or,{color:e.textMuted,style:{height:14,width:"88%"}}),/* @__PURE__ */W(Or,{color:e.textMuted,style:{height:12,width:"70%"}})]}),/* @__PURE__ */W(Or,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]},n))})]})}function Er({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:i,demoEntries:s,demoGames:d,demoPropositions:h,onSelectEntry:u,theme:f,colorScheme:g,renderTeamLogo:p,filterSport:y}){const m=De(f,g),b=!!(s&&d&&h),w=m.colors,x=Ye(m),[k,C]=c("pending"),[F,v]=c([]),L=l(()=>new Ho({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:R,loading:M,error:D,refetch:P}=jo(L,{user_id:i},{skip:b}),{games:O,loading:I,error:E}=Oo(L,void 0,{skip:b}),{propositions:j,loading:N,error:G}=Io(L,void 0,{skip:b}),Y=b?s:R,V=b?d:O,U=b?h:j,Z=!b&&(M||I||N),K=b?null:D||E||G,q=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 q)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,q,F]),J=a(/* @__PURE__ */new Set);r(()=>{if(Z||b)return;const e=[];for(const n of q)for(const t of n.proposition_ids??[])Q.has(t)||J.current.has(t)||(e.push(t),J.current.add(t));if(0===e.length)return;let t=!1;return(async()=>{try{const n=await L.getPropositionsByIds(e);!t&&n.length>0&&v(e=>[...e,...n])}catch{}})(),()=>{t=!0}},[q,Q,Z,b,L]);const $=l(()=>y?q.filter(e=>{const t=e.proposition_ids??[];return 0===t.length||t.some(t=>(Q.get(t)??e.propositions?.find(e=>e.id===t))?.sport===y)}):q,[q,y,Q]),_=l(()=>$.filter(e=>Vt(e.pending)),[$]),ee=l(()=>$.filter(e=>!Vt(e.pending)),[$]),te="pending"===k?_:ee;return Z?/* @__PURE__ */W(z,{style:Nr.container,accessibilityLabel:"Loading entries",children:/* @__PURE__ */W(Ir,{colors:pe(m)})}):K?/* @__PURE__ */W(z,{style:Nr.container,children:/* @__PURE__ */T(z,{style:[Nr.errorBanner,{backgroundColor:w.errorBg,borderColor:w.error}],children:[/* @__PURE__ */W(S,{style:{color:w.errorText},children:K}),/* @__PURE__ */W(B,{onPress:P,style:Nr.retryButton,children:/* @__PURE__ */W(S,{style:{color:w.error,textDecorationLine:"underline",fontSize:14,fontWeight:"500"},children:"Try again"})})]})}):/* @__PURE__ */T(z,{style:Nr.container,children:[
155
+ 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(Or,{color:e.textMuted,style:{height:14,width:68}}),/* @__PURE__ */W(Or,{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(Or,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),/* @__PURE__ */W(Or,{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(Or,{color:e.textMuted,style:{height:14,width:40}}),/* @__PURE__ */W(Or,{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(Or,{color:e.textMuted,style:{height:14,width:"88%"}}),/* @__PURE__ */W(Or,{color:e.textMuted,style:{height:12,width:"70%"}})]}),/* @__PURE__ */W(Or,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]},n))})]})}function Er({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:i,demoEntries:s,demoGames:d,demoPropositions:h,onSelectEntry:u,theme:f,colorScheme:g,renderTeamLogo:p,filterSport:y}){const m=Pe(f,g),b=!!(s&&d&&h),w=m.colors,x=Ve(m),[k,C]=c("pending"),[F,v]=c([]),R=l(()=>new Xo({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:L,loading:D,error:M,refetch:P}=_o(R,{user_id:i},{skip:b}),{games:O,loading:I,error:E}=Qo(R,void 0,{skip:b}),{propositions:j,loading:N,error:G}=Jo(R,void 0,{skip:b}),Y=b?s:L,V=b?d:O,U=b?h:j,Z=!b&&(D||I||N),K=b?null:M||E||G,q=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 q)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,q,F]),J=a(/* @__PURE__ */new Set);r(()=>{if(Z||b)return;const e=[];for(const n of q)for(const t of n.proposition_ids??[])Q.has(t)||J.current.has(t)||(e.push(t),J.current.add(t));if(0===e.length)return;let t=!1;return(async()=>{try{const n=await R.getPropositionsByIds(e);!t&&n.length>0&&v(e=>[...e,...n])}catch{}})(),()=>{t=!0}},[q,Q,Z,b,R]);const $=l(()=>y?q.filter(e=>{const t=e.proposition_ids??[];return 0===t.length||t.some(t=>(Q.get(t)??e.propositions?.find(e=>e.id===t))?.sport===y)}):q,[q,y,Q]),_=l(()=>$.filter(e=>Zt(e.pending)),[$]),ee=l(()=>$.filter(e=>!Zt(e.pending)),[$]),te="pending"===k?_:ee;return Z?/* @__PURE__ */W(z,{style:Nr.container,accessibilityLabel:"Loading entries",children:/* @__PURE__ */W(Ir,{colors:ye(m)})}):K?/* @__PURE__ */W(z,{style:Nr.container,children:/* @__PURE__ */T(z,{style:[Nr.errorBanner,{backgroundColor:w.errorBg,borderColor:w.error}],children:[/* @__PURE__ */W(S,{style:{color:w.errorText},children:K}),/* @__PURE__ */W(B,{onPress:P,style:Nr.retryButton,children:/* @__PURE__ */W(S,{style:{color:w.error,textDecorationLine:"underline",fontSize:14,fontWeight:"500"},children:"Try again"})})]})}):/* @__PURE__ */T(z,{style:Nr.container,children:[
162
156
  /* @__PURE__ */W(z,{style:[Nr.tabBar,{borderBottomColor:w.border}],children:["pending","completed"].map(e=>{const t=k===e,n="pending"===e?_.length:ee.length;/* @__PURE__ */
163
157
  return T(B,{onPress:()=>C(e),accessibilityRole:"tab",accessibilityState:{selected:t},style:[Nr.tab,{borderBottomColor:t?w.primary:"transparent"}],children:[/* @__PURE__ */W(S,{style:[Nr.tabLabel,{color:t?w.primary:w.textMuted,fontFamily:x}],children:"pending"===e?"Pending":"Completed"}),/* @__PURE__ */W(z,{style:[Nr.tabBadge,{backgroundColor:t?`${w.primary}15`:w.backgroundAlt}],children:/* @__PURE__ */W(S,{style:[Nr.tabBadgeText,{color:t?w.primary:w.textMuted}],children:n})})]},e)})}),0===te.length&&/* @__PURE__ */T(z,{style:Nr.emptyState,children:[
164
158
  /* @__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"})})}),
165
159
  /* @__PURE__ */W(S,{style:[Nr.emptyTitle,{color:w.text}],children:"pending"===k?"No pending entries":"No completed entries"}),
166
160
  /* @__PURE__ */W(S,{style:[Nr.emptySubtitle,{color:w.textMuted}],children:"pending"===k?"Entries awaiting results will appear here":"Settled entries will appear here"})]}),
167
- /* @__PURE__ */W(z,{style:Nr.entryList,children:te.map(e=>/* @__PURE__ */W(jr,{entry:e,game:X.get(e.game_id),propositionsById:Q,onSelect:u,theme:m,renderTeamLogo:p},e.id))})]})}function jr({entry:e,game:t,propositionsById:n,onSelect:o,theme:r,renderTeamLogo:i}){const a=r.colors,s=ue(r),d=Ye(r),h="dark"===r.colorScheme,u=e.proposition_ids??[],f=l(()=>u.map(e=>n.get(e)).filter(Boolean),[u,n]),g=u.length,[p,y]=c(!1),m=g>0,b=l(()=>{const t=/* @__PURE__ */new Map;for(const n of e.propositions??[])t.set(n.id,n);return t},[e.propositions]),w=t=>{const o=e.selections?.[t];return null!=o?o:b.get(t)?.user_prediction??n.get(t)?.user_prediction},x=f.filter(e=>null!=e.result&&!e.is_voided).length,k=f.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=Vt(e.pending),L=!F&&Yt(e.winning)>0,R=e.payout_status,M="fulfilled"===R&&L,D=F?"Pending":M?"Won — pay due":"paid_out"===R&&L?"Paid":L?"Won":"Lost",P=F||M?a.warningBg:L?a.successBg:a.errorBg,O=F||M?a.warningText:L?a.successText:a.errorText,I=C&&x>0?`${k}/${g} correct`:g>0?`${g} pick${1!==g?"s":""}`:null,E=C&&x>0?k>0?a.success:a.error:a.textMuted,j=/* @__PURE__ */T(z,{style:Nr.cardHeader,children:[/* @__PURE__ */T(z,{style:Nr.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(Hr,{iconUrl:Xe(t),gameName:n,height:18,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:r.brand?.accent}):/* @__PURE__ */W(S,{style:[Nr.cardGameName,{color:a.text,fontFamily:d}],numberOfLines:1,children:n})})(),/* @__PURE__ */T(z,{style:Nr.metaRow,children:[(e.created_at||e.entry_date)&&/* @__PURE__ */W(S,{style:[Nr.metaText,{color:a.textMuted}],children:Kt(e.created_at||e.entry_date)}),I&&/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(S,{style:[Nr.metaDot,{color:a.textMuted}],children:"·"}),/* @__PURE__ */W(S,{style:[Nr.metaText,{fontWeight:"500",color:E}],children:I})]})]})]}),/* @__PURE__ */T(z,{style:Nr.cardHeaderRight,children:[
168
- /* @__PURE__ */T(z,{style:Nr.amounts,children:[Yt(e.bet_amount)>0&&/* @__PURE__ */W(S,{style:[Nr.betLabel,{color:a.textMuted}],children:Zt(Yt(e.bet_amount))}),!F&&Yt(e.winning)>0&&/* @__PURE__ */T(z,{style:{alignItems:"flex-end"},children:[/* @__PURE__ */W(S,{style:[Nr.winAmount,{color:a.success}],children:Zt(Yt(e.winning))}),(e.payout_jackpot??0)>0&&/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"400",color:a.textMuted},children:["incl. ",Zt(Yt(e.payout_jackpot))," jackpot"]})]})]}),
169
- /* @__PURE__ */W(z,{style:[Nr.statusPill,{backgroundColor:P}],children:/* @__PURE__ */W(S,{style:[Nr.statusText,{color:O}],children:D})}),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__ */
170
- return T(z,{style:[Nr.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:f})},activeOpacity:.7,disabled:!m&&!o,accessibilityLabel:`Entry #${e.id}`,accessibilityState:m?{expanded:p}:void 0,children:j}),p&&g>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:[Nr.propRow,{borderTopColor:a.border,borderTopWidth:1}],children:[/* @__PURE__ */W(z,{style:Nr.propInfo,children:/* @__PURE__ */T(S,{style:{fontSize:14,color:a.textMuted},children:["Loading proposition #",t,"…"]})}),null!=l&&/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:8,backgroundColor:"yes"===l?ae(r):ce(r)},children:/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",color:"#ffffff",letterSpacing:.4,textTransform:"uppercase"},children:Ut(l)})})]},t);const c=o.result,s=null!=c,d=!!o.is_voided,h=s&&!d&&null!=l&&l===c;let u,f,g;d?(u="Void",f=`${a.textMuted}20`,g=a.textMuted):s?h?(u="Won",f=a.successBg,g=a.successText):(u="Lost",f=a.errorBg,g=a.errorText):(u="Pending",f=a.warningBg,g=a.warningText);const p=$t(o)?void 0:o.home_team;/* @__PURE__ */
161
+ /* @__PURE__ */W(z,{style:Nr.entryList,children:te.map(e=>/* @__PURE__ */W(jr,{entry:e,game:X.get(e.game_id),propositionsById:Q,onSelect:u,theme:m,renderTeamLogo:p},e.id))})]})}function jr({entry:e,game:t,propositionsById:n,onSelect:o,theme:r,renderTeamLogo:i}){const a=r.colors,s=fe(r),d=Ve(r),h="dark"===r.colorScheme,u=e.proposition_ids??[],f=l(()=>u.map(e=>n.get(e)).filter(Boolean),[u,n]),g=u.length,[p,y]=c(!1),m=g>0,b=l(()=>{const t=/* @__PURE__ */new Map;for(const n of e.propositions??[])t.set(n.id,n);return t},[e.propositions]),w=t=>{const o=e.selections?.[t];return null!=o?o:b.get(t)?.user_prediction??n.get(t)?.user_prediction},x=f.filter(e=>null!=e.result&&!e.is_voided).length,k=f.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=Zt(e.pending),R=!F&&Ut(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}/${g} correct`:g>0?`${g} pick${1!==g?"s":""}`:null,E=C&&x>0?k>0?a.success:a.error:a.textMuted,j=/* @__PURE__ */T(z,{style:Nr.cardHeader,children:[/* @__PURE__ */T(z,{style:Nr.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(Hr,{iconUrl:Qe(t),gameName:n,height:18,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:r.brand?.accent}):/* @__PURE__ */W(S,{style:[Nr.cardGameName,{color:a.text,fontFamily:d}],numberOfLines:1,children:n})})(),/* @__PURE__ */T(z,{style:Nr.metaRow,children:[(e.created_at||e.entry_date)&&/* @__PURE__ */W(S,{style:[Nr.metaText,{color:a.textMuted}],children:Xt(e.created_at||e.entry_date)}),I&&/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(S,{style:[Nr.metaDot,{color:a.textMuted}],children:"·"}),/* @__PURE__ */W(S,{style:[Nr.metaText,{fontWeight:"500",color:E}],children:I})]})]})]}),/* @__PURE__ */T(z,{style:Nr.cardHeaderRight,children:[
162
+ /* @__PURE__ */T(z,{style:Nr.amounts,children:[Ut(e.bet_amount)>0&&/* @__PURE__ */W(S,{style:[Nr.betLabel,{color:a.textMuted}],children:qt(Ut(e.bet_amount))}),!F&&Ut(e.winning)>0&&/* @__PURE__ */T(z,{style:{alignItems:"flex-end"},children:[/* @__PURE__ */W(S,{style:[Nr.winAmount,{color:a.success}],children:qt(Ut(e.winning))}),(e.payout_jackpot??0)>0&&/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"400",color:a.textMuted},children:["incl. ",qt(Ut(e.payout_jackpot))," jackpot"]})]})]}),
163
+ /* @__PURE__ */W(z,{style:[Nr.statusPill,{backgroundColor:P}],children:/* @__PURE__ */W(S,{style:[Nr.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__ */
164
+ return T(z,{style:[Nr.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:f})},activeOpacity:.7,disabled:!m&&!o,accessibilityLabel:`Entry #${e.id}`,accessibilityState:m?{expanded:p}:void 0,children:j}),p&&g>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:[Nr.propRow,{borderTopColor:a.border,borderTopWidth:1}],children:[/* @__PURE__ */W(z,{style:Nr.propInfo,children:/* @__PURE__ */T(S,{style:{fontSize:14,color:a.textMuted},children:["Loading proposition #",t,"…"]})}),null!=l&&/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:8,backgroundColor:"yes"===l?ae(r):ce(r)},children:/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",color:"#ffffff",letterSpacing:.4,textTransform:"uppercase"},children:Kt(l)})})]},t);const c=o.result,s=null!=c,d=!!o.is_voided,h=s&&!d&&null!=l&&l===c;let u,f,g;d?(u="Void",f=`${a.textMuted}20`,g=a.textMuted):s?h?(u="Won",f=a.successBg,g=a.successText):(u="Lost",f=a.errorBg,g=a.errorText):(u="Pending",f=a.warningBg,g=a.warningText);const p=en(o)?void 0:o.home_team;/* @__PURE__ */
171
165
  return T(z,{style:[Nr.propRow,{borderTopColor:a.border,borderTopWidth:1}],children:[
172
- /* @__PURE__ */T(z,{style:Nr.propInfo,children:[(o.home_team||o.away_team)&&/* @__PURE__ */T(z,{style:Nr.teamsRow,children:[i&&p?i(p):null,p?/* @__PURE__ */W(S,{style:[Nr.teamName,{color:a.text}],children:p}):null,p&&o.away_team?/* @__PURE__ */W(S,{style:[Nr.vsText,{color:a.textMuted}],children:"vs"}):null,i&&o.away_team?i(o.away_team):null,o.away_team?/* @__PURE__ */W(S,{style:[Nr.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:Kt(o.commence_time)})]}),
173
- /* @__PURE__ */T(z,{style:Nr.outcomeCol,children:[/* @__PURE__ */W(S,{style:[Nr.outcomeLabel,{color:a.textMuted}],children:"Pick"}),null!=l?/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:8,backgroundColor:"yes"===l?ae(r):ce(r)},children:/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",color:"#ffffff",letterSpacing:.4,textTransform:"uppercase"},children:Ut(l)})}):/* @__PURE__ */W(S,{style:{fontSize:12,color:a.textMuted},children:"—"})]}),
174
- /* @__PURE__ */T(z,{style:Nr.outcomeCol,children:[/* @__PURE__ */W(S,{style:[Nr.outcomeLabel,{color:a.textMuted}],children:"Result"}),/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:4,backgroundColor:f},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"700",color:g,textTransform:"uppercase"},children:u})})]})]},t)})]})}var Nr=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 Gr({style:t}){const{theme:n,bodyFont:o,eventFilterActive:r,eventFilterLabel:i,clearEventFilter:l,gameCategory:a}=Xo(),{width:c}=F(),s=c>=640,[d,h]=e.useState(!1);if(!r)return null;const u=n.colors,f=i??("racing"===a?"This race":"This event");/* @__PURE__ */
166
+ /* @__PURE__ */T(z,{style:Nr.propInfo,children:[(o.home_team||o.away_team)&&/* @__PURE__ */T(z,{style:Nr.teamsRow,children:[i&&p?i(p):null,p?/* @__PURE__ */W(S,{style:[Nr.teamName,{color:a.text}],children:p}):null,p&&o.away_team?/* @__PURE__ */W(S,{style:[Nr.vsText,{color:a.textMuted}],children:"vs"}):null,i&&o.away_team?i(o.away_team):null,o.away_team?/* @__PURE__ */W(S,{style:[Nr.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:Xt(o.commence_time)})]}),
167
+ /* @__PURE__ */T(z,{style:Nr.outcomeCol,children:[/* @__PURE__ */W(S,{style:[Nr.outcomeLabel,{color:a.textMuted}],children:"Pick"}),null!=l?/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:8,backgroundColor:"yes"===l?ae(r):ce(r)},children:/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",color:"#ffffff",letterSpacing:.4,textTransform:"uppercase"},children:Kt(l)})}):/* @__PURE__ */W(S,{style:{fontSize:12,color:a.textMuted},children:"—"})]}),
168
+ /* @__PURE__ */T(z,{style:Nr.outcomeCol,children:[/* @__PURE__ */W(S,{style:[Nr.outcomeLabel,{color:a.textMuted}],children:"Result"}),/* @__PURE__ */W(z,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:4,backgroundColor:f},children:/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"700",color:g,textTransform:"uppercase"},children:u})})]})]},t)})]})}var Nr=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 Gr({style:t}){const{theme:n,bodyFont:o,eventFilterActive:r,eventFilterLabel:i,clearEventFilter:l,gameCategory:a}=cr(),{width:c}=F(),s=c>=640,[d,h]=e.useState(!1);if(!r)return null;const u=n.colors,f=i??("racing"===a?"This race":"This event");/* @__PURE__ */
175
169
  return T(z,{style:[Yr.container,s&&Yr.containerWide,{borderColor:`${u.primary}33`,backgroundColor:u.surface},t],children:[/* @__PURE__ */T(z,{style:Yr.textBlock,children:[
176
170
  /* @__PURE__ */W(S,{style:[Yr.kicker,{color:u.primary,fontFamily:o}],children:"Event filter"}),
177
171
  /* @__PURE__ */W(S,{style:[Yr.label,{color:u.text,fontFamily:o}],numberOfLines:1,children:f}),
178
- /* @__PURE__ */W(S,{style:[Yr.hint,{color:u.textMuted,fontFamily:o}],children:"Only propositions from this event are shown."})]}),/* @__PURE__ */W(B,{onPress:l,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),style:[Yr.button,s&&Yr.buttonWide,{borderColor:`${u.primary}44`,backgroundColor:u.background,opacity:d?.9:1}],children:/* @__PURE__ */W(S,{style:[Yr.buttonText,{color:u.text,fontFamily:o}],children:"Show all events"})})]})}var Yr=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 Vr({onBack:t,title:n="Go back"}){const{theme:o}=Xo(),r=o.colors,[i,l]=e.useState(!1);/* @__PURE__ */
179
- return W(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{padding:2,alignItems:"center",justifyContent:"center",borderRadius:999,transform:[{translateX:i?-2:0}]},children:/* @__PURE__ */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 Ur({onBack:t,label:n="Games"}){const{theme:o}=Xo(),r=o.colors,[i,l]=e.useState(!1),a=i?r.primary:r.textMuted;/* @__PURE__ */
180
- return T(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,activeOpacity:.7,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{flexDirection:"row",alignItems:"center",gap:6,alignSelf:"flex-start",marginBottom:12,transform:[{translateX:i?-2:0}]},children:[/* @__PURE__ */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 Zr({onBack:t,hideActions:n,label:o,children:r}){const{theme:i}=Xo(),l=i.colors,{width:a}=F(),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__ */
181
- 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,onMouseEnter:()=>d(!0),onMouseLeave:()=>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(Vr,{onBack:t})),!t&&null!=o&&h(l.textMuted),r]})}var Kr=[1,5,10,20,50,100],qr=[4,12];function Xr(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function Qr(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 Jr(e){if(!Xr(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??qr[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??qr[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=Kr.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 $r=50,_r=[25,50,75,100],ei=[{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 ti(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function ni(e,t){return Math.round(e*t/50*100)/100}function oi(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:ni(o,t),cumulative:ni(n,t)}))}function ri(e,t){return ni(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function ii(e,t,n){return ni(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)}function li(e){if(!ti(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=ei.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??_r[0],l=e.max_bet??_r[_r.length-1],a=_r.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:_r,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}var ai=.21875,ci=[1,5,10,20,50],si=[4,12];function di(e){return!!e&&!e.quick_pick_only&&"mirror"===(e.rule??"").trim().toLowerCase()}function hi(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 ui(e){if(!di(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??si[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??si[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=ci.filter(e=>e>=r&&(null===i||e<=i));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(20,r),i??20),minStake:r,maxStake:i,quickStakes:l,tagline:"Call every leg. Get them all right, you win — all wrong, you win the same.",operatorMargin:e.operator_margin??.21875,perLegProbability:e.payout_structure?.per_leg_probability??.5}}function fi(e){return e?.quick_pick_only?"quick_pick":Xr(e)?"game_set":wo(e)?"pick_your_dividend":ti(e)?"ladder":di(e)?"mirror":eo(e)?"safety_net":Pn(e)?"selections":yo(e)?"rule_setup":"selections"}function gi(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(Pn(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 pi(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||Pn(e)||gi(e))}function yi(e){switch(fi(e)){case"ladder":return{belowRequiredHint:(e,t)=>`Drop to Ladder ${e} or add another pick to stay on Ladder ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay on Ladder ${e}.`,switchTierLabel:e=>`Switch to Ladder ${e}`,overloadTitle:"Add more picks to climb higher",tableColumnLabel:"Ladder",tierButtonLabel:e=>`Ladder ${e}`};case"game_set":case"pick_your_dividend":case"mirror":case"safety_net":return{belowRequiredHint:(e,t)=>`Drop to ${e} legs or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e} legs.`,switchTierLabel:e=>`Switch to ${e} legs`,overloadTitle:"Add more legs to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`${e} legs`};default:return{belowRequiredHint:(e,t)=>`Drop to a ${e}-leg multi or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e}.`,switchTierLabel:e=>`Switch to ${e}-leg`,overloadTitle:"Add more picks to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`Multi ${e}`}}}function mi({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,howToPlayMarkdown:i,selectedCategory:l,displayCategoryName:a}=Xo(),c=n.colors,{width:s}=F(),d=s>=640,h=s>=768;/* @__PURE__ */
182
- return T(z,{style:d&&xi.headerWide,children:[/* @__PURE__ */T(z,{style:xi.titleRow,children:[/* @__PURE__ */W(S,{style:[xi.title,d&&xi.titleWide,h&&xi.titleDesktop,{color:re(n),fontFamily:o,flex:1}],children:"Choose your game"}),i?.trim()?/* @__PURE__ */W(z,{style:xi.howToPlayWrap,children:/* @__PURE__ */W(wt,{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(Zr,{onBack:e,hideActions:t,label:l?a(l):void 0})]})}function bi({onCancel:e,onSelectGame:t}){const{theme:n,screenSize:o}=Xo(),r=n.colors;return e&&"mobile"!==o?/* @__PURE__ */W(z,{style:[xi.footer],children:/* @__PURE__ */W(B,{onPress:e,style:[xi.secondaryBtn,{backgroundColor:r.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[xi.secondaryBtnText,{color:r.buttonSecondaryText}],children:"Cancel"})})}):null}function wi({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:f=!1,showTierFilter:g=!1}){const p=Xo(),{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__ */
172
+ /* @__PURE__ */W(S,{style:[Yr.hint,{color:u.textMuted,fontFamily:o}],children:"Only propositions from this event are shown."})]}),/* @__PURE__ */W(B,{onPress:l,...at(()=>h(!0),()=>h(!1)),style:[Yr.button,s&&Yr.buttonWide,{borderColor:`${u.primary}44`,backgroundColor:u.background,opacity:d?.9:1}],children:/* @__PURE__ */W(S,{style:[Yr.buttonText,{color:u.text,fontFamily:o}],children:"Show all events"})})]})}var Yr=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 Vr({onBack:t,title:n="Go back"}){const{theme:o}=cr(),r=o.colors,[i,l]=e.useState(!1);/* @__PURE__ */
173
+ return W(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,...at(()=>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 Ur({onBack:t,label:n="Games"}){const{theme:o}=cr(),r=o.colors,[i,l]=e.useState(!1),a=i?r.primary:r.textMuted;/* @__PURE__ */
174
+ return T(B,{onPress:t,accessibilityRole:"button",accessibilityLabel:n,activeOpacity:.7,...at(()=>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 Zr({onBack:t,hideActions:n,label:o,children:r}){const{theme:i}=cr(),l=i.colors,{width:a}=F(),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__ */
175
+ 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,...at(()=>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(Vr,{onBack:t})),!t&&null!=o&&h(l.textMuted),r]})}var Kr=[1,5,10,20,50,100],qr=[4,12];function Xr(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function Qr(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 Jr(e){if(!Xr(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??qr[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??qr[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=Kr.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 $r=50,_r=[25,50,75,100],ei=[{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 ti(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function ni(e,t){return Math.round(e*t/50*100)/100}function oi(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:ni(o,t),cumulative:ni(n,t)}))}function ri(e,t){return ni(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function ii(e,t,n){return ni(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)}function li(e){if(!ti(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=ei.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??_r[0],l=e.max_bet??_r[_r.length-1],a=_r.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:_r,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}var ai=.21875,ci=[1,5,10,20,50],si=[4,12];function di(e){return!!e&&!e.quick_pick_only&&"mirror"===(e.rule??"").trim().toLowerCase()}function hi(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 ui(e){if(!di(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??si[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??si[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=ci.filter(e=>e>=r&&(null===i||e<=i));return{legOptions:o,defaultLegs:o.includes(8)?8:o[Math.floor(o.length/2)],defaultStake:Math.min(Math.max(20,r),i??20),minStake:r,maxStake:i,quickStakes:l,tagline:"Call every leg. Get them all right, you win — all wrong, you win the same.",operatorMargin:e.operator_margin??.21875,perLegProbability:e.payout_structure?.per_leg_probability??.5}}function fi(e){return e?.quick_pick_only?"quick_pick":Xr(e)?"game_set":Mo(e)?"pick_your_dividend":ti(e)?"ladder":di(e)?"mirror":yo(e)?"safety_net":Qn(e)?"selections":Ro(e)?"rule_setup":"selections"}function gi(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(Qn(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 pi(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||Qn(e)||gi(e))}function yi(e){switch(fi(e)){case"ladder":return{belowRequiredHint:(e,t)=>`Drop to Ladder ${e} or add another pick to stay on Ladder ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay on Ladder ${e}.`,switchTierLabel:e=>`Switch to Ladder ${e}`,overloadTitle:"Add more picks to climb higher",tableColumnLabel:"Ladder",tierButtonLabel:e=>`Ladder ${e}`};case"game_set":case"pick_your_dividend":case"mirror":case"safety_net":return{belowRequiredHint:(e,t)=>`Drop to ${e} legs or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e} legs.`,switchTierLabel:e=>`Switch to ${e} legs`,overloadTitle:"Add more legs to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`${e} legs`};default:return{belowRequiredHint:(e,t)=>`Drop to a ${e}-leg multi or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e}.`,switchTierLabel:e=>`Switch to ${e}-leg`,overloadTitle:"Add more picks to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`Multi ${e}`}}}function mi({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,howToPlayMarkdown:i,selectedCategory:l,displayCategoryName:a}=cr(),c=n.colors,{width:s}=F(),d=s>=640,h=s>=768;/* @__PURE__ */
176
+ return T(z,{style:d&&xi.headerWide,children:[/* @__PURE__ */T(z,{style:xi.titleRow,children:[/* @__PURE__ */W(S,{style:[xi.title,d&&xi.titleWide,h&&xi.titleDesktop,{color:re(n),fontFamily:o,flex:1}],children:"Choose your game"}),i?.trim()?/* @__PURE__ */W(z,{style:xi.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(Zr,{onBack:e,hideActions:t,label:l?a(l):void 0})]})}function bi({onCancel:e,onSelectGame:t}){const{theme:n,screenSize:o}=cr(),r=n.colors;return e&&"mobile"!==o?/* @__PURE__ */W(z,{style:[xi.footer],children:/* @__PURE__ */W(B,{onPress:e,style:[xi.secondaryBtn,{backgroundColor:r.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[xi.secondaryBtnText,{color:r.buttonSecondaryText}],children:"Cancel"})})}):null}function wi({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:f=!1,showTierFilter:g=!1}){const p=cr(),{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__ */
183
177
  return T(z,{style:xi.container,children:[!h&&/* @__PURE__ */W(z,{style:{marginBottom:A?24:16},children:/* @__PURE__ */W(mi,{onBack:d,hideActions:u})}),
184
178
  /* @__PURE__ */W(Gr,{}),
185
- /* @__PURE__ */W(z,{style:xi.content,children:/* @__PURE__ */W(Mo,{games:m,selectedGame:x,onSelectGame:e=>{B.current=e,p.selectGame(e)},loading:b,error:w,theme:y,showTierFilter:g,selectedPropositionCount:k,onPropositionCountChange:S,onPropositionCountSelected:()=>{const e=B.current;if("rule_setup"===fi(e)&&pi(e)&&!f)return p.goToSportSelection(),void t?.();const s=fi(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 xi=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"}}),ki=3;function Si(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 Ci(e,t,o){const[i,s]=c([]),[d,h]=c([]),[u,f]=c([]),[g,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);r(()=>{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(Si(n,o).slice(0,3).map(e=>e.id)),f([]),p([]),m(null)},[x,e,t]);const S=l(()=>{const e=new Set(u);return[...Si(i.map(e=>b.get(e)).filter(e=>Boolean(e)).filter(t=>!e.has(t.id)),w).map(e=>e.id),...u.filter(e=>i.includes(e))]},[i,b,w,u]);r(()=>{h(e=>{const t=new Set(i),n=e.filter(e=>t.has(e));if(0===g.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,i.length))return n.length===e.length?e:n;const o=[...n];for(const r of S){if(o.length>=3)break;o.includes(r)||o.push(r)}return o})},[i,S,g,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)),f(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=g[g.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)),f(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)))},[g,o]);return{visible:C,canSkip:i.length>1,canUndo:g.length>0,restored:y,resolve:B,undo:z}}var Bi=f.bezier(.32,0,.67,0),zi=f.bezier(.22,1,.36,1),Fi={stiffness:420,damping:34},vi={stiffness:280,damping:28},Wi="#00C853",Ti="#E53935";function Ai(e){return"up"===e?{x:0,y:-720}:{x:"right"===e?640:-640,y:70}}function Li(e,t,n){return n&&-t>Math.abs(e)}function Ri({prop:e,theme:t,depth:i=0,enterFrom:c,canSkip:s=!1,onResolve:d,registerApi:u,onDragStateChange:f,children:g}){const p=o(Ko),m=t??p?.theme??be,b=Ye(m),w=m.colors.productYes??Wi,x=m.colors.productNo??Ti,C=0===i,B=a(!1),F=a({x:0,y:0}),A=a({x:0,y:0}),L=a(null),R=a(0),M=a(null),D=a(null),P=a(null),H=a(s);H.current=s;const O=a(f);O.current=f;const I=a(new h.ValueXY({x:0,y:0})).current,E=a(new h.Value(0)).current,j=n(()=>{I.setValue({x:F.current.x,y:F.current.y}),E.setValue(Li(F.current.x,F.current.y,H.current)?1:0)},[E,I]),N=n(()=>{null!=M.current&&(cancelAnimationFrame(M.current),M.current=null),D.current&&(D.current.stop(),D.current=null)},[]),G=n(e=>{N();let t=null;const n=o=>{const r=Math.min(null==t?1/60:(o-t)/1e3,1/30);t=o;const i=F.current,l=A.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,j(),void(M.current=null);j(),M.current=requestAnimationFrame(n)};M.current=requestAnimationFrame(n)},[j,N]),Y=n(t=>{if(B.current)return;if("up"===t&&!H.current)return;B.current=!0,N();const n="right"===t?"yes":"left"===t?"no":null,o=Ai(t);F.current={...o},E.setValue("up"===t?1:0),D.current=h.timing(I,{toValue:o,duration:260,easing:Bi,useNativeDriver:!1}),D.current.start(),P.current=setTimeout(()=>d(e.id,n),260)},[d,e.id,N,E,I]);r(()=>()=>{P.current&&clearTimeout(P.current),null!=M.current&&cancelAnimationFrame(M.current),D.current?.stop(),L.current&&O.current?.(!1)},[]),r(()=>{if(!c)return N(),F.current={x:0,y:0},A.current={x:0,y:0},void j();const e=Ai(c);F.current={x:e.x,y:e.y},A.current={x:0,y:0},j(),G(vi)},[c,j,G,N]),r(()=>{if(C&&u)return u({fly:Y}),()=>u(null)},[Y,C,u]);const V=l(()=>y.create({onStartShouldSetPanResponder:()=>!1,onMoveShouldSetPanResponder:(e,t)=>!B.current&&(Math.abs(t.dx)>2&&Math.abs(t.dx)>Math.abs(t.dy)||H.current&&-t.dy>2&&-t.dy>Math.abs(t.dx)),onPanResponderGrant:()=>{N(),L.current={x:F.current.x,y:F.current.y},A.current={x:0,y:0},R.current=Date.now(),O.current?.(!0)},onPanResponderMove:(e,t)=>{if(B.current||!L.current)return;if(t.numberActiveTouches>1)return;const n=L.current.x+t.dx,o=L.current.y+t.dy,r=e.nativeEvent.timestamp??Date.now(),i=r-R.current;if(i>0){const e=1-Math.exp(-i/40);A.current.x+=((n-F.current.x)/i*1e3-A.current.x)*e,A.current.y+=((o-F.current.y)/i*1e3-A.current.y)*e,R.current=r}F.current.x=n,F.current.y=o,j()},onPanResponderRelease:e=>{if(!L.current)return;if(L.current=null,O.current?.(!1),B.current)return;(e.nativeEvent.timestamp??Date.now())-R.current>90&&(A.current={x:0,y:0});const t=F.current,n=A.current;if(Li(t.x,t.y,H.current)){if(t.y<-110||n.y<-620)return Y("up")}else{if(t.x>110||n.x>620)return Y("right");if(t.x<-110||n.x<-620)return Y("left")}G(Fi)},onPanResponderTerminate:()=>{L.current=null,A.current={x:0,y:0},O.current?.(!1),B.current||G(Fi)},onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0}),[Y,j,G,N]),U=I.x.interpolate({inputRange:[-260,0,260],outputRange:["-16deg","0deg","16deg"],extrapolate:"clamp"}),Z=h.subtract(1,E),K=h.multiply(Z,I.x.interpolate({inputRange:[24,132],outputRange:[0,1],extrapolate:"clamp"})),q=h.multiply(Z,I.x.interpolate({inputRange:[-132,-24],outputRange:[1,0],extrapolate:"clamp"})),X=h.multiply(E,I.y.interpolate({inputRange:[-120,-30],outputRange:[1,0],extrapolate:"clamp"})),Q=a(new h.Value(i)).current;r(()=>{const e=h.timing(Q,{toValue:i,duration:240,easing:zi,useNativeDriver:!1});return e.start(),()=>e.stop()},[i,Q]);const J=Q.interpolate({inputRange:[0,3],outputRange:[0,36]}),$=Q.interpolate({inputRange:[0,3],outputRange:[1,.88]});/* @__PURE__ */
186
- return W(h.View,{style:[k.absoluteFillObject,{zIndex:3-i,transform:[{translateY:J},{scale:$}]}],pointerEvents:C?"auto":"none",children:/* @__PURE__ */T(h.View,{style:{flex:1,transform:[{translateX:I.x},{translateY:I.y},{rotate:U}]},...C?V.panHandlers:{},children:[g,C&&/* @__PURE__ */T(v,{children:[
179
+ /* @__PURE__ */W(z,{style:xi.content,children:/* @__PURE__ */W(Zo,{games:m,selectedGame:x,onSelectGame:e=>{B.current=e,p.selectGame(e)},loading:b,error:w,theme:y,showTierFilter:g,selectedPropositionCount:k,onPropositionCountChange:S,onPropositionCountSelected:()=>{const e=B.current;if("rule_setup"===fi(e)&&pi(e)&&!f)return p.goToSportSelection(),void t?.();const s=fi(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 xi=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"}}),ki=3;function Si(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 Ci(e,t,o){const[i,s]=c([]),[d,h]=c([]),[u,f]=c([]),[g,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);r(()=>{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(Si(n,o).slice(0,3).map(e=>e.id)),f([]),p([]),m(null)},[x,e,t]);const S=l(()=>{const e=new Set(u);return[...Si(i.map(e=>b.get(e)).filter(e=>Boolean(e)).filter(t=>!e.has(t.id)),w).map(e=>e.id),...u.filter(e=>i.includes(e))]},[i,b,w,u]);r(()=>{h(e=>{const t=new Set(i),n=e.filter(e=>t.has(e));if(0===g.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,i.length))return n.length===e.length?e:n;const o=[...n];for(const r of S){if(o.length>=3)break;o.includes(r)||o.push(r)}return o})},[i,S,g,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)),f(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=g[g.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)),f(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)))},[g,o]);return{visible:C,canSkip:i.length>1,canUndo:g.length>0,restored:y,resolve:B,undo:z}}var Bi=f.bezier(.32,0,.67,0),zi=f.bezier(.22,1,.36,1),Fi={stiffness:420,damping:34},vi={stiffness:280,damping:28},Wi="#00C853",Ti="#E53935";function Ai(e){return"up"===e?{x:0,y:-720}:{x:"right"===e?640:-640,y:70}}function Ri(e,t,n){return n&&-t>Math.abs(e)}function Li({prop:e,theme:t,depth:i=0,enterFrom:c,canSkip:s=!1,onResolve:d,registerApi:u,onDragStateChange:f,children:g}){const p=o(lr),m=t??p?.theme??we,b=Ve(m),w=m.colors.productYes??Wi,x=m.colors.productNo??Ti,C=0===i,B=a(!1),F=a({x:0,y:0}),A=a({x:0,y:0}),R=a(null),L=a(0),D=a(null),M=a(null),P=a(null),H=a(s);H.current=s;const O=a(f);O.current=f;const I=a(new h.ValueXY({x:0,y:0})).current,E=a(new h.Value(0)).current,j=n(()=>{I.setValue({x:F.current.x,y:F.current.y}),E.setValue(Ri(F.current.x,F.current.y,H.current)?1:0)},[E,I]),N=n(()=>{null!=D.current&&(cancelAnimationFrame(D.current),D.current=null),M.current&&(M.current.stop(),M.current=null)},[]),G=n(e=>{N();let t=null;const n=o=>{const r=Math.min(null==t?1/60:(o-t)/1e3,1/30);t=o;const i=F.current,l=A.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,j(),void(D.current=null);j(),D.current=requestAnimationFrame(n)};D.current=requestAnimationFrame(n)},[j,N]),Y=n(t=>{if(B.current)return;if("up"===t&&!H.current)return;B.current=!0,N();const n="right"===t?"yes":"left"===t?"no":null,o=Ai(t);F.current={...o},E.setValue("up"===t?1:0),M.current=h.timing(I,{toValue:o,duration:260,easing:Bi,useNativeDriver:!1}),M.current.start(),P.current=setTimeout(()=>d(e.id,n),260)},[d,e.id,N,E,I]);r(()=>()=>{P.current&&clearTimeout(P.current),null!=D.current&&cancelAnimationFrame(D.current),M.current?.stop(),R.current&&O.current?.(!1)},[]),r(()=>{if(!c)return N(),F.current={x:0,y:0},A.current={x:0,y:0},void j();const e=Ai(c);F.current={x:e.x,y:e.y},A.current={x:0,y:0},j(),G(vi)},[c,j,G,N]),r(()=>{if(C&&u)return u({fly:Y}),()=>u(null)},[Y,C,u]);const V=l(()=>y.create({onStartShouldSetPanResponder:()=>!1,onMoveShouldSetPanResponder:(e,t)=>!B.current&&(Math.abs(t.dx)>2&&Math.abs(t.dx)>Math.abs(t.dy)||H.current&&-t.dy>2&&-t.dy>Math.abs(t.dx)),onPanResponderGrant:()=>{N(),R.current={x:F.current.x,y:F.current.y},A.current={x:0,y:0},L.current=Date.now(),O.current?.(!0)},onPanResponderMove:(e,t)=>{if(B.current||!R.current)return;if(t.numberActiveTouches>1)return;const n=R.current.x+t.dx,o=R.current.y+t.dy,r=e.nativeEvent.timestamp??Date.now(),i=r-L.current;if(i>0){const e=1-Math.exp(-i/40);A.current.x+=((n-F.current.x)/i*1e3-A.current.x)*e,A.current.y+=((o-F.current.y)/i*1e3-A.current.y)*e,L.current=r}F.current.x=n,F.current.y=o,j()},onPanResponderRelease:e=>{if(!R.current)return;if(R.current=null,O.current?.(!1),B.current)return;(e.nativeEvent.timestamp??Date.now())-L.current>90&&(A.current={x:0,y:0});const t=F.current,n=A.current;if(Ri(t.x,t.y,H.current)){if(t.y<-110||n.y<-620)return Y("up")}else{if(t.x>110||n.x>620)return Y("right");if(t.x<-110||n.x<-620)return Y("left")}G(Fi)},onPanResponderTerminate:()=>{R.current=null,A.current={x:0,y:0},O.current?.(!1),B.current||G(Fi)},onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0}),[Y,j,G,N]),U=I.x.interpolate({inputRange:[-260,0,260],outputRange:["-16deg","0deg","16deg"],extrapolate:"clamp"}),Z=h.subtract(1,E),K=h.multiply(Z,I.x.interpolate({inputRange:[24,132],outputRange:[0,1],extrapolate:"clamp"})),q=h.multiply(Z,I.x.interpolate({inputRange:[-132,-24],outputRange:[1,0],extrapolate:"clamp"})),X=h.multiply(E,I.y.interpolate({inputRange:[-120,-30],outputRange:[1,0],extrapolate:"clamp"})),Q=a(new h.Value(i)).current;r(()=>{const e=h.timing(Q,{toValue:i,duration:240,easing:zi,useNativeDriver:!1});return e.start(),()=>e.stop()},[i,Q]);const J=Q.interpolate({inputRange:[0,3],outputRange:[0,36]}),$=Q.interpolate({inputRange:[0,3],outputRange:[1,.88]});/* @__PURE__ */
180
+ return W(h.View,{style:[k.absoluteFill,{zIndex:3-i,transform:[{translateY:J},{scale:$}]}],pointerEvents:C?"auto":"none",children:/* @__PURE__ */T(h.View,{style:{flex:1,transform:[{translateX:I.x},{translateY:I.y},{rotate:U}]},...C?V.panHandlers:{},children:[g,C&&/* @__PURE__ */T(v,{children:[
187
181
  /* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Pi.stamp,Pi.stampLeft,{opacity:K,borderColor:w,transform:[{rotate:"-12deg"}]}],children:/* @__PURE__ */W(S,{style:[Pi.stampText,{color:w,fontFamily:b}],children:"Yes"})}),
188
- /* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Pi.stamp,Pi.stampRight,{opacity:q,borderColor:x,transform:[{rotate:"12deg"}]}],children:/* @__PURE__ */W(S,{style:[Pi.stampText,{color:x,fontFamily:b}],children:"No"})}),s&&/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Pi.skipPillWrap,{opacity:X}],children:/* @__PURE__ */W(z,{style:[Pi.skipPill,{borderColor:m.colors.border,backgroundColor:m.colors.background}],children:/* @__PURE__ */W(S,{style:[Pi.skipPillText,{color:m.colors.primary}],children:"Skip"})})})]})]})})}function Mi({prop:e}){const{theme:t,headingFont:n,renderTeamLogo:o,displaySportName:r,gameCategory:i}=Xo(),l=t.colors,{height:a}=F(),c=a<700?12:24,s=Ht(e),d=At(e),h=("racing"===i?[e.away_team?.trim()||e.home_team?.trim()]:[e.home_team?.trim(),e.away_team?.trim()]).filter(Boolean);/* @__PURE__ */
189
- return T(z,{style:[Pi.face,{backgroundColor:ue(t),borderColor:l.border}],children:[
190
- /* @__PURE__ */W(z,{style:[Pi.matchupBand,{backgroundColor:fe(t)}],children:h.length>0?h.map((e,n)=>/* @__PURE__ */T(z,{style:Pi.matchupTeam,children:[n>0&&/* @__PURE__ */W(S,{style:[Pi.matchupVs,{color:he(t)}],children:"vs"}),o?.(e),
191
- /* @__PURE__ */W(S,{style:[Pi.matchupName,{color:de(t)}],children:e})]},`${e}-${n}`)):/* @__PURE__ */W(S,{style:[Pi.matchupName,{color:de(t)}],children:e.league??r(e.sport??"")})}),
182
+ /* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Pi.stamp,Pi.stampRight,{opacity:q,borderColor:x,transform:[{rotate:"12deg"}]}],children:/* @__PURE__ */W(S,{style:[Pi.stampText,{color:x,fontFamily:b}],children:"No"})}),s&&/* @__PURE__ */W(h.View,{pointerEvents:"none",style:[Pi.skipPillWrap,{opacity:X}],children:/* @__PURE__ */W(z,{style:[Pi.skipPill,{borderColor:m.colors.border,backgroundColor:m.colors.background}],children:/* @__PURE__ */W(S,{style:[Pi.skipPillText,{color:m.colors.primary}],children:"Skip"})})})]})]})})}function Di({prop:e}){const{theme:t,headingFont:n,renderTeamLogo:o,displaySportName:r,gameCategory:i}=cr(),l=t.colors,{height:a}=F(),c=a<700?12:24,s=It(e),d=Lt(e),h=("racing"===i?[e.away_team?.trim()||e.home_team?.trim()]:[e.home_team?.trim(),e.away_team?.trim()]).filter(Boolean);/* @__PURE__ */
183
+ return T(z,{style:[Pi.face,{backgroundColor:fe(t),borderColor:l.border}],children:[
184
+ /* @__PURE__ */W(z,{style:[Pi.matchupBand,{backgroundColor:ge(t)}],children:h.length>0?h.map((e,n)=>/* @__PURE__ */T(z,{style:Pi.matchupTeam,children:[n>0&&/* @__PURE__ */W(S,{style:[Pi.matchupVs,{color:ue(t)}],children:"vs"}),o?.(e),
185
+ /* @__PURE__ */W(S,{style:[Pi.matchupName,{color:he(t)}],children:e})]},`${e}-${n}`)):/* @__PURE__ */W(S,{style:[Pi.matchupName,{color:he(t)}],children:e.league??r(e.sport??"")})}),
192
186
  /* @__PURE__ */T(z,{style:[Pi.faceBody,{paddingVertical:c,gap:12===c?12:16}],children:[/* @__PURE__ */T(z,{style:Pi.propositionRow,children:[yr(e,o,h.join(" vs ")),s?/* @__PURE__ */T(z,{style:{flex:1,gap:12},children:[/* @__PURE__ */T(S,{style:[Pi.compositeLabel,{color:ie(t)}],children:["All ","OR"===s.operator?"or any of these":"of these"]}),/* @__PURE__ */W(z,{style:{gap:8},children:s.legs.map((e,o)=>/* @__PURE__ */T(z,{style:Pi.compositeLeg,children:[/* @__PURE__ */W(S,{style:{color:l.primary,fontWeight:"700"},children:"OR"===s.operator?"/":"+"}),/* @__PURE__ */W(S,{style:[Pi.compositeLegText,{color:le(t),fontFamily:n}],children:e.text})]},o))})]}):/* @__PURE__ */W(S,{style:[Pi.proposition,{flex:1,color:le(t),fontFamily:n}],children:e.description??e.proposition})]}),e.outcome_description&&e.outcome_description!==e.description&&/* @__PURE__ */W(S,{style:[Pi.outcome,{color:l.textMuted}],children:e.outcome_description})]}),
193
- /* @__PURE__ */T(z,{style:[Pi.faceFooter,{borderTopColor:l.borderSubtle??l.border}],children:[e.sport?/* @__PURE__ */W(z,{style:[Pi.sportChip,{backgroundColor:l.infoBg}],children:/* @__PURE__ */W(S,{style:[Pi.sportChipText,{color:l.infoText}],children:r(e.sport)})}):null,d?/* @__PURE__ */W(S,{style:[Pi.footerMeta,{color:l.textMuted}],children:d.replace(/[_-]+/g," ").toUpperCase()}):null,e.commence_time?/* @__PURE__ */W(S,{style:[Pi.footerMeta,Pi.footerDate,{color:l.textMuted}],children:Kt(e.commence_time)}):null]})]})}function Di({onBack:e,onNext:t,viewSwitch:o,onDragStateChange:i}){const{theme:l,headingFont:c,propositions:s,selections:d,toggleSelection:h,selectedGame:u,selectedPropositionCount:f,answeredCount:g,selectionValid:p,goToConfirmation:y,goToSportSelection:m,loading:b,error:w,selectedRule:x}=Xo(),k=l.colors,C=k.productYes??Wi,A=k.productNo??Ti,{height:L}=F(),R=Math.max(224,Math.min(.44*L,416)),M=a(null);r(()=>{u||(m(),e?.())},[m,e,u]);const{visible:D,canSkip:P,canUndo:H,restored:O,resolve:I,undo:E}=Ci(s,d,h),j=u?on(u,f??void 0,x):{min:0,max:0},N=j.max,G=N>0&&g>=N,Y=(()=>{if(!u)return null;if(j.min>0&&j.min===j.max)return j.min;const e=fi(u);return null!=f&&f>0&&("game_set"===e||"pick_your_dividend"===e||gi(u))?f:N>0?N:null})(),V=a(g);r(()=>{const e=V.current;if(V.current=g,null==Y||e>=Y||g!==Y)return;const n=setTimeout(()=>{y(),t?.()},420);return()=>clearTimeout(n)},[g,y,t,Y]);const U=!G&&D.length>0,Z=n(e=>{M.current=e},[]);if(!u)return null;const K=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:n,disabled:o,accessibilityLabel:e,accessibilityRole:"button",style:[Pi.circleButton,{borderColor:k.border,backgroundColor:k.background},o&&Pi.disabled],children:/* @__PURE__ */W(S,{style:{fontSize:18,color:k.textMuted},children:t})});/* @__PURE__ */
194
- return T(z,{style:Pi.container,children:[o?/* @__PURE__ */W(z,{style:Pi.viewSwitchRow,children:o}):null,b?/* @__PURE__ */W(S,{style:[Pi.loadingText,{color:k.textMuted}],children:"Loading…"}):w?/* @__PURE__ */W(z,{style:[Pi.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:Pi.deckArea,children:U?/* @__PURE__ */W(z,{style:[Pi.deck,{height:R}],children:D.map((e,t)=>/* @__PURE__ */W(Ri,{prop:e,depth:t,canSkip:P,enterFrom:O?.id===e.id?O.from:null,onResolve:I,registerApi:0===t?Z:void 0,onDragStateChange:0===t?i:void 0,children:/* @__PURE__ */W(Mi,{prop:e})},e.id))}):/* @__PURE__ */T(z,{style:[Pi.emptyState,{backgroundColor:ue(l),borderColor:k.border}],children:[
187
+ /* @__PURE__ */T(z,{style:[Pi.faceFooter,{borderTopColor:l.borderSubtle??l.border}],children:[e.sport?/* @__PURE__ */W(z,{style:[Pi.sportChip,{backgroundColor:l.infoBg}],children:/* @__PURE__ */W(S,{style:[Pi.sportChipText,{color:l.infoText}],children:r(e.sport)})}):null,d?/* @__PURE__ */W(S,{style:[Pi.footerMeta,{color:l.textMuted}],children:d.replace(/[_-]+/g," ").toUpperCase()}):null,e.commence_time?/* @__PURE__ */W(S,{style:[Pi.footerMeta,Pi.footerDate,{color:l.textMuted}],children:Xt(e.commence_time)}):null]})]})}function Mi({onBack:e,onNext:t,viewSwitch:o,onDragStateChange:i}){const{theme:l,headingFont:c,propositions:s,selections:d,toggleSelection:h,selectedGame:u,selectedPropositionCount:f,answeredCount:g,selectionValid:p,goToConfirmation:y,goToSportSelection:m,loading:b,error:w,selectedRule:x}=cr(),k=l.colors,C=k.productYes??Wi,A=k.productNo??Ti,{height:R}=F(),L=Math.max(224,Math.min(.44*R,416)),D=a(null);r(()=>{u||(m(),e?.())},[m,e,u]);const{visible:M,canSkip:P,canUndo:H,restored:O,resolve:I,undo:E}=Ci(s,d,h),j=u?ln(u,f??void 0,x):{min:0,max:0},N=j.max,G=N>0&&g>=N,Y=(()=>{if(!u)return null;if(j.min>0&&j.min===j.max)return j.min;const e=fi(u);return null!=f&&f>0&&("game_set"===e||"pick_your_dividend"===e||gi(u))?f:N>0?N:null})(),V=a(g);r(()=>{const e=V.current;if(V.current=g,null==Y||e>=Y||g!==Y)return;const n=setTimeout(()=>{y(),t?.()},420);return()=>clearTimeout(n)},[g,y,t,Y]);const U=!G&&M.length>0,Z=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:[Pi.circleButton,{borderColor:k.border,backgroundColor:k.background},o&&Pi.disabled],children:/* @__PURE__ */W(S,{style:{fontSize:18,color:k.textMuted},children:t})});/* @__PURE__ */
188
+ return T(z,{style:Pi.container,children:[o?/* @__PURE__ */W(z,{style:Pi.viewSwitchRow,children:o}):null,b?/* @__PURE__ */W(S,{style:[Pi.loadingText,{color:k.textMuted}],children:"Loading…"}):w?/* @__PURE__ */W(z,{style:[Pi.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:Pi.deckArea,children:U?/* @__PURE__ */W(z,{style:[Pi.deck,{height:L}],children:M.map((e,t)=>/* @__PURE__ */W(Li,{prop:e,depth:t,canSkip:P,enterFrom:O?.id===e.id?O.from:null,onResolve:I,registerApi:0===t?Z:void 0,onDragStateChange:0===t?i:void 0,children:/* @__PURE__ */W(Di,{prop:e})},e.id))}):/* @__PURE__ */T(z,{style:[Pi.emptyState,{backgroundColor:fe(l),borderColor:k.border}],children:[
195
189
  /* @__PURE__ */W(S,{style:[Pi.emptyTitle,{color:re(l),fontFamily:c}],children:G?"Card full":"That’s the last one"}),
196
190
  /* @__PURE__ */W(S,{style:[Pi.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:[Pi.emptyUndo,{borderColor:k.border}],children:/* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:k.text},children:"Undo last swipe"})})]})}),/* @__PURE__ */T(z,{style:Pi.buttonArea,children:[/* @__PURE__ */T(z,{style:Pi.buttonRow,children:[K("Undo last swipe","↺",E,!H),
197
- /* @__PURE__ */W(B,{onPress:()=>M.current?.fly("left"),disabled:!U,style:[Pi.answerButton,{backgroundColor:A},!U&&Pi.disabled],children:/* @__PURE__ */W(S,{style:[Pi.answerButtonText,{fontFamily:c}],children:"NO"})}),
198
- /* @__PURE__ */W(B,{onPress:()=>M.current?.fly("right"),disabled:!U,style:[Pi.answerButton,{backgroundColor:C},!U&&Pi.disabled],children:/* @__PURE__ */W(S,{style:[Pi.answerButtonText,{fontFamily:c}],children:"YES"})}),K("Skip this proposition","↑",()=>M.current?.fly("up"),!U||!P)]}),/* @__PURE__ */W(S,{style:[Pi.gestureHint,{color:k.textMuted}],children:P?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})]})]})}var Pi=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",gap:8},compositeLegText:{flex:1,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},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 Hi({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",title:r,sportBaseKey:i}){const l=jt(e,i,t),a=function(e){return e.length<=3?92:4===e.length?72:56}(l);/* @__PURE__ */
191
+ /* @__PURE__ */W(B,{onPress:()=>D.current?.fly("left"),disabled:!U,style:[Pi.answerButton,{backgroundColor:A},!U&&Pi.disabled],children:/* @__PURE__ */W(S,{style:[Pi.answerButtonText,{fontFamily:c}],children:"NO"})}),
192
+ /* @__PURE__ */W(B,{onPress:()=>D.current?.fly("right"),disabled:!U,style:[Pi.answerButton,{backgroundColor:C},!U&&Pi.disabled],children:/* @__PURE__ */W(S,{style:[Pi.answerButtonText,{fontFamily:c}],children:"YES"})}),K("Skip this proposition","↑",()=>D.current?.fly("up"),!U||!P)]}),/* @__PURE__ */W(S,{style:[Pi.gestureHint,{color:k.textMuted}],children:P?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})]})]})}var Pi=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",gap:8},compositeLegText:{flex:1,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},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 Hi({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",title:r,sportBaseKey:i}){const l=Gt(e,i,t),a=function(e){return e.length<=3?92:4===e.length?72:56}(l);/* @__PURE__ */
199
193
  return T(A,{viewBox:"0 0 360 360",width:n,height:n,accessibilityLabel:r??`${l} button`,children:[
200
- /* @__PURE__ */W(I,{x:2,y:2,width:356,height:356,rx:78,fill:"#DDD9D2",stroke:Ot,strokeWidth:4}),
201
- /* @__PURE__ */W(I,{x:50,y:10,width:260,height:260,rx:52,fill:Ot,opacity:.3}),
202
- /* @__PURE__ */W(I,{x:50,y:35,width:260,height:260,rx:52,fill:Ot,opacity:.55}),
203
- /* @__PURE__ */W(I,{x:50,y:60,width:260,height:260,rx:52,fill:Ot}),
204
- /* @__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:Ot,children:o}),/* @__PURE__ */W(N,{x:262,y:333,fontFamily:"Manrope, Poppins, sans-serif",fontSize:10,fontWeight:"600",fill:Ot,children:"TM"})]})]})}function Oi({onBack:e,hideActions:t,backLabel:n="Category"}={}){const{theme:o,selectedCategory:r}=Xo(),i=o.colors,l=Ye(o),{width:a}=F(),c=a>=640;/* @__PURE__ */
205
- return T(z,{style:c&&ji.headerWide,children:[/* @__PURE__ */W(S,{style:[ji.sectionTitle,c&&ji.sectionTitleWide,{color:i.primary,fontFamily:l}],children:tn(r)}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t,label:e?n:void 0})]})}function Ii({onCancel:e}){const{theme:t,screenSize:n}=Xo(),o=t.colors;return e&&"mobile"!==n?/* @__PURE__ */W(z,{style:ji.footer,children:/* @__PURE__ */W(B,{onPress:e,style:[ji.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[ji.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null}function Ei({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:f,clearSelectedGame:g,selectedCategory:p,sportBaseKey:y,displaySportName:m}=Xo(),b=s.colors,w=ue(s),x=Ye(s),k=Ge(s),C=re(s),{width:v}=F(),A=v>=640,L=A?48:40,[R,M]=e.useState(null),D=qt(d),P=Object.keys(D);return u?/* @__PURE__ */W(z,{style:ji.container,children:/* @__PURE__ */W(hr,{colors:pe(s),bodyFont:k,variant:"sport",categoryCount:P.length>0?P.length:2})}):/* @__PURE__ */T(z,{style:ji.container,children:[!o&&/* @__PURE__ */W(z,{style:ji.titleWrap,children:/* @__PURE__ */W(Oi,{onBack:n,hideActions:r,backLabel:a})}),/* @__PURE__ */W(z,{style:ji.content,children:/* @__PURE__ */T(z,{style:ji.grid,children:[P.map(e=>{const n=h.find(t=>t.key===e),o=n?.active_props??D[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__ */
206
- return T(B,{onPress:()=>{f(e),g(),t?.(e)},onMouseEnter:()=>M(e),onMouseLeave:()=>M(t=>t===e?null:t),style:[ji.gridCard,A&&ji.gridCardWide,{backgroundColor:w,borderColor:d?b.primary:b.border},ji.gridCardRaised],activeOpacity:.85,children:[i?i(e):/* @__PURE__ */W(Hi,{gameKey:e,size:L,footer:null,sportBaseKey:y,title:`${s} button`}),
194
+ /* @__PURE__ */W(I,{x:2,y:2,width:356,height:356,rx:78,fill:"#DDD9D2",stroke:Et,strokeWidth:4}),
195
+ /* @__PURE__ */W(I,{x:50,y:10,width:260,height:260,rx:52,fill:Et,opacity:.3}),
196
+ /* @__PURE__ */W(I,{x:50,y:35,width:260,height:260,rx:52,fill:Et,opacity:.55}),
197
+ /* @__PURE__ */W(I,{x:50,y:60,width:260,height:260,rx:52,fill:Et}),
198
+ /* @__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:Et,children:o}),/* @__PURE__ */W(N,{x:262,y:333,fontFamily:"Manrope, Poppins, sans-serif",fontSize:10,fontWeight:"600",fill:Et,children:"TM"})]})]})}function Oi({onBack:e,hideActions:t,backLabel:n="Category"}={}){const{theme:o,selectedCategory:r}=cr(),i=o.colors,l=Ve(o),{width:a}=F(),c=a>=640;/* @__PURE__ */
199
+ return T(z,{style:c&&ji.headerWide,children:[/* @__PURE__ */W(S,{style:[ji.sectionTitle,c&&ji.sectionTitleWide,{color:i.primary,fontFamily:l}],children:on(r)}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t,label:e?n:void 0})]})}function Ii({onCancel:e}){const{theme:t,screenSize:n}=cr(),o=t.colors;return e&&"mobile"!==n?/* @__PURE__ */W(z,{style:ji.footer,children:/* @__PURE__ */W(B,{onPress:e,style:[ji.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[ji.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null}function Ei({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:f,clearSelectedGame:g,selectedCategory:p,sportBaseKey:y,displaySportName:m}=cr(),b=s.colors,w=fe(s),x=Ve(s),k=Ye(s),C=re(s),{width:v}=F(),A=v>=640,R=A?48:40,[L,D]=e.useState(null),M=Qt(d),P=Object.keys(M);return u?/* @__PURE__ */W(z,{style:ji.container,children:/* @__PURE__ */W(Kn,{colors:ye(s),bodyFont:k,variant:"sport",categoryCount:P.length>0?P.length:2})}):/* @__PURE__ */T(z,{style:ji.container,children:[!o&&/* @__PURE__ */W(z,{style:ji.titleWrap,children:/* @__PURE__ */W(Oi,{onBack:n,hideActions:r,backLabel:a})}),/* @__PURE__ */W(z,{style:ji.content,children:/* @__PURE__ */T(z,{style:ji.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=L===e,u=n?n.games_today>0:o>0;/* @__PURE__ */
200
+ return T(B,{onPress:()=>{f(e),g(),t?.(e)},...at(()=>D(e),()=>D(t=>t===e?null:t)),style:[ji.gridCard,A&&ji.gridCardWide,{backgroundColor:w,borderColor:d?b.primary:b.border},ji.gridCardRaised],activeOpacity:.85,children:[i?i(e):/* @__PURE__ */W(Hi,{gameKey:e,size:R,footer:null,sportBaseKey:y,title:`${s} button`}),
207
201
  /* @__PURE__ */T(z,{style:ji.gridText,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[ji.gridName,A&&ji.gridNameWide,{color:C,fontFamily:x}],children:s}),/* @__PURE__ */T(z,{style:ji.gridTaglineRow,children:[u?/* @__PURE__ */W(z,{style:[ji.liveDot,{backgroundColor:b.success}]}):null,/* @__PURE__ */W(S,{numberOfLines:1,style:[ji.gridMeta,{color:b.primary,fontFamily:k}],children:r})]})]}),
208
- /* @__PURE__ */W(z,{style:ji.gridChevron,children:/* @__PURE__ */W(St,{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??jt(e.key,y));/* @__PURE__ */
209
- return T(z,{style:[ji.gridCard,A&&ji.gridCardWide,{backgroundColor:Pe(b.backgroundAlt,.4),borderColor:Pe(b.border,.7)}],children:[
210
- /* @__PURE__ */W(z,{style:ji.comingSoonLogo,children:i?i(e.key):/* @__PURE__ */W(Hi,{gameKey:e.key,short:e.short,size:L,footer:null,sportBaseKey:y,title:`${e.label} button`})}),
202
+ /* @__PURE__ */W(z,{style:ji.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??Gt(e.key,y));/* @__PURE__ */
203
+ return T(z,{style:[ji.gridCard,A&&ji.gridCardWide,{backgroundColor:He(b.backgroundAlt,.4),borderColor:He(b.border,.7)}],children:[
204
+ /* @__PURE__ */W(z,{style:ji.comingSoonLogo,children:i?i(e.key):/* @__PURE__ */W(Hi,{gameKey:e.key,short:e.short,size:R,footer:null,sportBaseKey:y,title:`${e.label} button`})}),
211
205
  /* @__PURE__ */T(z,{style:ji.gridText,children:[/* @__PURE__ */W(S,{numberOfLines:1,style:[ji.gridName,A&&ji.gridNameWide,{color:b.textMuted,fontFamily:x}],children:n&&n!==t?`${t} · ${n}`:t}),/* @__PURE__ */W(S,{numberOfLines:1,style:[ji.gridMeta,ji.gridMetaSpaced,{color:b.textMuted,fontFamily:k}],children:(o=e.seasonStart,o?`Starts ${o}`:"Coming soon")})]}),
212
- /* @__PURE__ */T(z,{style:[ji.soonPill,{backgroundColor:b.backgroundAlt}],children:[/* @__PURE__ */W(Ct,{size:12,color:b.textMuted}),/* @__PURE__ */W(S,{style:[ji.soonPillText,{color:b.textMuted,fontFamily:k}],children:"Soon"})]})]},e.key);var o})]})})]})}var ji=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 Ni({onBack:e,hideActions:t}={}){const{theme:n}=Xo(),o=Ye(n),r=n.colors,{width:i}=F(),l=i>=640;/* @__PURE__ */
213
- return T(z,{style:l&&Vi.headerWide,children:[/* @__PURE__ */W(S,{style:[Vi.sectionTitle,l&&Vi.sectionTitleWide,{color:r.primary,fontFamily:o}],children:"Pick a category"}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t})]})}function Gi({onCancel:e}){const{theme:t,screenSize:n}=Xo(),o=t.colors;return e&&"mobile"!==n?/* @__PURE__ */W(z,{style:Vi.footer,children:/* @__PURE__ */W(B,{onPress:e,style:[Vi.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[Vi.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null}function Yi({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:f}=Xo(),g=a.colors,p=ue(a),y=Ge(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%";_t(c);const L=en(c);return s?/* @__PURE__ */W(z,{style:Vi.container,children:/* @__PURE__ */W(hr,{colors:pe(a),bodyFont:y,variant:"category",categoryCount:L.length>0?L.length:2})}):/* @__PURE__ */T(z,{style:Vi.container,children:[!o&&/* @__PURE__ */W(z,{style:Vi.titleWrap,children:/* @__PURE__ */W(Ni,{onBack:n,hideActions:r})}),/* @__PURE__ */W(z,{style:Vi.content,children:/* @__PURE__ */W(z,{style:[Vi.grid,b&&Vi.gridWide],onLayout:e=>v(e.nativeEvent.layout.width),children:L.map(e=>{const n=l?.(e)??function(e){return Et[e]??""}(e),o=x===e;/* @__PURE__ */
214
- return T(B,{onPress:()=>{d(e),h(null),u(),t?.(e)},onMouseEnter:()=>k(e),onMouseLeave:()=>k(t=>t===e?null:t),style:[Vi.card,b&&Vi.cardWide,{width:A,backgroundColor:p,borderColor:o?g.primary:g.border},o&&Vi.cardHovered],activeOpacity:.85,children:[/* @__PURE__ */W(zt,{label:f(e),category:e,icon:i?.(e),theme:a}),n?/* @__PURE__ */W(S,{style:[Vi.tagline,b&&Vi.taglineWide,{color:g.primary,fontFamily:y}],children:n}):null]},e)})})})]})}var Vi=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 Ui(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 Zi({name:e,renderTeamLogo:t,muted:n,headingFont:o,ink:r,wide:i}){if(!e)/* @__PURE__ */return W(S,{style:[qi.teamName,{color:n,fontFamily:o}],children:"TBC"});const l=t?.(e);/* @__PURE__ */
215
- return T(z,{style:qi.teamMark,children:[null!=l?/* @__PURE__ */W(z,{style:qi.teamLogo,children:l}):null,/* @__PURE__ */W(S,{style:[qi.teamName,i&&qi.teamNameWide,{color:r,fontFamily:o}],children:e})]})}function Ki({onSelectEvent:t}){const{theme:n,loading:o,sameGameMultiEvents:r,selectSameGameMultiEvent:i,renderTeamLogo:l,displaySportName:a}=Xo(),c=n.colors,s=Ge(n),d=Ye(n),h=ue(n),u=fe(n),{width:f}=F(),g=f>=640,[p,y]=e.useState(null),[m,b]=e.useState(null);return o?/* @__PURE__ */W(z,{style:qi.container,children:/* @__PURE__ */W(hr,{colors:pe(n),bodyFont:s,variant:"event"})}):/* @__PURE__ */T(z,{style:qi.container,accessibilityLabel:"Available fixtures",children:[/* @__PURE__ */W(S,{style:[qi.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:[qi.emptyState,{borderColor:c.border,backgroundColor:h}],children:/* @__PURE__ */W(S,{style:[qi.emptyText,{color:c.textMuted,fontFamily:s}],children:"No fixtures with available propositions."})}):/* @__PURE__ */W(z,{style:[qi.list,g&&qi.listWide],children:r.map(e=>{const n=p===e.id,o=m===e.id;/* @__PURE__ */
216
- return T(B,{accessibilityRole:"button",accessibilityLabel:`Select ${Mn(e)}`,onPress:()=>{i(e.id),t?.(e.id)},activeOpacity:.85,onMouseEnter:()=>y(e.id),onMouseLeave:()=>y(t=>t===e.id?null:t),onFocus:()=>b(e.id),onBlur:()=>b(t=>t===e.id?null:t),style:[qi.card,g&&qi.cardWide,{borderColor:n||o?c.primary:c.border,backgroundColor:h},n&&qi.cardHovered],children:[/* @__PURE__ */T(z,{style:qi.cardMain,children:[/* @__PURE__ */T(z,{style:[qi.matchup,g&&qi.matchupWide,{backgroundColor:u}],children:[
206
+ /* @__PURE__ */T(z,{style:[ji.soonPill,{backgroundColor:b.backgroundAlt}],children:[/* @__PURE__ */W(zt,{size:12,color:b.textMuted}),/* @__PURE__ */W(S,{style:[ji.soonPillText,{color:b.textMuted,fontFamily:k}],children:"Soon"})]})]},e.key);var o})]})})]})}var ji=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 Ni({onBack:e,hideActions:t}={}){const{theme:n}=cr(),o=Ve(n),r=n.colors,{width:i}=F(),l=i>=640;/* @__PURE__ */
207
+ return T(z,{style:l&&Vi.headerWide,children:[/* @__PURE__ */W(S,{style:[Vi.sectionTitle,l&&Vi.sectionTitleWide,{color:r.primary,fontFamily:o}],children:"Pick a category"}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t})]})}function Gi({onCancel:e}){const{theme:t,screenSize:n}=cr(),o=t.colors;return e&&"mobile"!==n?/* @__PURE__ */W(z,{style:Vi.footer,children:/* @__PURE__ */W(B,{onPress:e,style:[Vi.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:/* @__PURE__ */W(S,{style:[Vi.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null}function Yi({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:f}=cr(),g=a.colors,p=fe(a),y=Ye(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%";tn(c);const R=nn(c);return s?/* @__PURE__ */W(z,{style:Vi.container,children:/* @__PURE__ */W(Kn,{colors:ye(a),bodyFont:y,variant:"category",categoryCount:R.length>0?R.length:2})}):/* @__PURE__ */T(z,{style:Vi.container,children:[!o&&/* @__PURE__ */W(z,{style:Vi.titleWrap,children:/* @__PURE__ */W(Ni,{onBack:n,hideActions:r})}),/* @__PURE__ */W(z,{style:Vi.content,children:/* @__PURE__ */W(z,{style:[Vi.grid,b&&Vi.gridWide],onLayout:e=>v(e.nativeEvent.layout.width),children:R.map(e=>{const n=l?.(e)??function(e){return Nt[e]??""}(e),o=x===e;/* @__PURE__ */
208
+ return T(B,{onPress:()=>{d(e),h(null),u(),t?.(e)},...at(()=>k(e),()=>k(t=>t===e?null:t)),style:[Vi.card,b&&Vi.cardWide,{width:A,backgroundColor:p,borderColor:o?g.primary:g.border},o&&Vi.cardHovered],activeOpacity:.85,children:[/* @__PURE__ */W(vt,{label:f(e),category:e,icon:i?.(e),theme:a}),n?/* @__PURE__ */W(S,{style:[Vi.tagline,b&&Vi.taglineWide,{color:g.primary,fontFamily:y}],children:n}):null]},e)})})})]})}var Vi=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 Ui(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 Zi({name:e,renderTeamLogo:t,muted:n,headingFont:o,ink:r,wide:i}){if(!e)/* @__PURE__ */return W(S,{style:[qi.teamName,{color:n,fontFamily:o}],children:"TBC"});const l=t?.(e);/* @__PURE__ */
209
+ return T(z,{style:qi.teamMark,children:[null!=l?/* @__PURE__ */W(z,{style:qi.teamLogo,children:l}):null,/* @__PURE__ */W(S,{style:[qi.teamName,i&&qi.teamNameWide,{color:r,fontFamily:o}],children:e})]})}function Ki({onSelectEvent:t}){const{theme:n,loading:o,sameGameMultiEvents:r,selectSameGameMultiEvent:i,renderTeamLogo:l,displaySportName:a}=cr(),c=n.colors,s=Ye(n),d=Ve(n),h=fe(n),u=ge(n),{width:f}=F(),g=f>=640,[p,y]=e.useState(null),[m,b]=e.useState(null);return o?/* @__PURE__ */W(z,{style:qi.container,children:/* @__PURE__ */W(Kn,{colors:ye(n),bodyFont:s,variant:"event"})}):/* @__PURE__ */T(z,{style:qi.container,accessibilityLabel:"Available fixtures",children:[/* @__PURE__ */W(S,{style:[qi.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:[qi.emptyState,{borderColor:c.border,backgroundColor:h}],children:/* @__PURE__ */W(S,{style:[qi.emptyText,{color:c.textMuted,fontFamily:s}],children:"No fixtures with available propositions."})}):/* @__PURE__ */W(z,{style:[qi.list,g&&qi.listWide],children:r.map(e=>{const n=p===e.id,o=m===e.id;/* @__PURE__ */
210
+ return T(B,{accessibilityRole:"button",accessibilityLabel:`Select ${qn(e)}`,onPress:()=>{i(e.id),t?.(e.id)},activeOpacity:.85,...at(()=>y(e.id),()=>y(t=>t===e.id?null:t)),onFocus:()=>b(e.id),onBlur:()=>b(t=>t===e.id?null:t),style:[qi.card,g&&qi.cardWide,{borderColor:n||o?c.primary:c.border,backgroundColor:h},n&&qi.cardHovered],children:[/* @__PURE__ */T(z,{style:qi.cardMain,children:[/* @__PURE__ */T(z,{style:[qi.matchup,g&&qi.matchupWide,{backgroundColor:u}],children:[
217
211
  /* @__PURE__ */W(Zi,{name:e.homeTeam,renderTeamLogo:l,muted:c.textMuted,headingFont:d,ink:c.text,wide:g}),
218
212
  /* @__PURE__ */W(S,{style:[qi.vs,{color:c.textMuted,fontFamily:d}],children:"vs"}),
219
- /* @__PURE__ */W(Zi,{name:e.awayTeam,renderTeamLogo:l,muted:c.textMuted,headingFont:d,ink:c.text,wide:g})]}),/* @__PURE__ */T(S,{style:[qi.meta,g&&qi.metaWide,{color:c.textMuted,fontFamily:s}],children:[Ui(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(St,{size:22,color:c.textMuted})})]},e.id)})})]})}var qi=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 Xi({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,f]=c(!1),[g,p]=c(!1),[y,b]=c(null),w=a(0),x=a(null),k=a(null),[C,F]=c(null),[A,L]=c(null),R="web"===m.OS,M=36+36*e.length+12,D="up"===s||g?"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;F({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<M&&i>r)},[h,R,M]),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)||f(!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<M&&t>r),L({x:e,y:t,width:n,height:o})})},[h,R,M]);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),f(!1)},accessibilityRole:"menuitem",onMouseEnter:()=>b(e),onMouseLeave:()=>b(t=>t===e?null:t),style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:1,borderTopColor:o.border,backgroundColor: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__ */
213
+ /* @__PURE__ */W(Zi,{name:e.awayTeam,renderTeamLogo:l,muted:c.textMuted,headingFont:d,ink:c.text,wide:g})]}),/* @__PURE__ */T(S,{style:[qi.meta,g&&qi.metaWide,{color:c.textMuted,fontFamily:s}],children:[Ui(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 qi=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 Xi({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,f]=c(!1),[g,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||g?"up":"down";i(()=>{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 r=window.innerHeight-t.bottom,i=t.top;p(r<D&&i>r)},[h,L,D]),r(()=>{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)||f(!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),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),f(!1)},accessibilityRole:"menuitem",...at(()=>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__ */
220
214
  return T(z,{ref:x,style:{position:"relative",flexShrink:0},children:[
221
- /* @__PURE__ */W(Jo,{onPress:()=>{if(!n)return void f(e=>!e);const e=Date.now();if(e-w.current<280)return w.current=0,f(!1),void n();w.current=e,setTimeout(()=>{w.current&&Date.now()-w.current>=270&&(w.current=0,f(e=>!e))},290)}}),h&&R&&C&&"undefined"!=typeof document&&G(/* @__PURE__ */W("div",{ref:k,role:"menu",style:{position:"absolute",top:"up"===D?void 0:C.bottom+6,..."up"===D?{top:C.top-6,transform:"translateY(-100%)"}:null,left:"left"===l?C.left:void 0,..."right"===l?{left:C.right,transform:"up"===D?"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),
222
- /* @__PURE__ */W(Rn,{visible:h&&!R,anchor:A,onClose:()=>f(!1),flipUp:"up"===D,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})})]})}function Qi({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:f,selectedEventId:g,sameGameMultiEvents:p,selectSameGameMultiEvent:y,selectedRule:m,howToPlayMarkdown:b,maxPayouts:w}=Xo(),x=o.colors,k=rt(l),C=Bo(l??{},l?w?.[l.id]:void 0),{width:B}=F(),v=B>=640,A=Pn(l)&&!g,L=p.find(e=>e.id===g),R=l?on(l,d,m):{min:0,max:0},M=R.min,D=Pn(l)&&g?Math.min(R.max,a.length):R.max,P=M>0&&M===D,H=!(l?.allowed_propositions&&l.allowed_propositions.length>0)&&M>0&&D>M,O=P?D:D||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:D-M+1},(e,t)=>M+t).filter(e=>e<=a.length):[],N=u>0?u:M||O;/* @__PURE__ */
223
- return T(z,{style:[tl.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */T(z,{children:[/* @__PURE__ */W(S,{style:[tl.title,{fontSize:v?24:20,color:re(o),fontFamily:r}],children:A?"Choose a Game":"Select Propositions"}),l&&/* @__PURE__ */W(Zr,{onBack:g?()=>y(null):e,hideActions:n,label:L?Mn(L):l.game_name,children:k||b?.trim()?/* @__PURE__ */W(wt,{variant:"icon",content:b,panel:k,theme:o,title:`${l.game_name} — How to Play`,extra:/* @__PURE__ */W(zo,{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(Xi,{counts:j,onPick:e=>{I(e),f(),t?.()},onDoubleAction:()=>{I(N),f(),t?.()},colors:x,menuShadow:Ne(o)}):/* @__PURE__ */W(z,{style:{flexShrink:0},children:/* @__PURE__ */W(Jo,{onPress:()=>{I(),f(),t?.()}})}))]})}function Ji({onNext:e,onBack:t,hideButtons:n=!1}){const{theme:o,selectionValid:r,answeredCount:i,selectedGame:l,selectedPropositionCount:a,selectedEventId:c,propositions:s,goToConfirmation:d,selectedRule:h}=Xo(),u=o.colors,f=ue(o),g=u.textAlt??u.textMuted,{width:p}=F(),y=p>=640,m="dark"===o.colorScheme,b=l?on(l,a,h):{min:0,max:0},w=b.min,x=Pn(l)&&c?Math.min(b.max,s.length):b.max,k=!!(l?.allowed_propositions&&l.allowed_propositions.length>0),C=!k&&w>0&&x>w&&i>=w&&i<x,v=x-i,A=!k&&w>0&&x>w,L=l?A?w:x||w||l.num_propositions||0:0,R=A?x:L,M=R>0?Math.min(i/R,1):0,D=A&&x>0?w/x*100:0,P=Math.max(0,w-i),H=r&&!!e,O=0===i?"Let's get started":A&&P>0?1===P?"1 to go — almost there":`${P} to go`:C?`${v} more pick${1!==v?"s":""} available`:M>=1?"✓ All selections made":M>=.75?"Almost there!":M>=.5?"Over halfway!":M>=.25?"Getting close":"Nice start",I=A?i>=w?`${i} of maximum ${x}`:`${i} of minimum ${w}`:`${i} / ${L||s.length} picks`;/* @__PURE__ */
215
+ /* @__PURE__ */W(dr,{onPress:()=>{if(!n)return void f(e=>!e);const e=Date.now();if(e-w.current<280)return w.current=0,f(!1),void n();w.current=e,setTimeout(()=>{w.current&&Date.now()-w.current>=270&&(w.current=0,f(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),
216
+ /* @__PURE__ */W(Mn,{visible:h&&!L,anchor:A,onClose:()=>f(!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})})]})}function Qi({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:f,selectedEventId:g,sameGameMultiEvents:p,selectSameGameMultiEvent:y,selectedRule:m,howToPlayMarkdown:b,maxPayouts:w}=cr(),x=o.colors,k=it(l),C=Eo(l??{},l?w?.[l.id]:void 0),{width:B}=F(),v=B>=640,A=Qn(l)&&!g,R=p.find(e=>e.id===g),L=l?ln(l,d,m):{min:0,max:0},D=L.min,M=Qn(l)&&g?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 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__ */
217
+ return T(z,{style:[tl.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */T(z,{children:[/* @__PURE__ */W(S,{style:[tl.title,{fontSize:v?24:20,color:re(o),fontFamily:r}],children:A?"Choose a Game":"Select Propositions"}),l&&/* @__PURE__ */W(Zr,{onBack:g?()=>y(null):e,hideActions:n,label:R?qn(R):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(jo,{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(Xi,{counts:j,onPick:e=>{I(e),f(),t?.()},onDoubleAction:()=>{I(N),f(),t?.()},colors:x,menuShadow:Ge(o)}):/* @__PURE__ */W(z,{style:{flexShrink:0},children:/* @__PURE__ */W(dr,{onPress:()=>{I(),f(),t?.()}})}))]})}function Ji({onNext:e,onBack:t,hideButtons:n=!1}){const{theme:o,selectionValid:r,answeredCount:i,selectedGame:l,selectedPropositionCount:a,selectedEventId:c,propositions:s,goToConfirmation:d,selectedRule:h}=cr(),u=o.colors,f=fe(o),g=u.textAlt??u.textMuted,{width:p}=F(),y=p>=640,m="dark"===o.colorScheme,b=l?ln(l,a,h):{min:0,max:0},w=b.min,x=Qn(l)&&c?Math.min(b.max,s.length):b.max,k=!!(l?.allowed_propositions&&l.allowed_propositions.length>0),C=!k&&w>0&&x>w&&i>=w&&i<x,v=x-i,A=!k&&w>0&&x>w,R=l?A?w:x||w||l.num_propositions||0:0,L=A?x:R,D=L>0?Math.min(i/L,1):0,M=A&&x>0?w/x*100:0,P=Math.max(0,w-i),H=r&&!!e,O=0===i?"Let's get started":A&&P>0?1===P?"1 to go — almost there":`${P} to go`:C?`${v} more pick${1!==v?"s":""} available`:D>=1?"✓ All selections made":D>=.75?"Almost there!":D>=.5?"Over halfway!":D>=.25?"Getting close":"Nice start",I=A?i>=w?`${i} of maximum ${x}`:`${i} of minimum ${w}`:`${i} / ${R||s.length} picks`;/* @__PURE__ */
224
218
  return W(z,{children:/* @__PURE__ */W(z,{style:{borderWidth:1,borderColor:i>0?u.primary:u.border,borderRadius:12,overflow:"hidden",marginBottom:16,backgroundColor:f,shadowColor:"#000",shadowOpacity:m?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2},children:/* @__PURE__ */T(z,{style:{width:"100%",padding:y?20:16,backgroundColor:i>0?`${u.primary}10`:"transparent"},children:[
225
- /* @__PURE__ */T(z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:12,gap:8},children:[/* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:i>0?u.primary:g,flexShrink:0},children:I}),H?/* @__PURE__ */W(B,{onPress:()=>{d(),e?.()},style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:u.buttonPrimary},children:/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"600",color:u.buttonPrimaryText},children:["Continue with ",i]})}):/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:M>=1?u.success:u.primary,textAlign:"right",flexShrink:1},children:O})]}),
226
- /* @__PURE__ */T(z,{style:{position:"relative",width:"100%",height:8,borderRadius:999,backgroundColor:u.background,overflow:"hidden"},children:[/* @__PURE__ */W(z,{style:{height:"100%",borderRadius:999,width:`${Math.min(100*M,100)}%`,backgroundColor:r?u.success:u.primary}}),A&&/* @__PURE__ */W(z,{style:{position:"absolute",top:-1,bottom:-1,left:`${D}%`,width:2,marginLeft:-1,borderRadius:1,backgroundColor:f,borderWidth:1,borderColor:`${u.textMuted}55`}})]}),A&&/* @__PURE__ */T(z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginTop:6},children:[/* @__PURE__ */W(S,{style:{fontSize:11,color:i>=w?u.success:u.textMuted},children:i>=w?`✓ Minimum ${w} reached`:`Minimum ${w}`}),/* @__PURE__ */W(S,{style:{fontSize:11,color:u.textMuted},children:`Max ${x}`})]})]})})})}function $i({view:e,onChange:t}){const{theme:n}=Xo(),o=n.colors,r=(n,r)=>{const i=e===n;/* @__PURE__ */
219
+ /* @__PURE__ */T(z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:12,gap:8},children:[/* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:i>0?u.primary:g,flexShrink:0},children:I}),H?/* @__PURE__ */W(B,{onPress:()=>{d(),e?.()},style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:u.buttonPrimary},children:/* @__PURE__ */T(S,{style:{fontSize:12,fontWeight:"600",color:u.buttonPrimaryText},children:["Continue with ",i]})}):/* @__PURE__ */W(S,{style:{fontSize:12,fontWeight:"600",color:D>=1?u.success:u.primary,textAlign:"right",flexShrink:1},children:O})]}),
220
+ /* @__PURE__ */T(z,{style:{position:"relative",width:"100%",height:8,borderRadius:999,backgroundColor:u.background,overflow:"hidden"},children:[/* @__PURE__ */W(z,{style:{height:"100%",borderRadius:999,width:`${Math.min(100*D,100)}%`,backgroundColor:r?u.success:u.primary}}),A&&/* @__PURE__ */W(z,{style:{position:"absolute",top:-1,bottom:-1,left:`${M}%`,width:2,marginLeft:-1,borderRadius:1,backgroundColor:f,borderWidth:1,borderColor:`${u.textMuted}55`}})]}),A&&/* @__PURE__ */T(z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginTop:6},children:[/* @__PURE__ */W(S,{style:{fontSize:11,color:i>=w?u.success:u.textMuted},children:i>=w?`✓ Minimum ${w} reached`:`Minimum ${w}`}),/* @__PURE__ */W(S,{style:{fontSize:11,color:u.textMuted},children:`Max ${x}`})]})]})})})}function $i({view:e,onChange:t}){const{theme:n}=cr(),o=n.colors,r=(n,r)=>{const i=e===n;/* @__PURE__ */
227
221
  return W(B,{onPress:()=>t(n),accessibilityRole:"button",accessibilityState:{selected:i},style:[_i.option,{backgroundColor:i?o.primary:"transparent"}],children:/* @__PURE__ */W(S,{style:[_i.optionText,{color:i?o.primaryText:o.textMuted}],children:r})},n)};/* @__PURE__ */
228
- return T(z,{style:[_i.track,{backgroundColor:o.backgroundAlt,borderColor:o.border}],children:[r("list","List"),r("swipe","Swipe")]})}var _i=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 el({onNext:t,onBack:n,hideTitle:o,hideActions:r,defaultView:i="list",view:l,onViewChange:a,hideViewSwitch:c,onSwipeDragStateChange:s}){const d=Xo(),{selectedRule:h}=d,{theme:u,selectedGame:f,propositions:g,propositionsForSportPicker:p,selections:y,toggleSelection:m,loading:b,error:w,disableQuickPick:x,renderTeamLogo:k,filterSport:S,initialSport:C,gameCategory:B,selectedPropositionCount:F,handlePropositionCountChange:A,goToConfirmation:L,goBack:R,selectedCategory:M,setSelectedCategory:D,selectedSport:P,setSelectedSport:H,selectedEventId:O,propositionsForCategoryPicker:I,answeredCount:E}=d,[j,N]=e.useState(i),G=l??j,Y=e.useCallback(e=>{void 0===l&&N(e),a?.(e)},[l,a]);e.useEffect(()=>{f||(d.goToSportSelection(),n?.())},[f,d,n]);const V=e.useMemo(()=>{if(!f)return null;const{min:e,max:t}=on(f,F??void 0,h);if(e>0&&e===t)return e;const n=fi(f);return null!=F&&F>0&&("game_set"===n||"pick_your_dividend"===n||"safety_net"===n||gi(f))?F:null},[f,F]),U=e.useRef(E);e.useEffect(()=>{const e=U.current;U.current=E,null!=V&&e<V&&E===V&&(L(),t?.())},[E,V]);const Z=e.useMemo(()=>en(I??[]),[I]);e.useEffect(()=>{f&&1===Z.length&&M!==Z[0]&&D(Z[0])},[f,Z,M,D]);const K=e.useMemo(()=>{const e=/* @__PURE__ */new Set;for(const t of p??[])t.sport&&e.add(t.sport);return Array.from(e)},[p]);if(e.useEffect(()=>{f&&(Z.length>1&&!M||1===K.length&&P!==K[0]&&H(K[0]))},[f,Z,M,K,P,H]),!f)return null;const q=Z.length>1&&!M,X=!q&&K.length>1&&!P,Q=!q&&!X&&Pn(f)&&!O,J=(()=>{if(!Pn(f)||!O)return f;const e=Math.min(f.max_propositions??g.length,g.length);return{...f,max_propositions:e,allowed_propositions:f.allowed_propositions?.filter(t=>t<=e)}})(),$=()=>{R(),n?.()};/* @__PURE__ */
229
- return T(z,{style:tl.container,children:[!o&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(Qi,{onBack:r?$:void 0,onNext:r?t:void 0,hideActions:r})}),!Pn(f)&&/* @__PURE__ */W(Gr,{}),
230
- /* @__PURE__ */W(z,{style:tl.content,children:q?/* @__PURE__ */W(Yi,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>D(e)}):X?/* @__PURE__ */W(Ei,{hideTitle:!0,hideActions:!0,onSelectSport:e=>H(e)}):Q?/* @__PURE__ */W(Ki,{}):"swipe"===G?/* @__PURE__ */W(Di,{onBack:$,onNext:t,viewSwitch:c?void 0:/* @__PURE__ */W($i,{view:G,onChange:Y}),onDragStateChange:s}):/* @__PURE__ */W(v,{children:/* @__PURE__ */W(Cr,{game:J,propositions:g,selections:y,onToggleSelection:m,onNext:()=>{L(),t?.()},onBack:$,loading:b,error:w,theme:u,hideActions:!0,initialSport:S??C,renderTeamLogo:k,disableQuickPick:!0,selectedPropositionCount:F,onPropositionCountChange:A,gameCategory:B,headerExtra:c?void 0:/* @__PURE__ */W($i,{view:G,onChange:Y})})})}),!r&&!q&&!X&&!Q&&/* @__PURE__ */W(z,{style:{marginTop:24},children:/* @__PURE__ */W(Ji,{onNext:t,onBack:n})})]})}var tl=k.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function nl({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:f,onExpandedChange:g,summaryTiers:p}){const[y,m]=c(!1),b=f??y,w=null!=i&&20!==i,k=w?`$${Math.round(i)} returns`:"$20 returns",C=e.some(e=>e.payout20>0),F=!!u&&!b,A=C&&!F,L=(p??e).reduce((e,t)=>t.payout20>e?t.payout20:e,0),R=w&&L>0?L*(i/20):L,M=e.length>0?82*e.length+8*Math.max(0,e.length-1):82,D=/* @__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:[ol.labelText,{color:o.textMuted,fontFamily:r}],children:d?"Quick Pick":a})}),A&&/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:{paddingVertical:4,justifyContent:"center"},children:/* @__PURE__ */W(S,{style:[ol.labelText,{color:o.textMuted,fontFamily:r}],children:"Dividend"})}),/* @__PURE__ */W(z,{style:{paddingVertical:4,justifyContent:"center"},children:/* @__PURE__ */W(S,{style:[ol.labelText,{color:o.textMuted,fontFamily:r}],children:k})})]})]}),d?/* @__PURE__ */T(z,{style:{gap:8,alignSelf:"flex-start",width:M},children:[/* @__PURE__ */W(Xi,{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*(i/20):null;/* @__PURE__ */
231
- return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(z,{style:[ol.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[ol.tableCellText,{color:o.success}],children:[e,"/",e]})}),/* @__PURE__ */W(z,{style:[ol.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[ol.tableCellText,{color:o.primary}],children:t>0?Zt(n??t):"—"})})]},String(e))})})]}):s?/* @__PURE__ */T(z,{style:{gap:8,alignSelf:"flex-start",width:M},children:[/* @__PURE__ */W(B,{onPress:()=>n(e[0]?.count??0),style:[ol.optionButton,{paddingHorizontal:0,alignSelf:"stretch",alignItems:"center",borderColor:o.buttonPrimary??o.primary,backgroundColor:o.buttonPrimary??o.primary}],children:/* @__PURE__ */W(S,{style:[ol.optionButtonText,{color:o.buttonPrimaryText??"#ffffff",fontFamily:r}],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?Zt(w?t*(i/20):t):"—";/* @__PURE__ */
222
+ return T(z,{style:[_i.track,{backgroundColor:o.backgroundAlt,borderColor:o.border}],children:[r("list","List"),r("swipe","Swipe")]})}var _i=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 el({onNext:t,onBack:n,hideTitle:o,hideActions:r,defaultView:i="list",view:l,onViewChange:a,hideViewSwitch:c,onSwipeDragStateChange:s}){const d=cr(),{selectedRule:h}=d,{theme:u,selectedGame:f,propositions:g,propositionsForSportPicker:p,selections:y,toggleSelection:m,loading:b,error:w,disableQuickPick:x,renderTeamLogo:k,filterSport:S,initialSport:C,gameCategory:B,selectedPropositionCount:F,handlePropositionCountChange:A,goToConfirmation:R,goBack:L,selectedCategory:D,setSelectedCategory:M,selectedSport:P,setSelectedSport:H,selectedEventId:O,propositionsForCategoryPicker:I,answeredCount:E}=d,[j,N]=e.useState(i),G=l??j,Y=e.useCallback(e=>{void 0===l&&N(e),a?.(e)},[l,a]);e.useEffect(()=>{f||(d.goToSportSelection(),n?.())},[f,d,n]);const V=e.useMemo(()=>{if(!f)return null;const{min:e,max:t}=ln(f,F??void 0,h);if(e>0&&e===t)return e;const n=fi(f);return null!=F&&F>0&&("game_set"===n||"pick_your_dividend"===n||"safety_net"===n||gi(f))?F:null},[f,F]),U=e.useRef(E);e.useEffect(()=>{const e=U.current;U.current=E,null!=V&&e<V&&E===V&&(R(),t?.())},[E,V]);const Z=e.useMemo(()=>nn(I??[]),[I]);e.useEffect(()=>{f&&1===Z.length&&D!==Z[0]&&M(Z[0])},[f,Z,D,M]);const K=e.useMemo(()=>{const e=/* @__PURE__ */new Set;for(const t of p??[])t.sport&&e.add(t.sport);return Array.from(e)},[p]);if(e.useEffect(()=>{f&&(Z.length>1&&!D||1===K.length&&P!==K[0]&&H(K[0]))},[f,Z,D,K,P,H]),!f)return null;const q=Z.length>1&&!D,X=!q&&K.length>1&&!P,Q=!q&&!X&&Qn(f)&&!O,J=(()=>{if(!Qn(f)||!O)return f;const e=Math.min(f.max_propositions??g.length,g.length);return{...f,max_propositions:e,allowed_propositions:f.allowed_propositions?.filter(t=>t<=e)}})(),$=()=>{L(),n?.()};/* @__PURE__ */
223
+ return T(z,{style:tl.container,children:[!o&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(Qi,{onBack:r?$:void 0,onNext:r?t:void 0,hideActions:r})}),!Qn(f)&&/* @__PURE__ */W(Gr,{}),
224
+ /* @__PURE__ */W(z,{style:tl.content,children:q?/* @__PURE__ */W(Yi,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>M(e)}):X?/* @__PURE__ */W(Ei,{hideTitle:!0,hideActions:!0,onSelectSport:e=>H(e)}):Q?/* @__PURE__ */W(Ki,{}):"swipe"===G?/* @__PURE__ */W(Mi,{onBack:$,onNext:t,viewSwitch:c?void 0:/* @__PURE__ */W($i,{view:G,onChange:Y}),onDragStateChange:s}):/* @__PURE__ */W(v,{children:/* @__PURE__ */W(Cr,{game:J,propositions:g,selections:y,onToggleSelection:m,onNext:()=>{R(),t?.()},onBack:$,loading:b,error:w,theme:u,hideActions:!0,initialSport:S??C,renderTeamLogo:k,disableQuickPick:!0,selectedPropositionCount:F,onPropositionCountChange:A,gameCategory:B,headerExtra:c?void 0:/* @__PURE__ */W($i,{view:G,onChange:Y})})})}),!r&&!q&&!X&&!Q&&/* @__PURE__ */W(z,{style:{marginTop:24},children:/* @__PURE__ */W(Ji,{onNext:t,onBack:n})})]})}var tl=k.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function nl({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:f,onExpandedChange:g,summaryTiers:p}){const[y,m]=c(!1),b=f??y,w=null!=i&&20!==i,k=w?`$${Math.round(i)} 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*(i/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:[ol.labelText,{color:o.textMuted,fontFamily:r}],children:d?"Quick Pick":a})}),A&&/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:{paddingVertical:4,justifyContent:"center"},children:/* @__PURE__ */W(S,{style:[ol.labelText,{color:o.textMuted,fontFamily:r}],children:"Dividend"})}),/* @__PURE__ */W(z,{style:{paddingVertical:4,justifyContent:"center"},children:/* @__PURE__ */W(S,{style:[ol.labelText,{color:o.textMuted,fontFamily:r}],children:k})})]})]}),d?/* @__PURE__ */T(z,{style:{gap:8,alignSelf:"flex-start",width:D},children:[/* @__PURE__ */W(Xi,{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*(i/20):null;/* @__PURE__ */
225
+ return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(z,{style:[ol.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[ol.tableCellText,{color:o.success}],children:[e,"/",e]})}),/* @__PURE__ */W(z,{style:[ol.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[ol.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:[ol.optionButton,{paddingHorizontal:0,alignSelf:"stretch",alignItems:"center",borderColor:o.buttonPrimary??o.primary,backgroundColor:o.buttonPrimary??o.primary}],children:/* @__PURE__ */W(S,{style:[ol.optionButtonText,{color:o.buttonPrimaryText??"#ffffff",fontFamily:r}],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?qt(w?t*(i/20):t):"—";/* @__PURE__ */
232
226
  return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(z,{style:[ol.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[ol.tableCellText,{color:o.success}],children:[e,"/",e]})}),/* @__PURE__ */W(z,{style:[ol.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[ol.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__ */
233
- return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(B,{onPress:()=>n(e),accessibilityState:{selected:c},style:[ol.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:[ol.optionButtonText,{color:c?o.buttonPrimaryText??"#ffffff":o.buttonSecondaryText??o.text,fontFamily:r}],numberOfLines:1,children:l?l(e):`Multi ${e}`})}),!F&&a>0&&/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:[ol.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[ol.tableCellText,{color:o.success}],children:[e,"/",e]})}),w?null!=s&&/* @__PURE__ */W(z,{style:[ol.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[ol.tableCellText,{color:o.primary}],children:Zt(s)})}):/* @__PURE__ */W(z,{style:[ol.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[ol.tableCellText,{color:o.primary}],children:Zt(a)})})]})]},String(e))})]});/* @__PURE__ */
234
- 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:D}):/* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:{flexDirection:"row",gap:8,alignItems:"flex-start",paddingBottom:6},children:D}),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 ",
235
- /* @__PURE__ */W(S,{style:{color:o.heading??o.text??o.primary},children:Zt(R)}),
236
- /* @__PURE__ */W(S,{style:{color:o.textMuted},children:` for $${w?Math.round(i):20}`})]}),/* @__PURE__ */W(B,{onPress:()=>{return e=!b,void 0===f&&m(e),void g?.(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 ol=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 rl(e){return{game_id:e.selectedGame.id,rule_id:e.selectedRule?.id??null,proposition_ids:e.selectedPropositionIds,selections:e.selections,stake:e.betAmount}}function il({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:f}=Xo(),g=n.colors,{width:p}=F(),y=p>=640,m=r?on(r,d,f):{min:0,max:0},b=m.min,w=Pn(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}=zn(l,t);for(const r of n)c(r.id,"yes");for(const r of o)c(r.id,"no");s(t)},v=!h&&l.length>0,A=k?Array.from({length:w-b+1},(e,t)=>b+t):[],L=u>0?u:b||C;/* @__PURE__ */
237
- return T(z,{style:[cl.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */T(z,{children:[/* @__PURE__ */W(S,{style:[cl.title,{fontSize:y?24:20,color:re(n),fontFamily:o}],children:"Place Your Wager"}),r&&/* @__PURE__ */W(Zr,{onBack:e,hideActions:t,label:r.game_name})]}),v&&(A.length>1?/* @__PURE__ */W(Xi,{counts:A,onPick:e=>B(e),onDoubleAction:()=>B(L),colors:g,menuShadow:Ne(n)}):/* @__PURE__ */W(z,{style:{flexShrink:0},children:/* @__PURE__ */W(Jo,{onPress:()=>B()})}))]})}function ll({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o}){const r=Xo(),{theme:i,selectedGame:l,expectedCorrect:a,betAmount:c,submitting:s,submitError:d,canSubmit:h,payouts:u,selectedPropositionIds:f,screenSize:g}=r,p=i.colors,{width:y}=F(),m=y>=640;if(!l)return null;const b=u[a]??0,w=rn(l),x=a===f.length,k=w?.enabled&&x,C=e&&"mobile"!==g;/* @__PURE__ */
238
- return T(z,{style:cl.footer,children:[C&&/* @__PURE__ */W(lt,{theme:i,variant:"secondary",onPress:e,children:"Back"}),/* @__PURE__ */T(z,{style:cl.footerRight,children:[d?/* @__PURE__ */W(S,{style:[cl.errorText,{color:p.error}],children:d}):null,(b>0||k)&&m&&/* @__PURE__ */T(z,{style:cl.payoutInfo,children:[/* @__PURE__ */W(S,{style:[cl.payoutLabel,{color:p.textMuted}],children:"Potential winnings"}),/* @__PURE__ */T(S,{style:[cl.payoutAmount,{color:p.heading??p.text}],children:[Zt(b),k?/* @__PURE__ */W(S,{style:{color:p.warning},children:" + Jackpot"}):null]})]}),
239
- /* @__PURE__ */W(lt,{theme:i,variant:"primary",disabled:!h,onPress:async()=>{n?(await r.handleSubmit(),t?.()):o?.(rl(r))},children:n?s?"Placing…":`Place Entry (${Zt(c)})`:"Log in to place entry"})]})]})}function al({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,hideTitle:i,hideActions:l}){const a=Xo(),{theme:c,selectedGame:s,selectedPropositions:d,selections:h,propositions:u,selectedPropositionCount:f,selectedEventId:g,expectedCorrect:p,setExpectedCorrect:y,betAmount:m,setBetAmount:b,submitting:w,submitError:x,canSubmit:k,winningCounts:C,payouts:A,overloadPayouts:L,renderTeamLogo:R,userBalance:M,onRecharge:D,goBack:P,toggleSelection:H,upgradePropositionCount:O,goToSportSelection:I,selectedRule:E}=a,j=c.colors,{width:N}=F(),G=N>=640;if(r(()=>{s||(I(),e?.())},[s,I,e]),!s)return null;const Y=!!(s.allowed_propositions&&s.allowed_propositions.length>0),V=on(s,f,E),U=V.min,Z=Pn(s)&&g?Math.min(V.max,u.length):V.max,K=Object.keys(h).length,q=U>0&&K<U,X=!Y&&U>0&&Z>U&&K>=U&&K<Z,Q=Y?[...s.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(f??0)):[],J=Y&&Q.length>0&&!q,$=X||J,_=Z-K;j.textAlt??j.text;const ee=()=>{P(),e?.()},te=(Y?[...s.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===K&&e<(f??1/0)),ne=Y&&K<Math.min(...s.allowed_propositions??[1/0]),oe=Y&&q&&!ne,re=yi(s),ie=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.`}(E,C,K,A),le=null!=te?re.belowRequiredHint(te,f??U):re.belowRequiredAddOnlyHint(f??U);return r(()=>{!q||Y&&!ne||ee()},[q,Y,ne]),/* @__PURE__ */T(z,{style:cl.container,children:[!i&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(il,{onBack:e,hideActions:l})}),
240
- /* @__PURE__ */W(z,{style:cl.content,children:/* @__PURE__ */W(Ar,{game:s,propositions:d,selections:h,onToggleSelection:H,onRemoveSelection:()=>{},onSubmit:async()=>{n?(await a.handleSubmit(),t?.()):o?.(rl(a))},onBack:ee,loading:w,error:x,expectedCorrect:p,onExpectedCorrectChange:y,betAmount:m,onBetAmountChange:b,theme:c,showCustomAmount:!0,betAmountLocked:wo(s),betAmountLockedNote:"Set by your dividend ladder rung.",hideActions:!0,winningCounts:C,payouts:A,renderTeamLogo:R,canSubmit:k,authenticated:n,userBalance:M,onRecharge:D,boostBanner:/* @__PURE__ */T(v,{children:[ie&&/* @__PURE__ */T(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${j.primary}30`,backgroundColor:`${j.primary}08`,marginBottom:12},children:[/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1,color:j.textMuted,marginBottom:4},children:"How you win"}),/* @__PURE__ */W(S,{style:{fontSize:G?14:12,color:j.text},children:ie})]}),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 ",
241
- /* @__PURE__ */T(S,{style:{fontWeight:"700"},children:[K," pick",1!==K?"s":""]}),`. ${le}`]}),/* @__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:re.switchTierLabel(te)})})]})]}),$&&/* @__PURE__ */W(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${j.primary}30`,backgroundColor:`${j.primary}08`},children:J?(()=>{const e=f??K,t=L[e],n=m>0?m:20,o=null!=t&&t>0?t*(n/20):null;/* @__PURE__ */
227
+ return T(z,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[/* @__PURE__ */W(B,{onPress:()=>n(e),accessibilityState:{selected:c},style:[ol.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:[ol.optionButtonText,{color:c?o.buttonPrimaryText??"#ffffff":o.buttonSecondaryText??o.text,fontFamily:r}],numberOfLines:1,children:l?l(e):`Multi ${e}`})}),!F&&a>0&&/* @__PURE__ */T(v,{children:[/* @__PURE__ */W(z,{style:[ol.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:/* @__PURE__ */T(S,{style:[ol.tableCellText,{color:o.success}],children:[e,"/",e]})}),w?null!=s&&/* @__PURE__ */W(z,{style:[ol.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[ol.tableCellText,{color:o.primary}],children:qt(s)})}):/* @__PURE__ */W(z,{style:[ol.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:/* @__PURE__ */W(S,{style:[ol.tableCellText,{color:o.primary}],children:qt(a)})})]})]},String(e))})]});/* @__PURE__ */
228
+ 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 ",
229
+ /* @__PURE__ */W(S,{style:{color:o.heading??o.text??o.primary},children:qt(L)}),
230
+ /* @__PURE__ */W(S,{style:{color:o.textMuted},children:` for $${w?Math.round(i):20}`})]}),/* @__PURE__ */W(B,{onPress:()=>{return e=!b,void 0===f&&m(e),void g?.(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 ol=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 rl(e){return{game_id:e.selectedGame.id,rule_id:e.selectedRule?.id??null,proposition_ids:e.selectedPropositionIds,selections:e.selections,stake:e.betAmount}}function il({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:f}=cr(),g=n.colors,{width:p}=F(),y=p>=640,m=r?ln(r,d,f):{min:0,max:0},b=m.min,w=Qn(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}=vn(l,t);for(const r of n)c(r.id,"yes");for(const r of o)c(r.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__ */
231
+ return T(z,{style:[cl.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[/* @__PURE__ */T(z,{children:[/* @__PURE__ */W(S,{style:[cl.title,{fontSize:y?24:20,color:re(n),fontFamily:o}],children:"Place Your Wager"}),r&&/* @__PURE__ */W(Zr,{onBack:e,hideActions:t,label:r.game_name})]}),v&&(A.length>1?/* @__PURE__ */W(Xi,{counts:A,onPick:e=>B(e),onDoubleAction:()=>B(R),colors:g,menuShadow:Ge(n)}):/* @__PURE__ */W(z,{style:{flexShrink:0},children:/* @__PURE__ */W(dr,{onPress:()=>B()})}))]})}function ll({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o}){const r=cr(),{theme:i,selectedGame:l,expectedCorrect:a,betAmount:c,submitting:s,submitError:d,canSubmit:h,payouts:u,selectedPropositionIds:f,screenSize:g}=r,p=i.colors,{width:y}=F(),m=y>=640;if(!l)return null;const b=u[a]??0,w=an(l),x=a===f.length,k=w?.enabled&&x,C=e&&"mobile"!==g;/* @__PURE__ */
232
+ return T(z,{style:cl.footer,children:[C&&/* @__PURE__ */W(ct,{theme:i,variant:"secondary",onPress:e,children:"Back"}),/* @__PURE__ */T(z,{style:cl.footerRight,children:[d?/* @__PURE__ */W(S,{style:[cl.errorText,{color:p.error}],children:d}):null,(b>0||k)&&m&&/* @__PURE__ */T(z,{style:cl.payoutInfo,children:[/* @__PURE__ */W(S,{style:[cl.payoutLabel,{color:p.textMuted}],children:"Potential winnings"}),/* @__PURE__ */T(S,{style:[cl.payoutAmount,{color:p.heading??p.text}],children:[qt(b),k?/* @__PURE__ */W(S,{style:{color:p.warning},children:" + Jackpot"}):null]})]}),
233
+ /* @__PURE__ */W(ct,{theme:i,variant:"primary",disabled:!h,onPress:async()=>{n?(await r.handleSubmit(),t?.()):o?.(rl(r))},children:n?s?"Placing…":`Place Entry (${qt(c)})`:"Log in to place entry"})]})]})}function al({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,hideTitle:i,hideActions:l}){const a=cr(),{theme:c,selectedGame:s,selectedPropositions:d,selections:h,propositions:u,selectedPropositionCount:f,selectedEventId:g,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(r(()=>{s||(I(),e?.())},[s,I,e]),!s)return null;const Y=!!(s.allowed_propositions&&s.allowed_propositions.length>0),V=ln(s,f,E),U=V.min,Z=Qn(s)&&g?Math.min(V.max,u.length):V.max,K=Object.keys(h).length,q=U>0&&K<U,X=!Y&&U>0&&Z>U&&K>=U&&K<Z,Q=Y?[...s.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(f??0)):[],J=Y&&Q.length>0&&!q,$=X||J,_=Z-K;j.textAlt??j.text;const ee=()=>{P(),e?.()},te=(Y?[...s.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===K&&e<(f??1/0)),ne=Y&&K<Math.min(...s.allowed_propositions??[1/0]),oe=Y&&q&&!ne,re=yi(s),ie=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.`}(E,C,K,A),le=null!=te?re.belowRequiredHint(te,f??U):re.belowRequiredAddOnlyHint(f??U);return r(()=>{!q||Y&&!ne||ee()},[q,Y,ne]),/* @__PURE__ */T(z,{style:cl.container,children:[!i&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(il,{onBack:e,hideActions:l})}),
234
+ /* @__PURE__ */W(z,{style:cl.content,children:/* @__PURE__ */W(Ar,{game:s,propositions:d,selections:h,onToggleSelection:H,onRemoveSelection:()=>{},onSubmit:async()=>{n?(await a.handleSubmit(),t?.()):o?.(rl(a))},onBack:ee,loading:w,error:x,expectedCorrect:p,onExpectedCorrectChange:y,betAmount:m,onBetAmountChange:b,theme:c,showCustomAmount:!0,betAmountLocked:Mo(s),betAmountLockedNote:"Set by your dividend ladder rung.",hideActions:!0,winningCounts:C,payouts:A,renderTeamLogo:L,canSubmit:k,authenticated:n,userBalance:D,onRecharge:M,boostBanner:/* @__PURE__ */T(v,{children:[ie&&/* @__PURE__ */T(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${j.primary}30`,backgroundColor:`${j.primary}08`,marginBottom:12},children:[/* @__PURE__ */W(S,{style:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1,color:j.textMuted,marginBottom:4},children:"How you win"}),/* @__PURE__ */W(S,{style:{fontSize:G?14:12,color:j.text},children:ie})]}),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 ",
235
+ /* @__PURE__ */T(S,{style:{fontWeight:"700"},children:[K," pick",1!==K?"s":""]}),`. ${le}`]}),/* @__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:re.switchTierLabel(te)})})]})]}),$&&/* @__PURE__ */W(z,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${j.primary}30`,backgroundColor:`${j.primary}08`},children:J?(()=>{const e=f??K,t=R[e],n=m>0?m:20,o=null!=t&&t>0?t*(n/20):null;/* @__PURE__ */
242
236
  return T(z,{children:[
243
237
  /* @__PURE__ */W(S,{style:{fontSize:14,fontWeight:"600",color:j.primary,marginBottom:4},children:re.overloadTitle}),null!=o&&/* @__PURE__ */T(S,{style:{fontSize:12,color:j.textMuted,marginBottom:8},children:["Currently winning up to ",
244
- /* @__PURE__ */W(S,{style:{color:j.heading??j.text,fontWeight:"700"},children:Zt(o)}),` with ${e} picks`]}),
245
- /* @__PURE__ */W(nl,{tiers:Q.map(e=>({count:e,payout20:L[e]??0})),selectedCount:void 0,onSelect:e=>{O(e),ee()},colors:j,bodyFont:a.bodyFont,extraBetAmount:20!==n?n:void 0,columnLabel:re.tableColumnLabel,buttonLabel:re.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:[cl.errorText,{color:j.error}],children:x})}):null]})}var cl=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"}}),sl=m.select({ios:"Menlo",default:"monospace"});function dl({theme:e,value:t}){/* @__PURE__ */
246
- return W(z,{style:{alignSelf:"center",flexShrink:0,paddingHorizontal:8,paddingVertical:2,borderRadius:8,backgroundColor:"yes"===t?ae(e):ce(e)},children:/* @__PURE__ */W(S,{style:{color:"#ffffff",fontSize:10,fontWeight:"700",letterSpacing:.4,textTransform:"uppercase"},children:"yes"===t?"Yes":"No"})})}function hl({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,placedEntry:i}=Xo(),l=n.colors,{width:a}=F(),c=a>=640;/* @__PURE__ */
238
+ /* @__PURE__ */W(S,{style:{color:j.heading??j.text,fontWeight:"700"},children:qt(o)}),` with ${e} picks`]}),
239
+ /* @__PURE__ */W(nl,{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:re.tableColumnLabel,buttonLabel:re.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:[cl.errorText,{color:j.error}],children:x})}):null]})}var cl=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"}}),sl=m.select({ios:"Menlo",default:"monospace"});function dl({theme:e,value:t}){/* @__PURE__ */
240
+ return W(z,{style:{alignSelf:"center",flexShrink:0,paddingHorizontal:8,paddingVertical:2,borderRadius:8,backgroundColor:"yes"===t?ae(e):ce(e)},children:/* @__PURE__ */W(S,{style:{color:"#ffffff",fontSize:10,fontWeight:"700",letterSpacing:.4,textTransform:"uppercase"},children:"yes"===t?"Yes":"No"})})}function hl({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,placedEntry:i}=cr(),l=n.colors,{width:a}=F(),c=a>=640;/* @__PURE__ */
247
241
  return T(z,{style:gl.titleRow,children:[/* @__PURE__ */T(z,{style:gl.titleText,children:[/* @__PURE__ */W(S,{style:[gl.title,c&&gl.titleWide,{color:re(n),fontFamily:o}],children:"Entry Placed!"}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t,children:/* @__PURE__ */W(S,{style:[gl.message,{color:l.textMuted,fontFamily:r}],children:i?/* @__PURE__ */T(v,{children:["Entry"," ",
248
- /* @__PURE__ */T(S,{style:{color:l.primary,fontWeight:"600",fontFamily:sl},children:["#",i.id]})," ","successfully submitted"]}):"Your entry has been successfully submitted"})})]}),/* @__PURE__ */W(z,{style:[gl.checkCircle,c&&gl.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 ul({onPlayAgain:e,onDone:t,onShare:n}){const{theme:o,reset:r,placedEntry:i,selectedGame:l,selectedPropositions:a,selections:c,betAmount:s}=Xo();return o.colors,/* @__PURE__ */T(z,{style:gl.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 fl({onPlayAgain:t,onDone:n,onBack:o,onShare:r,hideTitle:i,hideActions:l}){const a=Xo(),{theme:c,bodyFont:s,headingFont:d,selectedGame:h,placedEntry:u,betAmount:f,selectedPropositionIds:g,selectedPropositions:p,selections:y,payouts:m,onShare:b}=a,w=c.colors,x=ue(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},L=u?.proposition_ids?u.proposition_ids.length:g.length,R=m[L]??null,M=e.useRef(!1);return e.useEffect(()=>{u&&h?M.current=!1:(a.goToSportSelection(),M.current||(M.current=!0,t?t():n?.()))},[u,h,a,t,n]),u?/* @__PURE__ */T(z,{style:gl.container,children:[!i&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(hl,{onBack:o,hideActions:l})}),/* @__PURE__ */T(z,{style:[gl.content,{gap:B?16:12}],children:[/* @__PURE__ */T(z,{style:[gl.summaryCard,B&&gl.summaryCardWide,{backgroundColor:x,borderColor:w.border},A],children:[/* @__PURE__ */T(z,{style:gl.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(Hr,{iconUrl:Xe(h),gameName:e,height:18,chipColor:w.primary,textColor:w.text,iconColor:w.primaryText,accentColor:c.brand?.accent})}):/* @__PURE__ */W(S,{numberOfLines:1,style:[gl.summaryHeading,B&&gl.summaryHeadingWide,{color:re(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:gl.statsGrid,children:[
249
- /* @__PURE__ */T(z,{style:[gl.statCell,B&&gl.statCellWide],children:[/* @__PURE__ */W(S,{style:[gl.statLabel,{color:w.textMuted,fontFamily:s}],children:"Selections"}),/* @__PURE__ */W(S,{style:[gl.statValue,{color:k,fontFamily:s}],children:L})]}),f>0&&/* @__PURE__ */T(z,{style:[gl.statCell,B&&gl.statCellWide],children:[/* @__PURE__ */W(S,{style:[gl.statLabel,{color:w.textMuted,fontFamily:s}],children:"Wager"}),/* @__PURE__ */W(S,{style:[gl.statValue,{color:k,fontFamily:s}],children:Zt(f)})]}),null!=R&&R>0&&/* @__PURE__ */T(z,{style:[gl.statCell,B&&gl.statCellWide],children:[/* @__PURE__ */W(S,{style:[gl.statLabel,{color:w.textMuted,fontFamily:s}],children:"Potential win"}),/* @__PURE__ */W(S,{style:[gl.statValue,{color:w.heading??w.text,fontWeight:"700",fontFamily:s}],children:Zt(R)})]})]})]}),p.length>0&&/* @__PURE__ */T(z,{style:[gl.summaryCard,B&&gl.summaryCardWide,{backgroundColor:x,borderColor:w.border},A],children:[/* @__PURE__ */W(S,{style:[gl.summaryHeading,B&&gl.summaryHeadingWide,{color:re(c),fontFamily:d,marginBottom:8}],children:"Your picks"}),/* @__PURE__ */W(z,{style:gl.pickList,children:p.map((e,t)=>{const n=y?.[e.id],o="yes"===n;/* @__PURE__ */
242
+ /* @__PURE__ */T(S,{style:{color:l.primary,fontWeight:"600",fontFamily:sl},children:["#",i.id]})," ","successfully submitted"]}):"Your entry has been successfully submitted"})})]}),/* @__PURE__ */W(z,{style:[gl.checkCircle,c&&gl.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 ul({onPlayAgain:e,onDone:t,onShare:n}){const{theme:o,reset:r,placedEntry:i,selectedGame:l,selectedPropositions:a,selections:c,betAmount:s}=cr();return o.colors,/* @__PURE__ */T(z,{style:gl.footer,children:[/* @__PURE__ */W(ct,{theme:o,variant:"secondary",onPress:()=>{r(),e?.()},children:"Place Another"}),t&&/* @__PURE__ */W(ct,{theme:o,variant:"primary",onPress:t,children:"Done"})]})}function fl({onPlayAgain:t,onDone:n,onBack:o,onShare:r,hideTitle:i,hideActions:l}){const a=cr(),{theme:c,bodyFont:s,headingFont:d,selectedGame:h,placedEntry:u,betAmount:f,selectedPropositionIds:g,selectedPropositions:p,selections:y,payouts:m,onShare:b}=a,w=c.colors,x=fe(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:g.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:gl.container,children:[!i&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(hl,{onBack:o,hideActions:l})}),/* @__PURE__ */T(z,{style:[gl.content,{gap:B?16:12}],children:[/* @__PURE__ */T(z,{style:[gl.summaryCard,B&&gl.summaryCardWide,{backgroundColor:x,borderColor:w.border},A],children:[/* @__PURE__ */T(z,{style:gl.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(Hr,{iconUrl:Qe(h),gameName:e,height:18,chipColor:w.primary,textColor:w.text,iconColor:w.primaryText,accentColor:c.brand?.accent})}):/* @__PURE__ */W(S,{numberOfLines:1,style:[gl.summaryHeading,B&&gl.summaryHeadingWide,{color:re(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:gl.statsGrid,children:[
243
+ /* @__PURE__ */T(z,{style:[gl.statCell,B&&gl.statCellWide],children:[/* @__PURE__ */W(S,{style:[gl.statLabel,{color:w.textMuted,fontFamily:s}],children:"Selections"}),/* @__PURE__ */W(S,{style:[gl.statValue,{color:k,fontFamily:s}],children:R})]}),f>0&&/* @__PURE__ */T(z,{style:[gl.statCell,B&&gl.statCellWide],children:[/* @__PURE__ */W(S,{style:[gl.statLabel,{color:w.textMuted,fontFamily:s}],children:"Wager"}),/* @__PURE__ */W(S,{style:[gl.statValue,{color:k,fontFamily:s}],children:qt(f)})]}),null!=L&&L>0&&/* @__PURE__ */T(z,{style:[gl.statCell,B&&gl.statCellWide],children:[/* @__PURE__ */W(S,{style:[gl.statLabel,{color:w.textMuted,fontFamily:s}],children:"Potential win"}),/* @__PURE__ */W(S,{style:[gl.statValue,{color:w.heading??w.text,fontWeight:"700",fontFamily:s}],children:qt(L)})]})]})]}),p.length>0&&/* @__PURE__ */T(z,{style:[gl.summaryCard,B&&gl.summaryCardWide,{backgroundColor:x,borderColor:w.border},A],children:[/* @__PURE__ */W(S,{style:[gl.summaryHeading,B&&gl.summaryHeadingWide,{color:re(c),fontFamily:d,marginBottom:8}],children:"Your picks"}),/* @__PURE__ */W(z,{style:gl.pickList,children:p.map((e,t)=>{const n=y?.[e.id],o="yes"===n;/* @__PURE__ */
250
244
  return T(z,{style:[gl.pickRow,{backgroundColor:w.backgroundAlt}],children:[
251
245
  /* @__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})}),
252
- /* @__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:[$t(e)?null:/* @__PURE__ */T(v,{children:[e.home_team," ",
253
- /* @__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(dl,{theme:c,value:o?"yes":"no"})]},e.id)})})]})]})]}):null}var gl=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 pl({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o}=Xo(),{width:r}=F(),i=r>=640;/* @__PURE__ */
254
- return T(z,{style:ml.header,children:[/* @__PURE__ */W(S,{style:[ml.title,{fontSize:i?24:20,color:re(n),fontFamily:o}],children:"Your Entries"}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t})]})}function yl({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:f,filterSport:g}=Xo();/* @__PURE__ */
246
+ /* @__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:[en(e)?null:/* @__PURE__ */T(v,{children:[e.home_team," ",
247
+ /* @__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(dl,{theme:c,value:o?"yes":"no"})]},e.id)})})]})]})]}):null}var gl=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 pl({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o}=cr(),{width:r}=F(),i=r>=640;/* @__PURE__ */
248
+ return T(z,{style:ml.header,children:[/* @__PURE__ */W(S,{style:[ml.title,{fontSize:i?24:20,color:re(n),fontFamily:o}],children:"Your Entries"}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t})]})}function yl({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:f,filterSport:g}=cr();/* @__PURE__ */
255
249
  return T(z,{style:ml.container,children:[!n&&/* @__PURE__ */W(z,{style:{marginBottom:24},children:/* @__PURE__ */W(pl,{onBack:t,hideActions:o})}),/* @__PURE__ */W(z,{style:ml.content,children:/* @__PURE__ */W(Er,{apiUrl:i,apiKey:l,fetchImpl:a,getAuthHeaders:c,userId:s,demoEntries:d,demoGames:h,demoPropositions:u,onSelectEntry:e,theme:r,renderTeamLogo:f,filterSport:g})})]})}var ml=k.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function bl(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 wl({ink:e,ball:t,size:n,balls:o=1}){/* @__PURE__ */
256
250
  return T(A,{width:n,height:n,viewBox:"2 12 76 62",fill:"none",children:[
257
- /* @__PURE__ */W(D,{x1:"9",y1:"18",x2:"71",y2:"18",stroke:e,strokeWidth:2.5,strokeLinecap:"round"}),
251
+ /* @__PURE__ */W(M,{x1:"9",y1:"18",x2:"71",y2:"18",stroke:e,strokeWidth:2.5,strokeLinecap:"round"}),
258
252
  /* @__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}),
259
253
  /* @__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"}),
260
- /* @__PURE__ */W(M,{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 xl({ink:e,ball:t,size:n}){/* @__PURE__ */
254
+ /* @__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 xl({ink:e,ball:t,size:n}){/* @__PURE__ */
261
255
  return T(A,{width:n,height:n,viewBox:"0 0 100 100",fill:"none",children:[
262
- /* @__PURE__ */W(L,{cx:"50",cy:"50",r:"34",stroke:e,strokeWidth:3,opacity:.9}),
263
- /* @__PURE__ */W(L,{cx:"50",cy:"50",r:"23",stroke:e,strokeWidth:3,opacity:.65}),
264
- /* @__PURE__ */W(L,{cx:"50",cy:"50",r:"8",fill:t}),
265
- /* @__PURE__ */W(D,{x1:"80",y1:"20",x2:"55",y2:"45",stroke:e,strokeWidth:4,strokeLinecap:"round"}),
256
+ /* @__PURE__ */W(R,{cx:"50",cy:"50",r:"34",stroke:e,strokeWidth:3,opacity:.9}),
257
+ /* @__PURE__ */W(R,{cx:"50",cy:"50",r:"23",stroke:e,strokeWidth:3,opacity:.65}),
258
+ /* @__PURE__ */W(R,{cx:"50",cy:"50",r:"8",fill:t}),
259
+ /* @__PURE__ */W(M,{x1:"80",y1:"20",x2:"55",y2:"45",stroke:e,strokeWidth:4,strokeLinecap:"round"}),
266
260
  /* @__PURE__ */W(H,{d:"M50 50 l8 -3 -3 8 z",fill:e})]})}function kl({ink:e,ball:t,size:n}){const o=[{x:16,h:22},{x:40,h:40},{x:64,h:60}];/* @__PURE__ */
267
261
  return T(A,{width:n,height:n,viewBox:"0 0 100 100",fill:"none",children:[
268
- /* @__PURE__ */W(D,{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)),
262
+ /* @__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)),
269
263
  /* @__PURE__ */W(H,{d:"M14 60 L38 48 L62 30 L86 14",stroke:e,strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),
270
- /* @__PURE__ */W(H,{d:"M86 14 l-9 1 M86 14 l1 9",stroke:e,strokeWidth:3,strokeLinecap:"round"})]})}function Sl({kind:e,balls:t,...n}){return"safety_net"===e?/* @__PURE__ */W(wl,{...n,balls:t}):/* @__PURE__ */W("pick"===e?kl:xl,{...n})}function Cl({kind:e,size:t=56,balls:n}){const{theme:o}=Xo(),r=o.colors,i=o.brand?.chip??r.primary,l=o.brand?.icon??r.primaryText,a=se(o);/* @__PURE__ */
271
- return W(z,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:i,borderWidth:1,borderColor:bl(l,.16),alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(Sl,{kind:e,ink:l,ball:a,balls:n,size:Math.round(.68*t)})})}function Bl({option:e,renderDividends:t}){const{theme:n}=Xo(),o=n.colors,r=Ye(n),i=o.primary,l=se(n),a=e.dividends??[];return t?/* @__PURE__ */W(v,{children:t(e)}):/* @__PURE__ */T(z,{style:Ll.dividends,children:[/* @__PURE__ */T(z,{style:Ll.dividendRow,children:[/* @__PURE__ */W(S,{style:[Ll.dividendsCaption,{color:o.textMuted}],children:"IF YOU LAND"}),/* @__PURE__ */T(S,{style:[Ll.dividendsCaption,{color:o.textMuted}],children:["$",20," RETURNS"]})]}),a.map((t,n)=>{const a=e.tierLegs?.[n];/* @__PURE__ */
272
- return T(z,{style:Ll.dividendTierRow,children:[/* @__PURE__ */T(z,{style:Ll.dividendLabelCol,children:[/* @__PURE__ */W(S,{style:[Ll.dividendLabel,{color:o.text}],children:t.label}),null!=a&&a>0&&/* @__PURE__ */T(z,{style:Ll.tierLegs,accessibilityElementsHidden:!0,importantForAccessibility:"no-hide-descendants",children:[Array.from({length:a}).map((e,t)=>/* @__PURE__ */W(z,{style:[Ll.tierLegDot,{backgroundColor:i}]},t)),0===t.misses&&/* @__PURE__ */W(z,{style:[Ll.tierLegBall,{backgroundColor:l}]})]})]}),/* @__PURE__ */W(S,{style:[Ll.dividendMult,{color:i,fontFamily:r}],children:Zt(t.payout20)})]},t.misses)})]})}function zl({option:e,renderDividends:t}){const{theme:o}=Xo(),l=o.colors,s=e.dividends??[],d=s.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[h,f]=c(!1),g=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,L=n(()=>{const e=g.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom,o=t.top,r=n<A&&o>n;b({left:t.left,top:r?t.top-6:t.bottom+6,flipUp:r})},[A]);i(()=>{if(!h||!F)return void b(null);L();const e=()=>f(!1),t=()=>L();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[h,F,L]),r(()=>{if(!h)return;if(F){const e=e=>{const t=g.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||p.current&&p.current.contains(n)||f(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}const e=g.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=u.get("window").height-(t+o);x(r<A&&t>r),C({x:e,y:t,width:n,height:o})})},[h,F,A]);const R=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?Zt(e.payout20):"—"})]},e.misses))]});/* @__PURE__ */
264
+ /* @__PURE__ */W(H,{d:"M86 14 l-9 1 M86 14 l1 9",stroke:e,strokeWidth:3,strokeLinecap:"round"})]})}function Sl({kind:e,balls:t,...n}){return"safety_net"===e?/* @__PURE__ */W(wl,{...n,balls:t}):/* @__PURE__ */W("pick"===e?kl:xl,{...n})}function Cl({kind:e,size:t=56,balls:n}){const{theme:o}=cr(),r=o.colors,i=o.brand?.chip??r.primary,l=o.brand?.icon??r.primaryText,a=se(o);/* @__PURE__ */
265
+ return W(z,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:i,borderWidth:1,borderColor:bl(l,.16),alignItems:"center",justifyContent:"center"},children:/* @__PURE__ */W(Sl,{kind:e,ink:l,ball:a,balls:n,size:Math.round(.68*t)})})}function Bl({option:e,renderDividends:t}){const{theme:n}=cr(),o=n.colors,r=Ve(n),i=o.primary,l=se(n),a=e.dividends??[];return t?/* @__PURE__ */W(v,{children:t(e)}):/* @__PURE__ */T(z,{style:Rl.dividends,children:[/* @__PURE__ */T(z,{style:Rl.dividendRow,children:[/* @__PURE__ */W(S,{style:[Rl.dividendsCaption,{color:o.textMuted}],children:"IF YOU LAND"}),/* @__PURE__ */T(S,{style:[Rl.dividendsCaption,{color:o.textMuted}],children:["$",20," RETURNS"]})]}),a.map((t,n)=>{const a=e.tierLegs?.[n];/* @__PURE__ */
266
+ return T(z,{style:Rl.dividendTierRow,children:[/* @__PURE__ */T(z,{style:Rl.dividendLabelCol,children:[/* @__PURE__ */W(S,{style:[Rl.dividendLabel,{color:o.text}],children:t.label}),null!=a&&a>0&&/* @__PURE__ */T(z,{style:Rl.tierLegs,accessibilityElementsHidden:!0,importantForAccessibility:"no-hide-descendants",children:[Array.from({length:a}).map((e,t)=>/* @__PURE__ */W(z,{style:[Rl.tierLegDot,{backgroundColor:i}]},t)),0===t.misses&&/* @__PURE__ */W(z,{style:[Rl.tierLegBall,{backgroundColor:l}]})]})]}),/* @__PURE__ */W(S,{style:[Rl.dividendMult,{color:i,fontFamily:r}],children:qt(t.payout20)})]},t.misses)})]})}function zl({option:e,renderDividends:t}){const{theme:o}=cr(),l=o.colors,s=e.dividends??[],d=s.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[h,f]=c(!1),g=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=g.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||!F)return void b(null);R();const e=()=>f(!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]),r(()=>{if(!h)return;if(F){const e=e=>{const t=g.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||p.current&&p.current.contains(n)||f(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}const e=g.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=u.get("window").height-(t+o);x(r<A&&t>r),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?qt(e.payout20):"—"})]},e.misses))]});/* @__PURE__ */
273
267
  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 ",
274
- /* @__PURE__ */W(S,{style:{color:l.heading??l.text},children:Zt(d)}),
275
- /* @__PURE__ */T(S,{style:{color:l.textMuted},children:[" for $",20]})]}):null,/* @__PURE__ */T(z,{ref:g,collapsable:!1,style:{position:"relative",alignSelf:"flex-start"},children:[/* @__PURE__ */W(B,{onPress:()=>f(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(Rn,{visible:h&&!F,anchor:k,onClose:()=>f(!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&&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:R}),document.body):null]})}function Fl({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=Xo(),i=r.colors,l=Ye(r),a=re(r),s=i.primary,d=i.selectionCard??i.backgroundAlt,{width:h}=F(),u=h>=640,f="safety_net"===e?Math.max(1,(t.detail?.length??2)-1):void 0,g=!!o||(t.dividends?.length??0)>0,p=g&&!!t.dividendsInline,[y,m]=c(!1);/* @__PURE__ */
276
- return T(z,{onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),style:[Ll.card,u&&Ll.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:Ll.cardMain,children:[
268
+ /* @__PURE__ */W(S,{style:{color:l.heading??l.text},children:qt(d)}),
269
+ /* @__PURE__ */T(S,{style:{color:l.textMuted},children:[" for $",20]})]}):null,/* @__PURE__ */T(z,{ref:g,collapsable:!1,style:{position:"relative",alignSelf:"flex-start"},children:[/* @__PURE__ */W(B,{onPress:()=>f(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(Mn,{visible:h&&!F,anchor:k,onClose:()=>f(!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 Fl({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=cr(),i=r.colors,l=Ve(r),a=re(r),s=i.primary,d=i.selectionCard??i.backgroundAlt,{width:h}=F(),u=h>=640,f="safety_net"===e?Math.max(1,(t.detail?.length??2)-1):void 0,g=!!o||(t.dividends?.length??0)>0,p=g&&!!t.dividendsInline,[y,m]=c(!1);/* @__PURE__ */
270
+ return T(z,{...at(()=>m(!0),()=>m(!1)),style:[Rl.card,u&&Rl.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:Rl.cardMain,children:[
277
271
  /* @__PURE__ */W(Cl,{kind:e,balls:f,size:60}),
278
- /* @__PURE__ */T(z,{style:Ll.cardText,children:[
279
- /* @__PURE__ */W(S,{style:[Ll.cardTitle,{color:a,fontFamily:l}],children:t.label}),t.stat?/* @__PURE__ */W(z,{style:[Ll.statChip,{backgroundColor:bl(s,.12)}],children:/* @__PURE__ */W(S,{style:[Ll.statChipText,{color:s}],children:t.stat.toUpperCase()})}):null,
280
- /* @__PURE__ */W(z,{style:Ll.detailBlock,children:t.detail?.map(e=>/* @__PURE__ */W(S,{style:[Ll.detailLine,{color:i.textMuted}],children:e},e))})]}),
281
- /* @__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"})})})]}),g?/* @__PURE__ */W(z,{style:[Ll.dividendsWrap,{borderTopColor:bl(a,.08)}],children:/* @__PURE__ */W(p?Bl:zl,{option:t,renderDividends:o})}):null]})}function vl({kind:e,highlights:t,onSelect:n,accessibilityLabel:o}){const{theme:r}=Xo(),i=r.colors,l=re(r),a=se(r),s=i.primary,d=i.selectionCard??i.backgroundAlt,{width:h}=F(),u=h>=640,[f,g]=c(!1);/* @__PURE__ */
282
- return W(z,{onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),style:[Ll.card,u&&Ll.cardWide,{backgroundColor:d,borderColor:f?s:i.border,shadowColor:f?s:"#000",shadowOpacity:f?.28:.08,shadowRadius:f?14:8,shadowOffset:{width:0,height:f?12:8},elevation:f?4:1,transform:[{translateY:f?-2:0}]}],children:/* @__PURE__ */T(B,{onPress:n,activeOpacity:.85,accessibilityRole:"button",accessibilityLabel:o,style:Ll.cardMain,children:[
272
+ /* @__PURE__ */T(z,{style:Rl.cardText,children:[
273
+ /* @__PURE__ */W(S,{style:[Rl.cardTitle,{color:a,fontFamily:l}],children:t.label}),t.stat?/* @__PURE__ */W(z,{style:[Rl.statChip,{backgroundColor:bl(s,.12)}],children:/* @__PURE__ */W(S,{style:[Rl.statChipText,{color:s}],children:t.stat.toUpperCase()})}):null,
274
+ /* @__PURE__ */W(z,{style:Rl.detailBlock,children:t.detail?.map(e=>/* @__PURE__ */W(S,{style:[Rl.detailLine,{color:i.textMuted}],children:e},e))})]}),
275
+ /* @__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"})})})]}),g?/* @__PURE__ */W(z,{style:[Rl.dividendsWrap,{borderTopColor:bl(a,.08)}],children:/* @__PURE__ */W(p?Bl:zl,{option:t,renderDividends:o})}):null]})}function vl({kind:e,highlights:t,onSelect:n,accessibilityLabel:o}){const{theme:r}=cr(),i=r.colors,l=re(r),a=se(r),s=i.primary,d=i.selectionCard??i.backgroundAlt,{width:h}=F(),u=h>=640,[f,g]=c(!1);/* @__PURE__ */
276
+ return W(z,{...at(()=>g(!0),()=>g(!1)),style:[Rl.card,u&&Rl.cardWide,{backgroundColor:d,borderColor:f?s:i.border,shadowColor:f?s:"#000",shadowOpacity:f?.28:.08,shadowRadius:f?14:8,shadowOffset:{width:0,height:f?12:8},elevation:f?4:1,transform:[{translateY:f?-2:0}]}],children:/* @__PURE__ */T(B,{onPress:n,activeOpacity:.85,accessibilityRole:"button",accessibilityLabel:o,style:Rl.cardMain,children:[
283
277
  /* @__PURE__ */W(Cl,{kind:e,size:60}),
284
- /* @__PURE__ */W(z,{style:{flex:1,minWidth:0,gap:8},children:t.map(e=>/* @__PURE__ */T(z,{style:Ll.bulletRow,children:[/* @__PURE__ */W(z,{style:[Ll.dot,{backgroundColor:a}]}),/* @__PURE__ */W(S,{style:[Ll.bulletText,{color:l}],children:e})]},e))}),
285
- /* @__PURE__ */W(z,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:f?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 Wl({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o,selectedPropositionCount:r}=Xo(),i=Ye(n),l=n.colors,a=po(o,r),{width:c}=F(),s=c<640;/* @__PURE__ */
286
- return T(z,{style:[Ll.header,s&&Ll.headerCompact],children:[/* @__PURE__ */W(S,{accessibilityRole:"header",style:[Ll.sectionTitle,s&&Ll.sectionTitleCompact,{color:l.primary,fontFamily:i}],children:a?.title??"About this game"}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t,label:o?`${o.game_name}${a?.subtitle?` · ${a.subtitle}`:""}`:void 0})]})}function Tl({onContinue:e,canContinue:t,continueLabel:n="Continue"}){const{theme:o,screenSize:r}=Xo(),i=o.colors;return e&&"mobile"!==r?/* @__PURE__ */W(z,{style:Ll.footer,children:/* @__PURE__ */W(B,{onPress:e,disabled:!t,accessibilityRole:"button",accessibilityState:{disabled:!t},style:[Ll.smallBtn,{backgroundColor:i.buttonPrimary,opacity:t?1:.45}],children:/* @__PURE__ */W(S,{style:[Ll.smallBtnText,{color:i.buttonPrimaryText}],children:n})})}):null}function Al({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:f}=Xo(),g=a.colors,p=Ye(a),y="mobile"===f,{width:m}=F(),b=m>=640,w=l(()=>o??po(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:g.textMuted,fontFamily:u},children:"No rule setup required."})});const C=w.kind,B=w.headline??w.heroTitle,v=w.continueLabel??"Continue";/* @__PURE__ */
287
- return T(z,{style:[Ll.container,{backgroundColor:g.background}],children:[t?/* @__PURE__ */W(z,{style:Ll.backRow,children:/* @__PURE__ */W(Ur,{onBack:t,label:i})}):null,/* @__PURE__ */T(ht,{style:Ll.inner,children:[n?null:/* @__PURE__ */W(S,{accessibilityRole:"header",style:[Ll.sectionTitle,Ll.sectionTitleInBody,{color:g.primary,fontFamily:p,textAlign:"center"}],children:w.title}),
288
- /* @__PURE__ */T(z,{style:Ll.headerBlock,children:[
289
- /* @__PURE__ */W(Hr,{iconUrl:Xe(c),gameName:c.game_name,height:y?24:32,chipColor:g.primary,textColor:g.text,iconColor:g.primaryText,accentColor:a.brand?.accent,compact:y}),w.subtitle?/* @__PURE__ */W(S,{style:[Ll.pickSubtitle,{color:g.textMuted}],children:w.subtitle}):null,B||w.heroTagline?/* @__PURE__ */W(S,{style:[Ll.tagline,{color:g.textMuted}],children:w.heroTagline??B}):null]}),x.length>0?/* @__PURE__ */W(z,{style:[Ll.cardList,b&&x.length>1&&Ll.cardGrid],children:x.map(e=>/* @__PURE__ */W(z,{style:b&&x.length>1?Ll.cardCell:void 0,children:/* @__PURE__ */W(Fl,{kind:C,option:e,onSelect:()=>k(e),renderDividends:r})},e.id))}):w.highlights&&w.highlights.length>0?/* @__PURE__ */W(vl,{kind:C,highlights:w.highlights,onSelect:()=>k(),accessibilityLabel:v}):null]})]})}var Ll=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 Rl(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}=Xo(),o=n.colors,r=n.brand?.chip??o.primary,i=n.brand?.icon??o.primaryText,l=se(n);/* @__PURE__ */
290
- return W(z,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:r,borderWidth:1,borderColor:Rl(i,.16),alignItems:"center",justifyContent:"center",shadowColor:r,shadowOpacity:.45,shadowRadius:9,shadowOffset:{width:0,height:4},elevation:2},children:/* @__PURE__ */W(Tn,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:i,accentColor:l})})}function Dl({eyebrow:e,iconUrl:t,gameName:n,tagline:o,style:r}){const{theme:i,screenSize:l}=Xo(),a=i.colors,c=Ye(i),s="mobile"===l,{width:d}=F(),h=d>=640;/* @__PURE__ */
278
+ /* @__PURE__ */W(z,{style:{flex:1,minWidth:0,gap:8},children:t.map(e=>/* @__PURE__ */T(z,{style:Rl.bulletRow,children:[/* @__PURE__ */W(z,{style:[Rl.dot,{backgroundColor:a}]}),/* @__PURE__ */W(S,{style:[Rl.bulletText,{color:l}],children:e})]},e))}),
279
+ /* @__PURE__ */W(z,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:f?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 Wl({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o,selectedPropositionCount:r}=cr(),i=Ve(n),l=n.colors,a=Ao(o,r),{width:c}=F(),s=c<640;/* @__PURE__ */
280
+ return T(z,{style:[Rl.header,s&&Rl.headerCompact],children:[/* @__PURE__ */W(S,{accessibilityRole:"header",style:[Rl.sectionTitle,s&&Rl.sectionTitleCompact,{color:l.primary,fontFamily:i}],children:a?.title??"About this game"}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t,label:o?`${o.game_name}${a?.subtitle?` · ${a.subtitle}`:""}`:void 0})]})}function Tl({onContinue:e,canContinue:t,continueLabel:n="Continue"}){const{theme:o,screenSize:r}=cr(),i=o.colors;return e&&"mobile"!==r?/* @__PURE__ */W(z,{style:Rl.footer,children:/* @__PURE__ */W(B,{onPress:e,disabled:!t,accessibilityRole:"button",accessibilityState:{disabled:!t},style:[Rl.smallBtn,{backgroundColor:i.buttonPrimary,opacity:t?1:.45}],children:/* @__PURE__ */W(S,{style:[Rl.smallBtnText,{color:i.buttonPrimaryText}],children:n})})}):null}function Al({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:f}=cr(),g=a.colors,p=Ve(a),y="mobile"===f,{width:m}=F(),b=m>=640,w=l(()=>o??Ao(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:g.textMuted,fontFamily:u},children:"No rule setup required."})});const C=w.kind,B=w.headline??w.heroTitle,v=w.continueLabel??"Continue";/* @__PURE__ */
281
+ return T(z,{style:[Rl.container,{backgroundColor:g.background}],children:[t?/* @__PURE__ */W(z,{style:Rl.backRow,children:/* @__PURE__ */W(Ur,{onBack:t,label:i})}):null,/* @__PURE__ */T(ft,{style:Rl.inner,children:[n?null:/* @__PURE__ */W(S,{accessibilityRole:"header",style:[Rl.sectionTitle,Rl.sectionTitleInBody,{color:g.primary,fontFamily:p,textAlign:"center"}],children:w.title}),
282
+ /* @__PURE__ */T(z,{style:Rl.headerBlock,children:[
283
+ /* @__PURE__ */W(Hr,{iconUrl:Qe(c),gameName:c.game_name,height:y?24:32,chipColor:g.primary,textColor:g.text,iconColor:g.primaryText,accentColor:a.brand?.accent,compact:y}),w.subtitle?/* @__PURE__ */W(S,{style:[Rl.pickSubtitle,{color:g.textMuted}],children:w.subtitle}):null,B||w.heroTagline?/* @__PURE__ */W(S,{style:[Rl.tagline,{color:g.textMuted}],children:w.heroTagline??B}):null]}),x.length>0?/* @__PURE__ */W(z,{style:[Rl.cardList,b&&x.length>1&&Rl.cardGrid],children:x.map(e=>/* @__PURE__ */W(z,{style:b&&x.length>1?Rl.cardCell:void 0,children:/* @__PURE__ */W(Fl,{kind:C,option:e,onSelect:()=>k(e),renderDividends:r})},e.id))}):w.highlights&&w.highlights.length>0?/* @__PURE__ */W(vl,{kind:C,highlights:w.highlights,onSelect:()=>k(),accessibilityLabel:v}):null]})]})}var Rl=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 Ll(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 Dl({iconUrl:e,size:t=56}){const{theme:n}=cr(),o=n.colors,r=n.brand?.chip??o.primary,i=n.brand?.icon??o.primaryText,l=de(r,se(n),i);/* @__PURE__ */
284
+ return W(z,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:r,borderWidth:1,borderColor:Ll(i,.16),alignItems:"center",justifyContent:"center",shadowColor:r,shadowOpacity:.45,shadowRadius:9,shadowOffset:{width:0,height:4},elevation:2},children:/* @__PURE__ */W(Rn,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:i,accentColor:l})})}function Ml({eyebrow:e,iconUrl:t,gameName:n,tagline:o,style:r}){const{theme:i,screenSize:l}=cr(),a=i.colors,c=Ve(i),s="mobile"===l,{width:d}=F(),h=d>=640;/* @__PURE__ */
291
285
  return T(z,{style:[Pl.block,h&&Pl.blockWide,r],children:[e&&h?/* @__PURE__ */W(S,{style:[Pl.eyebrow,{color:a.primary,fontFamily:c}],children:e.toUpperCase()}):null,
292
- /* @__PURE__ */W(Hr,{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:[Pl.tagline,h&&Pl.taglineWide,{color:a.textMuted}],children:o}):null]})}var Pl=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 Hl({ariaLabel:e,children:t}){const{width:n}=F();return n>=640?/* @__PURE__ */W(z,{accessibilityRole:"radiogroup",accessibilityLabel:e,style:Il.grid,children:t}):/* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,accessibilityRole:"radiogroup",accessibilityLabel:e,contentContainerStyle:Il.rail,children:t})}function Ol(e,t="21%"){return e?{flexGrow:1,flexBasis:t,minWidth:0}:{width:124,flexGrow:0,flexShrink:0}}var Il=k.create({grid:{flexDirection:"row",flexWrap:"wrap",gap:8},rail:{flexDirection:"row",gap:8,paddingBottom:4}});function El({legs:e,prizeBall:t=!0}){const{theme:n}=Xo(),o=n.colors.primary,r=se(n);/* @__PURE__ */
293
- 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 jl({tile:e,label:t,stat:n,detail:o,onSelect:r,children:i}){const{theme:l}=Xo(),a=l.colors,s=Ye(l),d=re(l),h=a.primary,u=a.selectionCard??a.backgroundAlt,{width:f}=F(),g=f>=640,[p,y]=c(!1);/* @__PURE__ */
294
- return T(z,{onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),style:[Nl.card,g&&Nl.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:[Nl.cardMain,g&&Nl.cardMainWide],children:[e,
295
- /* @__PURE__ */T(z,{style:[Nl.cardText,g&&Nl.cardTextWide],children:[/* @__PURE__ */T(z,{style:Nl.titleRow,children:[/* @__PURE__ */W(S,{style:[Nl.cardTitle,g&&Nl.cardTitleWide,{color:d,fontFamily:s}],children:t}),n?/* @__PURE__ */W(z,{style:[Nl.statChip,{backgroundColor:Rl(h,.12)}],children:/* @__PURE__ */W(S,{style:[Nl.statChipText,{color:h}],children:n.toUpperCase()})}):null]}),o&&o.length>0?/* @__PURE__ */W(z,{style:Nl.detailBlock,children:(g?o:o.slice(0,1)).map(e=>/* @__PURE__ */W(S,{style:[Nl.detailLine,g&&Nl.detailLineWide,{color:a.textMuted}],children:e},e))}):null]}),
296
- /* @__PURE__ */W(z,{style:[Nl.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:[Nl.childrenWrap,{borderTopColor:Rl(d,.08)}],children:i}):null]})}var Nl=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 Gl({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=Xo(),r=Ye(n),i=n.colors,{width:l}=F(),a=l<640;/* @__PURE__ */
297
- return T(z,{style:[Vl.header,a&&Vl.headerCompact],children:[/* @__PURE__ */W(S,{style:[Vl.sectionTitle,a&&Vl.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"The fastest multi"}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t,label:o?.game_name})]})}function Yl({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:f,quickPickGame:g,goToSportSelection:p}=Xo(),y=a.colors,m=Ge(a),b=Ye(a),w=re(a),x=ue(a),{width:k}=F(),v=k>=640,[A,L]=c(!1),R=l(()=>r??Jr(s),[r,s]),[M,D]=c(()=>R?null!=d&&R.legOptions.includes(d)?d:R.defaultLegs:8),[P,H]=c(()=>R?.defaultStake??20);if(!s||!Xr(s)||!R)/* @__PURE__ */return W(z,{style:[Vl.container,{backgroundColor:y.background}],children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No game set available."})});const O=Qr(P,M,{operatorMargin:R.operatorMargin,perLegProbability:R.perLegProbability}),I=P>=R.minStake,E=(e,t)=>/* @__PURE__ */T(z,{style:Vl.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[Vl.controlLabelText,{color:y.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[Vl.controlValueText,{color:w}],children:t})]});/* @__PURE__ */
298
- return T(z,{style:[Vl.container,{backgroundColor:y.background}],children:[n?/* @__PURE__ */W(z,{style:Vl.backRow,children:/* @__PURE__ */W(Ur,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:Vl.inner,children:[o?null:/* @__PURE__ */W(S,{style:[Vl.sectionTitle,Vl.sectionTitleInBody,v&&Vl.sectionTitleInBodyWide,{color:y.primary,fontFamily:b,textAlign:"center"}],children:"The fastest multi"}),
299
- /* @__PURE__ */W(Dl,{eyebrow:o?null:"The fastest multi",iconUrl:Xe(s),gameName:s.game_name,tagline:R.tagline}),
300
- /* @__PURE__ */T(z,{style:[Vl.ticket,v&&Vl.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[E("Legs",`${M} legs`),
301
- /* @__PURE__ */W(z,{style:Vl.chipRow,children:R.legOptions.map(e=>{const t=e===M;/* @__PURE__ */
302
- return W(B,{onPress:()=>D(e),accessibilityRole:"radio",accessibilityState:{selected:t},activeOpacity:.8,style:[Vl.chip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */W(S,{style:[Vl.chipText,{color:t?y.primaryText:y.textMuted}],children:e})},e)})}),
286
+ /* @__PURE__ */W(Hr,{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:[Pl.tagline,h&&Pl.taglineWide,{color:a.textMuted}],children:o}):null]})}var Pl=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 Hl({ariaLabel:e,children:t}){const{width:n}=F();return n>=640?/* @__PURE__ */W(z,{accessibilityRole:"radiogroup",accessibilityLabel:e,style:Il.grid,children:t}):/* @__PURE__ */W(x,{horizontal:!0,showsHorizontalScrollIndicator:!1,accessibilityRole:"radiogroup",accessibilityLabel:e,contentContainerStyle:Il.rail,children:t})}function Ol(e,t="21%"){return e?{flexGrow:1,flexBasis:t,minWidth:0}:{width:124,flexGrow:0,flexShrink:0}}var Il=k.create({grid:{flexDirection:"row",flexWrap:"wrap",gap:8},rail:{flexDirection:"row",gap:8,paddingBottom:4}});function El({legs:e,prizeBall:t=!0}){const{theme:n}=cr(),o=n.colors.primary,r=se(n);/* @__PURE__ */
287
+ 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 jl({tile:e,label:t,stat:n,detail:o,onSelect:r,children:i}){const{theme:l}=cr(),a=l.colors,s=Ve(l),d=re(l),h=a.primary,u=a.selectionCard??a.backgroundAlt,{width:f}=F(),g=f>=640,[p,y]=c(!1);/* @__PURE__ */
288
+ return T(z,{...at(()=>y(!0),()=>y(!1)),style:[Nl.card,g&&Nl.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:[Nl.cardMain,g&&Nl.cardMainWide],children:[e,
289
+ /* @__PURE__ */T(z,{style:[Nl.cardText,g&&Nl.cardTextWide],children:[/* @__PURE__ */T(z,{style:Nl.titleRow,children:[/* @__PURE__ */W(S,{style:[Nl.cardTitle,g&&Nl.cardTitleWide,{color:d,fontFamily:s}],children:t}),n?/* @__PURE__ */W(z,{style:[Nl.statChip,{backgroundColor:Ll(h,.12)}],children:/* @__PURE__ */W(S,{style:[Nl.statChipText,{color:h}],children:n.toUpperCase()})}):null]}),o&&o.length>0?/* @__PURE__ */W(z,{style:Nl.detailBlock,children:(g?o:o.slice(0,1)).map(e=>/* @__PURE__ */W(S,{style:[Nl.detailLine,g&&Nl.detailLineWide,{color:a.textMuted}],children:e},e))}):null]}),
290
+ /* @__PURE__ */W(z,{style:[Nl.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:[Nl.childrenWrap,{borderTopColor:Ll(d,.08)}],children:i}):null]})}var Nl=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 Gl({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=cr(),r=Ve(n),i=n.colors,{width:l}=F(),a=l<640;/* @__PURE__ */
291
+ return T(z,{style:[Vl.header,a&&Vl.headerCompact],children:[/* @__PURE__ */W(S,{style:[Vl.sectionTitle,a&&Vl.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"The fastest multi"}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t,label:o?.game_name})]})}function Yl({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:f,quickPickGame:g,goToSportSelection:p}=cr(),y=a.colors,m=Ye(a),b=Ve(a),w=re(a),x=fe(a),{width:k}=F(),v=k>=640,[A,R]=c(!1),L=l(()=>r??Jr(s),[r,s]),[D,M]=c(()=>L?null!=d&&L.legOptions.includes(d)?d:L.defaultLegs:8),[P,H]=c(()=>L?.defaultStake??20);if(!s||!Xr(s)||!L)/* @__PURE__ */return W(z,{style:[Vl.container,{backgroundColor:y.background}],children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No game set available."})});const O=Qr(P,D,{operatorMargin:L.operatorMargin,perLegProbability:L.perLegProbability}),I=P>=L.minStake,E=(e,t)=>/* @__PURE__ */T(z,{style:Vl.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[Vl.controlLabelText,{color:y.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[Vl.controlValueText,{color:w}],children:t})]});/* @__PURE__ */
292
+ return T(z,{style:[Vl.container,{backgroundColor:y.background}],children:[n?/* @__PURE__ */W(z,{style:Vl.backRow,children:/* @__PURE__ */W(Ur,{onBack:n,label:i})}):null,/* @__PURE__ */T(ft,{style:Vl.inner,children:[o?null:/* @__PURE__ */W(S,{style:[Vl.sectionTitle,Vl.sectionTitleInBody,v&&Vl.sectionTitleInBodyWide,{color:y.primary,fontFamily:b,textAlign:"center"}],children:"The fastest multi"}),
293
+ /* @__PURE__ */W(Ml,{eyebrow:o?null:"The fastest multi",iconUrl:Qe(s),gameName:s.game_name,tagline:L.tagline}),
294
+ /* @__PURE__ */T(z,{style:[Vl.ticket,v&&Vl.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[E("Legs",`${D} legs`),
295
+ /* @__PURE__ */W(z,{style:Vl.chipRow,children:L.legOptions.map(e=>{const t=e===D;/* @__PURE__ */
296
+ return W(B,{onPress:()=>M(e),accessibilityRole:"radio",accessibilityState:{selected:t},activeOpacity:.8,style:[Vl.chip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */W(S,{style:[Vl.chipText,{color:t?y.primaryText:y.textMuted}],children:e})},e)})}),
303
297
  /* @__PURE__ */T(z,{style:Vl.hintRow,children:[/* @__PURE__ */W(S,{style:[Vl.hintText,{color:y.textMuted}],children:"Easier to land"}),/* @__PURE__ */W(S,{style:[Vl.hintText,{color:y.textMuted}],children:"Bigger prize"})]}),
304
- /* @__PURE__ */T(z,{style:Vl.stakeBlock,children:[E("Stake",Zt(P)),
305
- /* @__PURE__ */T(z,{style:[Vl.inputWrap,{borderColor:A?y.borderFocus??y.primary:y.border,backgroundColor:y.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[Vl.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:[Vl.input,{color:y.textAlt??y.text,fontFamily:m}]})]}),
306
- /* @__PURE__ */W(z,{style:Vl.chipRow,children:R.quickStakes.map(e=>{const t=e===P;/* @__PURE__ */
307
- return W(B,{onPress:()=>H(e),activeOpacity:.8,style:[Vl.stakeChip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */T(S,{style:[Vl.chipText,{color:t?y.primaryText:y.textMuted}],children:["$",e]})},e)})}),!I&&P>0?/* @__PURE__ */T(S,{style:[Vl.errorText,{color:y.error}],children:["Minimum stake is ",Zt(R.minStake),"."]}):null]}),
308
- /* @__PURE__ */T(z,{style:[Vl.dividendBlock,{borderTopColor:Rl(w,.08)}],children:[
309
- /* @__PURE__ */T(z,{style:Vl.dividendCaptionRow,children:[/* @__PURE__ */T(S,{style:[Vl.dividendCaption,{color:y.textMuted}],children:["If all ",M," land"]}),/* @__PURE__ */T(S,{style:[Vl.dividendCaption,{color:y.textMuted}],children:[Zt(P)," returns"]})]}),
310
- /* @__PURE__ */T(z,{style:Vl.dividendMainRow,children:[/* @__PURE__ */T(z,{style:Vl.dividendMainLeft,children:[/* @__PURE__ */W(S,{style:[Vl.perfectTicket,{color:y.text}],children:"Perfect ticket"}),/* @__PURE__ */W(El,{legs:M})]}),/* @__PURE__ */W(S,{style:[Vl.prize,v&&Vl.prizeWide,{color:y.primary,fontFamily:b}],children:Zt(O.prize)})]}),
298
+ /* @__PURE__ */T(z,{style:Vl.stakeBlock,children:[E("Stake",qt(P)),
299
+ /* @__PURE__ */T(z,{style:[Vl.inputWrap,{borderColor:A?y.borderFocus??y.primary:y.border,backgroundColor:y.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[Vl.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:[Vl.input,{color:y.textAlt??y.text,fontFamily:m}]})]}),
300
+ /* @__PURE__ */W(z,{style:Vl.chipRow,children:L.quickStakes.map(e=>{const t=e===P;/* @__PURE__ */
301
+ return W(B,{onPress:()=>H(e),activeOpacity:.8,style:[Vl.stakeChip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */T(S,{style:[Vl.chipText,{color:t?y.primaryText:y.textMuted}],children:["$",e]})},e)})}),!I&&P>0?/* @__PURE__ */T(S,{style:[Vl.errorText,{color:y.error}],children:["Minimum stake is ",qt(L.minStake),"."]}):null]}),
302
+ /* @__PURE__ */T(z,{style:[Vl.dividendBlock,{borderTopColor:Ll(w,.08)}],children:[
303
+ /* @__PURE__ */T(z,{style:Vl.dividendCaptionRow,children:[/* @__PURE__ */T(S,{style:[Vl.dividendCaption,{color:y.textMuted}],children:["If all ",D," land"]}),/* @__PURE__ */T(S,{style:[Vl.dividendCaption,{color:y.textMuted}],children:[qt(P)," returns"]})]}),
304
+ /* @__PURE__ */T(z,{style:Vl.dividendMainRow,children:[/* @__PURE__ */T(z,{style:Vl.dividendMainLeft,children:[/* @__PURE__ */W(S,{style:[Vl.perfectTicket,{color:y.text}],children:"Perfect ticket"}),/* @__PURE__ */W(El,{legs:D})]}),/* @__PURE__ */W(S,{style:[Vl.prize,v&&Vl.prizeWide,{color:y.primary,fontFamily:b}],children:qt(O.prize)})]}),
311
305
  /* @__PURE__ */T(S,{style:[Vl.multipleLine,{color:y.textMuted}],children:[(j=O.multiple,`×${(Math.round(10*j)/10).toLocaleString("en-US",{maximumFractionDigits:1})}`)," your stake · total return, stake included"]}),
312
306
  /* @__PURE__ */W(S,{style:[Vl.allOrNothing,{color:y.textMuted}],children:"All or nothing. Miss a single leg and the ticket does not pay."})]})]}),
313
- /* @__PURE__ */T(z,{style:[Vl.modeCards,v&&Vl.modeCardsWide],children:[/* @__PURE__ */W(z,{style:v?Vl.modeCardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Ml,{iconUrl:Xe(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(M),u(M),f(P),p(),t?.())}})}),/* @__PURE__ */W(z,{style:v?Vl.modeCardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Ml,{iconUrl:`${Ve}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{I&&(u(M),f(P),g(s,M),e?.())}})})]})]})]});var j}var Vl=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},sectionTitleInBody:{marginBottom:16},sectionTitleInBodyWide:{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},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 Ul({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=Xo(),r=Ye(n),i=n.colors;/* @__PURE__ */
314
- return T(z,{style:Kl.titleWrap,children:[/* @__PURE__ */W(S,{style:[Kl.eyebrow,Kl.eyebrowLeft,{color:i.primary,fontFamily:r}],children:"The dividend is set"}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t,label:o?.game_name})]})}function Zl({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:f,quickPickGame:g,goToSportSelection:p}=Xo(),y=a.colors,m=Ge(a),b=Ye(a),w=re(a),x=ue(a),{width:k}=F(),C=k>=640,[v,A]=c(null),[L,R]=c(null),M=l(()=>r??Co(s),[r,s]),[D,P]=c(()=>M?.defaultDividend??1e4),[H,O]=c(()=>{const e=M?.dividends[0]?.rungs.map(e=>e.legs)??[];return null!=d&&e.includes(d)?d:M?.defaultLegs??9});if(!s||!wo(s)||!M)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No dividend series available."})});const I=M.dividends.find(e=>e.dividend===D)??M.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__ */
315
- return T(z,{style:Kl.container,children:[n?/* @__PURE__ */W(z,{style:Kl.backRow,children:/* @__PURE__ */W(Ur,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:Kl.inner,children:[
316
- /* @__PURE__ */W(Dl,{eyebrow:o?null:"Pick your dividend",iconUrl:Xe(s),gameName:s.game_name,tagline:M.tagline}),
317
- /* @__PURE__ */T(z,{style:[Kl.ticket,C&&Kl.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.12,shadowRadius:12,shadowOffset:{width:0,height:8},elevation:1}],children:[(G=Zt(I.dividend),/* @__PURE__ */T(z,{style:Kl.sectionLabelRow,children:[/* @__PURE__ */W(S,{style:[Kl.sectionLabelText,{color:y.textMuted}],children:"Set dividend"}),G?/* @__PURE__ */W(S,{style:[Kl.sectionValueText,{color:w}],children:G}):null]})),
318
- /* @__PURE__ */W(Hl,{ariaLabel:"Set dividend",children:M.dividends.map(e=>{const t=e.dividend===D,n=v===e.dividend;/* @__PURE__ */
319
- return T(B,{onPress:()=>P(e.dividend),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},onMouseEnter:()=>A(e.dividend),onMouseLeave:()=>A(null),style:[Kl.dividendTile,Ol(C),{backgroundColor:t?Rl(y.primary,.08):"transparent",borderColor:t||n?y.primary:y.border}],children:[/* @__PURE__ */W(S,{style:[Kl.dividendValue,C&&Kl.dividendValueWide,{color:w,fontFamily:b}],children:Zt(e.dividend)}),/* @__PURE__ */T(S,{style:[Kl.dividendFrom,{color:y.textMuted}],children:["from ",Zt(e.rungs[0]?.stake??0)]})]},e.dividend)})}),
307
+ /* @__PURE__ */T(z,{style:[Vl.modeCards,v&&Vl.modeCardsWide],children:[/* @__PURE__ */W(z,{style:v?Vl.modeCardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Dl,{iconUrl:Qe(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),f(P),p(),t?.())}})}),/* @__PURE__ */W(z,{style:v?Vl.modeCardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Dl,{iconUrl:`${Ue}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),f(P),g(s,D),e?.())}})})]})]})]});var j}var Vl=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},sectionTitleInBody:{marginBottom:16},sectionTitleInBodyWide:{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},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 Ul({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=cr(),r=Ve(n),i=n.colors;/* @__PURE__ */
308
+ return T(z,{style:Kl.titleWrap,children:[/* @__PURE__ */W(S,{style:[Kl.eyebrow,Kl.eyebrowLeft,{color:i.primary,fontFamily:r}],children:"The dividend is set"}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t,label:o?.game_name})]})}function Zl({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:f,quickPickGame:g,goToSportSelection:p}=cr(),y=a.colors,m=Ye(a),b=Ve(a),w=re(a),x=fe(a),{width:k}=F(),C=k>=640,[v,A]=c(null),[R,L]=c(null),D=l(()=>r??Io(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||!Mo(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__ */
309
+ return T(z,{style:Kl.container,children:[n?/* @__PURE__ */W(z,{style:Kl.backRow,children:/* @__PURE__ */W(Ur,{onBack:n,label:i})}):null,/* @__PURE__ */T(ft,{style:Kl.inner,children:[
310
+ /* @__PURE__ */W(Ml,{eyebrow:o?null:"Pick your dividend",iconUrl:Qe(s),gameName:s.game_name,tagline:D.tagline}),
311
+ /* @__PURE__ */T(z,{style:[Kl.ticket,C&&Kl.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:Kl.sectionLabelRow,children:[/* @__PURE__ */W(S,{style:[Kl.sectionLabelText,{color:y.textMuted}],children:"Set dividend"}),G?/* @__PURE__ */W(S,{style:[Kl.sectionValueText,{color:w}],children:G}):null]})),
312
+ /* @__PURE__ */W(Hl,{ariaLabel:"Set dividend",children:D.dividends.map(e=>{const t=e.dividend===M,n=v===e.dividend;/* @__PURE__ */
313
+ return T(B,{onPress:()=>P(e.dividend),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...at(()=>A(e.dividend),()=>A(null)),style:[Kl.dividendTile,Ol(C),{backgroundColor:t?Ll(y.primary,.08):"transparent",borderColor:t||n?y.primary:y.border}],children:[/* @__PURE__ */W(S,{style:[Kl.dividendValue,C&&Kl.dividendValueWide,{color:w,fontFamily:b}],children:qt(e.dividend)}),/* @__PURE__ */T(S,{style:[Kl.dividendFrom,{color:y.textMuted}],children:["from ",qt(e.rungs[0]?.stake??0)]})]},e.dividend)})}),
320
314
  /* @__PURE__ */W(S,{style:[Kl.ticketNote,{color:y.textMuted}],children:"One set amount — it does not move, whatever you spend."}),
321
- /* @__PURE__ */T(z,{style:[Kl.ladderDivider,{borderTopColor:Rl(w,.08)}],children:[
315
+ /* @__PURE__ */T(z,{style:[Kl.ladderDivider,{borderTopColor:Ll(w,.08)}],children:[
322
316
  /* @__PURE__ */T(z,{style:Kl.ladderHeaderRow,children:[/* @__PURE__ */W(S,{style:[Kl.ladderHeaderText,{color:y.textMuted}],children:"Legs to land"}),/* @__PURE__ */W(S,{style:[Kl.ladderHeaderText,{color:y.textMuted}],children:"Your stake"})]}),
323
- /* @__PURE__ */W(z,{style:Kl.rungList,children:I.rungs.map(e=>{const t=e.legs===H,n=L===e.legs;/* @__PURE__ */
324
- return T(B,{onPress:()=>O(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},onMouseEnter:()=>R(e.legs),onMouseLeave:()=>R(null),style:[Kl.rungRow,{backgroundColor:t?Rl(y.primary,.08):"transparent",borderColor:t||n?y.primary:y.border}],children:[/* @__PURE__ */T(z,{style:Kl.rungLeft,children:[/* @__PURE__ */T(S,{style:[Kl.rungLegs,{color:y.text}],children:[e.legs," legs",C?e.legs===j?" · the long climb":e.legs===N?" · the sprint":"":""]}),/* @__PURE__ */W(El,{legs:e.legs})]}),/* @__PURE__ */W(S,{style:[Kl.rungStake,C&&Kl.rungStakeWide,{color:y.primary,fontFamily:b}],children:Zt(e.stake)})]},e.legs)})}),
317
+ /* @__PURE__ */W(z,{style:Kl.rungList,children:I.rungs.map(e=>{const t=e.legs===H,n=R===e.legs;/* @__PURE__ */
318
+ return T(B,{onPress:()=>O(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...at(()=>L(e.legs),()=>L(null)),style:[Kl.rungRow,{backgroundColor:t?Ll(y.primary,.08):"transparent",borderColor:t||n?y.primary:y.border}],children:[/* @__PURE__ */T(z,{style:Kl.rungLeft,children:[/* @__PURE__ */T(S,{style:[Kl.rungLegs,{color:y.text}],children:[e.legs," legs",C?e.legs===j?" · the long climb":e.legs===N?" · the sprint":"":""]}),/* @__PURE__ */W(El,{legs:e.legs})]}),/* @__PURE__ */W(S,{style:[Kl.rungStake,C&&Kl.rungStakeWide,{color:y.primary,fontFamily:b}],children:qt(e.stake)})]},e.legs)})}),
325
319
  /* @__PURE__ */W(S,{style:[Kl.ticketNote,{color:y.textMuted}],children:"Same dividend on every rung — a little for the long climb, more for the short one."})]})]}),
326
- /* @__PURE__ */T(z,{style:[Kl.cardList,C&&Kl.cardListWide],children:[/* @__PURE__ */W(z,{style:C?Kl.cardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Ml,{iconUrl:Xe(s),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${E.legs} legs`,`${Zt(E.stake)} chasing the ${Zt(I.dividend)}`],onSelect:()=>{var e;h((e=E).legs),u(e.legs),f(e.stake),p(),t?.()}})}),/* @__PURE__ */W(z,{style:C?Kl.cardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Ml,{iconUrl:`${Ve}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${E.legs} legs at ${Zt(E.stake)}`,"Straight to the bet slip"],onSelect:()=>{u(E.legs),f(E.stake),g(s,E.legs),e?.()}})})]})]})]});var G}var Kl=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 ql({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=Xo(),r=Ye(n),i=n.colors;/* @__PURE__ */
327
- return T(z,{style:Ql.titleWrap,children:[/* @__PURE__ */W(S,{style:[Ql.eyebrow,{color:i.primary,fontFamily:r}],children:"Every step pays"}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t,label:o?.game_name})]})}function Xl({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:f,quickPickGame:g,goToSportSelection:p,screenSize:y,bodyFont:m}=Xo(),b=a.colors,w="mobile"===y,x=Ye(a),k=re(a),C=se(a),v=ue(a),{width:A}=F(),L=A>=640,[R,M]=c(null),D=l(()=>r??li(s),[r,s]),[P,H]=c(()=>D?null!=d&&D.ladders.some(e=>e.legs===d)?d:D.defaultLegs:8),[O,I]=c(()=>D?.defaultStake??50),[E,j]=c(!1);if(!s||!ti(s)||!D)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:b.textMuted,fontFamily:m},children:"No ladders available."})});const N=D.ladders.find(e=>e.legs===P)??D.ladders[0],G=oi(N,O),Y=ri(N,O),V=[...G].reverse(),U=w&&V.length>4,Z=U&&!E?V.slice(0,3):V,K=(e,t)=>/* @__PURE__ */T(z,{style:Ql.sectionLabelRow,children:[/* @__PURE__ */W(S,{style:[Ql.sectionLabelText,{color:b.textMuted}],children:e}),t?/* @__PURE__ */W(S,{style:[Ql.sectionLabelValue,{color:k}],children:t}):null]});/* @__PURE__ */
328
- return T(z,{style:[Ql.container,{backgroundColor:b.background}],children:[n?/* @__PURE__ */W(z,{style:Ql.backRow,children:/* @__PURE__ */W(Ur,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:Ql.inner,children:[
329
- /* @__PURE__ */W(Dl,{eyebrow:o?null:"Climb the ladder. Stack the prizes.",iconUrl:Xe(s),gameName:s.game_name,tagline:D.tagline}),
330
- /* @__PURE__ */T(z,{style:[Ql.builder,L&&Ql.builderWide,{backgroundColor:v,borderColor:b.border,shadowColor:k,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[K("Your bet",Zt(O)),
331
- /* @__PURE__ */W(z,{style:Ql.betRow,children:D.stakes.map(e=>{const t=e===O;/* @__PURE__ */
320
+ /* @__PURE__ */T(z,{style:[Kl.cardList,C&&Kl.cardListWide],children:[/* @__PURE__ */W(z,{style:C?Kl.cardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Dl,{iconUrl:Qe(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),f(e.stake),p(),t?.()}})}),/* @__PURE__ */W(z,{style:C?Kl.cardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Dl,{iconUrl:`${Ue}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),f(E.stake),g(s,E.legs),e?.()}})})]})]})]});var G}var Kl=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 ql({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=cr(),r=Ve(n),i=n.colors;/* @__PURE__ */
321
+ return T(z,{style:Ql.titleWrap,children:[/* @__PURE__ */W(S,{style:[Ql.eyebrow,{color:i.primary,fontFamily:r}],children:"Every step pays"}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t,label:o?.game_name})]})}function Xl({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:f,quickPickGame:g,goToSportSelection:p,screenSize:y,bodyFont:m}=cr(),b=a.colors,w="mobile"===y,x=Ve(a),k=re(a),C=se(a),v=fe(a),{width:A}=F(),R=A>=640,[L,D]=c(null),M=l(()=>r??li(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||!ti(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=oi(N,O),Y=ri(N,O),V=[...G].reverse(),U=w&&V.length>4,Z=U&&!E?V.slice(0,3):V,K=(e,t)=>/* @__PURE__ */T(z,{style:Ql.sectionLabelRow,children:[/* @__PURE__ */W(S,{style:[Ql.sectionLabelText,{color:b.textMuted}],children:e}),t?/* @__PURE__ */W(S,{style:[Ql.sectionLabelValue,{color:k}],children:t}):null]});/* @__PURE__ */
322
+ return T(z,{style:[Ql.container,{backgroundColor:b.background}],children:[n?/* @__PURE__ */W(z,{style:Ql.backRow,children:/* @__PURE__ */W(Ur,{onBack:n,label:i})}):null,/* @__PURE__ */T(ft,{style:Ql.inner,children:[
323
+ /* @__PURE__ */W(Ml,{eyebrow:o?null:"Climb the ladder. Stack the prizes.",iconUrl:Qe(s),gameName:s.game_name,tagline:M.tagline}),
324
+ /* @__PURE__ */T(z,{style:[Ql.builder,R&&Ql.builderWide,{backgroundColor:v,borderColor:b.border,shadowColor:k,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[K("Your bet",qt(O)),
325
+ /* @__PURE__ */W(z,{style:Ql.betRow,children:M.stakes.map(e=>{const t=e===O;/* @__PURE__ */
332
326
  return W(B,{onPress:()=>I(e),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},style:[Ql.betChip,{backgroundColor:t?b.primary:"transparent",borderColor:t?b.primary:b.border}],children:/* @__PURE__ */T(S,{style:[Ql.betChipText,{color:t?b.primaryText:b.textMuted}],children:["$",e]})},e)})}),
333
327
  /* @__PURE__ */W(S,{style:[Ql.betNote,{color:b.textMuted}],children:"Every prize scales with your bet."}),
334
- /* @__PURE__ */T(z,{style:Ql.laddersBlock,children:[K(`${D.ladders.length} ladders to choose from`),/* @__PURE__ */W(Hl,{ariaLabel:"Ladder",children:D.ladders.map(e=>{const t=e.legs===P,n=R===e.legs;/* @__PURE__ */
335
- return T(B,{onPress:()=>H(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},onMouseEnter:()=>M(e.legs),onMouseLeave:()=>M(null),style:[Ql.ladderTile,Ol(L,"17%"),{backgroundColor:t?Rl(b.primary,.08):"transparent",borderColor:t||n?b.primary:b.border}],children:[
328
+ /* @__PURE__ */T(z,{style:Ql.laddersBlock,children:[K(`${M.ladders.length} ladders to choose from`),/* @__PURE__ */W(Hl,{ariaLabel:"Ladder",children:M.ladders.map(e=>{const t=e.legs===P,n=L===e.legs;/* @__PURE__ */
329
+ return T(B,{onPress:()=>H(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...at(()=>D(e.legs),()=>D(null)),style:[Ql.ladderTile,Ol(R,"17%"),{backgroundColor:t?Ll(b.primary,.08):"transparent",borderColor:t||n?b.primary:b.border}],children:[
336
330
  /* @__PURE__ */T(S,{style:[Ql.ladderTileLabel,{color:b.primary}],children:["Ladder ",e.legs]}),
337
- /* @__PURE__ */W(S,{style:[Ql.ladderTilePrize,{color:k,fontFamily:x}],children:Zt(ri(e,O))}),
331
+ /* @__PURE__ */W(S,{style:[Ql.ladderTilePrize,{color:k,fontFamily:x}],children:qt(ri(e,O))}),
338
332
  /* @__PURE__ */T(S,{style:[Ql.ladderTileNote,{color:b.textMuted}],children:["Win from ",e.firstPayingTier," right"]})]},e.legs)})})]}),
339
- /* @__PURE__ */T(z,{style:[Ql.stackTable,{borderTopColor:Rl(k,.08)}],children:[
333
+ /* @__PURE__ */T(z,{style:[Ql.stackTable,{borderTopColor:Ll(k,.08)}],children:[
340
334
  /* @__PURE__ */T(S,{style:[Ql.stackIntro,{color:b.text}],children:["Ladder ",N.legs," wins from ",N.firstPayingTier," right — every tier stacks into the"," ",
341
- /* @__PURE__ */W(S,{style:{fontWeight:"700",color:k},children:Zt(Y)})," Full Stack Prize."]}),
335
+ /* @__PURE__ */W(S,{style:{fontWeight:"700",color:k},children:qt(Y)})," Full Stack Prize."]}),
342
336
  /* @__PURE__ */T(z,{style:Ql.rungHeader,children:[/* @__PURE__ */W(S,{style:[Ql.rungHeaderCaption,{color:b.textMuted}],children:"Get right"}),/* @__PURE__ */T(z,{style:Ql.rungHeaderRight,children:[/* @__PURE__ */W(S,{style:[Ql.rungHeaderCaption,Ql.rungColPrize,{color:b.textMuted}],children:"Tier pays"}),/* @__PURE__ */W(S,{style:[Ql.rungHeaderCaption,Ql.rungColTotal,{color:b.textMuted}],children:"You collect"})]})]}),
343
337
  /* @__PURE__ */W(z,{style:Ql.rungList,children:Z.map(e=>{const t=e.atLeast===N.legs;/* @__PURE__ */
344
- return T(z,{style:Ql.rungRow,children:[/* @__PURE__ */T(z,{style:Ql.rungLeft,children:[/* @__PURE__ */T(z,{style:Ql.rungLabelRow,children:[/* @__PURE__ */T(S,{style:[Ql.rungLabel,{color:b.text}],children:[e.atLeast," of ",N.legs]}),t&&L?/* @__PURE__ */W(z,{style:[Ql.fullStackChip,{backgroundColor:Rl(C,.35)}],children:/* @__PURE__ */W(S,{style:[Ql.fullStackChipText,{color:k}],children:"Full stack"})}):null]}),/* @__PURE__ */W(El,{legs:e.atLeast,prizeBall:t})]}),/* @__PURE__ */T(z,{style:Ql.rungRight,children:[/* @__PURE__ */W(S,{style:[Ql.rungPrize,Ql.rungColPrice,{color:b.textMuted}],children:Zt(e.prize)}),/* @__PURE__ */W(S,{style:[Ql.rungCumulative,Ql.rungColTotal,L&&Ql.rungCumulativeWide,{color:b.primary,fontFamily:x}],children:Zt(e.cumulative)})]})]},e.atLeast)})}),U?/* @__PURE__ */W(B,{onPress:()=>j(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:E},style:[Ql.tierToggle,{borderColor:b.border}],children:/* @__PURE__ */W(S,{style:[Ql.tierToggleText,{color:b.primary}],children:E?"Show fewer tiers":`Show all ${V.length} tiers`})}):null,
338
+ return T(z,{style:Ql.rungRow,children:[/* @__PURE__ */T(z,{style:Ql.rungLeft,children:[/* @__PURE__ */T(z,{style:Ql.rungLabelRow,children:[/* @__PURE__ */T(S,{style:[Ql.rungLabel,{color:b.text}],children:[e.atLeast," of ",N.legs]}),t&&R?/* @__PURE__ */W(z,{style:[Ql.fullStackChip,{backgroundColor:Ll(C,.35)}],children:/* @__PURE__ */W(S,{style:[Ql.fullStackChipText,{color:k}],children:"Full stack"})}):null]}),/* @__PURE__ */W(El,{legs:e.atLeast,prizeBall:t})]}),/* @__PURE__ */T(z,{style:Ql.rungRight,children:[/* @__PURE__ */W(S,{style:[Ql.rungPrize,Ql.rungColPrice,{color:b.textMuted}],children:qt(e.prize)}),/* @__PURE__ */W(S,{style:[Ql.rungCumulative,Ql.rungColTotal,R&&Ql.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:[Ql.tierToggle,{borderColor:b.border}],children:/* @__PURE__ */W(S,{style:[Ql.tierToggleText,{color:b.primary}],children:E?"Show fewer tiers":`Show all ${V.length} tiers`})}):null,
345
339
  /* @__PURE__ */T(S,{style:[Ql.stackNote,{color:b.textMuted}],children:["Land below ",N.firstPayingTier," right and the ticket does not pay."]})]})]}),
346
- /* @__PURE__ */T(z,{style:[Ql.modeCards,L&&Ql.modeCardsWide],children:[/* @__PURE__ */W(z,{style:L?Ql.modeCardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Ml,{iconUrl:Xe(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),f(O),p(),t?.()}})}),/* @__PURE__ */W(z,{style:L?Ql.modeCardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Ml,{iconUrl:`${Ve}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${N.legs} legs at ${Zt(O)}`,"Straight to the bet slip"],onSelect:()=>{u(N.legs),f(O),g(s,N.legs),e?.()}})})]})]})]})}var Ql=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 Jl({legs:e,right:t}){const{theme:n}=Xo(),o=n.colors.primary,r=se(n);/* @__PURE__ */
347
- 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:Rl(o,.45),opacity:t?.85:1}},n)),/* @__PURE__ */W(z,{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}})]})}function $l({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=Xo(),r=Ye(n),i=n.colors;/* @__PURE__ */
348
- return T(z,{style:ea.header,children:[/* @__PURE__ */W(S,{style:[ea.eyebrow,{color:i.primary,fontFamily:r}],children:"All right, or all wrong"}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t,label:o?.game_name})]})}function _l({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:f,quickPickGame:g,goToSportSelection:p}=Xo(),y=a.colors,m=Ge(a),b=Ye(a),w=re(a),x=ue(a),{width:k}=F(),v=k>=640,[A,L]=c(!1),R=l(()=>r??ui(s),[r,s]),[M,D]=c(()=>R?null!=d&&R.legOptions.includes(d)?d:R.defaultLegs:8),[P,H]=c(()=>R?.defaultStake??20);if(!s||!di(s)||!R)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No mirror available."})});const O=hi(P,M,{operatorMargin:R.operatorMargin,perLegProbability:R.perLegProbability}),I=P>=R.minStake,E=(e,t)=>/* @__PURE__ */T(z,{style:ea.controlLabel,children:[/* @__PURE__ */W(S,{style:[ea.controlLabelText,{color:y.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[ea.controlValueText,{color:w}],children:t})]}),j=e=>/* @__PURE__ */T(z,{style:ea.winRow,children:[/* @__PURE__ */T(z,{style:ea.winRowLeft,children:[/* @__PURE__ */W(S,{style:[ea.winRowLabel,{color:y.text}],children:e?`All ${M} right`:`All ${M} wrong`}),/* @__PURE__ */W(Jl,{legs:M,right:e})]}),/* @__PURE__ */W(S,{style:[ea.winRowPrize,v&&ea.winRowPrizeWide,{color:y.primary,fontFamily:b}],children:Zt(O.prize)})]});/* @__PURE__ */
349
- return T(z,{style:ea.container,children:[n?/* @__PURE__ */W(z,{style:ea.backRow,children:/* @__PURE__ */W(Ur,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:ea.inner,children:[o?null:/* @__PURE__ */W(S,{style:[ea.sectionTitle,{color:y.primary,fontFamily:b}],children:"All right, or all wrong"}),
350
- /* @__PURE__ */W(Dl,{eyebrow:o?null:"All right, or all wrong",iconUrl:Xe(s),gameName:s.game_name,tagline:R.tagline}),
351
- /* @__PURE__ */T(z,{style:[ea.ticket,v&&ea.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[E("Legs",`${M} legs`),
352
- /* @__PURE__ */W(z,{style:ea.chipRow,children:R.legOptions.map(e=>{const t=e===M;/* @__PURE__ */
353
- return W(B,{onPress:()=>D(e),accessibilityRole:"radio",accessibilityState:{selected:t},style:[ea.legChip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */W(S,{style:[ea.chipText,{color:t?y.primaryText:y.textMuted}],children:e})},e)})}),
340
+ /* @__PURE__ */T(z,{style:[Ql.modeCards,R&&Ql.modeCardsWide],children:[/* @__PURE__ */W(z,{style:R?Ql.modeCardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Dl,{iconUrl:Qe(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),f(O),p(),t?.()}})}),/* @__PURE__ */W(z,{style:R?Ql.modeCardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Dl,{iconUrl:`${Ue}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),f(O),g(s,N.legs),e?.()}})})]})]})]})}var Ql=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 Jl({legs:e,right:t}){const{theme:n}=cr(),o=n.colors.primary,r=se(n);/* @__PURE__ */
341
+ 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:Ll(o,.45),opacity:t?.85:1}},n)),/* @__PURE__ */W(z,{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}})]})}function $l({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=cr(),r=Ve(n),i=n.colors;/* @__PURE__ */
342
+ return T(z,{style:ea.header,children:[/* @__PURE__ */W(S,{style:[ea.eyebrow,{color:i.primary,fontFamily:r}],children:"All right, or all wrong"}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t,label:o?.game_name})]})}function _l({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:f,quickPickGame:g,goToSportSelection:p}=cr(),y=a.colors,m=Ye(a),b=Ve(a),w=re(a),x=fe(a),{width:k}=F(),v=k>=640,[A,R]=c(!1),L=l(()=>r??ui(s),[r,s]),[D,M]=c(()=>L?null!=d&&L.legOptions.includes(d)?d:L.defaultLegs:8),[P,H]=c(()=>L?.defaultStake??20);if(!s||!di(s)||!L)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:y.textMuted,fontFamily:m},children:"No mirror available."})});const O=hi(P,D,{operatorMargin:L.operatorMargin,perLegProbability:L.perLegProbability}),I=P>=L.minStake,E=(e,t)=>/* @__PURE__ */T(z,{style:ea.controlLabel,children:[/* @__PURE__ */W(S,{style:[ea.controlLabelText,{color:y.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[ea.controlValueText,{color:w}],children:t})]}),j=e=>/* @__PURE__ */T(z,{style:ea.winRow,children:[/* @__PURE__ */T(z,{style:ea.winRowLeft,children:[/* @__PURE__ */W(S,{style:[ea.winRowLabel,{color:y.text}],children:e?`All ${D} right`:`All ${D} wrong`}),/* @__PURE__ */W(Jl,{legs:D,right:e})]}),/* @__PURE__ */W(S,{style:[ea.winRowPrize,v&&ea.winRowPrizeWide,{color:y.primary,fontFamily:b}],children:qt(O.prize)})]});/* @__PURE__ */
343
+ return T(z,{style:ea.container,children:[n?/* @__PURE__ */W(z,{style:ea.backRow,children:/* @__PURE__ */W(Ur,{onBack:n,label:i})}):null,/* @__PURE__ */T(ft,{style:ea.inner,children:[o?null:/* @__PURE__ */W(S,{style:[ea.sectionTitle,{color:y.primary,fontFamily:b}],children:"All right, or all wrong"}),
344
+ /* @__PURE__ */W(Ml,{eyebrow:o?null:"All right, or all wrong",iconUrl:Qe(s),gameName:s.game_name,tagline:L.tagline}),
345
+ /* @__PURE__ */T(z,{style:[ea.ticket,v&&ea.ticketWide,{backgroundColor:x,borderColor:y.border,shadowColor:w,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[E("Legs",`${D} legs`),
346
+ /* @__PURE__ */W(z,{style:ea.chipRow,children:L.legOptions.map(e=>{const t=e===D;/* @__PURE__ */
347
+ return W(B,{onPress:()=>M(e),accessibilityRole:"radio",accessibilityState:{selected:t},style:[ea.legChip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */W(S,{style:[ea.chipText,{color:t?y.primaryText:y.textMuted}],children:e})},e)})}),
354
348
  /* @__PURE__ */T(z,{style:ea.hintRow,children:[/* @__PURE__ */W(S,{style:[ea.hintText,{color:y.textMuted}],children:"Easier to sweep"}),/* @__PURE__ */W(S,{style:[ea.hintText,{color:y.textMuted}],children:"Bigger prize"})]}),
355
- /* @__PURE__ */T(z,{style:ea.stakeBlock,children:[E("Stake",Zt(P)),
356
- /* @__PURE__ */T(z,{style:[ea.inputWrap,{borderColor:A?y.borderFocus??y.primary:y.border,backgroundColor:y.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[ea.inputPrefix,{color:y.textMuted}],children:"$"}),/* @__PURE__ */W(C,{keyboardType:"numeric",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:[ea.input,{color:y.textAlt??y.text,fontFamily:m}]})]}),
357
- /* @__PURE__ */W(z,{style:ea.quickStakeRow,children:R.quickStakes.map(e=>{const t=e===P;/* @__PURE__ */
358
- return W(B,{onPress:()=>H(e),style:[ea.stakeChip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */W(S,{style:[ea.chipText,{color:t?y.primaryText:y.textMuted}],children:`$${e}`})},e)})}),!I&&P>0?/* @__PURE__ */W(S,{style:[ea.errorText,{color:y.error}],children:`Minimum stake is ${Zt(R.minStake)}.`}):null]}),
359
- /* @__PURE__ */T(z,{style:[ea.winSection,{borderTopColor:Rl(w,.08)}],children:[
360
- /* @__PURE__ */T(z,{style:ea.winHeader,children:[/* @__PURE__ */W(S,{style:[ea.winHeaderText,{color:y.textMuted}],children:"Two ways to win"}),/* @__PURE__ */W(S,{style:[ea.winHeaderText,{color:y.textMuted}],children:`${Zt(P)} pays each`})]}),
349
+ /* @__PURE__ */T(z,{style:ea.stakeBlock,children:[E("Stake",qt(P)),
350
+ /* @__PURE__ */T(z,{style:[ea.inputWrap,{borderColor:A?y.borderFocus??y.primary:y.border,backgroundColor:y.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[ea.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:[ea.input,{color:y.textAlt??y.text,fontFamily:m}]})]}),
351
+ /* @__PURE__ */W(z,{style:ea.quickStakeRow,children:L.quickStakes.map(e=>{const t=e===P;/* @__PURE__ */
352
+ return W(B,{onPress:()=>H(e),style:[ea.stakeChip,{backgroundColor:t?y.primary:"transparent",borderColor:t?y.primary:y.border}],children:/* @__PURE__ */W(S,{style:[ea.chipText,{color:t?y.primaryText:y.textMuted}],children:`$${e}`})},e)})}),!I&&P>0?/* @__PURE__ */W(S,{style:[ea.errorText,{color:y.error}],children:`Minimum stake is ${qt(L.minStake)}.`}):null]}),
353
+ /* @__PURE__ */T(z,{style:[ea.winSection,{borderTopColor:Ll(w,.08)}],children:[
354
+ /* @__PURE__ */T(z,{style:ea.winHeader,children:[/* @__PURE__ */W(S,{style:[ea.winHeaderText,{color:y.textMuted}],children:"Two ways to win"}),/* @__PURE__ */W(S,{style:[ea.winHeaderText,{color:y.textMuted}],children:`${qt(P)} pays each`})]}),
361
355
  /* @__PURE__ */T(z,{style:ea.winRows,children:[j(!0),j(!1)]}),
362
356
  /* @__PURE__ */W(S,{style:[ea.splitNote,{color:y.textMuted}],children:"Anything in between — a split card — does not pay."})]})]}),
363
- /* @__PURE__ */T(z,{style:[ea.cardList,v&&ea.cardListWide],children:[/* @__PURE__ */W(z,{style:v?ea.cardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Ml,{iconUrl:Xe(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(M),u(M),f(P),p(),t?.())}})}),/* @__PURE__ */W(z,{style:v?ea.cardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Ml,{iconUrl:`${Ve}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{I&&(u(M),f(P),g(s,M),e?.())}})})]})]})]})}var ea=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%"},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16,textAlign:"center"},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 ta({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=Xo(),r=Ye(n),i=n.colors,{width:l}=F(),a=l<640;/* @__PURE__ */
364
- return T(z,{style:[oa.header,a&&oa.headerCompact],children:[/* @__PURE__ */W(S,{style:[oa.sectionTitle,a&&oa.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"Choose your safety net"}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t,label:o?.game_name})]})}function na({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:f,setSelectedRuleId:g,quickPickGame:p,goToSportSelection:y}=Xo(),m=a.colors,b=Ge(a),w=Ye(a),x=re(a),k=ue(a),{width:v}=F(),A=v>=640,[L,R]=c(!1),M=l(()=>r??ho(s),[r,s]),[D,P]=c(()=>M?.defaultModeId??"extra_shot"),[H,O]=c(()=>{const e=M?.modes.find(e=>e.id===(M?.defaultModeId??"extra_shot"));return e?null!=d&&e.legOptions.includes(d)?d:e.defaultLegs:8}),[I,E]=c(()=>M?.defaultStake??20);if(!s||!eo(s)||!M)/* @__PURE__ */return W(z,{style:[oa.container,{backgroundColor:m.background}],children:/* @__PURE__ */W(S,{style:{color:m.textMuted,fontFamily:b},children:"No safety net available."})});const j=M.modes.find(e=>e.id===D)??M.modes[0],N=ro(I,H,j.allowedMisses,M.pricing),G=e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==M.maxStake?Math.min(t,M.maxStake):t},Y=I>=M.minStake,V=(e,t)=>/* @__PURE__ */T(z,{style:oa.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[oa.controlLabelText,{color:m.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[oa.controlValueText,{color:x}],children:t})]}),U=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:o,accessibilityRole:"radio",accessibilityState:{selected:n},activeOpacity:.8,style:[oa.chip,{backgroundColor:n?m.primary:"transparent",borderColor:n?m.primary:m.border}],children:/* @__PURE__ */W(S,{style:[oa.chipText,{color:n?m.primaryText:m.textMuted}],children:t})},e),Z=[{label:"Perfect",amount:N.perfect},...N.nearMiss.map((e,t)=>({label:`All but ${t+1}`,amount:e}))];/* @__PURE__ */
365
- return T(z,{style:[oa.container,{backgroundColor:m.background}],children:[n?/* @__PURE__ */W(z,{style:oa.backRow,children:/* @__PURE__ */W(Ur,{onBack:n,label:i})}):null,/* @__PURE__ */T(ht,{style:oa.inner,children:[o?null:/* @__PURE__ */W(S,{style:[oa.sectionTitle,oa.sectionTitleInBody,A&&oa.sectionTitleInBodyWide,{color:m.primary,fontFamily:w,textAlign:"center"}],children:"Choose your safety net"}),
366
- /* @__PURE__ */W(Dl,{eyebrow:o?null:"Choose your safety net",iconUrl:Xe(s),gameName:s.game_name,tagline:M.tagline}),
357
+ /* @__PURE__ */T(z,{style:[ea.cardList,v&&ea.cardListWide],children:[/* @__PURE__ */W(z,{style:v?ea.cardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Dl,{iconUrl:Qe(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),f(P),p(),t?.())}})}),/* @__PURE__ */W(z,{style:v?ea.cardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Dl,{iconUrl:`${Ue}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),f(P),g(s,D),e?.())}})})]})]})]})}var ea=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%"},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16,textAlign:"center"},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 ta({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=cr(),r=Ve(n),i=n.colors,{width:l}=F(),a=l<640;/* @__PURE__ */
358
+ return T(z,{style:[oa.header,a&&oa.headerCompact],children:[/* @__PURE__ */W(S,{style:[oa.sectionTitle,a&&oa.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"Choose your safety net"}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t,label:o?.game_name})]})}function na({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:f,setSelectedRuleId:g,quickPickGame:p,goToSportSelection:y}=cr(),m=a.colors,b=Ye(a),w=Ve(a),x=re(a),k=fe(a),{width:v}=F(),A=v>=640,[R,L]=c(!1),D=l(()=>r??Fo(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||!yo(s)||!D)/* @__PURE__ */return W(z,{style:[oa.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=xo(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:oa.controlLabelRow,children:[/* @__PURE__ */W(S,{style:[oa.controlLabelText,{color:m.textMuted}],children:e}),/* @__PURE__ */W(S,{style:[oa.controlValueText,{color:x}],children:t})]}),U=(e,t,n,o)=>/* @__PURE__ */W(B,{onPress:o,accessibilityRole:"radio",accessibilityState:{selected:n},activeOpacity:.8,style:[oa.chip,{backgroundColor:n?m.primary:"transparent",borderColor:n?m.primary:m.border}],children:/* @__PURE__ */W(S,{style:[oa.chipText,{color:n?m.primaryText:m.textMuted}],children:t})},e),Z=[{label:"Perfect",amount:N.perfect},...N.nearMiss.map((e,t)=>({label:`All but ${t+1}`,amount:e}))];/* @__PURE__ */
359
+ return T(z,{style:[oa.container,{backgroundColor:m.background}],children:[n?/* @__PURE__ */W(z,{style:oa.backRow,children:/* @__PURE__ */W(Ur,{onBack:n,label:i})}):null,/* @__PURE__ */T(ft,{style:oa.inner,children:[o?null:/* @__PURE__ */W(S,{style:[oa.sectionTitle,oa.sectionTitleInBody,A&&oa.sectionTitleInBodyWide,{color:m.primary,fontFamily:w,textAlign:"center"}],children:"Choose your safety net"}),
360
+ /* @__PURE__ */W(Ml,{eyebrow:o?null:"Choose your safety net",iconUrl:Qe(s),gameName:s.game_name,tagline:D.tagline}),
367
361
  /* @__PURE__ */T(z,{style:[oa.ticket,A&&oa.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),
368
- /* @__PURE__ */W(z,{style:oa.chipRow,children:M.modes.map(e=>U(e.id,e.label,e.id===j.id,()=>(e=>{const t=M.modes.find(t=>t.id===e);t&&(P(e),g(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)))}),
362
+ /* @__PURE__ */W(z,{style:oa.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),g(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)))}),
369
363
  /* @__PURE__ */W(S,{style:[oa.modeExplain,A&&oa.modeExplainWide,{color:m.textMuted}],children:j.explain}),
370
364
  /* @__PURE__ */T(z,{style:oa.legsBlock,children:[V("Legs",`${H} legs`),
371
365
  /* @__PURE__ */W(z,{style:oa.chipRow,children:j.legOptions.map(e=>U(e,String(e),e===H,()=>O(e)))}),
372
366
  /* @__PURE__ */T(z,{style:oa.hintRow,children:[/* @__PURE__ */W(S,{style:[oa.hintText,{color:m.textMuted}],children:"Easier to land"}),/* @__PURE__ */W(S,{style:[oa.hintText,{color:m.textMuted}],children:"Bigger prizes"})]})]}),
373
- /* @__PURE__ */T(z,{style:oa.stakeBlock,children:[V("Stake",Zt(I)),
374
- /* @__PURE__ */T(z,{style:[oa.inputWrap,{borderColor:L?m.borderFocus??m.primary:m.border,backgroundColor:m.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[oa.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:[oa.input,{color:m.textAlt??m.text,fontFamily:b}]})]}),
375
- /* @__PURE__ */W(z,{style:oa.chipRow,children:M.quickAdds.map(e=>/* @__PURE__ */W(B,{onPress:()=>E(G((I||0)+e)),activeOpacity:.8,style:[oa.stakeChip,{backgroundColor:"transparent",borderColor:m.border}],children:/* @__PURE__ */T(S,{style:[oa.chipText,{color:m.textMuted}],children:["+$",e]})},e))}),!Y&&I>0?/* @__PURE__ */T(S,{style:[oa.errorText,{color:m.error}],children:["Minimum stake is ",Zt(M.minStake),"."]}):null]}),
376
- /* @__PURE__ */T(z,{style:[oa.prizeBlock,{borderTopColor:Rl(x,.08)}],children:[
377
- /* @__PURE__ */T(z,{style:oa.prizeCaptionRow,children:[/* @__PURE__ */W(S,{style:[oa.prizeCaption,{color:m.textMuted}],children:"What you can win"}),/* @__PURE__ */T(S,{style:[oa.prizeCaption,{color:m.textMuted}],children:[Zt(I)," returns"]})]}),
378
- /* @__PURE__ */T(z,{style:oa.prizeRows,children:[Z.map(e=>/* @__PURE__ */T(z,{style:oa.prizeRow,children:[/* @__PURE__ */W(S,{style:[oa.prizeRowLabel,A&&oa.prizeRowLabelWide,{color:m.text}],children:e.label}),/* @__PURE__ */W(S,{style:[oa.prizeRowAmount,A&&oa.prizeRowAmountWide,{color:m.primary,fontFamily:w}],children:Zt(Math.round(e.amount))})]},e.label)),/* @__PURE__ */T(z,{style:[oa.sweepRow,{backgroundColor:m.primary}],children:[/* @__PURE__ */T(z,{style:oa.sweepLeft,children:[/* @__PURE__ */W(S,{style:[oa.sweepLabel,A&&oa.sweepLabelWide,{color:m.primaryText,fontFamily:w}],children:"Clean sweep"}),/* @__PURE__ */W(S,{style:[oa.sweepSub,{color:m.primaryText}],children:"every leg right — all prizes"})]}),/* @__PURE__ */W(S,{style:[oa.sweepAmount,A&&oa.sweepAmountWide,{color:m.primaryText,fontFamily:w}],children:Zt(Math.round(N.sweep))})]})]}),
367
+ /* @__PURE__ */T(z,{style:oa.stakeBlock,children:[V("Stake",qt(I)),
368
+ /* @__PURE__ */T(z,{style:[oa.inputWrap,{borderColor:R?m.borderFocus??m.primary:m.border,backgroundColor:m.backgroundAlt}],children:[/* @__PURE__ */W(S,{style:[oa.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:[oa.input,{color:m.textAlt??m.text,fontFamily:b}]})]}),
369
+ /* @__PURE__ */W(z,{style:oa.chipRow,children:D.quickAdds.map(e=>/* @__PURE__ */W(B,{onPress:()=>E(G((I||0)+e)),activeOpacity:.8,style:[oa.stakeChip,{backgroundColor:"transparent",borderColor:m.border}],children:/* @__PURE__ */T(S,{style:[oa.chipText,{color:m.textMuted}],children:["+$",e]})},e))}),!Y&&I>0?/* @__PURE__ */T(S,{style:[oa.errorText,{color:m.error}],children:["Minimum stake is ",qt(D.minStake),"."]}):null]}),
370
+ /* @__PURE__ */T(z,{style:[oa.prizeBlock,{borderTopColor:Ll(x,.08)}],children:[
371
+ /* @__PURE__ */T(z,{style:oa.prizeCaptionRow,children:[/* @__PURE__ */W(S,{style:[oa.prizeCaption,{color:m.textMuted}],children:"What you can win"}),/* @__PURE__ */T(S,{style:[oa.prizeCaption,{color:m.textMuted}],children:[qt(I)," returns"]})]}),
372
+ /* @__PURE__ */T(z,{style:oa.prizeRows,children:[Z.map(e=>/* @__PURE__ */T(z,{style:oa.prizeRow,children:[/* @__PURE__ */W(S,{style:[oa.prizeRowLabel,A&&oa.prizeRowLabelWide,{color:m.text}],children:e.label}),/* @__PURE__ */W(S,{style:[oa.prizeRowAmount,A&&oa.prizeRowAmountWide,{color:m.primary,fontFamily:w}],children:qt(Math.round(e.amount))})]},e.label)),/* @__PURE__ */T(z,{style:[oa.sweepRow,{backgroundColor:m.primary}],children:[/* @__PURE__ */T(z,{style:oa.sweepLeft,children:[/* @__PURE__ */W(S,{style:[oa.sweepLabel,A&&oa.sweepLabelWide,{color:m.primaryText,fontFamily:w}],children:"Clean sweep"}),/* @__PURE__ */W(S,{style:[oa.sweepSub,{color:m.primaryText}],children:"every leg right — all prizes"})]}),/* @__PURE__ */W(S,{style:[oa.sweepAmount,A&&oa.sweepAmountWide,{color:m.primaryText,fontFamily:w}],children:qt(Math.round(N.sweep))})]})]}),
379
373
  /* @__PURE__ */W(S,{style:[oa.stakeNote,{color:m.textMuted}],children:"Total returns, stake included."}),
380
374
  /* @__PURE__ */T(S,{style:[oa.missNote,{color:m.textMuted}],children:["Miss ",1===j.allowedMisses?"two":"three"," or more and the ticket does not pay."]})]})]}),
381
- /* @__PURE__ */T(z,{style:[oa.modeCards,A&&oa.modeCardsWide],children:[/* @__PURE__ */W(z,{style:A?oa.modeCardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Ml,{iconUrl:Xe(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&&(g(j.ruleId),h(H),u(H-j.allowedMisses),f(I),y(),t?.())}})}),/* @__PURE__ */W(z,{style:A?oa.modeCardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Ml,{iconUrl:`${Ve}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{Y&&(g(j.ruleId),u(H-j.allowedMisses),f(I),p(s,H),e?.())}})})]})]})]})}var oa=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},sectionTitleInBody:{marginBottom:16},sectionTitleInBodyWide:{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},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 ra({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=Xo(),r=Ye(n),i=n.colors;/* @__PURE__ */
382
- return T(z,{style:la.header,children:[/* @__PURE__ */W(S,{style:[la.eyebrow,{color:i.primary,fontFamily:r}],children:"All or nothing"}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t,label:o?.game_name})]})}function ia({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:f}=Xo(),g=i.colors,p=Ge(i),y=Ye(i),{width:m}=F(),b=m>=640,w=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}=on(a);return Bn(e,t)},[a]),x=pi(a),k=w[0]??0,C=w[w.length-1]??0,[B]=c(()=>null!=s&&w.includes(s)?s:C),v=l(()=>po(a,B||void 0),[a,B]);if(!a||0===w.length||"exact"!==v?.kind)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:g.textMuted,fontFamily:p},children:"No setup available."})});const A=x?["Any yes/no props in the pool",`Pick ${k}–${C} legs — all must land`]:["A clean yes or no on every leg",`All ${B} have to land`],L=x?[`We fill ${B} legs across any markets`,"Straight to the bet slip"]:[`We fill all ${B} legs for you`,"Straight to the bet slip"];/* @__PURE__ */
383
- return T(z,{style:la.container,children:[n?/* @__PURE__ */W(z,{style:la.backRow,children:/* @__PURE__ */W(Ur,{onBack:n,label:r})}):null,/* @__PURE__ */T(ht,{style:la.inner,children:[o?null:/* @__PURE__ */W(S,{style:[la.sectionTitle,b&&la.sectionTitleWide,{color:g.primary,fontFamily:y}],children:v.title}),
384
- /* @__PURE__ */W(Dl,{eyebrow:o?null:v.title,iconUrl:Xe(a),gameName:a.game_name,tagline:v.heroTagline}),
385
- /* @__PURE__ */T(z,{style:[la.cardList,b&&la.cardListWide],children:[/* @__PURE__ */W(z,{style:b?la.cardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Ml,{iconUrl:Xe(a),size:60}),label:"Pick my own",stat:"Your calls",detail:A,onSelect:()=>{x||(d(B),h(B)),f(),t?.()}})}),/* @__PURE__ */W(z,{style:b?la.cardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Ml,{iconUrl:`${Ve}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:L,onSelect:()=>{h(B),u(a,B),e?.()}})})]})]})]})}var la=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%"},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16,textAlign:"center"},sectionTitleWide:{marginBottom:20},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 aa({onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r="Games"}){const{theme:i,selectedGame:l,goToSportSelection:a,bodyFont:c}=Xo(),s={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r};switch(fi(l)){case"game_set":/* @__PURE__ */return W(Yl,{...s});case"pick_your_dividend":/* @__PURE__ */return W(Zl,{...s});case"ladder":/* @__PURE__ */return W(Xl,{...s});case"mirror":/* @__PURE__ */return W(_l,{...s});case"safety_net":/* @__PURE__ */return W(na,{...s});case"rule_setup":return"exact"===po(l)?.kind?/* @__PURE__ */W(ia,{...s}):/* @__PURE__ */W(Al,{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 ca({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0}){const{theme:i}=Xo(),l=re(i),a=se(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=Ye(i)??"Manrope, Poppins, sans-serif",d=n&&n.length>0?n:t.split(/\s+/),h=.72*o,u=.5*o,f=Math.min(.62*o/d.length,.3*o);/* @__PURE__ */
375
+ /* @__PURE__ */T(z,{style:[oa.modeCards,A&&oa.modeCardsWide],children:[/* @__PURE__ */W(z,{style:A?oa.modeCardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Dl,{iconUrl:Qe(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&&(g(j.ruleId),h(H),u(H-j.allowedMisses),f(I),y(),t?.())}})}),/* @__PURE__ */W(z,{style:A?oa.modeCardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Dl,{iconUrl:`${Ue}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{Y&&(g(j.ruleId),u(H-j.allowedMisses),f(I),p(s,H),e?.())}})})]})]})]})}var oa=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},sectionTitleInBody:{marginBottom:16},sectionTitleInBodyWide:{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},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 ra({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=cr(),r=Ve(n),i=n.colors;/* @__PURE__ */
376
+ return T(z,{style:la.header,children:[/* @__PURE__ */W(S,{style:[la.eyebrow,{color:i.primary,fontFamily:r}],children:"All or nothing"}),/* @__PURE__ */W(Zr,{onBack:e,hideActions:t,label:o?.game_name})]})}function ia({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:f}=cr(),g=i.colors,p=Ye(i),y=Ve(i),{width:m}=F(),b=m>=640,w=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}=ln(a);return Fn(e,t)},[a]),x=pi(a),k=w[0]??0,C=w[w.length-1]??0,[B]=c(()=>null!=s&&w.includes(s)?s:C),v=l(()=>Ao(a,B||void 0),[a,B]);if(!a||0===w.length||"exact"!==v?.kind)/* @__PURE__ */return W(z,{children:/* @__PURE__ */W(S,{style:{color:g.textMuted,fontFamily:p},children:"No setup available."})});const A=x?["Any yes/no props in the pool",`Pick ${k}–${C} legs — all must land`]:["A clean yes or no on every leg",`All ${B} have to land`],R=x?[`We fill ${B} legs across any markets`,"Straight to the bet slip"]:[`We fill all ${B} legs for you`,"Straight to the bet slip"];/* @__PURE__ */
377
+ return T(z,{style:la.container,children:[n?/* @__PURE__ */W(z,{style:la.backRow,children:/* @__PURE__ */W(Ur,{onBack:n,label:r})}):null,/* @__PURE__ */T(ft,{style:la.inner,children:[o?null:/* @__PURE__ */W(S,{style:[la.sectionTitle,b&&la.sectionTitleWide,{color:g.primary,fontFamily:y}],children:v.title}),
378
+ /* @__PURE__ */W(Ml,{eyebrow:o?null:v.title,iconUrl:Qe(a),gameName:a.game_name,tagline:v.heroTagline}),
379
+ /* @__PURE__ */T(z,{style:[la.cardList,b&&la.cardListWide],children:[/* @__PURE__ */W(z,{style:b?la.cardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Dl,{iconUrl:Qe(a),size:60}),label:"Pick my own",stat:"Your calls",detail:A,onSelect:()=>{x||(d(B),h(B)),f(),t?.()}})}),/* @__PURE__ */W(z,{style:b?la.cardCell:void 0,children:/* @__PURE__ */W(jl,{tile:/* @__PURE__ */W(Dl,{iconUrl:`${Ue}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:R,onSelect:()=>{h(B),u(a,B),e?.()}})})]})]})]})}var la=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%"},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16,textAlign:"center"},sectionTitleWide:{marginBottom:20},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 aa({onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r="Games"}){const{theme:i,selectedGame:l,goToSportSelection:a,bodyFont:c}=cr(),s={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r};switch(fi(l)){case"game_set":/* @__PURE__ */return W(Yl,{...s});case"pick_your_dividend":/* @__PURE__ */return W(Zl,{...s});case"ladder":/* @__PURE__ */return W(Xl,{...s});case"mirror":/* @__PURE__ */return W(_l,{...s});case"safety_net":/* @__PURE__ */return W(na,{...s});case"rule_setup":return"exact"===Ao(l)?.kind?/* @__PURE__ */W(ia,{...s}):/* @__PURE__ */W(Al,{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 ca({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0}){const{theme:i}=cr(),l=re(i),a=se(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=Ve(i)??"Manrope, Poppins, sans-serif",d=n&&n.length>0?n:t.split(/\s+/),h=.72*o,u=.5*o,f=Math.min(.62*o/d.length,.3*o);/* @__PURE__ */
386
380
  return T(z,{accessible:!0,accessibilityRole:"image",accessibilityLabel:`YESNO ${t}`,style:{flexDirection:"row",alignItems:"center",gap:.22*o},children:[
387
- /* @__PURE__ */W(Tn,{iconUrl:e,width:h,height:h,iconColor:l,accentColor:a}),
381
+ /* @__PURE__ */W(Rn,{iconUrl:e,width:h,height:h,iconColor:l,accentColor:a}),
388
382
  /* @__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"})]}),
389
383
  /* @__PURE__ */W(z,{style:{width:Math.max(2,Math.round(.045*o)),height:.78*o,backgroundColor:c}}),
390
- /* @__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:f,fontWeight:"500",letterSpacing:.012*-f,lineHeight:1.14*f,color:l,includeFontPadding:!1},children:e}),r&&t===d.length-1?/* @__PURE__ */W(S,{style:{fontFamily:s,fontSize:.36*f,fontWeight:"500",color:l,marginLeft:1},children:"™"}):null]},`${e}-${t}`))})]})}export{Ho as BladeApiClient,ca as BrandLockup,kt as CategoryIcon,Yi as CategoryPickerPage,Gi as CategoryPickerPageActions,Ni as CategoryPickerPageTitle,St as ChevronRightIcon,al as ConfirmPage,ll as ConfirmPageActions,il as ConfirmPageTitle,Jn as DOUBLE_SHOT_MIN_LEGS,Qn as EXTRA_SHOT_MIN_LEGS,yl as EntriesPage,pl as EntriesPageTitle,Ar as EntrySubmission,Gr as EventFilterBanner,Ki as EventPickerPage,vt as FilterChipCarousel,Wt as FilterChipRow,Vn as GAME_TIER_LEVEL,Un as GAME_TIER_TABS,Er as GameEntries,Hi as GameLogo,wi as GamePage,bi as GamePageActions,mi as GamePageTitle,Mo as GameSelector,Yl as GameSetBetPage,Gl as GameSetBetPageTitle,aa as GameSetupPage,wt as HowToPlayButton,ft as HowToPlayPanel,ei as LADDER_FAMILY,$r as LADDER_REFERENCE_BET,_r as LADDER_STAKES,Xl as LadderPage,ql as LadderPageTitle,Ct as LockIcon,ai as MIRROR_STANDARD_MARGIN,_l as MirrorPage,$l as MirrorPageTitle,bo as PYD_LEG_RUNGS,mo as PYD_RETAIL_DIVIDENDS,Dr as PayoutCircles,ia as PerfectPickPage,ra as PerfectPickPageTitle,Zl as PickYourDividendPage,Ul as PickYourDividendPageTitle,Qo as PlaceEntryProvider,Jo as QuickPickButton,Al as RuleSetupPage,Tl as RuleSetupPageActions,Wl as RuleSetupPageTitle,na as SafetyNetPage,ta as SafetyNetPageTitle,Wr as SelectionReview,el as SelectionsPage,Ji as SelectionsPageActions,Qi as SelectionsPageTitle,Ei as SportPickerPage,Ii as SportPickerPageActions,Oi as SportPickerPageTitle,fl as SuccessPage,ul as SuccessPageActions,hl as SuccessPageTitle,Ri as SwipeCard,Mi as SwipeCardFace,Di as SwipeDeck,ki as VISIBLE_DEPTH,zt as YesNoCategoryLabel,qn as availableGameTierTabs,kn as contrastTextColour,xe as darkTheme,Xn as defaultGameTierId,be as defaultTheme,Fe as defaultThemeSet,Kn as filterGamesByTierLevel,Gn as filterPropositionsToEvent,Zt as formatCurrency,Kt as formatDate,Mn as formatSameGameMultiEventLabel,ri as fullStackPrize,yo as gameNeedsRuleSetup,Qr as gameSetPrize,yi as getConfirmBoostCopy,fi as getGameFlow,Jr as getGameSetBetConfig,rn as getJackpotInfo,li as getLadderConfig,ui as getMirrorConfig,Co as getPickYourDividendConfig,Hn as getPropositionEventId,po as getRuleSetupConfig,ho as getSafetyNetConfig,to as getSafetyNetPricing,ln as getSportDisplayName,Ae as getTheme,Le as getThemeSet,Ce as goldLightTheme,ke as goldTheme,We as goldThemeSet,Se as greenLightTheme,we as greenTheme,ve as greenThemeSet,qt as groupPropositionsBySport,On as groupSameGameMultiEvents,gi as isFixedCardExactGame,Xr as isGameSetBetGame,ti as isLadderGame,di as isMirrorGame,pi as isOpenExactMultiGame,wo as isPickYourDividendGame,eo as isSafetyNetGame,Pn as isSameGameMultiGame,Nn as isSelectableSameGameMultiProposition,me as isThemeSet,nn as isValidSelectionCount,ii as ladderCollectAt,oi as ladderTiers,hi as mirrorPrize,Yn as propositionsBelongToEvent,So as pydLadder,ko as pydRung,cn as resolveCategoryDisplayName,Zn as resolveGameTierLevel,Gt as resolvePrice,an as resolveSportDisplayName,ye as resolveTheme,no as roundDividendAmount,io as safetyNetCollect,ro as safetyNetTicket,se as themeAccent,Ge as themeBodyFont,re as themeHeading,Ye as themeHeadingFont,ie as themeLabel,Me as themeSets,de as themeTextAlt,he as themeTextAltMuted,le as themeValue,Re as themes,Uo as useCalculatePayout,Go as useCreateGameEntry,Zo as useEntryPreview,Vo as useEvaluateRule,jo as useGameEntries,No as useGameMaxPayouts,Oo as useGames,Xo as usePlaceEntry,Yo as usePlaceEntryFlow,Io as usePropositions,De as useResolvedTheme,Eo as useSports,Ci as useSwipeDeck};
384
+ /* @__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:f,fontWeight:"500",letterSpacing:.012*-f,lineHeight:1.14*f,color:l,includeFontPadding:!1},children:e}),r&&t===d.length-1?/* @__PURE__ */W(S,{style:{fontFamily:s,fontSize:.36*f,fontWeight:"500",color:l,marginLeft:1},children:"™"}):null]},`${e}-${t}`))})]})}export{Xo as BladeApiClient,ca as BrandLockup,Ct as CategoryIcon,Yi as CategoryPickerPage,Gi as CategoryPickerPageActions,Ni as CategoryPickerPageTitle,Bt as ChevronRightIcon,al as ConfirmPage,ll as ConfirmPageActions,il as ConfirmPageTitle,fo as DOUBLE_SHOT_MIN_LEGS,uo as EXTRA_SHOT_MIN_LEGS,yl as EntriesPage,pl as EntriesPageTitle,Ar as EntrySubmission,Gr as EventFilterBanner,Ki as EventPickerPage,Tt as FilterChipCarousel,At as FilterChipRow,io as GAME_TIER_LEVEL,lo as GAME_TIER_TABS,Er as GameEntries,Hi as GameLogo,wi as GamePage,bi as GamePageActions,mi as GamePageTitle,Zo as GameSelector,Yl as GameSetBetPage,Gl as GameSetBetPageTitle,aa as GameSetupPage,kt as HowToPlayButton,pt as HowToPlayPanel,ei as LADDER_FAMILY,$r as LADDER_REFERENCE_BET,_r as LADDER_STAKES,Xl as LadderPage,ql as LadderPageTitle,zt as LockIcon,ai as MIRROR_STANDARD_MARGIN,_l as MirrorPage,$l as MirrorPageTitle,Do as PYD_LEG_RUNGS,Lo as PYD_RETAIL_DIVIDENDS,Mr as PayoutCircles,ia as PerfectPickPage,ra as PerfectPickPageTitle,Zl as PickYourDividendPage,Ul as PickYourDividendPageTitle,sr as PlaceEntryProvider,dr as QuickPickButton,Al as RuleSetupPage,Tl as RuleSetupPageActions,Wl as RuleSetupPageTitle,na as SafetyNetPage,ta as SafetyNetPageTitle,Wr as SelectionReview,el as SelectionsPage,Ji as SelectionsPageActions,Qi as SelectionsPageTitle,Ei as SportPickerPage,Ii as SportPickerPageActions,Oi as SportPickerPageTitle,fl as SuccessPage,ul as SuccessPageActions,hl as SuccessPageTitle,Li as SwipeCard,Di as SwipeCardFace,Mi as SwipeDeck,ki as VISIBLE_DEPTH,vt as YesNoCategoryLabel,so as availableGameTierTabs,Cn as contrastTextColour,ke as darkTheme,ho as defaultGameTierId,we as defaultTheme,ve as defaultThemeSet,co as filterGamesByTierLevel,oo as filterPropositionsToEvent,qt as formatCurrency,Xt as formatDate,qn as formatSameGameMultiEventLabel,ri as fullStackPrize,Ro as gameNeedsRuleSetup,Qr as gameSetPrize,yi as getConfirmBoostCopy,fi as getGameFlow,Jr as getGameSetBetConfig,an as getJackpotInfo,li as getLadderConfig,ui as getMirrorConfig,Io as getPickYourDividendConfig,Jn as getPropositionEventId,Ao as getRuleSetupConfig,Fo as getSafetyNetConfig,mo as getSafetyNetPricing,cn as getSportDisplayName,Re as getTheme,Le as getThemeSet,Be as goldLightTheme,Se as goldTheme,Te as goldThemeSet,Ce as greenLightTheme,xe as greenTheme,We as greenThemeSet,Qt as groupPropositionsBySport,$n as groupSameGameMultiEvents,gi as isFixedCardExactGame,Xr as isGameSetBetGame,ti as isLadderGame,di as isMirrorGame,pi as isOpenExactMultiGame,Mo as isPickYourDividendGame,yo as isSafetyNetGame,Qn as isSameGameMultiGame,no as isSelectableSameGameMultiProposition,be as isThemeSet,rn as isValidSelectionCount,ii as ladderCollectAt,oi as ladderTiers,hi as mirrorPrize,ro as propositionsBelongToEvent,Oo as pydLadder,Ho as pydRung,dn as resolveCategoryDisplayName,ao as resolveGameTierLevel,Vt as resolvePrice,sn as resolveSportDisplayName,me as resolveTheme,bo as roundDividendAmount,ko as safetyNetCollect,xo as safetyNetTicket,se as themeAccent,Ye as themeBodyFont,re as themeHeading,Ve as themeHeadingFont,ie as themeLabel,Me as themeSets,he as themeTextAlt,ue as themeTextAltMuted,le as themeValue,De as themes,rr as useCalculatePayout,tr as useCreateGameEntry,ir as useEntryPreview,or as useEvaluateRule,_o as useGameEntries,er as useGameMaxPayouts,Qo as useGames,cr as usePlaceEntry,nr as usePlaceEntryFlow,Jo as usePropositions,Pe as useResolvedTheme,$o as useSports,Ci as useSwipeDeck};