@simple-parlay/components 1.30.6-pre.2 → 1.30.6-pre.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +321 -317
- package/dist/react/components/EntrySubmission.d.ts +1 -1
- package/dist/react/components/GameSelector.d.ts +1 -1
- package/dist/react/components/PlaceEntryProvider.d.ts +2 -2
- package/dist/react/components/SelectionReview.d.ts +1 -1
- package/dist/react/components/SportSelector.d.ts +15 -2
- package/dist/react/index.js +1 -1
- package/dist/react/index.mjs +321 -317
- package/dist/react-native/components/EntrySubmission.d.ts +1 -1
- package/dist/react-native/components/GameSelector.d.ts +1 -1
- package/dist/react-native/components/PlaceEntryProvider.d.ts +2 -2
- package/dist/react-native/components/SelectionReview.d.ts +1 -1
- package/dist/react-native/components/SportSelector.d.ts +6 -1
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.mjs +408 -404
- package/dist/shared/api-client.d.ts +2 -2
- package/dist/shared/game-icons.d.ts +1 -1
- package/dist/shared/hooks.d.ts +2 -2
- package/dist/shared/mirror.d.ts +38 -0
- package/dist/shared/picker-brand.d.ts +0 -6
- package/dist/shared/selection-actions.d.ts +6 -0
- package/dist/shared/selection-caps.d.ts +52 -0
- package/dist/shared/swipe-deck.d.ts +1 -1
- package/dist/shared/types.d.ts +14 -2
- package/dist/shared/utils.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,r=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,l=(l,a,s)=>(s=null!=l?e(r(l)):{},((e,r,l,a)=>{if(r&&"object"==typeof r||"function"==typeof r)for(var s,c=o(r),d=0,h=c.length;d<h;d++)s=c[d],i.call(e,s)||void 0===s||t(e,s,{get:(e=>r[e]).bind(null,s),enumerable:!(a=n(r,s))||a.enumerable});return e})(!a&&l&&l.t&&i.call(l,"default")?s:t(s,"default",{value:l,enumerable:!0}),l));let a=require("react");a=l(a,1);let s=require("react-native"),c=require("react/jsx-runtime"),d=require("react-native-svg");d=l(d,1);let h=require("react-dom");var u="#C9CDD2";function g(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 f(e){return`<table class="props">\n${e.map(e=>{return`<tr><td class="q">${t=e.question,t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}</td><td class="yes">YES</td><td class="no">NO</td></tr>`;var t}).join("\n")}\n</table>`}var p='\n :root {\n --blue: #1F4E79;\n --ink: #1A1A1A;\n --grey: #5A5A5A;\n --green: #166534;\n --red: #991B1B;\n --fill-q: #F9FAFB;\n --fill-yes: #DCFCE7;\n --fill-no: #FEE2E2;\n --rule: #D0D7DE;\n }\n * { box-sizing: border-box; }\n html, body {\n margin: 0;\n padding: 0;\n background: #FFFFFF;\n color: var(--ink);\n font-family: "Aptos", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;\n font-size: 16px;\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n }\n .page {\n max-width: 720px;\n margin: 0 auto;\n padding: 32px 24px 56px;\n }\n p { margin: 0 0 14px; }\n\n .masthead { text-align: center; margin-bottom: 8px; }\n .kicker {\n color: var(--blue);\n font-weight: 700;\n letter-spacing: 0.16em;\n font-size: 15px;\n margin-bottom: 6px;\n }\n .logo {\n display: block;\n width: 280px;\n max-width: 72%;\n height: auto;\n margin: 0 auto 12px;\n }\n .headline {\n color: var(--ink);\n font-weight: 700;\n font-size: 34px;\n line-height: 1.15;\n margin: 0 0 4px;\n }\n .headline.lg { font-size: 44px; }\n .subhead {\n color: var(--grey);\n font-weight: 700;\n letter-spacing: 0.12em;\n font-size: 15px;\n margin-top: 6px;\n }\n .lede {\n color: var(--blue);\n font-style: italic;\n font-size: 20px;\n text-align: center;\n margin: 18px 0 22px;\n }\n .rule {\n border: 0;\n border-bottom: 2.5px solid var(--blue);\n margin: 14px 0 22px;\n }\n\n h2.cap {\n color: var(--blue);\n font-weight: 700;\n letter-spacing: 0.06em;\n font-size: 16px;\n text-transform: uppercase;\n margin: 30px 0 12px;\n }\n h3.sub {\n color: var(--ink);\n font-weight: 700;\n font-size: 18px;\n margin: 26px 0 10px;\n }\n\n .step {\n font-weight: 700;\n font-size: 18px;\n margin: 22px 0 8px;\n }\n .step .num { color: var(--blue); }\n .step .label { color: var(--ink); }\n\n .props {\n width: 100%;\n border-collapse: collapse;\n margin: 8px 0 18px;\n }\n .props td {\n border: 1px solid #C9CDD2;\n padding: 11px 14px;\n font-size: 15px;\n }\n .props .q { background: var(--fill-q); width: 64%; }\n .props .yes {\n background: var(--fill-yes);\n color: var(--green);\n font-weight: 700;\n text-align: center;\n letter-spacing: 0.04em;\n }\n .props .no {\n background: var(--fill-no);\n color: var(--red);\n font-weight: 700;\n text-align: center;\n letter-spacing: 0.04em;\n }\n\n .divider {\n border: 0;\n border-top: 1px solid var(--rule);\n margin: 48px 0;\n }\n\n .footnote {\n color: var(--grey);\n font-style: italic;\n font-size: 13px;\n border-top: 1px solid var(--rule);\n padding-top: 14px;\n margin-top: 30px;\n }\n\n @media (max-width: 480px) {\n .page { padding: 24px 18px 44px; }\n .headline { font-size: 28px; }\n .headline.lg { font-size: 34px; }\n .lede { font-size: 18px; }\n }\n'.trim();function y(e){let t=e.trim();for(;;){const e=t.match(/^<!--[\s\S]*?-->\s*/);if(!e)break;t=t.slice(e[0].length).trimStart()}return t}var m=/^<(main|section|article|div|style|table|h[1-6]|p|ul|ol|hr)\b/i,b=/<(section|article|main|div\s+class=["']masthead|h[12]\s+class=["'](?:cap|headline)|h3\s+class=["']sub|table\s+class=["']props|hr\s+class=["']divider)\b/i;function w(e){return/^<!DOCTYPE\s+html/i.test(e)||/^<html[\s>]/i.test(e)}function x(e){const t=e.trim();if(!t)return"";if(w(t))return t;const n=function(e){return/class=["']logo["']/i.test(e)?e:/<div class=["']masthead["']>/i.test(e)?e.replace(/(<div class=["']masthead["']>)/i,'$1\n <img class="logo" src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%202400%20500%22%20width%3D%222400%22%20height%3D%22500%22%3E%0A%20%20%3Ctitle%3EYESNO%20Multi%20Logo%20%E2%80%94%20Horizontal%20Master%3C%2Ftitle%3E%0A%20%20%3Cdesc%3EYESNO%20Multi%20master%20logo.%20Horizontal%20pipe%20lockup%3A%20YESNO%20wordmark%2C%20stacked%20tile%20icon%2C%20pipe%20divider%2C%20Multi%20extension%2C%20TM.%3C%2Fdesc%3E%0A%0A%20%20%3C!--%20YESNO%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAA68AAADMCAYAAACcEJWAAABCUUlEQVR4nO3dd7xcRfnH8U9ooU%2BQDiIdpHcRRbEgII69IQ5SRRCQgPSiCNKlinQBZUQRUJRBwYIiSBWUDqIUKQJCyFBMQkjy%2B2NOfoaQ3Oy9d3efc3a%2F79drXze5udn5brm7%2B5wz88wIREREpOOcDwsDSwALAQ4YVX1dAJhzmstcwAhgYnV5rfo6DngRGDvN1%2BeA53KKU7p2Q0REeojzYQFgJcrr82LVZfFp%2FrwwMDcwcpqvUy9zUV6fJ0xzGT%2FNn8cAz1K9Vk%2Fz52eBf%2BYUX%2BzGbewlI6wDiIiI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mCC%22%20x%3D%2240%22%20y%3D%22148%22%20width%3D%22940%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20Stacked%20tile%20icon%2C%20vector%20%E2%80%94%20proportional%20to%20wordmark%20height%20--%3E%0A%20%20%3Cg%20transform%3D%22translate(1040%2C%20130)%22%3E%0A%20%20%20%20%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%2F%3E%0A%20%20%20%20%3Crect%20x%3D%2240%22%20y%3D%2240%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%20opacity%3D%220.55%22%2F%3E%0A%20%20%20%20%3Crect%20x%3D%2280%22%20y%3D%2280%22%20width%3D%22180%22%20height%3D%22180%22%20rx%3D%2236%22%20fill%3D%22%230F4C5C%22%20opacity%3D%220.30%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%0A%20%20%3C!--%20Pipe%20divider%20in%20teal-700%20--%3E%0A%20%20%3Crect%20x%3D%221380%22%20y%3D%22150%22%20width%3D%226%22%20height%3D%22200%22%20fill%3D%22%2314687C%22%2F%3E%0A%0A%20%20%3C!--%20Multi%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAlkAAADMCAYAAABAzLaeAAAcwklEQVR4nO3de7hdVXnv8W8uJECCAwJSJYAgpIpaiNVSK4FWactt6FGb4FEHSdVCLJKICSRIn16O55weTkK4i8q1lYGiqNUyQKwWL9QLpVYLKhYUQUAqtzAEAcMl%2FWNObKC57LX3eueYc67f53nWg8Le4%2Feuy977XWONOcYkRERExsj5sN5y%2FJziJMvxRZo0uXQBIiIiIn00tXQBIiIiIiVYz8xqJktERETEwFTDLu6wnOLVRmPLCHE%2BrAGWWYyt9R8iImLFcibrfYZjy4hwPuwAHFO6DhERkU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Y8pocj7MobrIZR7wKmAOzU%2BsrKU6ZP024Jb6dnP9zztG4c2PmiwR2SznwwuA%2BcChVL%2Bwty5b0a%2FcQnWg7ueAL%2BcUHytcj0hrOR%2B2AV5GtTRgj%2Fo2G9gJmAU4YDowDZhKdeHVOqqLY56%2BraPaVujB%2BrZ2g%2F99P3A38FOqxuou%2FUyqyRKRAdS%2FqF9N9c54f%2BCVwC4NRN8H3EB1deB1wDdzij9rIFdEZNzUZInIhDgfnkP17vhFwO7ArlSN107A9vVtW6p3yFsBU6jeFf%2Byvq0DHgLupdpw8R7gP4BbqT5auDmnuLap%2ByMiMiz%2FCXQ4TDPqI2KNAAAAAElFTkSuQmCC%22%20x%3D%221430%22%20y%3D%22148%22%20width%3D%22601%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20TM%20superscript%20at%20top-right%20of%20Multi%20--%3E%0A%20%20%3Ctext%20x%3D%222045%22%20y%3D%22190%22%20font-family%3D%22Manrope%2C%20Poppins%2C%20sans-serif%22%20font-size%3D%2256%22%20font-weight%3D%22600%22%20fill%3D%22%230F4C5C%22%3ETM%3C%2Ftext%3E%0A%3C%2Fsvg%3E%0A" alt="YESNO Multi" />'):e}(function(e){return/<table\s+class=["']props["']/i.test(e)?e:function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=0;for(;o<t.length;){const e=g(t[o]);if(e){const r=[e];let i=o+1;for(;i<t.length;){const e=g(t[i]);if(!e)break;r.push(e),i+=1}n.push(f(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+=f([...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=>g(e));a.length>0&&a.every(e=>null!==e)?i.push(...a):(l(),o+=n[0]),r=t.lastIndex}return l(),o+=e.slice(r),o}(e))}(function(e){const t=y(e),n=t.match(/^<main[^>]*>([\s\S]*)<\/main>$/i);return n?n[1].trim():t}(t)));return`<!DOCTYPE html>\n<html lang="en-AU">\n<head>\n<meta charset="UTF-8">\n<meta name="viewport" content="width=device-width, initial-scale=1.0">\n<title>YES NO - How to Play</title>\n<style>${p}</style>\n</head>\n<body>\n<main class="page">\n${n}\n</main>\n</body>\n</html>`}var k=/^(#{1,3})\s+(.+)$/,S=/^[-*]\s+(.+)$/,C=/^-{3,}$/;function B(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 z={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:48},F={xs:4,sm:8,md:12,lg:16,xl:24,pill:999},v={xs:11,sm:13,md:14,lg:16,xl:18,xxl:22,display:28},W={min:44};function T(e){const t="dark"===e.colorScheme,n=e.colors;return{space:{...z},radius:{...F},fontSize:{...v},touchTarget:{...W},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??B(n.border,t?.6:.5)},isDark:t}}function A(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 R(e){return e.colors.heading??e.colors.text}function L(e){return e.colors.label??e.colors.text}function D(e){return e.colors.value??e.colors.text}function M(e){return e.colors.productYes??"#00C853"}function P(e){return e.colors.productNo??"#E53935"}function H(e){return e.brand?.accent??e.colors.primary}function O(e,t,n){const o=t?.trim().toLowerCase()===e.trim().toLowerCase();return t&&!o?t:n}function I(e){return e.colors.textAlt??e.colors.text}function E(e){return e.colors.textAltMuted??e.colors.textMuted}function j(e){return e.colors.selectionCard??e.colors.surface??e.colors.backgroundAlt}function N(e){return e.colors.matchupHeader??e.colors.backgroundAlt}function G(e){return e.colors.selectionProp??e.colors.background}function Y(e){return{textMuted:e.colors.textMuted,border:e.colors.border,background:e.colors.background,backgroundAlt:e.colors.backgroundAlt,primary:e.colors.primary,selectionCard:j(e)}}function V(e,t="light"){return e?U(e)?"dark"===t?e.dark:e.light:e:K}function U(e){return"light"in e&&"dark"in e&&!("colors"in e)}var K={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"}},q={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"}},Z={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"}},X={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"}},Q={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"}},J={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"}},$={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"}},_={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"}},ee={light:K,dark:Z},te={light:Q,dark:q},ne={light:J,dark:X},oe={light:$,dark:_},re={default:K,green:q,"green-light":Q,dark:Z,gold:X,"gold-light":J,yesno:_,"yesno-light":$},ie={default:ee,green:te,gold:ne,yesno:oe};function le(e,t="light"){return V(e,t)}function ae(e){return e.fonts?.body??"System"}function se(e){return e.fonts?.heading??e.fonts?.body??"System"}var ce="game-icon:",de={perfect_pick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Perfect Pick.\n Single-glyph identifier ("100%") on a transparent background.\n\n Themable: the digits use currentColor (primary tone) and the\n trailing % uses the icon-accent CSS variable (default #DFFF1A).\n\n Laid out with geometry, not font metrics: two separate single-chunk <text>\n elements at explicit x, each pinned with textLength, and an explicit baseline\n y instead of dominant-baseline. react-native-svg anchors each <tspan> as its\n own chunk and ignores letter-spacing, so the old one-text/two-tspan version\n drifted off centre on native and pushed the % outside the viewBox. Combined\n extent is 8..92, centred on 50, whatever font actually resolves.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <text x="8" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="56"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">100</text>\n <text x="66" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="26"\n lengthAdjust="spacingAndGlyphs"\n fill="var(--icon-accent, #DFFF1A)">%</text>\n</svg>',head_to_head:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Head to Head.\n Two arrowheads clashing across a citron diamond. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Source design lives in an 80×60 box; centre it in 100×100 by\n shifting (10, 20) so the diamond at (40,30) lands at (50,50). --\x3e\n \x3c!-- Themable: arrowheads use currentColor (primary tone), the\n centre diamond uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(10, 20)">\n <path d="M 6 14 L 32 30 L 6 46 L 18 30 Z" fill="currentColor"/>\n <path d="M 74 14 L 48 30 L 74 46 L 62 30 Z" fill="currentColor"/>\n <polygon points="40,20 50,30 40,40 30,30" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',total_points:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Total Points.\n Sigma glyph with italic X superscript. Transparent background;\n rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Sigma + italic X superscript, centred together in the viewBox.\n Sigma 90×98 × 0.55 = 49.5×53.9. Translating to (15, 22) puts the\n sigma centre at (~40, 49) and leaves room for the X glyph at the\n upper right so the combined mark balances around (50, 50). --\x3e\n \x3c!-- Themable: sigma uses currentColor (primary), X superscript\n uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(15, 22) scale(0.55)">\n <path d="M 0,0 L 90,0 L 90,15 L 25,15 L 58,49 L 25,83 L 90,83 L 90,98 L 0,98 L 49,49 Z"\n fill="currentColor"/>\n </g>\n <text x="75" y="30"\n font-family="Manrope, Poppins, sans-serif"\n font-size="22"\n font-style="italic"\n font-weight="400"\n text-anchor="middle"\n dominant-baseline="central"\n fill="var(--icon-accent, #DFFF1A)">X</text>\n</svg>',quickpick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — QuickPick.\n Lightning bolt glyph. Transparent background; rendered onto the\n programmatic Press-to-Play tile.\n\n Themable: bolt fill uses currentColor (primary tone); edge stroke uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(28, 16) scale(0.55)">\n <path d="M 50 8 L 5 80 L 32 80 L 22 132 L 75 50 L 47 50 L 60 8 Z"\n fill="currentColor"\n stroke="var(--icon-accent, #DFFF1A)"\n stroke-width="3.5"\n stroke-linejoin="round"/>\n </g>\n</svg>',safety_net:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Safety Net.\n The brand basketball rim + curved diamond-mesh net catching a citron ball,\n taken from the YESNO Safety Net lockup / app icon. Transparent background;\n rendered on Press-to-Play tiles and brand lockups.\n\n Themable: net uses currentColor (teal on light, white on teal tile);\n ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(-2, -6.2) scale(1.3)">\n <line x1="9" y1="18" x2="71" y2="18" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>\n <path d="M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/>\n <ellipse cx="40" cy="64" rx="18" ry="4.5" fill="none" stroke="currentColor" stroke-width="2.2"/>\n <circle cx="40" cy="50" r="8" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',ladder:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n The sub-brand staircase: four offset rungs climbing to the top, from the\n YESNO Ladder lockup ("Climb the ladder. Stack the prizes."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: alternating rungs use currentColor (primary tone) and the\n icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="4" y="76" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="20" y="54" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="36" y="32" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="52" y="10" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',game_set:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Game Set Bet.\n The sub-brand tennis ball: citron ball with the S-curve seam, from the\n Game Set Bet lockup / app icon ("Game. Set. Bet."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the seam and the ball\'s rim use currentColor (teal on light, paper\n on the teal app-icon tile); the ball uses the icon-accent CSS variable\n (default #DFFF1A). The rim is what keeps the ball readable on themes whose\n chip colour sits near the accent (e.g. citron on the green theme\'s #00E676).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(4, 4) scale(1.15)">\n <circle cx="40" cy="40" r="34" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4.5"/>\n <path d="M40 8 C12 14 11 40 40 40 C69 40 68 66 40 72" fill="none" stroke="currentColor" stroke-width="4.5" stroke-linecap="round"/>\n </g>\n</svg>',pick_your_dividend:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n Splayed ladder rails and rungs with the citron ball resting at the top —\n the stacked-multi that pays every rung your streak reaches. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n\n Themable: rails/rungs use currentColor (primary tone); the ball uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <line x1="36" y1="16" x2="27" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="64" y1="16" x2="73" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="33.8" y1="34" x2="66.2" y2="34" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n <line x1="31.5" y1="52" x2="68.5" y2="52" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.8"/>\n <line x1="29.3" y1="70" x2="70.7" y2="70" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.6"/>\n <circle cx="50" cy="20" r="9" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Mirror.\n Two offset square-stacks reflected across a central seam, from the YESNO\n Mirror Standard mark ("Get them all right, you win. All wrong, you win.").\n Transparent background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left stack --\x3e\n <rect x="6" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="14" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- right stack — the reflection across x=50 --\x3e\n <rect x="66" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="58" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',same_game_multi:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon - Same Game Multi.\n Three proposition legs contained inside one rounded fixture card: many\n picks, one game. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the fixture and leg marks use currentColor (primary tone); the\n locked lead leg uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="14" y="14" width="72" height="72" rx="13" fill="none" stroke="currentColor" stroke-width="6"/>\n <circle cx="31" cy="35" r="6" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="43" y="31" width="31" height="8" rx="4" fill="currentColor"/>\n <circle cx="31" cy="51" r="6" fill="currentColor" opacity="0.8"/>\n <rect x="43" y="47" width="25" height="8" rx="4" fill="currentColor" opacity="0.8"/>\n <circle cx="31" cy="67" r="6" fill="currentColor" opacity="0.6"/>\n <rect x="43" y="63" width="19" height="8" rx="4" fill="currentColor" opacity="0.6"/>\n</svg>',six_again:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — 6 Again.\n Three stacked cards — the restart, the set again — with the citron six on the\n front of the deck. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the stack uses currentColor (primary tone); the front card carries\n the icon-accent CSS variable (default #DFFF1A) with a currentColor rim, and\n the numeral is knocked out in currentColor. Accent-as-card rather than\n accent-as-numeral because the numeral is small: on themes where the accent\n sits near the icon colour (orange on white in green-light) an accent numeral\n washes out, while an accent card stays legible and its rim keeps the card\n readable when the accent sits near the chip colour instead.\n\n The numeral is laid out with geometry, not font metrics: a single-chunk\n <text> pinned with textLength at an explicit x and baseline y, because\n react-native-svg anchors each chunk itself and ignores text-anchor drift.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="32" y="8" width="60" height="60" rx="13" fill="currentColor" opacity="0.3"/>\n <rect x="24" y="16" width="60" height="60" rx="13" fill="currentColor" opacity="0.55"/>\n <rect x="16" y="24" width="60" height="60" rx="13" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4"/>\n <text x="35" y="68"\n font-family="Manrope, Poppins, sans-serif"\n font-size="40"\n font-weight="800"\n textLength="22"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">6</text>\n</svg>',unknown:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Unknown game fallback.\n Question mark glyph on a transparent background.\n\n Themable: the mark uses currentColor (primary tone) and the dot uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <path\n d="M 28 42 C 28 26 36 16 46 16 C 58 16 66 26 66 38 C 66 48 58 54 50 58 L 50 68"\n fill="none"\n stroke="currentColor"\n stroke-width="8"\n stroke-linecap="round"\n stroke-linejoin="round"\n />\n <circle cx="50" cy="82" r="5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>'},he={perfectpick:"perfect_pick",headtohead:"head_to_head",totalpoints:"total_points",quickpick:"quickpick",safetynet:"safety_net",gameset:"game_set",gamesetbet:"game_set",pickyourdividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",mirrorstandard:"mirror",samegame:"same_game_multi",samegamemulti:"same_game_multi",sixagain:"six_again"},ue={safety_net:"safety_net",game_set:"game_set",pick_your_dividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",same_game_multi:"same_game_multi",six_again:"six_again"};function ge(e){if(e.quick_pick_only)return"quickpick";const t=ue[e.rule?.trim().toLowerCase()??""];if(t)return t;const n=(e.game_name??"").toLowerCase().replace(/[^a-z0-9]+/g,"");return he[n]??"unknown"}function fe(e){return`${ce}${ge(e)}`}function pe(e){if(!function(e){return e.startsWith(ce)}(e))return null;const t=e.slice(10);return de[t]??de.unknown}var ye={text:"YES",tone:"yes"},me={text:"NO",tone:"no"},be=[{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"}],we=["zero","one","two","three","four","five","six","seven","eight"],xe=[{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."}],ke=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."}],Se={perfect_pick:{summary:["Perfect Pick is the multi you already know, with one big difference. You pick ",ye," or ",me," across your legs, every leg has to land, and one perfect card takes the prize."],steps:xe,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 ",ye," or ",me," on each matchup, land every leg, and the card pays."],steps:xe,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},total_points:{summary:["Total Points is all about the scoreboard. Call ",ye," or ",me," on each total, land every leg, and the card pays."],steps:xe,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},quickpick:{summary:["QuickPick fills the card for you. We generate the ",ye," and ",me," 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 ",ye," or ",me," 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:ke("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 ",ye," or ",me," on every leg — reach the first rung and you start winning, and every rung after that stacks another prize on top."],steps:ke("ladder"),demoPrompt:"Try a {n}-leg ladder — the climb starts at {n1} right."},game_set:{summary:["Game Set Bet is straight sets. Pick ",ye," or ",me," on every leg — each extra leg doubles the prize, and a clean card takes the lot."],steps:ke("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 ",ye," or ",me," on every leg — land them all and the entry pays the dividend you picked."],steps:ke("dividend"),demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},mirror:{summary:["Mirror pays both ways. Pick ",ye," or ",me," 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:ke("card"),demoPrompt:"Try a {n}-leg mirror — sweep it either way."},six_again:{summary:["6 Again is one six-leg card with boosts riding on it. Pick ",ye," or ",me," on all six calls — land the lot and the card pays. Golden Point doubles a winning card, and the Captain’s Challenge collects even when one call gets away."],steps:[{title:"Set your play",detail:"Choose your stake, then switch on the boosts you want."},{title:"Make your six calls",detail:"YES or NO on every call, {min} of them."},{title:"Check the slip",detail:"Your stake is locked from the setup — review every pick."},{title:"Place your entry",detail:"Confirm and you are on."}],demoPrompt:"Try a {n}-leg card — call every leg, then run it."},same_game_multi:{summary:["Same Game Multi keeps every leg inside one fixture. Pick ",ye," or ",me," across the game — land every leg and the card pays."],steps:xe,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."}};function Ce(e){if(!e)return null;const t=ge(e),n=Se[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),be.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:be.slice(0,i),demoPrompt:l(n.demoPrompt).replace(/\{n1\}/g,we[i-1]??String(i-1)).replace(/\{n\}/g,we[i]??String(i))}}function Be(e,t,n=!0){const o=e.current;o&&("web"!==s.Platform.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 ze(e,t){return{onMouseEnter:e,onMouseLeave:t}}function Fe({theme:e,level:t="flat",padding:n="md",radius:o="md",style:r,children:i}){const l=T(e),a={none:0,sm:l.space.sm,md:l.space.lg,lg:l.space.xl},d={none:0,sm:l.radius.sm,md:l.radius.md,lg:l.radius.lg,pill:l.radius.pill},h="elevated"===t?l.surface.surfaceElevated:l.surface.surface,u="flat"===t?{}:"raised"===t?{shadowColor:"#000",shadowOpacity:l.isDark?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}:{shadowColor:"#000",shadowOpacity:l.isDark?.5:.16,shadowRadius:24,shadowOffset:{width:0,height:12},elevation:6};return(0,c.jsx)(s.View,{style:[{backgroundColor:h,borderColor:e.colors.border,borderWidth:1,borderRadius:d[o],padding:a[n]},u,r],children:i})}function ve({theme:e,variant:t="primary",size:n="md",disabled:o,block:r,radius:i="md",onPress:l,onLongPress:d,style:h,children:u,accessibilityLabel:g}){const f=T(e),p=e.colors,y={sm:{h:36,px:f.space.md,fs:f.fontSize.sm},md:{h:f.touchTarget.min,px:f.space.lg,fs:f.fontSize.md},lg:{h:52,px:f.space.xl,fs:f.fontSize.lg}},m={sm:f.radius.sm,md:f.radius.md,lg:f.radius.lg,pill:f.radius.pill},b={primary:{bg:p.buttonPrimary,bgPressed:p.buttonPrimaryHover,fg:p.buttonPrimaryText,border:p.buttonPrimary},secondary:{bg:p.buttonSecondary,bgPressed:p.buttonSecondaryHover,fg:p.buttonSecondaryText,border:p.border},ghost:{bg:"transparent",bgPressed:B(p.text,f.isDark?.1:.06),fg:p.text,border:"transparent"},danger:{bg:p.error,bgPressed:B(p.error,.85),fg:"#ffffff",border:p.error}}[t],[w,x]=a.default.useState(!1);return(0,c.jsx)(s.Pressable,{accessibilityRole:"button",accessibilityLabel:g,accessibilityState:{disabled:!!o},disabled:o,onPress:l,onLongPress:d,onHoverIn:()=>x(!0),onHoverOut:()=>x(!1),style:({pressed:e})=>[{minHeight:y[n].h,paddingHorizontal:y[n].px,borderRadius:m[i],backgroundColor:!e&&!w||o?b.bg:b.bgPressed,borderColor:b.border,borderWidth:1,alignSelf:r?"stretch":"flex-start",alignItems:"center",justifyContent:"center",flexDirection:"row",opacity:o?.5:1,transform:[{scale:e&&!o?.985:1}]},h],children:"string"==typeof u?(0,c.jsx)(s.Text,{style:{color:b.fg,fontSize:y[n].fs,fontWeight:"500"},children:u}):u})}var We={xs:{paddingVertical:3,paddingHorizontal:10,fontSize:11},sm:{paddingVertical:6,paddingHorizontal:14,fontSize:13},md:{paddingVertical:8,paddingHorizontal:18,fontSize:14}};function Te(e,t,n,o,r,i){const l=T(e),a=We[o];return{container:{paddingVertical:a.paddingVertical,paddingHorizontal:a.paddingHorizontal,borderRadius:l.radius.sm,alignItems:"center",justifyContent:"center",backgroundColor:t?n:"transparent",borderWidth:1,borderColor:t?"transparent":e.colors.border,opacity:r?.5:1,...i?{flex:1}:null},label:{fontSize:a.fontSize,fontWeight:"600",lineHeight:1.2*a.fontSize,color:t?"#ffffff":e.colors.text}}}function Ae({theme:e,value:t,onYes:n,onNo:o,size:r="md",stretch:i,disabled:l,yesLabel:a="Yes",noLabel:d="No",style:h}){const u=Te(e,"yes"===t,M(e),r,l,i),g=Te(e,"no"===t,P(e),r,l,i);return(0,c.jsxs)(s.View,{style:[{flexDirection:"row",gap:8,flexShrink:0},i?{alignSelf:"stretch"}:null,h],children:[(0,c.jsx)(s.Pressable,{accessibilityRole:"button",accessibilityState:{selected:"yes"===t,disabled:!!l},disabled:l,onPress:l?void 0:n,style:u.container,children:(0,c.jsx)(s.Text,{style:u.label,children:a})}),(0,c.jsx)(s.Pressable,{accessibilityRole:"button",accessibilityState:{selected:"no"===t,disabled:!!l},disabled:l,onPress:l?void 0:o,style:g.container,children:(0,c.jsx)(s.Text,{style:g.label,children:d})})]})}function Re({theme:e,value:t,size:n="md",style:o}){const r=T(e),i="sm"===n?10:11;return(0,c.jsx)(s.View,{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?M(e):P(e)},o],children:(0,c.jsx)(s.Text,{style:{fontSize:i,fontWeight:"700",letterSpacing:.04*i,textTransform:"uppercase",color:"#ffffff"},children:"yes"===t?"Yes":"No"})})}function Le({delay:e=0,style:t,children:n}){const{transform:o}=function(e=0){const t=a.default.useRef(new s.Animated.Value(0)).current;return a.default.useEffect(()=>{let n=!1;const o=o=>{n||(o?t.setValue(1):s.Animated.timing(t,{toValue:1,duration:500,delay:e,easing:s.Easing.bezier(.2,.8,.2,1),useNativeDriver:"web"!==s.Platform.OS}).start())},r=s.AccessibilityInfo.isReduceMotionEnabled?.();r&&"function"==typeof r.then?r.then(o).catch(()=>o(!1)):o(!1);const i=s.AccessibilityInfo.addEventListener?.("reduceMotionChanged",e=>{e&&t.setValue(1)});return()=>{n=!0,i?.remove?.()}},[e,t]),{opacity:t,transform:[{translateY:t.interpolate({inputRange:[0,1],outputRange:[14,0]})}]}}(e);return(0,c.jsx)(s.Animated.View,{style:[t,{transform:o}],children:n})}var De=/\b(YES|NO)\b/;function Me(e,t,n){return e.split(De).map((e,o)=>"YES"===e||"NO"===e?(0,c.jsx)(Re,{theme:t,value:"YES"===e?"yes":"no",size:"sm"},`${n}-${o}`):(0,c.jsx)(s.Text,{children:e},`${n}-${o}`))}function Pe({segments:e,theme:t,bodyFont:n}){return(0,c.jsx)(s.Text,{style:[Oe.summary,{color:t.colors.text,fontFamily:n}],children:e.map((e,n)=>"string"==typeof e?(0,c.jsx)(s.Text,{children:Me(e,t,n)},n):(0,c.jsx)(Re,{theme:t,value:e.tone,size:"sm"},n))})}function He({panel:e,theme:t,dividends:n,bodyFont:o,headingFont:r}){const i=t.colors,l=t.brand?.accent??i.primaryText,d=j(t),[h,u]=(0,a.useState)("learn"),[g,f]=(0,a.useState)(()=>e.demoLegs.map(()=>null)),[p,y]=(0,a.useState)(!1),m=e.demoLegs.length,b=g.filter(e=>null!=e).length,w=b===m,x=e.demoLegs.filter((e,t)=>g[t]===e.outcome).length,k=function(e,t,n){const o=t===n,r=`${t} of ${n}`;switch(e){case"mirror":return o?{won:!0,message:`All ${n} right — that is the sweep, the card pays.`}:0===t?{won:!0,message:`All ${n} wrong — a full mirror sweep pays the same as perfect.`}:{won:!1,message:`${r} is a split card. Mirror pays all right or all wrong — nothing in between.`};case"ladder":return o?{won:!0,message:`Top rung — all ${n} right stacks every prize on the ladder into one payout.`}:t>=n-1?{won:!0,message:`${r} reaches a rung — it pays, and every extra leg right stacks the next prize on top.`}:{won:!1,message:`${r} does not reach the first rung — the climb starts at ${n-1} right.`};case"safety_net":return o?{won:!0,message:`Clean sweep — all ${n} right takes the full prize.`}:t===n-1?{won:!0,message:"One miss — the net catches it and the entry still pays."}:{won:!1,message:`${r} is more than the net holds — one miss is covered, two is not.`};case"six_again":return o?{won:!0,message:`All ${n} right — the card pays, and Golden Point doubles it.`}:t===n-1?{won:!1,message:`${r} — one call away. The Captain’s Challenge is the boost that collects on this card.`}:{won:!1,message:`${r} — every call has to land. Flip the misses and the card pays.`};case"game_set":return o?{won:!0,message:`Game, set, bet — all ${n} legs landed and the card pays.`}:{won:!1,message:`${r} — every leg has to land. Flip the misses and it is straight sets.`};case"pick_your_dividend":return o?{won:!0,message:`All ${n} right — the entry pays the dividend you picked.`}:{won:!1,message:`${r} — every leg has to land to collect your dividend.`};default:return o?{won:!0,message:`Perfect card — all ${n} legs landed, the prize is yours.`}:{won:!1,message:`${r} — one miss breaks a perfect card. Flip the misses and it pays.`}}}(e.id,x,m),S=(e,t)=>{p||f(n=>n.map((n,o)=>o===e?t:n))},C=p?"Settled":`${b} of ${m} called`,z=!p&&w,F=e=>[Oe.segment,{backgroundColor:e?i.primary:"transparent"}],v=e=>[Oe.segmentText,{color:e?i.primaryText:i.textMuted,fontFamily:r}];return(0,c.jsxs)(s.View,{children:[(0,c.jsxs)(s.View,{style:[Oe.segments,{borderColor:i.border,backgroundColor:i.backgroundAlt}],children:[(0,c.jsx)(s.TouchableOpacity,{onPress:()=>u("learn"),accessibilityRole:"tab",accessibilityState:{selected:"learn"===h},style:F("learn"===h),children:(0,c.jsx)(s.Text,{style:v("learn"===h),children:"How it works"})}),(0,c.jsx)(s.TouchableOpacity,{onPress:()=>u("try"),accessibilityRole:"tab",accessibilityState:{selected:"try"===h},style:F("try"===h),children:(0,c.jsx)(s.Text,{style:v("try"===h),children:"Quick demo"})}),n?(0,c.jsx)(s.TouchableOpacity,{onPress:()=>u("pay"),accessibilityRole:"tab",accessibilityState:{selected:"pay"===h},style:F("pay"===h),children:(0,c.jsx)(s.Text,{style:v("pay"===h),children:"Dividends"})}):null]}),"pay"===h?n:null,"learn"===h&&(0,c.jsxs)(s.View,{children:[(0,c.jsx)(Pe,{segments:e.summary,theme:t,bodyFont:o}),(0,c.jsxs)(s.View,{style:[Oe.steps,Oe.stepsSpaced],children:[(0,c.jsx)(s.View,{pointerEvents:"none",style:[Oe.rail,{backgroundColor:B(i.primary,.25)}]}),e.steps.map((e,n)=>(0,c.jsxs)(s.View,{style:Oe.step,children:[(0,c.jsx)(s.View,{style:[Oe.stepTile,{backgroundColor:i.primary}],children:(0,c.jsx)(s.Text,{style:[Oe.stepTileText,{color:l,fontFamily:r}],children:n+1})}),(0,c.jsxs)(s.View,{style:Oe.stepText,children:[(0,c.jsx)(s.Text,{style:[Oe.stepTitle,{color:i.primary,fontFamily:r}],children:e.title}),(0,c.jsx)(s.Text,{style:[Oe.stepDetail,{color:i.textMuted,fontFamily:o}],children:Me(e.detail,t,n)})]})]},e.title))]}),(0,c.jsx)(s.TouchableOpacity,{onPress:()=>u("try"),accessibilityRole:"button",children:(0,c.jsx)(s.Text,{style:[Oe.tryLink,{color:i.primary,fontFamily:r}],children:"Try a quick demo →"})})]}),"try"===h&&(0,c.jsxs)(s.View,{style:[Oe.slip,Oe.slipFlush,{borderColor:i.border,backgroundColor:d}],children:[(0,c.jsx)(s.View,{style:Oe.slipHead,children:(0,c.jsxs)(s.View,{style:Oe.slipHeadRow,children:[(0,c.jsx)(s.Text,{style:[Oe.prompt,Oe.promptGrow,{color:i.textMuted,fontFamily:o}],children:p?"Here is how it settled.":e.demoPrompt}),(0,c.jsx)(s.View,{style:[Oe.counter,z?{borderColor:i.primary,backgroundColor:i.primary}:{borderColor:B(i.border,.9),backgroundColor:"transparent"}],children:(0,c.jsx)(s.Text,{style:[Oe.counterText,{color:z?i.primaryText:i.textMuted,fontFamily:o}],children:C})})]})}),(0,c.jsx)(s.View,{style:Oe.legs,children:e.demoLegs.map((e,n)=>{const r=g[n]===e.outcome;return(0,c.jsxs)(s.View,{style:[Oe.leg,n>0&&{borderTopWidth:1,borderTopColor:B(i.border,.7)}],children:[(0,c.jsxs)(s.View,{style:Oe.legMain,children:[(0,c.jsx)(s.View,{style:[Oe.pip,p?{backgroundColor:r?i.success:i.error}:{borderWidth:1.5,borderColor:g[n]?i.primary:i.border}],children:(0,c.jsx)(s.Text,{style:[Oe.pipText,{color:p?"#fff":g[n]?i.primary:i.textMuted}],children:p?r?"✓":"✗":n+1})}),(0,c.jsx)(s.View,{style:Oe.legText,children:(0,c.jsx)(s.Text,{style:[Oe.legQuestion,{color:i.text,fontFamily:o}],children:e.question})})]}),p?(0,c.jsx)(Re,{theme:t,size:"sm",value:e.outcome}):(0,c.jsx)(Ae,{theme:t,size:"sm",value:g[n],onYes:()=>S(n,"yes"),onNo:()=>S(n,"no")})]},e.question)})}),(0,c.jsx)(s.View,{style:[Oe.perforation,{borderTopColor:B(i.border,.9)}]}),(0,c.jsx)(s.View,{style:Oe.slipFoot,children:p?(0,c.jsxs)(s.View,{children:[(0,c.jsxs)(s.View,{style:[Oe.verdict,{backgroundColor:k.won?i.successBg:i.errorBg}],children:[(0,c.jsx)(s.View,{style:[Oe.stamp,{borderColor:k.won?i.successText:i.errorText}],children:(0,c.jsx)(s.Text,{style:[Oe.stampText,{color:k.won?i.successText:i.errorText,fontFamily:r}],children:k.won?"Winner":"No win"})}),(0,c.jsx)(s.Text,{style:[Oe.verdictText,{color:k.won?i.successText:i.errorText,fontFamily:o}],children:k.message})]}),(0,c.jsx)(s.TouchableOpacity,{onPress:()=>{f(e.demoLegs.map(()=>null)),y(!1)},accessibilityRole:"button",children:(0,c.jsx)(s.Text,{style:[Oe.tryAgain,{color:i.textMuted,fontFamily:o}],children:"↺ Try again"})})]}):(0,c.jsx)(ve,{theme:t,size:"sm",block:!0,disabled:!w,onPress:()=>y(!0),children:"Run the demo"})})]})]})}var Oe=s.StyleSheet.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 Ie({text:e,colors:t}){const n=function(e){const t=[],n=/\*\*(.+?)\*\*/g;let o,r=0;for(;null!==(o=n.exec(e));)o.index>r&&t.push({text:e.slice(r,o.index),bold:!1}),t.push({text:o[1],bold:!0}),r=o.index+o[0].length;return r<e.length&&t.push({text:e.slice(r),bold:!1}),0===t.length&&t.push({text:e,bold:!1}),t}(e);return(0,c.jsx)(s.Text,{children:n.map((e,n)=>(0,c.jsx)(s.Text,{style:{fontWeight:e.bold?"700":"400",color:e.bold?t.text:t.textMuted},children:e.text},n))})}function Ee({content:e,colors:t}){const n=x(e);let o=null;try{o=require("react-native-webview").WebView}catch{o=null}return o?(0,c.jsx)(o,{source:{html:n},style:{minHeight:420,width:"100%"},originWhitelist:["*"],scrollEnabled:!0}):(0,c.jsx)(s.Text,{style:{fontSize:14,lineHeight:22,color:t.textMuted},children:"This guide uses HTML. Install react-native-webview in the host app to display it on native."})}function je({rows:e}){return(0,c.jsx)(s.View,{style:{gap:0,marginVertical:6},children:e.map((e,t)=>(0,c.jsxs)(s.View,{style:{flexDirection:"row",borderWidth:1,borderColor:u,borderTopWidth:0===t?1:0},children:[(0,c.jsx)(s.View,{style:{flex:2.2,backgroundColor:"#F9FAFB",paddingVertical:11,paddingHorizontal:14,borderRightWidth:1,borderRightColor:u},children:(0,c.jsx)(s.Text,{style:{fontSize:15,color:"#1A1A1A"},children:e.question})}),(0,c.jsx)(s.View,{style:{flex:.65,backgroundColor:"#DCFCE7",paddingVertical:11,paddingHorizontal:8,alignItems:"center",justifyContent:"center",borderRightWidth:1,borderRightColor:u},children:(0,c.jsx)(s.Text,{style:{fontSize:15,fontWeight:"700",color:"#166534"},children:"YES"})}),(0,c.jsx)(s.View,{style:{flex:.65,backgroundColor:"#FEE2E2",paddingVertical:11,paddingHorizontal:8,alignItems:"center",justifyContent:"center"},children:(0,c.jsx)(s.Text,{style:{fontSize:15,fontWeight:"700",color:"#991B1B"},children:"NO"})})]},t))})}function Ne({content:e,colors:t,bodyFont:n,headingFont:o}){const r=function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=[],r=[];const i=()=>{const e=o.map(e=>e.trim()).filter(Boolean);if(e.length>0){const t=e.map(e=>g(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(k);if(t){l(),i(),n.push({type:"heading",level:Math.min(t[1].length,3),text:t[2].trim()});continue}if(C.test(e)){l(),i(),n.push({type:"hr"});continue}const s=e.match(S);s?(i(),r.push(s[1].trim())):(l(),o.push(e))}return l(),i(),n}(e);return(0,c.jsx)(s.View,{style:{gap:14},children:r.map((e,r)=>"heading"===e.type?(0,c.jsx)(s.Text,{style:{fontSize:{1:20,2:18,3:16}[e.level],fontWeight:"800",color:t.text,textTransform:1===e.level?"uppercase":"none",fontFamily:o??n},children:(0,c.jsx)(Ie,{text:e.text,colors:t})},r):"paragraph"===e.type?(0,c.jsx)(s.Text,{style:{fontSize:14,lineHeight:22,color:t.textMuted,fontFamily:n},children:(0,c.jsx)(Ie,{text:e.text,colors:t})},r):"list"===e.type?(0,c.jsx)(s.View,{style:{gap:6,paddingLeft:8},children:e.items.map((e,o)=>(0,c.jsxs)(s.Text,{style:{fontSize:14,lineHeight:22,color:t.textMuted,fontFamily:n},children:["• ",(0,c.jsx)(Ie,{text:e,colors:t})]},o))},r):"propsTable"===e.type?(0,c.jsx)(je,{rows:e.rows},r):(0,c.jsx)(s.View,{style:{height:1,backgroundColor:t.border,marginVertical:4}},r))})}function Ge({content:e,panel:t,theme:n,extra:o,title:r="How to Play",label:i="How to Play",variant:l="pill",colors:d,bodyFont:h,headingFont:u}){const[g,f]=(0,a.useState)(!1),{width:p}=(0,s.useWindowDimensions)(),x=p>=640,k=!(!t||!n);if(!e?.trim()&&!k&&!o)return null;const S=!k&&!!e&&function(e){const t=e.trim();if(!t)return!1;if(w(t))return!0;const n=y(t);return!!m.test(n)||b.test(t)}(e);return(0,c.jsxs)(c.Fragment,{children:["icon"===l?(0,c.jsx)(s.TouchableOpacity,{onPress:()=>f(!0),style:[Ye.iconButton,{borderColor:d.primary,backgroundColor:`${d.primary}14`}],accessibilityRole:"button",accessibilityLabel:i,children:(0,c.jsx)(s.Text,{style:[Ye.iconButtonText,{color:d.primary,fontFamily:h}],children:"?"})}):(0,c.jsxs)(s.TouchableOpacity,{onPress:()=>f(!0),style:[Ye.button,{borderColor:d.primary,backgroundColor:`${d.primary}10`}],accessibilityRole:"button",accessibilityLabel:i,children:[(0,c.jsx)(s.Text,{style:[Ye.buttonText,{color:d.primary,fontFamily:h}],children:i}),(0,c.jsx)(s.Text,{style:[Ye.buttonText,{color:d.primary,fontFamily:h}],children:"?"})]}),(0,c.jsx)(s.Modal,{visible:g,animationType:"none",transparent:!0,onRequestClose:()=>f(!1),children:(0,c.jsxs)(s.View,{style:[Ye.overlay,x?{justifyContent:"center",alignItems:"center",padding:16}:{justifyContent:"flex-end"}],children:[(0,c.jsx)(s.Pressable,{style:s.StyleSheet.absoluteFill,onPress:()=>f(!1)}),(0,c.jsxs)(s.View,{style:[Ye.sheet,x?{maxWidth:672,maxHeight:"85%",borderRadius:16}:{maxHeight:"88%",borderTopLeftRadius:16,borderTopRightRadius:16},{backgroundColor:d.background,borderColor:d.border}],children:[(0,c.jsx)(s.View,{style:[Ye.header,{paddingHorizontal:x?24:16,borderBottomColor:d.border,backgroundColor:d.backgroundAlt}],children:(0,c.jsx)(s.Text,{style:[Ye.title,{color:d.text,fontFamily:u??h}],children:r})}),(0,c.jsx)(s.ScrollView,{contentContainerStyle:S?void 0:{paddingHorizontal:x?24:16,paddingVertical:20},children:k?(0,c.jsx)(He,{panel:t,theme:n,dividends:o,bodyFont:h,headingFont:u}):(0,c.jsxs)(c.Fragment,{children:[S?(0,c.jsx)(Ee,{content:e,colors:d}):(0,c.jsx)(Ne,{content:e??"",colors:d,bodyFont:h,headingFont:u}),o?(0,c.jsx)(s.View,{style:S?{paddingHorizontal:x?24:16,paddingBottom:20}:{marginTop:16},children:o}):null]})}),(0,c.jsx)(s.SafeAreaView,{style:[Ye.footer,{borderTopColor:d.border,backgroundColor:d.backgroundAlt}],children:(0,c.jsx)(s.View,{style:{paddingVertical:16,paddingHorizontal:x?24:16},children:(0,c.jsx)(s.Pressable,{onPress:()=>f(!1),style:({pressed:e,hovered:t})=>[Ye.doneButton,{alignSelf:"stretch",alignItems:"center",backgroundColor:d.primary,opacity:e?.88:t?.92:1,transform:[{scale:e?.99:1}]}],children:(0,c.jsx)(s.Text,{style:[Ye.doneText,{color:d.primaryText,fontFamily:h}],children:"Got it"})})})})]})]})})]})}var Ye=s.StyleSheet.create({button:{alignSelf:"flex-start",flexDirection:"row",alignItems:"center",gap:6,borderWidth:1,borderRadius:999,paddingHorizontal:12,paddingVertical:6},buttonText:{fontSize:12,fontWeight:"600"},iconButton:{width:21,height:21,borderRadius:11,borderWidth:1,alignItems:"center",justifyContent:"center",flexShrink:0},iconButtonText:{fontSize:12,fontWeight:"800",lineHeight:15},overlay:{flex:1,backgroundColor:"rgba(0,0,0,0.55)"},sheet:{width:"100%",borderWidth:1,overflow:"hidden",shadowColor:"#000",shadowOffset:{width:0,height:25},shadowOpacity:.25,shadowRadius:25,elevation:24},header:{paddingTop:12,paddingBottom:16,borderBottomWidth:1},title:{fontSize:18,fontWeight:"700"},footer:{borderTopWidth:1},doneButton:{borderRadius:999,paddingVertical:14,paddingHorizontal:20},doneText:{fontSize:14,fontWeight:"800",letterSpacing:1.1,textTransform:"uppercase"}});function Ve({category:e,size:t=14,color:n="currentColor"}){const o=n,r=2.25;switch(e){case"casino":return(0,c.jsxs)(d.default,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,c.jsx)(d.Path,{d:"M10.348 3.169l-7.15 3.113a2 2 0 0 0 -1.03 2.608l4.92 11.895a1.96 1.96 0 0 0 2.59 1.063l7.142 -3.11a2.002 2.002 0 0 0 1.036 -2.611l-4.92 -11.894a1.96 1.96 0 0 0 -2.588 -1.064z",fill:n}),(0,c.jsx)(d.Path,{d:"M16 3a2 2 0 0 1 1.995 1.85l.005 .15v3.5a1 1 0 0 1 -1.993 .117l-.007 -.117v-3.5h-1a1 1 0 0 1 -.117 -1.993l.117 -.007h1z",fill:n}),(0,c.jsx)(d.Path,{d:"M19.08 5.61a1 1 0 0 1 1.31 -.53c.257 .108 .505 .21 .769 .314a2 2 0 0 1 1.114 2.479l-.056 .146l-2.298 5.374a1 1 0 0 1 -1.878 -.676l.04 -.11l2.296 -5.371l-.366 -.148l-.402 -.167a1 1 0 0 1 -.53 -1.312z",fill:n})]});case"racing":return(0,c.jsxs)(d.default,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,c.jsx)(d.Path,{d:"M7 10l-.85 8.507a1.357 1.357 0 0 0 1.35 1.493h.146a2 2 0 0 0 1.857 -1.257l.994 -2.486a2 2 0 0 1 1.857 -1.257h1.292a2 2 0 0 1 1.857 1.257l.994 2.486a2 2 0 0 0 1.857 1.257h.146a1.37 1.37 0 0 0 1.364 -1.494l-.864 -9.506h-8c0 -3 -3 -5 -6 -5l-3 6l2 2l3 -2",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)(d.Path,{d:"M22 14v-2a3 3 0 0 0 -3 -3",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]});case"women":return(0,c.jsxs)(d.default,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,c.jsx)(d.Path,{d:"M7 9a5 5 0 1 0 10 0a5 5 0 1 0 -10 0",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)(d.Path,{d:"M12 14v7",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)(d.Path,{d:"M9 18h6",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]});default:return(0,c.jsxs)(d.default,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,c.jsx)(d.Path,{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)(d.Path,{d:"M12 7l4.76 3.45l-1.76 5.55h-6l-1.76 -5.55l4.76 -3.45",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)(d.Path,{d:"M12 7v-4m3 13l2.5 3m-.74 -8.55l3.74 -1.45m-11.44 7.05l-2.56 2.95m.74 -8.55l-3.74 -1.45",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]})}}function Ue({size:e=20,color:t="currentColor"}){return(0,c.jsx)(d.default,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:(0,c.jsx)(d.Path,{d:"m9 6 6 6-6 6",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function Ke({size:e=20,color:t="currentColor"}){return(0,c.jsxs)(d.default,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[(0,c.jsx)(d.Path,{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"}),(0,c.jsx)(d.Path,{d:"M8 11V7a4 4 0 1 1 8 0v4",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})]})}function qe({size:e=20,color:t="currentColor"}){return(0,c.jsx)(d.default,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:(0,c.jsx)(d.Path,{d:"M21 4H3l7.2 8.5V19l3.6 2v-8.5L21 4z",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function Ze({label:e,category:t,icon:n,theme:o,disabled:r=!1}){const i=o.colors,l=se(o),{width:a}=(0,s.useWindowDimensions)(),d=a>=480?20:a>=400?18:16,h=r?i.textMuted:i.textAlt??i.text,u=r?i.border:o.brand?.chip??i.primary,g=r?i.textMuted:o.brand?.icon??i.primaryText??i.buttonPrimaryText;return(0,c.jsxs)(s.View,{style:[Xe.row,{gap:.25*d}],children:[(0,c.jsxs)(s.Text,{accessibilityLabel:"YESNO",style:{fontSize:d,lineHeight:1.15*d,letterSpacing:-1,color:h,fontFamily:l},children:[(0,c.jsx)(s.Text,{style:Xe.yes,children:"YES"}),(0,c.jsx)(s.Text,{style:Xe.no,children:"NO"})]}),(0,c.jsx)(s.View,{accessible:!0,accessibilityRole:"image",accessibilityLabel:e,style:[Xe.pill,{width:1.6*d,height:.85*d,borderRadius:.425*d,backgroundColor:u,transform:[{translateY:.02*-d}]}],children:n??(0,c.jsx)(Ve,{category:t,size:.6*d,color:g})}),(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"flex-start",flexShrink:1,minWidth:0},children:[(0,c.jsx)(s.Text,{style:{fontWeight:"500",fontSize:d,lineHeight:1.15*d,flexShrink:1,minWidth:0,color:h,fontFamily:l,includeFontPadding:!1},children:e}),(0,c.jsx)(s.Text,{style:{fontSize:.3*d,lineHeight:.3*d,fontWeight:"600",marginLeft:.06*d,color:h,fontFamily:l,includeFontPadding:!1},children:"TM"})]})]})}var Xe=s.StyleSheet.create({row:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",maxWidth:"100%"},yes:{fontWeight:"900"},no:{fontWeight:"300"},pill:{alignItems:"center",justifyContent:"center",flexShrink:0}});function Qe({size:e=20,color:t="currentColor",filled:n=!1}){return(0,c.jsx)(d.default,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:(0,c.jsx)(d.Path,{d:"M12 3.6l2.6 5.28 5.83.85-4.22 4.11.997 5.8L12 16.9l-5.2 2.74.99-5.8L3.57 9.73l5.83-.85L12 3.6z",fill:n?t:"none",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function Je({theme:e,contentContainerStyle:t,style:n,children:o}){const r=e.colors,i=(0,a.useRef)(null),l=(0,a.useRef)(0),d=(0,a.useRef)(0),h=(0,a.useRef)(0),[u,g]=(0,a.useState)(!1),[f,p]=(0,a.useState)(!1),y=()=>{const e=h.current-d.current;g(l.current>2),p(l.current<e-2)},m=e=>{const t=Math.max(0,l.current+e*Math.round(.7*d.current));Be(i,t)},b=r.background??"#fff";return(0,c.jsxs)(s.View,{style:[$e.wrap,n],children:[(0,c.jsx)(s.ScrollView,{ref:i,horizontal:!0,showsHorizontalScrollIndicator:!1,onScroll:e=>{l.current=e.nativeEvent.contentOffset.x,y()},onLayout:e=>{d.current=e.nativeEvent.layout.width,y()},onContentSizeChange:e=>{h.current=e,y()},scrollEventThrottle:32,contentContainerStyle:[$e.content,t],children:o}),u&&(0,c.jsx)(s.TouchableOpacity,{accessibilityLabel:"Scroll left",onPress:()=>m(-1),style:[$e.nav,$e.navLeft,{backgroundColor:b,borderColor:r.border}],children:(0,c.jsx)(s.View,{style:$e.navFlip,children:(0,c.jsx)(Ue,{size:14,color:r.primary})})}),f&&(0,c.jsx)(s.TouchableOpacity,{accessibilityLabel:"Scroll right",onPress:()=>m(1),style:[$e.nav,$e.navRight,{backgroundColor:b,borderColor:r.border}],children:(0,c.jsx)(Ue,{size:14,color:r.primary})})]})}var $e=s.StyleSheet.create({wrap:{position:"relative",minWidth:0},content:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:2,paddingVertical:2},nav:{position:"absolute",top:"50%",marginTop:-13,width:26,height:26,borderRadius:13,borderWidth:1,alignItems:"center",justifyContent:"center",shadowColor:"#0F4C5C",shadowOpacity:.35,shadowRadius:5,shadowOffset:{width:0,height:4},elevation:3},navLeft:{left:-2},navRight:{right:-2},navFlip:{transform:[{rotate:"180deg"}]}});function _e({groups:e,theme:t,bodyFont:n}){const o=t.colors,r=o.background??"#fff";return 0===e.length?null:(0,c.jsx)(Je,{theme:t,children:e.map((e,t)=>(0,c.jsxs)(a.default.Fragment,{children:[t>0&&(0,c.jsx)(s.View,{style:[tt.divider,{backgroundColor:o.border}]}),e.label?(0,c.jsx)(s.Text,{style:[tt.groupLabel,{color:o.textMuted,fontFamily:n}],children:e.label}):null,e.options.map(t=>{const i=t.value===e.value;return(0,c.jsx)(s.TouchableOpacity,{onPress:()=>e.onChange(t.value),activeOpacity:.8,style:[tt.chip,{borderColor:i?o.primary:o.border,backgroundColor:i?o.primary:r}],children:(0,c.jsx)(s.Text,{style:[tt.chipText,{color:i?o.primaryText:o.primary,fontFamily:n}],children:t.label})},t.value??"__all")})]},e.label??t))})}function et({label:e,options:t,value:n,onChange:o,theme:r,bodyFont:i}){return(0,c.jsx)(_e,{groups:[{label:e,options:t,value:n,onChange:o}],theme:r,bodyFont:i})}var tt=s.StyleSheet.create({groupLabel:{fontSize:10,fontWeight:"800",textTransform:"uppercase",letterSpacing:1.4,flexShrink:0},divider:{width:1,height:20,flexShrink:0},chip:{borderWidth:1,borderRadius:999,paddingHorizontal:14,paddingVertical:6,flexShrink:0},chipText:{fontSize:12,fontWeight:"700",letterSpacing:-.12}});function nt(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function ot(e){return(e.description??e.proposition??"").trim()}var rt={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function it(e){return"composite_and"===(t=nt(e))||"composite_or"===t;var t}function lt(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 at(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 st(e,t){if(!it(e))return null;const n=function(e){return it(e)?("composite_and"===(t=nt(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=lt(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:ot(o),eventLabel:at(o),prop:o})}if(e.length>=2)return{operator:n,legs:e}}const r=function(e,t){const n=e.trim();if(!n)return null;const o=n.split(rt[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(ot(e),n);return r?{operator:n,legs:r.map(e=>({text:e,eventLabel:null,prop:null}))}:null}var ct="#0F4C5C",dt={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"},ht={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner"};function ut(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=dt[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 gt(e,t){return e>0?`${e} today`:t>0?`${t} picks`:"No picks"}function ft(e){return!!e.is_composite_component||!!(t=nt(e))&&t.startsWith("co_");var t}function pt(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function yt(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}function mt(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 bt(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 wt(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(it(e)&&t)for(const n of lt(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var kt=["sports","casino","racing"];function St(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=(nt(e)??"").toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"sports"}function Ct(e){return"racing"===St(e)}function Bt(e){const t={};for(const n of e){const e=St(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function zt(e){const t=Bt(e);return kt.filter(e=>(t[e]?.length??0)>0)}function Ft(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";default:return"Choose a Sport"}}function vt(e,t,n,o){return o&&o.length>0?o.includes(e):!(void 0!==t&&e<t||void 0!==n&&e>n)}function Wt(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 Tt(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 At(e,t,n){return"racing"===e||!(!t?.length||!t.every(Ct))||!!n&&Boolean(t?.some(e=>e.sport===n||(e.sport||"").startsWith(`${n}_`)))}function Rt(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 Lt(e,t,n){const o=t?.[e];return o||Rt(e,n)}function Dt(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 Mt(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function Pt(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function Ht(e,t,n){return!t||!!e&&(Pt(e,t,n)||Pt(t,e,n))}function Ot(e,t){return t.find(t=>t.id===e)}function It(e,t){let n=e;return t?.category&&(n=n.filter(e=>St(e)===t.category)),t?.sport&&(n=n.filter(n=>it(n)?function(e,t,n,o){if(Ht(e.sport,t,n))return!0;if(!o)return!1;for(const r of lt(e)){const e=Ot(r,o);if(e&&Ht(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):Ht(n.sport,t.sport,t.sportBaseKey))),n}function Et(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t?t:"sports"}(e)===t}function jt(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>Pt(t,e,n))}function Nt(e,t,n){return!(n?.category&&!Et(e,n.category))&&!(n?.sport&&!jt(e,n.sport,n.sportBaseKey))&&It(Vt(t,e),n).length>0}function Gt(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!Et(e,t.category)||t.sport&&!jt(e,t.sport,t.sportBaseKey))):e}function Yt(e,t){if(e.sport||!it(e))return e;const n=xt(e,t);return"Other"===n?e:{...e,sport:n}}function Vt(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(ft(l))return!1;if(r)if(it(l)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>Pt(e.sport,t,n)))return!0;if(!o)return!1;for(const r of lt(e)){const e=Ot(r,o);if(e?.sport&&t.some(t=>Pt(e.sport,t,n)))return!0}return!1}(l,o,n,e))return!1}else if(!l.sport||!o.some(e=>Pt(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=nt(e);return!!o&&n.includes(o)}(l,t))}).map(t=>Yt(t,e)):e.filter(e=>!ft(e)).map(t=>Yt(t,e))}function Ut(e,t){const n=e.available_days;if(!n)return!0;if(0===n.length)return!0;const o=((t??new Date).getDay()+6)%7;return n.includes(o)}var Kt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function qt(e,t,n){return At(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 Zt(e){const t=[];for(const n of e){const e=n.home_team&&n.away_team&&!Ct(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 Xt(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 Qt(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 Jt=new Map,$t=new Map;function _t(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 en({iconUrl:e,width:t,height:n,iconColor:o,accentColor:r,accessibilityLabel:i}){const l=pe(e),[h,u]=a.default.useState(()=>l??Jt.get(e)??null);return a.default.useEffect(()=>{const t=pe(e);if(t)return void u(t);if(Jt.has(e))return void u(Jt.get(e));let n=!1;return function(e){const t=Jt.get(e);if(void 0!==t)return Promise.resolve(t);const n=$t.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=>(Jt.set(e,t),$t.delete(e),t)).catch(t=>{throw $t.delete(e),t});return $t.set(e,o),o}(e).then(e=>{n||u(e)}).catch(()=>{n||u(null)}),()=>{n=!0}},[e]),h?(0,c.jsx)(d.SvgXml,{xml:_t(h,o,r),width:t,height:n,accessibilityLabel:i}):(0,c.jsx)(s.Image,{source:{uri:e},style:{width:t,height:n},resizeMode:"contain",accessibilityLabel:i})}function tn({iconUrl:e,gameName:t,onPress:n,size:o=120,brandColor:r="#0F4C5C",cardColor:i="#DDD9D2",iconColor:l,accentColor:h,captionColor:u="#14687C",accessibilityLabel:g}){const[f,p]=a.default.useState(!1),[y,m]=a.default.useState(!1),b=(t||"").toUpperCase(),w=170,x=o/360,k=l??i,S=O(r,h,k),C=a.default.useRef(new s.Animated.Value(0)).current,B=e=>({position:"absolute",left:40*x,top:5*x,width:210*x,height:210*x,borderRadius:42*x,backgroundColor:r,opacity:e}),z=e=>({transform:[{translateX:C.interpolate({inputRange:[0,1],outputRange:[e*x,0]})},{translateY:C.interpolate({inputRange:[0,1],outputRange:[e*x,0]})}]}),F=!!n&&(f||y);a.default.useEffect(()=>{s.Animated.timing(C,{toValue:F?1:0,duration:220,useNativeDriver:"web"!==s.Platform.OS}).start()},[F,C]);const v=()=>(0,c.jsxs)(s.View,{style:[nn.container,{width:o,height:o}],children:[(0,c.jsxs)(d.default,{viewBox:"0 0 360 360",width:o,height:o,children:[(0,c.jsx)(d.Rect,{x:2,y:2,width:356,height:356,rx:78,fill:i,stroke:r,strokeWidth:4}),(0,c.jsx)(d.Text,{x:180,y:305,fontFamily:"Manrope, Poppins, sans-serif",fontSize:32,letterSpacing:1.5,fontWeight:"800",textAnchor:"middle",fill:r,children:"PRESS TO PLAY"}),(0,c.jsx)(d.Text,{x:180,y:338,fontFamily:"Manrope, Poppins, sans-serif",fontSize:18,letterSpacing:2,fontWeight:"500",textAnchor:"middle",fill:u,children:b})]}),(0,c.jsx)(s.Animated.View,{pointerEvents:"none",style:[B(.3),z(50)]}),(0,c.jsx)(s.Animated.View,{pointerEvents:"none",style:[B(.55),z(25)]}),(0,c.jsx)(s.View,{pointerEvents:"none",style:B(1)}),(0,c.jsx)(s.View,{pointerEvents:"none",style:{position:"absolute",left:60*x,top:25*x,width:w*x,height:w*x},children:(0,c.jsx)(en,{iconUrl:e,width:w*x,height:w*x,iconColor:k,accentColor:S})})]});return n?(0,c.jsx)(s.Pressable,{onPress:n,onPressIn:()=>m(!0),onPressOut:()=>m(!1),onHoverIn:"web"===s.Platform.OS?()=>p(!0):void 0,onHoverOut:"web"===s.Platform.OS?()=>p(!1):void 0,accessibilityRole:"button",accessibilityLabel:g??`Press to play ${t}`,style:{width:o,height:o,borderRadius:o/360*78,transform:[{scale:y?.96:1}]},children:v()}):v()}var nn=s.StyleSheet.create({container:{position:"relative"}});function on({visible:e,anchor:t,onClose:n,flipUp:o=!1,align:r="left",gap:i=6,children:l}){if(!e||!t)return null;const a=s.Dimensions.get("window"),d=o?{bottom:Math.max(0,a.height-t.y+i)}:{top:t.y+t.height+i},h="right"===r?{right:Math.max(0,a.width-(t.x+t.width))}:{left:Math.max(0,t.x)};return(0,c.jsxs)(s.Modal,{transparent:!0,visible:!0,animationType:"none",onRequestClose:n,children:[(0,c.jsx)(s.Pressable,{style:s.StyleSheet.absoluteFill,onPress:n}),(0,c.jsx)(s.View,{style:{position:"absolute",...d,...h},onStartShouldSetResponder:()=>!0,children:l})]})}function rn(e){return e.selectionCard??e.backgroundAlt}function ln({color:e,style:t}){return(0,c.jsx)(s.View,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function an({colors:e,count:t=2}){const{width:n}=(0,s.useWindowDimensions)(),o=n>=400,r=n>=640,[i,l]=a.default.useState(0),d=o?i>0?(i-12)/2:"48%":"100%",h=rn(e);return(0,c.jsx)(s.View,{onLayout:e=>l(e.nativeEvent.layout.width),style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>(0,c.jsxs)(s.View,{style:{width:d,minHeight:r?140:112,borderRadius:16,borderWidth:1,padding:r?20:14,gap:r?12:8,justifyContent:"center",alignItems:"flex-start",backgroundColor:h,borderColor:e.border},children:[(0,c.jsx)(ln,{color:e.textMuted,style:{height:20,width:176,maxWidth:"100%"}}),(0,c.jsx)(ln,{color:e.textMuted,style:{height:12,width:96,maxWidth:"70%"}})]},n))})}function sn({colors:e,count:t=4}){const{width:n}=(0,s.useWindowDimensions)(),o=n>=640,r=rn(e);return(0,c.jsx)(s.View,{style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>(0,c.jsxs)(s.View,{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:[(0,c.jsx)(ln,{color:e.textMuted,style:{height:o?48:40,width:o?48:40,borderRadius:12}}),(0,c.jsxs)(s.View,{style:{flex:o?1:void 0,minWidth:0,alignItems:o?"flex-start":"center",gap:6},children:[(0,c.jsx)(ln,{color:e.textMuted,style:{height:14,width:80}}),(0,c.jsx)(ln,{color:e.textMuted,style:{height:10,width:48}})]}),o&&(0,c.jsx)(ln,{color:e.textMuted,style:{height:20,width:20,borderRadius:6}})]},n))})}function cn({colors:e,count:t=3}){const n=rn(e);return(0,c.jsx)(s.View,{style:{gap:10,width:"100%"},children:Array.from({length:t}).map((t,o)=>(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:16,borderWidth:1,paddingHorizontal:14,paddingVertical:14,backgroundColor:n,borderColor:e.border},children:[(0,c.jsxs)(s.View,{style:{flex:1,minWidth:0},children:[(0,c.jsx)(s.View,{style:{borderRadius:12,paddingHorizontal:12,paddingVertical:10,backgroundColor:e.backgroundAlt},children:(0,c.jsx)(ln,{color:e.textMuted,style:{height:16,width:176,maxWidth:"100%"}})}),(0,c.jsx)(ln,{color:e.textMuted,style:{height:12,width:160,maxWidth:"80%",marginTop:8}})]}),(0,c.jsx)(ln,{color:e.textMuted,style:{height:20,width:20,borderRadius:6}})]},o))})}function dn({colors:e,tileSize:t=116,width:n}){return(0,c.jsxs)(s.View,{style:{width:n??"100%",alignItems:"center",borderRadius:18,borderWidth:1,paddingHorizontal:14,paddingTop:24,paddingBottom:20,gap:4,borderColor:e.border,backgroundColor:rn(e)},children:[(0,c.jsx)(ln,{color:e.textMuted,style:{width:t,height:t,borderRadius:16}}),(0,c.jsx)(ln,{color:e.textMuted,style:{height:12,width:44,marginTop:4}}),(0,c.jsx)(ln,{color:e.textMuted,style:{height:17,width:128,maxWidth:"80%",marginTop:2}}),(0,c.jsx)(ln,{color:e.textMuted,style:{height:11,width:"75%",marginTop:10}})]})}function hn({colors:e}){return(0,c.jsx)(s.View,{style:{flexDirection:"row",gap:8,marginBottom:12,width:"100%"},children:[0,1,2].map(t=>(0,c.jsx)(ln,{color:e.textMuted,style:{height:38,flex:1,borderRadius:999}},t))})}function un({colors:e,count:t=3,tileSize:n=116,showTierTabs:o=!1}){const[r,i]=a.default.useState(0),l=r>=420?(r-12)/2:"100%";return(0,c.jsxs)(s.View,{style:{width:"100%"},onLayout:e=>i(e.nativeEvent.layout.width),children:[o&&(0,c.jsx)(hn,{colors:e}),(0,c.jsx)(s.View,{style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:t}).map((t,o)=>(0,c.jsx)(dn,{colors:e,tileSize:n,width:l},o))})]})}function gn({colors:e,groups:t=2,rowsPerGroup:n=2}){const{width:o}=(0,s.useWindowDimensions)(),r=o>=640;return(0,c.jsxs)(s.View,{style:{gap:r?24:16,paddingBottom:64,width:"100%"},children:[(0,c.jsx)(ln,{color:e.textMuted,style:{height:28,width:72,borderRadius:999}}),(0,c.jsx)(s.View,{style:{gap:16},children:Array.from({length:t}).map((t,o)=>(0,c.jsxs)(s.View,{style:{borderRadius:12,borderWidth:1,borderColor:e.border,backgroundColor:rn(e),overflow:"hidden"},children:[(0,c.jsxs)(s.View,{style:{paddingHorizontal:16,paddingVertical:12,gap:6,backgroundColor:e.backgroundAlt},children:[(0,c.jsx)(ln,{color:e.textMuted,style:{height:16,width:176,maxWidth:"80%"}}),(0,c.jsx)(ln,{color:e.textMuted,style:{height:12,width:96}})]}),Array.from({length:n}).map((t,n)=>(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingHorizontal:16,paddingVertical:r?14:12,borderTopWidth:1,borderTopColor:e.border},children:[(0,c.jsx)(ln,{color:e.textMuted,style:{height:16,flex:1,maxWidth:"58%"}}),(0,c.jsxs)(s.View,{style:{flexDirection:"row",gap:6,flexShrink:0},children:[(0,c.jsx)(ln,{color:e.textMuted,style:{height:r?32:28,width:r?48:44,borderRadius:8}}),(0,c.jsx)(ln,{color:e.textMuted,style:{height:r?32:28,width:r?48:44,borderRadius:8}})]})]},n))]},o))})]})}function fn({colors:e}){return(0,c.jsx)(s.View,{style:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:e.border,marginBottom:16,width:"100%"},children:[0,1].map(t=>(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10},children:[(0,c.jsx)(ln,{color:e.textMuted,style:{height:14,width:68}}),(0,c.jsx)(ln,{color:e.textMuted,style:{height:20,width:20,borderRadius:999}})]},t))})}function pn({colors:e}){return(0,c.jsxs)(s.View,{style:{borderRadius:8,borderWidth:1,borderColor:e.border,backgroundColor:rn(e),overflow:"hidden",width:"100%"},children:[(0,c.jsxs)(s.View,{style:{width:"100%",paddingHorizontal:16,paddingVertical:12,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,c.jsxs)(s.View,{style:{flex:1,minWidth:0,gap:6},children:[(0,c.jsx)(ln,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),(0,c.jsx)(ln,{color:e.textMuted,style:{height:12,width:128,maxWidth:"65%"}})]}),(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",gap:12,flexShrink:0},children:[(0,c.jsx)(ln,{color:e.textMuted,style:{height:14,width:40}}),(0,c.jsx)(ln,{color:e.textMuted,style:{height:24,width:60,borderRadius:999}})]})]}),(0,c.jsx)(s.View,{style:{borderTopWidth:1,borderTopColor:e.border,width:"100%"},children:[0,1,2].map(t=>(0,c.jsxs)(s.View,{style:{paddingHorizontal:16,paddingVertical:10,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:0===t?0:1,borderTopColor:e.border},children:[(0,c.jsxs)(s.View,{style:{flex:1,minWidth:0,gap:4},children:[(0,c.jsx)(ln,{color:e.textMuted,style:{height:14,width:"88%"}}),(0,c.jsx)(ln,{color:e.textMuted,style:{height:12,width:"70%"}})]}),(0,c.jsx)(ln,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]})}function yn({colors:e,rows:t=2}){return(0,c.jsxs)(s.View,{style:{width:"100%"},children:[(0,c.jsx)(fn,{colors:e}),(0,c.jsx)(s.View,{style:{gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>(0,c.jsx)(pn,{colors:e},n))})]})}function mn({colors:e,bodyFont:t,message:n,variant:o="category",gameCardCount:r=3,categoryCount:i=2,showTierTabs:l=!1}){const a=n?.trim()||"Loading",d=(()=>{switch(o){case"sport":return(0,c.jsx)(sn,{colors:e,count:Math.max(i,2)});case"event":return(0,c.jsx)(cn,{colors:e});case"games":return(0,c.jsx)(un,{colors:e,count:r,showTierTabs:l});case"propositions":return(0,c.jsx)(gn,{colors:e});case"entries":return(0,c.jsx)(yn,{colors:e,rows:2});default:return(0,c.jsx)(an,{colors:e,count:i})}})();return(0,c.jsxs)(s.View,{accessibilityRole:"progressbar",accessibilityLabel:a,accessibilityLiveRegion:"polite",style:{width:"100%"},children:[n?.trim()?(0,c.jsx)(s.Text,{style:{fontSize:14,textAlign:"center",marginBottom:16,color:e.textMuted,fontFamily:t},children:n}):null,d]})}function bn(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function wn(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function xn(e){if(!e||e.quick_pick_only)return!1;const t=wn(e.selection_scope);if("samegamemulti"===wn(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(wn);return n.includes("samegame")||n.includes("samegamemulti")}function kn(e){return(e.eventId??e.event_id)?.trim()||null}function Sn(e){const t=new Map;for(const n of e){if(!Fn(n))continue;const e=kn(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=Cn(o.homeTeam,n.home_team),o.awayTeam=Cn(o.awayTeam,n.away_team),o.sport=Cn(o.sport,n.sport),o.league=Cn(o.league,n.league),o.commenceTime=zn(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=Bn(e.commenceTime),o=Bn(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function Cn(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function Bn(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function zn(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=Bn(e),r=Bn(n);return r!==o?r<o?n:e:e.localeCompare(n)<=0?e:n}function Fn(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function vn(e,t){return t?e.filter(e=>Fn(e)&&kn(e)===t):[]}function Wn(e,t){return!!t&&e.length>0&&e.every(e=>Fn(e)&&kn(e)===t)}var Tn={signature:1,premier:2,exclusive:3},An=[{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 Rn(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function Ln(e,t){return e.filter(e=>Rn(e)===t)}function Dn(e){const t=new Set(e.map(Rn));return An.filter(e=>t.has(e.level))}function Mn(e){return Dn(e)[0]?.id??"signature"}var Pn=[4,12],Hn=[5,10,20,50];function On(e){return!!e&&!e.quick_pick_only&&"safety_net"===(e.rule??"").trim().toLowerCase()}function In(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 En(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)}function jn(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 Nn(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),s=[];let c=jn(t,0);for(let d=1;d<=r;d+=1)c+=jn(t,d),s.push(En(l*a/c,o.roundTo));return{legs:t,stake:e,allowedMisses:r,perfect:i,nearMiss:s,sweep:i+s.reduce((e,t)=>e+t,0)}}function Gn(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 Yn(e){return e.includes(8)?8:e[Math.floor(e.length/2)]}function Vn(e){return e.toLowerCase().replace(/[^a-z]+/g," ").trim()}function Un(e,t){const n=Vn(t);return e.permitted_rules?.find(e=>Vn(e.name??"").includes(n))??null}function Kn(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 qn(e){if(!On(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Pn[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Pn[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=Un(e,"Extra Shot"),i=Un(e,"Double Shot"),l=Kn(o,r,4).filter(e=>e>1),a=Kn(o,i,6).filter(e=>e>2);if(0===l.length)return null;const s=[{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:Yn(l),ruleId:r?.id??null}],c=!e.permitted_rules?.length||!!i;a.length>0&&c&&s.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:Yn(a),ruleId:i?.id??null});const d=Math.max(e.min_bet??5,.01),h=e.max_bet??null,u=Hn.filter(e=>null===h||e<=h);return{modes:s,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:In(e)}}function Zn(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function Xn(e,t,n){const o=Math.max(0,e-t),r=Nn(20,e,o,n),i=[];for(let l=0;l<=o;l+=1){const t=Math.round(Gn(r,l));i.push({misses:l,label:`${e-l}/${e}`,multiplier:t/20,payout20:t})}return i}function Qn(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:Xn(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:Xn(e,e-2,t),expectedCorrect:e-2}]}function Jn(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:Qn(t,In(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:Zn(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 $n(e){return null!=Jn(e)}var _n=[500,1e3,2500,5e3,7500,1e4,12500,15e3],eo=[12,11,10,9,8,7,6];function to(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function no(e){return Math.round(100*e)/100}function oo(e,t,n=.21875){const o=Math.pow(2,t),r=e/(1-n)/o,i=Number.isInteger(r),l=no(r),a=i?r:no(.96*r);return{legs:t,exactStake:l,stake:a,margin:1-e/(a*o),multiple:e/a,oddsOneIn:o,discounted:!i}}function ro(e,t=eo){return{dividend:e,rungs:t.map(t=>oo(e,t))}}function io(e,t){if(!to(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,r=eo.filter(e=>e>=n&&e<=o);if(0===r.length)return null;const i=t?.dividends??_n;return{dividends:i.map(e=>ro(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 lo(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?Xt(o,r):[],a=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 s=Array.from(a.values()).sort((e,t)=>e.count-t.count),c=l.length>0?Math.max(...l.map(Number)):0,d=to(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?[]:s.map(e=>({count:e.count,payout20:e.payout>0&&e.betAmount>0?e.payout/e.betAmount*20:0})),g=Jn(e,c),f="safety_net"===g?.kind?(g.options??[]).flatMap(e=>e.dividends?.length?[{id:e.id,label:e.label,tiers:e.dividends.map(e=>({label:e.label,payout20:e.payout20}))}]:[]):[];return{legOptions:l.map(Number),maxLegCount:c,tiers:u,modes:f,pydDividends:h,hasGenericDividends:(n.length>0||i)&&u.some(e=>e.payout20>0),minBet:Math.max(e.min_bet??1,1),maxBet:e.max_bet??null}}function ao({tiers:e,modes:t,pydDividends:n,onPlayCount:o,minBet:r=1,maxBet:i=null,colors:l,bodyFont:d,headingFont:h}){const u=e=>Math.min(Math.max(e,r),i??1/0),[g,f]=(0,a.useState)(()=>String(u(20))),p=parseFloat(g),y=u(Number.isFinite(p)&&p>0?p:20),m=y/20,b=!!(t?.length||n?.length||e.some(e=>e.payout20>0)),w=!!t?.length;if(!b)return null;const x=(0,c.jsxs)(s.View,{style:{marginBottom:8,flexDirection:"row",alignItems:"center",gap:4,flexWrap:"wrap"},children:[(0,c.jsx)(s.Text,{style:{fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:d},children:"Example values for a"}),(0,c.jsx)(s.Text,{style:{fontSize:11,fontWeight:"700",color:l.textMuted,fontFamily:d},children:"$"}),(0,c.jsx)(s.TextInput,{value:g,onChangeText:f,onBlur:()=>f(String(y)),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:d}}),(0,c.jsxs)(s.Text,{style:{fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:d},children:["bet",null!=i?` (${mt(r)}–${mt(i)})`:` (min ${mt(r)})`,"."]})]});return(0,c.jsxs)(s.View,{style:{width:"100%"},children:[w?(0,c.jsx)(s.Text,{style:{fontSize:11,fontWeight:"700",letterSpacing:1.4,textTransform:"uppercase",color:l.textMuted,fontFamily:d,marginBottom:6},children:"Compare dividends"}):null,(0,c.jsxs)(s.View,{style:{paddingHorizontal:14,paddingVertical:12},children:[n?.length?null:x,t?.length?t.map((e,t)=>(0,c.jsxs)(s.View,{style:{borderTopWidth:0===t?0:1,borderTopColor:l.border,paddingTop:0===t?0:8,marginTop:0===t?0:8},children:[(0,c.jsx)(s.Text,{style:{fontSize:11,fontWeight:"700",marginBottom:4,color:l.text,fontFamily:h},children:e.label}),e.tiers.map(e=>(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:4,gap:14},children:[(0,c.jsxs)(s.Text,{style:{color:l.textMuted,fontSize:11,flex:1,fontFamily:d},children:[e.label," correct"]}),(0,c.jsx)(s.Text,{style:{fontWeight:"700",color:l.heading??l.text,fontSize:12,fontFamily:d},children:mt(e.payout20*m)})]},e.label))]},e.id)):n?.length?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingBottom:4,marginBottom:4,borderBottomWidth:1,borderBottomColor:l.border},children:[(0,c.jsx)(s.Text,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:d},children:"Dividend"}),(0,c.jsx)(s.Text,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:d},children:"Stake from"})]}),n.map(e=>(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:4},children:[(0,c.jsx)(s.Text,{style:{fontWeight:"700",color:l.heading??l.text,fontSize:12,fontFamily:d},children:mt(e.dividend)}),(0,c.jsx)(s.Text,{style:{fontWeight:"600",color:l.text,fontSize:12,fontFamily:d},children:mt(e.stakeFrom)})]},e.dividend)),(0,c.jsx)(s.Text,{style:{marginTop:8,fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:d},children:"You set the dividend before kick-off. Longer climbs start from a smaller stake."})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingBottom:4,marginBottom:4,borderBottomWidth:1,borderBottomColor:l.border},children:[(0,c.jsx)(s.Text,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:d},children:"Legs played"}),(0,c.jsx)(s.Text,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:d},children:"Payout"})]}),e.map(e=>(0,c.jsxs)(o?s.TouchableOpacity:s.View,{...o?{onPress:()=>o(e.count),accessibilityRole:"button"}:{},style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:o?6:4},children:[(0,c.jsxs)(s.Text,{style:{fontWeight:"600",color:o?l.primary:l.text,fontSize:12,fontFamily:d},children:[e.count," legs"]}),(0,c.jsx)(s.Text,{style:{fontWeight:"600",color:e.payout20>0?l.text:l.textMuted,fontSize:12,fontFamily:d},children:e.payout20>0?mt(e.payout20*m):"—"})]},e.count))]})]})]})}function so({tabs:e,active:t,onChange:n,colors:o,bodyFont:r,useShortLabel:i}){return e.length<=1?null:(0,c.jsx)(s.View,{style:{flexDirection:"row",gap:8,marginBottom:12},children:e.map(e=>{const l=e.id===t;return(0,c.jsx)(s.TouchableOpacity,{onPress:()=>n(e.id),accessibilityRole:"button",accessibilityState:{selected:l},style:{flex:1,minWidth:0,borderRadius:999,paddingHorizontal:4,paddingVertical:10,borderWidth:1,borderColor:l?o.primary:o.border,backgroundColor:l?o.primary:o.background??"#fff",alignItems:"center",justifyContent:"center",shadowColor:l?o.primary:o.border,shadowOffset:{width:0,height:4},shadowOpacity:l?.35:.25,shadowRadius:l?6:5,elevation:l?4:2},children:(0,c.jsx)(s.Text,{numberOfLines:1,style:{fontFamily:r,fontSize:10,fontWeight:"700",letterSpacing:-.1,color:l?o.primaryText:o.primary},children:i?e.shortLabel:e.label})},e.id)})})}var co={scrollSnapType:"x mandatory"},ho={scrollSnapAlign:"center"};function uo({iconUrl:e,size:t,brandColor:n,iconColor:o,accentColor:r}){return(0,c.jsxs)(s.View,{style:{position:"relative",width:t,height:t},children:[(0,c.jsxs)(d.default,{viewBox:"30 -5 280 280",width:t,height:t,children:[(0,c.jsx)(d.Rect,{x:90,y:55,width:210,height:210,rx:42,fill:n,opacity:.3}),(0,c.jsx)(d.Rect,{x:65,y:30,width:210,height:210,rx:42,fill:n,opacity:.55}),(0,c.jsx)(d.Rect,{x:40,y:5,width:210,height:210,rx:42,fill:n})]}),(0,c.jsx)(s.View,{pointerEvents:"none",style:{position:"absolute",left:.107*t,top:.107*t,width:.607*t,height:.607*t},children:(0,c.jsx)(en,{iconUrl:e,width:.607*t,height:.607*t,iconColor:o,accentColor:r})})]})}function go({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:r,iconColor:i,accentColor:l,captionColor:d,bodyFont:u,legOptions:g,onPick:f,colors:p,menuShadow:y}){const[m,b]=(0,a.useState)(!1),[w,x]=(0,a.useState)(null),k=(0,a.useRef)(null),S=(0,a.useRef)(null),[C,z]=(0,a.useState)(null),[F,v]=(0,a.useState)(!1),[W,T]=(0,a.useState)(null),A="web"===s.Platform.OS,R=40+40*g.length+12;(0,a.useLayoutEffect)(()=>{if(!m||!A)return;const e=k.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<R&&i>r;z({top:t.top+o,bottom:t.bottom+o,right:t.right+n,flipUp:l})},[m,A,R]),(0,a.useEffect)(()=>{if(!m)return;if(A){const e=e=>{const t=k.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||S.current&&S.current.contains(n)||b(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}const e=k.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=s.Dimensions.get("window").height-(t+o);v(r<R&&t>r),T({x:e,y:t,width:n,height:o})})},[m,A,R]);const L=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.View,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:p.border},children:(0,c.jsx)(s.Text,{style:{fontSize:10,fontWeight:"700",color:p.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase",fontFamily:u},children:"How many picks?"})}),g.map((e,t)=>(0,c.jsxs)(s.TouchableOpacity,{onPress:()=>{b(!1),x(null),f(e)},onMouseEnter:()=>x(e),onMouseLeave:()=>x(t=>t===e?null:t),style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:0===t?0:1,borderTopColor:p.border,backgroundColor:w===e?p.backgroundAlt:"transparent"},children:[(0,c.jsxs)(s.Text,{style:{fontSize:14,fontWeight:"600",color:p.text,fontFamily:u},children:[e," picks"]}),(0,c.jsx)(s.Text,{style:{backgroundColor:B(p.primary,.14),color:p.primary,paddingVertical:2,paddingHorizontal:6,borderRadius:4,fontSize:10,fontWeight:"700",letterSpacing:.5,overflow:"hidden",fontFamily:u},children:"QP"})]},e))]});return(0,c.jsxs)(s.View,{ref:k,style:{position:"relative"},children:[(0,c.jsx)(tn,{iconUrl:e,gameName:t,onPress:()=>b(e=>!e),size:n,brandColor:o,cardColor:r,iconColor:i,accentColor:l,captionColor:d}),m&&A&&C&&"undefined"!=typeof document&&(0,h.createPortal)((0,c.jsx)("div",{ref:S,style:{position:"absolute",top:C.flipUp?void 0:C.bottom+6,bottom:C.flipUp&&"undefined"!=typeof window?window.innerHeight-C.top+6:void 0,left:C.right,transform:"translateX(-100%)",zIndex:20,backgroundColor:p.background,border:`1px solid ${p.border}`,borderRadius:8,minWidth:180,boxShadow:y,overflow:"hidden",fontFamily:u},children:L}),document.body),(0,c.jsx)(on,{visible:m&&!A,anchor:W,onClose:()=>b(!1),flipUp:F,align:"right",children:(0,c.jsx)(s.View,{style:{elevation:6,backgroundColor:p.background,borderRadius:8,borderWidth:1,borderColor:p.border,minWidth:180,shadowColor:"#000",shadowOffset:{width:0,height:12},shadowOpacity:.16,shadowRadius:24,overflow:"hidden"},children:L})})]})}function fo({games:e,selectedGame:t,onSelectGame:n,loading:o,error:r,theme:i,colorScheme:l,showTier:d=!1,showCategory:h=!1,showTierFilter:u=!1,onPropositionCountChange:g,onPropositionCountSelected:f,onQuickPickGame:p,maxPayouts:y}){const m=le(i,l),b=m.colors,w=j(m),x=ae(m),k=se(m),S=R(m),C=A(m),z=H(m),F="dark"===m.colorScheme,v=(0,a.useMemo)(()=>Dn(e),[e]),[W,T]=(0,a.useState)(()=>Mn(e));(0,a.useEffect)(()=>{0!==v.length&&(v.some(e=>e.id===W)||T(v[0].id))},[v,W]);const D=(0,a.useMemo)(()=>!u||v.length<=1?e:Ln(e,Tn[W]),[e,u,v.length,W]),M=e=>e.allowed_propositions&&e.allowed_propositions.length>0&&e.game_name.replace(/\s+\d+\s*$/,"").trim()||e.game_name,P=(e,t)=>{e.quick_pick_only&&p&&t>0?p(e,t):(t>0&&!xn(e)&&g?.(t),n(e),f?.())},[O,I]=(0,a.useState)(0),E=O>0&&O<400,N=E?108:124,G=O>0&&O<380,V=function(e,t){const n=t>0?Math.floor(t/68):e;return Math.max(2,Math.min(Math.ceil(e/2),n))}(D.length,O),U=O>0?(O-4*(V-1))/V:void 0,K=O>0?Math.min(.86*O,380):0,q=K>0?Math.max((O-K)/2,4):4,Z=K+14,X=D.length>1,Q=X&&q>=48,J=(0,a.useRef)(null),[$,_]=(0,a.useState)(0),ee=e=>{const t=Math.max(0,Math.min(e,D.length-1));Be(J,t*Z),_(t)};(0,a.useEffect)(()=>{Be(J,0,!1),_(0)},[W]);const te={shadowColor:"#000",shadowOpacity:F?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};return o?(0,c.jsx)(un,{colors:Y(m),count:Math.min(Math.max(e.length,2),4),showTierTabs:u&&v.length>1}):r?(0,c.jsx)(s.View,{style:po.centerContainer,children:(0,c.jsx)(s.Text,{style:{color:b.error,fontFamily:x},children:r})}):0===e.length?(0,c.jsx)(s.View,{style:po.centerContainer,children:(0,c.jsx)(s.Text,{style:{color:b.textMuted,fontFamily:x},children:"No games available"})}):(0,c.jsxs)(s.View,{style:{flexDirection:"column"},onLayout:e=>I(e.nativeEvent.layout.width),children:[u&&(0,c.jsx)(so,{tabs:v,active:W,onChange:T,colors:b,bodyFont:x,useShortLabel:G}),0===D.length?(0,c.jsx)(s.View,{style:po.centerContainer,children:(0,c.jsx)(s.Text,{style:{color:b.textMuted,fontFamily:x},children:"No games in this collection"})}):(0,c.jsxs)(s.View,{style:{position:"relative"},children:[(0,c.jsx)(s.ScrollView,{ref:J,horizontal:!0,showsHorizontalScrollIndicator:!1,decelerationRate:"fast",snapToInterval:Z>0?Z:void 0,snapToAlignment:"start",style:co,scrollEventThrottle:16,onScroll:e=>{if(Z<=0)return;const t=Math.round(e.nativeEvent.contentOffset.x/Z);_(e=>e===t?e:t)},contentContainerStyle:{alignItems:"stretch",gap:14,paddingLeft:q,paddingRight:q,paddingBottom:8},children:D.map(e=>{const o=Ut(e),r=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>Kt[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=Tt(e),u=e.description||e.rule,g=e.call_to_action?.trim()||null,{legOptions:F,maxLegCount:v,tiers:W,modes:T,pydDividends:A,hasGenericDividends:R,minBet:D,maxBet:H}=lo(e,y?.[e.id]),O=fe(e),I=!o&&r?`Available ${r}`:null;return(0,c.jsxs)(s.View,{style:[po.gameCard,ho,{width:K||void 0,flexGrow:0,flexShrink:0,borderColor:i?b.primary:b.border,backgroundColor:i?b.infoBg:b.background??w,opacity:o?1:.5},te],pointerEvents:o?"auto":"none",children:[e.quick_pick_only&&p&&F.length>1?(0,c.jsx)(go,{iconUrl:O,gameName:M(e),size:N,brandColor:b.primary,cardColor:w,iconColor:b.primaryText,accentColor:z,captionColor:b.textMuted,bodyFont:x,legOptions:F.map(Number),onPick:t=>P(e,t),colors:b,menuShadow:C}):(0,c.jsx)(tn,{iconUrl:O,gameName:M(e),onPress:()=>P(e,v),size:N,brandColor:b.primary,cardColor:w,iconColor:b.primaryText,accentColor:z,captionColor:b.primary}),(0,c.jsxs)(s.Text,{style:{marginTop:8,fontFamily:k,fontSize:13,letterSpacing:-.52,lineHeight:13},children:[(0,c.jsx)(s.Text,{style:{fontWeight:"800",color:b.primary},children:"YES"}),(0,c.jsx)(s.Text,{style:{fontWeight:"600",color:B(b.primary,.85)},children:"NO"})]}),(0,c.jsxs)(s.View,{style:{marginTop:2,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6},children:[(0,c.jsx)(s.Text,{style:{fontFamily:k,fontWeight:"600",fontSize:E?19:21,color:S,letterSpacing:-.19,lineHeight:1.2*(E?19:21),textAlign:"center",paddingHorizontal:4},children:M(e)}),(0,c.jsx)(Ge,{variant:"icon",panel:Ce(e),content:u||"Pick outcomes and land the payout for this game.",theme:m,title:M(e),label:`How to play ${M(e)}`,extra:(0,c.jsx)(ao,{tiers:R?W:[],modes:T,pydDividends:A,onPlayCount:F.length>1?t=>P(e,t):void 0,minBet:D,maxBet:H,colors:b,bodyFont:x,headingFont:k}),colors:b,bodyFont:x,headingFont:k})]}),g?(0,c.jsx)(s.Text,{style:{marginTop:6,fontSize:13,lineHeight:17,fontWeight:"700",color:b.primary,textAlign:"center",fontFamily:x},children:g}):null,u?(0,c.jsx)(s.Text,{style:{marginTop:8,fontSize:12.5,lineHeight:18,color:b.textMuted,textAlign:"center",fontFamily:x},children:u}):null,a.enabled&&(0,c.jsx)(s.View,{style:[po.jackpotBadge,{backgroundColor:`${b.warning}15`,marginTop:8}],children:(0,c.jsxs)(s.Text,{style:[po.jackpotBadgeText,{color:b.warning,fontFamily:x}],children:["★ ",a.progressive?a.amount>0?mt(a.amount):a.limit>0?`Up to ${mt(a.limit)}`:"Jackpot":mt(a.amount)]})}),(h||d)&&(0,c.jsxs)(s.View,{style:[po.tagsRow,{justifyContent:"center",marginTop:8}],children:[h&&e.category&&(0,c.jsx)(s.View,{style:[po.tag,{backgroundColor:b.backgroundAlt}],children:(0,c.jsx)(s.Text,{style:[po.tagText,{color:L(m),fontFamily:x}],children:e.category})}),h&&(0,c.jsx)(s.View,{style:[po.tag,{backgroundColor:b.backgroundAlt}],children:(0,c.jsx)(s.Text,{style:[po.tagText,{color:L(m),fontFamily:x}],children:e.rule})}),h&&e.lotto_type&&(0,c.jsx)(s.View,{style:[po.tag,{backgroundColor:b.backgroundAlt}],children:(0,c.jsx)(s.Text,{style:[po.tagText,{color:L(m),fontFamily:x}],children:e.lotto_type})}),d&&null!=e.tier&&(0,c.jsx)(s.View,{style:[po.tag,{backgroundColor:b.backgroundAlt}],children:(0,c.jsxs)(s.Text,{style:[po.tagText,{color:L(m),fontFamily:x}],children:["Tier ",e.tier]})})]}),0===F.length&&(0,c.jsx)(s.View,{style:{marginTop:8,width:"100%"},children:(0,c.jsx)(ve,{theme:m,variant:"primary",size:"sm",onPress:()=>{n(e),f?.()},children:"Select game"})}),I?(0,c.jsx)(s.View,{style:{marginTop:"auto",width:"100%",paddingTop:12},children:(0,c.jsx)(s.Text,{style:{fontSize:11,lineHeight:15,fontWeight:"600",color:b.text,textAlign:"center",fontFamily:x},children:I})}):null]},l)})}),Q&&(0,c.jsx)(c.Fragment,{children:[-1,1].map(e=>{const t=e<0?$>0:$<D.length-1;return(0,c.jsx)(s.TouchableOpacity,{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:b.border,backgroundColor:B(b.background??"#fff",.94),alignItems:"center",justifyContent:"center",opacity:t?1:.3,zIndex:1,...te},children:(0,c.jsx)(s.Text,{style:{fontSize:18,lineHeight:20,color:b.primary,fontFamily:x},children:e<0?"‹":"›"})},e)})})]}),D.length>0&&X&&(0,c.jsx)(s.View,{style:{flexDirection:"row",justifyContent:"center",flexWrap:"wrap",paddingTop:4,paddingBottom:8},children:D.map((e,t)=>(0,c.jsx)(s.TouchableOpacity,{accessibilityRole:"button",accessibilityLabel:`Go to ${M(e)}`,onPress:()=>ee(t),style:{paddingVertical:18.5,paddingHorizontal:5,marginVertical:-18.5,alignItems:"center",justifyContent:"center"},children:(0,c.jsx)(s.View,{style:{width:t===$?22:7,height:7,borderRadius:999,backgroundColor:t===$?b.primary:B(b.primary,.25)}})},e.id))}),D.length>0&&X&&(0,c.jsxs)(s.View,{style:{borderTopWidth:1,borderTopColor:b.border,paddingTop:10,marginTop:2},children:[(0,c.jsx)(s.Text,{style:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.6,color:b.textMuted,fontFamily:k,marginBottom:8},children:"All games"}),(0,c.jsx)(s.View,{style:{flexDirection:"row",flexWrap:"wrap",gap:4},children:D.map((e,t)=>{const n=Ut(e);return(0,c.jsxs)(s.TouchableOpacity,{accessibilityRole:"button",accessibilityState:{selected:t===$,disabled:!n},onPress:()=>(e=>{P(e,lo(e,y?.[e.id]).maxLegCount)})(e),disabled:!n,style:{alignItems:"center",gap:4,paddingHorizontal:4,paddingVertical:6,borderRadius:16,borderWidth:1,borderColor:t===$?b.primary:"transparent",opacity:n?1:.5,width:U},children:[(0,c.jsx)(uo,{iconUrl:fe(e),size:E?44:52,brandColor:b.primary,iconColor:b.primaryText,accentColor:z}),(0,c.jsx)(s.Text,{numberOfLines:2,style:{fontSize:11,fontWeight:"700",lineHeight:13,textAlign:"center",letterSpacing:-.11,color:t===$?b.primary:S,fontFamily:k},children:M(e)})]},e.id)})})]})]})}var po=s.StyleSheet.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}}),yo=class{constructor(e){this.inflight=new Map,this.cache=new Map,this.apiUrl=e.apiUrl,this.apiKey=e.apiKey,this.fetchImpl=e.fetchImpl??fetch.bind(globalThis),this.getAuthHeaders=e.getAuthHeaders}invalidateCache(){this.cache.clear()}invalidate(){this.invalidateCache()}async request(e,t,n){const o=`${this.apiUrl}${e}`,r=(t?.method??"GET").toUpperCase(),i="GET"===r,l=i,a=!i&&!n?.idempotent,s=`${r} ${o}`;if(l){const e=this.cache.get(s);if(e&&Date.now()-e.at<5e3)return e.value;const t=this.inflight.get(s);if(t)return t}const c=l?this.cache.get(s):void 0,d=(async()=>{let e;try{const n=this.getAuthHeaders?await this.getAuthHeaders():void 0;e=await this.fetchImpl(o,{...t,headers:{"Content-Type":"application/json",...this.apiKey?{"X-API-Key":this.apiKey}:{},...n??{},...c?.etag?{"If-None-Match":c.etag}:{},...t?.headers}})}catch(r){throw r}if(304===e.status&&c)return l&&this.cache.set(s,{at:Date.now(),value:c.value,etag:c.etag}),c.value;if(!e.ok){let t=`API request failed: ${e.status} ${e.statusText}`;try{const n=await e.json();422===e.status&&n.detail?Array.isArray(n.detail)?t=n.detail.map(e=>`${Array.isArray(e.loc)?e.loc.join("."):"field"}: ${e.msg}`).join("; "):"string"==typeof n.detail?t=n.detail:"object"==typeof n.detail&&(t=JSON.stringify(n.detail)):n.message?t=n.message:n.error&&(t=n.error)}catch{}throw new Error(t)}const n=await e.json();if(l){const t=e.headers.get("ETag")??void 0;this.cache.set(s,{at:Date.now(),value:n,etag:t})}return n})();return l?(this.inflight.set(s,d),d.catch(()=>{}).finally(()=>{this.inflight.delete(s)})):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 mo(e,t,n){const[o,r]=(0,a.useState)([]),[i,l]=(0,a.useState)(null),[s,c]=(0,a.useState)(!n?.skip),[d,h]=(0,a.useState)(null),u=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",g=(0,a.useRef)(t);g.current=t;const f=n?.skip??!1,p=(0,a.useCallback)(async()=>{if(!f)try{c(!0),h(null);const t=await e.getGames(g.current);r(t.games),l(t.howToPlayMarkdown)}catch(t){h(t instanceof Error?t.message:"Failed to fetch games")}finally{c(!1)}},[e,u,f]);return(0,a.useEffect)(()=>{p()},[p]),{games:o,howToPlayMarkdown:i,loading:s,error:d,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await p()},[e,p])}}function bo(e,t,n){const[o,r]=(0,a.useState)([]),[i,l]=(0,a.useState)(!n?.skip),[s,c]=(0,a.useState)(null),d=n?.skip??!1,h=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",u=(0,a.useRef)(t);u.current=t;const g=(0,a.useCallback)(async()=>{if(!d)try{l(!0),c(null);const t=await e.getPropositions(u.current);r(t)}catch(t){c(t instanceof Error?t.message:"Failed to fetch propositions")}finally{l(!1)}},[e,h,d]);return(0,a.useEffect)(()=>{g()},[g]),{propositions:o,loading:i,error:s,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await g()},[e,g])}}function wo(e,t){const[n,o]=(0,a.useState)([]),[r,i]=(0,a.useState)(!t?.skip),[l,s]=(0,a.useState)(null),c=t?.skip??!1,d=(0,a.useCallback)(async()=>{if(!c)try{i(!0),s(null),o(await e.getSports())}catch(t){s(t instanceof Error?t.message:"Failed to fetch sports")}finally{i(!1)}},[e,c]);return(0,a.useEffect)(()=>{d()},[d]),{sports:n,loading:r,error:l,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await d()},[e,d])}}function xo(e,t,n){const[o,r]=(0,a.useState)([]),[i,l]=(0,a.useState)(!n?.skip),[s,c]=(0,a.useState)(null),d=n?.skip??!1,h=t?`${t.user_id??""}_${t.pending??""}`:"",u=(0,a.useRef)(t);u.current=t;const g=(0,a.useCallback)(async()=>{if(!d)try{l(!0),c(null);const t=await e.getGameEntries(u.current);r(t)}catch(t){c(t instanceof Error?t.message:"Failed to fetch entries")}finally{l(!1)}},[e,h,d]);return(0,a.useEffect)(()=>{g()},[g]),{entries:o,loading:i,error:s,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await g()},[e,g])}}function ko(e,t,n){const[o,r]=(0,a.useState)({}),[i,l]=(0,a.useState)(!1),s=n?.skip??!1,c=n?.betAmount,d=(0,a.useRef)(new Set);return(0,a.useEffect)(()=>{if(s||0===t.length)return;const n=t.filter(e=>!(e.id in o)&&!d.current.has(e.id));if(0===n.length)return;for(const e of n)d.current.add(e.id);let i=!1;return l(!0),(async()=>{try{const t=await e.getGamesMaxPayouts(n.map(e=>e.id),c);i||r(e=>({...e,...t}))}catch{}finally{i||l(!1)}})(),()=>{i=!0}},[e,t.map(e=>e.id).join(","),s,c]),{maxPayouts:o,loading:i,refetchGame:(0,a.useCallback)(async(t,n)=>{if(!s)try{const o=await e.getGamesMaxPayouts([t],n??c);o[t]&&r(e=>({...e,[t]:o[t]}))}catch{}},[e,s,c])}}function So(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[i,l]=(0,a.useState)(null);return{createEntry:async t=>{try{n(!0),r(null),await function(e=15e3){return"undefined"==typeof navigator||!1!==navigator.onLine||"undefined"==typeof window||"function"!=typeof window.addEventListener?Promise.resolve():new Promise(t=>{const n=()=>{window.removeEventListener("online",n),clearTimeout(o),t()},o=setTimeout(n,e);window.addEventListener("online",n)})}();const 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,clearSubmitError:(0,a.useCallback)(()=>r(null),[])}}function Co(e){const[t,n]=(0,a.useState)(e?"sport":"game"),[o,r]=(0,a.useState)(null),[i,l]=(0,a.useState)({}),[s,c]=(0,a.useState)(null);return{step:t,selectedGame:o,selections:i,placedEntry:s,setGameOnly:e=>{r(e)},clearSelectedGame:()=>{r(null),l({})},goToSportSelection:e=>{e&&r(e),n("sport")},goToConfirmation:()=>{n("confirm")},goToSuccess:e=>{c(e),n("success")},goBack:()=>{"confirm"===t?n("sport"):"sport"===t&&(n("game"),r(null),l({}))},reset:()=>{n("game"),r(null),l({}),c(null)},toggleSelection:(e,t)=>{l(n=>{const o={...n};return o[e]===t?delete o[e]:o[e]=t,o})}}}function Bo(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[i,l]=(0,a.useState)(null);return{preview:(0,a.useCallback)(async(t,o)=>{try{n(!0),r(null);const i=await e.getEntryPreview(t,o);return l(i),i}catch(i){const e=i instanceof Error?i.message:"Failed to preview entry";throw r(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:o,result:i}}var zo=[1,5,10,20,50,100],Fo=[4,12];function vo(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function Wo(e,t,n){const o=n?.operatorMargin??.2,r=n?.perLegProbability??.5,i=Math.round(Math.pow(1/r,t)),l=(1-o)*Math.pow(1/r,t);return{legs:t,stake:e,prize:Math.round(e*l*100)/100,multiple:l,oddsOneIn:i}}function To(e){if(!vo(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Fo[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Fo[1],o=e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n);if(0===o.length)return null;const r=Math.max(e.min_bet??1,.01),i=e.max_bet??null,l=zo.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 Ao=[25,50,75,100],Ro=[{legs:4,firstPayingTier:3,tiers50:[[3,60],[4,340]]},{legs:6,firstPayingTier:4,tiers50:[[4,40],[5,110],[6,850]]},{legs:8,firstPayingTier:5,tiers50:[[5,30],[6,70],[7,300],[8,2100]]},{legs:9,firstPayingTier:5,tiers50:[[5,10],[6,40],[7,100],[8,350],[9,4500]]},{legs:10,firstPayingTier:6,tiers50:[[6,15],[7,45],[8,140],[9,800],[10,1e4]]}];function Lo(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function Do(e,t){return Math.round(e*t/50*100)/100}function Mo(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:Do(o,t),cumulative:Do(n,t)}))}function Po(e,t){return Do(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function Ho(e){if(!Lo(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=Ro.filter(e=>t&&t.length>0?t.includes(e.legs):e.legs>=n&&e.legs<=o);if(0===r.length)return null;const i=e.min_bet??Ao[0],l=e.max_bet??Ao[Ao.length-1],a=Ao.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:Ao,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}var Oo=[1,5,10,20,50],Io=[4,12];function Eo(e){return(e??"").trim().toLowerCase()}var jo={straight:"mirror",double:"double_mirror",triple:"triple_mirror"};function No(e){if(!e||e.quick_pick_only)return!1;const t=Eo(e.rule);return Object.values(jo).includes(t)}function Go(e,t,n){const o=n?.operatorMargin??.21875,r=n?.perLegProbability??.5,i=Math.round(Math.pow(2,t)),l=Math.pow(r,t)+Math.pow(1-r,t),a=Math.round(1/l),s=(1-o)*Math.pow(2,t-1);return{legs:t,stake:e,prize:Math.round(e*s*100)/100,multiple:s,totalOutcomes:i,winningOutcomes:2,oddsOneIn:a}}function Yo(e){if(!No(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Io[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Io[1],o=Uo(function(e){const t=Eo(e?.rule);return Object.keys(jo).find(e=>jo[e]===t)??"straight"}(e)),r=(e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n)).filter(e=>e>=o.minLegs);if(0===r.length)return null;const i=Math.max(e.min_bet??1,.01),l=e.max_bet??null,a=Oo.filter(e=>e>=i&&(null===l||e<=l));return{variant:o,legOptions:r,defaultLegs:r.includes(8)?8:r[Math.floor(r.length/2)],defaultStake:Math.min(Math.max(20,i),l??20),minStake:i,maxStake:l,quickStakes:a,tagline:o.tagline,operatorMargin:e.operator_margin??.21875,perLegProbability:e.payout_structure?.per_leg_probability??.5}}var Vo=[{id:"straight",name:"Straight Mirror",depth:1,minLegs:4,waysToWin:"2 ways to win",description:"All or nothing. Get every call right, or every call wrong. Both pay the same.",tagline:"Call every leg. Get them all right, you win — all wrong, you win the same.",tierNames:["Perfect"]},{id:"double",name:"Double Mirror",depth:2,minLegs:6,waysToWin:"4 ways to win",description:"Perfect, or one off, at either edge. All right or all wrong, plus the near miss on each side.",tagline:"Perfect, or one off, at either edge — four ways to land a win.",tierNames:["Perfect","Near"]},{id:"triple",name:"Triple Mirror",depth:3,minLegs:9,waysToWin:"6 ways to win",description:"Within two of a clean sweep, either way. Longer legs only, so you still miss the middle.",tagline:"Within two of a clean sweep, either way — six ways to land a win.",tierNames:["Perfect","Near","Third"]}];function Uo(e){return Vo.find(t=>t.id===e)??Vo[0]}function Ko(e,t){if(t<0||t>e)return 0;const n=Math.min(t,e-t);let o=1;for(let r=0;r<n;r++)o=o*(e-r)/(r+1);return Math.round(o)}function qo(e){return!!e&&!e.quick_pick_only&&"six_again"===(e.rule??"").trim().toLowerCase()}var Zo={golden_point:!1,captains_challenge:!1};function Xo(e,t,n){const o=1+(t.golden_point?1:0)+(t.captains_challenge?1:0),r=e*n.baseMultiple*(t.golden_point?n.goldenPointFactor:1),i=t.captains_challenge?e*n.challengeMultiple:0;return{legs:n.legs,unit:e,stake:e*o,base:r,challenge:i,perfect:r+i,lowestWinningCount:n.legs-(t.captains_challenge?n.challengeMisses:0),ruleId:Qo(t,n)}}function Qo(e,t){return e.captains_challenge?e.golden_point?t.ruleIds.goldenChallenge:t.ruleIds.challenge:t.ruleIds.base}function Jo(e,t){return e.permitted_rules?.find(e=>t((e.name??"").toLowerCase().replace(/[^a-z]+/g," ").trim()))??null}function $o(e){if(!qo(e)||!e)return null;const t=e.num_propositions??e.min_propositions??6;if(t<2)return null;const n=e.operator_margin??.21875,o=Math.max(e.min_bet??10,.01),r=null!=e.max_bet?Math.max(o,Math.floor(e.max_bet/3/o)*o):Math.max(o,100),i=Jo(e,e=>e.includes("challenge")&&!e.includes("golden")),l=Jo(e,e=>e.includes("challenge")&&e.includes("golden")),a=Jo(e,e=>!e.includes("challenge"))??null;return{legs:t,unitMin:o,unitStep:o,unitMax:r,defaultUnit:o,baseMultiple:Math.round(Math.pow(2,t)*(1-n)*100)/100,challengeMultiple:5,challengeMisses:1,goldenPointFactor:2,boosts:[{id:"golden_point",label:"Golden Point",costUnits:1},{id:"captains_challenge",label:"Captain's Challenge",costUnits:1}],tagline:"Set your play, then pick your six. Every call a yes or a no.",ruleIds:{base:a?.id??e.default_rule_id??null,challenge:i?.id??null,goldenChallenge:l?.id??null}}}function _o(e){return e?.quick_pick_only?"quick_pick":vo(e)?"game_set":to(e)?"pick_your_dividend":Lo(e)?"ladder":No(e)?"mirror":On(e)?"safety_net":qo(e)?"six_again":xn(e)?"selections":$n(e)?"rule_setup":"selections"}function er(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(xn(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 tr(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||xn(e)||er(e))}function nr(e){switch(_o(e)){case"ladder":return{belowRequiredHint:(e,t)=>`Drop to Ladder ${e} or add another pick to stay on Ladder ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay on Ladder ${e}.`,switchTierLabel:e=>`Switch to Ladder ${e}`,overloadTitle:"Add more picks to climb higher",tableColumnLabel:"Ladder",tierButtonLabel:e=>`Ladder ${e}`};case"game_set":case"pick_your_dividend":case"mirror":case"safety_net":case"six_again":return{belowRequiredHint:(e,t)=>`Drop to ${e} legs or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e} legs.`,switchTierLabel:e=>`Switch to ${e} legs`,overloadTitle:"Add more legs to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`${e} legs`};default:return{belowRequiredHint:(e,t)=>`Drop to a ${e}-leg multi or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e}.`,switchTierLabel:e=>`Switch to ${e}-leg`,overloadTitle:"Add more picks to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`Multi ${e}`}}}function or(e){const t=_o(e);return"six_again"===t||"pick_your_dividend"===t}function rr(e){return"six_again"===_o(e)?"Set by your ticket and boosts.":"Set by your dividend ladder rung."}function ir(e,t,n){if(!e||t<=0||n<=0)return 0;switch(_o(e)){case"game_set":return Wo(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize;case"mirror":return Go(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize;case"pick_your_dividend":return function(e,t,n=_n){if(!(e>0&&t>0))return 0;for(const o of n)if(Math.abs(oo(o,e).stake-t)<.005)return o;return 0}(t,n);default:return 0}}var lr=(0,a.createContext)(null),ar={};function sr(){const e=(0,a.useContext)(lr);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function cr({onPress:e,onDoubleClick:t,label:n="QUICKPICK",size:o="md",yesColor:r,noColor:i,theme:l}){const h=(0,a.useContext)(lr),u=l??h?.theme??K,g=T(u),f=u.colors,p=r??M(u),y=i??P(u),m="sm"===o,b=m?g.space.xs:g.space.sm,w=m?6:8,x=m?g.fontSize.sm:g.fontSize.md,k=m?8.5:10,S=(0,a.useRef)(0);return(0,c.jsxs)(s.TouchableOpacity,{onPress:()=>{if(e(),t){const e=Date.now();e-S.current<300?(S.current=0,t()):S.current=e}},activeOpacity:.8,accessibilityRole:"button",accessibilityLabel:n,style:[dr.container,{borderColor:B(f.border,.6),borderRadius:g.radius.sm,minHeight:g.touchTarget.min}],children:[(0,c.jsxs)(s.View,{style:dr.topRow,children:[(0,c.jsxs)(d.default,{style:s.StyleSheet.absoluteFill,viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[(0,c.jsx)(d.Polygon,{points:"0,0 53,0 47,100 0,100",fill:p}),(0,c.jsx)(d.Polygon,{points:"53,0 100,0 100,100 47,100",fill:y}),(0,c.jsx)(d.Line,{x1:"53",y1:"0",x2:"47",y2:"100",stroke:"rgba(255,255,255,0.85)",strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})]}),(0,c.jsx)(s.View,{style:[dr.half,{paddingHorizontal:b,paddingVertical:w}],children:(0,c.jsx)(s.Text,{style:[dr.halfLabel,{fontSize:x}],numberOfLines:1,children:"Yes"})}),(0,c.jsx)(s.View,{style:[dr.half,{paddingHorizontal:b,paddingVertical:w}],children:(0,c.jsx)(s.Text,{style:[dr.halfLabel,{fontSize:x}],numberOfLines:1,children:"No"})})]}),(0,c.jsx)(s.View,{style:[dr.labelRow,{backgroundColor:f.buttonSecondary}],children:(0,c.jsx)(s.Text,{style:[dr.labelText,{color:f.buttonSecondaryText,fontSize:k,letterSpacing:.14*k,fontFamily:u.fonts?.mono??ae(u)}],numberOfLines:1,children:n})})]})}var dr=s.StyleSheet.create({container:{borderWidth:1,overflow:"hidden",flexShrink:0,flexDirection:"column",width:"100%",minWidth:92},topRow:{flexDirection:"row",flex:1,flexShrink:0},half:{flex:1,flexShrink:0,alignItems:"center",justifyContent:"center"},halfLabel:{color:"#ffffff",fontWeight:"600",letterSpacing:.2,flexShrink:0,textAlign:"center"},labelRow:{paddingTop:3,paddingBottom:4,alignItems:"center",justifyContent:"center"},labelText:{fontWeight:"700",textAlign:"center",flexShrink:0}});function hr(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 ur(e,t,n){const[o,r]=(0,a.useState)([]),[i,l]=(0,a.useState)([]),[s,c]=(0,a.useState)([]),[d,h]=(0,a.useState)([]),[u,g]=(0,a.useState)(null),f=(0,a.useMemo)(()=>{const t=new Map;for(const n of e)t.set(n.id,n);return t},[e]),p=(0,a.useMemo)(()=>e.filter(e=>null!=t[e.id]),[e,t]),y=(0,a.useMemo)(()=>e.map(e=>e.id).join(","),[e]),m=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(m.current===y)return;m.current=y;const n=e.filter(e=>!(e.id in t)),o=e.filter(e=>null!=t[e.id]);r(n.map(e=>e.id)),l(hr(n,o).slice(0,3).map(e=>e.id)),c([]),h([]),g(null)},[y,e,t]);const b=(0,a.useMemo)(()=>{const e=new Set(s);return[...hr(o.map(e=>f.get(e)).filter(e=>Boolean(e)).filter(t=>!e.has(t.id)),p).map(e=>e.id),...s.filter(e=>o.includes(e))]},[o,f,p,s]);(0,a.useEffect)(()=>{l(e=>{const t=new Set(o),n=e.filter(e=>t.has(e));if(0===d.length&&!u){const t=b.slice(0,3);return t.length===n.length&&t.every((e,t)=>e===n[t])?n.length===e.length?e:n:t}if(n.length>=Math.min(3,o.length))return n.length===e.length?e:n;const r=[...n];for(const o of b){if(r.length>=3)break;r.includes(o)||r.push(o)}return r})},[o,b,d,u]);const w=(0,a.useMemo)(()=>i.map(e=>f.get(e)).filter(e=>Boolean(e)),[i,f]),x=(0,a.useCallback)((e,t)=>{g(null),t&&n(e,t),h(n=>[...n,{id:e,answer:t}]),l(t=>t.filter(t=>t!==e)),c(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]}),r(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]})},[n]),k=(0,a.useCallback)(()=>{const e=d[d.length-1];e&&(e.answer&&n(e.id,e.answer),g({id:e.id,from:"yes"===e.answer?"right":"no"===e.answer?"left":"up"}),h(e=>e.slice(0,-1)),c(t=>t.filter(t=>t!==e.id)),r(t=>[e.id,...t.filter(t=>t!==e.id)]),l(t=>[e.id,...t.filter(t=>t!==e.id)].slice(0,3)))},[d,n]);return{visible:w,canSkip:o.length>1,canUndo:d.length>0,restored:u,resolve:x,undo:k}}var gr=s.Easing.bezier(.32,0,.67,0),fr=s.Easing.bezier(.22,1,.36,1),pr={stiffness:420,damping:34},yr={stiffness:280,damping:28},mr="#00C853",br="#E53935",wr=e=>"web"===s.Platform.OS?{userSelect:"none",cursor:e?"grabbing":"grab"}:null;function xr(e){return"up"===e?{x:0,y:-720}:{x:"right"===e?640:-640,y:70}}function kr(e,t,n){return n&&-t>Math.abs(e)}function Sr({prop:e,theme:t,depth:n=0,enterFrom:o,canSkip:r=!1,onResolve:i,registerApi:l,onDragStateChange:d,children:h}){const u=(0,a.useContext)(lr),g=t??u?.theme??K,f=se(g),p=g.colors.productYes??mr,y=g.colors.productNo??br,m=0===n,[b,w]=(0,a.useState)(!1),x=(0,a.useRef)(!1),k=(0,a.useRef)({x:0,y:0}),S=(0,a.useRef)({x:0,y:0}),C=(0,a.useRef)(null),B=(0,a.useRef)(0),z=(0,a.useRef)(null),F=(0,a.useRef)(null),v=(0,a.useRef)(null),W=(0,a.useRef)(r);W.current=r;const T=(0,a.useRef)(d);T.current=d;const A=(0,a.useRef)(new s.Animated.ValueXY({x:0,y:0})).current,R=(0,a.useRef)(new s.Animated.Value(0)).current,L=(0,a.useCallback)(()=>{A.setValue({x:k.current.x,y:k.current.y}),R.setValue(kr(k.current.x,k.current.y,W.current)?1:0)},[R,A]),D=(0,a.useCallback)(()=>{null!=z.current&&(cancelAnimationFrame(z.current),z.current=null),F.current&&(F.current.stop(),F.current=null)},[]),M=(0,a.useCallback)(e=>{D();let t=null;const n=o=>{const r=Math.min(null==t?1/60:(o-t)/1e3,1/30);t=o;const i=k.current,l=S.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,L(),void(z.current=null);L(),z.current=requestAnimationFrame(n)};z.current=requestAnimationFrame(n)},[L,D]),P=(0,a.useCallback)(t=>{if(x.current)return;if("up"===t&&!W.current)return;x.current=!0,D();const n="right"===t?"yes":"left"===t?"no":null,o=xr(t);k.current={...o},R.setValue("up"===t?1:0),F.current=s.Animated.timing(A,{toValue:o,duration:260,easing:gr,useNativeDriver:!1}),F.current.start(),v.current=setTimeout(()=>i(e.id,n),260)},[i,e.id,D,R,A]);(0,a.useEffect)(()=>()=>{v.current&&clearTimeout(v.current),null!=z.current&&cancelAnimationFrame(z.current),F.current?.stop(),C.current&&T.current?.(!1)},[]),(0,a.useEffect)(()=>{if(!o)return D(),k.current={x:0,y:0},S.current={x:0,y:0},void L();const e=xr(o);k.current={x:e.x,y:e.y},S.current={x:0,y:0},L(),M(yr)},[o,L,M,D]),(0,a.useEffect)(()=>{if(m&&l)return l({fly:P}),()=>l(null)},[P,m,l]);const H=(0,a.useMemo)(()=>s.PanResponder.create({onStartShouldSetPanResponder:()=>!1,onMoveShouldSetPanResponder:(e,t)=>!x.current&&(Math.abs(t.dx)>2&&Math.abs(t.dx)>Math.abs(t.dy)||W.current&&-t.dy>2&&-t.dy>Math.abs(t.dx)),onPanResponderGrant:()=>{D(),C.current={x:k.current.x,y:k.current.y},S.current={x:0,y:0},B.current=Date.now(),w(!0),T.current?.(!0)},onPanResponderMove:(e,t)=>{if(x.current||!C.current)return;if(t.numberActiveTouches>1)return;const n=C.current.x+t.dx,o=Math.min(C.current.y+t.dy,0),r=e.nativeEvent.timestamp??Date.now(),i=r-B.current;if(i>0){const e=1-Math.exp(-i/40);S.current.x+=((n-k.current.x)/i*1e3-S.current.x)*e,S.current.y+=((o-k.current.y)/i*1e3-S.current.y)*e,B.current=r}k.current.x=n,k.current.y=o,L()},onPanResponderRelease:e=>{if(!C.current)return;if(C.current=null,w(!1),T.current?.(!1),x.current)return;(e.nativeEvent.timestamp??Date.now())-B.current>90&&(S.current={x:0,y:0});const t=k.current,n=S.current;if(kr(t.x,t.y,W.current)){if(t.y<-110||n.y<-620)return P("up")}else{if(t.x>110||n.x>620)return P("right");if(t.x<-110||n.x<-620)return P("left")}M(pr)},onPanResponderTerminate:()=>{C.current=null,S.current={x:0,y:0},w(!1),T.current?.(!1),x.current||M(pr)},onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0}),[P,L,M,D]),O=A.x.interpolate({inputRange:[-260,0,260],outputRange:["-16deg","0deg","16deg"],extrapolate:"clamp"}),I=s.Animated.subtract(1,R),E=s.Animated.multiply(I,A.x.interpolate({inputRange:[24,132],outputRange:[0,1],extrapolate:"clamp"})),j=s.Animated.multiply(I,A.x.interpolate({inputRange:[-132,-24],outputRange:[1,0],extrapolate:"clamp"})),N=s.Animated.multiply(R,A.y.interpolate({inputRange:[-120,-30],outputRange:[1,0],extrapolate:"clamp"})),G=(0,a.useRef)(new s.Animated.Value(n)).current;(0,a.useEffect)(()=>{const e=s.Animated.timing(G,{toValue:n,duration:240,easing:fr,useNativeDriver:!1});return e.start(),()=>e.stop()},[n,G]);const Y=G.interpolate({inputRange:[0,3],outputRange:[0,36]}),V=G.interpolate({inputRange:[0,3],outputRange:[1,.88]});return(0,c.jsx)(s.Animated.View,{style:[s.StyleSheet.absoluteFill,{zIndex:3-n,transform:[{translateY:Y},{scale:V}]}],pointerEvents:m?"auto":"none",children:(0,c.jsxs)(s.Animated.View,{style:[{flex:1,transform:[{translateX:A.x},{translateY:A.y},{rotate:O}]},m&&wr(b)],...m?H.panHandlers:{},children:[h,m&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.Animated.View,{pointerEvents:"none",style:[zr.stamp,zr.stampLeft,{opacity:E,borderColor:p,transform:[{rotate:"-12deg"}]}],children:(0,c.jsx)(s.Text,{style:[zr.stampText,{color:p,fontFamily:f}],children:"Yes"})}),(0,c.jsx)(s.Animated.View,{pointerEvents:"none",style:[zr.stamp,zr.stampRight,{opacity:j,borderColor:y,transform:[{rotate:"12deg"}]}],children:(0,c.jsx)(s.Text,{style:[zr.stampText,{color:y,fontFamily:f}],children:"No"})}),r&&(0,c.jsx)(s.Animated.View,{pointerEvents:"none",style:[zr.skipPillWrap,{opacity:N}],children:(0,c.jsx)(s.View,{style:[zr.skipPill,{borderColor:g.colors.border,backgroundColor:g.colors.background}],children:(0,c.jsx)(s.Text,{style:[zr.skipPillText,{color:g.colors.primary}],children:"Skip"})})})]})]})})}function Cr({prop:e}){const{theme:t,headingFont:n,renderTeamLogo:o,renderPropositionSilk:r,displaySportName:i,gameCategory:l,compositeComponentById:a}=sr(),d=t.colors,{height:h}=(0,s.useWindowDimensions)(),u=h<700?12:24,g=st(e,a),f=nt(e),p=("racing"===l?[e.away_team?.trim()||e.home_team?.trim()]:[e.home_team?.trim(),e.away_team?.trim()]).filter(Boolean),y=(t,n)=>t&&r?.(t,n)||Yr(t??e,o,p.join(" vs "))||null;return(0,c.jsxs)(s.View,{style:[zr.face,{backgroundColor:j(t),borderColor:d.border}],children:[(0,c.jsx)(s.View,{style:[zr.matchupBand,{backgroundColor:N(t)}],children:p.length>0?p.map((e,n)=>(0,c.jsxs)(s.View,{style:zr.matchupTeam,children:[n>0&&(0,c.jsx)(s.Text,{style:[zr.matchupVs,{color:E(t)}],children:"vs"}),o?.(e),(0,c.jsx)(s.Text,{style:[zr.matchupName,{color:I(t)}],children:e})]},`${e}-${n}`)):(0,c.jsx)(s.Text,{style:[zr.matchupName,{color:I(t)}],children:e.league??i(e.sport??"")})}),(0,c.jsxs)(s.View,{style:[zr.faceBody,{paddingVertical:u,gap:12===u?12:16}],children:[(0,c.jsxs)(s.View,{style:zr.propositionRow,children:[!g&&y(e,32),g?(0,c.jsxs)(s.View,{style:{flex:1,gap:12},children:[(0,c.jsxs)(s.Text,{style:[zr.compositeLabel,{color:L(t)}],children:["All ","OR"===g.operator?"or any of these":"of these"]}),(0,c.jsx)(s.View,{style:{gap:8},children:g.legs.map((e,o)=>(0,c.jsxs)(s.View,{style:zr.compositeLeg,children:[(0,c.jsx)(s.Text,{style:{color:d.primary,fontWeight:"700"},children:"OR"===g.operator?"/":"+"}),y(e.prop,24),(0,c.jsxs)(s.View,{style:zr.compositeLegBody,children:[e.eventLabel?(0,c.jsx)(s.Text,{style:[zr.compositeLegEvent,{color:d.textMuted}],children:e.eventLabel}):null,(0,c.jsx)(s.Text,{style:[zr.compositeLegText,{color:D(t),fontFamily:n}],children:e.text})]})]},o))})]}):(0,c.jsx)(s.Text,{style:[zr.proposition,{flex:1,color:D(t),fontFamily:n}],children:e.description??e.proposition})]}),e.outcome_description&&e.outcome_description!==e.description&&(0,c.jsx)(s.Text,{style:[zr.outcome,{color:d.textMuted}],children:e.outcome_description})]}),(0,c.jsxs)(s.View,{style:[zr.faceFooter,{borderTopColor:d.borderSubtle??d.border}],children:[e.sport?(0,c.jsx)(s.View,{style:[zr.sportChip,{backgroundColor:d.infoBg}],children:(0,c.jsx)(s.Text,{style:[zr.sportChipText,{color:d.infoText}],children:i(e.sport)})}):null,f?(0,c.jsx)(s.Text,{style:[zr.footerMeta,{color:d.textMuted}],children:f.replace(/[_-]+/g," ").toUpperCase()}):null,e.commence_time?(0,c.jsx)(s.Text,{style:[zr.footerMeta,zr.footerDate,{color:d.textMuted}],children:bt(e.commence_time)}):null]})]})}function Br({onBack:e,onNext:t,viewSwitch:n,onDragStateChange:o}){const{theme:r,headingFont:i,propositions:l,selections:d,toggleSelection:h,selectedGame:u,selectedPropositionCount:g,answeredCount:f,selectionValid:p,goToConfirmation:y,goToSportSelection:m,loading:b,error:w,selectedRule:x}=sr(),k=r.colors,S=k.productYes??mr,C=k.productNo??br,{height:B}=(0,s.useWindowDimensions)(),z=Math.max(224,Math.min(.44*B,416)),F=(0,a.useRef)(null);(0,a.useEffect)(()=>{u||(m(),e?.())},[m,e,u]);const{visible:v,canSkip:W,canUndo:T,restored:A,resolve:L,undo:D}=ur(l,d,h),M=u?Wt(u,g??void 0,x):{min:0,max:0},P=M.max,H=P>0&&f>=P,O=(()=>{if(!u)return null;if(M.min>0&&M.min===M.max)return M.min;const e=_o(u);return null!=g&&g>0&&("game_set"===e||"pick_your_dividend"===e||er(u))?g:P>0?P:null})(),I=(0,a.useRef)(f);(0,a.useEffect)(()=>{const e=I.current;if(I.current=f,null==O||e>=O||f!==O)return;const n=setTimeout(()=>{y(),t?.()},420);return()=>clearTimeout(n)},[f,y,t,O]);const E=!H&&v.length>0,N=(0,a.useCallback)(e=>{F.current=e},[]);if(!u)return null;const G=(e,t,n,o)=>(0,c.jsx)(s.TouchableOpacity,{onPress:n,disabled:o,accessibilityLabel:e,accessibilityRole:"button",style:[zr.circleButton,{borderColor:k.border,backgroundColor:k.background},o&&zr.disabled],children:(0,c.jsx)(s.Text,{style:{fontSize:18,color:k.textMuted},children:t})});return(0,c.jsxs)(s.View,{style:zr.container,children:[n?(0,c.jsx)(s.View,{style:zr.viewSwitchRow,children:n}):null,b?(0,c.jsx)(s.Text,{style:[zr.loadingText,{color:k.textMuted}],children:"Loading…"}):w?(0,c.jsx)(s.View,{style:[zr.errorBox,{backgroundColor:k.errorBg,borderColor:k.error}],children:(0,c.jsx)(s.Text,{style:{fontSize:14,color:k.errorText??k.error,textAlign:"center"},children:w})}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.View,{style:zr.deckArea,children:E?(0,c.jsx)(s.View,{style:[zr.deck,{height:z}],children:v.map((e,t)=>(0,c.jsx)(Sr,{prop:e,depth:t,canSkip:W,enterFrom:A?.id===e.id?A.from:null,onResolve:L,registerApi:0===t?N:void 0,onDragStateChange:0===t?o:void 0,children:(0,c.jsx)(Cr,{prop:e})},e.id))}):(0,c.jsxs)(s.View,{style:[zr.emptyState,{backgroundColor:j(r),borderColor:k.border}],children:[(0,c.jsx)(s.Text,{style:[zr.emptyTitle,{color:R(r),fontFamily:i}],children:H?"Card full":"That’s the last one"}),(0,c.jsx)(s.Text,{style:[zr.emptyBody,{color:k.textMuted}],children:H?`You've picked all ${P} 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${M.min>0?` — this game needs at least ${M.min}`:""}. Undo a swipe or head back to widen the pool.`}),T&&(0,c.jsx)(s.TouchableOpacity,{onPress:D,style:[zr.emptyUndo,{borderColor:k.border}],children:(0,c.jsx)(s.Text,{style:{fontSize:14,fontWeight:"600",color:k.text},children:"Undo last swipe"})})]})}),(0,c.jsxs)(s.View,{style:[zr.buttonArea,{backgroundColor:j(r),borderColor:k.border}],children:[(0,c.jsxs)(s.View,{style:zr.buttonRow,children:[G("Undo last swipe","↺",D,!T),(0,c.jsx)(s.TouchableOpacity,{onPress:()=>F.current?.fly("left"),disabled:!E,style:[zr.answerButton,{backgroundColor:C},!E&&zr.disabled],children:(0,c.jsx)(s.Text,{style:[zr.answerButtonText,{fontFamily:i}],children:"NO"})}),(0,c.jsx)(s.TouchableOpacity,{onPress:()=>F.current?.fly("right"),disabled:!E,style:[zr.answerButton,{backgroundColor:S},!E&&zr.disabled],children:(0,c.jsx)(s.Text,{style:[zr.answerButtonText,{fontFamily:i}],children:"YES"})}),G("Skip this proposition","↑",()=>F.current?.fly("up"),!E||!W)]}),(0,c.jsx)(s.Text,{style:[zr.gestureHint,{color:k.textMuted}],children:W?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})]})]})}var zr=s.StyleSheet.create({container:{flex:1},viewSwitchRow:{flexDirection:"row",justifyContent:"flex-end",paddingBottom:12},loadingText:{paddingVertical:40,textAlign:"center",fontSize:14},errorBox:{borderRadius:12,borderWidth:1,padding:16},deckArea:{flex:1,minHeight:0,justifyContent:"center",paddingTop:12,paddingBottom:32},deck:{width:"100%",maxWidth:384,alignSelf:"center"},face:{flex:1,borderRadius:24,borderWidth:1,overflow:"hidden",shadowColor:"#0A1416",shadowOpacity:.25,shadowRadius:20,shadowOffset:{width:0,height:12},elevation:8},matchupBand:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4,paddingHorizontal:20,paddingVertical:12},matchupTeam:{flexDirection:"row",alignItems:"center",gap:6},matchupVs:{fontSize:12,marginRight:4},matchupName:{fontSize:14,fontWeight:"600"},faceBody:{flex:1,justifyContent:"center",gap:16,paddingHorizontal:20,paddingVertical:24},compositeLabel:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.5},compositeLeg:{flexDirection:"row",alignItems:"flex-start",gap:8},compositeLegBody:{flex:1,minWidth:0},compositeLegEvent:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:.25,lineHeight:13},compositeLegText:{fontSize:16,fontWeight:"700",lineHeight:21},propositionRow:{flexDirection:"row",alignItems:"flex-start",gap:8},proposition:{fontSize:21,fontWeight:"800",lineHeight:27,letterSpacing:-.3},outcome:{fontSize:14,lineHeight:19},faceFooter:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:8,borderTopWidth:1,paddingHorizontal:20,paddingVertical:12},sportChip:{borderRadius:999,paddingHorizontal:8,paddingVertical:2},sportChipText:{fontSize:11,fontWeight:"600",textTransform:"uppercase",letterSpacing:.5},footerMeta:{fontSize:11,letterSpacing:.5},footerDate:{marginLeft:"auto"},stamp:{position:"absolute",top:20,borderWidth:4,borderRadius:12,paddingHorizontal:12,paddingVertical:4},stampLeft:{left:20},stampRight:{right:20},stampText:{fontSize:24,fontWeight:"800",textTransform:"uppercase",letterSpacing:2},skipPillWrap:{position:"absolute",left:0,right:0,bottom:24,alignItems:"center"},skipPill:{borderWidth:1,borderRadius:999,paddingHorizontal:12,paddingVertical:4},skipPillText:{fontSize:12,fontWeight:"600",textTransform:"uppercase",letterSpacing:1.5},emptyState:{width:"100%",maxWidth:384,alignSelf:"center",alignItems:"center",gap:12,borderRadius:24,borderWidth:1,borderStyle:"dashed",paddingHorizontal:24,paddingVertical:40},emptyTitle:{fontSize:16,fontWeight:"800"},emptyBody:{fontSize:14,textAlign:"center",lineHeight:19},emptyUndo:{borderWidth:1,borderRadius:999,paddingHorizontal:20,paddingVertical:8},buttonArea:{flexShrink:0,borderWidth:1,borderRadius:16,paddingHorizontal:12,paddingTop:12,paddingBottom:10},buttonRow:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12,width:"100%",maxWidth:384,alignSelf:"center"},circleButton:{height:44,width:44,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},answerButton:{flex:1,height:56,borderRadius:999,alignItems:"center",justifyContent:"center"},answerButtonText:{fontSize:18,fontWeight:"800",letterSpacing:1.5,color:"#ffffff"},gestureHint:{marginTop:8,textAlign:"center",fontSize:11},disabled:{opacity:.35}});function Fr({propositions:e,title:t,onClose:n}){const{theme:o,selections:r,toggleSelection:i}=sr(),l=o.colors,{height:d}=(0,s.useWindowDimensions)(),{visible:h,canSkip:u,canUndo:g,restored:f,resolve:p,undo:y}=ur(e,r,i),m=(0,a.useRef)(null),b=(0,a.useCallback)(e=>{m.current=e},[]),w=se(o),x=E(o),k=h.length>0,S=j(o),C=Math.max(224,Math.min(.44*d,416)),B=(e,t,n,o)=>(0,c.jsx)(s.TouchableOpacity,{onPress:n,disabled:o,accessibilityLabel:e,accessibilityRole:"button",style:[vr.circle,{borderColor:l.border,backgroundColor:l.background},o&&vr.disabled],children:(0,c.jsx)(s.Text,{style:{fontSize:18,color:l.textMuted},children:t})}),z=(e,t,n)=>(0,c.jsx)(s.TouchableOpacity,{onPress:()=>m.current?.fly(e),disabled:!k,style:[vr.answer,{backgroundColor:n},!k&&vr.disabled],children:(0,c.jsx)(s.Text,{style:[vr.answerText,{fontFamily:w}],children:t.toUpperCase()})});return(0,c.jsx)(s.Modal,{visible:!0,transparent:!0,animationType:"fade",onRequestClose:n,children:(0,c.jsx)(s.View,{style:vr.backdrop,children:(0,c.jsxs)(s.View,{style:[vr.panel,{backgroundColor:S,borderColor:l.border}],children:[(0,c.jsxs)(s.View,{style:vr.header,children:[(0,c.jsx)(s.Text,{numberOfLines:1,style:[vr.title,{color:I(o),fontFamily:w}],children:t}),(0,c.jsx)(s.TouchableOpacity,{onPress:n,accessibilityLabel:"Close",accessibilityRole:"button",style:[vr.close,{borderColor:l.border}],children:(0,c.jsx)(s.Text,{style:{fontSize:16,color:x},children:"×"})})]}),(0,c.jsx)(s.View,{style:vr.deckArea,children:k?(0,c.jsx)(s.View,{style:[vr.deck,{height:C}],children:h.map((e,t)=>(0,c.jsx)(Sr,{prop:e,depth:t,canSkip:u,enterFrom:f?.id===e.id?f.from:null,onResolve:p,registerApi:0===t?b:void 0,children:(0,c.jsx)(Cr,{prop:e})},e.id))}):(0,c.jsxs)(s.View,{style:[vr.empty,{borderColor:l.border}],children:[(0,c.jsx)(s.Text,{style:[vr.emptyTitle,{color:R(o),fontFamily:w}],children:"That’s the last one"}),(0,c.jsx)(s.Text,{style:[vr.emptyBody,{color:l.textMuted}],children:"You’ve been through every proposition on this fixture. Close to go back to the card, or undo to revisit a pick."})]})}),(0,c.jsxs)(s.View,{style:vr.buttonRow,children:[B("Undo last swipe","↺",y,!g),z("left","No",P(o)),z("right","Yes",M(o)),B("Skip this proposition","↑",()=>m.current?.fly("up"),!k||!u)]}),(0,c.jsx)(s.Text,{style:[vr.hint,{color:l.textMuted}],children:u?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})})})}var vr=s.StyleSheet.create({backdrop:{flex:1,backgroundColor:"rgba(0,0,0,0.6)",alignItems:"center",justifyContent:"center",padding:16},panel:{width:"100%",maxWidth:420,borderRadius:24,borderWidth:1,padding:16,overflow:"hidden"},header:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:12},title:{flex:1,minWidth:0,fontSize:14,fontWeight:"700"},close:{width:32,height:32,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},deckArea:{justifyContent:"center",paddingTop:4,paddingBottom:12},deck:{width:"100%",alignSelf:"center"},empty:{alignItems:"center",gap:12,borderRadius:24,borderWidth:1,borderStyle:"dashed",paddingHorizontal:24,paddingVertical:40},emptyTitle:{fontSize:16,fontWeight:"800"},emptyBody:{fontSize:14,textAlign:"center"},buttonRow:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12,paddingTop:24},circle:{width:44,height:44,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},answer:{flex:1,height:56,borderRadius:999,alignItems:"center",justifyContent:"center"},answerText:{fontSize:18,fontWeight:"800",letterSpacing:1.5,color:"#fff"},hint:{marginTop:8,fontSize:11,textAlign:"center"},disabled:{opacity:.35}});function Wr(e){return new Intl.DateTimeFormat("en-AU",{weekday:"short",day:"numeric",month:"short"}).format(e).replace(",","")}function Tr(e){return new Intl.DateTimeFormat("en-AU",{hour:"numeric",minute:"2-digit",hour12:!0}).format(e).replace(/\s/g,"").toLowerCase()}function Ar(e){const t=(e??"").trim().split(/\s+/).filter(Boolean);return(t[t.length-1]??"").slice(0,3).toUpperCase()}function Rr(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}function Lr(e){const t=e?.trim();if(t&&"undefined"!==t&&"null"!==t)return t}function Dr(e,t=!1){const n=Object.entries(e).map(([e,n])=>function(e,t,n){const[o,r]=n?[]:e.split(" vs ").map(Lr),i=t.map(Rr).filter(e=>null!==e),l=i.length>0?new Date(Math.min(...i.map(e=>e.getTime()))):null;return{key:e,title:n||!o?n?e:Lr(t[0]?.league??void 0)??"":[o,r].filter(Boolean).join(" vs "),home:o,away:r,racing:n,date:l,props:t}}(e,n,t)),o=n.filter(e=>null!==e.date).sort((e,t)=>e.date.getTime()-t.date.getTime()),r=n.filter(e=>null===e.date),i=new Map;for(const a of o){const e=a.date.toDateString(),t=i.get(e);t?t.events.push(a):i.set(e,{key:e,label:Wr(a.date),events:[a]})}const l=[...i.values()];return r.length>0&&l.push({key:"undated",label:"",events:r}),l}var Mr={split:{fontSize:13,fontWeight:"700",lineHeight:18},compact:{fontSize:11,fontWeight:"700",lineHeight:15}};function Pr({variant:e,groups:t,racing:n,selections:o,onToggleSelection:r,atMax:i,theme:l,renderTeamLogo:d,componentById:h,disableEventSwipe:u=!1}){const g=l.colors,f=j(l),p=N(l),y=g.borderSubtle??g.border,m=I(l),b=E(l),w=D(l),x=L(l),k=R(l),S=se(l),{width:C}=(0,s.useWindowDimensions)(),[B,z]=(0,a.useState)(null),[F,v]=(0,a.useState)(new Set),[W,T]=(0,a.useState)(new Set),A=e=>t=>e(e=>{const n=new Set(e);return n.delete(t)||n.add(t),n}),M=A(v),P=A(T),H=(0,a.useMemo)(()=>Dr(t,n),[t,n]),O=e=>i&&!(e.id in o),G=(e,t)=>{O(e)||r(e.id,t)},Y=(e,t)=>e?d?.(e,t)??null:null,V=(e,t,n)=>(0,c.jsx)(Ae,{theme:l,size:t,stretch:n,disabled:O(e),value:o[e.id]??null,onYes:()=>G(e,"yes"),onNo:()=>G(e,"no")}),U=(e,t)=>(0,c.jsxs)(s.View,{style:Ir.question,children:[n?Yr(e,d,null):null,(0,c.jsx)(Xr,{prop:e,colors:g,componentById:h,textStyle:Mr[t],textColor:w})]}),K=e=>{if(u)return null;const t=e.props.filter(e=>!O(e));return 0===t.length?null:(0,c.jsx)(s.TouchableOpacity,{onPress:()=>z(e),accessibilityRole:"button",accessibilityLabel:`Swipe ${t.length} proposition${1===t.length?"":"s"}`,style:[Ir.roundButton,{borderColor:y}],children:(0,c.jsx)(Hr,{color:x})})},q=(e,t)=>(0,c.jsx)(s.TouchableOpacity,{onPress:()=>M(e.key),accessibilityRole:"button",accessibilityState:{expanded:t},accessibilityLabel:`${t?"Hide":"Show"} ${e.props.length} proposition${1===e.props.length?"":"s"}`,style:[Ir.foldButton,{borderColor:y}],children:(0,c.jsx)(s.View,{style:{transform:[{rotate:t?"0deg":"-90deg"}]},children:(0,c.jsx)(Or,{color:x})})}),Z=e=>{if(!e.home&&!e.away)return(0,c.jsx)(s.Text,{numberOfLines:1,style:[Ir.shortLabel,{color:m}],children:e.title});const t=[e.home,e.away].filter(Boolean).join(" v "),n=W.has(e.key);return(0,c.jsxs)(s.TouchableOpacity,{onPress:()=>P(e.key),accessibilityRole:"button",accessibilityLabel:t,accessibilityState:{selected:n},style:{minWidth:0,flexDirection:"row",alignItems:"center"},children:[(0,c.jsx)(s.Text,{style:[Ir.shortLabel,{color:m,fontFamily:S}],children:n?e.home:Ar(e.home)}),(0,c.jsx)(s.Text,{style:[Ir.vs,{color:b}],children:"v"}),(0,c.jsx)(s.Text,{style:[Ir.shortLabel,{color:m,fontFamily:S}],children:n?e.away:Ar(e.away)})]})},X=t=>"compact"===e?(e=>(0,c.jsxs)(s.View,{style:[Ir.compactCard,{borderColor:g.border,backgroundColor:f}],children:[(0,c.jsxs)(s.View,{style:[Ir.compactHeader,{backgroundColor:p}],children:[!e.racing&&Y(e.home,18),Z(e),!e.racing&&Y(e.away,18),e.date&&(0,c.jsx)(s.Text,{style:[Ir.compactTime,{color:b}],children:Tr(e.date)}),(0,c.jsx)(s.View,{style:{marginLeft:"auto"},children:K(e)})]}),e.props.map(e=>(0,c.jsxs)(s.View,{style:[Ir.compactRow,{borderTopColor:y,opacity:O(e)?.45:1}],children:[(0,c.jsx)(s.View,{style:{flex:1,minWidth:0},children:U(e,"compact")}),V(e,"xs")]},e.id))]},e.key))(t):((e,t)=>{const n=!F.has(e.key),o=`${e.props.length} proposition${1===e.props.length?"":"s"}`;return n?(0,c.jsxs)(s.View,{style:[Ir.splitCard,{borderColor:g.border,backgroundColor:f}],children:[(0,c.jsxs)(s.View,{style:[Ir.splitStub,{borderColor:y,backgroundColor:p}],children:[!e.racing&&(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",gap:2},children:[Y(e.home,24),Y(e.away,24)]}),Z(e),e.date&&(0,c.jsx)(s.Text,{style:[Ir.time,{color:b}],children:Tr(e.date)}),K(e)]}),(0,c.jsxs)(s.View,{style:{flex:1,minWidth:0},children:[(0,c.jsxs)(s.View,{style:[Ir.splitCountRow,{borderBottomColor:y}],children:[(0,c.jsx)(s.Text,{style:[Ir.count,{color:b}],children:o}),(0,c.jsx)(s.View,{style:{marginLeft:"auto"},children:q(e,n)})]}),(0,c.jsx)(s.View,{style:Ir.splitBody,children:e.props.map(e=>(0,c.jsxs)(s.View,{style:[t?{flexDirection:"row",alignItems:"center",gap:10}:{flexDirection:"column",gap:10},{opacity:O(e)?.45:1}],children:[(0,c.jsx)(s.View,{style:{flex:1,minWidth:0},children:U(e,"split")}),t?V(e,"xs"):V(e,"sm",!0)]},e.id))})]})]},e.key):(0,c.jsxs)(s.View,{style:[Ir.foldedStrip,{borderColor:g.border,backgroundColor:f}],children:[(0,c.jsxs)(s.View,{style:[Ir.foldedStub,{borderColor:y,backgroundColor:p}],children:[!e.racing&&(0,c.jsxs)(c.Fragment,{children:[Y(e.home,16),Y(e.away,16)]}),Z(e)]}),(0,c.jsx)(s.Text,{style:[Ir.count,Ir.foldedCount,{color:b}],children:o}),(0,c.jsx)(s.View,{style:{marginLeft:"auto",paddingRight:8},children:q(e,n)})]},e.key)})(t,"split-inline"===e);return(0,c.jsxs)(s.View,{style:{paddingBottom:16},children:[H.map(e=>{return(0,c.jsxs)(s.View,{children:[e.label?(t=e.label,(0,c.jsxs)(s.View,{style:Ir.dayHeader,children:[(0,c.jsx)(s.Text,{style:[Ir.dayLabel,{color:k,fontFamily:S}],children:t}),(0,c.jsx)(s.View,{style:[Ir.rule,{backgroundColor:y}]})]})):null,e.events.map(X)]},e.key);var t}),B&&(0,c.jsx)(Fr,{propositions:B.props.filter(e=>!O(e)),title:B.title,onClose:()=>z(null)})]})}function Hr({color:e}){return(0,c.jsxs)(d.default,{width:15,height:15,viewBox:"0 0 24 24",fill:"none",children:[(0,c.jsx)(d.Rect,{x:3,y:5,width:12,height:16,rx:2,stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)(d.Path,{d:"M8.5 3h7a2 2 0 0 1 2 2v12",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Or({color:e}){return(0,c.jsx)(d.default,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:(0,c.jsx)(d.Path,{d:"m6 9 6 6 6-6",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}var Ir=s.StyleSheet.create({question:{flexDirection:"row",alignItems:"flex-start",gap:8,minWidth:0,flex:1},dayHeader:{flexDirection:"row",alignItems:"center",gap:8,marginTop:16,marginBottom:8},dayLabel:{fontSize:11,fontWeight:"700",letterSpacing:.3},rule:{flex:1,height:1},shortLabel:{fontSize:11.5,fontWeight:"700",lineHeight:15},vs:{fontSize:9,fontWeight:"600",paddingHorizontal:2},roundButton:{height:28,minWidth:28,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center",paddingHorizontal:6},foldButton:{width:24,height:24,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},count:{fontSize:10,fontWeight:"600"},foldedCount:{fontSize:11,paddingHorizontal:12},time:{fontSize:9.5,fontWeight:"500"},foldedStrip:{flexDirection:"row",alignItems:"center",borderRadius:16,borderWidth:1,overflow:"hidden",marginBottom:8},foldedStub:{flexDirection:"row",alignItems:"center",gap:4,alignSelf:"stretch",borderRightWidth:1,paddingHorizontal:8,paddingVertical:6},splitCard:{flexDirection:"row",alignItems:"stretch",borderRadius:16,borderWidth:1,overflow:"hidden",marginBottom:8},splitStub:{width:80,alignItems:"center",justifyContent:"center",gap:6,borderRightWidth:1,paddingHorizontal:8,paddingVertical:12},splitCountRow:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1},splitBody:{justifyContent:"center",gap:12,paddingHorizontal:12,paddingVertical:10},compactCard:{borderRadius:16,borderWidth:1,overflow:"hidden",marginBottom:8},compactHeader:{flexDirection:"row",alignItems:"center",gap:6,minWidth:0,paddingHorizontal:12,paddingVertical:8},compactTime:{fontSize:9,fontWeight:"500"},compactRow:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:12,paddingVertical:10,borderTopWidth:1}}),Er={today:"Today",weekend:"This weekend",next7:"Next 7 days"},jr=["today","weekend","next7"];function Nr(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function Gr(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:Nr(n,1)};case"weekend":{const e=n.getDay(),t=Nr(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:Nr(t,2)}}case"next7":return{start:n,end:Nr(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 Vr=640,Ur=12;function Kr({theme:e,variant:t,disabled:n,onPress:o,children:r}){const i=e.colors,[l,d]=(0,a.useState)(!1),h="primary"===t?{bg:i.buttonPrimary,bgHover:i.buttonPrimaryHover,fg:i.buttonPrimaryText,border:i.buttonPrimary}:{bg:i.buttonSecondary,bgHover:i.buttonSecondaryHover,fg:i.buttonSecondaryText,border:i.border};return(0,c.jsx)(s.TouchableOpacity,{onPress:o,disabled:n,activeOpacity:.85,...ze(()=>d(!0),()=>d(!1)),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:h.border,backgroundColor:l&&!n?h.bgHover:h.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:(0,c.jsx)(s.Text,{style:{color:h.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:r})})}function qr({matchup:e,renderTeamLogo:t,altText:n,mutedColor:o,size:r="sm"}){const{width:i}=(0,s.useWindowDimensions)(),l=i>=Vr,[a,d=""]=e.split(" vs "),h=d.length>0,u="md"===r&&l?16:14;if(!h)return(0,c.jsx)(s.Text,{style:{color:n,fontSize:u,fontWeight:"600"},children:e});const g=e=>(0,c.jsxs)(s.View,{style:Jr.teamLogoRowWrap,children:[t?.(e),(0,c.jsx)(s.Text,{style:{color:n,fontSize:u,fontWeight:"600",flexShrink:1},children:e})]}),f=(0,c.jsx)(s.Text,{style:{color:o,fontSize:12,flexShrink:0},children:"vs"});return l?(0,c.jsxs)(s.View,{style:Jr.matchupTeamsRow,children:[g(a),f,g(d)]}):(0,c.jsxs)(s.View,{style:Jr.matchupTeamsStacked,children:[f,(0,c.jsxs)(s.View,{style:{flexShrink:1,minWidth:0},children:[g(a),g(d)]})]})}function Zr({label:e,colors:t,onOpenChange:n}){const o="OR"===e?"If either wins, you win.":"Both must win for Yes.",[r,i]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{n?.(r)},[r,n]),(0,c.jsxs)(s.View,{style:{position:"relative",zIndex:r?9999:0,elevation:r?9999:0},children:[(0,c.jsx)(s.Pressable,{onPress:()=>i(e=>!e),onHoverIn:()=>i(!0),onHoverOut:()=>i(!1),hitSlop:6,accessibilityLabel:o,accessibilityRole:"button",accessibilityState:{expanded:r},children:(0,c.jsx)(s.View,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:6,backgroundColor:B(t.primary,.14),borderWidth:1,borderColor:B(t.primary,.45)},children:(0,c.jsx)(s.Text,{style:{color:t.primary,fontSize:10,fontWeight:"700",lineHeight:10,textTransform:"uppercase",letterSpacing:.25},children:e})})}),r&&(0,c.jsx)(s.View,{style:{position:"absolute",top:"100%",left:0,marginTop:4,minWidth:192,maxWidth:352,paddingHorizontal:10,paddingVertical:6,borderRadius:6,backgroundColor:t.backgroundAlt??"#fff",borderWidth:1,borderColor:t.border??B(t.primary,.3),shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:.12,shadowRadius:4,elevation:9999},children:(0,c.jsx)(s.Text,{style:{color:t.text,fontSize:11,lineHeight:15},children:o})})]})}function Xr({prop:e,colors:t,size:n="sm",componentById:o,textStyle:r,textColor:i}){const{width:l}=(0,s.useWindowDimensions)(),d=l>=Vr,h=st(e,o),u=e.description??e.proposition??"",g=r?.fontSize??("md"===n?d?16:14:d?14:12),f=r?.fontWeight??("md"===n?"500":"400"),p=r?.lineHeight,y=r?.textAlign,m=i??t.text,b=t.textMuted??t.textAltMuted??t.text,[w,x]=(0,a.useState)(!1);if(!h)return(0,c.jsx)(s.Text,{style:{color:m,fontSize:g,fontWeight:f,lineHeight:p,textAlign:y,flex:1},children:u});const{operator:k,legs:S}=h;return S.some(e=>e.eventLabel)?(0,c.jsx)(s.View,{style:{flex:1,minWidth:0,flexDirection:"column",gap:8,...w&&{zIndex:9999,elevation:9999,position:"relative"}},children:S.map((e,n)=>(0,c.jsxs)(s.View,{style:{minWidth:0},children:[n>0&&(0,c.jsx)(s.View,{style:{marginBottom:4},children:(0,c.jsx)(Zr,{label:k,colors:t,onOpenChange:x})}),e.eventLabel&&(0,c.jsx)(s.Text,{style:{color:b,fontSize:d?12:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:.25},children:e.eventLabel}),(0,c.jsx)(s.Text,{style:{color:m,fontSize:g,fontWeight:f,lineHeight:p,textAlign:y},children:e.text})]},n))}):(0,c.jsx)(s.View,{style:{flex:1,minWidth:0,...w&&{zIndex:9999,elevation:9999,position:"relative"}},children:(0,c.jsx)(s.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6,rowGap:4},children:S.map((e,n)=>(0,c.jsxs)(a.default.Fragment,{children:[n>0&&(0,c.jsx)(Zr,{label:k,colors:t,onOpenChange:x}),(0,c.jsx)(s.Text,{style:{color:m,fontSize:g,fontWeight:f,lineHeight:p,textAlign:y},children:e.text})]},n))})})}function Qr({game:e,propositions:t,selections:n,onToggleSelection:o,onNext:r,onBack:i,loading:l,error:h,theme:u,colorScheme:g,hideActions:f=!1,initialSport:p,renderTeamLogo:y,disableQuickPick:m=!1,selectedPropositionCount:b,onPropositionCountChange:w,gameCategory:x,headerExtra:k,variant:S,disableEventSwipe:C}){const z=(0,a.useContext)(lr),F=z?.sportBaseKey,v=z?.compositeComponentById,W=S??z?.selectionVariant,T=C??z?.disableEventSwipe??!1,A=le(u,g),L=A.colors,D=j(A),M=G(A),P=L.matchupHeader??(e.color?B(e.color,.14):N(A)),H=L.textAlt??L.text;se(A);const O=ae(A);R(A);const{width:I}=(0,s.useWindowDimensions)(),E=I>=Vr,V=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(A),U=!!(e.allowed_propositions&&e.allowed_propositions.length>0),{min:K,max:q}=Wt(e,b),Z=K,X=q,[Q,J]=a.default.useState(()=>new Set(Object.keys(qt(t,x,F))));a.default.useEffect(()=>{const e=qt(t,x,F),n=Object.keys(e);n.length>0&&J(e=>n.every(t=>e.has(t))?e:new Set(n))},[t]);const $=Z>0&&Z===X,_=Z||1,ee=X||t.length,te=X||Z||t.length,[ne,oe]=a.default.useState(te),re=Object.keys(n).length,ie=X>0&&re>=X,ce=U?null!=b&&re===b:vt(re,e.min_propositions,e.max_propositions);e.min_bet,X>0?Math.max(2,2*X):Math.max(2,2*re);const de=a.default.useRef(re),he=U?null!=b&&re===b:X>0&&re===X;(0,a.useEffect)(()=>{he&&re>de.current&&r?.(),de.current=re},[re,he]);const ue=(e,t)=>{!(e in n)&&ie||o(e,t)};(0,a.useEffect)(()=>{const e=X||t.length,n=Z||1;oe(t=>$?X:Math.max(n,Math.min(t,e)))},[t.length,Z,X,$]);const ge=(0,a.useMemo)(()=>new Date,[]),fe=(0,a.useMemo)(()=>function(e,t){const n=e.filter(e=>null!=function(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}(e));if(n.length<2)return[];const o=[];for(const r of jr){let e=0,i=0;for(const o of n)if(Gr(o.commence_time,r,t)?e+=1:i+=1,e>0&&i>0)break;e>0&&i>0&&o.push({id:r,label:Er[r]})}return o}(t,ge),[t,ge]),[pe,ye]=(0,a.useState)(null);(0,a.useEffect)(()=>{pe&&!fe.some(e=>e.id===pe)&&ye(null)},[fe,pe]);const me=(0,a.useMemo)(()=>function(e,t,n){return t?e.filter(e=>Gr(e.commence_time,t,n)):e.slice()}(t,pe,ge),[t,pe,ge]),be=(0,a.useMemo)(()=>At(x,me,F),[x,me,F]),we=(0,a.useMemo)(()=>qt(me,x,F),[me,x,F]),xe=(0,a.useMemo)(()=>{const e=new Set;for(const t of me){const n=nt(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[me]),[ke,Se]=(0,a.useState)(null),[Ce,Be]=(0,a.useState)(!1);(0,a.useEffect)(()=>{ke&&!xe.includes(ke)&&Se(null)},[xe,ke]);const ze=(0,a.useMemo)(()=>{if(!ke)return we;const e={};for(const[t,n]of Object.entries(we)){const o=n.filter(e=>nt(e)===ke);o.length>0&&(e[t]=o)}return e},[we,ke]),Fe=Object.keys(ze);if(l)return(0,c.jsx)(gn,{colors:Y(A)});if(h)return(0,c.jsx)(s.View,{style:Jr.centered,children:(0,c.jsx)(s.Text,{style:{color:L.error},children:h})});const ve=!m&&t.length>0,We=fe.length>0||xe.length>1,Te=(null!=pe?1:0)+(null!=ke?1:0);return(0,c.jsxs)(s.View,{style:{gap:E?24:16,paddingBottom:64},children:[We||k?(0,c.jsxs)(s.View,{style:Jr.filterHeaderRow,children:[(0,c.jsx)(s.View,{style:Jr.filterToggleRow,children:We?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(s.TouchableOpacity,{onPress:()=>Be(e=>!e),activeOpacity:.85,accessibilityRole:"button",style:[Jr.filterToggle,{borderColor:Te>0?L.primary:L.border,backgroundColor:Te>0?L.primary:L.background??"#fff"}],children:[(0,c.jsx)(qe,{size:13,color:Te>0?L.primaryText:L.text}),(0,c.jsx)(s.Text,{style:{fontSize:11,fontWeight:"700",color:Te>0?L.primaryText:L.text},children:"Filter"}),Te>0&&(0,c.jsxs)(s.Text,{style:{fontSize:11,fontWeight:"700",color:L.primaryText},children:["· ",Te]}),(0,c.jsx)(s.View,{style:{transform:[{rotate:Ce?"-90deg":"90deg"}],opacity:.75},children:(0,c.jsx)(Ue,{size:13,color:Te>0?L.primaryText:L.text})})]}),Te>0&&(0,c.jsx)(s.TouchableOpacity,{onPress:()=>{ye(null),Se(null)},activeOpacity:.85,accessibilityRole:"button",children:(0,c.jsx)(s.Text,{style:{fontSize:11,fontWeight:"600",color:L.textMuted},children:"Clear"})})]}):null}),k]}):null,Ce&&We&&(0,c.jsxs)(s.View,{style:{gap:10},children:[fe.length>0&&(0,c.jsx)(et,{label:"When",options:[{value:null,label:"All dates"},...fe.map(e=>({value:e.id,label:e.label}))],value:pe,onChange:e=>ye(e),theme:A,bodyFont:O}),xe.length>1&&(0,c.jsx)(et,{label:"Market",options:[{value:null,label:"All markets"},...xe.map(e=>{return{value:e,label:(t=e,t.replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()))};var t})],value:ke,onChange:Se,theme:A,bodyFont:O})]}),ve&&(0,c.jsx)(s.View,{style:[Jr.topBar,{justifyContent:"flex-end"}],children:(0,c.jsxs)(s.View,{style:[Jr.quickPickRow,{gap:E?8:6}],children:[!$&&(0,c.jsxs)(s.View,{style:Jr.quickPickCountRow,children:[(0,c.jsx)(s.TextInput,{keyboardType:"number-pad",value:String(ne),onChangeText:e=>{const t=parseInt(e,10);isNaN(t)||oe(Math.max(_,Math.min(ee,t)))},style:[Jr.quickPickInput,{width:E?56:40,paddingHorizontal:E?8:4,paddingVertical:E?6:4,fontSize:E?14:12,color:H,backgroundColor:L.backgroundAlt,borderColor:L.border}]}),(0,c.jsxs)(s.Text,{style:{color:L.textMuted,fontSize:12},children:["/ ",t.length]})]}),(0,c.jsx)(cr,{onPress:()=>{const e=$?X:ne;for(const t of Object.keys(n)){const e=Number(t);o(e,n[e])}const{yesPicks:i,noPicks:l}=Qt(t,e);for(const t of i)o(t.id,"yes");for(const t of l)o(t.id,"no");r?.()}})]})}),t.length>0&&W?(0,c.jsx)(Pr,{variant:W,groups:ze,racing:be,selections:n,onToggleSelection:ue,atMax:ie,theme:A,renderTeamLogo:y,componentById:v,disableEventSwipe:T}):null,t.length>0&&!W&&(0,c.jsx)(s.View,{style:Jr.matchupList,children:Fe.every(e=>1===ze[e].length)?(0,c.jsx)(s.View,{style:[Jr.matchupCard,{borderColor:L.border,backgroundColor:D},V],children:Fe.map((e,t)=>{const o=ze[e][0],r="yes"===n[o.id],i="no"===n[o.id],l=o.id in n,a=ie&&!l,d=0===t,h=t===Fe.length-1;return(0,c.jsxs)(s.View,{style:{borderTopColor:L.border,borderTopWidth:d?0:1,opacity:a?.45:1},children:[(0,c.jsxs)(s.View,{style:{paddingHorizontal:16,paddingVertical:E?12:10,backgroundColor:P,borderTopLeftRadius:d?Ur:0,borderTopRightRadius:d?Ur:0},children:[(0,c.jsx)(s.View,{style:{minWidth:0},children:(0,c.jsx)(qr,{matchup:e,renderTeamLogo:y,altText:H,mutedColor:L.textAltMuted??L.textMuted??H})}),o.commence_time&&(0,c.jsx)(s.Text,{style:{color:L.textAltMuted??L.textMuted,fontSize:11,opacity:.7,marginTop:2},children:bt(o.commence_time)})]}),(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingHorizontal:16,paddingVertical:E?14:12,backgroundColor:M,borderTopWidth:1,borderTopColor:L.border,borderBottomLeftRadius:h?Ur:0,borderBottomRightRadius:h?Ur:0},children:[(0,c.jsxs)(s.View,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[Yr(o,y,e),(0,c.jsx)(Xr,{prop:o,colors:L,componentById:v})]}),(0,c.jsx)(Ae,{theme:A,size:"sm",value:r?"yes":i?"no":null,onYes:()=>ue(o.id,"yes"),onNo:()=>ue(o.id,"no"),disabled:a})]})]},o.id)})}):Fe.map(e=>{const t=ze[e],o=Q.has(e),r=t.filter(e=>e.id in n).length,i=t[0]?.commence_time;return(0,c.jsxs)(s.View,{style:[Jr.matchupCard,{borderColor:L.border,backgroundColor:D},V],children:[(0,c.jsxs)(s.TouchableOpacity,{onPress:()=>{return t=e,J(e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n});var t},style:[Jr.matchupHeader,{backgroundColor:P,borderTopLeftRadius:Ur,borderTopRightRadius:Ur,borderBottomLeftRadius:o?0:Ur,borderBottomRightRadius:o?0:Ur}],children:[(0,c.jsxs)(s.View,{style:Jr.matchupHeaderLeft,children:[(0,c.jsx)(d.default,{width:18,height:18,viewBox:"0 0 24 24",style:{flexShrink:0,transform:[{rotate:o?"180deg":"0deg"}]},children:(0,c.jsx)(d.Path,{d:"m6 9 6 6 6-6",stroke:L.textAltMuted??L.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),(0,c.jsxs)(s.View,{style:Jr.matchupTeamWrapper,children:[(0,c.jsx)(qr,{matchup:e,renderTeamLogo:y,altText:H,mutedColor:L.textAltMuted??L.textMuted??H,size:"md"}),i&&(0,c.jsx)(s.Text,{style:{color:L.textAltMuted??L.textMuted,fontSize:12,opacity:.7,marginTop:2,textAlign:"left"},children:bt(i)})]})]}),(0,c.jsx)(s.View,{style:Jr.matchupHeaderRight,children:r>0&&(0,c.jsx)(s.View,{style:[Jr.answeredBadge,{backgroundColor:L.successBg}],children:(0,c.jsxs)(s.Text,{style:{color:L.successText,fontSize:12,fontWeight:"500"},children:[r,"/",t.length]})})})]}),o&&(0,c.jsx)(s.View,{children:(0,c.jsx)(c.Fragment,{children:t.map((o,r)=>{const i="yes"===n[o.id],l="no"===n[o.id],a=o.id in n,d=ie&&!a,h=r===t.length-1;return(0,c.jsx)(s.View,{style:{paddingHorizontal:16,paddingVertical:E?14:12,backgroundColor:M,borderTopColor:L.border,borderTopWidth:0===r?0:1,opacity:d?.45:1,borderBottomLeftRadius:h?Ur:0,borderBottomRightRadius:h?Ur:0},children:(0,c.jsxs)(s.View,{style:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-start",columnGap:E?16:8,rowGap:E?16:8},children:[(0,c.jsxs)(s.View,{style:{flex:1,minWidth:128,flexDirection:"row",alignItems:"flex-start",gap:8},children:[Yr(o,y,e),(0,c.jsx)(Xr,{prop:o,colors:L,size:"md",componentById:v})]}),(0,c.jsx)(Ae,{theme:A,size:"sm",value:i?"yes":l?"no":null,onYes:()=>ue(o.id,"yes"),onNo:()=>ue(o.id,"no"),disabled:d})]})},o.id)})})})]},e)})}),0===t.length&&(0,c.jsx)(s.View,{style:Jr.centered,children:(0,c.jsx)(s.Text,{style:{color:L.textMuted},children:"No propositions available at this time"})}),!f&&(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:L.border,backgroundColor:D,marginHorizontal:E?-24:-16,paddingHorizontal:E?24:16,paddingVertical:E?16:12},children:[(0,c.jsx)(Kr,{theme:A,variant:"secondary",onPress:i,children:"Back"}),(0,c.jsx)(s.View,{style:{flexDirection:"row",alignItems:"center",gap:E?12:8},children:(0,c.jsx)(Kr,{theme:A,variant:"primary",disabled:!ce,onPress:r,children:"Wager"})})]})]})}var Jr=s.StyleSheet.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:Ur,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 $r({theme:e,variant:t,disabled:n,onPress:o,children:r}){const i=e.colors,[l,d]=(0,a.useState)(!1),h="primary"===t?{bg:i.buttonPrimary,bgHover:i.buttonPrimaryHover,fg:i.buttonPrimaryText,border:i.buttonPrimary}:{bg:i.buttonSecondary,bgHover:i.buttonSecondaryHover,fg:i.buttonSecondaryText,border:i.border};return(0,c.jsx)(s.TouchableOpacity,{onPress:o,disabled:n,activeOpacity:.85,...ze(()=>d(!0),()=>d(!1)),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:h.border,backgroundColor:l&&!n?h.bgHover:h.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:(0,c.jsx)(s.Text,{style:{color:h.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:r})})}var _r=s.StyleSheet.create({section:{borderRadius:12,borderWidth:1},emptyState:{alignItems:"center",paddingVertical:32},selectionInfo:{flex:1,minWidth:0},teamsRow:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6,rowGap:2},teamLogoRow:{flexDirection:"row",alignItems:"center",gap:4},teamText:{fontWeight:"600"},vsSmall:{fontSize:12,fontWeight:"400"},propDesc:{fontSize:14,marginTop:4},propTime:{fontSize:12,opacity:.7,marginTop:2},rightControls:{flexDirection:"row",alignItems:"center",gap:8},removeButton:{width:20,height:20,borderRadius:10,alignItems:"center",justifyContent:"center"},summaryRow:{flexDirection:"row",justifyContent:"space-between"}});function ei({game:e,propositions:t,selections:n,onToggleSelection:o,onRemoveSelection:r,onSubmit:i,onBack:l,loading:h,error:u,expectedCorrect:g,onExpectedCorrectChange:f,betAmount:p,onBetAmountChange:y,theme:m,colorScheme:b,hideActions:w=!1,winningCounts:x,payouts:k,renderTeamLogo:S,showCustomAmount:C=!1,betAmountLocked:B=!1,betAmountLockedNote:z,canSubmit:F,authenticated:v=!0,userBalance:W,onRecharge:T,boostBanner:A}){const M=le(m,b),P=M.colors,H=j(M),O=se(M),I=R(M),E=L(M),Y=D(M),V=P.textAlt??P.text,{width:U}=(0,s.useWindowDimensions)(),K=U>=640,q="dark"===M.colorScheme,Z=t.length,X=e.min_bet??0,Q=Math.max(X,.01),J=e.max_bet??null,$=[5,10,20,50,100,200,500].filter(e=>e>=Q&&(null===J||e<=J)).slice(0,4),_={};for(let a=0;a<=Z;a++)_[a]=p*a;const ee=k??_,te=ee[g]??0,ne=Tt(e),oe=ne.enabled&&g===Z,[re,ie]=a.default.useState(null),[ae,ce]=a.default.useState(!0),[de,he]=a.default.useState(!1),ue=h||p<Q||!1===F,ge=null!=W&&p>W,fe=w&&!!i&&v,pe=n?t.filter(e=>e.id in n):t,ye=Zt(pe),me=P.matchupHeader??N(M),be=G(M),we=Object.entries(ee).map(([e,t])=>({correct:Number(e),payout:t})).filter(e=>e.correct>0&&e.payout>0).sort((e,t)=>e.correct-t.correct),xe=1===we.length?we[0].correct:null;a.default.useEffect(()=>{null!==xe&&g!==xe&&f(xe)},[xe]);const ke={shadowColor:"#000",shadowOpacity:q?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};return(0,c.jsxs)(s.View,{style:{gap:K?16:12,paddingBottom:64},children:[A,(0,c.jsxs)(s.View,{style:[ti.section,ke,{padding:K?20:16,backgroundColor:H,borderColor:P.border}],children:[(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,c.jsxs)(s.TouchableOpacity,{onPress:()=>ce(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:ae},accessibilityLabel:ae?"Hide selections":"Show selections",testID:"entry-submission-selections-toggle",style:{flexDirection:"row",alignItems:"center",gap:8,flex:1},activeOpacity:.7,children:[(0,c.jsx)(s.View,{style:{transform:[{rotate:ae?"180deg":"0deg"}]},children:(0,c.jsx)(d.default,{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:(0,c.jsx)(d.Path,{d:"m6 9 6 6 6-6",stroke:P.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,c.jsx)(s.Text,{style:{fontSize:K?16:14,fontWeight:"600",color:I,fontFamily:O},children:ae?"Hide Selections":"Review Selections"})]}),(0,c.jsx)(s.View,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:999,flexShrink:0,backgroundColor:`${P.primary}15`},children:(0,c.jsxs)(s.Text,{style:{color:P.primary,fontSize:12,fontWeight:"600"},children:[pe.length," pick",1!==pe.length?"s":""]})})]}),!ae&&(0,c.jsx)(s.Text,{style:{color:P.textMuted,fontSize:12,marginTop:8},children:"Tap to show your picks"}),ae&&(0,c.jsx)(s.View,{style:{gap:8,marginTop:12},children:ye.map(e=>(0,c.jsxs)(s.View,{style:{borderRadius:8,overflow:"hidden",borderWidth:1,borderColor:P.border},children:[e.key?(0,c.jsxs)(s.View,{style:{paddingHorizontal:12,paddingVertical:8,backgroundColor:me},children:[(0,c.jsx)(qr,{matchup:e.key,renderTeamLogo:S,altText:V,mutedColor:P.textAltMuted??P.textMuted??V}),e.props[0].commence_time?(0,c.jsx)(s.Text,{style:{color:P.textAltMuted??P.textMuted,fontSize:11,marginTop:2,opacity:.7},children:bt(e.props[0].commence_time)}):null]}):null,e.props.map((t,i)=>{const l=n?.[t.id],a="yes"===l,h="no"===l,u=!!o;return(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8,paddingVertical:8,paddingHorizontal:12,backgroundColor:be,borderTopWidth:e.key||i>0?1:0,borderTopColor:P.border},children:[(0,c.jsxs)(s.View,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[Yr(t,S,e.key),(0,c.jsx)(s.Text,{style:{color:V,fontSize:K?14:12,flexShrink:1},children:t.description})]}),(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:0},children:[u?(0,c.jsx)(Ae,{theme:M,size:"xs",value:a?"yes":h?"no":null,onYes:()=>o(t.id,"yes"),onNo:()=>o(t.id,"no")}):l?(0,c.jsx)(Re,{theme:M,size:"sm",value:"yes"===l?"yes":"no",style:{flexShrink:0}}):null,ae&&r&&(0,c.jsx)(s.Pressable,{onPress:()=>{l&&o?.(t.id,l),r(t.id)},...ze(()=>ie(t.id),()=>ie(null)),accessibilityRole:"button",accessibilityLabel:"Remove selection",style:{flexShrink:0,width:44,height:44,alignItems:"center",justifyContent:"center",backgroundColor:"transparent"},children:(0,c.jsx)(s.View,{style:{width:26,height:26,borderRadius:13,alignItems:"center",justifyContent:"center",backgroundColor:re===t.id?P.error:"transparent"},children:(0,c.jsx)(d.default,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:(0,c.jsx)(d.Path,{d:"M6 18L18 6M6 6l12 12",stroke:re===t.id?"#fff":P.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})})]})]},t.id)})]},e.key??`solo-${e.props[0].id}`))})]}),fe&&(0,c.jsxs)(s.View,{testID:"entry-submission-scroll-hint",style:{flexDirection:"row",alignItems:"center",gap:6,marginTop:-4},children:[(0,c.jsx)(s.Text,{style:{color:P.textMuted,fontSize:K?14:12,fontWeight:"500"},children:"↓"}),(0,c.jsx)(s.Text,{style:{color:P.textMuted,fontSize:K?14:12,fontWeight:"500",flex:1},children:"Scroll down to set your bet and place your entry"})]}),v?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(s.View,{style:[ti.section,ke,{padding:K?24:16,backgroundColor:H,borderColor:P.border}],children:[(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:K?16:12},children:[(0,c.jsx)(s.Text,{style:{fontSize:K?18:16,fontWeight:"600",color:I,fontFamily:O},children:"How much are you betting?"}),null!=W&&(0,c.jsxs)(s.Text,{style:{fontSize:12,fontWeight:"600",color:P.textMuted},children:["Balance: ",(0,c.jsx)(s.Text,{style:{color:ge?P.error:P.success},children:mt(W)})]})]}),ge&&(0,c.jsxs)(s.View,{style:{marginBottom:12,paddingHorizontal:12,paddingVertical:8,borderRadius:8,backgroundColor:P.errorBg??`${P.error}15`,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,c.jsxs)(s.Text,{style:{flex:1,fontSize:12,fontWeight:"500",color:P.errorText??P.error},children:["Insufficient balance. Your bet of ",mt(p)," exceeds your available ",mt(W),"."]}),T&&(0,c.jsx)(s.TouchableOpacity,{onPress:T,style:{paddingHorizontal:12,paddingVertical:4,borderRadius:6,backgroundColor:P.error},children:(0,c.jsx)(s.Text,{style:{fontSize:12,fontWeight:"600",color:P.buttonPrimaryText??"#fff"},children:"Add funds"})})]}),B?(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:8,paddingHorizontal:12,paddingVertical:10,backgroundColor:P.backgroundAlt,borderWidth:1,borderColor:P.border},children:[(0,c.jsx)(s.Text,{style:{fontSize:12,color:P.textMuted,flex:1},children:z??"Stake is set for this ticket."}),(0,c.jsx)(s.Text,{style:{fontSize:18,fontWeight:"700",color:I,fontFamily:O},children:mt(p)})]}):(0,c.jsxs)(s.View,{style:{gap:16},children:[C&&(0,c.jsxs)(s.View,{children:[(0,c.jsx)(s.Text,{style:{fontSize:K?14:12,fontWeight:"600",color:E,marginBottom:8},children:"Entry amount"}),(0,c.jsxs)(s.View,{style:{position:"relative"},children:[(0,c.jsx)(s.View,{style:{position:"absolute",left:12,top:0,bottom:0,justifyContent:"center",zIndex:1},pointerEvents:"none",children:(0,c.jsx)(s.Text,{style:{color:P.textMuted},children:"$"})}),(0,c.jsx)(s.TextInput,{keyboardType:"decimal-pad",placeholder:"Enter amount",accessibilityLabel:"Entry amount",value:p?String(p):"",onChangeText:e=>{if(""===e)return void y(0);const t=Number(e);if(!Number.isFinite(t))return;const n=Math.max(0,Math.round(100*t)/100);y(null!==J?Math.min(n,J):n)},onFocus:()=>he(!0),onBlur:()=>he(!1),style:{paddingLeft:32,paddingRight:16,paddingVertical:12,borderWidth:1,borderRadius:8,fontSize:18,fontWeight:"600",borderColor:de?P.borderFocus??P.primary:P.border,color:V,backgroundColor:P.backgroundAlt},placeholderTextColor:P.textMuted})]}),(0,c.jsxs)(s.Text,{style:{fontSize:12,marginTop:6,color:P.textMuted},children:["Minimum bet: ",mt(Q),null!==J?` · Maximum: ${mt(J)}`:""]}),p>0&&p<Q&&(0,c.jsxs)(s.Text,{style:{fontSize:12,marginTop:4,color:P.error},children:["Bet amount must be at least ",mt(Q)]})]}),(0,c.jsxs)(s.View,{children:[(C||p>0)&&(0,c.jsxs)(s.View,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[C?(0,c.jsx)(s.Text,{style:{fontSize:K?14:12,fontWeight:"600",color:E},children:"Add to bet"}):(0,c.jsx)(s.View,{}),p>0&&(0,c.jsx)(s.TouchableOpacity,{onPress:()=>y(0),style:{paddingHorizontal:10,paddingVertical:4,borderRadius:6,backgroundColor:P.backgroundAlt,borderWidth:1.5,borderColor:P.border},children:(0,c.jsx)(s.Text,{style:{color:P.textMuted,fontSize:12,fontWeight:"600"},children:"Clear bet"})})]}),(0,c.jsx)(s.View,{style:{flexDirection:"row",gap:8},children:$.map(e=>{const t=null!==J&&p>=J;return(0,c.jsx)(s.TouchableOpacity,{onPress:()=>{const t=p+e;y(null!==J?Math.min(t,J):t)},disabled:t,style:{flex:1,minWidth:0,paddingHorizontal:12,paddingVertical:10,borderRadius:8,backgroundColor:"transparent",borderWidth:1,borderColor:P.border,opacity:t?.5:1,alignItems:"center",justifyContent:"center"},children:(0,c.jsxs)(s.Text,{style:{color:V,fontSize:14,fontWeight:"600"},children:["+",mt(e)]})},e)})})]})]})]}),(0,c.jsx)(s.View,{style:[ti.section,ke,{padding:K?20:16,backgroundColor:H,borderColor:P.border}],children:(()=>{const e=w&&!!i,t=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(s.View,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[(0,c.jsx)(s.Text,{style:{color:E,fontSize:14},children:"Bet"}),(0,c.jsx)(s.Text,{style:{color:Y,fontSize:14,fontWeight:"600"},children:mt(p)})]}),te>0&&(0,c.jsxs)(s.View,{style:{flexDirection:"row",flexWrap:"wrap",columnGap:8,justifyContent:"space-between",alignItems:"center",paddingTop:8,borderTopWidth:1,borderTopColor:P.border},children:[(0,c.jsx)(s.Text,{style:{color:E,fontSize:14,fontWeight:"600"},children:"Potential Payout"}),(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center"},children:[(0,c.jsx)(s.Text,{style:{color:I,fontSize:18,fontWeight:"700"},children:mt(te)}),oe&&(0,c.jsx)(s.Text,{style:{color:P.warning,fontSize:12,marginLeft:4},children:"+ Jackpot"})]})]}),ne.enabled&&(0,c.jsxs)(s.View,{style:[ti.jackpotBanner,{backgroundColor:`${P.warning}08`,borderColor:`${P.warning}25`}],children:[(0,c.jsxs)(s.Text,{style:{color:P.warning,fontSize:12,fontWeight:"600"},children:["★ ",ne.progressive?"Progressive Jackpot":"Jackpot"]}),(0,c.jsx)(s.Text,{style:{color:P.warning,fontSize:14,fontWeight:"700"},children:ne.progressive?ne.amount>0?mt(ne.amount):ne.limit>0?`Up to ${mt(ne.limit)}`:"Progressive":mt(ne.amount)})]})]});return e?(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"stretch",gap:16},children:[(0,c.jsx)(s.View,{style:{flex:1,minWidth:0},children:t}),(0,c.jsx)(s.View,{style:{width:1,alignSelf:"stretch",backgroundColor:P.border}}),(0,c.jsx)(s.TouchableOpacity,{onPress:i,disabled:ue,accessibilityState:{disabled:ue,busy:!!h},activeOpacity:.7,style:{flexShrink:0,paddingVertical:12,paddingHorizontal:20,borderRadius:8,backgroundColor:P.buttonPrimary,opacity:ue?.5:1,alignItems:"center",justifyContent:"center",minWidth:120},children:h?(0,c.jsxs)(s.View,{style:{alignItems:"center",gap:8},children:[(0,c.jsx)(s.ActivityIndicator,{size:"small",color:P.buttonPrimaryText}),(0,c.jsx)(s.Text,{style:{color:P.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Placing Entry…"})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.Text,{style:{color:P.buttonPrimaryText,fontSize:16,fontWeight:"700"},children:"Place Entry"}),(0,c.jsx)(s.Text,{style:{color:P.buttonPrimaryText,fontSize:12,opacity:.9,marginTop:2},children:mt(p)})]})})]}):t})()})]}):(0,c.jsxs)(s.View,{style:[ti.section,ke,{padding:K?24:16,backgroundColor:H,borderColor:P.border}],children:[(0,c.jsx)(s.Text,{style:{fontSize:K?18:16,fontWeight:"600",color:I,fontFamily:O},children:"Log in to place this entry"}),(0,c.jsx)(s.Text,{style:{fontSize:K?14:12,color:P.textMuted,marginTop:4,marginBottom:16},children:"Your picks are held. Log in to set your bet and confirm."}),(0,c.jsx)(s.TouchableOpacity,{onPress:i,style:{paddingVertical:12,paddingHorizontal:24,borderRadius:8,backgroundColor:P.buttonPrimary,alignItems:"center"},children:(0,c.jsx)(s.Text,{style:{color:P.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Log in"})})]}),u&&(0,c.jsx)(s.View,{style:[ti.errorBanner,{backgroundColor:P.errorBg,borderColor:P.error}],children:(0,c.jsx)(s.Text,{style:{color:P.errorText,fontSize:14},children:u})}),!w&&(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:P.border,backgroundColor:P.background,marginHorizontal:K?-24:-16,paddingHorizontal:K?24:16,paddingVertical:K?16:12},children:[(0,c.jsx)(ve,{theme:M,variant:"secondary",disabled:h,onPress:l,children:"Back"}),(0,c.jsx)(s.TouchableOpacity,{onPress:i,disabled:ue,accessibilityState:{disabled:ue,busy:!!h},activeOpacity:.7,style:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,paddingHorizontal:24,paddingVertical:10,borderRadius:8,backgroundColor:P.buttonPrimary,opacity:ue?.5:1},children:h?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.ActivityIndicator,{size:"small",color:P.buttonPrimaryText}),(0,c.jsx)(s.Text,{style:{color:P.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Placing Entry…"})]}):(0,c.jsx)(s.Text,{style:{color:P.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:`Place Entry (${mt(p)})`})})]})]})}var ti=s.StyleSheet.create({section:{borderRadius:12,borderWidth:1},jackpotBanner:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingVertical:6,paddingHorizontal:8,borderRadius:4,borderWidth:1,marginTop:8},errorBanner:{padding:12,borderRadius:8,borderWidth:1}}),ni="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 oi({index:e,size:t,wide:n,isWinning:o,isJackpot:r,isSelected:i,bgColor:l,borderFallback:h,warning:u,primary:g,textMuted:f,payout:p,onPress:y,accessibilityLabel:m}){const[b,w]=(0,a.useState)(!1),x=!!y,k=o||r,S=x&&b?1.12:k?1.1:1;return(0,c.jsxs)(s.TouchableOpacity,{onPress:y,disabled:!x,activeOpacity:.7,accessibilityRole:"button",accessibilityLabel:m,accessibilityState:{disabled:!x,selected:i},...ze(()=>w(!0),()=>w(!1)),style:[ri.circle,{width:t,height:t,borderRadius:t/2,backgroundColor:l,borderColor:r?u:o?l:h,zIndex:i?10:r?6:o?5:1,transform:[{scale:S}]},k&&ri.circleWinning,x&&b&&ri.circleHovered],children:[r&&(0,c.jsx)(s.View,{pointerEvents:"none",style:{position:"absolute",top:-3,right:-3,bottom:-3,left:-3,borderRadius:t/2+3,borderWidth:2,borderColor:`${u}80`}}),i&&(0,c.jsx)(s.View,{pointerEvents:"none",style:{position:"absolute",top:-6,right:-6,bottom:-6,left:-6,borderRadius:t/2+6,borderWidth:3,borderColor:g}}),r&&(0,c.jsx)(s.View,{pointerEvents:"none",style:{position:"absolute",top:-6,right:-6},children:(0,c.jsx)(d.default,{width:14,height:14,viewBox:"0 0 24 24",children:(0,c.jsx)(d.Path,{d:ni,fill:u,stroke:u,strokeWidth:1})})}),(0,c.jsx)(s.Text,{style:{fontSize:n?16:14,lineHeight:n?16:14,fontWeight:"600",color:o||r?"#ffffff":f},children:e}),p>0&&(0,c.jsx)(s.Text,{style:{fontSize:n?8:7,lineHeight:n?8:7,fontWeight:"400",color:o||r?"#ffffff":f},children:mt(p)})]})}var ri=s.StyleSheet.create({container:{gap:16},title:{fontSize:14,fontWeight:"600",textAlign:"center"},jackpotBanner:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,paddingVertical:10,paddingHorizontal:16,borderRadius:8,borderWidth:1,overflow:"hidden"},jackpotText:{fontSize:14,fontWeight:"600",textAlign:"center",flexShrink:1},circleGrid:{flexDirection:"row",flexWrap:"wrap",justifyContent:"center"},circle:{borderWidth:2,alignItems:"center",justifyContent:"center"},circleWinning:{elevation:4,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:.25,shadowRadius:4},circleHovered:{elevation:6,shadowColor:"#000",shadowOffset:{width:0,height:4},shadowOpacity:.3,shadowRadius:8},expectedText:{fontSize:12,textAlign:"center"},expectedBold:{fontWeight:"600"}});function ii({iconUrl:e,gameName:t,chipColor:n,textColor:o,iconColor:r,accentColor:i,brandColor:l,height:a=56,showTrademark:d=!0,compact:h=!1,onPress:u}){const g=n??l??"#0F4C5C",f=o??g,p=.85*a,y=1.8*p,m=p/2,b='Manrope, Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif',w=a,x=a,k=y-.18*p*2,S=p-.05*p*2,C=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(s.Text,{accessibilityLabel:"YESNO",style:{fontFamily:b,fontSize:w,lineHeight:1.15*w,letterSpacing:-1,color:f,includeFontPadding:!1},children:[(0,c.jsx)(s.Text,{style:{fontWeight:"900"},children:"YES"}),(0,c.jsx)(s.Text,{style:{fontWeight:"300"},children:"NO"})]}),(0,c.jsx)(s.View,{accessible:!0,accessibilityRole:"image",accessibilityLabel:t,style:{width:y,height:p,borderRadius:m,backgroundColor:g,alignItems:"center",justifyContent:"center",flexShrink:0,transform:[{translateY:.06*-a}]},children:(0,c.jsx)(en,{iconUrl:e,width:k,height:S,iconColor:r,accentColor:i})}),(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"flex-start",flexShrink:1,minWidth:0},children:[(0,c.jsx)(s.Text,{style:{fontFamily:b,fontSize:x,lineHeight:1.15*x,fontWeight:"500",color:f,includeFontPadding:!1,flexShrink:1},children:t}),d&&(0,c.jsx)(s.Text,{style:{fontFamily:b,fontSize:.3*x,lineHeight:.3*x,fontWeight:"600",color:f,marginLeft:.06*x,includeFontPadding:!1},children:"TM"})]})]});return u?(0,c.jsx)(s.Pressable,{onPress:u,accessibilityRole:"button",accessibilityLabel:`Play ${t}`,testID:"brand-logo-play",style:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:.2*a,maxWidth:"100%",minWidth:0},children:C}):(0,c.jsx)(s.View,{style:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:.2*a,maxWidth:"100%",minWidth:0},children:C})}function li({color:e,style:t}){return(0,c.jsx)(s.View,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function ai({colors:e}){const t=e.selectionCard??e.backgroundAlt;return(0,c.jsxs)(s.View,{style:{width:"100%"},children:[(0,c.jsx)(s.View,{style:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:e.border,marginBottom:16},children:[0,1].map(t=>(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10},children:[(0,c.jsx)(li,{color:e.textMuted,style:{height:14,width:68}}),(0,c.jsx)(li,{color:e.textMuted,style:{height:20,width:20,borderRadius:999}})]},t))}),(0,c.jsx)(s.View,{style:{gap:12,width:"100%"},children:[0,1].map(n=>(0,c.jsxs)(s.View,{style:{borderRadius:8,borderWidth:1,borderColor:e.border,backgroundColor:t,overflow:"hidden",width:"100%"},children:[(0,c.jsxs)(s.View,{style:{width:"100%",paddingHorizontal:16,paddingVertical:12,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,c.jsxs)(s.View,{style:{flex:1,gap:6},children:[(0,c.jsx)(li,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),(0,c.jsx)(li,{color:e.textMuted,style:{height:12,width:128,maxWidth:"65%"}})]}),(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",gap:12,flexShrink:0},children:[(0,c.jsx)(li,{color:e.textMuted,style:{height:14,width:40}}),(0,c.jsx)(li,{color:e.textMuted,style:{height:24,width:60,borderRadius:999}})]})]}),(0,c.jsx)(s.View,{style:{borderTopWidth:1,borderTopColor:e.border,width:"100%"},children:[0,1,2].map(t=>(0,c.jsxs)(s.View,{style:{paddingHorizontal:16,paddingVertical:10,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:0===t?0:1,borderTopColor:e.border},children:[(0,c.jsxs)(s.View,{style:{flex:1,gap:4},children:[(0,c.jsx)(li,{color:e.textMuted,style:{height:14,width:"88%"}}),(0,c.jsx)(li,{color:e.textMuted,style:{height:12,width:"70%"}})]}),(0,c.jsx)(li,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]},n))})]})}function si({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,demoEntries:i,demoGames:l,demoPropositions:h,onSelectEntry:u,theme:g,colorScheme:f,renderTeamLogo:p,filterSport:y}){const m=le(g,f),b=!!(i&&l&&h),w=m.colors,x=se(m),[k,S]=(0,a.useState)("pending"),[C,B]=(0,a.useState)([]),z=(0,a.useMemo)(()=>new yo({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:F,loading:v,error:W,refetch:T}=xo(z,{user_id:r},{skip:b}),{games:A,loading:R,error:L}=mo(z,void 0,{skip:b}),{propositions:D,loading:M,error:P}=bo(z,void 0,{skip:b}),H=b?i:F,O=b?l:A,I=b?h:D,E=!b&&(v||R||M),j=b?null:W||L||P,N=(0,a.useMemo)(()=>H.map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t}),[H]),G=(0,a.useMemo)(()=>{const e=new Map;for(const t of O)e.set(t.id,t);return e},[O]),V=(0,a.useMemo)(()=>{const e=new Map;for(const t of I)e.set(t.id,t);for(const t of N)if(t.propositions)for(const n of t.propositions)e.has(n.id)||e.set(n.id,n);for(const t of C)e.set(t.id,t);return e},[I,N,C]),U=(0,a.useRef)(new Set);(0,a.useEffect)(()=>{if(E||b)return;const e=[];for(const n of N)for(const t of n.proposition_ids??[])V.has(t)||U.current.has(t)||(e.push(t),U.current.add(t));if(0===e.length)return;let t=!1;return(async()=>{try{const n=await z.getPropositionsByIds(e);!t&&n.length>0&&B(e=>[...e,...n])}catch{}})(),()=>{t=!0}},[N,V,E,b,z]);const K=(0,a.useMemo)(()=>y?N.filter(e=>{const t=e.proposition_ids??[];return 0===t.length||t.some(t=>(V.get(t)??e.propositions?.find(e=>e.id===t))?.sport===y)}):N,[N,y,V]),q=(0,a.useMemo)(()=>K.filter(e=>yt(e.pending)),[K]),Z=(0,a.useMemo)(()=>K.filter(e=>!yt(e.pending)),[K]),X="pending"===k?q:Z;return E?(0,c.jsx)(s.View,{style:di.container,accessibilityLabel:"Loading entries",children:(0,c.jsx)(ai,{colors:Y(m)})}):j?(0,c.jsx)(s.View,{style:di.container,children:(0,c.jsxs)(s.View,{style:[di.errorBanner,{backgroundColor:w.errorBg,borderColor:w.error}],children:[(0,c.jsx)(s.Text,{style:{color:w.errorText},children:j}),(0,c.jsx)(s.TouchableOpacity,{onPress:T,style:di.retryButton,children:(0,c.jsx)(s.Text,{style:{color:w.error,textDecorationLine:"underline",fontSize:14,fontWeight:"500"},children:"Try again"})})]})}):(0,c.jsxs)(s.View,{style:di.container,children:[(0,c.jsx)(s.View,{style:[di.tabBar,{borderBottomColor:w.border}],children:["pending","completed"].map(e=>{const t=k===e,n="pending"===e?q.length:Z.length;return(0,c.jsxs)(s.TouchableOpacity,{onPress:()=>S(e),accessibilityRole:"tab",accessibilityState:{selected:t},style:[di.tab,{borderBottomColor:t?w.primary:"transparent"}],children:[(0,c.jsx)(s.Text,{style:[di.tabLabel,{color:t?w.primary:w.textMuted,fontFamily:x}],children:"pending"===e?"Pending":"Completed"}),(0,c.jsx)(s.View,{style:[di.tabBadge,{backgroundColor:t?`${w.primary}15`:w.backgroundAlt}],children:(0,c.jsx)(s.Text,{style:[di.tabBadgeText,{color:t?w.primary:w.textMuted}],children:n})})]},e)})}),0===X.length&&(0,c.jsxs)(s.View,{style:di.emptyState,children:[(0,c.jsx)(s.View,{style:{marginBottom:16},children:(0,c.jsx)(d.default,{width:48,height:48,viewBox:"0 0 24 24",fill:"none",children:(0,c.jsx)(d.Path,{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"})})}),(0,c.jsx)(s.Text,{style:[di.emptyTitle,{color:w.text}],children:"pending"===k?"No pending entries":"No completed entries"}),(0,c.jsx)(s.Text,{style:[di.emptySubtitle,{color:w.textMuted}],children:"pending"===k?"Entries awaiting results will appear here":"Settled entries will appear here"})]}),(0,c.jsx)(s.View,{style:di.entryList,children:X.map(e=>(0,c.jsx)(ci,{entry:e,game:G.get(e.game_id),propositionsById:V,onSelect:u,theme:m,renderTeamLogo:p},e.id))})]})}function ci({entry:e,game:t,propositionsById:n,onSelect:o,theme:r,renderTeamLogo:i}){const l=r.colors,h=j(r),u=se(r),g="dark"===r.colorScheme,f=e.proposition_ids??[],p=(0,a.useMemo)(()=>f.map(e=>n.get(e)).filter(Boolean),[f,n]),y=f.length,[m,b]=(0,a.useState)(!1),w=y>0,x=(0,a.useMemo)(()=>{const t=new Map;for(const n of e.propositions??[])t.set(n.id,n);return t},[e.propositions]),k=t=>{const o=e.selections?.[t];return null!=o?o:x.get(t)?.user_prediction??n.get(t)?.user_prediction},S=p.filter(e=>null!=e.result&&!e.is_voided).length,C=p.filter(e=>{if(null==e.result||e.is_voided)return!1;const t=k(e.id);return null!=t&&t===e.result}).length,B=null!=e.selections&&Object.keys(e.selections).length>0||(e.propositions??[]).some(e=>null!=e.user_prediction),z=yt(e.pending),F=!z&&pt(e.winning)>0,v=e.payout_status,W="fulfilled"===v&&F,T=z?"Pending":W?"Won — pay due":"paid_out"===v&&F?"Paid":F?"Won":"Lost",A=z||W?l.warningBg:F?l.successBg:l.errorBg,R=z||W?l.warningText:F?l.successText:l.errorText,L=B&&S>0?`${C}/${y} correct`:y>0?`${y} pick${1!==y?"s":""}`:null,D=B&&S>0?C>0?l.success:l.error:l.textMuted,M=(0,c.jsxs)(s.View,{style:di.cardHeader,children:[(0,c.jsxs)(s.View,{style:di.cardHeaderLeft,children:[(()=>{const n=t?t.allowed_propositions&&t.allowed_propositions.length>0&&t.game_name.replace(/\s+\d+\s*$/,"").trim()||t.game_name:`Game #${e.game_id}`;return t?(0,c.jsx)(ii,{iconUrl:fe(t),gameName:n,height:18,chipColor:l.primary,textColor:l.text,iconColor:l.primaryText,accentColor:r.brand?.accent}):(0,c.jsx)(s.Text,{style:[di.cardGameName,{color:l.text,fontFamily:u}],numberOfLines:1,children:n})})(),(0,c.jsxs)(s.View,{style:di.metaRow,children:[(e.created_at||e.entry_date)&&(0,c.jsx)(s.Text,{style:[di.metaText,{color:l.textMuted}],children:bt(e.created_at||e.entry_date)}),L&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.Text,{style:[di.metaDot,{color:l.textMuted}],children:"·"}),(0,c.jsx)(s.Text,{style:[di.metaText,{fontWeight:"500",color:D}],children:L})]})]})]}),(0,c.jsxs)(s.View,{style:di.cardHeaderRight,children:[(0,c.jsxs)(s.View,{style:di.amounts,children:[pt(e.bet_amount)>0&&(0,c.jsx)(s.Text,{style:[di.betLabel,{color:l.textMuted}],children:mt(pt(e.bet_amount))}),!z&&pt(e.winning)>0&&(0,c.jsxs)(s.View,{style:{alignItems:"flex-end"},children:[(0,c.jsx)(s.Text,{style:[di.winAmount,{color:l.success}],children:mt(pt(e.winning))}),(e.payout_jackpot??0)>0&&(0,c.jsxs)(s.Text,{style:{fontSize:12,fontWeight:"400",color:l.textMuted},children:["incl. ",mt(pt(e.payout_jackpot))," jackpot"]})]})]}),(0,c.jsx)(s.View,{style:[di.statusPill,{backgroundColor:A}],children:(0,c.jsx)(s.Text,{style:[di.statusText,{color:R}],children:T})}),w&&(0,c.jsx)(s.View,{style:{transform:[{rotate:m?"180deg":"0deg"}]},accessibilityElementsHidden:!0,children:(0,c.jsx)(d.default,{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:(0,c.jsx)(d.Path,{d:"m6 9 6 6 6-6",stroke:l.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})]});return(0,c.jsxs)(s.View,{style:[di.card,{borderColor:l.border,backgroundColor:h,shadowColor:"#000",shadowOpacity:g?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}],children:[(0,c.jsx)(s.TouchableOpacity,{testID:"entry-card",onPress:()=>{w&&b(e=>!e),o?.({entry:e,game:t,propositions:p})},activeOpacity:.7,disabled:!w&&!o,accessibilityLabel:`Entry #${e.id}`,accessibilityState:w?{expanded:m}:void 0,children:M}),m&&y>0&&f.map(t=>{const o=(t=>n.get(t)??e.propositions?.find(e=>e.id===t))(t),a=k(t);if(!o)return(0,c.jsxs)(s.View,{style:[di.propRow,{borderTopColor:l.border,borderTopWidth:1}],children:[(0,c.jsx)(s.View,{style:di.propInfo,children:(0,c.jsxs)(s.Text,{style:{fontSize:14,color:l.textMuted},children:["Loading proposition #",t,"…"]})}),null!=a&&(0,c.jsx)(Re,{theme:r,size:"sm",value:"yes"===a?"yes":"no"})]},t);const d=o.result,h=null!=d,u=!!o.is_voided,g=h&&!u&&null!=a&&a===d;let f,p,y;u?(f="Void",p=`${l.textMuted}20`,y=l.textMuted):h?g?(f="Won",p=l.successBg,y=l.successText):(f="Lost",p=l.errorBg,y=l.errorText):(f="Pending",p=l.warningBg,y=l.warningText);const m=Ct(o)?void 0:o.home_team;return(0,c.jsxs)(s.View,{style:[di.propRow,{borderTopColor:l.border,borderTopWidth:1}],children:[(0,c.jsxs)(s.View,{style:di.propInfo,children:[(o.home_team||o.away_team)&&(0,c.jsxs)(s.View,{style:di.teamsRow,children:[i&&m?i(m):null,m?(0,c.jsx)(s.Text,{style:[di.teamName,{color:l.text}],children:m}):null,m&&o.away_team?(0,c.jsx)(s.Text,{style:[di.vsText,{color:l.textMuted}],children:"vs"}):null,i&&o.away_team?i(o.away_team):null,o.away_team?(0,c.jsx)(s.Text,{style:[di.teamName,{color:l.text}],children:o.away_team}):null]}),(o.proposition||o.description)&&(0,c.jsx)(s.Text,{style:{fontSize:12,color:l.textMuted,marginTop:2},children:o.proposition||o.description}),o.commence_time&&(0,c.jsx)(s.Text,{style:{fontSize:12,color:l.textMuted,marginTop:2},children:bt(o.commence_time)})]}),(0,c.jsxs)(s.View,{style:di.outcomeCol,children:[(0,c.jsx)(s.Text,{style:[di.outcomeLabel,{color:l.textMuted}],children:"Pick"}),null!=a?(0,c.jsx)(Re,{theme:r,size:"sm",value:"yes"===a?"yes":"no"}):(0,c.jsx)(s.Text,{style:{fontSize:12,color:l.textMuted},children:"—"})]}),(0,c.jsxs)(s.View,{style:di.outcomeCol,children:[(0,c.jsx)(s.Text,{style:[di.outcomeLabel,{color:l.textMuted}],children:"Result"}),(0,c.jsx)(s.View,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:4,backgroundColor:p},children:(0,c.jsx)(s.Text,{style:{fontSize:12,fontWeight:"700",color:y,textTransform:"uppercase"},children:f})})]})]},t)})]})}var di=s.StyleSheet.create({container:{flex:1},errorBanner:{padding:16,borderRadius:8,borderWidth:1},retryButton:{marginTop:8},tabBar:{flexDirection:"row",borderBottomWidth:1,marginBottom:16},tab:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10,borderBottomWidth:2,marginBottom:-1},tabLabel:{fontSize:14,fontWeight:"500"},tabBadge:{minWidth:20,height:20,paddingHorizontal:6,borderRadius:999,alignItems:"center",justifyContent:"center"},tabBadgeText:{fontSize:12,fontWeight:"600"},emptyState:{alignItems:"center",justifyContent:"center",paddingVertical:48,paddingHorizontal:16},emptyTitle:{fontSize:16,fontWeight:"500"},emptySubtitle:{fontSize:14,marginTop:4},entryList:{gap:12},card:{borderRadius:12,borderWidth:1,overflow:"hidden"},cardHeader:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingHorizontal:16,paddingVertical:12,gap:12},cardHeaderLeft:{flex:1,minWidth:0},cardGameName:{fontSize:16,fontWeight:"600"},metaRow:{flexDirection:"row",alignItems:"center",gap:8,marginTop:2},metaText:{fontSize:12},metaDot:{fontSize:12},cardHeaderRight:{flexDirection:"row",alignItems:"center",gap:12,flexShrink:0},amounts:{alignItems:"flex-end"},betLabel:{fontSize:12},winAmount:{fontSize:14,fontWeight:"700"},statusPill:{paddingHorizontal:10,paddingVertical:2,borderRadius:999},statusText:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:.3},propRow:{flexDirection:"row",alignItems:"center",paddingHorizontal:16,paddingVertical:10,gap:12},propInfo:{flex:1},teamsRow:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:6},teamName:{fontSize:14,fontWeight:"500"},vsText:{fontSize:12,fontWeight:"400"},outcomeCol:{alignItems:"center",gap:2,flexShrink:0},outcomeLabel:{fontSize:9,fontWeight:"600",letterSpacing:.225,textTransform:"uppercase"}});function hi({style:e}){const{theme:t,bodyFont:n,eventFilterActive:o,eventFilterLabel:r,clearEventFilter:i,gameCategory:l}=sr(),{width:d}=(0,s.useWindowDimensions)(),h=d>=640,[u,g]=a.default.useState(!1);if(!o)return null;const f=t.colors,p=r??("racing"===l?"This race":"This event");return(0,c.jsxs)(s.View,{style:[ui.container,h&&ui.containerWide,{borderColor:`${f.primary}33`,backgroundColor:f.surface},e],children:[(0,c.jsxs)(s.View,{style:ui.textBlock,children:[(0,c.jsx)(s.Text,{style:[ui.kicker,{color:f.primary,fontFamily:n}],children:"Event filter"}),(0,c.jsx)(s.Text,{style:[ui.label,{color:f.text,fontFamily:n}],numberOfLines:1,children:p}),(0,c.jsx)(s.Text,{style:[ui.hint,{color:f.textMuted,fontFamily:n}],children:"Only propositions from this event are shown."})]}),(0,c.jsx)(s.TouchableOpacity,{onPress:i,...ze(()=>g(!0),()=>g(!1)),style:[ui.button,h&&ui.buttonWide,{borderColor:`${f.primary}44`,backgroundColor:f.background,opacity:u?.9:1}],children:(0,c.jsx)(s.Text,{style:[ui.buttonText,{color:f.text,fontFamily:n}],children:"Show all events"})})]})}var ui=s.StyleSheet.create({container:{marginBottom:16,flexDirection:"column",borderWidth:1,borderRadius:12,paddingHorizontal:12,paddingVertical:10,gap:8},containerWide:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},textBlock:{minWidth:0,flexShrink:1},kicker:{fontSize:10,fontWeight:"700",letterSpacing:1.2,textTransform:"uppercase"},label:{fontSize:14,fontWeight:"600"},hint:{fontSize:12},button:{flexShrink:0,alignSelf:"flex-start",borderWidth:1,borderRadius:8,paddingHorizontal:12,paddingVertical:6},buttonWide:{alignSelf:"center"},buttonText:{fontSize:12,fontWeight:"600"}});function gi({onBack:e,title:t="Go back"}){const{theme:n}=sr(),o=n.colors,[r,i]=a.default.useState(!1);return(0,c.jsx)(s.TouchableOpacity,{onPress:e,accessibilityRole:"button",accessibilityLabel:t,...ze(()=>i(!0),()=>i(!1)),style:{padding:2,alignItems:"center",justifyContent:"center",borderRadius:999,transform:[{translateX:r?-2:0}]},children:(0,c.jsx)(d.default,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:(0,c.jsx)(d.Path,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:r?o.text:o.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})}function fi({onBack:e,label:t="Games"}){const{theme:n}=sr(),o=n.colors,[r,i]=a.default.useState(!1),l=r?o.primary:o.textMuted;return(0,c.jsxs)(s.TouchableOpacity,{onPress:e,accessibilityRole:"button",accessibilityLabel:t,activeOpacity:.7,...ze(()=>i(!0),()=>i(!1)),style:{flexDirection:"row",alignItems:"center",gap:6,alignSelf:"flex-start",marginBottom:12,transform:[{translateX:r?-2:0}]},children:[(0,c.jsx)(d.default,{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:(0,c.jsx)(d.Path,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:l,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})}),(0,c.jsx)(s.Text,{style:{fontSize:14,fontWeight:"600",color:l},children:t})]})}function pi({onBack:e,hideActions:t,label:n,children:o}){const{theme:r}=sr(),i=r.colors,{width:l}=(0,s.useWindowDimensions)(),h=l>=640,[u,g]=a.default.useState(!1);if(!e&&null==n&&!o)return null;const f=e=>(0,c.jsx)(s.Text,{style:{fontSize:h?14:12,flexShrink:1,color:e},children:n});return(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",gap:6,marginTop:2},children:[e&&(null!=n?(0,c.jsxs)(s.TouchableOpacity,{onPress:e,accessibilityRole:"button",accessibilityLabel:"Go back",activeOpacity:.7,...ze(()=>g(!0),()=>g(!1)),style:{flexDirection:"row",alignItems:"center",gap:6,minWidth:0,flexShrink:1,transform:[{translateX:u?-2:0}]},children:[(0,c.jsx)(d.default,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:(0,c.jsx)(d.Path,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:u?i.text:i.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})}),f(u?i.text:i.textMuted)]}):(0,c.jsx)(gi,{onBack:e})),!e&&null!=n&&f(i.textMuted),o]})}function yi({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,howToPlayMarkdown:i,selectedCategory:l,displayCategoryName:a}=sr(),d=n.colors,{width:h}=(0,s.useWindowDimensions)(),u=h>=640,g=h>=768;return(0,c.jsxs)(s.View,{style:u&&mi.headerWide,children:[(0,c.jsxs)(s.View,{style:mi.titleRow,children:[(0,c.jsx)(s.Text,{style:[mi.title,u&&mi.titleWide,g&&mi.titleDesktop,{color:R(n),fontFamily:o,flex:1}],children:"Choose your game"}),i?.trim()?(0,c.jsx)(s.View,{style:mi.howToPlayWrap,children:(0,c.jsx)(Ge,{content:i,title:"How to Play",colors:{text:d.text,textMuted:d.textMuted,border:d.border,background:d.background,backgroundAlt:d.backgroundAlt,primary:d.primary,primaryText:d.primaryText},bodyFont:r,headingFont:o})}):null]}),(0,c.jsx)(pi,{onBack:e,hideActions:t,label:l?a(l):void 0})]})}var mi=s.StyleSheet.create({container:{flex:1},headerWide:{paddingLeft:8},titleRow:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:12},title:{fontSize:18,fontWeight:"700",lineHeight:22.5},titleWide:{fontSize:20,lineHeight:25},titleDesktop:{fontSize:24,lineHeight:30},howToPlayWrap:{flexShrink:0,marginTop:2},content:{flex:1},footer:{flexDirection:"row",alignItems:"center",paddingTop:16},secondaryBtn:{paddingHorizontal:20,paddingVertical:10,borderRadius:8},secondaryBtnText:{fontSize:14,fontWeight:"500"}});function bi({onBack:e,hideActions:t}={}){const{theme:n}=sr(),o=se(n),r=n.colors,{width:i}=(0,s.useWindowDimensions)(),l=i>=640;return(0,c.jsxs)(s.View,{style:l&&xi.headerWide,children:[(0,c.jsx)(s.Text,{style:[xi.sectionTitle,l&&xi.sectionTitleWide,{color:r.primary,fontFamily:o}],children:"Pick a category"}),(0,c.jsx)(pi,{onBack:e,hideActions:t})]})}function wi({onSelectCategory:e,onCancel:t,hideTitle:n,hideActions:o,renderCategoryIcon:r,getCategoryTagline:i}){const{theme:l,propositionsForCategoryPicker:d,loading:h,setSelectedCategory:u,setSelectedSport:g,clearSelectedGame:f,displayCategoryName:p}=sr(),y=l.colors,m=j(l),b=ae(l),{width:w}=(0,s.useWindowDimensions)(),x=w>=640,k=w>=400,[S,C]=a.default.useState(null),[B,z]=a.default.useState(0),F=k?B>0?(B-(x?12:10))/2:"48%":"100%";Bt(d);const v=zt(d);return h?(0,c.jsx)(s.View,{style:xi.container,children:(0,c.jsx)(mn,{colors:Y(l),bodyFont:b,variant:"category",categoryCount:v.length>0?v.length:2})}):(0,c.jsxs)(s.View,{style:xi.container,children:[!n&&(0,c.jsx)(s.View,{style:xi.titleWrap,children:(0,c.jsx)(bi,{onBack:t,hideActions:o})}),(0,c.jsx)(s.View,{style:xi.content,children:(0,c.jsx)(s.View,{style:[xi.grid,x&&xi.gridWide],onLayout:e=>z(e.nativeEvent.layout.width),children:v.map(t=>{const n=i?.(t)??function(e){return ht[e]??""}(t),o=S===t;return(0,c.jsxs)(s.TouchableOpacity,{onPress:()=>{u(t),g(null),f(),e?.(t)},...ze(()=>C(t),()=>C(e=>e===t?null:e)),style:[xi.card,x&&xi.cardWide,{width:F,backgroundColor:m,borderColor:o?y.primary:y.border},o&&xi.cardHovered],activeOpacity:.85,children:[(0,c.jsx)(Ze,{label:p(t),category:t,icon:r?.(t),theme:l}),n?(0,c.jsx)(s.Text,{style:[xi.tagline,x&&xi.taglineWide,{color:y.primary,fontFamily:b}],children:n}):null]},t)})})})]})}var xi=s.StyleSheet.create({container:{flex:1},centered:{flex:1,flexDirection:"row",justifyContent:"center",alignItems:"center",padding:32},titleWrap:{marginBottom:8},headerWide:{paddingLeft:8},sectionTitle:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.4,marginBottom:12},sectionTitleWide:{fontSize:12,letterSpacing:2.16,marginBottom:16},content:{flex:1},grid:{flexDirection:"row",flexWrap:"wrap",gap:10},gridWide:{gap:12},card:{alignItems:"flex-start",justifyContent:"center",gap:8,minHeight:112,borderRadius:16,borderWidth:1,padding:14},cardWide:{gap:12,minHeight:140,padding:20},cardHovered:{shadowColor:"#000",shadowOpacity:.1,shadowRadius:6,shadowOffset:{width:0,height:4},elevation:3},tagline:{fontSize:10,fontWeight:"500",textTransform:"uppercase",letterSpacing:.8},taglineWide:{fontSize:12,letterSpacing:1.2},footer:{flexDirection:"row",alignItems:"center",paddingTop:16},secondaryBtn:{paddingHorizontal:20,paddingVertical:10,borderRadius:8},secondaryBtnText:{fontSize:14,fontWeight:"500"}});function ki(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 Si({name:e,renderTeamLogo:t,muted:n,headingFont:o,ink:r,wide:i}){if(!e)return(0,c.jsx)(s.Text,{style:[Bi.teamName,{color:n,fontFamily:o}],children:"TBC"});const l=t?.(e);return(0,c.jsxs)(s.View,{style:Bi.teamMark,children:[null!=l?(0,c.jsx)(s.View,{style:Bi.teamLogo,children:l}):null,(0,c.jsx)(s.Text,{style:[Bi.teamName,i&&Bi.teamNameWide,{color:r,fontFamily:o}],children:e})]})}function Ci({onSelectEvent:e}){const{theme:t,loading:n,sameGameMultiEvents:o,selectSameGameMultiEvent:r,renderTeamLogo:i,displaySportName:l}=sr(),d=t.colors,h=ae(t),u=se(t),g=j(t),f=N(t),{width:p}=(0,s.useWindowDimensions)(),y=p>=640,[m,b]=a.default.useState(null),[w,x]=a.default.useState(null);return n?(0,c.jsx)(s.View,{style:Bi.container,children:(0,c.jsx)(mn,{colors:Y(t),bodyFont:h,variant:"event"})}):(0,c.jsxs)(s.View,{style:Bi.container,accessibilityLabel:"Available fixtures",children:[(0,c.jsx)(s.Text,{style:[Bi.intro,{color:d.textMuted,fontFamily:h}],children:"All picks in your multi must come from one game."}),0===o.length?(0,c.jsx)(s.View,{accessibilityRole:"text",accessibilityLiveRegion:"polite",style:[Bi.emptyState,{borderColor:d.border,backgroundColor:g}],children:(0,c.jsx)(s.Text,{style:[Bi.emptyText,{color:d.textMuted,fontFamily:h}],children:"No fixtures with available propositions."})}):(0,c.jsx)(s.View,{style:[Bi.list,y&&Bi.listWide],children:o.map(t=>{const n=m===t.id,o=w===t.id;return(0,c.jsxs)(s.TouchableOpacity,{accessibilityRole:"button",accessibilityLabel:`Select ${bn(t)}`,onPress:()=>{r(t.id),e?.(t.id)},activeOpacity:.85,...ze(()=>b(t.id),()=>b(e=>e===t.id?null:e)),onFocus:()=>x(t.id),onBlur:()=>x(e=>e===t.id?null:e),style:[Bi.card,y&&Bi.cardWide,{borderColor:n||o?d.primary:d.border,backgroundColor:g},n&&Bi.cardHovered],children:[(0,c.jsxs)(s.View,{style:Bi.cardMain,children:[(0,c.jsxs)(s.View,{style:[Bi.matchup,y&&Bi.matchupWide,{backgroundColor:f}],children:[(0,c.jsx)(Si,{name:t.homeTeam,renderTeamLogo:i,muted:d.textMuted,headingFont:u,ink:d.text,wide:y}),(0,c.jsx)(s.Text,{style:[Bi.vs,{color:d.textMuted,fontFamily:u}],children:"vs"}),(0,c.jsx)(Si,{name:t.awayTeam,renderTeamLogo:i,muted:d.textMuted,headingFont:u,ink:d.text,wide:y})]}),(0,c.jsxs)(s.Text,{style:[Bi.meta,y&&Bi.metaWide,{color:d.textMuted,fontFamily:h}],children:[ki(t.commenceTime)," · ",t.propositionCount," proposition",1===t.propositionCount?"":"s",t.league||t.sport?` · ${t.league?.toUpperCase()??l(t.sport)}`:""]})]}),(0,c.jsx)(s.View,{style:{flexShrink:0,transform:[{translateX:n?2:0}]},children:(0,c.jsx)(Ue,{size:22,color:d.textMuted})})]},t.id)})})]})}var Bi=s.StyleSheet.create({container:{flex:1},centered:{flex:1,flexDirection:"row",justifyContent:"center",alignItems:"center",padding:32},intro:{fontSize:14,lineHeight:22.75,marginBottom:16},emptyState:{borderWidth:1,borderRadius:16,padding:24,alignItems:"center"},emptyText:{fontSize:14,textAlign:"center"},list:{gap:10},listWide:{gap:12},cardHovered:{shadowColor:"#000",shadowOpacity:.1,shadowRadius:6,shadowOffset:{width:0,height:4},elevation:3},card:{minHeight:64,width:"100%",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderWidth:1,borderRadius:16,paddingHorizontal:14,paddingVertical:14},cardWide:{paddingHorizontal:20,paddingVertical:16},cardMain:{flex:1,minWidth:0},matchup:{flexDirection:"column",alignItems:"flex-start",gap:4,borderRadius:12,paddingHorizontal:12,paddingVertical:10},matchupWide:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6},teamMark:{flexDirection:"row",alignItems:"center",gap:6,minWidth:0,maxWidth:"100%"},teamLogo:{flexShrink:0},teamName:{fontSize:14,fontWeight:"600",flexShrink:1},teamNameWide:{fontSize:16},vs:{fontSize:12,fontWeight:"400"},meta:{marginTop:8,fontSize:11,fontWeight:"500"},metaWide:{fontSize:12}});function zi({counts:e,onPick:t,onDoubleAction:n,colors:o,align:r="right",direction:i="down",menuShadow:l="0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}){const[d,u]=(0,a.useState)(!1),[g,f]=(0,a.useState)(!1),[p,y]=(0,a.useState)(null),m=(0,a.useRef)(0),b=(0,a.useRef)(null),w=(0,a.useRef)(null),[x,k]=(0,a.useState)(null),[S,C]=(0,a.useState)(null),B="web"===s.Platform.OS,z=36+36*e.length+12,F="up"===i||g?"up":"down";(0,a.useLayoutEffect)(()=>{if(!d||!B)return;const e=b.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.scrollX||window.pageXOffset||0,o=window.scrollY||window.pageYOffset||0;k({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;f(r<z&&i>r)},[d,B,z]),(0,a.useEffect)(()=>{if(!d)return y(null),void(B||f(!1));if(B){const e=e=>{const t=b.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||w.current&&w.current.contains(n)||u(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}const e=b.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=s.Dimensions.get("window").height-(t+o);f(r<z&&t>r),C({x:e,y:t,width:n,height:o})})},[d,B,z]);const v=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.View,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:o.border},children:(0,c.jsx)(s.Text,{style:{fontSize:10,fontWeight:"700",color:o.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase"},children:"How many picks?"})}),e.map(e=>(0,c.jsxs)(s.TouchableOpacity,{onPress:()=>{t(e),u(!1)},accessibilityRole:"menuitem",...ze(()=>y(e),()=>y(t=>t===e?null:t)),style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:1,borderTopColor:o.border,backgroundColor:p===e?o.backgroundAlt:"transparent"},children:[(0,c.jsxs)(s.Text,{style:{fontSize:14,fontWeight:"600",color:o.text},children:[e," picks"]}),(0,c.jsx)(s.View,{style:{backgroundColor:o.backgroundAlt,paddingHorizontal:6,paddingVertical:2,borderRadius:4},children:(0,c.jsx)(s.Text,{style:{color:o.text,fontSize:10,fontWeight:"700",letterSpacing:.5},children:"QP"})})]},e))]});return(0,c.jsxs)(s.View,{ref:b,style:{position:"relative",flexShrink:0},children:[(0,c.jsx)(cr,{onPress:()=>{if(!n)return void u(e=>!e);const e=Date.now();if(e-m.current<280)return m.current=0,u(!1),void n();m.current=e,setTimeout(()=>{m.current&&Date.now()-m.current>=270&&(m.current=0,u(e=>!e))},290)}}),d&&B&&x&&"undefined"!=typeof document&&(0,h.createPortal)((0,c.jsx)("div",{ref:w,role:"menu",style:{position:"absolute",top:"up"===F?void 0:x.bottom+6,..."up"===F?{top:x.top-6,transform:"translateY(-100%)"}:null,left:"left"===r?x.left:void 0,..."right"===r?{left:x.right,transform:"up"===F?"translate(-100%, -100%)":"translateX(-100%)"}:null,zIndex:20,backgroundColor:o.background,border:`1px solid ${o.border}`,borderRadius:8,minWidth:160,boxShadow:l,overflow:"hidden"},children:v}),document.body),(0,c.jsx)(on,{visible:d&&!B,anchor:S,onClose:()=>u(!1),flipUp:"up"===F,align:r,children:(0,c.jsx)(s.View,{accessibilityRole:"menu",style:{elevation:8,backgroundColor:o.background,borderRadius:8,borderWidth:1,borderColor:o.border,minWidth:160,shadowColor:"#000",shadowOffset:{width:0,height:6},shadowOpacity:.18,shadowRadius:12,overflow:"hidden"},children:v})})]})}var Fi="Your stake";function vi(e,t){const n=e?.top_payouts?.find(e=>Number(e.proposition_count)===t);if(!n)return 0;const o=n.bet_amount&&n.bet_amount>0?n.bet_amount:20,r=Number(n.net_payout);return Number.isFinite(r)?r/o*20:0}function Wi({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",title:r,sportBaseKey:i}){const l=ut(e,i,t),a=function(e){return e.length<=3?92:4===e.length?72:56}(l),s=r??`${l} button`;return(0,c.jsxs)(d.default,{viewBox:"0 0 360 360",width:n,height:n,accessibilityLabel:s,children:[(0,c.jsx)(d.Rect,{x:2,y:2,width:356,height:356,rx:78,fill:"#DDD9D2",stroke:ct,strokeWidth:4}),(0,c.jsx)(d.Rect,{x:50,y:10,width:260,height:260,rx:52,fill:ct,opacity:.3}),(0,c.jsx)(d.Rect,{x:50,y:35,width:260,height:260,rx:52,fill:ct,opacity:.55}),(0,c.jsx)(d.Rect,{x:50,y:60,width:260,height:260,rx:52,fill:ct}),(0,c.jsx)(d.Text,{x:180,y:220,fontFamily:"Manrope, Poppins, sans-serif",fontSize:a,letterSpacing:-3,textAnchor:"middle",fontWeight:"800",fill:"#DFFF1A",children:l}),o&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(d.Text,{x:180,y:345,fontFamily:"Manrope, Poppins, sans-serif",fontSize:24,letterSpacing:-.5,textAnchor:"middle",fontWeight:"700",fill:ct,children:o}),(0,c.jsx)(d.Text,{x:262,y:333,fontFamily:"Manrope, Poppins, sans-serif",fontSize:10,fontWeight:"600",fill:ct,children:"TM"})]})]})}var Ti="yesno:favourite-sport",Ai=null;function Ri(){try{return globalThis.localStorage??null}catch{return null}}function Li({label:e="Pick your sport",sublabel:t,renderSportLogo:n,style:o}){const{theme:r,sportOptions:i,sportSummaries:l,selectedSport:d,setSelectedSport:h,sportBaseKey:u,displaySportName:g,selections:f,toggleSelection:p,enableSportFavourites:y}=sr(),m=r.colors,b=j(r),w=ae(r),x=se(r),k=R(r),S=H(r),[C,z]=a.default.useState(null);if(a.default.useEffect(()=>{z(y?function(){try{const e=Ri()?.getItem(Ti);if(e)return e}catch{}return Ai}():null)},[y]),i.length<2)return null;const F=C?[...i].sort((e,t)=>Number(t.key===C)-Number(e.key===C)):i,v=void 0===t?y?"Tap to select. Star your favourite to pin it up front.":"Tap to select.":t;return(0,c.jsxs)(s.View,{style:[Mi.wrap,o],children:[e?(0,c.jsx)(s.Text,{style:[Mi.label,{color:k,fontFamily:x}],children:e}):null,v?(0,c.jsx)(s.Text,{style:[Mi.hint,{color:m.textMuted,fontFamily:w}],children:v}):null,(0,c.jsx)(Je,{theme:r,contentContainerStyle:Mi.shelf,children:F.map(({key:e,count:t})=>{const o=l.find(t=>t.key===e),i=o?.games_today??0,a=d===e,F=C===e,v=o?.label??g(e);return(0,c.jsxs)(s.View,{style:Mi.slot,children:[(0,c.jsxs)(s.TouchableOpacity,{accessibilityRole:"button",accessibilityState:{selected:a},activeOpacity:.85,onPress:()=>(e=>{if(e!==d){for(const e of Object.keys(f)){const t=Number(e);p(t,f[t])}h(e)}})(e),style:[Mi.card,Di(r),{backgroundColor:b,borderColor:a?m.primary:m.border,borderWidth:a?2:1,paddingTop:(y?26:12)-(a?1:0),paddingBottom:a?7:8}],children:[(0,c.jsxs)(s.View,{style:Mi.tile,children:[n?n(e):(0,c.jsx)(Wi,{gameKey:e,size:40,footer:null,sportBaseKey:u,title:`${v} button`}),i>0&&(0,c.jsx)(s.View,{style:[Mi.liveDot,{backgroundColor:m.success,borderColor:b}]})]}),(0,c.jsx)(s.Text,{numberOfLines:2,style:[Mi.name,{color:a?k:m.text,fontFamily:x}],children:v}),(0,c.jsx)(s.Text,{numberOfLines:1,style:[Mi.caption,{color:a?m.primary:B(m.textMuted,.9),fontFamily:w}],children:gt(i,t).toUpperCase()})]}),y&&(0,c.jsx)(s.TouchableOpacity,{accessibilityRole:"button",accessibilityState:{selected:F},accessibilityLabel:F?`Unpin ${v}`:`Pin ${v} to the front`,activeOpacity:.7,onPress:()=>(e=>{const t=C===e?null:e;z(t),function(e){Ai=e;try{e?Ri()?.setItem(Ti,e):Ri()?.removeItem(Ti)}catch{}}(t)})(e),style:Mi.starHit,children:(0,c.jsx)(s.View,{style:[Mi.star,{backgroundColor:F?B(S,.22):b,borderColor:F?S:m.border}],children:(0,c.jsx)(Qe,{size:12,filled:F,color:F?k:B(m.textMuted,.6)})})})]},e)})})]})}function Di(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}var Mi=s.StyleSheet.create({wrap:{minWidth:0},label:{paddingLeft:2,fontSize:14,fontWeight:"800",lineHeight:18,letterSpacing:-.2},hint:{marginBottom:6,paddingLeft:2,fontSize:12,lineHeight:16},shelf:{alignItems:"stretch",gap:10,paddingHorizontal:2,paddingTop:4,paddingBottom:10},slot:{position:"relative",width:88},card:{width:88,minHeight:44,borderRadius:16,paddingHorizontal:6,alignItems:"center",gap:6},tile:{position:"relative"},liveDot:{position:"absolute",top:-2,right:-2,width:10,height:10,borderRadius:5,borderWidth:2},name:{fontSize:11,fontWeight:"800",lineHeight:13,letterSpacing:-.2,textAlign:"center"},caption:{fontSize:9,fontWeight:"700",letterSpacing:.9,textAlign:"center"},starHit:{position:"absolute",left:0,top:0,width:32,height:32,alignItems:"center",justifyContent:"center",zIndex:1},star:{width:20,height:20,borderRadius:10,borderWidth:1,alignItems:"center",justifyContent:"center"}});function Pi(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 Hi({iconUrl:e,size:t=56}){const{theme:n}=sr(),o=n.colors,r=n.brand?.chip??o.primary,i=n.brand?.icon??o.primaryText,l=O(r,H(n),i);return(0,c.jsx)(s.View,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:r,borderWidth:1,borderColor:Pi(i,.16),alignItems:"center",justifyContent:"center",shadowColor:r,shadowOpacity:.45,shadowRadius:9,shadowOffset:{width:0,height:4},elevation:2},children:(0,c.jsx)(en,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:i,accentColor:l})})}function Oi({eyebrow:e,iconUrl:t,gameName:n,tagline:o,style:r}){const{theme:i,screenSize:l}=sr(),a=i.colors,d=se(i),h="mobile"===l,{width:u}=(0,s.useWindowDimensions)(),g=u>=640;return(0,c.jsxs)(s.View,{style:[Ii.block,g&&Ii.blockWide,r],children:[e&&g?(0,c.jsx)(s.Text,{style:[Ii.eyebrow,{color:a.primary,fontFamily:d}],children:e.toUpperCase()}):null,(0,c.jsx)(ii,{iconUrl:t,gameName:n,height:h?20:32,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:i.brand?.accent,compact:h}),o?(0,c.jsx)(s.Text,{style:[Ii.tagline,g&&Ii.taglineWide,{color:a.textMuted}],children:o}):null]})}var Ii=s.StyleSheet.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 Ei({ariaLabel:e,children:t}){const{width:n}=(0,s.useWindowDimensions)();return n>=640?(0,c.jsx)(s.View,{accessibilityRole:"radiogroup",accessibilityLabel:e,style:Ni.grid,children:t}):(0,c.jsx)(s.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,accessibilityRole:"radiogroup",accessibilityLabel:e,contentContainerStyle:Ni.rail,children:t})}function ji(e,t="21%"){return e?{flexGrow:1,flexBasis:t,minWidth:0}:{width:124,flexGrow:0,flexShrink:0}}var Ni=s.StyleSheet.create({grid:{flexDirection:"row",flexWrap:"wrap",gap:8},rail:{flexDirection:"row",gap:8,paddingBottom:4}});function Gi({legs:e,prizeBall:t=!0}){const{theme:n}=sr(),o=n.colors.primary,r=H(n);return(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center"},children:[Array.from({length:e}).map((e,t)=>(0,c.jsx)(s.View,{style:{width:5,height:5,borderRadius:1.5,backgroundColor:o,opacity:.85,marginRight:3}},t)),t?(0,c.jsx)(s.View,{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}}):null]})}function Yi({tile:e,label:t,stat:n,detail:o,onSelect:r,children:i}){const{theme:l}=sr(),h=l.colors,u=se(l),g=R(l),f=h.primary,p=h.selectionCard??h.backgroundAlt,{width:y}=(0,s.useWindowDimensions)(),m=y>=640,[b,w]=(0,a.useState)(!1);return(0,c.jsxs)(s.View,{...ze(()=>w(!0),()=>w(!1)),style:[Vi.card,m&&Vi.cardWide,{backgroundColor:p,borderColor:b?f:h.border,shadowColor:b?f:"#000",shadowOpacity:b?.28:.08,shadowRadius:b?14:10,shadowOffset:{width:0,height:b?12:8},elevation:b?4:1,transform:[{translateY:b?-2:0}]}],children:[(0,c.jsxs)(s.TouchableOpacity,{onPress:r,activeOpacity:.85,style:[Vi.cardMain,m&&Vi.cardMainWide],children:[e,(0,c.jsxs)(s.View,{style:[Vi.cardText,m&&Vi.cardTextWide],children:[(0,c.jsxs)(s.View,{style:Vi.titleRow,children:[(0,c.jsx)(s.Text,{style:[Vi.cardTitle,m&&Vi.cardTitleWide,{color:g,fontFamily:u}],children:t}),n?(0,c.jsx)(s.View,{style:[Vi.statChip,{backgroundColor:Pi(f,.12)}],children:(0,c.jsx)(s.Text,{style:[Vi.statChipText,{color:f}],children:n.toUpperCase()})}):null]}),o&&o.length>0?(0,c.jsx)(s.View,{style:Vi.detailBlock,children:(m?o:o.slice(0,1)).map(e=>(0,c.jsx)(s.Text,{style:[Vi.detailLine,m&&Vi.detailLineWide,{color:h.textMuted}],children:e},e))}):null]}),(0,c.jsx)(s.View,{style:[Vi.chevron,{transform:[{translateX:b?2:0}]}],children:(0,c.jsx)(d.default,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:(0,c.jsx)(d.Path,{d:"m9 6 6 6-6 6",stroke:f,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]}),i?(0,c.jsx)(s.View,{style:[Vi.childrenWrap,{borderTopColor:Pi(g,.08)}],children:i}):null]})}var Vi=s.StyleSheet.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 Ui({style:e}){return(0,c.jsx)(Li,{style:[{marginBottom:16},e]})}function Ki(e){const t=_o(e);return"selections"===t||"rule_setup"===t&&tr(e)}function qi({onChange:e}){const{theme:t,selectedGame:n,selectedSport:o,sportSummaries:r,displaySportName:i,headingFont:l,games:d,selectGame:h}=sr(),u=t.colors,[g,f]=a.default.useState(!1);if(!n)return null;const p=d.filter(Ki),y=o?r.find(e=>e.key===o)?.label??i(o):null;return(0,c.jsxs)(s.View,{style:Zi.wrap,children:[(0,c.jsxs)(Fe,{theme:t,level:"raised",padding:"sm",radius:"lg",style:Zi.card,children:[(0,c.jsx)(Hi,{iconUrl:fe(n),size:44}),(0,c.jsxs)(s.View,{style:Zi.info,children:[(0,c.jsx)(s.Text,{numberOfLines:1,style:[Zi.name,{color:R(t),fontFamily:l}],children:n.game_name}),y?(0,c.jsx)(s.Text,{numberOfLines:1,style:[Zi.sport,{color:u.textMuted}],children:y}):null]}),(0,c.jsx)(ve,{theme:t,variant:"ghost",size:"sm",radius:"pill",onPress:()=>p.length>1?f(e=>!e):e(),children:"Change"})]}),g&&p.length>1?(0,c.jsx)(s.View,{accessibilityLabel:"Choose a game",style:[Zi.menu,{backgroundColor:u.background,borderColor:u.border}],children:p.map(e=>{const t=e.id===n.id;return(0,c.jsxs)(s.TouchableOpacity,{accessibilityRole:"button",accessibilityState:{selected:t},onPress:()=>(e=>{f(!1),e.id!==n.id&&h(e)})(e),style:Zi.menuRow,children:[(0,c.jsx)(s.Text,{numberOfLines:1,style:[Zi.menuText,{color:t?u.primary:u.text,fontWeight:t?"700":"500"}],children:e.game_name}),t?(0,c.jsx)(s.Text,{style:{color:u.primary},children:"✓"}):null]},e.id)})}):null]})}var Zi=s.StyleSheet.create({wrap:{position:"relative",zIndex:1},card:{marginBottom:16,flexDirection:"row",alignItems:"center",gap:12},info:{flex:1,minWidth:0},name:{fontSize:15,fontWeight:"700",lineHeight:18},sport:{fontSize:13,lineHeight:16},menu:{position:"absolute",right:0,top:52,zIndex:1,width:240,maxHeight:288,borderRadius:12,borderWidth:1,paddingVertical:4},menuRow:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:12,paddingVertical:8},menuText:{flex:1,minWidth:0,fontSize:13}});function Xi({onBack:e,onNext:t,hideActions:n}={}){const{theme:o,headingFont:r,bodyFont:i,selectedGame:l,propositions:a,selections:d,toggleSelection:h,selectedPropositionCount:u,disableQuickPick:g,answeredCount:f,goToConfirmation:p,selectedEventId:y,sameGameMultiEvents:m,selectSameGameMultiEvent:b,selectedRule:w,howToPlayMarkdown:x,maxPayouts:k}=sr(),S=o.colors,C=Ce(l),B=lo(l??{},l?k?.[l.id]:void 0),{width:z}=(0,s.useWindowDimensions)(),F=z>=640,v=xn(l)&&!y,W=m.find(e=>e.id===y),T=l?Wt(l,u,w):{min:0,max:0},L=T.min,D=xn(l)&&y?Math.min(T.max,a.length):T.max,M=L>0&&L===D,P=!(l?.allowed_propositions&&l.allowed_propositions.length>0)&&L>0&&D>L,H=M?D:D||a.length,O=e=>{const t=Math.max(0,Math.min(e??H,a.length));for(const i of Object.keys(d)){const e=Number(i);h(e,d[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)h(i.id,"yes");for(const i of r)h(i.id,"no")},I=!g&&a.length>0,E=P?Array.from({length:D-L+1},(e,t)=>L+t).filter(e=>e<=a.length):[],j=f>0?f:L||H;return(0,c.jsxs)(s.View,{style:[el.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[(0,c.jsxs)(s.View,{children:[(0,c.jsx)(s.Text,{style:[el.title,{fontSize:F?24:20,color:R(o),fontFamily:r}],children:v?"Choose a Game":"Select Propositions"}),l&&(0,c.jsx)(pi,{onBack:y?()=>b(null):e,hideActions:n,label:W?bn(W):l.game_name,children:C||x?.trim()?(0,c.jsx)(Ge,{variant:"icon",content:x,panel:C,theme:o,title:`${l.game_name} — How to Play`,extra:(0,c.jsx)(ao,{tiers:B.hasGenericDividends?B.tiers:[],modes:B.modes,pydDividends:B.pydDividends,minBet:B.minBet,maxBet:B.maxBet,colors:S,bodyFont:i,headingFont:r}),colors:{text:S.text,textMuted:S.textMuted,border:S.border,background:S.background,backgroundAlt:S.backgroundAlt,primary:S.primary,primaryText:S.primaryText},bodyFont:i,headingFont:r}):null})]}),I&&(E.length>1?(0,c.jsx)(zi,{counts:E,onPick:e=>{O(e),p(),t?.()},onDoubleAction:()=>{O(j),p(),t?.()},colors:S,menuShadow:A(o)}):(0,c.jsx)(s.View,{style:{flexShrink:0},children:(0,c.jsx)(cr,{onPress:()=>{O(),p(),t?.()}})}))]})}function Qi({number:e,color:t,size:n=34,label:o,onSelect:r}){const i=(e,o)=>({position:"absolute",left:e,top:.4*e,width:n,height:n,borderRadius:.26*n,backgroundColor:t,opacity:o});return(0,c.jsx)(Le,{children:(0,c.jsxs)(s.TouchableOpacity,{accessibilityRole:"button",accessibilityLabel:o,onPress:r,activeOpacity:.8,style:{position:"relative",width:n+.2*n,height:1.3*n},children:[(0,c.jsx)(s.View,{style:i(.44*n,.3)}),(0,c.jsx)(s.View,{style:i(.22*n,.55)}),(0,c.jsx)(s.View,{style:{position:"absolute",left:0,top:0,width:n,height:n,borderRadius:.26*n,backgroundColor:t,alignItems:"center",justifyContent:"center"},children:(0,c.jsx)(s.Text,{style:{color:"#fff",fontSize:n*(e>9?.42:.5),fontWeight:"800"},children:String(e)})})]})})}function Ji({onNext:e,onBack:t,hideButtons:n=!1}){const{theme:o,headingFont:r,selectedGame:i,selectedPropositionCount:l,selectedEventId:d,propositions:h,goToConfirmation:u,selectedRule:g,maxPayouts:f,betAmount:p,setBetAmount:y,selections:m,gamePrice:b,toggleSelection:w}=sr(),x=o.colors,k=i?Wt(i,l,g):{min:0,max:0},S=k.min,C=xn(i)&&d?Math.min(k.max,h.length):k.max,B=a.default.useRef(!1);a.default.useEffect(()=>{B.current=!1},[i?.id]),a.default.useEffect(()=>{p<=0&&!B.current&&y(Math.max(20,b))},[p,b,y]);const z=a.default.useRef([]);z.current=function(e,t){const n=Object.keys(t).map(Number),o=new Set(n),r=e.filter(e=>o.has(e)),i=n.filter(e=>!r.includes(e)).sort((e,t)=>e-t);return 0===i.length&&r.length===e.length?e:[...r,...i]}(z.current,m);const F=function({selections:e,order:t,minReq:n,maxReq:o,stake:r,payout20:i=0}){const l=[];for(const h of t){const t=e[h];t&&l.push({id:h,number:l.length+1,side:t})}const a=l.length,s=a>=n,c=Math.max(0,n-a),d=s?i*(r/20):0;return{legs:l,count:a,dividend:d,dividendText:mt(d),ctaLabel:s?`Continue with ${a} ›`:0===a?`Select at least ${n}`:`Add ${c} more to continue`,ctaDisabled:!s,atMax:o>0&&a>=o}}({selections:m,order:z.current,minReq:S,maxReq:C,stake:p,payout20:i?vi(f?.[i.id],z.current.length):0}),v=M(o),W=P(o),T=x.primaryText,A=O(x.primary,H(o),x.primaryText),R={fontSize:10,fontWeight:"700",letterSpacing:.8,textTransform:"uppercase"},L=or(i);return(0,c.jsxs)(s.View,{children:[(0,c.jsx)(s.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:{minHeight:44,marginBottom:6},contentContainerStyle:{alignItems:"center"},children:0===F.legs.length?(0,c.jsx)(s.Text,{style:{fontSize:13,color:x.textMuted},children:"Tap Yes or No to start building your multi."}):F.legs.map(e=>(0,c.jsx)(Qi,{number:e.number,color:"yes"===e.side?v:W,label:`Remove leg ${e.number}, answered ${e.side}`,onSelect:()=>w(e.id,e.side)},e.id))}),(0,c.jsxs)(s.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:10,marginBottom:8},children:[(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",gap:8},children:[(0,c.jsx)(s.Text,{style:[R,{color:x.textMuted}],children:Fi}),L?(0,c.jsxs)(s.View,{accessibilityLabel:`${Fi}. ${rr(i)}`,style:{flexDirection:"row",alignItems:"center",gap:8,borderRadius:10,paddingHorizontal:12,paddingVertical:8,borderWidth:1,borderColor:x.border,backgroundColor:x.backgroundAlt},children:[(0,c.jsx)(s.Text,{style:{fontSize:15,fontWeight:"800",color:x.text},children:mt(p)}),(0,c.jsx)(s.Text,{style:{fontSize:10,color:x.textMuted},children:"locked"})]}):(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",width:108,borderRadius:10,borderWidth:1,borderColor:x.border,backgroundColor:x.background,overflow:"hidden"},children:[(0,c.jsx)(s.Text,{style:{paddingLeft:11,fontSize:16,fontWeight:"800",color:x.text},children:"$"}),(0,c.jsx)(s.TextInput,{keyboardType:"decimal-pad",accessibilityLabel:Fi,value:p>0?String(p):"",onChangeText:e=>{B.current=!0,y(Math.max(0,parseFloat(e)||0))},style:{flex:1,minWidth:0,paddingVertical:8,paddingLeft:3,paddingRight:8,fontSize:15,fontWeight:"800",color:x.text,fontFamily:r}})]})]}),(0,c.jsxs)(s.View,{style:{flexGrow:1,flexBasis:150,minWidth:0,flexDirection:"row",alignItems:"baseline",justifyContent:"flex-end",gap:8,borderRadius:10,paddingHorizontal:12,paddingVertical:6,backgroundColor:x.primary},children:[(0,c.jsx)(s.Text,{style:[R,{color:T,opacity:.7}],children:"Potential dividend"}),(0,c.jsx)(s.Text,{style:{fontSize:20,fontWeight:"800",color:A},children:F.dividendText})]})]}),!n&&(0,c.jsx)(ve,{theme:o,block:!0,size:"md",radius:"lg",disabled:F.ctaDisabled,onPress:()=>{u(),e?.()},children:F.ctaLabel})]})}function $i({view:e,onChange:t}){const{theme:n}=sr(),o=n.colors,r=(n,r)=>{const i=e===n;return(0,c.jsx)(s.TouchableOpacity,{onPress:()=>t(n),accessibilityRole:"button",accessibilityState:{selected:i},style:[_i.option,{backgroundColor:i?o.primary:"transparent"}],children:(0,c.jsx)(s.Text,{style:[_i.optionText,{color:i?o.primaryText:o.textMuted}],children:r})},n)};return(0,c.jsxs)(s.View,{style:[_i.track,{backgroundColor:o.backgroundAlt,borderColor:o.border}],children:[r("list","List"),r("swipe","Swipe")]})}var _i=s.StyleSheet.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"}}),el=s.StyleSheet.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function tl({tiers:e,selectedCount:t,onSelect:n,colors:o,bodyFont:r,extraBetAmount:i,buttonLabel:l,columnLabel:d="Legs",buildYourOwn:h,quickPickOnly:u,onQuickPick:g,collapsible:f,expanded:p,onExpandedChange:y,summaryTiers:m}){const[b,w]=(0,a.useState)(!1),x=p??b,k=null!=i&&20!==i,S=k?`$${Math.round(i)} returns`:"$20 returns",C=e.some(e=>e.payout20>0),B=!!f&&!x,z=C&&!B,F=(m??e).reduce((e,t)=>t.payout20>e?t.payout20:e,0),v=k&&F>0?F*(i/20):F,W=e.length>0?82*e.length+8*Math.max(0,e.length-1):82,T=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(s.View,{style:{flexDirection:"column",gap:8,width:70,flexShrink:0},children:[(0,c.jsx)(s.View,{style:{paddingVertical:6,justifyContent:"center"},children:(0,c.jsx)(s.Text,{style:[nl.labelText,{color:o.textMuted,fontFamily:r}],children:u?"Quick Pick":d})}),z&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.View,{style:{paddingVertical:4,justifyContent:"center"},children:(0,c.jsx)(s.Text,{style:[nl.labelText,{color:o.textMuted,fontFamily:r}],children:"Dividend"})}),(0,c.jsx)(s.View,{style:{paddingVertical:4,justifyContent:"center"},children:(0,c.jsx)(s.Text,{style:[nl.labelText,{color:o.textMuted,fontFamily:r}],children:S})})]})]}),u?(0,c.jsxs)(s.View,{style:{gap:8,alignSelf:"flex-start",width:W},children:[(0,c.jsx)(zi,{counts:(m??e).map(e=>e.count),onPick:e=>g?g(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&&!B&&(0,c.jsx)(s.View,{style:{flexDirection:"row",gap:8},children:e.map(({count:e,payout20:t})=>{const n=k&&t>0?t*(i/20):null;return(0,c.jsxs)(s.View,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[(0,c.jsx)(s.View,{style:[nl.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:(0,c.jsxs)(s.Text,{style:[nl.tableCellText,{color:o.success}],children:[e,"/",e]})}),(0,c.jsx)(s.View,{style:[nl.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:(0,c.jsx)(s.Text,{style:[nl.tableCellText,{color:o.primary}],children:t>0?mt(n??t):"—"})})]},String(e))})})]}):h?(0,c.jsxs)(s.View,{style:{gap:8,alignSelf:"flex-start",width:W},children:[(0,c.jsx)(s.TouchableOpacity,{onPress:()=>n(e[0]?.count??0),style:[nl.optionButton,{paddingHorizontal:0,alignSelf:"stretch",alignItems:"center",borderColor:o.buttonPrimary??o.primary,backgroundColor:o.buttonPrimary??o.primary}],children:(0,c.jsx)(s.Text,{style:[nl.optionButtonText,{color:o.buttonPrimaryText??"#ffffff",fontFamily:r}],children:"Make Your Selections"})}),C&&!B&&(0,c.jsx)(s.View,{style:{flexDirection:"row",gap:8},children:e.map(({count:e,payout20:t})=>{const n=t>0?mt(k?t*(i/20):t):"—";return(0,c.jsxs)(s.View,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[(0,c.jsx)(s.View,{style:[nl.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:(0,c.jsxs)(s.Text,{style:[nl.tableCellText,{color:o.success}],children:[e,"/",e]})}),(0,c.jsx)(s.View,{style:[nl.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:(0,c.jsx)(s.Text,{style:[nl.tableCellText,{color:o.primary}],children:n})})]},String(e))})})]}):e.map(({count:e,payout20:a})=>{const d=t===e,h=k&&a>0?a*(i/20):null;return(0,c.jsxs)(s.View,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[(0,c.jsx)(s.TouchableOpacity,{onPress:()=>n(e),accessibilityState:{selected:d},style:[nl.optionButton,{alignSelf:"stretch",alignItems:"center",borderColor:d?o.buttonPrimary??o.primary:o.border??o.primary,backgroundColor:d?o.buttonPrimary??o.primary:o.buttonSecondary??o.background}],children:(0,c.jsx)(s.Text,{style:[nl.optionButtonText,{color:d?o.buttonPrimaryText??"#ffffff":o.buttonSecondaryText??o.text,fontFamily:r}],numberOfLines:1,children:l?l(e):`Multi ${e}`})}),!B&&a>0&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.View,{style:[nl.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:(0,c.jsxs)(s.Text,{style:[nl.tableCellText,{color:o.success}],children:[e,"/",e]})}),k?null!=h&&(0,c.jsx)(s.View,{style:[nl.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:(0,c.jsx)(s.Text,{style:[nl.tableCellText,{color:o.primary}],children:mt(h)})}):(0,c.jsx)(s.View,{style:[nl.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:(0,c.jsx)(s.Text,{style:[nl.tableCellText,{color:o.primary}],children:mt(a)})})]})]},String(e))})]});return(0,c.jsxs)(s.View,{style:{flexDirection:"column",gap:8,alignSelf:"stretch"},children:[u?(0,c.jsx)(s.View,{style:{flexDirection:"row",gap:8,alignItems:"flex-start",paddingBottom:6},children:T}):(0,c.jsx)(s.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:{flexDirection:"row",gap:8,alignItems:"flex-start",paddingBottom:6},children:T}),f&&(C?(0,c.jsxs)(s.View,{style:{alignSelf:"flex-start",flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4,maxWidth:"100%"},children:[(0,c.jsxs)(s.Text,{style:{fontSize:12,fontWeight:"600",color:o.text,fontFamily:r},children:["Win up to ",(0,c.jsx)(s.Text,{style:{color:o.heading??o.text??o.primary},children:mt(v)}),(0,c.jsx)(s.Text,{style:{color:o.textMuted},children:` for $${k?Math.round(i):20}`})]}),(0,c.jsx)(s.TouchableOpacity,{onPress:()=>{return e=!x,void 0===p&&w(e),void y?.(e);var e},accessibilityRole:"button",accessibilityState:{expanded:x},style:{paddingVertical:4,paddingHorizontal:10,borderRadius:6,backgroundColor:x?o.buttonSecondary:o.background??"#ffffff",borderWidth:1,borderColor:x?o.primary??o.border:o.border},children:(0,c.jsx)(s.Text,{style:{color:o.text,fontSize:12,fontWeight:"600",fontFamily:r},children:x?"Hide dividends":"Show dividends"})})]}):(0,c.jsx)(s.View,{style:{alignSelf:"flex-start",paddingVertical:2,opacity:0},pointerEvents:"none",children:(0,c.jsx)(s.Text,{style:{fontSize:12,fontWeight:"600",fontFamily:r},children:"Show dividends"})}))]})}var nl=s.StyleSheet.create({labelText:{fontSize:12,fontWeight:"400"},optionButton:{borderWidth:1,borderRadius:8,paddingHorizontal:12,paddingVertical:6},optionButtonText:{fontSize:14,fontWeight:"600"},tableCell:{paddingHorizontal:8,paddingVertical:4,borderRadius:6,alignItems:"center",justifyContent:"center"},tableCellText:{fontSize:12,fontWeight:"700"}});function ol(e){return{game_id:e.selectedGame.id,rule_id:e.selectedRule?.id??null,proposition_ids:e.selectedPropositionIds,selections:e.selections,stake:e.betAmount}}function rl({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,selectedGame:r,selectedEventId:i,propositions:l,selections:a,toggleSelection:d,upgradePropositionCount:h,selectedPropositionCount:u,disableQuickPick:g,answeredCount:f,selectedRule:p}=sr(),y=n.colors,{width:m}=(0,s.useWindowDimensions)(),b=m>=640,w=r?Wt(r,u,p):{min:0,max:0},x=w.min,k=xn(r)&&i?Math.min(w.max,l.length):w.max,S=x>0&&x===k,C=!(r?.allowed_propositions&&r.allowed_propositions.length>0)&&x>0&&k>x,B=S?k:k||l.length,z=e=>{const t=Math.max(0,Math.min(e??B,l.length));for(const r of Object.keys(a)){const e=Number(r);d(e,a[e])}const{yesPicks:n,noPicks:o}=Qt(l,t);for(const r of n)d(r.id,"yes");for(const r of o)d(r.id,"no");h(t)},F=!g&&l.length>0,v=C?Array.from({length:k-x+1},(e,t)=>x+t):[],W=f>0?f:x||B;return(0,c.jsxs)(s.View,{style:[il.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[(0,c.jsxs)(s.View,{children:[(0,c.jsx)(s.Text,{style:[il.title,{fontSize:b?24:20,color:R(n),fontFamily:o}],children:"Place Your Wager"}),r&&(0,c.jsx)(pi,{onBack:e,hideActions:t,label:r.game_name})]}),F&&(v.length>1?(0,c.jsx)(zi,{counts:v,onPick:e=>z(e),onDoubleAction:()=>z(W),colors:y,menuShadow:A(n)}):(0,c.jsx)(s.View,{style:{flexShrink:0},children:(0,c.jsx)(cr,{onPress:()=>z()})}))]})}var il=s.StyleSheet.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"}}),ll=s.Platform.select({ios:"Menlo",default:"monospace"});function al({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,placedEntry:i}=sr(),l=n.colors,{width:a}=(0,s.useWindowDimensions)(),h=a>=640;return(0,c.jsxs)(s.View,{style:sl.titleRow,children:[(0,c.jsxs)(s.View,{style:sl.titleText,children:[(0,c.jsx)(s.Text,{style:[sl.title,h&&sl.titleWide,{color:R(n),fontFamily:o}],children:"Entry Placed!"}),(0,c.jsx)(pi,{onBack:e,hideActions:t,children:(0,c.jsx)(s.Text,{style:[sl.message,{color:l.textMuted,fontFamily:r}],children:i?(0,c.jsxs)(c.Fragment,{children:["Entry"," ",(0,c.jsxs)(s.Text,{style:{color:l.primary,fontWeight:"600",fontFamily:ll},children:["#",i.id]})," ","successfully submitted"]}):"Your entry has been successfully submitted"})})]}),(0,c.jsx)(s.View,{style:[sl.checkCircle,h&&sl.checkCircleWide,{backgroundColor:`${l.success}20`}],children:(0,c.jsx)(d.default,{width:h?28:24,height:h?28:24,viewBox:"0 0 24 24",fill:"none",children:(0,c.jsx)(d.Path,{d:"M5 13l4 4L19 7",stroke:l.success,strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})})})]})}var sl=s.StyleSheet.create({container:{flex:1},content:{flex:1},titleRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingLeft:8},titleText:{flex:1,minWidth:0},checkCircle:{width:48,height:48,borderRadius:999,alignItems:"center",justifyContent:"center",flexShrink:0},checkCircleWide:{width:56,height:56},title:{fontSize:20,fontWeight:"700",lineHeight:28},titleWide:{fontSize:24,lineHeight:32},message:{fontSize:14},summaryCard:{width:"100%",borderRadius:12,padding:16,borderWidth:1},summaryCardWide:{padding:20},summaryHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:12,gap:12},summaryHeading:{fontSize:14,fontWeight:"600"},summaryHeadingWide:{fontSize:16},statsGrid:{flexDirection:"row",flexWrap:"wrap",gap:12},statCell:{flexBasis:"45%",flexGrow:1},statCellWide:{flexBasis:"30%"},statLabel:{fontSize:10,fontWeight:"600",letterSpacing:.25,textTransform:"uppercase"},statValue:{fontSize:14,fontWeight:"600",marginTop:2},pickList:{gap:6},pickRow:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:12,paddingVertical:8,borderRadius:4},footer:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingTop:16}});function cl({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o}=sr(),{width:r}=(0,s.useWindowDimensions)(),i=r>=640;return(0,c.jsxs)(s.View,{style:dl.header,children:[(0,c.jsx)(s.Text,{style:[dl.title,{fontSize:i?24:20,color:R(n),fontFamily:o}],children:"Your Entries"}),(0,c.jsx)(pi,{onBack:e,hideActions:t})]})}var dl=s.StyleSheet.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function hl({onBack:e,hideActions:t,backLabel:n="Category"}={}){const{theme:o,selectedCategory:r}=sr(),i=o.colors,l=se(o),{width:a}=(0,s.useWindowDimensions)(),d=a>=640;return(0,c.jsxs)(s.View,{style:d&&ul.headerWide,children:[(0,c.jsx)(s.Text,{style:[ul.sectionTitle,d&&ul.sectionTitleWide,{color:i.primary,fontFamily:l}],children:Ft(r)}),(0,c.jsx)(pi,{onBack:e,hideActions:t,label:e?n:void 0})]})}var ul=s.StyleSheet.create({container:{flex:1},centered:{flex:1,flexDirection:"row",justifyContent:"center",alignItems:"center",padding:32},titleWrap:{marginBottom:8},headerWide:{paddingLeft:8},sectionTitle:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.4,marginBottom:12},sectionTitleWide:{fontSize:12,letterSpacing:2.16,marginBottom:16},content:{flex:1},grid:{flexDirection:"row",flexWrap:"wrap",gap: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 gl(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 fl({ink:e,ball:t,size:n,balls:o=1}){return(0,c.jsxs)(d.default,{width:n,height:n,viewBox:"2 12 76 62",fill:"none",children:[(0,c.jsx)(d.Line,{x1:"9",y1:"18",x2:"71",y2:"18",stroke:e,strokeWidth:2.5,strokeLinecap:"round"}),(0,c.jsx)(d.Path,{d:"M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64",fill:"none",stroke:e,strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round",opacity:.9}),(0,c.jsx)(d.Path,{d:"M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64",fill:"none",stroke:e,strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)(d.Ellipse,{cx:"40",cy:"64",rx:"18",ry:"4.5",fill:"none",stroke:e,strokeWidth:2.2}),(o>=2?[{cx:33,cy:52,r:6.6},{cx:48,cy:49,r:6.6}]:[{cx:40,cy:50,r:8}]).map((e,n)=>(0,c.jsx)(d.Circle,{cx:e.cx,cy:e.cy,r:e.r,fill:t},n))]})}function pl({ink:e,ball:t,size:n}){return(0,c.jsxs)(d.default,{width:n,height:n,viewBox:"0 0 100 100",fill:"none",children:[(0,c.jsx)(d.Circle,{cx:"50",cy:"50",r:"34",stroke:e,strokeWidth:3,opacity:.9}),(0,c.jsx)(d.Circle,{cx:"50",cy:"50",r:"23",stroke:e,strokeWidth:3,opacity:.65}),(0,c.jsx)(d.Circle,{cx:"50",cy:"50",r:"8",fill:t}),(0,c.jsx)(d.Line,{x1:"80",y1:"20",x2:"55",y2:"45",stroke:e,strokeWidth:4,strokeLinecap:"round"}),(0,c.jsx)(d.Path,{d:"M50 50 l8 -3 -3 8 z",fill:e})]})}function yl({ink:e,ball:t,size:n}){const o=[{x:16,h:22},{x:40,h:40},{x:64,h:60}];return(0,c.jsxs)(d.default,{width:n,height:n,viewBox:"0 0 100 100",fill:"none",children:[(0,c.jsx)(d.Line,{x1:"10",y1:"84",x2:"90",y2:"84",stroke:e,strokeWidth:2,opacity:.5}),o.map((n,r)=>(0,c.jsx)(d.Rect,{x:n.x,y:84-n.h,width:16,height:n.h,rx:3.5,fill:r===o.length-1?t:e,opacity:r===o.length-1?1:.5+.22*r},n.x)),(0,c.jsx)(d.Path,{d:"M14 60 L38 48 L62 30 L86 14",stroke:e,strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),(0,c.jsx)(d.Path,{d:"M86 14 l-9 1 M86 14 l1 9",stroke:e,strokeWidth:3,strokeLinecap:"round"})]})}function ml({kind:e,balls:t,...n}){return"safety_net"===e?(0,c.jsx)(fl,{...n,balls:t}):"pick"===e?(0,c.jsx)(yl,{...n}):(0,c.jsx)(pl,{...n})}function bl({kind:e,size:t=56,balls:n}){const{theme:o}=sr(),r=o.colors,i=o.brand?.chip??r.primary,l=o.brand?.icon??r.primaryText,a=H(o);return(0,c.jsx)(s.View,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:i,borderWidth:1,borderColor:gl(l,.16),alignItems:"center",justifyContent:"center"},children:(0,c.jsx)(ml,{kind:e,ink:l,ball:a,balls:n,size:Math.round(.68*t)})})}function wl({option:e,renderDividends:t}){const{theme:n}=sr(),o=n.colors,r=se(n),i=o.primary,l=H(n),a=e.dividends??[];return t?(0,c.jsx)(c.Fragment,{children:t(e)}):(0,c.jsxs)(s.View,{style:Bl.dividends,children:[(0,c.jsxs)(s.View,{style:Bl.dividendRow,children:[(0,c.jsx)(s.Text,{style:[Bl.dividendsCaption,{color:o.textMuted}],children:"IF YOU LAND"}),(0,c.jsxs)(s.Text,{style:[Bl.dividendsCaption,{color:o.textMuted}],children:["$",20," RETURNS"]})]}),a.map((t,n)=>{const a=e.tierLegs?.[n];return(0,c.jsxs)(s.View,{style:Bl.dividendTierRow,children:[(0,c.jsxs)(s.View,{style:Bl.dividendLabelCol,children:[(0,c.jsx)(s.Text,{style:[Bl.dividendLabel,{color:o.text}],children:t.label}),null!=a&&a>0&&(0,c.jsxs)(s.View,{style:Bl.tierLegs,accessibilityElementsHidden:!0,importantForAccessibility:"no-hide-descendants",children:[Array.from({length:a}).map((e,t)=>(0,c.jsx)(s.View,{style:[Bl.tierLegDot,{backgroundColor:i}]},t)),0===t.misses&&(0,c.jsx)(s.View,{style:[Bl.tierLegBall,{backgroundColor:l}]})]})]}),(0,c.jsx)(s.Text,{style:[Bl.dividendMult,{color:i,fontFamily:r}],children:mt(t.payout20)})]},t.misses)})]})}function xl({option:e,renderDividends:t}){const{theme:n}=sr(),o=n.colors,r=e.dividends??[],i=r.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[l,d]=(0,a.useState)(!1),u=(0,a.useRef)(null),g=(0,a.useRef)(null),[f,p]=(0,a.useState)(null),[y,m]=(0,a.useState)(!1),[b,w]=(0,a.useState)(null),x="web"===s.Platform.OS,k=40+36*Math.max(r.length,1)+12,S=(0,a.useCallback)(()=>{const e=u.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom,o=t.top,r=n<k&&o>n;p({left:t.left,top:r?t.top-6:t.bottom+6,flipUp:r})},[k]);(0,a.useLayoutEffect)(()=>{if(!l||!x)return void p(null);S();const e=()=>d(!1),t=()=>S();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[l,x,S]),(0,a.useEffect)(()=>{if(!l)return;if(x){const e=e=>{const t=u.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||g.current&&g.current.contains(n)||d(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}const e=u.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=s.Dimensions.get("window").height-(t+o);m(r<k&&t>r),w({x:e,y:t,width:n,height:o})})},[l,x,k]);const C=t?(0,c.jsx)(s.View,{style:{paddingHorizontal:12,paddingVertical:8},children:t(e)}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.View,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:o.border},children:(0,c.jsxs)(s.Text,{style:{fontSize:10,fontWeight:"700",color:o.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase"},children:["Dividends for $",20]})}),r.map((e,t)=>(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:0===t?0:1,borderTopColor:o.border,gap:12},children:[(0,c.jsx)(s.Text,{style:{fontWeight:"700",color:o.text,fontSize:13,flex:1},children:e.label}),(0,c.jsx)(s.Text,{style:{fontWeight:"700",color:e.payout20>0?o.heading??o.text:o.textMuted,fontSize:13,textAlign:"right"},children:e.payout20>0?mt(e.payout20):"—"})]},e.misses))]});return(0,c.jsxs)(s.View,{style:{alignSelf:"center",maxWidth:"100%",width:"100%",alignItems:"center"},children:[(0,c.jsxs)(s.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",columnGap:8,rowGap:4,maxWidth:"100%"},children:[i>0?(0,c.jsxs)(s.Text,{style:{fontSize:12,fontWeight:"600",color:o.text},children:["Win up to ",(0,c.jsx)(s.Text,{style:{color:o.heading??o.text},children:mt(i)}),(0,c.jsxs)(s.Text,{style:{color:o.textMuted},children:[" for $",20]})]}):null,(0,c.jsxs)(s.View,{ref:u,collapsable:!1,style:{position:"relative",alignSelf:"flex-start"},children:[(0,c.jsx)(s.TouchableOpacity,{onPress:()=>d(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:l},style:{paddingVertical:4,paddingHorizontal:10,borderRadius:6,backgroundColor:l?o.buttonSecondary:o.background,borderWidth:1,borderColor:l?o.primary??o.border:o.border},children:(0,c.jsx)(s.Text,{style:{color:o.text,fontSize:12,fontWeight:"600"},children:l?"Hide dividends":"Show dividends"})}),(0,c.jsx)(on,{visible:l&&!x,anchor:b,onClose:()=>d(!1),flipUp:y,align:"left",children:(0,c.jsx)(s.View,{style:{elevation:8,backgroundColor:o.background,borderRadius:8,borderWidth:1,borderColor:o.border,minWidth:220,shadowColor:"#000",shadowOffset:{width:0,height:6},shadowOpacity:.18,shadowRadius:12,overflow:"hidden"},children:C})})]})]}),l&&x&&f&&"undefined"!=typeof document?(0,h.createPortal)((0,c.jsx)("div",{ref:g,style:{position:"fixed",left:f.left,top:f.top,transform:f.flipUp?"translateY(-100%)":void 0,zIndex:9999,backgroundColor:o.background,border:`1px solid ${o.border}`,borderRadius:8,minWidth:220,overflow:"hidden",boxShadow:"0 8px 24px rgba(0,0,0,0.18)"},children:C}),document.body):null]})}function kl({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=sr(),i=r.colors,l=se(r),h=R(r),u=i.primary,g=i.selectionCard??i.backgroundAlt,{width:f}=(0,s.useWindowDimensions)(),p=f>=640,y="safety_net"===e?Math.max(1,(t.detail?.length??2)-1):void 0,m=!!o||(t.dividends?.length??0)>0,b=m&&!!t.dividendsInline,[w,x]=(0,a.useState)(!1);return(0,c.jsxs)(s.View,{...ze(()=>x(!0),()=>x(!1)),style:[Bl.card,p&&Bl.cardWide,{backgroundColor:g,borderColor:w?u:i.border,shadowColor:w?u:"#000",shadowOpacity:w?.28:.08,shadowRadius:w?14:8,shadowOffset:{width:0,height:w?12:8},elevation:w?4:1,transform:[{translateY:w?-2:0}]}],children:[(0,c.jsxs)(s.TouchableOpacity,{onPress:n,activeOpacity:.85,accessibilityRole:"button",style:Bl.cardMain,children:[(0,c.jsx)(bl,{kind:e,balls:y,size:60}),(0,c.jsxs)(s.View,{style:Bl.cardText,children:[(0,c.jsx)(s.Text,{style:[Bl.cardTitle,{color:h,fontFamily:l}],children:t.label}),t.stat?(0,c.jsx)(s.View,{style:[Bl.statChip,{backgroundColor:gl(u,.12)}],children:(0,c.jsx)(s.Text,{style:[Bl.statChipText,{color:u}],children:t.stat.toUpperCase()})}):null,(0,c.jsx)(s.View,{style:Bl.detailBlock,children:t.detail?.map(e=>(0,c.jsx)(s.Text,{style:[Bl.detailLine,{color:i.textMuted}],children:e},e))})]}),(0,c.jsx)(s.View,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:w?2:0}]},children:(0,c.jsx)(d.default,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:(0,c.jsx)(d.Path,{d:"m9 6 6 6-6 6",stroke:u,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]}),m?(0,c.jsx)(s.View,{style:[Bl.dividendsWrap,{borderTopColor:gl(h,.08)}],children:b?(0,c.jsx)(wl,{option:t,renderDividends:o}):(0,c.jsx)(xl,{option:t,renderDividends:o})}):null]})}function Sl({kind:e,highlights:t,onSelect:n,accessibilityLabel:o}){const{theme:r}=sr(),i=r.colors,l=R(r),h=H(r),u=i.primary,g=i.selectionCard??i.backgroundAlt,{width:f}=(0,s.useWindowDimensions)(),p=f>=640,[y,m]=(0,a.useState)(!1);return(0,c.jsx)(s.View,{...ze(()=>m(!0),()=>m(!1)),style:[Bl.card,p&&Bl.cardWide,{backgroundColor:g,borderColor:y?u:i.border,shadowColor:y?u:"#000",shadowOpacity:y?.28:.08,shadowRadius:y?14:8,shadowOffset:{width:0,height:y?12:8},elevation:y?4:1,transform:[{translateY:y?-2:0}]}],children:(0,c.jsxs)(s.TouchableOpacity,{onPress:n,activeOpacity:.85,accessibilityRole:"button",accessibilityLabel:o,style:Bl.cardMain,children:[(0,c.jsx)(bl,{kind:e,size:60}),(0,c.jsx)(s.View,{style:{flex:1,minWidth:0,gap:8},children:t.map(e=>(0,c.jsxs)(s.View,{style:Bl.bulletRow,children:[(0,c.jsx)(s.View,{style:[Bl.dot,{backgroundColor:h}]}),(0,c.jsx)(s.Text,{style:[Bl.bulletText,{color:l}],children:e})]},e))}),(0,c.jsx)(s.View,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:y?2:0}]},children:(0,c.jsx)(d.default,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:(0,c.jsx)(d.Path,{d:"m9 6 6 6-6 6",stroke:u,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})})}function Cl({onContinue:e,onBack:t,hideTitle:n,config:o,renderDividends:r,backLabel:i="Games"}){const{theme:l,selectedGame:d,selectedPropositionCount:h,setExpectedCorrect:u,handlePropositionCountChange:g,bodyFont:f,screenSize:p}=sr(),y=l.colors,m=se(l),b="mobile"===p,{width:w}=(0,s.useWindowDimensions)(),x=w>=640,k=(0,a.useMemo)(()=>o??Jn(d,h),[o,d,h]),S=k?.options??[],C=t=>{null!=t?.expectedCorrect&&u(t.expectedCorrect),null!=t?.propositionCount&&g(t.propositionCount),e?.()};if(!d||!k)return(0,c.jsx)(s.View,{children:(0,c.jsx)(s.Text,{style:{color:y.textMuted,fontFamily:f},children:"No rule setup required."})});const B=k.kind,z=k.headline??k.heroTitle,F=k.continueLabel??"Continue";return(0,c.jsxs)(s.View,{style:[Bl.container,{backgroundColor:y.background}],children:[t?(0,c.jsx)(s.View,{style:Bl.backRow,children:(0,c.jsx)(fi,{onBack:t,label:i})}):null,(0,c.jsxs)(Le,{style:Bl.inner,children:[n?null:(0,c.jsx)(s.Text,{accessibilityRole:"header",style:[Bl.sectionTitle,Bl.sectionTitleInBody,{color:y.primary,fontFamily:m,textAlign:"center"}],children:k.title}),(0,c.jsxs)(s.View,{style:Bl.headerBlock,children:[(0,c.jsx)(ii,{iconUrl:fe(d),gameName:d.game_name,height:b?24:32,chipColor:y.primary,textColor:y.text,iconColor:y.primaryText,accentColor:l.brand?.accent,compact:b}),k.subtitle?(0,c.jsx)(s.Text,{style:[Bl.pickSubtitle,{color:y.textMuted}],children:k.subtitle}):null,z||k.heroTagline?(0,c.jsx)(s.Text,{style:[Bl.tagline,{color:y.textMuted}],children:k.heroTagline??z}):null]}),(0,c.jsx)(Ui,{}),S.length>0?(0,c.jsx)(s.View,{style:[Bl.cardList,x&&S.length>1&&Bl.cardGrid],children:S.map(e=>(0,c.jsx)(s.View,{style:x&&S.length>1?Bl.cardCell:void 0,children:(0,c.jsx)(kl,{kind:B,option:e,onSelect:()=>C(e),renderDividends:r})},e.id))}):k.highlights&&k.highlights.length>0?(0,c.jsx)(Sl,{kind:B,highlights:k.highlights,onSelect:()=>C(),accessibilityLabel:F}):null]})]})}var Bl=s.StyleSheet.create({container:{flex:1},backRow:{paddingHorizontal:16,marginBottom:4},inner:{flex:1,paddingHorizontal:16,maxWidth:768,width:"100%",alignSelf:"center"},header:{marginBottom:8,paddingHorizontal:16},headerCompact:{paddingHorizontal:12},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},sectionTitleCompact:{fontSize:10,letterSpacing:1.4,marginBottom:12},sectionTitleInBody:{marginBottom:12},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 zl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:l,selectedGame:d,selectedPropositionCount:h,handlePropositionCountChange:u,setExpectedCorrect:g,setBetAmount:f,quickPickGame:p,goToSportSelection:y}=sr(),m=l.colors,b=ae(l),w=se(l),x=R(l),k=j(l),{width:S}=(0,s.useWindowDimensions)(),C=S>=640,[B,z]=(0,a.useState)(!1),F=(0,a.useMemo)(()=>r??To(d),[r,d]),[v,W]=(0,a.useState)(()=>F?null!=h&&F.legOptions.includes(h)?h:F.defaultLegs:8),[T,A]=(0,a.useState)(()=>F?.defaultStake??20);if(!d||!vo(d)||!F)return(0,c.jsx)(s.View,{style:[Fl.container,{backgroundColor:m.background}],children:(0,c.jsx)(s.Text,{style:{color:m.textMuted,fontFamily:b},children:"No game set available."})});const L=Wo(T,v,{operatorMargin:F.operatorMargin,perLegProbability:F.perLegProbability}),D=T>=F.minStake,M=(e,t)=>(0,c.jsxs)(s.View,{style:Fl.controlLabelRow,children:[(0,c.jsx)(s.Text,{style:[Fl.controlLabelText,{color:m.textMuted}],children:e}),(0,c.jsx)(s.Text,{style:[Fl.controlValueText,{color:x}],children:t})]});return(0,c.jsxs)(s.View,{style:[Fl.container,{backgroundColor:m.background}],children:[n?(0,c.jsx)(s.View,{style:Fl.backRow,children:(0,c.jsx)(fi,{onBack:n,label:i})}):null,(0,c.jsxs)(Le,{style:Fl.inner,children:[(0,c.jsx)(Oi,{eyebrow:o?null:"The fastest multi",iconUrl:fe(d),gameName:d.game_name,tagline:F.tagline}),(0,c.jsx)(Ui,{}),(0,c.jsxs)(s.View,{style:[Fl.ticket,C&&Fl.ticketWide,{backgroundColor:k,borderColor:m.border,shadowColor:x,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[M("Legs",`${v} legs`),(0,c.jsx)(s.View,{style:Fl.chipRow,children:F.legOptions.map(e=>{const t=e===v;return(0,c.jsx)(s.TouchableOpacity,{onPress:()=>W(e),accessibilityRole:"radio",accessibilityState:{selected:t},activeOpacity:.8,style:[Fl.chip,{backgroundColor:t?m.primary:"transparent",borderColor:t?m.primary:m.border}],children:(0,c.jsx)(s.Text,{style:[Fl.chipText,{color:t?m.primaryText:m.textMuted}],children:e})},e)})}),(0,c.jsxs)(s.View,{style:Fl.hintRow,children:[(0,c.jsx)(s.Text,{style:[Fl.hintText,{color:m.textMuted}],children:"Easier to land"}),(0,c.jsx)(s.Text,{style:[Fl.hintText,{color:m.textMuted}],children:"Bigger prize"})]}),(0,c.jsxs)(s.View,{style:Fl.stakeBlock,children:[M("Stake",mt(T)),(0,c.jsxs)(s.View,{style:[Fl.inputWrap,{borderColor:B?m.borderFocus??m.primary:m.border,backgroundColor:m.backgroundAlt}],children:[(0,c.jsx)(s.Text,{style:[Fl.inputPrefix,{color:m.textMuted}],children:"$"}),(0,c.jsx)(s.TextInput,{keyboardType:"decimal-pad",placeholder:"Enter stake",placeholderTextColor:m.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>z(!0),onBlur:()=>z(!1),value:T?String(T):"",onChangeText:e=>{if(""===e)return void A(0);const t=Number(e);Number.isFinite(t)&&A((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==F.maxStake?Math.min(t,F.maxStake):t})(t))},style:[Fl.input,{color:m.textAlt??m.text,fontFamily:b}]})]}),(0,c.jsx)(s.View,{style:Fl.chipRow,children:F.quickStakes.map(e=>{const t=e===T;return(0,c.jsx)(s.TouchableOpacity,{onPress:()=>A(e),activeOpacity:.8,style:[Fl.stakeChip,{backgroundColor:t?m.primary:"transparent",borderColor:t?m.primary:m.border}],children:(0,c.jsxs)(s.Text,{style:[Fl.chipText,{color:t?m.primaryText:m.textMuted}],children:["$",e]})},e)})}),!D&&T>0?(0,c.jsxs)(s.Text,{style:[Fl.errorText,{color:m.error}],children:["Minimum stake is ",mt(F.minStake),"."]}):null]}),(0,c.jsxs)(s.View,{style:[Fl.dividendBlock,{borderTopColor:Pi(x,.08)}],children:[(0,c.jsxs)(s.View,{style:Fl.dividendCaptionRow,children:[(0,c.jsxs)(s.Text,{style:[Fl.dividendCaption,{color:m.textMuted}],children:["If all ",v," land"]}),(0,c.jsxs)(s.Text,{style:[Fl.dividendCaption,{color:m.textMuted}],children:[mt(T)," returns"]})]}),(0,c.jsxs)(s.View,{style:Fl.dividendMainRow,children:[(0,c.jsxs)(s.View,{style:Fl.dividendMainLeft,children:[(0,c.jsx)(s.Text,{style:[Fl.perfectTicket,{color:m.text}],children:"Perfect ticket"}),(0,c.jsx)(Gi,{legs:v})]}),(0,c.jsx)(s.Text,{style:[Fl.prize,C&&Fl.prizeWide,{color:m.primary,fontFamily:w}],children:mt(L.prize)})]}),(0,c.jsxs)(s.Text,{style:[Fl.multipleLine,{color:m.textMuted}],children:[(P=L.multiple,`×${(Math.round(10*P)/10).toLocaleString("en-US",{maximumFractionDigits:1})}`)," your stake · total return, stake included"]}),(0,c.jsx)(s.Text,{style:[Fl.allOrNothing,{color:m.textMuted}],children:"All or nothing. Miss a single leg and the ticket does not pay."})]})]}),(0,c.jsxs)(s.View,{style:[Fl.modeCards,C&&Fl.modeCardsWide],children:[(0,c.jsx)(s.View,{style:C?Fl.modeCardCell:void 0,children:(0,c.jsx)(Yi,{tile:(0,c.jsx)(Hi,{iconUrl:fe(d),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{D&&(u(v),g(v),f(T),y(),t?.())}})}),(0,c.jsx)(s.View,{style:C?Fl.modeCardCell:void 0,children:(0,c.jsx)(Yi,{tile:(0,c.jsx)(Hi,{iconUrl:`${ce}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{D&&(g(v),f(T),p(d,v,T),e?.())}})})]})]})]});var P}var Fl=s.StyleSheet.create({container:{flex:1},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},headerCompact:{paddingHorizontal:12},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},sectionTitleCompact:{fontSize:10,letterSpacing:1.4,marginBottom:12},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 vl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:l,selectedGame:d,selectedPropositionCount:h,handlePropositionCountChange:u,setExpectedCorrect:g,setBetAmount:f,quickPickGame:p,goToSportSelection:y}=sr(),m=l.colors,b=ae(l),w=se(l),x=R(l),k=j(l),{width:S}=(0,s.useWindowDimensions)(),C=S>=640,[B,z]=(0,a.useState)(null),[F,v]=(0,a.useState)(null),W=(0,a.useMemo)(()=>r??io(d),[r,d]),[T,A]=(0,a.useState)(()=>W?.defaultDividend??1e4),[L,D]=(0,a.useState)(()=>{const e=W?.dividends[0]?.rungs.map(e=>e.legs)??[];return null!=h&&e.includes(h)?h:W?.defaultLegs??9});if(!d||!to(d)||!W)return(0,c.jsx)(s.View,{children:(0,c.jsx)(s.Text,{style:{color:m.textMuted,fontFamily:b},children:"No dividend series available."})});const M=W.dividends.find(e=>e.dividend===T)??W.dividends[0],P=M.rungs.find(e=>e.legs===L)??M.rungs[0],H=Math.max(...M.rungs.map(e=>e.legs)),O=Math.min(...M.rungs.map(e=>e.legs));return(0,c.jsxs)(s.View,{style:Wl.container,children:[n?(0,c.jsx)(s.View,{style:Wl.backRow,children:(0,c.jsx)(fi,{onBack:n,label:i})}):null,(0,c.jsxs)(Le,{style:Wl.inner,children:[(0,c.jsx)(Oi,{eyebrow:o?null:"Pick your dividend",iconUrl:fe(d),gameName:d.game_name,tagline:W.tagline}),(0,c.jsx)(Ui,{}),(0,c.jsxs)(s.View,{style:[Wl.ticket,C&&Wl.ticketWide,{backgroundColor:k,borderColor:m.border,shadowColor:x,shadowOpacity:.12,shadowRadius:12,shadowOffset:{width:0,height:8},elevation:1}],children:[(I=mt(M.dividend),(0,c.jsxs)(s.View,{style:Wl.sectionLabelRow,children:[(0,c.jsx)(s.Text,{style:[Wl.sectionLabelText,{color:m.textMuted}],children:"Set dividend"}),I?(0,c.jsx)(s.Text,{style:[Wl.sectionValueText,{color:x}],children:I}):null]})),(0,c.jsx)(Ei,{ariaLabel:"Set dividend",children:W.dividends.map(e=>{const t=e.dividend===T,n=B===e.dividend;return(0,c.jsxs)(s.TouchableOpacity,{onPress:()=>A(e.dividend),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...ze(()=>z(e.dividend),()=>z(null)),style:[Wl.dividendTile,ji(C),{backgroundColor:t?Pi(m.primary,.08):"transparent",borderColor:t||n?m.primary:m.border}],children:[(0,c.jsx)(s.Text,{style:[Wl.dividendValue,C&&Wl.dividendValueWide,{color:x,fontFamily:w}],children:mt(e.dividend)}),(0,c.jsxs)(s.Text,{style:[Wl.dividendFrom,{color:m.textMuted}],children:["from ",mt(e.rungs[0]?.stake??0)]})]},e.dividend)})}),(0,c.jsx)(s.Text,{style:[Wl.ticketNote,{color:m.textMuted}],children:"One set amount — it does not move, whatever you spend."}),(0,c.jsxs)(s.View,{style:[Wl.ladderDivider,{borderTopColor:Pi(x,.08)}],children:[(0,c.jsxs)(s.View,{style:Wl.ladderHeaderRow,children:[(0,c.jsx)(s.Text,{style:[Wl.ladderHeaderText,{color:m.textMuted}],children:"Legs to land"}),(0,c.jsx)(s.Text,{style:[Wl.ladderHeaderText,{color:m.textMuted}],children:"Your stake"})]}),(0,c.jsx)(s.View,{style:Wl.rungList,children:M.rungs.map(e=>{const t=e.legs===L,n=F===e.legs;return(0,c.jsxs)(s.TouchableOpacity,{onPress:()=>D(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...ze(()=>v(e.legs),()=>v(null)),style:[Wl.rungRow,{backgroundColor:t?Pi(m.primary,.08):"transparent",borderColor:t||n?m.primary:m.border}],children:[(0,c.jsxs)(s.View,{style:Wl.rungLeft,children:[(0,c.jsxs)(s.Text,{style:[Wl.rungLegs,{color:m.text}],children:[e.legs," legs",C?e.legs===H?" · the long climb":e.legs===O?" · the sprint":"":""]}),(0,c.jsx)(Gi,{legs:e.legs})]}),(0,c.jsx)(s.Text,{style:[Wl.rungStake,C&&Wl.rungStakeWide,{color:m.primary,fontFamily:w}],children:mt(e.stake)})]},e.legs)})}),(0,c.jsx)(s.Text,{style:[Wl.ticketNote,{color:m.textMuted}],children:"Same dividend on every rung — a little for the long climb, more for the short one."})]})]}),(0,c.jsxs)(s.View,{style:[Wl.cardList,C&&Wl.cardListWide],children:[(0,c.jsx)(s.View,{style:C?Wl.cardCell:void 0,children:(0,c.jsx)(Yi,{tile:(0,c.jsx)(Hi,{iconUrl:fe(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${P.legs} legs`,`${mt(P.stake)} chasing the ${mt(M.dividend)}`],onSelect:()=>{var e;u((e=P).legs),g(e.legs),f(e.stake),y(),t?.()}})}),(0,c.jsx)(s.View,{style:C?Wl.cardCell:void 0,children:(0,c.jsx)(Yi,{tile:(0,c.jsx)(Hi,{iconUrl:`${ce}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${P.legs} legs at ${mt(P.stake)}`,"Straight to the bet slip"],onSelect:()=>{g(P.legs),f(P.stake),p(d,P.legs,P.stake),e?.()}})})]})]})]});var I}var Wl=s.StyleSheet.create({container:{flex:1},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},titleWrap:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},eyebrowLeft:{textAlign:"left"},eyebrowSectionWide:{marginBottom:20},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 Tl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:l,selectedGame:d,selectedPropositionCount:h,handlePropositionCountChange:u,setExpectedCorrect:g,setBetAmount:f,quickPickGame:p,goToSportSelection:y,screenSize:m,bodyFont:b}=sr(),w=l.colors,x="mobile"===m,k=se(l),S=R(l),C=H(l),B=j(l),{width:z}=(0,s.useWindowDimensions)(),F=z>=640,[v,W]=(0,a.useState)(null),T=(0,a.useMemo)(()=>r??Ho(d),[r,d]),[A,L]=(0,a.useState)(()=>T?null!=h&&T.ladders.some(e=>e.legs===h)?h:T.defaultLegs:8),[D,M]=(0,a.useState)(()=>T?.defaultStake??50),[P,O]=(0,a.useState)(!1);if(!d||!Lo(d)||!T)return(0,c.jsx)(s.View,{children:(0,c.jsx)(s.Text,{style:{color:w.textMuted,fontFamily:b},children:"No ladders available."})});const I=T.ladders.find(e=>e.legs===A)??T.ladders[0],E=Mo(I,D),N=Po(I,D),G=[...E].reverse(),Y=x&&G.length>4,V=Y&&!P?G.slice(0,3):G,U=(e,t)=>(0,c.jsxs)(s.View,{style:Al.sectionLabelRow,children:[(0,c.jsx)(s.Text,{style:[Al.sectionLabelText,{color:w.textMuted}],children:e}),t?(0,c.jsx)(s.Text,{style:[Al.sectionLabelValue,{color:S}],children:t}):null]});return(0,c.jsxs)(s.View,{style:[Al.container,{backgroundColor:w.background}],children:[n?(0,c.jsx)(s.View,{style:Al.backRow,children:(0,c.jsx)(fi,{onBack:n,label:i})}):null,(0,c.jsxs)(Le,{style:Al.inner,children:[(0,c.jsx)(Oi,{eyebrow:o?null:"Climb the ladder. Stack the prizes.",iconUrl:fe(d),gameName:d.game_name,tagline:T.tagline}),(0,c.jsx)(Ui,{}),(0,c.jsxs)(s.View,{style:[Al.builder,F&&Al.builderWide,{backgroundColor:B,borderColor:w.border,shadowColor:S,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[U("Your bet",mt(D)),(0,c.jsx)(s.View,{style:Al.betRow,children:T.stakes.map(e=>{const t=e===D;return(0,c.jsx)(s.TouchableOpacity,{onPress:()=>M(e),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},style:[Al.betChip,{backgroundColor:t?w.primary:"transparent",borderColor:t?w.primary:w.border}],children:(0,c.jsxs)(s.Text,{style:[Al.betChipText,{color:t?w.primaryText:w.textMuted}],children:["$",e]})},e)})}),(0,c.jsx)(s.Text,{style:[Al.betNote,{color:w.textMuted}],children:"Every prize scales with your bet."}),(0,c.jsxs)(s.View,{style:Al.laddersBlock,children:[U(`${T.ladders.length} ladders to choose from`),(0,c.jsx)(Ei,{ariaLabel:"Ladder",children:T.ladders.map(e=>{const t=e.legs===A,n=v===e.legs;return(0,c.jsxs)(s.TouchableOpacity,{onPress:()=>L(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...ze(()=>W(e.legs),()=>W(null)),style:[Al.ladderTile,ji(F,"17%"),{backgroundColor:t?Pi(w.primary,.08):"transparent",borderColor:t||n?w.primary:w.border}],children:[(0,c.jsxs)(s.Text,{style:[Al.ladderTileLabel,{color:w.primary}],children:["Ladder ",e.legs]}),(0,c.jsx)(s.Text,{style:[Al.ladderTilePrize,{color:S,fontFamily:k}],children:mt(Po(e,D))}),(0,c.jsxs)(s.Text,{style:[Al.ladderTileNote,{color:w.textMuted}],children:["Win from ",e.firstPayingTier," right"]})]},e.legs)})})]}),(0,c.jsxs)(s.View,{style:[Al.stackTable,{borderTopColor:Pi(S,.08)}],children:[(0,c.jsxs)(s.Text,{style:[Al.stackIntro,{color:w.text}],children:["Ladder ",I.legs," wins from ",I.firstPayingTier," right — every tier stacks into the"," ",(0,c.jsx)(s.Text,{style:{fontWeight:"700",color:S},children:mt(N)})," Full Stack Prize."]}),(0,c.jsxs)(s.View,{style:Al.rungHeader,children:[(0,c.jsx)(s.Text,{style:[Al.rungHeaderCaption,{color:w.textMuted}],children:"Get right"}),(0,c.jsxs)(s.View,{style:Al.rungHeaderRight,children:[(0,c.jsx)(s.Text,{style:[Al.rungHeaderCaption,Al.rungColPrize,{color:w.textMuted}],children:"Tier pays"}),(0,c.jsx)(s.Text,{style:[Al.rungHeaderCaption,Al.rungColTotal,{color:w.textMuted}],children:"You collect"})]})]}),(0,c.jsx)(s.View,{style:Al.rungList,children:V.map(e=>{const t=e.atLeast===I.legs;return(0,c.jsxs)(s.View,{style:Al.rungRow,children:[(0,c.jsxs)(s.View,{style:Al.rungLeft,children:[(0,c.jsxs)(s.View,{style:Al.rungLabelRow,children:[(0,c.jsxs)(s.Text,{style:[Al.rungLabel,{color:w.text}],children:[e.atLeast," of ",I.legs]}),t&&F?(0,c.jsx)(s.View,{style:[Al.fullStackChip,{backgroundColor:Pi(C,.35)}],children:(0,c.jsx)(s.Text,{style:[Al.fullStackChipText,{color:S}],children:"Full stack"})}):null]}),(0,c.jsx)(Gi,{legs:e.atLeast,prizeBall:t})]}),(0,c.jsxs)(s.View,{style:Al.rungRight,children:[(0,c.jsx)(s.Text,{style:[Al.rungPrize,Al.rungColPrice,{color:w.textMuted}],children:mt(e.prize)}),(0,c.jsx)(s.Text,{style:[Al.rungCumulative,Al.rungColTotal,F&&Al.rungCumulativeWide,{color:w.primary,fontFamily:k}],children:mt(e.cumulative)})]})]},e.atLeast)})}),Y?(0,c.jsx)(s.TouchableOpacity,{onPress:()=>O(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:P},style:[Al.tierToggle,{borderColor:w.border}],children:(0,c.jsx)(s.Text,{style:[Al.tierToggleText,{color:w.primary}],children:P?"Show fewer tiers":`Show all ${G.length} tiers`})}):null,(0,c.jsxs)(s.Text,{style:[Al.stackNote,{color:w.textMuted}],children:["Land below ",I.firstPayingTier," right and the ticket does not pay."]})]})]}),(0,c.jsxs)(s.View,{style:[Al.modeCards,F&&Al.modeCardsWide],children:[(0,c.jsx)(s.View,{style:F?Al.modeCardCell:void 0,children:(0,c.jsx)(Yi,{tile:(0,c.jsx)(Hi,{iconUrl:fe(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${I.legs} outcomes`,`Win from ${I.firstPayingTier} right — every tier stacks`],onSelect:()=>{u(I.legs),g(I.legs),f(D),y(),t?.()}})}),(0,c.jsx)(s.View,{style:F?Al.modeCardCell:void 0,children:(0,c.jsx)(Yi,{tile:(0,c.jsx)(Hi,{iconUrl:`${ce}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${I.legs} legs at ${mt(D)}`,"Straight to the bet slip"],onSelect:()=>{g(I.legs),f(D),p(d,I.legs,D),e?.()}})})]})]})]})}var Al=s.StyleSheet.create({container:{flex:1},inner:{flex:1,paddingHorizontal:16,width:"100%"},backRow:{paddingHorizontal:16},titleWrap:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},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 Rl({depth:e,theme:t}){const n=t.colors,o=H(t);return(0,c.jsx)(s.View,{style:Ml.variantEdgeBar,children:Array.from({length:9}).map((t,r)=>{const i=Math.min(r,8-r)<e;return(0,c.jsx)(s.View,{style:[Ml.variantEdgeSlot,i?{backgroundColor:r<4.5?n.primary:o}:{borderWidth:1,borderColor:n.border}]},r)})})}function Ll({legs:e,right:t}){const{theme:n}=sr(),o=n.colors.primary,r=H(n);return(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center"},children:[Array.from({length:e}).map((e,n)=>(0,c.jsx)(s.View,{style:{width:5,height:5,borderRadius:1.5,marginRight:3,backgroundColor:t?o:"transparent",borderWidth:t?0:1,borderColor:t?void 0:Pi(o,.45),opacity:t?.85:1}},n)),(0,c.jsx)(s.View,{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}})]})}function Dl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:l,selectedGame:d,selectedPropositionCount:h,handlePropositionCountChange:u,setExpectedCorrect:g,setBetAmount:f,quickPickGame:p,goToSportSelection:y}=sr(),m=l.colors,b=ae(l),w=se(l),x=R(l),k=j(l),{width:S}=(0,s.useWindowDimensions)(),C=S>=640,[B,z]=(0,a.useState)(!1),F=(0,a.useMemo)(()=>r??Yo(d),[r,d]),[v,W]=(0,a.useState)(()=>F?null!=h&&F.legOptions.includes(h)?h:F.defaultLegs:8),[T,A]=(0,a.useState)(()=>F?.defaultStake??20);if(!d||!No(d)||!F)return(0,c.jsx)(s.View,{children:(0,c.jsx)(s.Text,{style:{color:m.textMuted,fontFamily:b},children:"No mirror available."})});const L=F.variant,D=F.legOptions,M=D.includes(v)?v:D[0],P=function(e,t,n,o){const r=Uo(e),i=t*(1-(o?.operatorMargin??.21875)),l=Math.round(Math.pow(2,n)),a=[];let s=0;for(let c=0;c<r.depth;c++){const e=Ko(n,c),t=n-c===c?e:2*e;s+=t,a.push({distance:c,label:r.tierNames[c]??`Tier ${c+1}`,correctCounts:n-c===c?[c]:[n-c,c],prize:Math.round(i/r.depth*l/(2*e)*100)/100,outcomes:t})}return{variant:r.id,legs:n,stake:t,tiers:a,totalOutcomes:l,winningOutcomes:s,oddsOneIn:Math.round(l/s*1e4)/1e4}}(L.id,T,M,{operatorMargin:F.operatorMargin}),H=M-(L.depth-1),O=T>=F.minStake,I=(e,t)=>(0,c.jsxs)(s.View,{style:Ml.controlLabel,children:[(0,c.jsx)(s.Text,{style:[Ml.controlLabelText,{color:m.textMuted}],children:e}),(0,c.jsx)(s.Text,{style:[Ml.controlValueText,{color:x}],children:t})]});return(0,c.jsxs)(s.View,{style:Ml.container,children:[n?(0,c.jsx)(s.View,{style:Ml.backRow,children:(0,c.jsx)(fi,{onBack:n,label:i})}):null,(0,c.jsxs)(Le,{style:Ml.inner,children:[(0,c.jsx)(Oi,{eyebrow:o?null:"All right, or all wrong",iconUrl:fe(d),gameName:d.game_name,tagline:F.tagline}),(0,c.jsx)(Ui,{}),(0,c.jsxs)(s.View,{style:Ml.variantBlock,children:[I(L.name,L.waysToWin),(0,c.jsx)(Rl,{depth:L.depth,theme:l}),(0,c.jsxs)(s.View,{style:Ml.variantEdgeLabels,children:[(0,c.jsx)(s.Text,{style:[Ml.variantEdgeText,{color:m.textMuted}],children:"All wrong"}),(0,c.jsx)(s.Text,{style:[Ml.variantEdgeText,{color:m.textMuted}],children:`${D[0]}–${D[D.length-1]} legs`}),(0,c.jsx)(s.Text,{style:[Ml.variantEdgeText,{color:m.textMuted}],children:"All right"})]})]}),(0,c.jsxs)(s.View,{style:[Ml.ticket,C&&Ml.ticketWide,{backgroundColor:k,borderColor:m.border,shadowColor:x,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[I("Legs",`${M} legs`),(0,c.jsx)(s.View,{style:Ml.chipRow,children:D.map(e=>{const t=e===M;return(0,c.jsx)(s.TouchableOpacity,{onPress:()=>W(e),accessibilityRole:"radio",accessibilityState:{selected:t},style:[Ml.legChip,{backgroundColor:t?m.primary:"transparent",borderColor:t?m.primary:m.border}],children:(0,c.jsx)(s.Text,{style:[Ml.chipText,{color:t?m.primaryText:m.textMuted}],children:e})},e)})}),(0,c.jsxs)(s.View,{style:Ml.hintRow,children:[(0,c.jsx)(s.Text,{style:[Ml.hintText,{color:m.textMuted}],children:"Easier to sweep"}),(0,c.jsx)(s.Text,{style:[Ml.hintText,{color:m.textMuted}],children:"Bigger prize"})]}),(0,c.jsxs)(s.View,{style:Ml.stakeBlock,children:[I("Stake",mt(T)),(0,c.jsxs)(s.View,{style:[Ml.inputWrap,{borderColor:B?m.borderFocus??m.primary:m.border,backgroundColor:m.backgroundAlt}],children:[(0,c.jsx)(s.Text,{style:[Ml.inputPrefix,{color:m.textMuted}],children:"$"}),(0,c.jsx)(s.TextInput,{keyboardType:"numeric",placeholder:"Enter stake",placeholderTextColor:m.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>z(!0),onBlur:()=>z(!1),value:T?String(T):"",onChangeText:e=>{if(""===e)return void A(0);const t=Number(e);Number.isFinite(t)&&A((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==F.maxStake?Math.min(t,F.maxStake):t})(t))},style:[Ml.input,{color:m.textAlt??m.text,fontFamily:b}]})]}),(0,c.jsx)(s.View,{style:Ml.quickStakeRow,children:F.quickStakes.map(e=>{const t=e===T;return(0,c.jsx)(s.TouchableOpacity,{onPress:()=>A(e),style:[Ml.stakeChip,{backgroundColor:t?m.primary:"transparent",borderColor:t?m.primary:m.border}],children:(0,c.jsx)(s.Text,{style:[Ml.chipText,{color:t?m.primaryText:m.textMuted}],children:`$${e}`})},e)})}),!O&&T>0?(0,c.jsx)(s.Text,{style:[Ml.errorText,{color:m.error}],children:`Minimum stake is ${mt(F.minStake)}.`}):null]}),(0,c.jsxs)(s.View,{style:[Ml.winSection,{borderTopColor:Pi(x,.08)}],children:[(0,c.jsxs)(s.View,{style:Ml.winHeader,children:[(0,c.jsx)(s.Text,{style:[Ml.winHeaderText,{color:m.textMuted}],children:"What it pays"}),(0,c.jsx)(s.Text,{style:[Ml.winHeaderText,{color:m.textMuted}],children:L.waysToWin})]}),(0,c.jsx)(s.View,{style:Ml.winRows,children:P.tiers.map(e=>(0,c.jsxs)(s.View,{style:Ml.winRow,children:[(0,c.jsxs)(s.View,{style:Ml.winRowLeft,children:[(0,c.jsx)(s.Text,{style:[Ml.winRowLabel,{color:m.text}],children:`${e.correctCounts.join(" or ")} of ${M} right`}),(0,c.jsx)(Ll,{legs:M,right:0===e.distance})]}),(0,c.jsx)(s.Text,{style:[Ml.winRowPrize,C&&Ml.winRowPrizeWide,{color:m.primary,fontFamily:w}],children:mt(e.prize)})]},e.distance))}),(0,c.jsx)(s.Text,{style:[Ml.splitNote,{color:m.textMuted}],children:"Anything in between — a split card — does not pay."})]})]}),(0,c.jsxs)(s.View,{style:[Ml.cardList,C&&Ml.cardListWide],children:[(0,c.jsx)(s.View,{style:C?Ml.cardCell:void 0,children:(0,c.jsx)(Yi,{tile:(0,c.jsx)(Hi,{iconUrl:fe(d),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","Aim for the sweep — either direction pays"],onSelect:()=>{O&&(u(M),g(H),f(T),y(),t?.())}})}),(0,c.jsx)(s.View,{style:C?Ml.cardCell:void 0,children:(0,c.jsx)(Yi,{tile:(0,c.jsx)(Hi,{iconUrl:`${ce}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{O&&(g(H),f(T),p(d,M,T),e?.())}})})]})]})]})}var Ml=s.StyleSheet.create({container:{flex:1,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},tagline:{marginTop:12,fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384},taglineWide:{fontSize:15,lineHeight:24},ticket:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},ticketWide:{paddingHorizontal:20,paddingVertical:20},variantBlock:{marginBottom:12},variantEdgeBar:{marginTop:8,flexDirection:"row",gap:3},variantEdgeSlot:{flex:1,height:14,borderRadius:4},variantEdgeLabels:{marginTop:4,flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},variantEdgeText:{fontSize:9,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},controlLabel:{marginBottom:8,flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},controlLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},controlValueText:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},chipRow:{flexDirection:"row",flexWrap:"wrap",gap:6},legChip:{minWidth:40,flexGrow:1,flexBasis:40,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},chipText:{fontSize:14,fontWeight:"700"},hintRow:{marginTop:8,flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},hintText:{fontSize:11,fontStyle:"italic"},stakeBlock:{marginTop:16},inputWrap:{flexDirection:"row",alignItems:"center",borderWidth:1,borderRadius:8,paddingHorizontal:12},inputPrefix:{fontSize:16,fontWeight:"700",marginRight:4},input:{flex:1,paddingVertical:12,fontSize:18,fontWeight:"600",fontVariant:["tabular-nums"]},quickStakeRow:{marginTop:8,flexDirection:"row",flexWrap:"wrap",gap:6},stakeChip:{minWidth:48,flexGrow:1,flexBasis:48,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},errorText:{marginTop:8,fontSize:12},winSection:{marginTop:16,borderTopWidth:1,paddingTop:12},winHeader:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},winHeaderText:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},winRows:{marginTop:6,gap:8},winRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},winRowLeft:{flex:1,minWidth:0,gap:3},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 Pl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:l,selectedGame:d,selectedPropositionCount:h,handlePropositionCountChange:u,setExpectedCorrect:g,setBetAmount:f,setSelectedRuleId:p,quickPickGame:y,goToSportSelection:m}=sr(),b=l.colors,w=ae(l),x=se(l),k=R(l),S=j(l),{width:C}=(0,s.useWindowDimensions)(),B=C>=640,[z,F]=(0,a.useState)(!1),v=(0,a.useMemo)(()=>r??qn(d),[r,d]),[W,T]=(0,a.useState)(()=>v?.defaultModeId??"extra_shot"),[A,L]=(0,a.useState)(()=>{const e=v?.modes.find(e=>e.id===(v?.defaultModeId??"extra_shot"));return e?null!=h&&e.legOptions.includes(h)?h:e.defaultLegs:8}),[D,M]=(0,a.useState)(()=>v?.defaultStake??20);if(!d||!On(d)||!v)return(0,c.jsx)(s.View,{style:[Hl.container,{backgroundColor:b.background}],children:(0,c.jsx)(s.Text,{style:{color:b.textMuted,fontFamily:w},children:"No safety net available."})});const P=v.modes.find(e=>e.id===W)??v.modes[0],H=Nn(D,A,P.allowedMisses,v.pricing),O=e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==v.maxStake?Math.min(t,v.maxStake):t},I=D>=v.minStake,E=(e,t)=>(0,c.jsxs)(s.View,{style:Hl.controlLabelRow,children:[(0,c.jsx)(s.Text,{style:[Hl.controlLabelText,{color:b.textMuted}],children:e}),(0,c.jsx)(s.Text,{style:[Hl.controlValueText,{color:k}],children:t})]}),N=(e,t,n,o)=>(0,c.jsx)(s.TouchableOpacity,{onPress:o,accessibilityRole:"radio",accessibilityState:{selected:n},activeOpacity:.8,style:[Hl.chip,{backgroundColor:n?b.primary:"transparent",borderColor:n?b.primary:b.border}],children:(0,c.jsx)(s.Text,{style:[Hl.chipText,{color:n?b.primaryText:b.textMuted}],children:t})},e),G=[{label:"Perfect",amount:H.perfect},...H.nearMiss.map((e,t)=>({label:`All but ${t+1}`,amount:e}))];return(0,c.jsxs)(s.View,{style:[Hl.container,{backgroundColor:b.background}],children:[n?(0,c.jsx)(s.View,{style:Hl.backRow,children:(0,c.jsx)(fi,{onBack:n,label:i})}):null,(0,c.jsxs)(Le,{style:Hl.inner,children:[(0,c.jsx)(Oi,{eyebrow:o?null:"Choose your safety net",iconUrl:fe(d),gameName:d.game_name,tagline:v.tagline}),(0,c.jsx)(Ui,{}),(0,c.jsxs)(s.View,{style:[Hl.ticket,B&&Hl.ticketWide,{backgroundColor:S,borderColor:b.border,shadowColor:k,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[E("Safety net",P.label),(0,c.jsx)(s.View,{style:Hl.chipRow,children:v.modes.map(e=>N(e.id,e.label,e.id===P.id,()=>(e=>{const t=v.modes.find(t=>t.id===e);t&&(T(e),p(t.ruleId),t.legOptions.includes(A)||L(t.legOptions.reduce((e,t)=>Math.abs(t-A)<Math.abs(e-A)?t:e,t.legOptions[0])))})(e.id)))}),(0,c.jsx)(s.Text,{style:[Hl.modeExplain,B&&Hl.modeExplainWide,{color:b.textMuted}],children:P.explain}),(0,c.jsxs)(s.View,{style:Hl.legsBlock,children:[E("Legs",`${A} legs`),(0,c.jsx)(s.View,{style:Hl.chipRow,children:P.legOptions.map(e=>N(e,String(e),e===A,()=>L(e)))}),(0,c.jsxs)(s.View,{style:Hl.hintRow,children:[(0,c.jsx)(s.Text,{style:[Hl.hintText,{color:b.textMuted}],children:"Easier to land"}),(0,c.jsx)(s.Text,{style:[Hl.hintText,{color:b.textMuted}],children:"Bigger prizes"})]})]}),(0,c.jsxs)(s.View,{style:Hl.stakeBlock,children:[E("Stake",mt(D)),(0,c.jsxs)(s.View,{style:[Hl.inputWrap,{borderColor:z?b.borderFocus??b.primary:b.border,backgroundColor:b.backgroundAlt}],children:[(0,c.jsx)(s.Text,{style:[Hl.inputPrefix,{color:b.textMuted}],children:"$"}),(0,c.jsx)(s.TextInput,{keyboardType:"decimal-pad",placeholder:"Enter stake",placeholderTextColor:b.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>F(!0),onBlur:()=>F(!1),value:D?String(D):"",onChangeText:e=>{if(""===e)return void M(0);const t=Number(e);Number.isFinite(t)&&M(O(t))},style:[Hl.input,{color:b.textAlt??b.text,fontFamily:w}]})]}),(0,c.jsx)(s.View,{style:Hl.chipRow,children:v.quickAdds.map(e=>(0,c.jsx)(s.TouchableOpacity,{onPress:()=>M(O((D||0)+e)),activeOpacity:.8,style:[Hl.stakeChip,{backgroundColor:"transparent",borderColor:b.border}],children:(0,c.jsxs)(s.Text,{style:[Hl.chipText,{color:b.textMuted}],children:["+$",e]})},e))}),!I&&D>0?(0,c.jsxs)(s.Text,{style:[Hl.errorText,{color:b.error}],children:["Minimum stake is ",mt(v.minStake),"."]}):null]}),(0,c.jsxs)(s.View,{style:[Hl.prizeBlock,{borderTopColor:Pi(k,.08)}],children:[(0,c.jsxs)(s.View,{style:Hl.prizeCaptionRow,children:[(0,c.jsx)(s.Text,{style:[Hl.prizeCaption,{color:b.textMuted}],children:"What you can win"}),(0,c.jsxs)(s.Text,{style:[Hl.prizeCaption,{color:b.textMuted}],children:[mt(D)," returns"]})]}),(0,c.jsxs)(s.View,{style:Hl.prizeRows,children:[G.map(e=>(0,c.jsxs)(s.View,{style:Hl.prizeRow,children:[(0,c.jsx)(s.Text,{style:[Hl.prizeRowLabel,B&&Hl.prizeRowLabelWide,{color:b.text}],children:e.label}),(0,c.jsx)(s.Text,{style:[Hl.prizeRowAmount,B&&Hl.prizeRowAmountWide,{color:b.primary,fontFamily:x}],children:mt(Math.round(e.amount))})]},e.label)),(0,c.jsxs)(s.View,{style:[Hl.sweepRow,{backgroundColor:b.primary}],children:[(0,c.jsxs)(s.View,{style:Hl.sweepLeft,children:[(0,c.jsx)(s.Text,{style:[Hl.sweepLabel,B&&Hl.sweepLabelWide,{color:b.primaryText,fontFamily:x}],children:"Clean sweep"}),(0,c.jsx)(s.Text,{style:[Hl.sweepSub,{color:b.primaryText}],children:"every leg right — all prizes"})]}),(0,c.jsx)(s.Text,{style:[Hl.sweepAmount,B&&Hl.sweepAmountWide,{color:b.primaryText,fontFamily:x}],children:mt(Math.round(H.sweep))})]})]}),(0,c.jsx)(s.Text,{style:[Hl.stakeNote,{color:b.textMuted}],children:"Total returns, stake included."}),(0,c.jsxs)(s.Text,{style:[Hl.missNote,{color:b.textMuted}],children:["Miss ",1===P.allowedMisses?"two":"three"," or more and the ticket does not pay."]})]})]}),(0,c.jsxs)(s.View,{style:[Hl.modeCards,B&&Hl.modeCardsWide],children:[(0,c.jsx)(s.View,{style:B?Hl.modeCardCell:void 0,children:(0,c.jsx)(Yi,{tile:(0,c.jsx)(Hi,{iconUrl:fe(d),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{I&&(p(P.ruleId),u(A),g(A-P.allowedMisses),f(D),m(),t?.())}})}),(0,c.jsx)(s.View,{style:B?Hl.modeCardCell:void 0,children:(0,c.jsx)(Yi,{tile:(0,c.jsx)(Hi,{iconUrl:`${ce}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{I&&(p(P.ruleId),g(A-P.allowedMisses),f(D),y(d,A,D),e?.())}})})]})]})]})}var Hl=s.StyleSheet.create({container:{flex:1},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},headerCompact:{paddingHorizontal:12},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},sectionTitleCompact:{fontSize:10,letterSpacing:1.4,marginBottom:12},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 Ol({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:l,selectedGame:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:g,setSelectedRuleId:f,quickPickGame:p,goToSportSelection:y}=sr(),m=l.colors,b=ae(l),w=se(l),x=R(l),k=j(l),S=O(m.primary,H(l),m.primaryText),{width:C}=(0,s.useWindowDimensions)(),B=C>=640,z=(0,a.useMemo)(()=>r??$o(d),[r,d]),[F,v]=(0,a.useState)(()=>z?.defaultUnit??10),[W,T]=(0,a.useState)(Zo);if(!d||!qo(d)||!z)return(0,c.jsx)(s.View,{style:[Il.container,{backgroundColor:m.background}],children:(0,c.jsx)(s.Text,{style:{color:m.textMuted,fontFamily:b},children:"No card available."})});const A=Xo(F,W,z),L=1*F,D=F>z.unitMin,M=F<z.unitMax,P=e=>v(t=>Math.min(z.unitMax,Math.max(z.unitMin,t+e*z.unitStep))),I=()=>{f(A.ruleId),u(A.lowestWinningCount),g(A.stake)},E=(e,t)=>(0,c.jsxs)(s.View,{style:Il.controlLabelRow,children:[(0,c.jsx)(s.Text,{style:[Il.controlLabelText,{color:m.textMuted}],children:e}),(0,c.jsx)(s.Text,{style:[Il.controlValueText,{color:x}],children:t})]}),N=(e,t,n,o)=>(0,c.jsx)(s.TouchableOpacity,{onPress:n,disabled:!t,accessibilityRole:"button",accessibilityLabel:o,activeOpacity:.8,style:[Il.stepButton,{backgroundColor:m.primary,opacity:t?1:.35}],children:(0,c.jsx)(s.Text,{style:[Il.stepButtonText,{color:m.primaryText}],children:e})}),G={golden_point:`Go for the decider. Double your win to ${mt(F*z.baseMultiple*z.goldenPointFactor)}.`,captains_challenge:`Collect ${mt(F*z.challengeMultiple)} whenever you land ${z.legs-z.challengeMisses} or ${z.legs} of ${z.legs}. Stacks on a winning slip.`};return(0,c.jsxs)(s.View,{style:[Il.container,{backgroundColor:m.background}],children:[n?(0,c.jsx)(s.View,{style:Il.backRow,children:(0,c.jsx)(fi,{onBack:n,label:i})}):null,(0,c.jsxs)(Le,{style:Il.inner,children:[(0,c.jsx)(Oi,{eyebrow:o?null:"Set your play",iconUrl:fe(d),gameName:d.game_name,tagline:z.tagline}),(0,c.jsx)(Ui,{}),(0,c.jsxs)(s.View,{style:[Il.ticket,B&&Il.ticketWide,{backgroundColor:k,borderColor:m.border,shadowColor:x,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[(0,c.jsxs)(s.View,{style:[Il.playCard,{backgroundColor:m.primary}],children:[(0,c.jsxs)(s.View,{style:Il.playCardSide,children:[(0,c.jsx)(s.Text,{style:[Il.playCardKey,{color:m.primaryText}],children:"Total stake"}),(0,c.jsx)(s.Text,{style:[Il.playCardStake,{color:m.primaryText,fontFamily:w}],children:mt(A.stake)})]}),(0,c.jsxs)(s.View,{style:[Il.playCardSide,Il.playCardRight],children:[(0,c.jsx)(s.Text,{style:[Il.playCardKey,{color:m.primaryText}],children:"To win"}),(0,c.jsxs)(s.View,{style:Il.playCardWinRow,children:[(0,c.jsx)(s.Text,{style:[Il.playCardWin,{color:S,fontFamily:w}],children:mt(A.base)}),A.challenge>0?(0,c.jsxs)(s.Text,{style:[Il.playCardChip,{backgroundColor:S,color:x}],children:["+",mt(A.challenge)]}):null]})]})]}),(0,c.jsxs)(s.View,{style:Il.stakeBlock,children:[E("Your stake",`steps of ${mt(z.unitStep)}`),(0,c.jsxs)(s.View,{style:Il.stepRow,children:[N("−",D,()=>P(-1),"Lower stake"),(0,c.jsxs)(s.View,{style:Il.stepMid,children:[(0,c.jsx)(s.Text,{style:[Il.stepValue,{color:x,fontFamily:w}],children:mt(F)}),(0,c.jsx)(s.Text,{style:[Il.stepCaption,{color:m.textMuted}],children:"per play"})]}),N("+",M,()=>P(1),"Raise stake")]})]}),(0,c.jsx)(s.Text,{style:[Il.playNote,{color:m.primary}],children:A.challenge>0?`Captain's Challenge pays ${mt(A.challenge)} on ${z.legs-z.challengeMisses} or ${z.legs} of ${z.legs}.`:""}),(0,c.jsxs)(s.View,{style:Il.boostBlock,children:[E("Boost your card",`${mt(L)} each`),(0,c.jsx)(s.View,{style:Il.boostRows,children:z.boosts.map(e=>{const t=W[e.id];return(0,c.jsxs)(s.TouchableOpacity,{onPress:()=>{return t=e.id,T(e=>({...e,[t]:!e[t]}));var t},accessibilityRole:"switch",accessibilityState:{checked:t},activeOpacity:.85,style:[Il.boostRow,{backgroundColor:t?Pi(m.primary,.08):"transparent",borderColor:t?m.primary:m.border}],children:[(0,c.jsxs)(s.View,{style:Il.boostBody,children:[(0,c.jsxs)(s.View,{style:Il.boostTitleRow,children:[(0,c.jsx)(s.Text,{style:[Il.boostLabel,B&&Il.boostLabelWide,{color:x,fontFamily:w}],children:e.label}),(0,c.jsx)(s.View,{style:[Il.boostAmt,{backgroundColor:Pi(m.primary,.12)}],children:(0,c.jsxs)(s.Text,{style:[Il.boostAmtText,{color:m.primary}],children:["+",mt(L*e.costUnits)]})})]}),(0,c.jsx)(s.Text,{style:[Il.boostSub,B&&Il.boostSubWide,{color:m.textMuted}],children:G[e.id]})]}),(0,c.jsx)(s.View,{style:[Il.toggle,{backgroundColor:t?m.primary:m.border}],children:(0,c.jsx)(s.View,{style:[Il.toggleKnob,{backgroundColor:m.background,transform:[{translateX:t?20:0}]}]})})]},e.id)})})]})]}),(0,c.jsxs)(s.View,{style:[Il.modeCards,B&&Il.modeCardsWide],children:[(0,c.jsx)(s.View,{style:B?Il.modeCardCell:void 0,children:(0,c.jsx)(Yi,{tile:(0,c.jsx)(Hi,{iconUrl:fe(d),size:60}),label:`Pick my ${z.legs}`,stat:"Your calls",detail:["A clean yes or no on every call","You read the games, you make the calls"],onSelect:()=>{I(),h(z.legs),y(),t?.()}})}),(0,c.jsx)(s.View,{style:B?Il.modeCardCell:void 0,children:(0,c.jsx)(Yi,{tile:(0,c.jsx)(Hi,{iconUrl:`${ce}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${z.legs} calls for you`,"Straight to the bet slip"],onSelect:()=>{I(),p(d,z.legs,A.stake),e?.()}})})]})]})]})}var Il=s.StyleSheet.create({container:{flex:1},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},headerCompact:{paddingHorizontal:12},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},sectionTitleCompact:{fontSize:10,letterSpacing:1.4,marginBottom:12},ticket:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},ticketWide:{paddingHorizontal:20,paddingVertical:20},playCard:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:16,paddingHorizontal:16,paddingVertical:14},playCardSide:{minWidth:0,flexShrink:1},playCardRight:{alignItems:"flex-end"},playCardKey:{fontSize:11,fontWeight:"600",opacity:.72},playCardStake:{fontSize:24,fontWeight:"800"},playCardWinRow:{flexDirection:"row",alignItems:"baseline",gap:6},playCardWin:{fontSize:26,fontWeight:"800",lineHeight:28},playCardChip:{fontSize:11,fontWeight:"800",borderRadius:6,paddingHorizontal:6,paddingVertical:2,overflow:"hidden"},stakeBlock:{marginTop:12},playNote:{marginTop:8,minHeight:16,fontSize:11,fontWeight:"700",textAlign:"center"},controlLabelRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",marginBottom:8},controlLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},controlValueText:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},stepRow:{flexDirection:"row",alignItems:"center",gap:12},stepButton:{width:44,height:44,borderRadius:12,alignItems:"center",justifyContent:"center"},stepButtonText:{fontSize:24,fontWeight:"800",lineHeight:26},stepMid:{flex:1,alignItems:"center"},stepValue:{fontSize:24,fontWeight:"800",fontVariant:["tabular-nums"]},stepCaption:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:.8},boostBlock:{marginTop:16},boostRows:{gap:8},boostRow:{flexDirection:"row",alignItems:"center",gap:12,borderWidth:1,borderRadius:16,paddingHorizontal:12,paddingVertical:12},boostBody:{flex:1,minWidth:0},boostTitleRow:{flexDirection:"row",alignItems:"center",gap:8},boostLabel:{fontSize:14,fontWeight:"800"},boostLabelWide:{fontSize:15},boostAmt:{borderRadius:6,paddingHorizontal:6,paddingVertical:2},boostAmtText:{fontSize:10,fontWeight:"800",fontVariant:["tabular-nums"]},boostSub:{fontSize:11,lineHeight:15,marginTop:4},boostSubWide:{fontSize:12,lineHeight:16},toggle:{width:48,height:28,borderRadius:999,justifyContent:"center",paddingHorizontal:3},toggleKnob:{width:22,height:22,borderRadius:11},modeCards:{marginTop:16,gap:12},modeCardsWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},modeCardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function El({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,backLabel:r="Games"}){const{theme:i,selectedGame:l,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,quickPickGame:g,goToSportSelection:f}=sr(),p=i.colors,y=ae(i),{width:m}=(0,s.useWindowDimensions)(),b=m>=640,w=(0,a.useMemo)(()=>{if(!l)return[];if(l.allowed_propositions&&l.allowed_propositions.length>0)return[...l.allowed_propositions].sort((e,t)=>e-t);const{min:e,max:t}=Wt(l);return Xt(e,t)},[l]),x=tr(l),k=w[0]??0,S=w[w.length-1]??0,[C]=(0,a.useState)(()=>null!=d&&w.includes(d)?d:S),B=(0,a.useMemo)(()=>Jn(l,C||void 0),[l,C]);if(!l||0===w.length||"exact"!==B?.kind)return(0,c.jsx)(s.View,{children:(0,c.jsx)(s.Text,{style:{color:p.textMuted,fontFamily:y},children:"No setup available."})});const z=x?["Any yes/no props in the pool",`Pick ${k}–${S} legs — all must land`]:["A clean yes or no on every leg",`All ${C} have to land`],F=x?[`We fill ${C} legs across any markets`,"Straight to the bet slip"]:[`We fill all ${C} legs for you`,"Straight to the bet slip"];return(0,c.jsxs)(s.View,{style:jl.container,children:[n?(0,c.jsx)(s.View,{style:jl.backRow,children:(0,c.jsx)(fi,{onBack:n,label:r})}):null,(0,c.jsxs)(Le,{style:jl.inner,children:[(0,c.jsx)(Oi,{eyebrow:o?null:B.title,iconUrl:fe(l),gameName:l.game_name,tagline:B.heroTagline}),(0,c.jsx)(Ui,{}),(0,c.jsxs)(s.View,{style:[jl.cardList,b&&jl.cardListWide],children:[(0,c.jsx)(s.View,{style:b?jl.cardCell:void 0,children:(0,c.jsx)(Yi,{tile:(0,c.jsx)(Hi,{iconUrl:fe(l),size:60}),label:"Pick my own",stat:"Your calls",detail:z,onSelect:()=>{x||(h(C),u(C)),f(),t?.()}})}),(0,c.jsx)(s.View,{style:b?jl.cardCell:void 0,children:(0,c.jsx)(Yi,{tile:(0,c.jsx)(Hi,{iconUrl:`${ce}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:F,onSelect:()=>{u(C),g(l,C),e?.()}})})]})]})]})}var jl=s.StyleSheet.create({container:{flex:1,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},tagline:{fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384,marginTop:12},taglineWide:{fontSize:15,lineHeight:24},cardList:{gap:12},cardListWide:{flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},cardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});exports.BladeApiClient=yo,exports.BrandLockup=function({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0}){const{theme:i}=sr(),l=R(i),a=H(i),d=i.colors.primaryHover??function(e){const t=/^#([0-9a-f]{6})$/i.exec((e??"").trim());if(!t)return e;const n=parseInt(t[1],16);return`rgba(${n>>16&255}, ${n>>8&255}, ${255&n}, 0.7)`}(l),h=se(i)??"Manrope, Poppins, sans-serif",u=n&&n.length>0?n:t.split(/\s+/),g=.72*o,f=.5*o,p=Math.min(.62*o/u.length,.3*o);return(0,c.jsxs)(s.View,{accessible:!0,accessibilityRole:"image",accessibilityLabel:`YESNO ${t}`,style:{flexDirection:"row",alignItems:"center",gap:.22*o},children:[(0,c.jsx)(en,{iconUrl:e,width:g,height:g,iconColor:l,accentColor:a}),(0,c.jsxs)(s.Text,{style:{fontFamily:h,fontSize:f,letterSpacing:.045*-f,lineHeight:f,color:l,includeFontPadding:!1},children:[(0,c.jsx)(s.Text,{style:{fontWeight:"800"},children:"YES"}),(0,c.jsx)(s.Text,{style:{fontWeight:"600"},children:"NO"})]}),(0,c.jsx)(s.View,{style:{width:Math.max(2,Math.round(.045*o)),height:.78*o,backgroundColor:d}}),(0,c.jsx)(s.View,{style:{flexDirection:"column"},children:u.map((e,t)=>(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"flex-start"},children:[(0,c.jsx)(s.Text,{style:{fontFamily:h,fontSize:p,fontWeight:"500",letterSpacing:.012*-p,lineHeight:1.14*p,color:l,includeFontPadding:!1},children:e}),r&&t===u.length-1?(0,c.jsx)(s.Text,{style:{fontFamily:h,fontSize:.36*p,fontWeight:"500",color:l,marginLeft:1},children:"™"}):null]},`${e}-${t}`))})]})},exports.CHALLENGE_MISSES=1,exports.CHALLENGE_MULTIPLE=5,exports.CategoryIcon=Ve,exports.CategoryPickerPage=wi,exports.CategoryPickerPageActions=function({onCancel:e}){const{theme:t,screenSize:n}=sr(),o=t.colors;return e&&"mobile"!==n?(0,c.jsx)(s.View,{style:xi.footer,children:(0,c.jsx)(s.TouchableOpacity,{onPress:e,style:[xi.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:(0,c.jsx)(s.Text,{style:[xi.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null},exports.CategoryPickerPageTitle=bi,exports.ChevronRightIcon=Ue,exports.ConfirmPage=function({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,hideTitle:r,hideActions:i}){const l=sr(),{theme:d,selectedGame:h,selectedPropositions:u,selections:g,propositions:f,selectedPropositionCount:p,selectedEventId:y,expectedCorrect:m,setExpectedCorrect:b,betAmount:w,setBetAmount:x,submitting:k,submitError:S,canSubmit:C,winningCounts:B,payouts:z,overloadPayouts:F,renderTeamLogo:v,userBalance:W,onRecharge:T,goBack:A,toggleSelection:L,upgradePropositionCount:D,goToSportSelection:M,selectedRule:P}=l,H=d.colors,{width:O}=(0,s.useWindowDimensions)(),I=O>=640;if((0,a.useEffect)(()=>{h||(M(),e?.())},[h,M,e]),!h)return null;const E=!!(h.allowed_propositions&&h.allowed_propositions.length>0),j=Wt(h,p,P),N=j.min,G=xn(h)&&y?Math.min(j.max,f.length):j.max,Y=Object.keys(g).length,V=N>0&&Y<N,U=!E&&N>0&&G>N&&Y>=N&&Y<G,K=E?[...h.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(p??0)):[],q=E&&K.length>0&&!V,Z=U||q,X=G-Y;H.textAlt??H.text;const Q=()=>{A(),e?.()},J=(E?[...h.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===Y&&e<(p??1/0)),$=E&&Y<Math.min(...h.allowed_propositions??[1/0]),_=E&&V&&!$,ee=nr(h),te=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 s=n-l;return`Get ${l} of your ${n} picks right to win — up to ${1===s?"one miss":`${s} misses`} still pays.`}(P,B,Y,z),ne=z[Y]||ir(h,Y,w),oe=(B??[]).length>1?"Top prize":"That pays",re=null!=J?ee.belowRequiredHint(J,p??N):ee.belowRequiredAddOnlyHint(p??N);return(0,a.useEffect)(()=>{!V||E&&!$||Q()},[V,E,$]),(0,c.jsxs)(s.View,{style:il.container,children:[!r&&(0,c.jsx)(s.View,{style:{marginBottom:24},children:(0,c.jsx)(rl,{onBack:e,hideActions:i})}),(0,c.jsx)(s.View,{style:il.content,children:(0,c.jsx)(ei,{game:h,propositions:u,selections:g,onToggleSelection:L,onRemoveSelection:()=>{},onSubmit:async()=>{n?(await l.handleSubmit(),t?.()):o?.(ol(l))},onBack:Q,loading:k,error:S,expectedCorrect:m,onExpectedCorrectChange:b,betAmount:w,onBetAmountChange:x,theme:d,showCustomAmount:!0,betAmountLocked:or(h),betAmountLockedNote:rr(h),hideActions:!0,winningCounts:B,payouts:z,renderTeamLogo:v,canSubmit:C,authenticated:n,userBalance:W,onRecharge:T,boostBanner:(0,c.jsxs)(c.Fragment,{children:[(te||ne>0)&&(0,c.jsxs)(s.View,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${H.primary}30`,backgroundColor:`${H.primary}08`,marginBottom:12},children:[(0,c.jsx)(s.Text,{style:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1,color:H.textMuted,marginBottom:4},children:"How you win"}),te&&(0,c.jsx)(s.Text,{style:{fontSize:I?14:12,color:H.text},children:te}),ne>0&&(0,c.jsxs)(s.Text,{style:{fontSize:I?14:12,color:H.textMuted,marginTop:6},children:[`${oe} `,(0,c.jsx)(s.Text,{style:{fontWeight:"700",color:R(d)},children:mt(ne)})]})]}),_&&(0,c.jsxs)(s.View,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${H.warning}40`,backgroundColor:`${H.warning}10`,flexDirection:I?"row":"column",alignItems:I?"center":"flex-start",justifyContent:"space-between",gap:12},children:[(0,c.jsxs)(s.Text,{style:{fontSize:I?14:12,color:H.text,flexShrink:1},children:["You have ",(0,c.jsxs)(s.Text,{style:{fontWeight:"700"},children:[Y," pick",1!==Y?"s":""]}),`. ${re}`]}),(0,c.jsxs)(s.View,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[(0,c.jsx)(s.TouchableOpacity,{onPress:Q,style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:H.buttonSecondary},children:(0,c.jsx)(s.Text,{style:{fontSize:12,fontWeight:"600",color:H.buttonSecondaryText},children:"Add a pick"})}),null!=J&&(0,c.jsx)(s.TouchableOpacity,{onPress:()=>D(J),style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:H.buttonPrimary},children:(0,c.jsx)(s.Text,{style:{fontSize:12,fontWeight:"600",color:H.buttonPrimaryText},children:ee.switchTierLabel(J)})})]})]}),Z&&(0,c.jsx)(s.View,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${H.primary}30`,backgroundColor:`${H.primary}08`},children:q?(()=>{const e=p??Y,t=F[e],n=w>0?w:20,o=null!=t&&t>0?t*(n/20):null;return(0,c.jsxs)(s.View,{children:[(0,c.jsx)(s.Text,{style:{fontSize:14,fontWeight:"600",color:H.primary,marginBottom:4},children:ee.overloadTitle}),null!=o&&(0,c.jsxs)(s.Text,{style:{fontSize:12,color:H.textMuted,marginBottom:8},children:["Currently winning up to ",(0,c.jsx)(s.Text,{style:{color:H.heading??H.text,fontWeight:"700"},children:mt(o)}),` with ${e} picks`]}),(0,c.jsx)(tl,{tiers:K.map(e=>({count:e,payout20:F[e]??0})),selectedCount:void 0,onSelect:e=>{D(e),Q()},colors:H,bodyFont:l.bodyFont,extraBetAmount:20!==n?n:void 0,columnLabel:ee.tableColumnLabel,buttonLabel:ee.tierButtonLabel})]})})():(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,c.jsxs)(s.Text,{style:{fontSize:12,color:H.textMuted,flex:1},children:[1===X?"Add ":"Add up to ",(0,c.jsxs)(s.Text,{style:{color:H.primary,fontWeight:"700"},children:[X," more pick",1!==X?"s":""]})]}),(0,c.jsx)(s.TouchableOpacity,{onPress:Q,style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:H.buttonPrimary},children:(0,c.jsx)(s.Text,{style:{fontSize:12,fontWeight:"600",color:H.buttonPrimaryText},children:"Add picks"})})]})})]})})}),i&&S?(0,c.jsx)(s.View,{style:{marginTop:12,alignItems:"flex-end"},children:(0,c.jsx)(s.Text,{style:[il.errorText,{color:H.error}],children:S})}):null]})},exports.ConfirmPageActions=function({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o}){const r=sr(),{theme:i,selectedGame:l,expectedCorrect:a,betAmount:d,submitting:h,submitError:u,canSubmit:g,payouts:f,selectedPropositionIds:p,screenSize:y}=r,m=i.colors,{width:b}=(0,s.useWindowDimensions)(),w=b>=640;if(!l)return null;const x=f[a]??0,k=Tt(l),S=a===p.length,C=k?.enabled&&S,B=e&&"mobile"!==y;return(0,c.jsxs)(s.View,{style:il.footer,children:[B&&(0,c.jsx)(ve,{theme:i,variant:"secondary",onPress:e,children:"Back"}),(0,c.jsxs)(s.View,{style:il.footerRight,children:[u?(0,c.jsx)(s.Text,{style:[il.errorText,{color:m.error}],children:u}):null,(x>0||C)&&w&&(0,c.jsxs)(s.View,{style:il.payoutInfo,children:[(0,c.jsx)(s.Text,{style:[il.payoutLabel,{color:m.textMuted}],children:"Potential winnings"}),(0,c.jsxs)(s.Text,{style:[il.payoutAmount,{color:m.heading??m.text}],children:[mt(x),C?(0,c.jsx)(s.Text,{style:{color:m.warning},children:" + Jackpot"}):null]})]}),(0,c.jsx)(ve,{theme:i,variant:"primary",disabled:!g,onPress:async()=>{n?(await r.handleSubmit(),t?.()):o?.(ol(r))},children:n?h?"Placing…":`Place Entry (${mt(d)})`:"Log in to place entry"})]})]})},exports.ConfirmPageTitle=rl,exports.DOUBLE_SHOT_MIN_LEGS=6,exports.EXTRA_SHOT_MIN_LEGS=4,exports.EntriesPage=function({onSelectEntry:e,onBack:t,hideTitle:n,hideActions:o}){const{theme:r,apiUrl:i,apiKey:l,fetchImpl:a,getAuthHeaders:d,userId:h,demoEntries:u,demoGames:g,demoPropositions:f,renderTeamLogo:p,filterSport:y}=sr();return(0,c.jsxs)(s.View,{style:dl.container,children:[!n&&(0,c.jsx)(s.View,{style:{marginBottom:24},children:(0,c.jsx)(cl,{onBack:t,hideActions:o})}),(0,c.jsx)(s.View,{style:dl.content,children:(0,c.jsx)(si,{apiUrl:i,apiKey:l,fetchImpl:a,getAuthHeaders:d,userId:h,demoEntries:u,demoGames:g,demoPropositions:f,onSelectEntry:e,theme:r,renderTeamLogo:p,filterSport:y})})]})},exports.EntriesPageTitle=cl,exports.EntrySubmission=ei,exports.EventFilterBanner=hi,exports.EventPickerPage=Ci,exports.EventSwipeModal=Fr,exports.FilterChipCarousel=_e,exports.FilterChipRow=et,exports.GAME_TIER_LEVEL=Tn,exports.GAME_TIER_TABS=An,exports.GOLDEN_POINT_FACTOR=2,exports.GameEntries=si,exports.GameLogo=Wi,exports.GamePage=function({onSelectGame:e,onGameSetup:t,onRuleSetup:n,onGameSetBet:o,onPickYourDividend:r,onLadder:i,onMirror:l,onSafetyNet:d,onQuickPick:h,onCancel:u,hideTitle:g,hideActions:f,showPerfectPickSetup:p=!1,showTierFilter:y=!1}){const m=sr(),{theme:b,games:w,loading:x,error:k,selectedGame:S,selectedPropositionCount:C,handlePropositionCountChange:B,maxPayouts:z}=m;b.colors;const F=a.default.useRef(S);F.current=S;const{width:v}=(0,s.useWindowDimensions)(),W=v>=640;return(0,c.jsxs)(s.View,{style:mi.container,children:[!g&&(0,c.jsx)(s.View,{style:{marginBottom:W?24:16},children:(0,c.jsx)(yi,{onBack:u,hideActions:f})}),(0,c.jsx)(hi,{}),(0,c.jsx)(s.View,{style:mi.content,children:(0,c.jsx)(fo,{games:w,selectedGame:S,onSelectGame:e=>{F.current=e,m.selectGame(e)},loading:x,error:k,theme:b,showTierFilter:y,selectedPropositionCount:C,onPropositionCountChange:B,onPropositionCountSelected:()=>{const a=F.current;if("rule_setup"===_o(a)&&tr(a)&&!p)return m.goToSportSelection(),void e?.();const s=_o(a);if("quick_pick"===s||"selections"===s)return m.goToSportSelection(),void e?.();t?t(s):({game_set:o,pick_your_dividend:r,ladder:i,mirror:l,safety_net:d,rule_setup:n}[s]??n)?.()},onQuickPickGame:(e,t)=>{m.quickPickGame(e,t),h?.()},maxPayouts:z})})]})},exports.GamePageActions=function({onCancel:e,onSelectGame:t}){const{theme:n,screenSize:o}=sr(),r=n.colors;return e&&"mobile"!==o?(0,c.jsx)(s.View,{style:[mi.footer],children:(0,c.jsx)(s.TouchableOpacity,{onPress:e,style:[mi.secondaryBtn,{backgroundColor:r.buttonSecondary}],children:(0,c.jsx)(s.Text,{style:[mi.secondaryBtnText,{color:r.buttonSecondaryText}],children:"Cancel"})})}):null},exports.GamePageTitle=yi,exports.GameSelector=fo,exports.GameSetBetPage=zl,exports.GameSetBetPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=sr(),r=se(n),i=n.colors,{width:l}=(0,s.useWindowDimensions)(),a=l<640;return(0,c.jsxs)(s.View,{style:[Fl.header,a&&Fl.headerCompact],children:[(0,c.jsx)(s.Text,{style:[Fl.sectionTitle,a&&Fl.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"The fastest multi"}),(0,c.jsx)(pi,{onBack:e,hideActions:t,label:o?.game_name})]})},exports.GameSetupPage=function({onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r="Games"}){const{theme:i,selectedGame:l,goToSportSelection:a,bodyFont:d}=sr(),h={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r};switch(_o(l)){case"game_set":return(0,c.jsx)(zl,{...h});case"pick_your_dividend":return(0,c.jsx)(vl,{...h});case"ladder":return(0,c.jsx)(Tl,{...h});case"mirror":return(0,c.jsx)(Dl,{...h});case"safety_net":return(0,c.jsx)(Pl,{...h});case"six_again":return(0,c.jsx)(Ol,{...h});case"rule_setup":return"exact"===Jn(l)?.kind?(0,c.jsx)(El,{...h}):(0,c.jsx)(Cl,{onBack:n,hideTitle:o,backLabel:r,onContinue:()=>{a(),e?.()}});default:return(0,c.jsx)(s.View,{children:(0,c.jsx)(s.Text,{style:{color:i.colors.textMuted,fontFamily:d},children:"No setup required — this game goes straight to picks."})})}},exports.HowToPlayButton=Ge,exports.HowToPlayPanel=He,exports.LADDER_FAMILY=Ro,exports.LADDER_REFERENCE_BET=50,exports.LADDER_STAKES=Ao,exports.LadderPage=Tl,exports.LadderPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=sr(),r=se(n),i=n.colors;return(0,c.jsxs)(s.View,{style:Al.titleWrap,children:[(0,c.jsx)(s.Text,{style:[Al.eyebrow,{color:i.primary,fontFamily:r}],children:"Every step pays"}),(0,c.jsx)(pi,{onBack:e,hideActions:t,label:o?.game_name})]})},exports.LockIcon=Ke,exports.MIRROR_STANDARD_MARGIN=.21875,exports.MirrorPage=Dl,exports.MirrorPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=sr(),r=se(n),i=n.colors;return(0,c.jsxs)(s.View,{style:Ml.header,children:[(0,c.jsx)(s.Text,{style:[Ml.eyebrow,{color:i.primary,fontFamily:r}],children:"All right, or all wrong"}),(0,c.jsx)(pi,{onBack:e,hideActions:t,label:o?.game_name})]})},exports.NO_BOOSTS=Zo,exports.PYD_LEG_RUNGS=eo,exports.PYD_RETAIL_DIVIDENDS=_n,exports.PayoutCircles=function({game:e,totalSelections:t,expectedCorrect:n,onExpectedCorrectChange:o,theme:r=K,colorWinning:i,colorNone:l,winningCounts:h,payouts:u}){const g=r.colors,{width:f}=(0,s.useWindowDimensions)(),p=f>=640,y=i??g.payoutWinning,m=l??g.payoutNone,b=Tt(e),w=p?48:40,[x,k]=(0,a.useState)({width:0,height:0});return(0,c.jsxs)(s.View,{style:ri.container,children:[(0,c.jsx)(s.Text,{style:[ri.title,{color:g.textMuted}],children:"Payout Visualization"}),b.enabled&&(0,c.jsxs)(s.View,{style:[ri.jackpotBanner,{borderColor:`${g.warning}30`}],onLayout:e=>k({width:e.nativeEvent.layout.width,height:e.nativeEvent.layout.height}),children:[x.width>0&&(0,c.jsxs)(d.default,{style:s.StyleSheet.absoluteFill,width:x.width,height:x.height,pointerEvents:"none",children:[(0,c.jsx)(d.Defs,{children:(0,c.jsxs)(d.LinearGradient,{id:"payout-jackpot-grad",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,c.jsx)(d.Stop,{offset:"0%",stopColor:g.warning,stopOpacity:.094}),(0,c.jsx)(d.Stop,{offset:"100%",stopColor:g.warning,stopOpacity:.031})]})}),(0,c.jsx)(d.Rect,{x:0,y:0,width:x.width,height:x.height,fill:"url(#payout-jackpot-grad)"})]}),(0,c.jsx)(d.default,{width:16,height:16,viewBox:"0 0 24 24",style:{flexShrink:0},children:(0,c.jsx)(d.Path,{d:ni,fill:g.warning})}),(0,c.jsx)(s.Text,{style:[ri.jackpotText,{color:g.warning}],children:b.progressive?b.amount>0?`Progressive Jackpot: ${mt(b.amount)}${b.limit>0?` (up to ${mt(b.limit)})`:""} for a perfect pick!`:b.limit>0?`Progressive Jackpot — up to ${mt(b.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${mt(b.amount)} for a perfect pick!`})]}),(0,c.jsx)(s.View,{style:[ri.circleGrid,{gap:p?8:6}],children:Array.from({length:t+1},(e,r)=>{const i=h.includes(r),l=u[r]??0,a=r===t,s=b.enabled&&a,d=s?g.warning:i?y:m,f=r===n,x=s?b.progressive?`${r} correct wins progressive jackpot${b.amount>0?` (currently ${mt(b.amount)})`:""}${b.limit>0?` up to ${mt(b.limit)}`:""} plus ${mt(l)}`:`${r} correct wins jackpot ${mt(b.amount)} plus ${mt(l)}`:i?`${r} correct wins ${mt(l)}`:l>0?`${r} correct pays ${mt(l)} but does not win`:`${r} correct — no payout`,k=o?`${x}. Tap to select`:x;return(0,c.jsx)(oi,{index:r,size:w,wide:p,isWinning:i,isJackpot:s,isSelected:f,bgColor:d,borderFallback:g.border,warning:g.warning,primary:g.primary,textMuted:g.textMuted,payout:l,onPress:o?()=>o(r):void 0,accessibilityLabel:k},r)})}),(0,c.jsxs)(s.Text,{style:[ri.expectedText,{color:g.textMuted}],children:["Your expected: ",(0,c.jsxs)(s.Text,{style:ri.expectedBold,children:[n," correct"]})]})]})},exports.PerfectPickPage=El,exports.PerfectPickPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=sr(),r=se(n),i=n.colors;return(0,c.jsxs)(s.View,{style:jl.header,children:[(0,c.jsx)(s.Text,{style:[jl.eyebrow,{color:i.primary,fontFamily:r}],children:"All or nothing"}),(0,c.jsx)(pi,{onBack:e,hideActions:t,label:o?.game_name})]})},exports.PickYourDividendPage=vl,exports.PickYourDividendPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=sr(),r=se(n),i=n.colors;return(0,c.jsxs)(s.View,{style:Wl.titleWrap,children:[(0,c.jsx)(s.Text,{style:[Wl.eyebrow,Wl.eyebrowLeft,{color:i.primary,fontFamily:r}],children:"The dividend is set"}),(0,c.jsx)(pi,{onBack:e,hideActions:t,label:o?.game_name})]})},exports.PlaceEntryProvider=function({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,getUserBalance:i,children:l,theme:s,colorScheme:d,demoGames:h,demoPropositions:u,demoEntries:g,demoMaxPayouts:f,gameCategory:p,jurisdiction:y,initialGameId:m,filterSport:b,initialSport:w,initialEventId:x,initialEventLabel:k,sportBaseKey:S,disableQuickPick:C=!1,renderTeamLogo:B,renderPropositionSilk:z,selectionVariant:F,disableEventSwipe:v,enableSportFavourites:W,onEntryPlaced:T,onBeforeSubmit:A,onCancel:R,onShare:L,onRecharge:D,onClearEventFilter:M,screenSize:P="desktop",howToPlayMarkdown:H,sportDisplayNames:O,categoryDisplayNames:I}){const E=le(s,d),j=ae(E),N=se(E),G=!(!h||!u),Y=(0,a.useMemo)(()=>new yo({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),[V,U]=(0,a.useState)(0),K=(0,a.useRef)(0),[q,Z]=(0,a.useState)(0),[X,Q]=(0,a.useState)([]),[J,$]=(0,a.useState)({}),[_,ee]=(0,a.useState)({}),[te,ne]=(0,a.useState)(void 0),[oe,re]=(0,a.useState)(null),[ie,ce]=(0,a.useState)(void 0),de=a.default.useCallback(async()=>{if(i)try{const e=await i();"number"==typeof e&&Number.isFinite(e)&&ce(e)}catch(e){}},[i]);(0,a.useEffect)(()=>{i?de():ce(void 0)},[i,de]);const he=(0,a.useRef)(null),ue=(0,a.useRef)(null),[ge,fe]=(0,a.useState)(null),[pe,ye]=(0,a.useState)(w??null),[me,be]=(0,a.useState)(x??null);(0,a.useEffect)(()=>{w&&ye(w)},[w]),(0,a.useEffect)(()=>{be(x??null)},[x]);const[we,xe]=(0,a.useState)(x),ke=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(!x)return xe(void 0),void(ke.current=!1);ke.current||xe(x)},[x]);const Se=p??ge??void 0,Ce=Mt(pe??b??w??void 0,S),Be=Mt(b,S)??b,ze=pe??void 0,{games:Fe,howToPlayMarkdown:ve,loading:We,error:Te}=mo(Y,{category:Se,jurisdiction:y,sport:Ce},{skip:G}),{propositions:Ae,loading:Re,error:Le}=bo(Y,{category:Se,sport:Be,event_id:we},{skip:G}),{sports:De,loading:Me}=wo(Y,{skip:G}),{createEntry:Pe,loading:He,error:Oe,clearSubmitError:Ie}=So(Y),{preview:Ee}=Bo(Y),je=(0,a.useMemo)(()=>Gt((G?h:Fe)??[],{category:Se,sport:Ce??ze,sportBaseKey:S}),[G,h,Fe,Se,Ce,ze,S]),Ne=H??ve??null,{maxPayouts:Ge,refetchGame:Ye}=ko(Y,je??[],{skip:G,betAmount:20}),Ve=G?f??ar:Ge,Ue=G?u:Ae,Ke=b?(Ue??[]).filter(e=>e.sport===b):Ue,qe=(0,a.useMemo)(()=>zt(Ke??[]),[Ke]),Ze=(0,a.useMemo)(()=>Se||(1===qe.length?qe[0]:void 0),[Se,qe]),Xe=(0,a.useMemo)(()=>{const e=Ke??[];return Ze?It(e,{category:Ze,sportBaseKey:S}):e},[Ke,Ze,S]),Qe=(0,a.useMemo)(()=>ze?It(Xe,{sport:ze,sportBaseKey:S}):Xe,[Xe,ze,S]),Je=(0,a.useMemo)(()=>({category:Ze,sport:ze,sportBaseKey:S}),[Ze,ze,S]),$e=(0,a.useMemo)(()=>{const e=(je??[]).filter(e=>e.active);if(!Ze&&qe.length>1)return[];const t=Ze?Gt(e,Je):e;return Ze||ze?function(e,t,n){return n?.category||n?.sport?e.filter(e=>Nt(e,t,n)):e}(t,Qe,Je):t},[je,Qe,Je,Ze,ze,qe.length]),{step:_e,selectedGame:et,selections:tt,placedEntry:nt,setGameOnly:ot,clearSelectedGame:rt,goToSportSelection:at,goToConfirmation:st,goToSuccess:ct,goBack:dt,reset:ht,toggleSelection:ut}=Co(m),gt=a.default.useCallback(()=>{ke.current=!0,xe(void 0),ht(),M?.()},[ht,M]),ft=!!we,pt=ft?k:void 0,yt=!G&&(We||Re||!!et&&Me),mt=G?null:et?Te||Le:Te,bt=(0,a.useMemo)(()=>et?Vt(Qe,et,S):Qe,[et,Qe,S]),wt=(0,a.useMemo)(()=>{const e=et?Vt(Xe,et,S):Xe,t=et?.allowed_sports,n=new Map;for(const o of e){const r=xt(o,e);"Other"!==r&&(t?.length&&!t.includes(r)||n.set(r,(n.get(r)??0)+1))}return Array.from(n.entries()).sort((e,t)=>t[1]-e[1]).map(([e,t])=>({key:e,count:t}))},[et,Xe,S]),kt=(0,a.useMemo)(()=>wt.map(e=>e.key),[wt]),Ct=(0,a.useMemo)(()=>et?bt:Xe,[et,bt,Xe]),Bt=(0,a.useMemo)(()=>It(et?bt:Xe,{category:Ze}),[et,bt,Xe,Ze]),Ft=(0,a.useMemo)(()=>{const e=new Set(kt);return De.filter(t=>e.has(t.key))},[De,kt]),Tt=(0,a.useMemo)(()=>It(bt,{category:Ze,sport:pe}),[bt,Ze,pe]),At=(0,a.useMemo)(()=>{if(!et||!xn(et))return[];const{min:e}=Wt(et,te),t=te??e;return Sn(Tt).filter(e=>e.propositionCount>=t)},[et,te,Tt]),Rt=(0,a.useMemo)(()=>xn(et)?vn(Tt,me):Tt,[et,Tt,me]),Ht=function(e,t){const[n,o]=(0,a.useState)([]),r=(0,a.useRef)(new Set),i=(0,a.useMemo)(()=>{const e=new Map;for(const n of t)e.set(n.id,n);for(const t of n)e.set(t.id,t);return e},[t,n]),l=(0,a.useMemo)(()=>e?function(e){const t=new Set;for(const n of e)if(it(n))for(const e of lt(n))t.add(e);return[...t]}(t).filter(e=>!i.has(e)):[],[e,t,i]);return(0,a.useEffect)(()=>{if(!e||0===l.length)return;const t=l.filter(e=>!r.current.has(e));if(0===t.length)return;for(const e of t)r.current.add(e);let n=!1;return e.getPropositionsByIds(t).then(e=>{!n&&e.length>0&&o(t=>[...t,...e])}).catch(()=>{}),()=>{n=!0}},[e,l]),i}(G?null:Y,Rt),Ot=Object.keys(tt).map(Number),jt=Ot.length,Yt=(0,a.useMemo)(()=>Tt.filter(e=>Ot.includes(e.id)),[Tt,Ot]);(0,a.useEffect)(()=>{p||ge||1===qe.length&&fe(qe[0])},[p,ge,qe]),(0,a.useEffect)(()=>{if(!et)return;const e=bt,t=new Set(e.map(St));let n=ge;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==ge&&fe(n));const o=n?e.filter(e=>St(e)===n):e,r=new Set(function(e){const t=new Set;for(const n of e){const o=xt(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),i=et.allowed_sports;ye(e=>e&&r.has(e)&&(!i?.length||i.includes(e))?e:1===i?.length&&r.has(i[0])?i[0]:1===r.size?Array.from(r)[0]:(()=>{const e=new Map;for(const r of o){const t=xt(r,o);"Other"!==t&&(i?.length&&!i.includes(t)||e.set(t,(e.get(t)??0)+1))}let t=null,n=0;for(const[o,r]of e)r>n&&(t=o,n=r);return t})())},[et?.id,bt,ge]),(0,a.useEffect)(()=>{Ie()},[et?.id,_e,Ie]),(0,a.useEffect)(()=>{et&&Ze&&(Et(et,Ze)||rt())},[et,Ze,rt]),(0,a.useEffect)(()=>{et&&(Nt(et,Qe,{category:Ze,sport:pe,sportBaseKey:S})||rt())},[et,Ze,pe,S,Qe,rt]),(0,a.useEffect)(()=>{if(et){const e=he.current,t=ue.current!==et.id;if(ue.current=et.id,null!=e?.stake&&e.stake>0?Z(e.stake):t&&Z(Math.max(20,et.min_bet??0)),e){const{count:t}=e;return he.current=null,ne(t),void U(t)}if(et.allowed_propositions&&et.allowed_propositions.length>0){const e=te;null!=e&&et.allowed_propositions.includes(e)?U(e):(ne(void 0),U(0))}else ne(void 0),U(et.num_propositions||et.max_propositions||0)}},[et]);const Ut=(e,t,n)=>{const o=(Ve[e]?.top_payouts??[]).find(e=>e.proposition_count===t),r=o&&o.bet_amount&&o.bet_amount>0?o.bet_amount:20,i=o&&r>0?o.net_payout/r*n:0;return i>0?i:ir((je??[]).find(t=>t.id===e)??(et?.id===e?et:null),t,n)};(0,a.useEffect)(()=>{if("sport"!==_e&&"confirm"!==_e||!et||G)return;const e=xn(et)&&me?Rt.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 ee({});const o=te??n[0],r=n.filter(e=>e>o);if(0===r.length)return void ee({});t=[o,...r]}else{const{min:n,max:o}=Wt(et),r=Math.min(o,e);if(n<=0||r<=n)return void ee({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=Ut(et.id,o,20);ee(n)},[_e,et,te,me,Rt.length,G,Ve]),(0,a.useEffect)(()=>{if("confirm"!==_e||!et)return;const e=Ot.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=Ut(et.id,r,q);$(n),e!==K.current?(K.current=e,U(e)):(V>e||V<=0&&e>0)&&U(e);const o=q>0?q:Math.max(et.min_bet??20,.01);return(async()=>{try{const n=await Ee(et.id,{actual:V,predicted:V,total:e,bet_amount:o,rule_id:oe});if(t)return;if(Q(n.winning_counts),q>0&&n.payouts){const e={};for(const[t,o]of Object.entries(n.payouts)){const n=Number(t);e[n]=o>0?o:Ut(et.id,n,q)}$(e)}}catch{t||Q([])}})(),()=>{t=!0}},[_e,et,Ot.length,V,q,Ee,Ve,oe]);const Kt=(0,a.useMemo)(()=>{return t=oe,(e=et)&&null!=t?e.permitted_rules?.find(e=>e.id===t)??null:null;var e,t},[et,oe]),qt=!xn(et)||Wn(Yt,me),Zt=et?Wt(et,void 0,Kt):null,Xt=!(!et||!qt)&&(et.allowed_propositions&&et.allowed_propositions.length>0?null!=te&&jt===te&&vt(jt,Zt?.min,Zt?.max):vt(jt,Zt?.min,Zt?.max)),Qt=et?.min_bet??0,Jt=Math.max(Qt,.01),$t=null==ie||q<=ie,_t=!He&&q>=Jt&&Xt&&$t,en=e=>{ne(e),U(e);for(const t of Object.keys(tt))ut(Number(t),tt[Number(t)])},tn=e=>{ne(e),U(e)},nn=e=>{be(xn(e)?x??null:null),ot(e)},on=e=>{if(e!==me){for(const e of Object.keys(tt)){const t=Number(e);ut(t,tt[t])}be(e)}},rn=(e,t,n)=>{he.current={count:t,stake:n},ot(e),Ye(e.id);const o=e.allowed_sports??[];let r=null;pe&&o.some(e=>Pt(pe,e,S))?r=pe:1===o.length&&(r=o[0]),ye(r);for(const s of Object.keys(tt)){const e=Number(s);ut(e,tt[e])}let i=It(Vt(Ke??[],e,S),{category:Ze,sport:r,sportBaseKey:S});const l=Math.max(0,Math.min(t,i.length)),a=[...i].sort(()=>Math.random()-.5).slice(0,l);for(const s of a)ut(s.id,Math.random()<.5?"yes":"no");st()},ln=(0,a.useRef)(!1),an=async()=>{if(et&&Xt&&!ln.current){if(G){const e={id:Math.floor(1e4*Math.random()),game_id:et.id,user_id:r,proposition_ids:Ot,selections:tt,pending:!0,expected_correct:V,bet_amount:q};return T?.(e),ct(e),void de()}ln.current=!0;try{A&&await A(q);const e=await Pe({game_id:et.id,user_id:r,proposition_ids:Ot,selections:tt,stake:q,rule_id:Kt?.id??null});T?.(e),ct(e),de()}catch(e){}finally{ln.current=!1}}},sn=(0,a.useCallback)(e=>O?.[e]??Ft.find(t=>t.key===e)?.label??Lt(e,void 0,S),[O,Ft,S]),cn=(0,a.useCallback)(e=>Dt(e,I),[I]),dn=(0,a.useMemo)(()=>({theme:E,bodyFont:j,headingFont:N,games:$e,propositions:Rt,compositeComponentById:Ht,propositionsForCategoryPicker:Ct,sportsForSelectedGame:kt,sportOptions:wt,propositionsForSportPicker:Bt,sportSummaries:Ft,loading:yt,error:mt,step:_e,selectedGame:et,selections:tt,placedEntry:nt,selectedPropositionIds:Ot,selectedPropositions:Yt,selectionValid:Xt,selectedRuleId:oe,setSelectedRuleId:re,selectedRule:Kt,answeredCount:jt,betAmount:q,setBetAmount:Z,expectedCorrect:V,setExpectedCorrect:U,selectedPropositionCount:te,handlePropositionCountChange:en,upgradePropositionCount:tn,winningCounts:X,payouts:J,overloadPayouts:_,submitting:He,submitError:Oe,canSubmit:_t,gamePrice:Qt,userBalance:ie,hasSufficientBalance:$t,refreshUserBalance:de,handleSubmit:an,selectGame:nn,goToSportSelection:at,goToConfirmation:st,goBack:dt,reset:ht,clearSelectedGame:rt,toggleSelection:ut,quickPickGame:rn,selectedCategory:ge,setSelectedCategory:fe,selectedSport:pe,setSelectedSport:ye,selectedEventId:me,sameGameMultiEvents:At,selectSameGameMultiEvent:on,apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,disableQuickPick:C,renderTeamLogo:B,renderPropositionSilk:z,selectionVariant:F,disableEventSwipe:v,enableSportFavourites:W,filterSport:b,initialSport:w,initialEventId:x,sportBaseKey:S,gameCategory:p,eventFilterActive:ft,eventFilterLabel:pt,clearEventFilter:gt,screenSize:P,displaySportName:sn,displayCategoryName:cn,maxPayouts:Ve??{},howToPlayMarkdown:Ne,onEntryPlaced:T,onCancel:R,onShare:L,onRecharge:D,demoEntries:g,demoGames:h,demoPropositions:u}),[E,j,N,$e,Rt,Ht,Ct,Bt,kt,wt,Ft,yt,mt,_e,et,tt,nt,Ot,Yt,Xt,jt,q,V,te,oe,Kt,X,J,_,He,Oe,_t,Qt,e,t,r,ie,n,o,C,B,z,F,v,W,b,w,x,S,p,P,ft,pt,gt,ge,pe,me,At,Ve,Ne,T,R,L,D,M,g,h,u,en,sn,cn]);return(0,c.jsx)(lr.Provider,{value:dn,children:l})},exports.QuickPickButton=cr,exports.RuleSetupPage=Cl,exports.RuleSetupPageActions=function({onContinue:e,canContinue:t,continueLabel:n="Continue"}){const{theme:o,screenSize:r}=sr(),i=o.colors;return e&&"mobile"!==r?(0,c.jsx)(s.View,{style:Bl.footer,children:(0,c.jsx)(s.TouchableOpacity,{onPress:e,disabled:!t,accessibilityRole:"button",accessibilityState:{disabled:!t},style:[Bl.smallBtn,{backgroundColor:i.buttonPrimary,opacity:t?1:.45}],children:(0,c.jsx)(s.Text,{style:[Bl.smallBtnText,{color:i.buttonPrimaryText}],children:n})})}):null},exports.RuleSetupPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o,selectedPropositionCount:r}=sr(),i=se(n),l=n.colors,a=Jn(o,r),{width:d}=(0,s.useWindowDimensions)(),h=d<640;return(0,c.jsxs)(s.View,{style:[Bl.header,h&&Bl.headerCompact],children:[(0,c.jsx)(s.Text,{accessibilityRole:"header",style:[Bl.sectionTitle,h&&Bl.sectionTitleCompact,{color:l.primary,fontFamily:i}],children:a?.title??"About this game"}),(0,c.jsx)(pi,{onBack:e,hideActions:t,label:o?`${o.game_name}${a?.subtitle?` · ${a.subtitle}`:""}`:void 0})]})},exports.SELECTION_VARIANTS=["split","split-inline","compact"],exports.SIX_AGAIN_LEGS=6,exports.SIX_AGAIN_MARGIN=.21875,exports.SafetyNetPage=Pl,exports.SafetyNetPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=sr(),r=se(n),i=n.colors,{width:l}=(0,s.useWindowDimensions)(),a=l<640;return(0,c.jsxs)(s.View,{style:[Hl.header,a&&Hl.headerCompact],children:[(0,c.jsx)(s.Text,{style:[Hl.sectionTitle,a&&Hl.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"Choose your safety net"}),(0,c.jsx)(pi,{onBack:e,hideActions:t,label:o?.game_name})]})},exports.ScrollShelf=Je,exports.SelectionReview=function({propositions:e,selections:t,onToggleSelection:n,onNext:o,onBack:r,theme:i,colorScheme:l,hideActions:h=!1,renderTeamLogo:u,allowAnswerToggle:g=!0,gameName:f,potentialPayout:p,defaultExpanded:y=!1,addMorePicks:m}){const b=le(i,l),w=b.colors,x=j(b),k=se(b),S=R(b),C=w.textAlt??w.text,{width:B}=(0,s.useWindowDimensions)(),z=B>=640,F=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(b),[v,W]=(0,a.useState)(null),[T,A]=(0,a.useState)(y),L=e.filter(e=>e.id in t),D=L.length,M=Zt(L),P=w.matchupHeader??N(b),H=G(b),O=z?16:12;return(0,c.jsxs)(s.View,{style:{gap:z?24:16,paddingBottom:64},children:[(0,c.jsxs)(s.View,{style:[_r.section,{padding:z?24:16,backgroundColor:x,borderColor:w.border},F],children:[(0,c.jsxs)(s.TouchableOpacity,{onPress:()=>A(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:T},style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:12},children:[(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",gap:8,flex:1,minWidth:0},children:[(0,c.jsx)(d.default,{width:18,height:18,viewBox:"0 0 24 24",style:{flexShrink:0,transform:[{rotate:T?"180deg":"0deg"}]},children:(0,c.jsx)(d.Path,{d:"m6 9 6 6 6-6",stroke:w.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),(0,c.jsxs)(s.View,{style:{flex:1,minWidth:0},children:[(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",gap:8},children:[(0,c.jsx)(s.Text,{style:{fontSize:z?18:16,fontWeight:"600",color:S,fontFamily:k},children:"Your Selections"}),(0,c.jsx)(s.View,{style:{backgroundColor:w.primary,paddingHorizontal:6,paddingVertical:2,borderRadius:999},children:(0,c.jsx)(s.Text,{style:{color:w.primaryText,fontSize:12,fontWeight:"600"},children:D})})]}),f&&(0,c.jsx)(s.Text,{numberOfLines:1,style:{color:w.textMuted,fontSize:14,marginTop:2},children:f})]})]}),null!=p&&p>0&&(0,c.jsxs)(s.View,{style:{alignItems:"flex-end",flexShrink:0},children:[(0,c.jsx)(s.Text,{style:{color:w.textMuted,fontSize:10,textTransform:"uppercase",letterSpacing:.25},children:"Potential Payout"}),(0,c.jsx)(s.Text,{style:{color:S,fontSize:14,fontWeight:"700"},children:mt(p)})]})]}),m&&m.remaining>0&&(0,c.jsxs)(s.View,{style:{marginTop:O,padding:12,borderRadius:8,borderWidth:1,borderColor:`${w.primary}30`,backgroundColor:`${w.primary}08`,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,c.jsxs)(s.Text,{style:{flex:1,color:w.textMuted,fontSize:12},children:[1===m.remaining?"Add ":"Add up to ",(0,c.jsxs)(s.Text,{style:{color:w.primary,fontWeight:"700"},children:[m.remaining," more pick",1!==m.remaining?"s":""]}),null!=m.potentialPayout&&m.potentialPayout>0&&(0,c.jsxs)(s.Text,{children:[" ","to win up to"," ",(0,c.jsx)(s.Text,{style:{color:S,fontWeight:"700"},children:mt(m.potentialPayout)})," ","with ",m.max," picks"]})]}),(0,c.jsx)(s.TouchableOpacity,{onPress:()=>m.onAdd(),style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:w.buttonPrimary},children:(0,c.jsx)(s.Text,{style:{color:w.buttonPrimaryText,fontSize:12,fontWeight:"600"},children:"Add picks"})})]}),T&&(0===L.length?(0,c.jsx)(s.View,{style:[_r.emptyState,{marginTop:O}],children:(0,c.jsx)(s.Text,{style:{color:w.textMuted},children:"No selections made yet"})}):(0,c.jsx)(s.View,{style:{gap:z?12:8,marginTop:O},children:M.map(e=>(0,c.jsxs)(s.View,{style:{borderRadius:8,overflow:"hidden",borderWidth:1,borderColor:w.border},children:[e.key?(0,c.jsxs)(s.View,{style:{paddingHorizontal:12,paddingVertical:8,backgroundColor:P},children:[(0,c.jsx)(qr,{matchup:e.key,renderTeamLogo:u,altText:C,mutedColor:w.textAltMuted??w.textMuted??C}),e.props[0].commence_time?(0,c.jsx)(s.Text,{style:[_r.propTime,{color:w.textAltMuted??w.textMuted}],children:bt(e.props[0].commence_time)}):null]}):null,e.props.map((o,i)=>{const l=t[o.id],a="yes"===l,h="no"===l;return(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:z?12:8,paddingHorizontal:12,paddingVertical:z?12:10,backgroundColor:H,borderTopWidth:e.key||i>0?1:0,borderTopColor:w.border},children:[(0,c.jsxs)(s.View,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[Yr(o,u,e.key),(0,c.jsx)(s.Text,{style:{flex:1,minWidth:0,color:C,fontSize:14,lineHeight:19},children:o.description})]}),(0,c.jsxs)(s.View,{style:_r.rightControls,children:[g?(0,c.jsx)(Ae,{theme:b,size:"sm",value:a?"yes":h?"no":null,onYes:()=>n(o.id,"yes"),onNo:()=>n(o.id,"no")}):l&&(0,c.jsx)(Re,{theme:b,size:"sm",value:"yes"===l?"yes":"no"}),(0,c.jsx)(s.TouchableOpacity,{onPress:()=>{n(o.id,t[o.id]),r()},accessibilityLabel:"Remove selection",...ze(()=>W(o.id),()=>W(e=>e===o.id?null:e)),style:[_r.removeButton,{backgroundColor:"transparent"}],children:(0,c.jsx)(d.default,{width:12,height:12,viewBox:"0 0 24 24",children:(0,c.jsx)(d.Path,{d:"M6 18L18 6M6 6l12 12",stroke:v===o.id?w.error:w.textAltMuted??w.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})})]})]},o.id)})]},e.key??`solo-${e.props[0].id}`))}))]}),(0,c.jsx)(s.View,{style:[_r.section,{padding:z?24:16,backgroundColor:x,borderColor:w.border},F],children:(0,c.jsxs)(s.View,{style:_r.summaryRow,children:[(0,c.jsx)(s.Text,{style:{color:w.textMuted,fontSize:14},children:"Total Selections"}),(0,c.jsx)(s.Text,{style:{color:w.text,fontSize:14,fontWeight:"600"},children:L.length})]})}),!h&&(0,c.jsxs)(s.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:w.border,backgroundColor:w.background,marginHorizontal:z?-24:-16,paddingHorizontal:z?24:16,paddingVertical:z?16:12},children:[(0,c.jsx)($r,{theme:b,variant:"secondary",onPress:r,children:"Back"}),(0,c.jsx)($r,{theme:b,variant:"primary",disabled:0===L.length,onPress:o,children:"Place bet"})]})]})},exports.SelectionVariantList=Pr,exports.SelectionsPage=function({onNext:e,onBack:t,hideTitle:n,hideActions:o,defaultView:r="list",view:i,onViewChange:l,hideViewSwitch:d,onSwipeDragStateChange:h}){const u=sr(),{selectedRule:g}=u,{theme:f,selectedGame:p,propositions:y,selections:m,toggleSelection:b,loading:w,error:x,disableQuickPick:k,renderTeamLogo:S,filterSport:C,initialSport:B,gameCategory:z,selectedPropositionCount:F,handlePropositionCountChange:v,goToConfirmation:W,goBack:T,selectedCategory:A,setSelectedCategory:R,selectedSport:L,selectedEventId:D,propositionsForCategoryPicker:M,answeredCount:P}=u,[H,O]=a.default.useState(r),I=i??H,E=a.default.useCallback(e=>{void 0===i&&O(e),l?.(e)},[i,l]);a.default.useEffect(()=>{p||(u.goToSportSelection(),t?.())},[p,u,t]);const j=a.default.useMemo(()=>{if(!p)return null;const{min:e,max:t}=Wt(p,F??void 0,g);if(e>0&&e===t)return e;const n=_o(p);return null!=F&&F>0&&("game_set"===n||"pick_your_dividend"===n||"safety_net"===n||er(p))?F:null},[p,F]),N=a.default.useRef(P);a.default.useEffect(()=>{const t=N.current;N.current=P,null!=j&&t<j&&P===j&&(W(),e?.())},[P,j]);const G=a.default.useMemo(()=>zt(M??[]),[M]);if(a.default.useEffect(()=>{p&&1===G.length&&A!==G[0]&&R(G[0])},[p,G,A,R]),!p)return null;const Y=G.length>1&&!A,V=!Y&&xn(p)&&!D,U=(()=>{if(!xn(p)||!D)return p;const e=Math.min(p.max_propositions??y.length,y.length);return{...p,max_propositions:e,allowed_propositions:p.allowed_propositions?.filter(t=>t<=e)}})(),K=()=>{T(),t?.()};return(0,c.jsxs)(s.View,{style:el.container,children:[!n&&(0,c.jsx)(s.View,{style:{marginBottom:24},children:(0,c.jsx)(Xi,{onBack:o?K:void 0,onNext:o?e:void 0,hideActions:o})}),!xn(p)&&(0,c.jsx)(hi,{}),(0,c.jsx)(s.View,{style:el.content,children:Y?(0,c.jsx)(wi,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>R(e)}):V?(0,c.jsx)(Ci,{}):"swipe"===I?(0,c.jsx)(Br,{onBack:K,onNext:e,viewSwitch:d?void 0:(0,c.jsx)($i,{view:I,onChange:E}),onDragStateChange:h}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(qi,{onChange:K}),(0,c.jsx)(Qr,{game:U,propositions:y,selections:m,onToggleSelection:b,onNext:()=>{W(),e?.()},onBack:K,loading:w,error:x,theme:f,hideActions:!0,initialSport:C??B,renderTeamLogo:S,disableQuickPick:!0,selectedPropositionCount:F,onPropositionCountChange:v,gameCategory:z,headerExtra:d?void 0:(0,c.jsx)($i,{view:I,onChange:E})})]})}),!o&&!Y&&!V&&(0,c.jsx)(s.View,{style:{marginTop:24},children:(0,c.jsx)(Ji,{onNext:e,onBack:t})})]})},exports.SelectionsPageActions=Ji,exports.SelectionsPageTitle=Xi,exports.SixAgainPage=Ol,exports.SixAgainPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=sr(),r=se(n),i=n.colors,{width:l}=(0,s.useWindowDimensions)(),a=l<640;return(0,c.jsxs)(s.View,{style:[Il.header,a&&Il.headerCompact],children:[(0,c.jsx)(s.Text,{style:[Il.sectionTitle,a&&Il.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"Set your play"}),(0,c.jsx)(pi,{onBack:e,hideActions:t,label:o?.game_name})]})},exports.SportPickerPage=function({onSelectSport:e,onCancel:t,hideTitle:n,hideActions:o,renderSportLogo:r,renderSportTagline:i,backLabel:l,comingSoonSports:d}){const{theme:h,propositionsForSportPicker:u,sportSummaries:g,loading:f,setSelectedSport:p,clearSelectedGame:y,selectedCategory:m,sportBaseKey:b,displaySportName:w}=sr(),x=h.colors,k=j(h),S=se(h),C=ae(h),z=R(h),{width:F}=(0,s.useWindowDimensions)(),v=F>=640,W=v?48:40,[T,A]=a.default.useState(null),L=wt(u),D=Object.keys(L);return f?(0,c.jsx)(s.View,{style:ul.container,children:(0,c.jsx)(mn,{colors:Y(h),bodyFont:C,variant:"sport",categoryCount:D.length>0?D.length:2})}):(0,c.jsxs)(s.View,{style:ul.container,children:[!n&&(0,c.jsx)(s.View,{style:ul.titleWrap,children:(0,c.jsx)(hl,{onBack:t,hideActions:o,backLabel:l})}),(0,c.jsx)(s.View,{style:ul.content,children:(0,c.jsxs)(s.View,{style:ul.grid,children:[D.map(t=>{const n=g.find(e=>e.key===t),o=n?.active_props??L[t].length,l=i?.(t,o)??(n?`${a=n.games_today} game${1===a?"":"s"} today · ${d=n.active_props} pick${1===d?"":"s"} available`:function(e,t){return 0===e?"racing"===t?"No races today":"casino"===t?"No games today":"No picks available":"racing"===t?`${e} race${1===e?"":"s"} today`:"casino"===t?`${e} game${1===e?"":"s"} available`:`${e} pick${1===e?"":"s"} available`}(o,m));var a,d;const h=w(t),u=T===t,f=n?n.games_today>0:o>0;return(0,c.jsxs)(s.TouchableOpacity,{onPress:()=>{p(t),y(),e?.(t)},...ze(()=>A(t),()=>A(e=>e===t?null:e)),style:[ul.gridCard,v&&ul.gridCardWide,{backgroundColor:k,borderColor:u?x.primary:x.border},ul.gridCardRaised],activeOpacity:.85,children:[r?r(t):(0,c.jsx)(Wi,{gameKey:t,size:W,footer:null,sportBaseKey:b,title:`${h} button`}),(0,c.jsxs)(s.View,{style:ul.gridText,children:[(0,c.jsx)(s.Text,{numberOfLines:1,style:[ul.gridName,v&&ul.gridNameWide,{color:z,fontFamily:S}],children:h}),(0,c.jsxs)(s.View,{style:ul.gridTaglineRow,children:[f?(0,c.jsx)(s.View,{style:[ul.liveDot,{backgroundColor:x.success}]}):null,(0,c.jsx)(s.Text,{numberOfLines:1,style:[ul.gridMeta,{color:x.primary,fontFamily:C}],children:l})]})]}),(0,c.jsx)(s.View,{style:ul.gridChevron,children:(0,c.jsx)(Ue,{size:20,color:x.textMuted})})]},t)}),d?.map(e=>{const{game:t,league:n}=function(e,t){const n=e.match(/^(.*?)\s*\(([^)]+)\)\s*$/);return n?{game:n[1].trim(),league:n[2].trim()}:{game:e,league:t}}(e.label,e.short??ut(e.key,b));return(0,c.jsxs)(s.View,{style:[ul.gridCard,v&&ul.gridCardWide,{backgroundColor:B(x.backgroundAlt,.4),borderColor:B(x.border,.7)}],children:[(0,c.jsx)(s.View,{style:ul.comingSoonLogo,children:r?r(e.key):(0,c.jsx)(Wi,{gameKey:e.key,short:e.short,size:W,footer:null,sportBaseKey:b,title:`${e.label} button`})}),(0,c.jsxs)(s.View,{style:ul.gridText,children:[(0,c.jsx)(s.Text,{numberOfLines:1,style:[ul.gridName,v&&ul.gridNameWide,{color:x.textMuted,fontFamily:S}],children:n&&n!==t?`${t} · ${n}`:t}),(0,c.jsx)(s.Text,{numberOfLines:1,style:[ul.gridMeta,ul.gridMetaSpaced,{color:x.textMuted,fontFamily:C}],children:(o=e.seasonStart,o?`Starts ${o}`:"Coming soon")})]}),(0,c.jsxs)(s.View,{style:[ul.soonPill,{backgroundColor:x.backgroundAlt}],children:[(0,c.jsx)(Ke,{size:12,color:x.textMuted}),(0,c.jsx)(s.Text,{style:[ul.soonPillText,{color:x.textMuted,fontFamily:C}],children:"Soon"})]})]},e.key);var o})]})})]})},exports.SportPickerPageActions=function({onCancel:e}){const{theme:t,screenSize:n}=sr(),o=t.colors;return e&&"mobile"!==n?(0,c.jsx)(s.View,{style:ul.footer,children:(0,c.jsx)(s.TouchableOpacity,{onPress:e,style:[ul.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:(0,c.jsx)(s.Text,{style:[ul.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null},exports.SportPickerPageTitle=hl,exports.SportRail=Li,exports.StarIcon=Qe,exports.SuccessPage=function({onPlayAgain:e,onDone:t,onBack:n,onShare:o,hideTitle:r,hideActions:i}){const l=sr(),{theme:d,bodyFont:h,headingFont:u,selectedGame:g,placedEntry:f,betAmount:p,selectedPropositionIds:y,selectedPropositions:m,selections:b,payouts:w,onShare:x}=l,k=d.colors,S=j(d),C=k.textAlt??k.text,{width:B}=(0,s.useWindowDimensions)(),z=B>=640,F={shadowColor:"#000",shadowOpacity:"dark"===d.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2},v=f?.proposition_ids?f.proposition_ids.length:y.length,W=w[v]??null,T=a.default.useRef(!1);return a.default.useEffect(()=>{f&&g?T.current=!1:(l.goToSportSelection(),T.current||(T.current=!0,e?e():t?.()))},[f,g,l,e,t]),f?(0,c.jsxs)(s.View,{style:sl.container,children:[!r&&(0,c.jsx)(s.View,{style:{marginBottom:24},children:(0,c.jsx)(al,{onBack:n,hideActions:i})}),(0,c.jsxs)(s.View,{style:[sl.content,{gap:z?16:12}],children:[(0,c.jsxs)(s.View,{style:[sl.summaryCard,z&&sl.summaryCardWide,{backgroundColor:S,borderColor:k.border},F],children:[(0,c.jsxs)(s.View,{style:sl.summaryHeader,children:[(()=>{const e=g?g.allowed_propositions&&g.allowed_propositions.length>0&&g.game_name.replace(/\s+\d+\s*$/,"").trim()||g.game_name:"Entry summary";return g?(0,c.jsx)(s.View,{style:{flex:1,minWidth:0},children:(0,c.jsx)(ii,{iconUrl:fe(g),gameName:e,height:18,chipColor:k.primary,textColor:k.text,iconColor:k.primaryText,accentColor:d.brand?.accent})}):(0,c.jsx)(s.Text,{numberOfLines:1,style:[sl.summaryHeading,z&&sl.summaryHeadingWide,{color:R(d),fontFamily:u,flex:1}],children:e})})(),(0,c.jsx)(s.View,{style:{backgroundColor:`${k.primary}15`,borderRadius:999,paddingHorizontal:8,paddingVertical:2,flexShrink:0},children:(0,c.jsxs)(s.Text,{style:{color:k.primary,fontSize:12,fontWeight:"600",fontFamily:h},children:[v," pick",1!==v?"s":""]})})]}),(0,c.jsxs)(s.View,{style:sl.statsGrid,children:[(0,c.jsxs)(s.View,{style:[sl.statCell,z&&sl.statCellWide],children:[(0,c.jsx)(s.Text,{style:[sl.statLabel,{color:k.textMuted,fontFamily:h}],children:"Selections"}),(0,c.jsx)(s.Text,{style:[sl.statValue,{color:C,fontFamily:h}],children:v})]}),p>0&&(0,c.jsxs)(s.View,{style:[sl.statCell,z&&sl.statCellWide],children:[(0,c.jsx)(s.Text,{style:[sl.statLabel,{color:k.textMuted,fontFamily:h}],children:"Wager"}),(0,c.jsx)(s.Text,{style:[sl.statValue,{color:C,fontFamily:h}],children:mt(p)})]}),null!=W&&W>0&&(0,c.jsxs)(s.View,{style:[sl.statCell,z&&sl.statCellWide],children:[(0,c.jsx)(s.Text,{style:[sl.statLabel,{color:k.textMuted,fontFamily:h}],children:"Potential win"}),(0,c.jsx)(s.Text,{style:[sl.statValue,{color:k.heading??k.text,fontWeight:"700",fontFamily:h}],children:mt(W)})]})]})]}),m.length>0&&(0,c.jsxs)(s.View,{style:[sl.summaryCard,z&&sl.summaryCardWide,{backgroundColor:S,borderColor:k.border},F],children:[(0,c.jsx)(s.Text,{style:[sl.summaryHeading,z&&sl.summaryHeadingWide,{color:R(d),fontFamily:u,marginBottom:8}],children:"Your picks"}),(0,c.jsx)(s.View,{style:sl.pickList,children:m.map((e,t)=>{const n=b?.[e.id],o="yes"===n;return(0,c.jsxs)(s.View,{style:[sl.pickRow,{backgroundColor:k.backgroundAlt}],children:[(0,c.jsx)(s.View,{style:{width:20,height:20,borderRadius:10,backgroundColor:k.primary,alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,c.jsx)(s.Text,{style:{color:k.primaryText,fontSize:10,fontWeight:"700",fontFamily:h},children:t+1})}),(0,c.jsxs)(s.View,{style:{flex:1,minWidth:0},children:[(0,c.jsxs)(s.Text,{numberOfLines:1,style:{color:C,fontSize:z?14:12,fontWeight:"500",fontFamily:h},children:[Ct(e)?null:(0,c.jsxs)(c.Fragment,{children:[e.home_team," ",(0,c.jsx)(s.Text,{style:{color:k.textMuted},children:"vs"})," "]}),e.away_team]}),(0,c.jsx)(s.Text,{numberOfLines:1,style:{color:k.textMuted,fontSize:11,fontFamily:h},children:e.description})]}),null!=n&&(0,c.jsx)(Re,{theme:d,size:"sm",value:o?"yes":"no",style:{alignSelf:"center",flexShrink:0}})]},e.id)})})]})]})]}):null},exports.SuccessPageActions=function({onPlayAgain:e,onDone:t,onShare:n}){const{theme:o,reset:r,placedEntry:i,selectedGame:l,selectedPropositions:a,selections:d,betAmount:h}=sr();return o.colors,(0,c.jsxs)(s.View,{style:sl.footer,children:[(0,c.jsx)(ve,{theme:o,variant:"secondary",onPress:()=>{r(),e?.()},children:"Place Another"}),t&&(0,c.jsx)(ve,{theme:o,variant:"primary",onPress:t,children:"Done"})]})},exports.SuccessPageTitle=al,exports.SwipeCard=Sr,exports.SwipeCardFace=Cr,exports.SwipeDeck=Br,exports.VISIBLE_DEPTH=3,exports.YesNoCategoryLabel=Ze,exports.availableGameTierTabs=Dn,exports.contrastTextColour=function(e,t="#ffffff",n="#1a1a1a"){if(!e)return n;const o=function(e){const t=e.trim().toLowerCase(),n=t.match(/^#([0-9a-f]{3,8})$/);if(n){let e=n[1];return 3!==e.length&&4!==e.length||(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}const o=t.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);return o?[Number(o[1]),Number(o[2]),Number(o[3])]:null}(e);if(!o)return n;const[r,i,l]=o.map(e=>{const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)});return.2126*r+.7152*i+.0722*l>.4?n:t},exports.darkTheme=Z,exports.defaultGameTierId=Mn,exports.defaultTheme=K,exports.defaultThemeSet=ee,exports.filterGamesByTierLevel=Ln,exports.filterPropositionsToEvent=vn,exports.formatCurrency=mt,exports.formatDate=bt,exports.formatSameGameMultiEventLabel=bn,exports.fullStackPrize=Po,exports.gameNeedsRuleSetup=$n,exports.gameSetPrize=Wo,exports.getConfirmBoostCopy=nr,exports.getGameFlow=_o,exports.getGameSetBetConfig=To,exports.getJackpotInfo=Tt,exports.getLadderConfig=Ho,exports.getMirrorConfig=Yo,exports.getPickYourDividendConfig=io,exports.getPropositionEventId=kn,exports.getRuleSetupConfig=Jn,exports.getSafetyNetConfig=qn,exports.getSafetyNetPricing=In,exports.getSixAgainConfig=$o,exports.getSportDisplayName=Rt,exports.getTheme=function(e){return{default:K,green:q,"green-light":Q,dark:Z,gold:X,"gold-light":J,yesno:_,"yesno-light":$}[e]||K},exports.getThemeSet=function(e){return{default:ee,green:te,gold:ne,yesno:oe}[e]||ee},exports.goldLightTheme=J,exports.goldTheme=X,exports.goldThemeSet=ne,exports.greenLightTheme=Q,exports.greenTheme=q,exports.greenThemeSet=te,exports.groupPropositionsBySport=wt,exports.groupSameGameMultiEvents=Sn,exports.groupSelectionDays=Dr,exports.isFixedCardExactGame=er,exports.isGameSetBetGame=vo,exports.isLadderGame=Lo,exports.isMirrorGame=No,exports.isOpenExactMultiGame=tr,exports.isPickYourDividendGame=to,exports.isSafetyNetGame=On,exports.isSameGameMultiGame=xn,exports.isSelectableSameGameMultiProposition=Fn,exports.isSixAgainGame=qo,exports.isThemeSet=U,exports.isValidSelectionCount=vt,exports.ladderCollectAt=function(e,t,n){return Do(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)},exports.ladderTiers=Mo,exports.mirrorPrize=Go,exports.propositionsBelongToEvent=Wn,exports.pydLadder=ro,exports.pydRung=oo,exports.resolveCategoryDisplayName=Dt,exports.resolveGameTierLevel=Rn,exports.resolvePrice=function(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0},exports.resolveSportDisplayName=Lt,exports.resolveTheme=V,exports.roundDividendAmount=En,exports.safetyNetCollect=Gn,exports.safetyNetTicket=Nn,exports.sixAgainRuleId=Qo,exports.sixAgainStakeMultiples=function(e,t){const n=Xo(1,e,t);return{perfect:n.perfect/n.stake,challenge:n.challenge/n.stake}},exports.sixAgainTicket=Xo,exports.themeAccent=H,exports.themeBodyFont=ae,exports.themeHeading=R,exports.themeHeadingFont=se,exports.themeLabel=L,exports.themeSets=ie,exports.themeTextAlt=I,exports.themeTextAltMuted=E,exports.themeValue=D,exports.themes=re,exports.useCalculatePayout=function(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[i,l]=(0,a.useState)(null);return{calculate:(0,a.useCallback)(async(t,o)=>{try{n(!0),r(null);const i=await e.calculatePayout(t,o);return l(i),i}catch(i){const e=i instanceof Error?i.message:"Failed to calculate payout";throw r(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:o,result:i}},exports.useCreateGameEntry=So,exports.useEntryPreview=Bo,exports.useEvaluateRule=function(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[i,l]=(0,a.useState)(null);return{evaluate:(0,a.useCallback)(async(t,o)=>{try{n(!0),r(null);const i=await e.evaluateRule(t,o);return l(i),i}catch(i){const e=i instanceof Error?i.message:"Failed to evaluate rule";throw r(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:o,result:i}},exports.useGameEntries=xo,exports.useGameMaxPayouts=ko,exports.useGames=mo,exports.usePlaceEntry=sr,exports.usePlaceEntryFlow=Co,exports.usePropositions=bo,exports.useResolvedTheme=le,exports.useSports=wo,exports.useSwipeDeck=ur;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,r=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,l=(l,a,c)=>(c=null!=l?e(r(l)):{},((e,r,l,a)=>{if(r&&"object"==typeof r||"function"==typeof r)for(var c,s=o(r),d=0,h=s.length;d<h;d++)c=s[d],i.call(e,c)||void 0===c||t(e,c,{get:(e=>r[e]).bind(null,c),enumerable:!(a=n(r,c))||a.enumerable});return e})(!a&&l&&l.t&&i.call(l,"default")?c:t(c,"default",{value:l,enumerable:!0}),l));let a=require("react");a=l(a,1);let c=require("react-native"),s=require("react/jsx-runtime"),d=require("react-native-svg");d=l(d,1);let h=require("react-dom");var u="#C9CDD2";function g(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 f(e){return`<table class="props">\n${e.map(e=>{return`<tr><td class="q">${t=e.question,t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}</td><td class="yes">YES</td><td class="no">NO</td></tr>`;var t}).join("\n")}\n</table>`}var p='\n :root {\n --blue: #1F4E79;\n --ink: #1A1A1A;\n --grey: #5A5A5A;\n --green: #166534;\n --red: #991B1B;\n --fill-q: #F9FAFB;\n --fill-yes: #DCFCE7;\n --fill-no: #FEE2E2;\n --rule: #D0D7DE;\n }\n * { box-sizing: border-box; }\n html, body {\n margin: 0;\n padding: 0;\n background: #FFFFFF;\n color: var(--ink);\n font-family: "Aptos", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;\n font-size: 16px;\n line-height: 1.5;\n -webkit-font-smoothing: antialiased;\n }\n .page {\n max-width: 720px;\n margin: 0 auto;\n padding: 32px 24px 56px;\n }\n p { margin: 0 0 14px; }\n\n .masthead { text-align: center; margin-bottom: 8px; }\n .kicker {\n color: var(--blue);\n font-weight: 700;\n letter-spacing: 0.16em;\n font-size: 15px;\n margin-bottom: 6px;\n }\n .logo {\n display: block;\n width: 280px;\n max-width: 72%;\n height: auto;\n margin: 0 auto 12px;\n }\n .headline {\n color: var(--ink);\n font-weight: 700;\n font-size: 34px;\n line-height: 1.15;\n margin: 0 0 4px;\n }\n .headline.lg { font-size: 44px; }\n .subhead {\n color: var(--grey);\n font-weight: 700;\n letter-spacing: 0.12em;\n font-size: 15px;\n margin-top: 6px;\n }\n .lede {\n color: var(--blue);\n font-style: italic;\n font-size: 20px;\n text-align: center;\n margin: 18px 0 22px;\n }\n .rule {\n border: 0;\n border-bottom: 2.5px solid var(--blue);\n margin: 14px 0 22px;\n }\n\n h2.cap {\n color: var(--blue);\n font-weight: 700;\n letter-spacing: 0.06em;\n font-size: 16px;\n text-transform: uppercase;\n margin: 30px 0 12px;\n }\n h3.sub {\n color: var(--ink);\n font-weight: 700;\n font-size: 18px;\n margin: 26px 0 10px;\n }\n\n .step {\n font-weight: 700;\n font-size: 18px;\n margin: 22px 0 8px;\n }\n .step .num { color: var(--blue); }\n .step .label { color: var(--ink); }\n\n .props {\n width: 100%;\n border-collapse: collapse;\n margin: 8px 0 18px;\n }\n .props td {\n border: 1px solid #C9CDD2;\n padding: 11px 14px;\n font-size: 15px;\n }\n .props .q { background: var(--fill-q); width: 64%; }\n .props .yes {\n background: var(--fill-yes);\n color: var(--green);\n font-weight: 700;\n text-align: center;\n letter-spacing: 0.04em;\n }\n .props .no {\n background: var(--fill-no);\n color: var(--red);\n font-weight: 700;\n text-align: center;\n letter-spacing: 0.04em;\n }\n\n .divider {\n border: 0;\n border-top: 1px solid var(--rule);\n margin: 48px 0;\n }\n\n .footnote {\n color: var(--grey);\n font-style: italic;\n font-size: 13px;\n border-top: 1px solid var(--rule);\n padding-top: 14px;\n margin-top: 30px;\n }\n\n @media (max-width: 480px) {\n .page { padding: 24px 18px 44px; }\n .headline { font-size: 28px; }\n .headline.lg { font-size: 34px; }\n .lede { font-size: 18px; }\n }\n'.trim();function y(e){let t=e.trim();for(;;){const e=t.match(/^<!--[\s\S]*?-->\s*/);if(!e)break;t=t.slice(e[0].length).trimStart()}return t}var m=/^<(main|section|article|div|style|table|h[1-6]|p|ul|ol|hr)\b/i,b=/<(section|article|main|div\s+class=["']masthead|h[12]\s+class=["'](?:cap|headline)|h3\s+class=["']sub|table\s+class=["']props|hr\s+class=["']divider)\b/i;function w(e){return/^<!DOCTYPE\s+html/i.test(e)||/^<html[\s>]/i.test(e)}function x(e){const t=e.trim();if(!t)return"";if(w(t))return t;const n=function(e){return/class=["']logo["']/i.test(e)?e:/<div class=["']masthead["']>/i.test(e)?e.replace(/(<div class=["']masthead["']>)/i,'$1\n <img class="logo" src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%202400%20500%22%20width%3D%222400%22%20height%3D%22500%22%3E%0A%20%20%3Ctitle%3EYESNO%20Multi%20Logo%20%E2%80%94%20Horizontal%20Master%3C%2Ftitle%3E%0A%20%20%3Cdesc%3EYESNO%20Multi%20master%20logo.%20Horizontal%20pipe%20lockup%3A%20YESNO%20wordmark%2C%20stacked%20tile%20icon%2C%20pipe%20divider%2C%20Multi%20extension%2C%20TM.%3C%2Fdesc%3E%0A%0A%20%20%3C!--%20YESNO%20wordmark%20(cropped%20from%20canonical%20Multi%20master)%20--%3E%0A%20%20%3Cimage%20href%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAA68AAADMCAYAAACcEJWAAABCUUlEQVR4nO3dd7xcRfnH8U9ooU%2BQDiIdpHcRRbEgII69IQ5SRRCQgPSiCNKlinQBZUQRUJRBwYIiSBWUDqIUKQJCyFBMQkjy%2B2NOfoaQ3Oy9d3efc3a%2F79drXze5udn5brm7%2B5wz88wIREREpOOcDwsDSwALAQ4YVX1dAJhzmstcwAhgYnV5rfo6DngRGDvN1%2BeA53KKU7p2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D88FRloIsSTk7uxiloJ3654UpXehHzuAyF%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%2FJziJMvx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OKVWnclfZVTvD2n%2BGfAnsBBVFcj%2FrBsVWPyGNXPaq9NKl2AiLSP88EBC4FAtf1D2z0KfB64BEg5xXWWYfXjs%2Bewx80pfmfYY8pocj7MobrIZR7wKmAOzU%2BsrKU6ZP024Jb6dnP9zztG4c2PmiwR2SznwwuA%2BcChVL%2Bwty5b0a%2FcQnWg7ueAL%2BcUHytcj0hrOR%2B2AV5GtTRgj%2Fo2G9gJmAU4YDowDZhKdeHVOqqLY56%2BraPaVujB%2BrZ2g%2F99P3A38FOqxuou%2FUyqyRKRAdS%2FqF9N9c54f%2BCVwC4NRN8H3EB1deB1wDdzij9rIFdEZNzUZInIhDgfnkP17vhFwO7ArlSN107A9vVtW6p3yFsBU6jeFf%2Byvq0DHgLupdpw8R7gP4BbqT5auDmnuLap%2ByMiMiz%2FCXQ4TDPqI2KNAAAAAElFTkSuQmCC%22%20x%3D%221430%22%20y%3D%22148%22%20width%3D%22601%22%20height%3D%22204%22%2F%3E%0A%0A%20%20%3C!--%20TM%20superscript%20at%20top-right%20of%20Multi%20--%3E%0A%20%20%3Ctext%20x%3D%222045%22%20y%3D%22190%22%20font-family%3D%22Manrope%2C%20Poppins%2C%20sans-serif%22%20font-size%3D%2256%22%20font-weight%3D%22600%22%20fill%3D%22%230F4C5C%22%3ETM%3C%2Ftext%3E%0A%3C%2Fsvg%3E%0A" alt="YESNO Multi" />'):e}(function(e){return/<table\s+class=["']props["']/i.test(e)?e:function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=0;for(;o<t.length;){const e=g(t[o]);if(e){const r=[e];let i=o+1;for(;i<t.length;){const e=g(t[i]);if(!e)break;r.push(e),i+=1}n.push(f(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+=f([...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=>g(e));a.length>0&&a.every(e=>null!==e)?i.push(...a):(l(),o+=n[0]),r=t.lastIndex}return l(),o+=e.slice(r),o}(e))}(function(e){const t=y(e),n=t.match(/^<main[^>]*>([\s\S]*)<\/main>$/i);return n?n[1].trim():t}(t)));return`<!DOCTYPE html>\n<html lang="en-AU">\n<head>\n<meta charset="UTF-8">\n<meta name="viewport" content="width=device-width, initial-scale=1.0">\n<title>YES NO - How to Play</title>\n<style>${p}</style>\n</head>\n<body>\n<main class="page">\n${n}\n</main>\n</body>\n</html>`}var k=/^(#{1,3})\s+(.+)$/,S=/^[-*]\s+(.+)$/,C=/^-{3,}$/;function B(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 z={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:48},v={xs:4,sm:8,md:12,lg:16,xl:24,pill:999},F={xs:11,sm:13,md:14,lg:16,xl:18,xxl:22,display:28},W={min:44};function T(e){const t="dark"===e.colorScheme,n=e.colors;return{space:{...z},radius:{...v},fontSize:{...F},touchTarget:{...W},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??B(n.border,t?.6:.5)},isDark:t}}function A(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 L(e){return e.colors.heading??e.colors.text}function R(e){return e.colors.label??e.colors.text}function D(e){return e.colors.value??e.colors.text}function M(e){return e.colors.productYes??"#00C853"}function P(e){return e.colors.productNo??"#E53935"}function H(e){return e.brand?.accent??e.colors.primary}function O(e,t,n){const o=t?.trim().toLowerCase()===e.trim().toLowerCase();return t&&!o?t:n}function I(e){return e.colors.textAlt??e.colors.text}function E(e){return e.colors.textAltMuted??e.colors.textMuted}function j(e){return e.colors.selectionCard??e.colors.surface??e.colors.backgroundAlt}function N(e){return e.colors.matchupHeader??e.colors.backgroundAlt}function G(e){return e.colors.selectionProp??e.colors.background}function Y(e){return{textMuted:e.colors.textMuted,border:e.colors.border,background:e.colors.background,backgroundAlt:e.colors.backgroundAlt,primary:e.colors.primary,selectionCard:j(e)}}function V(e,t="light"){return e?U(e)?"dark"===t?e.dark:e.light:e:q}function U(e){return"light"in e&&"dark"in e&&!("colors"in e)}var q={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"}},K={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"}},Z={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"}},X={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"}},Q={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"}},J={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"}},$={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"}},_={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"}},ee={light:q,dark:Z},te={light:Q,dark:K},ne={light:J,dark:X},oe={light:$,dark:_},re={default:q,green:K,"green-light":Q,dark:Z,gold:X,"gold-light":J,yesno:_,"yesno-light":$},ie={default:ee,green:te,gold:ne,yesno:oe};function le(e,t="light"){return V(e,t)}function ae(e){return e.fonts?.body??"System"}function ce(e){return e.fonts?.heading??e.fonts?.body??"System"}var se="game-icon:",de={perfect_pick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Perfect Pick.\n Single-glyph identifier ("100%") on a transparent background.\n\n Themable: the digits use currentColor (primary tone) and the\n trailing % uses the icon-accent CSS variable (default #DFFF1A).\n\n Laid out with geometry, not font metrics: two separate single-chunk <text>\n elements at explicit x, each pinned with textLength, and an explicit baseline\n y instead of dominant-baseline. react-native-svg anchors each <tspan> as its\n own chunk and ignores letter-spacing, so the old one-text/two-tspan version\n drifted off centre on native and pushed the % outside the viewBox. Combined\n extent is 8..92, centred on 50, whatever font actually resolves.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <text x="8" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="56"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">100</text>\n <text x="66" y="62"\n font-family="Manrope, Poppins, sans-serif"\n font-size="34"\n font-weight="800"\n textLength="26"\n lengthAdjust="spacingAndGlyphs"\n fill="var(--icon-accent, #DFFF1A)">%</text>\n</svg>',head_to_head:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Head to Head.\n Two arrowheads clashing across a citron diamond. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Source design lives in an 80×60 box; centre it in 100×100 by\n shifting (10, 20) so the diamond at (40,30) lands at (50,50). --\x3e\n \x3c!-- Themable: arrowheads use currentColor (primary tone), the\n centre diamond uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(10, 20)">\n <path d="M 6 14 L 32 30 L 6 46 L 18 30 Z" fill="currentColor"/>\n <path d="M 74 14 L 48 30 L 74 46 L 62 30 Z" fill="currentColor"/>\n <polygon points="40,20 50,30 40,40 30,30" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',total_points:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Total Points.\n Sigma glyph with italic X superscript. Transparent background;\n rendered onto the programmatic Press-to-Play tile.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- Sigma + italic X superscript, centred together in the viewBox.\n Sigma 90×98 × 0.55 = 49.5×53.9. Translating to (15, 22) puts the\n sigma centre at (~40, 49) and leaves room for the X glyph at the\n upper right so the combined mark balances around (50, 50). --\x3e\n \x3c!-- Themable: sigma uses currentColor (primary), X superscript\n uses the icon-accent CSS variable (default #DFFF1A). --\x3e\n <g transform="translate(15, 22) scale(0.55)">\n <path d="M 0,0 L 90,0 L 90,15 L 25,15 L 58,49 L 25,83 L 90,83 L 90,98 L 0,98 L 49,49 Z"\n fill="currentColor"/>\n </g>\n <text x="75" y="30"\n font-family="Manrope, Poppins, sans-serif"\n font-size="22"\n font-style="italic"\n font-weight="400"\n text-anchor="middle"\n dominant-baseline="central"\n fill="var(--icon-accent, #DFFF1A)">X</text>\n</svg>',quickpick:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — QuickPick.\n Lightning bolt glyph. Transparent background; rendered onto the\n programmatic Press-to-Play tile.\n\n Themable: bolt fill uses currentColor (primary tone); edge stroke uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(28, 16) scale(0.55)">\n <path d="M 50 8 L 5 80 L 32 80 L 22 132 L 75 50 L 47 50 L 60 8 Z"\n fill="currentColor"\n stroke="var(--icon-accent, #DFFF1A)"\n stroke-width="3.5"\n stroke-linejoin="round"/>\n </g>\n</svg>',safety_net:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Safety Net.\n The brand basketball rim + curved diamond-mesh net catching a citron ball,\n taken from the YESNO Safety Net lockup / app icon. Transparent background;\n rendered on Press-to-Play tiles and brand lockups.\n\n Themable: net uses currentColor (teal on light, white on teal tile);\n ball uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(-2, -6.2) scale(1.3)">\n <line x1="9" y1="18" x2="71" y2="18" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>\n <path d="M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/>\n <ellipse cx="40" cy="64" rx="18" ry="4.5" fill="none" stroke="currentColor" stroke-width="2.2"/>\n <circle cx="40" cy="50" r="8" fill="var(--icon-accent, #DFFF1A)"/>\n </g>\n</svg>',ladder:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n The sub-brand staircase: four offset rungs climbing to the top, from the\n YESNO Ladder lockup ("Climb the ladder. Stack the prizes."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: alternating rungs use currentColor (primary tone) and the\n icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="4" y="76" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="20" y="54" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="36" y="32" width="44" height="11" rx="5.5" fill="currentColor"/>\n <rect x="52" y="10" width="44" height="11" rx="5.5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',game_set:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Game Set Bet.\n The sub-brand tennis ball: citron ball with the S-curve seam, from the\n Game Set Bet lockup / app icon ("Game. Set. Bet."). Transparent\n background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the seam and the ball\'s rim use currentColor (teal on light, paper\n on the teal app-icon tile); the ball uses the icon-accent CSS variable\n (default #DFFF1A). The rim is what keeps the ball readable on themes whose\n chip colour sits near the accent (e.g. citron on the green theme\'s #00E676).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(4, 4) scale(1.15)">\n <circle cx="40" cy="40" r="34" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4.5"/>\n <path d="M40 8 C12 14 11 40 40 40 C69 40 68 66 40 72" fill="none" stroke="currentColor" stroke-width="4.5" stroke-linecap="round"/>\n </g>\n</svg>',pick_your_dividend:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Ladder.\n Splayed ladder rails and rungs with the citron ball resting at the top —\n the stacked-multi that pays every rung your streak reaches. Transparent\n background; rendered onto the programmatic Press-to-Play tile.\n\n Themable: rails/rungs use currentColor (primary tone); the ball uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <line x1="36" y1="16" x2="27" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="64" y1="16" x2="73" y2="88" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="33.8" y1="34" x2="66.2" y2="34" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n <line x1="31.5" y1="52" x2="68.5" y2="52" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.8"/>\n <line x1="29.3" y1="70" x2="70.7" y2="70" stroke="currentColor" stroke-width="4" stroke-linecap="round" opacity="0.6"/>\n <circle cx="50" cy="20" r="9" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Mirror.\n Two offset square-stacks reflected across a central seam, from the YESNO\n Mirror Standard mark ("Get them all right, you win. All wrong, you win.").\n Transparent background; rendered on Press-to-Play tiles and brand lockups.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left stack --\x3e\n <rect x="6" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="14" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- right stack — the reflection across x=50 --\x3e\n <rect x="66" y="26" width="28" height="28" rx="7" fill="currentColor" opacity="0.4"/>\n <rect x="58" y="34" width="28" height="28" rx="7" fill="currentColor"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror_double:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Double Mirror.\n The Mirror mark reaching one slot further in: two reflected squares per side\n stepping toward the seam, the deeper pair dimmed because the near-miss tier\n pays less than the clean sweep.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left side — the all-wrong edge, stepping in --\x3e\n <rect x="4" y="26" width="26" height="26" rx="6.5" fill="currentColor"/>\n <rect x="20" y="44" width="26" height="26" rx="6.5" fill="currentColor" opacity="0.55"/>\n \x3c!-- right side — the reflection across x=50 --\x3e\n <rect x="70" y="26" width="26" height="26" rx="6.5" fill="currentColor"/>\n <rect x="54" y="44" width="26" height="26" rx="6.5" fill="currentColor" opacity="0.55"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',mirror_triple:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Triple Mirror.\n The Mirror mark reaching two slots in: three reflected squares per side\n stepping toward the seam, each dimmer than the last because each tier\n further from the edge pays less.\n\n Themable: the reflected stacks use currentColor (primary tone) and the\n mirror seam uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n \x3c!-- left side — the all-wrong edge, stepping in --\x3e\n <rect x="2" y="22" width="22" height="22" rx="5.5" fill="currentColor"/>\n <rect x="13" y="39" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.7"/>\n <rect x="24" y="56" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.45"/>\n \x3c!-- right side — the reflection across x=50 --\x3e\n <rect x="76" y="22" width="22" height="22" rx="5.5" fill="currentColor"/>\n <rect x="65" y="39" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.7"/>\n <rect x="54" y="56" width="22" height="22" rx="5.5" fill="currentColor" opacity="0.45"/>\n \x3c!-- mirror seam --\x3e\n <rect x="48" y="16" width="4" height="68" rx="2" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>',same_game_multi:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon - Same Game Multi.\n Three proposition legs contained inside one rounded fixture card: many\n picks, one game. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the fixture and leg marks use currentColor (primary tone); the\n locked lead leg uses the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="14" y="14" width="72" height="72" rx="13" fill="none" stroke="currentColor" stroke-width="6"/>\n <circle cx="31" cy="35" r="6" fill="var(--icon-accent, #DFFF1A)"/>\n <rect x="43" y="31" width="31" height="8" rx="4" fill="currentColor"/>\n <circle cx="31" cy="51" r="6" fill="currentColor" opacity="0.8"/>\n <rect x="43" y="47" width="25" height="8" rx="4" fill="currentColor" opacity="0.8"/>\n <circle cx="31" cy="67" r="6" fill="currentColor" opacity="0.6"/>\n <rect x="43" y="63" width="19" height="8" rx="4" fill="currentColor" opacity="0.6"/>\n</svg>',six_again:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — 6 Again.\n Three stacked cards — the restart, the set again — with the citron six on the\n front of the deck. Transparent background; rendered on Press-to-Play tiles\n and brand lockups.\n\n Themable: the stack uses currentColor (primary tone); the front card carries\n the icon-accent CSS variable (default #DFFF1A) with a currentColor rim, and\n the numeral is knocked out in currentColor. Accent-as-card rather than\n accent-as-numeral because the numeral is small: on themes where the accent\n sits near the icon colour (orange on white in green-light) an accent numeral\n washes out, while an accent card stays legible and its rim keeps the card\n readable when the accent sits near the chip colour instead.\n\n The numeral is laid out with geometry, not font metrics: a single-chunk\n <text> pinned with textLength at an explicit x and baseline y, because\n react-native-svg anchors each chunk itself and ignores text-anchor drift.\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <rect x="32" y="8" width="60" height="60" rx="13" fill="currentColor" opacity="0.3"/>\n <rect x="24" y="16" width="60" height="60" rx="13" fill="currentColor" opacity="0.55"/>\n <rect x="16" y="24" width="60" height="60" rx="13" fill="var(--icon-accent, #DFFF1A)" stroke="currentColor" stroke-width="4"/>\n <text x="35" y="68"\n font-family="Manrope, Poppins, sans-serif"\n font-size="40"\n font-weight="800"\n textLength="22"\n lengthAdjust="spacingAndGlyphs"\n fill="currentColor">6</text>\n</svg>',unknown:'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!--\n YESNO icon — Unknown game fallback.\n Question mark glyph on a transparent background.\n\n Themable: the mark uses currentColor (primary tone) and the dot uses\n the icon-accent CSS variable (default #DFFF1A).\n--\x3e\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet">\n <path\n d="M 28 42 C 28 26 36 16 46 16 C 58 16 66 26 66 38 C 66 48 58 54 50 58 L 50 68"\n fill="none"\n stroke="currentColor"\n stroke-width="8"\n stroke-linecap="round"\n stroke-linejoin="round"\n />\n <circle cx="50" cy="82" r="5" fill="var(--icon-accent, #DFFF1A)"/>\n</svg>'},he={perfectpick:"perfect_pick",headtohead:"head_to_head",totalpoints:"total_points",quickpick:"quickpick",safetynet:"safety_net",gameset:"game_set",gamesetbet:"game_set",pickyourdividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",mirrorstandard:"mirror",straightmirror:"mirror",doublemirror:"mirror_double",triplemirror:"mirror_triple",samegame:"same_game_multi",samegamemulti:"same_game_multi",sixagain:"six_again"},ue={safety_net:"safety_net",game_set:"game_set",pick_your_dividend:"pick_your_dividend",ladder:"ladder",mirror:"mirror",double_mirror:"mirror_double",triple_mirror:"mirror_triple",same_game_multi:"same_game_multi",six_again:"six_again"};function ge(e){if(e.quick_pick_only)return"quickpick";const t=ue[e.rule?.trim().toLowerCase()??""];if(t)return t;const n=(e.game_name??"").toLowerCase().replace(/[^a-z0-9]+/g,"");return he[n]??"unknown"}function fe(e){return`${se}${ge(e)}`}function pe(e){if(!function(e){return e.startsWith(se)}(e))return null;const t=e.slice(10);return de[t]??de.unknown}var ye={text:"YES",tone:"yes"},me={text:"NO",tone:"no"},be=[{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"}],we=["zero","one","two","three","four","five","six","seven","eight"],xe=[{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."}],ke=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."}],Se={perfect_pick:{summary:["Perfect Pick is the multi you already know, with one big difference. You pick ",ye," or ",me," across your legs, every leg has to land, and one perfect card takes the prize."],steps:xe,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 ",ye," or ",me," on each matchup, land every leg, and the card pays."],steps:xe,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},total_points:{summary:["Total Points is all about the scoreboard. Call ",ye," or ",me," on each total, land every leg, and the card pays."],steps:xe,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},quickpick:{summary:["QuickPick fills the card for you. We generate the ",ye," and ",me," 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 ",ye," or ",me," 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:ke("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 ",ye," or ",me," on every leg — reach the first rung and you start winning, and every rung after that stacks another prize on top."],steps:ke("ladder"),demoPrompt:"Try a {n}-leg ladder — the climb starts at {n1} right."},game_set:{summary:["Game Set Bet is straight sets. Pick ",ye," or ",me," on every leg — each extra leg doubles the prize, and a clean card takes the lot."],steps:ke("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 ",ye," or ",me," on every leg — land them all and the entry pays the dividend you picked."],steps:ke("dividend"),demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."},mirror:{summary:["Mirror pays both ways. Pick ",ye," or ",me," 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:ke("card"),demoPrompt:"Try a {n}-leg mirror — sweep it either way."},six_again:{summary:["6 Again is one six-leg card with boosts riding on it. Pick ",ye," or ",me," on all six calls — land the lot and the card pays. Golden Point doubles a winning card, and the Captain’s Challenge collects even when one call gets away."],steps:[{title:"Set your play",detail:"Choose your stake, then switch on the boosts you want."},{title:"Make your six calls",detail:"YES or NO on every call, {min} of them."},{title:"Check the slip",detail:"Your stake is locked from the setup — review every pick."},{title:"Place your entry",detail:"Confirm and you are on."}],demoPrompt:"Try a {n}-leg card — call every leg, then run it."},same_game_multi:{summary:["Same Game Multi keeps every leg inside one fixture. Pick ",ye," or ",me," across the game — land every leg and the card pays."],steps:xe,demoPrompt:"Try a quick {n}-leg card — call every leg, then run it."}};function Ce(e){if(!e)return null;const t=ge(e),n=Se[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),be.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:be.slice(0,i),demoPrompt:l(n.demoPrompt).replace(/\{n1\}/g,we[i-1]??String(i-1)).replace(/\{n\}/g,we[i]??String(i))}}function Be(e,t,n=!0){const o=e.current;o&&("web"!==c.Platform.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 ze(e,t){return{onMouseEnter:e,onMouseLeave:t}}function ve({theme:e,variant:t="primary",size:n="md",disabled:o,block:r,radius:i="md",onPress:l,onLongPress:d,style:h,children:u,accessibilityLabel:g}){const f=T(e),p=e.colors,y={sm:{h:36,px:f.space.md,fs:f.fontSize.sm},md:{h:f.touchTarget.min,px:f.space.lg,fs:f.fontSize.md},lg:{h:52,px:f.space.xl,fs:f.fontSize.lg}},m={sm:f.radius.sm,md:f.radius.md,lg:f.radius.lg,pill:f.radius.pill},b={primary:{bg:p.buttonPrimary,bgPressed:p.buttonPrimaryHover,fg:p.buttonPrimaryText,border:p.buttonPrimary},secondary:{bg:p.buttonSecondary,bgPressed:p.buttonSecondaryHover,fg:p.buttonSecondaryText,border:p.border},ghost:{bg:"transparent",bgPressed:B(p.text,f.isDark?.1:.06),fg:p.text,border:"transparent"},danger:{bg:p.error,bgPressed:B(p.error,.85),fg:"#ffffff",border:p.error}}[t],[w,x]=a.default.useState(!1);return(0,s.jsx)(c.Pressable,{accessibilityRole:"button",accessibilityLabel:g,accessibilityState:{disabled:!!o},disabled:o,onPress:l,onLongPress:d,onHoverIn:()=>x(!0),onHoverOut:()=>x(!1),style:({pressed:e})=>[{minHeight:y[n].h,paddingHorizontal:y[n].px,borderRadius:m[i],backgroundColor:!e&&!w||o?b.bg:b.bgPressed,borderColor:b.border,borderWidth:1,alignSelf:r?"stretch":"flex-start",alignItems:"center",justifyContent:"center",flexDirection:"row",opacity:o?.5:1,transform:[{scale:e&&!o?.985:1}]},h],children:"string"==typeof u?(0,s.jsx)(c.Text,{style:{color:b.fg,fontSize:y[n].fs,fontWeight:"500"},children:u}):u})}var Fe={xs:{paddingVertical:3,paddingHorizontal:10,fontSize:11},sm:{paddingVertical:6,paddingHorizontal:14,fontSize:13},md:{paddingVertical:8,paddingHorizontal:18,fontSize:14}};function We(e,t,n,o,r,i){const l=T(e),a=Fe[o];return{container:{paddingVertical:a.paddingVertical,paddingHorizontal:a.paddingHorizontal,borderRadius:l.radius.sm,alignItems:"center",justifyContent:"center",backgroundColor:t?n:"transparent",borderWidth:1,borderColor:t?"transparent":e.colors.border,opacity:r?.5:1,...i?{flex:1}:null},label:{fontSize:a.fontSize,fontWeight:"600",lineHeight:1.2*a.fontSize,color:t?"#ffffff":e.colors.text}}}function Te({theme:e,value:t,onYes:n,onNo:o,size:r="md",stretch:i,disabled:l,yesLabel:a="Yes",noLabel:d="No",style:h}){const u=We(e,"yes"===t,M(e),r,l,i),g=We(e,"no"===t,P(e),r,l,i);return(0,s.jsxs)(c.View,{style:[{flexDirection:"row",gap:8,flexShrink:0},i?{alignSelf:"stretch"}:null,h],children:[(0,s.jsx)(c.Pressable,{accessibilityRole:"button",accessibilityState:{selected:"yes"===t,disabled:!!l},disabled:l,onPress:l?void 0:n,style:u.container,children:(0,s.jsx)(c.Text,{style:u.label,children:a})}),(0,s.jsx)(c.Pressable,{accessibilityRole:"button",accessibilityState:{selected:"no"===t,disabled:!!l},disabled:l,onPress:l?void 0:o,style:g.container,children:(0,s.jsx)(c.Text,{style:g.label,children:d})})]})}function Ae({theme:e,value:t,size:n="md",style:o}){const r=T(e),i="sm"===n?10:11;return(0,s.jsx)(c.View,{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?M(e):P(e)},o],children:(0,s.jsx)(c.Text,{style:{fontSize:i,fontWeight:"700",letterSpacing:.04*i,textTransform:"uppercase",color:"#ffffff"},children:"yes"===t?"Yes":"No"})})}function Le({delay:e=0,style:t,children:n}){const{transform:o}=function(e=0){const t=a.default.useRef(new c.Animated.Value(0)).current;return a.default.useEffect(()=>{let n=!1;const o=o=>{n||(o?t.setValue(1):c.Animated.timing(t,{toValue:1,duration:500,delay:e,easing:c.Easing.bezier(.2,.8,.2,1),useNativeDriver:"web"!==c.Platform.OS}).start())},r=c.AccessibilityInfo.isReduceMotionEnabled?.();r&&"function"==typeof r.then?r.then(o).catch(()=>o(!1)):o(!1);const i=c.AccessibilityInfo.addEventListener?.("reduceMotionChanged",e=>{e&&t.setValue(1)});return()=>{n=!0,i?.remove?.()}},[e,t]),{opacity:t,transform:[{translateY:t.interpolate({inputRange:[0,1],outputRange:[14,0]})}]}}(e);return(0,s.jsx)(c.Animated.View,{style:[t,{transform:o}],children:n})}var Re=/\b(YES|NO)\b/;function De(e,t,n){return e.split(Re).map((e,o)=>"YES"===e||"NO"===e?(0,s.jsx)(Ae,{theme:t,value:"YES"===e?"yes":"no",size:"sm"},`${n}-${o}`):(0,s.jsx)(c.Text,{children:e},`${n}-${o}`))}function Me({segments:e,theme:t,bodyFont:n}){return(0,s.jsx)(c.Text,{style:[He.summary,{color:t.colors.text,fontFamily:n}],children:e.map((e,n)=>"string"==typeof e?(0,s.jsx)(c.Text,{children:De(e,t,n)},n):(0,s.jsx)(Ae,{theme:t,value:e.tone,size:"sm"},n))})}function Pe({panel:e,theme:t,dividends:n,bodyFont:o,headingFont:r}){const i=t.colors,l=t.brand?.accent??i.primaryText,d=j(t),[h,u]=(0,a.useState)("learn"),[g,f]=(0,a.useState)(()=>e.demoLegs.map(()=>null)),[p,y]=(0,a.useState)(!1),m=e.demoLegs.length,b=g.filter(e=>null!=e).length,w=b===m,x=e.demoLegs.filter((e,t)=>g[t]===e.outcome).length,k=function(e,t,n){const o=t===n,r=`${t} of ${n}`;switch(e){case"mirror":return o?{won:!0,message:`All ${n} right — that is the sweep, the card pays.`}:0===t?{won:!0,message:`All ${n} wrong — a full mirror sweep pays the same as perfect.`}:{won:!1,message:`${r} is a split card. Mirror pays all right or all wrong — nothing in between.`};case"ladder":return o?{won:!0,message:`Top rung — all ${n} right stacks every prize on the ladder into one payout.`}:t>=n-1?{won:!0,message:`${r} reaches a rung — it pays, and every extra leg right stacks the next prize on top.`}:{won:!1,message:`${r} does not reach the first rung — the climb starts at ${n-1} right.`};case"safety_net":return o?{won:!0,message:`Clean sweep — all ${n} right takes the full prize.`}:t===n-1?{won:!0,message:"One miss — the net catches it and the entry still pays."}:{won:!1,message:`${r} is more than the net holds — one miss is covered, two is not.`};case"six_again":return o?{won:!0,message:`All ${n} right — the card pays, and Golden Point doubles it.`}:t===n-1?{won:!1,message:`${r} — one call away. The Captain’s Challenge is the boost that collects on this card.`}:{won:!1,message:`${r} — every call has to land. Flip the misses and the card pays.`};case"game_set":return o?{won:!0,message:`Game, set, bet — all ${n} legs landed and the card pays.`}:{won:!1,message:`${r} — every leg has to land. Flip the misses and it is straight sets.`};case"pick_your_dividend":return o?{won:!0,message:`All ${n} right — the entry pays the dividend you picked.`}:{won:!1,message:`${r} — every leg has to land to collect your dividend.`};default:return o?{won:!0,message:`Perfect card — all ${n} legs landed, the prize is yours.`}:{won:!1,message:`${r} — one miss breaks a perfect card. Flip the misses and it pays.`}}}(e.id,x,m),S=(e,t)=>{p||f(n=>n.map((n,o)=>o===e?t:n))},C=p?"Settled":`${b} of ${m} called`,z=!p&&w,v=e=>[He.segment,{backgroundColor:e?i.primary:"transparent"}],F=e=>[He.segmentText,{color:e?i.primaryText:i.textMuted,fontFamily:r}];return(0,s.jsxs)(c.View,{children:[(0,s.jsxs)(c.View,{style:[He.segments,{borderColor:i.border,backgroundColor:i.backgroundAlt}],children:[(0,s.jsx)(c.TouchableOpacity,{onPress:()=>u("learn"),accessibilityRole:"tab",accessibilityState:{selected:"learn"===h},style:v("learn"===h),children:(0,s.jsx)(c.Text,{style:F("learn"===h),children:"How it works"})}),(0,s.jsx)(c.TouchableOpacity,{onPress:()=>u("try"),accessibilityRole:"tab",accessibilityState:{selected:"try"===h},style:v("try"===h),children:(0,s.jsx)(c.Text,{style:F("try"===h),children:"Quick demo"})}),n?(0,s.jsx)(c.TouchableOpacity,{onPress:()=>u("pay"),accessibilityRole:"tab",accessibilityState:{selected:"pay"===h},style:v("pay"===h),children:(0,s.jsx)(c.Text,{style:F("pay"===h),children:"Dividends"})}):null]}),"pay"===h?n:null,"learn"===h&&(0,s.jsxs)(c.View,{children:[(0,s.jsx)(Me,{segments:e.summary,theme:t,bodyFont:o}),(0,s.jsxs)(c.View,{style:[He.steps,He.stepsSpaced],children:[(0,s.jsx)(c.View,{pointerEvents:"none",style:[He.rail,{backgroundColor:B(i.primary,.25)}]}),e.steps.map((e,n)=>(0,s.jsxs)(c.View,{style:He.step,children:[(0,s.jsx)(c.View,{style:[He.stepTile,{backgroundColor:i.primary}],children:(0,s.jsx)(c.Text,{style:[He.stepTileText,{color:l,fontFamily:r}],children:n+1})}),(0,s.jsxs)(c.View,{style:He.stepText,children:[(0,s.jsx)(c.Text,{style:[He.stepTitle,{color:i.primary,fontFamily:r}],children:e.title}),(0,s.jsx)(c.Text,{style:[He.stepDetail,{color:i.textMuted,fontFamily:o}],children:De(e.detail,t,n)})]})]},e.title))]}),(0,s.jsx)(c.TouchableOpacity,{onPress:()=>u("try"),accessibilityRole:"button",children:(0,s.jsx)(c.Text,{style:[He.tryLink,{color:i.primary,fontFamily:r}],children:"Try a quick demo →"})})]}),"try"===h&&(0,s.jsxs)(c.View,{style:[He.slip,He.slipFlush,{borderColor:i.border,backgroundColor:d}],children:[(0,s.jsx)(c.View,{style:He.slipHead,children:(0,s.jsxs)(c.View,{style:He.slipHeadRow,children:[(0,s.jsx)(c.Text,{style:[He.prompt,He.promptGrow,{color:i.textMuted,fontFamily:o}],children:p?"Here is how it settled.":e.demoPrompt}),(0,s.jsx)(c.View,{style:[He.counter,z?{borderColor:i.primary,backgroundColor:i.primary}:{borderColor:B(i.border,.9),backgroundColor:"transparent"}],children:(0,s.jsx)(c.Text,{style:[He.counterText,{color:z?i.primaryText:i.textMuted,fontFamily:o}],children:C})})]})}),(0,s.jsx)(c.View,{style:He.legs,children:e.demoLegs.map((e,n)=>{const r=g[n]===e.outcome;return(0,s.jsxs)(c.View,{style:[He.leg,n>0&&{borderTopWidth:1,borderTopColor:B(i.border,.7)}],children:[(0,s.jsxs)(c.View,{style:He.legMain,children:[(0,s.jsx)(c.View,{style:[He.pip,p?{backgroundColor:r?i.success:i.error}:{borderWidth:1.5,borderColor:g[n]?i.primary:i.border}],children:(0,s.jsx)(c.Text,{style:[He.pipText,{color:p?"#fff":g[n]?i.primary:i.textMuted}],children:p?r?"✓":"✗":n+1})}),(0,s.jsx)(c.View,{style:He.legText,children:(0,s.jsx)(c.Text,{style:[He.legQuestion,{color:i.text,fontFamily:o}],children:e.question})})]}),p?(0,s.jsx)(Ae,{theme:t,size:"sm",value:e.outcome}):(0,s.jsx)(Te,{theme:t,size:"sm",value:g[n],onYes:()=>S(n,"yes"),onNo:()=>S(n,"no")})]},e.question)})}),(0,s.jsx)(c.View,{style:[He.perforation,{borderTopColor:B(i.border,.9)}]}),(0,s.jsx)(c.View,{style:He.slipFoot,children:p?(0,s.jsxs)(c.View,{children:[(0,s.jsxs)(c.View,{style:[He.verdict,{backgroundColor:k.won?i.successBg:i.errorBg}],children:[(0,s.jsx)(c.View,{style:[He.stamp,{borderColor:k.won?i.successText:i.errorText}],children:(0,s.jsx)(c.Text,{style:[He.stampText,{color:k.won?i.successText:i.errorText,fontFamily:r}],children:k.won?"Winner":"No win"})}),(0,s.jsx)(c.Text,{style:[He.verdictText,{color:k.won?i.successText:i.errorText,fontFamily:o}],children:k.message})]}),(0,s.jsx)(c.TouchableOpacity,{onPress:()=>{f(e.demoLegs.map(()=>null)),y(!1)},accessibilityRole:"button",children:(0,s.jsx)(c.Text,{style:[He.tryAgain,{color:i.textMuted,fontFamily:o}],children:"↺ Try again"})})]}):(0,s.jsx)(ve,{theme:t,size:"sm",block:!0,disabled:!w,onPress:()=>y(!0),children:"Run the demo"})})]})]})}var He=c.StyleSheet.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 Oe({text:e,colors:t}){const n=function(e){const t=[],n=/\*\*(.+?)\*\*/g;let o,r=0;for(;null!==(o=n.exec(e));)o.index>r&&t.push({text:e.slice(r,o.index),bold:!1}),t.push({text:o[1],bold:!0}),r=o.index+o[0].length;return r<e.length&&t.push({text:e.slice(r),bold:!1}),0===t.length&&t.push({text:e,bold:!1}),t}(e);return(0,s.jsx)(c.Text,{children:n.map((e,n)=>(0,s.jsx)(c.Text,{style:{fontWeight:e.bold?"700":"400",color:e.bold?t.text:t.textMuted},children:e.text},n))})}function Ie({content:e,colors:t}){const n=x(e);let o=null;try{o=require("react-native-webview").WebView}catch{o=null}return o?(0,s.jsx)(o,{source:{html:n},style:{minHeight:420,width:"100%"},originWhitelist:["*"],scrollEnabled:!0}):(0,s.jsx)(c.Text,{style:{fontSize:14,lineHeight:22,color:t.textMuted},children:"This guide uses HTML. Install react-native-webview in the host app to display it on native."})}function Ee({rows:e}){return(0,s.jsx)(c.View,{style:{gap:0,marginVertical:6},children:e.map((e,t)=>(0,s.jsxs)(c.View,{style:{flexDirection:"row",borderWidth:1,borderColor:u,borderTopWidth:0===t?1:0},children:[(0,s.jsx)(c.View,{style:{flex:2.2,backgroundColor:"#F9FAFB",paddingVertical:11,paddingHorizontal:14,borderRightWidth:1,borderRightColor:u},children:(0,s.jsx)(c.Text,{style:{fontSize:15,color:"#1A1A1A"},children:e.question})}),(0,s.jsx)(c.View,{style:{flex:.65,backgroundColor:"#DCFCE7",paddingVertical:11,paddingHorizontal:8,alignItems:"center",justifyContent:"center",borderRightWidth:1,borderRightColor:u},children:(0,s.jsx)(c.Text,{style:{fontSize:15,fontWeight:"700",color:"#166534"},children:"YES"})}),(0,s.jsx)(c.View,{style:{flex:.65,backgroundColor:"#FEE2E2",paddingVertical:11,paddingHorizontal:8,alignItems:"center",justifyContent:"center"},children:(0,s.jsx)(c.Text,{style:{fontSize:15,fontWeight:"700",color:"#991B1B"},children:"NO"})})]},t))})}function je({content:e,colors:t,bodyFont:n,headingFont:o}){const r=function(e){const t=e.replace(/\r\n/g,"\n").split("\n"),n=[];let o=[],r=[];const i=()=>{const e=o.map(e=>e.trim()).filter(Boolean);if(e.length>0){const t=e.map(e=>g(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(k);if(t){l(),i(),n.push({type:"heading",level:Math.min(t[1].length,3),text:t[2].trim()});continue}if(C.test(e)){l(),i(),n.push({type:"hr"});continue}const c=e.match(S);c?(i(),r.push(c[1].trim())):(l(),o.push(e))}return l(),i(),n}(e);return(0,s.jsx)(c.View,{style:{gap:14},children:r.map((e,r)=>"heading"===e.type?(0,s.jsx)(c.Text,{style:{fontSize:{1:20,2:18,3:16}[e.level],fontWeight:"800",color:t.text,textTransform:1===e.level?"uppercase":"none",fontFamily:o??n},children:(0,s.jsx)(Oe,{text:e.text,colors:t})},r):"paragraph"===e.type?(0,s.jsx)(c.Text,{style:{fontSize:14,lineHeight:22,color:t.textMuted,fontFamily:n},children:(0,s.jsx)(Oe,{text:e.text,colors:t})},r):"list"===e.type?(0,s.jsx)(c.View,{style:{gap:6,paddingLeft:8},children:e.items.map((e,o)=>(0,s.jsxs)(c.Text,{style:{fontSize:14,lineHeight:22,color:t.textMuted,fontFamily:n},children:["• ",(0,s.jsx)(Oe,{text:e,colors:t})]},o))},r):"propsTable"===e.type?(0,s.jsx)(Ee,{rows:e.rows},r):(0,s.jsx)(c.View,{style:{height:1,backgroundColor:t.border,marginVertical:4}},r))})}function Ne({content:e,panel:t,theme:n,extra:o,title:r="How to Play",label:i="How to Play",variant:l="pill",colors:d,bodyFont:h,headingFont:u}){const[g,f]=(0,a.useState)(!1),{width:p}=(0,c.useWindowDimensions)(),x=p>=640,k=!(!t||!n);if(!e?.trim()&&!k&&!o)return null;const S=!k&&!!e&&function(e){const t=e.trim();if(!t)return!1;if(w(t))return!0;const n=y(t);return!!m.test(n)||b.test(t)}(e);return(0,s.jsxs)(s.Fragment,{children:["icon"===l?(0,s.jsx)(c.TouchableOpacity,{onPress:()=>f(!0),style:[Ge.iconButton,{borderColor:d.primary,backgroundColor:`${d.primary}14`}],accessibilityRole:"button",accessibilityLabel:i,children:(0,s.jsx)(c.Text,{style:[Ge.iconButtonText,{color:d.primary,fontFamily:h}],children:"?"})}):(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>f(!0),style:[Ge.button,{borderColor:d.primary,backgroundColor:`${d.primary}10`}],accessibilityRole:"button",accessibilityLabel:i,children:[(0,s.jsx)(c.Text,{style:[Ge.buttonText,{color:d.primary,fontFamily:h}],children:i}),(0,s.jsx)(c.Text,{style:[Ge.buttonText,{color:d.primary,fontFamily:h}],children:"?"})]}),(0,s.jsx)(c.Modal,{visible:g,animationType:"none",transparent:!0,onRequestClose:()=>f(!1),children:(0,s.jsxs)(c.View,{style:[Ge.overlay,x?{justifyContent:"center",alignItems:"center",padding:16}:{justifyContent:"flex-end"}],children:[(0,s.jsx)(c.Pressable,{style:c.StyleSheet.absoluteFill,onPress:()=>f(!1)}),(0,s.jsxs)(c.View,{style:[Ge.sheet,x?{maxWidth:672,maxHeight:"85%",borderRadius:16}:{maxHeight:"88%",borderTopLeftRadius:16,borderTopRightRadius:16},{backgroundColor:d.background,borderColor:d.border}],children:[(0,s.jsx)(c.View,{style:[Ge.header,{paddingHorizontal:x?24:16,borderBottomColor:d.border,backgroundColor:d.backgroundAlt}],children:(0,s.jsx)(c.Text,{style:[Ge.title,{color:d.text,fontFamily:u??h}],children:r})}),(0,s.jsx)(c.ScrollView,{contentContainerStyle:S?void 0:{paddingHorizontal:x?24:16,paddingVertical:20},children:k?(0,s.jsx)(Pe,{panel:t,theme:n,dividends:o,bodyFont:h,headingFont:u}):(0,s.jsxs)(s.Fragment,{children:[S?(0,s.jsx)(Ie,{content:e,colors:d}):(0,s.jsx)(je,{content:e??"",colors:d,bodyFont:h,headingFont:u}),o?(0,s.jsx)(c.View,{style:S?{paddingHorizontal:x?24:16,paddingBottom:20}:{marginTop:16},children:o}):null]})}),(0,s.jsx)(c.SafeAreaView,{style:[Ge.footer,{borderTopColor:d.border,backgroundColor:d.backgroundAlt}],children:(0,s.jsx)(c.View,{style:{paddingVertical:16,paddingHorizontal:x?24:16},children:(0,s.jsx)(c.Pressable,{onPress:()=>f(!1),style:({pressed:e,hovered:t})=>[Ge.doneButton,{alignSelf:"stretch",alignItems:"center",backgroundColor:d.primary,opacity:e?.88:t?.92:1,transform:[{scale:e?.99:1}]}],children:(0,s.jsx)(c.Text,{style:[Ge.doneText,{color:d.primaryText,fontFamily:h}],children:"Got it"})})})})]})]})})]})}var Ge=c.StyleSheet.create({button:{alignSelf:"flex-start",flexDirection:"row",alignItems:"center",gap:6,borderWidth:1,borderRadius:999,paddingHorizontal:12,paddingVertical:6},buttonText:{fontSize:12,fontWeight:"600"},iconButton:{width:21,height:21,borderRadius:11,borderWidth:1,alignItems:"center",justifyContent:"center",flexShrink:0},iconButtonText:{fontSize:12,fontWeight:"800",lineHeight:15},overlay:{flex:1,backgroundColor:"rgba(0,0,0,0.55)"},sheet:{width:"100%",borderWidth:1,overflow:"hidden",shadowColor:"#000",shadowOffset:{width:0,height:25},shadowOpacity:.25,shadowRadius:25,elevation:24},header:{paddingTop:12,paddingBottom:16,borderBottomWidth:1},title:{fontSize:18,fontWeight:"700"},footer:{borderTopWidth:1},doneButton:{borderRadius:999,paddingVertical:14,paddingHorizontal:20},doneText:{fontSize:14,fontWeight:"800",letterSpacing:1.1,textTransform:"uppercase"}});function Ye({category:e,size:t=14,color:n="currentColor"}){const o=n,r=2.25;switch(e){case"casino":return(0,s.jsxs)(d.default,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,s.jsx)(d.Path,{d:"M10.348 3.169l-7.15 3.113a2 2 0 0 0 -1.03 2.608l4.92 11.895a1.96 1.96 0 0 0 2.59 1.063l7.142 -3.11a2.002 2.002 0 0 0 1.036 -2.611l-4.92 -11.894a1.96 1.96 0 0 0 -2.588 -1.064z",fill:n}),(0,s.jsx)(d.Path,{d:"M16 3a2 2 0 0 1 1.995 1.85l.005 .15v3.5a1 1 0 0 1 -1.993 .117l-.007 -.117v-3.5h-1a1 1 0 0 1 -.117 -1.993l.117 -.007h1z",fill:n}),(0,s.jsx)(d.Path,{d:"M19.08 5.61a1 1 0 0 1 1.31 -.53c.257 .108 .505 .21 .769 .314a2 2 0 0 1 1.114 2.479l-.056 .146l-2.298 5.374a1 1 0 0 1 -1.878 -.676l.04 -.11l2.296 -5.371l-.366 -.148l-.402 -.167a1 1 0 0 1 -.53 -1.312z",fill:n})]});case"racing":return(0,s.jsxs)(d.default,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,s.jsx)(d.Path,{d:"M7 10l-.85 8.507a1.357 1.357 0 0 0 1.35 1.493h.146a2 2 0 0 0 1.857 -1.257l.994 -2.486a2 2 0 0 1 1.857 -1.257h1.292a2 2 0 0 1 1.857 1.257l.994 2.486a2 2 0 0 0 1.857 1.257h.146a1.37 1.37 0 0 0 1.364 -1.494l-.864 -9.506h-8c0 -3 -3 -5 -6 -5l-3 6l2 2l3 -2",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)(d.Path,{d:"M22 14v-2a3 3 0 0 0 -3 -3",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]});case"women":return(0,s.jsxs)(d.default,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,s.jsx)(d.Path,{d:"M7 9a5 5 0 1 0 10 0a5 5 0 1 0 -10 0",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)(d.Path,{d:"M12 14v7",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)(d.Path,{d:"M9 18h6",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]});default:return(0,s.jsxs)(d.default,{width:t,height:t,viewBox:"0 0 24 24",fill:"none",children:[(0,s.jsx)(d.Path,{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)(d.Path,{d:"M12 7l4.76 3.45l-1.76 5.55h-6l-1.76 -5.55l4.76 -3.45",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)(d.Path,{d:"M12 7v-4m3 13l2.5 3m-.74 -8.55l3.74 -1.45m-11.44 7.05l-2.56 2.95m.74 -8.55l-3.74 -1.45",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})]})}}function Ve({size:e=20,color:t="currentColor"}){return(0,s.jsx)(d.default,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(d.Path,{d:"m9 6 6 6-6 6",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function Ue({size:e=20,color:t="currentColor"}){return(0,s.jsxs)(d.default,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[(0,s.jsx)(d.Path,{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"}),(0,s.jsx)(d.Path,{d:"M8 11V7a4 4 0 1 1 8 0v4",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})]})}function qe({size:e=20,color:t="currentColor"}){return(0,s.jsx)(d.default,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(d.Path,{d:"M21 4H3l7.2 8.5V19l3.6 2v-8.5L21 4z",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function Ke({label:e,category:t,icon:n,theme:o,disabled:r=!1}){const i=o.colors,l=ce(o),{width:a}=(0,c.useWindowDimensions)(),d=a>=480?20:a>=400?18:16,h=r?i.textMuted:i.textAlt??i.text,u=r?i.border:o.brand?.chip??i.primary,g=r?i.textMuted:o.brand?.icon??i.primaryText??i.buttonPrimaryText;return(0,s.jsxs)(c.View,{style:[Ze.row,{gap:.25*d}],children:[(0,s.jsxs)(c.Text,{accessibilityLabel:"YESNO",style:{fontSize:d,lineHeight:1.15*d,letterSpacing:-1,color:h,fontFamily:l},children:[(0,s.jsx)(c.Text,{style:Ze.yes,children:"YES"}),(0,s.jsx)(c.Text,{style:Ze.no,children:"NO"})]}),(0,s.jsx)(c.View,{accessible:!0,accessibilityRole:"image",accessibilityLabel:e,style:[Ze.pill,{width:1.6*d,height:.85*d,borderRadius:.425*d,backgroundColor:u,transform:[{translateY:.02*-d}]}],children:n??(0,s.jsx)(Ye,{category:t,size:.6*d,color:g})}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"flex-start",flexShrink:1,minWidth:0},children:[(0,s.jsx)(c.Text,{style:{fontWeight:"500",fontSize:d,lineHeight:1.15*d,flexShrink:1,minWidth:0,color:h,fontFamily:l,includeFontPadding:!1},children:e}),(0,s.jsx)(c.Text,{style:{fontSize:.3*d,lineHeight:.3*d,fontWeight:"600",marginLeft:.06*d,color:h,fontFamily:l,includeFontPadding:!1},children:"TM"})]})]})}var Ze=c.StyleSheet.create({row:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",maxWidth:"100%"},yes:{fontWeight:"900"},no:{fontWeight:"300"},pill:{alignItems:"center",justifyContent:"center",flexShrink:0}});function Xe({size:e=20,color:t="currentColor",filled:n=!1}){return(0,s.jsx)(d.default,{width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(d.Path,{d:"M12 3.6l2.6 5.28 5.83.85-4.22 4.11.997 5.8L12 16.9l-5.2 2.74.99-5.8L3.57 9.73l5.83-.85L12 3.6z",fill:n?t:"none",stroke:t,strokeWidth:2.25,strokeLinecap:"round",strokeLinejoin:"round"})})}function Qe({theme:e,contentContainerStyle:t,style:n,children:o}){const r=e.colors,i=(0,a.useRef)(null),l=(0,a.useRef)(0),d=(0,a.useRef)(0),h=(0,a.useRef)(0),[u,g]=(0,a.useState)(!1),[f,p]=(0,a.useState)(!1),y=()=>{const e=h.current-d.current;g(l.current>2),p(l.current<e-2)},m=e=>{const t=Math.max(0,l.current+e*Math.round(.7*d.current));Be(i,t)},b=r.background??"#fff";return(0,s.jsxs)(c.View,{style:[Je.wrap,n],children:[(0,s.jsx)(c.ScrollView,{ref:i,horizontal:!0,showsHorizontalScrollIndicator:!1,onScroll:e=>{l.current=e.nativeEvent.contentOffset.x,y()},onLayout:e=>{d.current=e.nativeEvent.layout.width,y()},onContentSizeChange:e=>{h.current=e,y()},scrollEventThrottle:32,contentContainerStyle:[Je.content,t],children:o}),u&&(0,s.jsx)(c.TouchableOpacity,{accessibilityLabel:"Scroll left",onPress:()=>m(-1),style:[Je.nav,Je.navLeft,{backgroundColor:b,borderColor:r.border}],children:(0,s.jsx)(c.View,{style:Je.navFlip,children:(0,s.jsx)(Ve,{size:14,color:r.primary})})}),f&&(0,s.jsx)(c.TouchableOpacity,{accessibilityLabel:"Scroll right",onPress:()=>m(1),style:[Je.nav,Je.navRight,{backgroundColor:b,borderColor:r.border}],children:(0,s.jsx)(Ve,{size:14,color:r.primary})})]})}var Je=c.StyleSheet.create({wrap:{position:"relative",minWidth:0},content:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:2,paddingVertical:2},nav:{position:"absolute",top:"50%",marginTop:-13,width:26,height:26,borderRadius:13,borderWidth:1,alignItems:"center",justifyContent:"center",shadowColor:"#0F4C5C",shadowOpacity:.35,shadowRadius:5,shadowOffset:{width:0,height:4},elevation:3},navLeft:{left:-2},navRight:{right:-2},navFlip:{transform:[{rotate:"180deg"}]}});function $e({groups:e,theme:t,bodyFont:n}){const o=t.colors,r=o.background??"#fff";return 0===e.length?null:(0,s.jsx)(Qe,{theme:t,children:e.map((e,t)=>(0,s.jsxs)(a.default.Fragment,{children:[t>0&&(0,s.jsx)(c.View,{style:[et.divider,{backgroundColor:o.border}]}),e.label?(0,s.jsx)(c.Text,{style:[et.groupLabel,{color:o.textMuted,fontFamily:n}],children:e.label}):null,e.options.map(t=>{const i=t.value===e.value;return(0,s.jsx)(c.TouchableOpacity,{onPress:()=>e.onChange(t.value),activeOpacity:.8,style:[et.chip,{borderColor:i?o.primary:o.border,backgroundColor:i?o.primary:r}],children:(0,s.jsx)(c.Text,{style:[et.chipText,{color:i?o.primaryText:o.primary,fontFamily:n}],children:t.label})},t.value??"__all")})]},e.label??t))})}function _e({label:e,options:t,value:n,onChange:o,theme:r,bodyFont:i}){return(0,s.jsx)($e,{groups:[{label:e,options:t,value:n,onChange:o}],theme:r,bodyFont:i})}var et=c.StyleSheet.create({groupLabel:{fontSize:10,fontWeight:"800",textTransform:"uppercase",letterSpacing:1.4,flexShrink:0},divider:{width:1,height:20,flexShrink:0},chip:{borderWidth:1,borderRadius:999,paddingHorizontal:14,paddingVertical:6,flexShrink:0},chipText:{fontSize:12,fontWeight:"700",letterSpacing:-.12}});function tt(e){return(e.propositionType??e.proposition_type)?.trim()||void 0}function nt(e){return(e.description??e.proposition??"").trim()}var ot={AND:/\s+AND\s+/,OR:/\s+OR\s+/};function rt(e){return"composite_and"===(t=tt(e))||"composite_or"===t;var t}function it(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 lt(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 at(e,t){if(!rt(e))return null;const n=function(e){return rt(e)?("composite_and"===(t=tt(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=it(e);if(t&&o.length>=2){const e=[];for(const n of o){const o=t.get(n);o&&e.push({text:nt(o),eventLabel:lt(o),prop:o})}if(e.length>=2)return{operator:n,legs:e}}const r=function(e,t){const n=e.trim();if(!n)return null;const o=n.split(ot[t]).map(e=>e.trim()).filter(Boolean);return o.length<2?null:o}(nt(e),n);return r?{operator:n,legs:r.map(e=>({text:e,eventLabel:null,prop:null}))}:null}var ct="#0F4C5C",st={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"},dt={sports:"Pick the winners",casino:"Beat the house",racing:"Back a winner"};function ht(e,t,n){if(n)return n.slice(0,4).toUpperCase();const o=st[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 ut(e){return!!e.is_composite_component||!!(t=tt(e))&&t.startsWith("co_");var t}function gt(e){if(null==e)return 0;const t=Number(e);return Number.isFinite(t)?t:0}function ft(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}function pt(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 yt(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 mt(e){return e.reduce((t,n)=>{const o=bt(n,e);return t[o]||(t[o]=[]),t[o].push(n),t},{})}function bt(e,t){if(e.sport)return e.sport;if(rt(e)&&t)for(const n of it(e)){const e=t.find(e=>e.id===n);if(e?.sport)return e.sport}return"Other"}var wt=["sports","casino","racing","prediction"];function xt(e){const t=(e.category||"").toLowerCase(),n=e.sport||"",o=(tt(e)??"").toLowerCase();return"casino"===t||"casino"===o||n.startsWith("casino")?"casino":"racing"===t||n.startsWith("horse_racing")?"racing":"sports"}function kt(e){return"racing"===xt(e)}function St(e){const t={};for(const n of e){const e=xt(n);t[e]||(t[e]=[]),t[e].push(n)}return t}function Ct(e){const t=St(e);return wt.filter(e=>(t[e]?.length??0)>0)}function Bt(e){switch(e){case"casino":return"Choose a Game";case"racing":return"Choose a Meeting";default:return"Choose a Sport"}}function zt(e,t,n,o){return o&&o.length>0?o.includes(e):!(void 0!==t&&e<t||void 0!==n&&e>n)}function vt(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 Ft(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 Wt(e,t,n){return"racing"===e||!(!t?.length||!t.every(kt))||!!n&&Boolean(t?.some(e=>e.sport===n||(e.sport||"").startsWith(`${n}_`)))}function Tt(e,t){const n={basketball_nba:"NBA",americanfootball_nfl:"NFL",icehockey_nhl:"NHL",baseball_mlb:"MLB",soccer_epl:"Premier League",soccer_usa_mls:"MLS",horse_racing_aus:"Horse Racing",casino_blackjack:"Blackjack",casino_roulette:"Roulette",casino_slots:"Slots",aussierules_afl:"AFL",rugbyleague_nrl:"NRL",aussierules_aflw:"AFLW",rugbyleague_nrlw:"NRLW","AUSTRALIAN-RULES":"AFL","RUGBY-LEAGUE":"NRL",cricket_international_t20:"T20 International",cricket_test_match:"Test Cricket"};return e.startsWith("casino_")?n[e]??e.replace(/^casino_/,"").replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):t&&e.startsWith(`${t}_`)?e.slice(t.length+1).replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()):n[e]||e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}function At(e,t,n){const o=t?.[e];return o||Tt(e,n)}function Lt(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 Rt(e,t){if(e)return t&&e.startsWith(`${t}_`)?t:e}function Dt(e,t,n){return e===t||!!n&&(!(t!==n||!e.startsWith(`${n}_`))||!(e!==n||!t.startsWith(`${n}_`)))}function Mt(e,t,n){return!t||!!e&&(Dt(e,t,n)||Dt(t,e,n))}function Pt(e,t){return t.find(t=>t.id===e)}function Ht(e,t){let n=e;return t?.category&&(n=n.filter(e=>xt(e)===t.category)),t?.sport&&(n=n.filter(n=>rt(n)?function(e,t,n,o){if(Mt(e.sport,t,n))return!0;if(!o)return!1;for(const r of it(e)){const e=Pt(r,o);if(e&&Mt(e.sport,t,n))return!0}return!1}(n,t.sport,t.sportBaseKey,e):Mt(n.sport,t.sport,t.sportBaseKey))),n}function Ot(e,t){return!t||function(e){const t=(e.category||"sports").toLowerCase();return"casino"===t||"racing"===t?t:"sports"}(e)===t}function It(e,t,n){if(!t)return!0;const o=e.allowed_sports;return!o||0===o.length||o.some(e=>Dt(t,e,n))}function Et(e,t,n){return!(n?.category&&!Ot(e,n.category))&&!(n?.sport&&!It(e,n.sport,n.sportBaseKey))&&Ht(Gt(t,e),n).length>0}function jt(e,t){return t?.category||t?.sport?e.filter(e=>!(t.category&&!Ot(e,t.category)||t.sport&&!It(e,t.sport,t.sportBaseKey))):e}function Nt(e,t){if(e.sport||!rt(e))return e;const n=bt(e,t);return"Other"===n?e:{...e,sport:n}}function Gt(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(ut(l))return!1;if(r)if(rt(l)){if(!function(e,t,n,o){if(e.sport&&t.some(t=>Dt(e.sport,t,n)))return!0;if(!o)return!1;for(const r of it(e)){const e=Pt(r,o);if(e?.sport&&t.some(t=>Dt(e.sport,t,n)))return!0}return!1}(l,o,n,e))return!1}else if(!l.sport||!o.some(e=>Dt(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=tt(e);return!!o&&n.includes(o)}(l,t))}).map(t=>Nt(t,e)):e.filter(e=>!ut(e)).map(t=>Nt(t,e))}function Yt(e,t){const n=e.available_days;if(!n)return!0;if(0===n.length)return!0;const o=((t??new Date).getDay()+6)%7;return n.includes(o)}var Vt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function Ut(e,t,n){return Wt(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 qt(e){const t=[];for(const n of e){const e=n.home_team&&n.away_team&&!kt(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 Kt(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 Zt(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 Xt=new Map,Qt=new Map;function Jt(e,t,n){let o=e;return t&&(o=o.replace(/currentColor/g,t)),n?o=o.replace(/var\(\s*--icon-accent\s*(?:,[^)]*)?\)/g,n):(o=o.replace(/var\(\s*--icon-accent\s*,\s*([^)]+)\)/g,"$1"),o=o.replace(/var\(\s*--icon-accent\s*\)/g,"currentColor")),o}function $t({iconUrl:e,width:t,height:n,iconColor:o,accentColor:r,accessibilityLabel:i}){const l=pe(e),[h,u]=a.default.useState(()=>l??Xt.get(e)??null);return a.default.useEffect(()=>{const t=pe(e);if(t)return void u(t);if(Xt.has(e))return void u(Xt.get(e));let n=!1;return function(e){const t=Xt.get(e);if(void 0!==t)return Promise.resolve(t);const n=Qt.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=>(Xt.set(e,t),Qt.delete(e),t)).catch(t=>{throw Qt.delete(e),t});return Qt.set(e,o),o}(e).then(e=>{n||u(e)}).catch(()=>{n||u(null)}),()=>{n=!0}},[e]),h?(0,s.jsx)(d.SvgXml,{xml:Jt(h,o,r),width:t,height:n,accessibilityLabel:i}):(0,s.jsx)(c.Image,{source:{uri:e},style:{width:t,height:n},resizeMode:"contain",accessibilityLabel:i})}function _t({iconUrl:e,gameName:t,onPress:n,size:o=120,brandColor:r="#0F4C5C",cardColor:i="#DDD9D2",iconColor:l,accentColor:h,captionColor:u="#14687C",accessibilityLabel:g}){const[f,p]=a.default.useState(!1),[y,m]=a.default.useState(!1),b=(t||"").toUpperCase(),w=170,x=o/360,k=l??i,S=O(r,h,k),C=a.default.useRef(new c.Animated.Value(0)).current,B=e=>({position:"absolute",left:40*x,top:5*x,width:210*x,height:210*x,borderRadius:42*x,backgroundColor:r,opacity:e}),z=e=>({transform:[{translateX:C.interpolate({inputRange:[0,1],outputRange:[e*x,0]})},{translateY:C.interpolate({inputRange:[0,1],outputRange:[e*x,0]})}]}),v=!!n&&(f||y);a.default.useEffect(()=>{c.Animated.timing(C,{toValue:v?1:0,duration:220,useNativeDriver:"web"!==c.Platform.OS}).start()},[v,C]);const F=()=>(0,s.jsxs)(c.View,{style:[en.container,{width:o,height:o}],children:[(0,s.jsxs)(d.default,{viewBox:"0 0 360 360",width:o,height:o,children:[(0,s.jsx)(d.Rect,{x:2,y:2,width:356,height:356,rx:78,fill:i,stroke:r,strokeWidth:4}),(0,s.jsx)(d.Text,{x:180,y:305,fontFamily:"Manrope, Poppins, sans-serif",fontSize:32,letterSpacing:1.5,fontWeight:"800",textAnchor:"middle",fill:r,children:"PRESS TO PLAY"}),(0,s.jsx)(d.Text,{x:180,y:338,fontFamily:"Manrope, Poppins, sans-serif",fontSize:18,letterSpacing:2,fontWeight:"500",textAnchor:"middle",fill:u,children:b})]}),(0,s.jsx)(c.Animated.View,{pointerEvents:"none",style:[B(.3),z(50)]}),(0,s.jsx)(c.Animated.View,{pointerEvents:"none",style:[B(.55),z(25)]}),(0,s.jsx)(c.View,{pointerEvents:"none",style:B(1)}),(0,s.jsx)(c.View,{pointerEvents:"none",style:{position:"absolute",left:60*x,top:25*x,width:w*x,height:w*x},children:(0,s.jsx)($t,{iconUrl:e,width:w*x,height:w*x,iconColor:k,accentColor:S})})]});return n?(0,s.jsx)(c.Pressable,{onPress:n,onPressIn:()=>m(!0),onPressOut:()=>m(!1),onHoverIn:"web"===c.Platform.OS?()=>p(!0):void 0,onHoverOut:"web"===c.Platform.OS?()=>p(!1):void 0,accessibilityRole:"button",accessibilityLabel:g??`Press to play ${t}`,style:{width:o,height:o,borderRadius:o/360*78,transform:[{scale:y?.96:1}]},children:F()}):F()}var en=c.StyleSheet.create({container:{position:"relative"}});function tn({visible:e,anchor:t,onClose:n,flipUp:o=!1,align:r="left",gap:i=6,children:l}){if(!e||!t)return null;const a=c.Dimensions.get("window"),d=o?{bottom:Math.max(0,a.height-t.y+i)}:{top:t.y+t.height+i},h="right"===r?{right:Math.max(0,a.width-(t.x+t.width))}:{left:Math.max(0,t.x)};return(0,s.jsxs)(c.Modal,{transparent:!0,visible:!0,animationType:"none",onRequestClose:n,children:[(0,s.jsx)(c.Pressable,{style:c.StyleSheet.absoluteFill,onPress:n}),(0,s.jsx)(c.View,{style:{position:"absolute",...d,...h},onStartShouldSetResponder:()=>!0,children:l})]})}function nn(e){return e.selectionCard??e.backgroundAlt}function on({color:e,style:t}){return(0,s.jsx)(c.View,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function rn({colors:e,count:t=2}){const{width:n}=(0,c.useWindowDimensions)(),o=n>=400,r=n>=640,[i,l]=a.default.useState(0),d=o?i>0?(i-12)/2:"48%":"100%",h=nn(e);return(0,s.jsx)(c.View,{onLayout:e=>l(e.nativeEvent.layout.width),style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>(0,s.jsxs)(c.View,{style:{width:d,minHeight:r?140:112,borderRadius:16,borderWidth:1,padding:r?20:14,gap:r?12:8,justifyContent:"center",alignItems:"flex-start",backgroundColor:h,borderColor:e.border},children:[(0,s.jsx)(on,{color:e.textMuted,style:{height:20,width:176,maxWidth:"100%"}}),(0,s.jsx)(on,{color:e.textMuted,style:{height:12,width:96,maxWidth:"70%"}})]},n))})}function ln({colors:e,count:t=4}){const{width:n}=(0,c.useWindowDimensions)(),o=n>=640,r=nn(e);return(0,s.jsx)(c.View,{style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>(0,s.jsxs)(c.View,{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:[(0,s.jsx)(on,{color:e.textMuted,style:{height:o?48:40,width:o?48:40,borderRadius:12}}),(0,s.jsxs)(c.View,{style:{flex:o?1:void 0,minWidth:0,alignItems:o?"flex-start":"center",gap:6},children:[(0,s.jsx)(on,{color:e.textMuted,style:{height:14,width:80}}),(0,s.jsx)(on,{color:e.textMuted,style:{height:10,width:48}})]}),o&&(0,s.jsx)(on,{color:e.textMuted,style:{height:20,width:20,borderRadius:6}})]},n))})}function an({colors:e,count:t=3}){const n=nn(e);return(0,s.jsx)(c.View,{style:{gap:10,width:"100%"},children:Array.from({length:t}).map((t,o)=>(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:16,borderWidth:1,paddingHorizontal:14,paddingVertical:14,backgroundColor:n,borderColor:e.border},children:[(0,s.jsxs)(c.View,{style:{flex:1,minWidth:0},children:[(0,s.jsx)(c.View,{style:{borderRadius:12,paddingHorizontal:12,paddingVertical:10,backgroundColor:e.backgroundAlt},children:(0,s.jsx)(on,{color:e.textMuted,style:{height:16,width:176,maxWidth:"100%"}})}),(0,s.jsx)(on,{color:e.textMuted,style:{height:12,width:160,maxWidth:"80%",marginTop:8}})]}),(0,s.jsx)(on,{color:e.textMuted,style:{height:20,width:20,borderRadius:6}})]},o))})}function cn({colors:e,tileSize:t=116,width:n}){return(0,s.jsxs)(c.View,{style:{width:n??"100%",alignItems:"center",borderRadius:18,borderWidth:1,paddingHorizontal:14,paddingTop:24,paddingBottom:20,gap:4,borderColor:e.border,backgroundColor:nn(e)},children:[(0,s.jsx)(on,{color:e.textMuted,style:{width:t,height:t,borderRadius:16}}),(0,s.jsx)(on,{color:e.textMuted,style:{height:12,width:44,marginTop:4}}),(0,s.jsx)(on,{color:e.textMuted,style:{height:17,width:128,maxWidth:"80%",marginTop:2}}),(0,s.jsx)(on,{color:e.textMuted,style:{height:11,width:"75%",marginTop:10}})]})}function sn({colors:e}){return(0,s.jsx)(c.View,{style:{flexDirection:"row",gap:8,marginBottom:12,width:"100%"},children:[0,1,2].map(t=>(0,s.jsx)(on,{color:e.textMuted,style:{height:38,flex:1,borderRadius:999}},t))})}function dn({colors:e,count:t=3,tileSize:n=116,showTierTabs:o=!1}){const[r,i]=a.default.useState(0),l=r>=420?(r-12)/2:"100%";return(0,s.jsxs)(c.View,{style:{width:"100%"},onLayout:e=>i(e.nativeEvent.layout.width),children:[o&&(0,s.jsx)(sn,{colors:e}),(0,s.jsx)(c.View,{style:{flexDirection:"row",flexWrap:"wrap",gap:12,width:"100%"},children:Array.from({length:t}).map((t,o)=>(0,s.jsx)(cn,{colors:e,tileSize:n,width:l},o))})]})}function hn({colors:e,groups:t=2,rowsPerGroup:n=2}){const{width:o}=(0,c.useWindowDimensions)(),r=o>=640;return(0,s.jsxs)(c.View,{style:{gap:r?24:16,paddingBottom:64,width:"100%"},children:[(0,s.jsx)(on,{color:e.textMuted,style:{height:28,width:72,borderRadius:999}}),(0,s.jsx)(c.View,{style:{gap:16},children:Array.from({length:t}).map((t,o)=>(0,s.jsxs)(c.View,{style:{borderRadius:12,borderWidth:1,borderColor:e.border,backgroundColor:nn(e),overflow:"hidden"},children:[(0,s.jsxs)(c.View,{style:{paddingHorizontal:16,paddingVertical:12,gap:6,backgroundColor:e.backgroundAlt},children:[(0,s.jsx)(on,{color:e.textMuted,style:{height:16,width:176,maxWidth:"80%"}}),(0,s.jsx)(on,{color:e.textMuted,style:{height:12,width:96}})]}),Array.from({length:n}).map((t,n)=>(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingHorizontal:16,paddingVertical:r?14:12,borderTopWidth:1,borderTopColor:e.border},children:[(0,s.jsx)(on,{color:e.textMuted,style:{height:16,flex:1,maxWidth:"58%"}}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",gap:6,flexShrink:0},children:[(0,s.jsx)(on,{color:e.textMuted,style:{height:r?32:28,width:r?48:44,borderRadius:8}}),(0,s.jsx)(on,{color:e.textMuted,style:{height:r?32:28,width:r?48:44,borderRadius:8}})]})]},n))]},o))})]})}function un({colors:e}){return(0,s.jsx)(c.View,{style:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:e.border,marginBottom:16,width:"100%"},children:[0,1].map(t=>(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10},children:[(0,s.jsx)(on,{color:e.textMuted,style:{height:14,width:68}}),(0,s.jsx)(on,{color:e.textMuted,style:{height:20,width:20,borderRadius:999}})]},t))})}function gn({colors:e}){return(0,s.jsxs)(c.View,{style:{borderRadius:8,borderWidth:1,borderColor:e.border,backgroundColor:nn(e),overflow:"hidden",width:"100%"},children:[(0,s.jsxs)(c.View,{style:{width:"100%",paddingHorizontal:16,paddingVertical:12,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,s.jsxs)(c.View,{style:{flex:1,minWidth:0,gap:6},children:[(0,s.jsx)(on,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),(0,s.jsx)(on,{color:e.textMuted,style:{height:12,width:128,maxWidth:"65%"}})]}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:12,flexShrink:0},children:[(0,s.jsx)(on,{color:e.textMuted,style:{height:14,width:40}}),(0,s.jsx)(on,{color:e.textMuted,style:{height:24,width:60,borderRadius:999}})]})]}),(0,s.jsx)(c.View,{style:{borderTopWidth:1,borderTopColor:e.border,width:"100%"},children:[0,1,2].map(t=>(0,s.jsxs)(c.View,{style:{paddingHorizontal:16,paddingVertical:10,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:0===t?0:1,borderTopColor:e.border},children:[(0,s.jsxs)(c.View,{style:{flex:1,minWidth:0,gap:4},children:[(0,s.jsx)(on,{color:e.textMuted,style:{height:14,width:"88%"}}),(0,s.jsx)(on,{color:e.textMuted,style:{height:12,width:"70%"}})]}),(0,s.jsx)(on,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]})}function fn({colors:e,rows:t=2}){return(0,s.jsxs)(c.View,{style:{width:"100%"},children:[(0,s.jsx)(un,{colors:e}),(0,s.jsx)(c.View,{style:{gap:12,width:"100%"},children:Array.from({length:t}).map((t,n)=>(0,s.jsx)(gn,{colors:e},n))})]})}function pn({colors:e,bodyFont:t,message:n,variant:o="category",gameCardCount:r=3,categoryCount:i=2,showTierTabs:l=!1}){const a=n?.trim()||"Loading",d=(()=>{switch(o){case"sport":return(0,s.jsx)(ln,{colors:e,count:Math.max(i,2)});case"event":return(0,s.jsx)(an,{colors:e});case"games":return(0,s.jsx)(dn,{colors:e,count:r,showTierTabs:l});case"propositions":return(0,s.jsx)(hn,{colors:e});case"entries":return(0,s.jsx)(fn,{colors:e,rows:2});default:return(0,s.jsx)(rn,{colors:e,count:i})}})();return(0,s.jsxs)(c.View,{accessibilityRole:"progressbar",accessibilityLabel:a,accessibilityLiveRegion:"polite",style:{width:"100%"},children:[n?.trim()?(0,s.jsx)(c.Text,{style:{fontSize:14,textAlign:"center",marginBottom:16,color:e.textMuted,fontFamily:t},children:n}):null,d]})}function yn(e){return e.homeTeam&&e.awayTeam?`${e.homeTeam} vs ${e.awayTeam}`:e.homeTeam??e.awayTeam??e.id}function mn(e){return(e??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"")}function bn(e){if(!e||e.quick_pick_only)return!1;const t=mn(e.selection_scope);if("samegamemulti"===mn(e.rule)||!0===e.require_same_event||"singleevent"===t||"sameevent"===t)return!0;const n=[e.game_name,e.game_name_template].map(mn);return n.includes("samegame")||n.includes("samegamemulti")}function wn(e){return(e.eventId??e.event_id)?.trim()||null}function xn(e){const t=new Map;for(const n of e){if(!Bn(n))continue;const e=wn(n);if(!e)continue;const o=t.get(e);o?(o.propositionCount+=1,o.homeTeam=kn(o.homeTeam,n.home_team),o.awayTeam=kn(o.awayTeam,n.away_team),o.sport=kn(o.sport,n.sport),o.league=kn(o.league,n.league),o.commenceTime=Cn(o.commenceTime,n.commence_time)):t.set(e,{id:e,homeTeam:n.home_team?.trim()||void 0,awayTeam:n.away_team?.trim()||void 0,commenceTime:n.commence_time?.trim()||void 0,sport:n.sport?.trim()||void 0,league:n.league?.trim()||void 0,propositionCount:1})}return[...t.values()].sort((e,t)=>{const n=Sn(e.commenceTime),o=Sn(t.commenceTime);return n!==o?n-o:e.id.localeCompare(t.id)})}function kn(e,t){const n=t?.trim();return n?e&&e.localeCompare(n)<=0?e:n:e}function Sn(e){if(!e)return Number.MAX_SAFE_INTEGER;const t=new Date(e).getTime();return Number.isFinite(t)?t:Number.MAX_SAFE_INTEGER}function Cn(e,t){const n=t?.trim();if(!n)return e;if(!e)return n;const o=Sn(e),r=Sn(n);return r!==o?r<o?n:e:e.localeCompare(n)<=0?e:n}function Bn(e){return!1!==e.bettable&&!0!==e.is_suspended&&!0!==e.is_expired&&!0!==e.is_voided&&!0!==e.is_composite_component}function zn(e,t){return t?e.filter(e=>Bn(e)&&wn(e)===t):[]}function vn(e,t){return!!t&&e.length>0&&e.every(e=>Bn(e)&&wn(e)===t)}var Fn={signature:1,premier:2,exclusive:3},Wn=[{id:"signature",label:"Signature Games",shortLabel:"Signature",level:1},{id:"premier",label:"Premier Games",shortLabel:"Premier",level:2},{id:"exclusive",label:"Exclusive Games",shortLabel:"Exclusive",level:3}];function Tn(e){return"number"==typeof e.tier&&Number.isFinite(e.tier)?e.tier:1}function An(e,t){return e.filter(e=>Tn(e)===t)}function Ln(e){const t=new Set(e.map(Tn));return Wn.filter(e=>t.has(e.level))}function Rn(e){return Ln(e)[0]?.id??"signature"}var Dn=[1,5,10,20,50],Mn=[4,12];function Pn(e){return(e??"").trim().toLowerCase()}var Hn={straight:"mirror",double:"double_mirror",triple:"triple_mirror"};function On(e){if(!e||e.quick_pick_only)return!1;const t=Pn(e.rule);return Object.values(Hn).includes(t)}function In(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 En(e){if(!On(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Mn[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Mn[1],o=Nn(function(e){const t=Pn(e?.rule);return Object.keys(Hn).find(e=>Hn[e]===t)??"straight"}(e)),r=(e.allowed_propositions&&e.allowed_propositions.length>0?[...e.allowed_propositions].sort((e,t)=>e-t):Array.from({length:Math.max(0,n-t+1)},(e,n)=>t+n)).filter(e=>e>=o.minLegs);if(0===r.length)return null;const i=Math.max(e.min_bet??1,.01),l=e.max_bet??null,a=Dn.filter(e=>e>=i&&(null===l||e<=l));return{variant:o,legOptions:r,defaultLegs:r.includes(8)?8:r[Math.floor(r.length/2)],defaultStake:Math.min(Math.max(20,i),l??20),minStake:i,maxStake:l,quickStakes:a,tagline:o.tagline,operatorMargin:e.operator_margin??.21875,perLegProbability:e.payout_structure?.per_leg_probability??.5}}var jn=[{id:"straight",name:"Straight Mirror",depth:1,minLegs:4,waysToWin:"2 ways to win",description:"All or nothing. Get every call right, or every call wrong. Both pay the same.",tagline:"Call every leg. Get them all right, you win — all wrong, you win the same.",tierNames:["Perfect"]},{id:"double",name:"Double Mirror",depth:2,minLegs:6,waysToWin:"4 ways to win",description:"Perfect, or one off, at either edge. All right or all wrong, plus the near miss on each side.",tagline:"Perfect, or one off, at either edge — four ways to land a win.",tierNames:["Perfect","Near"]},{id:"triple",name:"Triple Mirror",depth:3,minLegs:9,waysToWin:"6 ways to win",description:"Within two of a clean sweep, either way. Longer legs only, so you still miss the middle.",tagline:"Within two of a clean sweep, either way — six ways to land a win.",tierNames:["Perfect","Near","Third"]}];function Nn(e){return jn.find(t=>t.id===e)??jn[0]}function Gn(e,t){if(t<0||t>e)return 0;const n=Math.min(t,e-t);let o=1;for(let r=0;r<n;r++)o=o*(e-r)/(r+1);return Math.round(o)}var Yn=[4,12],Vn=[5,10,20,50];function Un(e){return!!e&&!e.quick_pick_only&&"safety_net"===(e.rule??"").trim().toLowerCase()}function qn(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 Kn(e,t){return t>0&&e>=t?Math.round(e/t)*t:Math.round(e)}function Zn(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 Xn(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=Zn(t,0);for(let d=1;d<=r;d+=1)s+=Zn(t,d),c.push(Kn(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 Qn(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 Jn(e){return e.includes(8)?8:e[Math.floor(e.length/2)]}function $n(e){return e.toLowerCase().replace(/[^a-z]+/g," ").trim()}function _n(e,t){const n=$n(t);return e.permitted_rules?.find(e=>$n(e.name??"").includes(n))??null}function eo(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 to(e){if(!Un(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??Yn[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??Yn[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=_n(e,"Extra Shot"),i=_n(e,"Double Shot"),l=eo(o,r,4).filter(e=>e>1),a=eo(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:Jn(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:Jn(a),ruleId:i?.id??null});const d=Math.max(e.min_bet??5,.01),h=e.max_bet??null,u=Vn.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:qn(e)}}function no(e){return[{id:`target-${e}`,label:"Perfect pick",stat:"Top payout",detail:["Get every pick right","nothing else pays"],emphasis:!0,expectedCorrect:e}]}function oo(e,t,n){const o=Math.max(0,e-t),r=Xn(20,e,o,n),i=[];for(let l=0;l<=o;l+=1){const t=Math.round(Qn(r,l));i.push({misses:l,label:`${e-l}/${e}`,multiplier:t/20,payout20:t})}return i}function ro(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:oo(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:oo(e,e-2,t),expectedCorrect:e-2}]}function io(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:ro(t,qn(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:no(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 lo(e){return null!=io(e)}var ao=[500,1e3,2500,5e3,7500,1e4,12500,15e3],co=[12,11,10,9,8,7,6];function so(e){return!!e&&!e.quick_pick_only&&"pick_your_dividend"===(e.rule??"").trim().toLowerCase()}function ho(e){return Math.round(100*e)/100}function uo(e,t,n=.21875){const o=Math.pow(2,t),r=e/(1-n)/o,i=Number.isInteger(r),l=ho(r),a=i?r:ho(.96*r);return{legs:t,exactStake:l,stake:a,margin:1-e/(a*o),multiple:e/a,oddsOneIn:o,discounted:!i}}function go(e,t=co){return{dividend:e,rungs:t.map(t=>uo(e,t))}}function fo(e,t){if(!so(e)||!e)return null;const n=e.min_propositions??6,o=e.max_propositions??12,r=co.filter(e=>e>=n&&e<=o);if(0===r.length)return null;const i=t?.dividends??ao;return{dividends:i.map(e=>go(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 po(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?Kt(o,r):[],a=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=so(e)?fo(e):null,h=d?d.dividends.map(e=>({dividend:e.dividend,stakeFrom:Math.min(...e.rungs.map(e=>e.stake))})):void 0,u=d?[]:c.map(e=>({count:e.count,payout20:e.payout>0&&e.betAmount>0?e.payout/e.betAmount*20:0})),g=io(e,s),f="safety_net"===g?.kind?(g.options??[]).flatMap(e=>e.dividends?.length?[{id:e.id,label:e.label,tiers:e.dividends.map(e=>({label:e.label,payout20:e.payout20}))}]:[]):[];return{legOptions:l.map(Number),maxLegCount:s,tiers:u,modes:f,pydDividends:h,hasGenericDividends:(n.length>0||i)&&u.some(e=>e.payout20>0),minBet:Math.max(e.min_bet??1,1),maxBet:e.max_bet??null}}function yo({tiers:e,modes:t,pydDividends:n,onPlayCount:o,minBet:r=1,maxBet:i=null,colors:l,bodyFont:d,headingFont:h}){const u=e=>Math.min(Math.max(e,r),i??1/0),[g,f]=(0,a.useState)(()=>String(u(20))),p=parseFloat(g),y=u(Number.isFinite(p)&&p>0?p:20),m=y/20,b=!!(t?.length||n?.length||e.some(e=>e.payout20>0)),w=!!t?.length;if(!b)return null;const x=(0,s.jsxs)(c.View,{style:{marginBottom:8,flexDirection:"row",alignItems:"center",gap:4,flexWrap:"wrap"},children:[(0,s.jsx)(c.Text,{style:{fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:d},children:"Example values for a"}),(0,s.jsx)(c.Text,{style:{fontSize:11,fontWeight:"700",color:l.textMuted,fontFamily:d},children:"$"}),(0,s.jsx)(c.TextInput,{value:g,onChangeText:f,onBlur:()=>f(String(y)),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:d}}),(0,s.jsxs)(c.Text,{style:{fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:d},children:["bet",null!=i?` (${pt(r)}–${pt(i)})`:` (min ${pt(r)})`,"."]})]});return(0,s.jsxs)(c.View,{style:{width:"100%"},children:[w?(0,s.jsx)(c.Text,{style:{fontSize:11,fontWeight:"700",letterSpacing:1.4,textTransform:"uppercase",color:l.textMuted,fontFamily:d,marginBottom:6},children:"Compare dividends"}):null,(0,s.jsxs)(c.View,{style:{paddingHorizontal:14,paddingVertical:12},children:[n?.length?null:x,t?.length?t.map((e,t)=>(0,s.jsxs)(c.View,{style:{borderTopWidth:0===t?0:1,borderTopColor:l.border,paddingTop:0===t?0:8,marginTop:0===t?0:8},children:[(0,s.jsx)(c.Text,{style:{fontSize:11,fontWeight:"700",marginBottom:4,color:l.text,fontFamily:h},children:e.label}),e.tiers.map(e=>(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:4,gap:14},children:[(0,s.jsxs)(c.Text,{style:{color:l.textMuted,fontSize:11,flex:1,fontFamily:d},children:[e.label," correct"]}),(0,s.jsx)(c.Text,{style:{fontWeight:"700",color:l.heading??l.text,fontSize:12,fontFamily:d},children:pt(e.payout20*m)})]},e.label))]},e.id)):n?.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingBottom:4,marginBottom:4,borderBottomWidth:1,borderBottomColor:l.border},children:[(0,s.jsx)(c.Text,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:d},children:"Dividend"}),(0,s.jsx)(c.Text,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:d},children:"Stake from"})]}),n.map(e=>(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:4},children:[(0,s.jsx)(c.Text,{style:{fontWeight:"700",color:l.heading??l.text,fontSize:12,fontFamily:d},children:pt(e.dividend)}),(0,s.jsx)(c.Text,{style:{fontWeight:"600",color:l.text,fontSize:12,fontFamily:d},children:pt(e.stakeFrom)})]},e.dividend)),(0,s.jsx)(c.Text,{style:{marginTop:8,fontSize:10,fontStyle:"italic",color:l.textMuted,fontFamily:d},children:"You set the dividend before kick-off. Longer climbs start from a smaller stake."})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingBottom:4,marginBottom:4,borderBottomWidth:1,borderBottomColor:l.border},children:[(0,s.jsx)(c.Text,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:d},children:"Legs played"}),(0,s.jsx)(c.Text,{style:{fontSize:10.5,fontWeight:"700",textTransform:"uppercase",letterSpacing:.4,color:l.primary,fontFamily:d},children:"Payout"})]}),e.map(e=>(0,s.jsxs)(o?c.TouchableOpacity:c.View,{...o?{onPress:()=>o(e.count),accessibilityRole:"button"}:{},style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:o?6:4},children:[(0,s.jsxs)(c.Text,{style:{fontWeight:"600",color:o?l.primary:l.text,fontSize:12,fontFamily:d},children:[e.count," legs"]}),(0,s.jsx)(c.Text,{style:{fontWeight:"600",color:e.payout20>0?l.text:l.textMuted,fontSize:12,fontFamily:d},children:e.payout20>0?pt(e.payout20*m):"—"})]},e.count))]})]})]})}function mo({tabs:e,active:t,onChange:n,colors:o,bodyFont:r,useShortLabel:i}){return e.length<=1?null:(0,s.jsx)(c.View,{style:{flexDirection:"row",gap:8,marginBottom:12},children:e.map(e=>{const l=e.id===t;return(0,s.jsx)(c.TouchableOpacity,{onPress:()=>n(e.id),accessibilityRole:"button",accessibilityState:{selected:l},style:{flex:1,minWidth:0,borderRadius:999,paddingHorizontal:4,paddingVertical:10,borderWidth:1,borderColor:l?o.primary:o.border,backgroundColor:l?o.primary:o.background??"#fff",alignItems:"center",justifyContent:"center",shadowColor:l?o.primary:o.border,shadowOffset:{width:0,height:4},shadowOpacity:l?.35:.25,shadowRadius:l?6:5,elevation:l?4:2},children:(0,s.jsx)(c.Text,{numberOfLines:1,style:{fontFamily:r,fontSize:10,fontWeight:"700",letterSpacing:-.1,color:l?o.primaryText:o.primary},children:i?e.shortLabel:e.label})},e.id)})})}var bo={scrollSnapType:"x mandatory"},wo={scrollSnapAlign:"center"};function xo({iconUrl:e,size:t,brandColor:n,iconColor:o,accentColor:r}){return(0,s.jsxs)(c.View,{style:{position:"relative",width:t,height:t},children:[(0,s.jsxs)(d.default,{viewBox:"30 -5 280 280",width:t,height:t,children:[(0,s.jsx)(d.Rect,{x:90,y:55,width:210,height:210,rx:42,fill:n,opacity:.3}),(0,s.jsx)(d.Rect,{x:65,y:30,width:210,height:210,rx:42,fill:n,opacity:.55}),(0,s.jsx)(d.Rect,{x:40,y:5,width:210,height:210,rx:42,fill:n})]}),(0,s.jsx)(c.View,{pointerEvents:"none",style:{position:"absolute",left:.107*t,top:.107*t,width:.607*t,height:.607*t},children:(0,s.jsx)($t,{iconUrl:e,width:.607*t,height:.607*t,iconColor:o,accentColor:r})})]})}function ko({iconUrl:e,gameName:t,size:n,brandColor:o,cardColor:r,iconColor:i,accentColor:l,captionColor:d,bodyFont:u,legOptions:g,onPick:f,colors:p,menuShadow:y}){const[m,b]=(0,a.useState)(!1),[w,x]=(0,a.useState)(null),k=(0,a.useRef)(null),S=(0,a.useRef)(null),[C,z]=(0,a.useState)(null),[v,F]=(0,a.useState)(!1),[W,T]=(0,a.useState)(null),A="web"===c.Platform.OS,L=40+40*g.length+12;(0,a.useLayoutEffect)(()=>{if(!m||!A)return;const e=k.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<L&&i>r;z({top:t.top+o,bottom:t.bottom+o,right:t.right+n,flipUp:l})},[m,A,L]),(0,a.useEffect)(()=>{if(!m)return;if(A){const e=e=>{const t=k.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||S.current&&S.current.contains(n)||b(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}const e=k.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=c.Dimensions.get("window").height-(t+o);F(r<L&&t>r),T({x:e,y:t,width:n,height:o})})},[m,A,L]);const R=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.View,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:p.border},children:(0,s.jsx)(c.Text,{style:{fontSize:10,fontWeight:"700",color:p.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase",fontFamily:u},children:"How many picks?"})}),g.map((e,t)=>(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>{b(!1),x(null),f(e)},onMouseEnter:()=>x(e),onMouseLeave:()=>x(t=>t===e?null:t),style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:0===t?0:1,borderTopColor:p.border,backgroundColor:w===e?p.backgroundAlt:"transparent"},children:[(0,s.jsxs)(c.Text,{style:{fontSize:14,fontWeight:"600",color:p.text,fontFamily:u},children:[e," picks"]}),(0,s.jsx)(c.Text,{style:{backgroundColor:B(p.primary,.14),color:p.primary,paddingVertical:2,paddingHorizontal:6,borderRadius:4,fontSize:10,fontWeight:"700",letterSpacing:.5,overflow:"hidden",fontFamily:u},children:"QP"})]},e))]});return(0,s.jsxs)(c.View,{ref:k,style:{position:"relative"},children:[(0,s.jsx)(_t,{iconUrl:e,gameName:t,onPress:()=>b(e=>!e),size:n,brandColor:o,cardColor:r,iconColor:i,accentColor:l,captionColor:d}),m&&A&&C&&"undefined"!=typeof document&&(0,h.createPortal)((0,s.jsx)("div",{ref:S,style:{position:"absolute",top:C.flipUp?void 0:C.bottom+6,bottom:C.flipUp&&"undefined"!=typeof window?window.innerHeight-C.top+6:void 0,left:C.right,transform:"translateX(-100%)",zIndex:20,backgroundColor:p.background,border:`1px solid ${p.border}`,borderRadius:8,minWidth:180,boxShadow:y,overflow:"hidden",fontFamily:u},children:R}),document.body),(0,s.jsx)(tn,{visible:m&&!A,anchor:W,onClose:()=>b(!1),flipUp:v,align:"right",children:(0,s.jsx)(c.View,{style:{elevation:6,backgroundColor:p.background,borderRadius:8,borderWidth:1,borderColor:p.border,minWidth:180,shadowColor:"#000",shadowOffset:{width:0,height:12},shadowOpacity:.16,shadowRadius:24,overflow:"hidden"},children:R})})]})}function So({games:e,selectedGame:t,onSelectGame:n,loading:o,error:r,theme:i,colorScheme:l,showTier:d=!1,showCategory:h=!1,showTierFilter:u=!1,onPropositionCountChange:g,onPropositionCountSelected:f,onQuickPickGame:p,maxPayouts:y}){const m=le(i,l),b=m.colors,w=j(m),x=ae(m),k=ce(m),S=L(m),C=A(m),z=H(m),v="dark"===m.colorScheme,F=(0,a.useMemo)(()=>function(e){const t=new Set(e.filter(e=>On(e)&&Pn(e.rule)===Hn.straight).map(Tn));return e.filter(e=>!(On(e)&&Pn(e.rule)!==Hn.straight&&t.has(Tn(e))))}(e),[e]),W=(0,a.useMemo)(()=>Ln(F),[F]),[T,D]=(0,a.useState)(()=>Rn(F));(0,a.useEffect)(()=>{0!==W.length&&(W.some(e=>e.id===T)||D(W[0].id))},[W,T]);const M=(0,a.useMemo)(()=>!u||W.length<=1?F:An(F,Fn[T]),[F,u,W.length,T]),P=e=>e.allowed_propositions&&e.allowed_propositions.length>0&&e.game_name.replace(/\s+\d+\s*$/,"").trim()||e.game_name,O=(e,t)=>{e.quick_pick_only&&p&&t>0?p(e,t):(t>0&&!bn(e)&&g?.(t),n(e),f?.())},[I,E]=(0,a.useState)(0),N=I>0&&I<400,G=N?108:124,V=I>0&&I<380,U=function(e,t){const n=t>0?Math.floor(t/68):e;return Math.max(2,Math.min(Math.ceil(e/2),n))}(M.length,I),q=I>0?(I-4*(U-1))/U:void 0,K=I>0?Math.min(.86*I,380):0,Z=K>0?Math.max((I-K)/2,4):4,X=K+14,Q=M.length>1,J=Q&&Z>=48,$=(0,a.useRef)(null),[_,ee]=(0,a.useState)(0),te=e=>{const t=Math.max(0,Math.min(e,M.length-1));Be($,t*X),ee(t)};(0,a.useEffect)(()=>{Be($,0,!1),ee(0)},[T]);const ne={shadowColor:"#000",shadowOpacity:v?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};return o?(0,s.jsx)(dn,{colors:Y(m),count:Math.min(Math.max(F.length,2),4),showTierTabs:u&&W.length>1}):r?(0,s.jsx)(c.View,{style:Co.centerContainer,children:(0,s.jsx)(c.Text,{style:{color:b.error,fontFamily:x},children:r})}):0===F.length?(0,s.jsx)(c.View,{style:Co.centerContainer,children:(0,s.jsx)(c.Text,{style:{color:b.textMuted,fontFamily:x},children:"No games available"})}):(0,s.jsxs)(c.View,{style:{flexDirection:"column"},onLayout:e=>E(e.nativeEvent.layout.width),children:[u&&(0,s.jsx)(mo,{tabs:W,active:T,onChange:D,colors:b,bodyFont:x,useShortLabel:V}),0===M.length?(0,s.jsx)(c.View,{style:Co.centerContainer,children:(0,s.jsx)(c.Text,{style:{color:b.textMuted,fontFamily:x},children:"No games in this collection"})}):(0,s.jsxs)(c.View,{style:{position:"relative"},children:[(0,s.jsx)(c.ScrollView,{ref:$,horizontal:!0,showsHorizontalScrollIndicator:!1,decelerationRate:"fast",snapToInterval:X>0?X:void 0,snapToAlignment:"start",style:bo,scrollEventThrottle:16,onScroll:e=>{if(X<=0)return;const t=Math.round(e.nativeEvent.contentOffset.x/X);ee(e=>e===t?e:t)},contentContainerStyle:{alignItems:"stretch",gap:14,paddingLeft:Z,paddingRight:Z,paddingBottom:8},children:M.map(e=>{const o=Yt(e),r=function(e){const t=e.available_days;if(!t||0===t.length)return null;const n=t.map(e=>Vt[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=Ft(e),u=e.description||e.rule,g=e.call_to_action?.trim()||null,{legOptions:v,maxLegCount:F,tiers:W,modes:T,pydDividends:A,hasGenericDividends:L,minBet:D,maxBet:M}=po(e,y?.[e.id]),H=fe(e),I=!o&&r?`Available ${r}`:null;return(0,s.jsxs)(c.View,{style:[Co.gameCard,wo,{width:K||void 0,flexGrow:0,flexShrink:0,borderColor:i?b.primary:b.border,backgroundColor:i?b.infoBg:b.background??w,opacity:o?1:.5},ne],pointerEvents:o?"auto":"none",children:[e.quick_pick_only&&p&&v.length>1?(0,s.jsx)(ko,{iconUrl:H,gameName:P(e),size:G,brandColor:b.primary,cardColor:w,iconColor:b.primaryText,accentColor:z,captionColor:b.textMuted,bodyFont:x,legOptions:v.map(Number),onPick:t=>O(e,t),colors:b,menuShadow:C}):(0,s.jsx)(_t,{iconUrl:H,gameName:P(e),onPress:()=>O(e,F),size:G,brandColor:b.primary,cardColor:w,iconColor:b.primaryText,accentColor:z,captionColor:b.primary}),(0,s.jsxs)(c.Text,{style:{marginTop:8,fontFamily:k,fontSize:13,letterSpacing:-.52,lineHeight:13},children:[(0,s.jsx)(c.Text,{style:{fontWeight:"800",color:b.primary},children:"YES"}),(0,s.jsx)(c.Text,{style:{fontWeight:"600",color:B(b.primary,.85)},children:"NO"})]}),(0,s.jsxs)(c.View,{style:{marginTop:2,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6},children:[(0,s.jsx)(c.Text,{style:{fontFamily:k,fontWeight:"600",fontSize:N?19:21,color:S,letterSpacing:-.19,lineHeight:1.2*(N?19:21),textAlign:"center",paddingHorizontal:4},children:P(e)}),(0,s.jsx)(Ne,{variant:"icon",panel:Ce(e),content:u||"Pick outcomes and land the payout for this game.",theme:m,title:P(e),label:`How to play ${P(e)}`,extra:(0,s.jsx)(yo,{tiers:L?W:[],modes:T,pydDividends:A,onPlayCount:v.length>1?t=>O(e,t):void 0,minBet:D,maxBet:M,colors:b,bodyFont:x,headingFont:k}),colors:b,bodyFont:x,headingFont:k})]}),g?(0,s.jsx)(c.Text,{style:{marginTop:6,fontSize:13,lineHeight:17,fontWeight:"700",color:b.primary,textAlign:"center",fontFamily:x},children:g}):null,u?(0,s.jsx)(c.Text,{style:{marginTop:8,fontSize:12.5,lineHeight:18,color:b.textMuted,textAlign:"center",fontFamily:x},children:u}):null,a.enabled&&(0,s.jsx)(c.View,{style:[Co.jackpotBadge,{backgroundColor:`${b.warning}15`,marginTop:8}],children:(0,s.jsxs)(c.Text,{style:[Co.jackpotBadgeText,{color:b.warning,fontFamily:x}],children:["★ ",a.progressive?a.amount>0?pt(a.amount):a.limit>0?`Up to ${pt(a.limit)}`:"Jackpot":pt(a.amount)]})}),(h||d)&&(0,s.jsxs)(c.View,{style:[Co.tagsRow,{justifyContent:"center",marginTop:8}],children:[h&&e.category&&(0,s.jsx)(c.View,{style:[Co.tag,{backgroundColor:b.backgroundAlt}],children:(0,s.jsx)(c.Text,{style:[Co.tagText,{color:R(m),fontFamily:x}],children:e.category})}),h&&(0,s.jsx)(c.View,{style:[Co.tag,{backgroundColor:b.backgroundAlt}],children:(0,s.jsx)(c.Text,{style:[Co.tagText,{color:R(m),fontFamily:x}],children:e.rule})}),h&&e.lotto_type&&(0,s.jsx)(c.View,{style:[Co.tag,{backgroundColor:b.backgroundAlt}],children:(0,s.jsx)(c.Text,{style:[Co.tagText,{color:R(m),fontFamily:x}],children:e.lotto_type})}),d&&null!=e.tier&&(0,s.jsx)(c.View,{style:[Co.tag,{backgroundColor:b.backgroundAlt}],children:(0,s.jsxs)(c.Text,{style:[Co.tagText,{color:R(m),fontFamily:x}],children:["Tier ",e.tier]})})]}),0===v.length&&(0,s.jsx)(c.View,{style:{marginTop:8,width:"100%"},children:(0,s.jsx)(ve,{theme:m,variant:"primary",size:"sm",onPress:()=>{n(e),f?.()},children:"Select game"})}),I?(0,s.jsx)(c.View,{style:{marginTop:"auto",width:"100%",paddingTop:12},children:(0,s.jsx)(c.Text,{style:{fontSize:11,lineHeight:15,fontWeight:"600",color:b.text,textAlign:"center",fontFamily:x},children:I})}):null]},l)})}),J&&(0,s.jsx)(s.Fragment,{children:[-1,1].map(e=>{const t=e<0?_>0:_<M.length-1;return(0,s.jsx)(c.TouchableOpacity,{accessibilityRole:"button",accessibilityLabel:e<0?"Previous game":"Next game",onPress:()=>te(_+e),disabled:!t,style:{position:"absolute",top:"38%",left:e<0?2:void 0,right:e>0?2:void 0,width:44,height:44,borderRadius:22,borderWidth:1,borderColor:b.border,backgroundColor:B(b.background??"#fff",.94),alignItems:"center",justifyContent:"center",opacity:t?1:.3,zIndex:1,...ne},children:(0,s.jsx)(c.Text,{style:{fontSize:18,lineHeight:20,color:b.primary,fontFamily:x},children:e<0?"‹":"›"})},e)})})]}),M.length>0&&Q&&(0,s.jsx)(c.View,{style:{flexDirection:"row",justifyContent:"center",flexWrap:"wrap",paddingTop:4,paddingBottom:8},children:M.map((e,t)=>(0,s.jsx)(c.TouchableOpacity,{accessibilityRole:"button",accessibilityLabel:`Go to ${P(e)}`,onPress:()=>te(t),style:{paddingVertical:18.5,paddingHorizontal:5,marginVertical:-18.5,alignItems:"center",justifyContent:"center"},children:(0,s.jsx)(c.View,{style:{width:t===_?22:7,height:7,borderRadius:999,backgroundColor:t===_?b.primary:B(b.primary,.25)}})},e.id))}),M.length>0&&Q&&(0,s.jsxs)(c.View,{style:{borderTopWidth:1,borderTopColor:b.border,paddingTop:10,marginTop:2},children:[(0,s.jsx)(c.Text,{style:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.6,color:b.textMuted,fontFamily:k,marginBottom:8},children:"All games"}),(0,s.jsx)(c.View,{style:{flexDirection:"row",flexWrap:"wrap",gap:4},children:M.map((e,t)=>{const n=Yt(e);return(0,s.jsxs)(c.TouchableOpacity,{accessibilityRole:"button",accessibilityState:{selected:t===_,disabled:!n},onPress:()=>(e=>{O(e,po(e,y?.[e.id]).maxLegCount)})(e),disabled:!n,style:{alignItems:"center",gap:4,paddingHorizontal:4,paddingVertical:6,borderRadius:16,borderWidth:1,borderColor:t===_?b.primary:"transparent",opacity:n?1:.5,width:q},children:[(0,s.jsx)(xo,{iconUrl:fe(e),size:N?44:52,brandColor:b.primary,iconColor:b.primaryText,accentColor:z}),(0,s.jsx)(c.Text,{numberOfLines:2,style:{fontSize:11,fontWeight:"700",lineHeight:13,textAlign:"center",letterSpacing:-.11,color:t===_?b.primary:S,fontFamily:k},children:P(e)})]},e.id)})})]})]})}var Co=c.StyleSheet.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}}),Bo=class{constructor(e){this.inflight=new Map,this.cache=new Map,this.apiUrl=e.apiUrl,this.apiKey=e.apiKey,this.fetchImpl=e.fetchImpl??fetch.bind(globalThis),this.getAuthHeaders=e.getAuthHeaders}invalidateCache(){this.cache.clear()}invalidate(){this.invalidateCache()}async request(e,t,n){const o=`${this.apiUrl}${e}`,r=(t?.method??"GET").toUpperCase(),i="GET"===r,l=i,a=!i&&!n?.idempotent,c=`${r} ${o}`;if(l){const e=this.cache.get(c);if(e&&Date.now()-e.at<5e3)return e.value;const t=this.inflight.get(c);if(t)return t}const s=l?this.cache.get(c):void 0,d=(async()=>{let e;try{const n=this.getAuthHeaders?await this.getAuthHeaders():void 0;e=await this.fetchImpl(o,{...t,headers:{"Content-Type":"application/json",...this.apiKey?{"X-API-Key":this.apiKey}:{},...n??{},...s?.etag?{"If-None-Match":s.etag}:{},...t?.headers}})}catch(r){throw r}if(304===e.status&&s)return l&&this.cache.set(c,{at:Date.now(),value:s.value,etag:s.etag}),s.value;if(!e.ok){let t=`API request failed: ${e.status} ${e.statusText}`;try{const n=await e.json();422===e.status&&n.detail?Array.isArray(n.detail)?t=n.detail.map(e=>`${Array.isArray(e.loc)?e.loc.join("."):"field"}: ${e.msg}`).join("; "):"string"==typeof n.detail?t=n.detail:"object"==typeof n.detail&&(t=JSON.stringify(n.detail)):n.message?t=n.message:n.error&&(t=n.error)}catch{}throw new Error(t)}const n=await e.json();if(l){const t=e.headers.get("ETag")??void 0;this.cache.set(c,{at:Date.now(),value:n,etag:t})}return n})();return l?(this.inflight.set(c,d),d.catch(()=>{}).finally(()=>{this.inflight.delete(c)})):a&&d.finally(()=>this.invalidateCache()).catch(()=>{}),d}async getGames(e){const t=new URLSearchParams;e?.category&&t.append("category",e.category),e?.jurisdiction&&t.append("jurisdiction",e.jurisdiction),e?.sport&&t.append("sport",e.sport);const n=t.toString(),o=n?`/games?${n}`:"/games",r=await this.request(o);return{games:r.payload||[],howToPlayMarkdown:r.how_to_play_markdown??null}}async getGame(e){return(await this.request(`/games/${e}`)).payload}async getPropositions(e){const t=new URLSearchParams;e?.event_id&&t.append("event_id",e.event_id),e?.sport&&t.append("sport",e.sport),e?.category&&t.append("category",e.category);const n=t.toString(),o=n?`/propositions?${n}`:"/propositions";return(await this.request(o)).payload||[]}async getSports(){return(await this.request("/propositions/sports")).sports||[]}async getPropositionsByIds(e){if(0===e.length)return[];const t=new URLSearchParams({ids:e.join(","),include_expired:"true"});return(await this.request(`/propositions?${t.toString()}`)).payload||[]}async getProposition(e){const t=(await this.request(`/propositions/${e}?include_expired=true`)).payload;return Array.isArray(t)?t.find(t=>t.id===e)??t[0]:t}async getGameEntries(e){const t=new URLSearchParams;null!=e?.user_id&&t.append("user_id",String(e.user_id)),null!=e?.pending&&t.append("pending",String(e.pending));const n=t.toString(),o=n?`/game-entries?${n}`:"/game-entries";return((await this.request(o)).payload||[]).map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),null!=t.stake&&null==t.bet_amount&&(t.bet_amount=Number(t.stake)),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t})}async createGameEntry(e){const t=e.proposition_ids.map(t=>({proposition_id:t,user_prediction:e.selections?.[t]??"yes"})),n={game_id:e.game_id,user_id:e.user_id,propositions:t};null!=e.stake&&(n.stake=e.stake),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 zo(e,t,n){const[o,r]=(0,a.useState)([]),[i,l]=(0,a.useState)(null),[c,s]=(0,a.useState)(!n?.skip),[d,h]=(0,a.useState)(null),u=t?`${t.category||""}_${t.jurisdiction||""}_${t.sport||""}`:"",g=(0,a.useRef)(t);g.current=t;const f=n?.skip??!1,p=(0,a.useCallback)(async()=>{if(!f)try{s(!0),h(null);const t=await e.getGames(g.current);r(t.games),l(t.howToPlayMarkdown)}catch(t){h(t instanceof Error?t.message:"Failed to fetch games")}finally{s(!1)}},[e,u,f]);return(0,a.useEffect)(()=>{p()},[p]),{games:o,howToPlayMarkdown:i,loading:c,error:d,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await p()},[e,p])}}function vo(e,t,n){const[o,r]=(0,a.useState)([]),[i,l]=(0,a.useState)(!n?.skip),[c,s]=(0,a.useState)(null),d=n?.skip??!1,h=t?`${t.event_id||""}_${t.sport||""}_${t.category||""}`:"",u=(0,a.useRef)(t);u.current=t;const g=(0,a.useCallback)(async()=>{if(!d)try{l(!0),s(null);const t=await e.getPropositions(u.current);r(t)}catch(t){s(t instanceof Error?t.message:"Failed to fetch propositions")}finally{l(!1)}},[e,h,d]);return(0,a.useEffect)(()=>{g()},[g]),{propositions:o,loading:i,error:c,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await g()},[e,g])}}function Fo(e,t){const[n,o]=(0,a.useState)([]),[r,i]=(0,a.useState)(!t?.skip),[l,c]=(0,a.useState)(null),s=t?.skip??!1,d=(0,a.useCallback)(async()=>{if(!s)try{i(!0),c(null),o(await e.getSports())}catch(t){c(t instanceof Error?t.message:"Failed to fetch sports")}finally{i(!1)}},[e,s]);return(0,a.useEffect)(()=>{d()},[d]),{sports:n,loading:r,error:l,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await d()},[e,d])}}function Wo(e,t,n){const[o,r]=(0,a.useState)([]),[i,l]=(0,a.useState)(!n?.skip),[c,s]=(0,a.useState)(null),d=n?.skip??!1,h=t?`${t.user_id??""}_${t.pending??""}`:"",u=(0,a.useRef)(t);u.current=t;const g=(0,a.useCallback)(async()=>{if(!d)try{l(!0),s(null);const t=await e.getGameEntries(u.current);r(t)}catch(t){s(t instanceof Error?t.message:"Failed to fetch entries")}finally{l(!1)}},[e,h,d]);return(0,a.useEffect)(()=>{g()},[g]),{entries:o,loading:i,error:c,refetch:(0,a.useCallback)(async()=>{e.invalidate(),await g()},[e,g])}}function To(e,t,n){const[o,r]=(0,a.useState)({}),[i,l]=(0,a.useState)(!1),c=n?.skip??!1,s=n?.betAmount,d=(0,a.useRef)(new Set);return(0,a.useEffect)(()=>{if(c||0===t.length)return;const n=t.filter(e=>!(e.id in o)&&!d.current.has(e.id));if(0===n.length)return;for(const e of n)d.current.add(e.id);let i=!1;return l(!0),(async()=>{try{const t=await e.getGamesMaxPayouts(n.map(e=>e.id),s);i||r(e=>({...e,...t}))}catch{}finally{i||l(!1)}})(),()=>{i=!0}},[e,t.map(e=>e.id).join(","),c,s]),{maxPayouts:o,loading:i,refetchGame:(0,a.useCallback)(async(t,n)=>{if(!c)try{const o=await e.getGamesMaxPayouts([t],n??s);o[t]&&r(e=>({...e,[t]:o[t]}))}catch{}},[e,c,s])}}function Ao(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[i,l]=(0,a.useState)(null);return{createEntry:async t=>{try{n(!0),r(null),await function(e=15e3){return"undefined"==typeof navigator||!1!==navigator.onLine||"undefined"==typeof window||"function"!=typeof window.addEventListener?Promise.resolve():new Promise(t=>{const n=()=>{window.removeEventListener("online",n),clearTimeout(o),t()},o=setTimeout(n,e);window.addEventListener("online",n)})}();const 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,clearSubmitError:(0,a.useCallback)(()=>r(null),[])}}function Lo(e){const[t,n]=(0,a.useState)(e?"sport":"game"),[o,r]=(0,a.useState)(null),[i,l]=(0,a.useState)({}),[c,s]=(0,a.useState)(null);return{step:t,selectedGame:o,selections:i,placedEntry:c,setGameOnly:e=>{r(e)},clearSelectedGame:()=>{r(null),l({})},goToSportSelection:e=>{e&&r(e),n("sport")},goToConfirmation:()=>{n("confirm")},goToSuccess:e=>{s(e),n("success")},goBack:()=>{"confirm"===t?n("sport"):"sport"===t&&(n("game"),r(null),l({}))},reset:()=>{n("game"),r(null),l({}),s(null)},toggleSelection:(e,t)=>{l(n=>{const o={...n};return o[e]===t?delete o[e]:o[e]=t,o})}}}function Ro(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[i,l]=(0,a.useState)(null);return{preview:(0,a.useCallback)(async(t,o)=>{try{n(!0),r(null);const i=await e.getEntryPreview(t,o);return l(i),i}catch(i){const e=i instanceof Error?i.message:"Failed to preview entry";throw r(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:o,result:i}}var Do=["totals","spread","player"],Mo={totals:"Total",spread:"Spread",player:"Player"},Po={totals:"One total per match — the match total, a quarter or a half all count",spread:"One result per match — the line, the margin or the head-to-head all count",player:"One player prop per match"};function Ho(e,t){return t?`${Po[e]} (taken)`:Po[e]}var Oo=/racing|greyhound|harness|trots/,Io=["spread","handicap","margin","line","h2h","head_to_head","moneyline","winner","result"];function Eo(e,t,n=""){const o=e.toLowerCase(),r=t.toLowerCase();return Oo.test(o)||Oo.test(n.toLowerCase())?null:o.includes("player")?"player":o.includes("total")||o.includes("over_under")?"totals":Io.some(e=>o.includes(e))||/\bwin(s)?\b/.test(r)?"spread":/\btotal\b/.test(r)?"totals":null}function jo(e){return Eo(tt(e)??"",nt(e),e.sport??"")}function No(e,t){if(rt(e)){const n=at(e,t),o=new Set;for(const t of n?.legs??[]){const n=t.prop?jo(t.prop):Eo("",t.text,e.sport??"");n&&o.add(n)}return[...o]}const n=jo(e);return n?[n]:[]}function Go(e){return wn(e)||[e.home_team,e.away_team].filter(Boolean).join(" vs ").trim()||null}var Yo=new Set;function Vo(e,t,n){const o=new Map;for(const i of e){if(!(i.id in t))continue;const e=Go(i);if(e)for(const t of No(i,n)){const n=o.get(e)??new Map;n.has(t)||n.set(t,i.id),o.set(e,n)}}const r=e=>{const t=e?o.get(e):void 0;return t?new Set(t.keys()):Yo};return{isCapped:e=>{const t=Go(e);if(!t)return!1;const r=o.get(t);return!!r&&No(e,n).some(t=>{const n=r.get(t);return void 0!==n&&n!==e.id})},filledFor:r,slotsFor:e=>{const t=r(e);return Do.map(e=>({family:e,label:Mo[e],filled:t.has(e)}))}}}var Uo=[1,5,10,20,50,100],qo=[4,12];function Ko(e){return!!e&&!e.quick_pick_only&&"game_set"===(e.rule??"").trim().toLowerCase()}function Zo(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 Xo(e){if(!Ko(e)||!e)return null;const t=e.min_propositions??e.allowed_propositions?.[0]??qo[0],n=e.max_propositions??e.allowed_propositions?.[e.allowed_propositions.length-1]??qo[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=Uo.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 Qo=[25,50,75,100],Jo=[{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 $o(e){return!!e&&!e.quick_pick_only&&"ladder"===(e.rule??"").trim().toLowerCase()}function _o(e,t){return Math.round(e*t/50*100)/100}function er(e,t){let n=0;return e.tiers50.map(([e,o])=>(n+=o,{atLeast:e,prize:_o(o,t),cumulative:_o(n,t)}))}function tr(e,t){return _o(e.tiers50.reduce((e,[,t])=>e+t,0),t)}function nr(e){if(!$o(e)||!e)return null;const t=e.allowed_propositions,n=e.min_propositions??4,o=e.max_propositions??10,r=Jo.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??Qo[0],l=e.max_bet??Qo[Qo.length-1],a=Qo.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:Qo,tagline:"Climb the ladder. Every step pays its own prize, and every prize stacks on the one before."}}function or(e){return!!e&&!e.quick_pick_only&&"six_again"===(e.rule??"").trim().toLowerCase()}var rr={golden_point:!1,captains_challenge:!1};function ir(e,t,n){const o=1+(t.golden_point?1:0)+(t.captains_challenge?1:0),r=e*n.baseMultiple*(t.golden_point?n.goldenPointFactor:1),i=t.captains_challenge?e*n.challengeMultiple:0;return{legs:n.legs,unit:e,stake:e*o,base:r,challenge:i,perfect:r+i,lowestWinningCount:n.legs-(t.captains_challenge?n.challengeMisses:0),ruleId:lr(t,n)}}function lr(e,t){return e.captains_challenge?e.golden_point?t.ruleIds.goldenChallenge:t.ruleIds.challenge:t.ruleIds.base}function ar(e,t){return e.permitted_rules?.find(e=>t((e.name??"").toLowerCase().replace(/[^a-z]+/g," ").trim()))??null}function cr(e){if(!or(e)||!e)return null;const t=e.num_propositions??e.min_propositions??6;if(t<2)return null;const n=e.operator_margin??.21875,o=Math.max(e.min_bet??10,.01),r=null!=e.max_bet?Math.max(o,Math.floor(e.max_bet/3/o)*o):Math.max(o,100),i=ar(e,e=>e.includes("challenge")&&!e.includes("golden")),l=ar(e,e=>e.includes("challenge")&&e.includes("golden")),a=ar(e,e=>!e.includes("challenge"))??null;return{legs:t,unitMin:o,unitStep:o,unitMax:r,defaultUnit:o,baseMultiple:Math.round(Math.pow(2,t)*(1-n)*100)/100,challengeMultiple:5,challengeMisses:1,goldenPointFactor:2,boosts:[{id:"golden_point",label:"Golden Point",costUnits:1},{id:"captains_challenge",label:"Captain's Challenge",costUnits:1}],tagline:"Set your play, then pick your six. Every call a yes or a no.",ruleIds:{base:a?.id??e.default_rule_id??null,challenge:i?.id??null,goldenChallenge:l?.id??null}}}function sr(e){return e?.quick_pick_only?"quick_pick":Ko(e)?"game_set":so(e)?"pick_your_dividend":$o(e)?"ladder":On(e)?"mirror":Un(e)?"safety_net":or(e)?"six_again":bn(e)?"selections":lo(e)?"rule_setup":"selections"}function dr(e){if(!e||e.quick_pick_only)return!1;if("exact"!==(e.rule??"").trim().toLowerCase())return!1;if(bn(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 hr(e){return!(!e||e.quick_pick_only||"exact"!==(e.rule??"").trim().toLowerCase()||bn(e)||dr(e))}function ur(e){switch(sr(e)){case"ladder":return{belowRequiredHint:(e,t)=>`Drop to Ladder ${e} or add another pick to stay on Ladder ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay on Ladder ${e}.`,switchTierLabel:e=>`Switch to Ladder ${e}`,overloadTitle:"Add more picks to climb higher",tableColumnLabel:"Ladder",tierButtonLabel:e=>`Ladder ${e}`};case"game_set":case"pick_your_dividend":case"mirror":case"safety_net":case"six_again":return{belowRequiredHint:(e,t)=>`Drop to ${e} legs or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e} legs.`,switchTierLabel:e=>`Switch to ${e} legs`,overloadTitle:"Add more legs to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`${e} legs`};default:return{belowRequiredHint:(e,t)=>`Drop to a ${e}-leg multi or add another pick to stay at ${t}.`,belowRequiredAddOnlyHint:e=>`Add another pick to stay at ${e}.`,switchTierLabel:e=>`Switch to ${e}-leg`,overloadTitle:"Add more picks to win more",tableColumnLabel:"Legs",tierButtonLabel:e=>`Multi ${e}`}}}function gr(e){const t=sr(e);return"six_again"===t||"pick_your_dividend"===t}function fr(e){return"six_again"===sr(e)?"Set by your ticket and boosts.":"Set by your dividend ladder rung."}function pr(e,t,n){if(!e||t<=0||n<=0)return 0;switch(sr(e)){case"game_set":return Zo(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize;case"mirror":return In(n,t,{operatorMargin:e.operator_margin??void 0,perLegProbability:e.payout_structure?.per_leg_probability??void 0}).prize;case"pick_your_dividend":return function(e,t,n=ao){if(!(e>0&&t>0))return 0;for(const o of n)if(Math.abs(uo(o,e).stake-t)<.005)return o;return 0}(t,n);default:return 0}}var yr=(0,a.createContext)(null),mr={};function br(){const e=(0,a.useContext)(yr);if(!e)throw new Error("usePlaceEntry must be used within a <PlaceEntryProvider>");return e}function wr({onPress:e,onDoubleClick:t,label:n="QUICKPICK",size:o="md",yesColor:r,noColor:i,theme:l}){const h=(0,a.useContext)(yr),u=l??h?.theme??q,g=T(u),f=u.colors,p=r??M(u),y=i??P(u),m="sm"===o,b=m?g.space.xs:g.space.sm,w=m?6:8,x=m?g.fontSize.sm:g.fontSize.md,k=m?8.5:10,S=(0,a.useRef)(0);return(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>{if(e(),t){const e=Date.now();e-S.current<300?(S.current=0,t()):S.current=e}},activeOpacity:.8,accessibilityRole:"button",accessibilityLabel:n,style:[xr.container,{borderColor:B(f.border,.6),borderRadius:g.radius.sm,minHeight:g.touchTarget.min}],children:[(0,s.jsxs)(c.View,{style:xr.topRow,children:[(0,s.jsxs)(d.default,{style:c.StyleSheet.absoluteFill,viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[(0,s.jsx)(d.Polygon,{points:"0,0 53,0 47,100 0,100",fill:p}),(0,s.jsx)(d.Polygon,{points:"53,0 100,0 100,100 47,100",fill:y}),(0,s.jsx)(d.Line,{x1:"53",y1:"0",x2:"47",y2:"100",stroke:"rgba(255,255,255,0.85)",strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})]}),(0,s.jsx)(c.View,{style:[xr.half,{paddingHorizontal:b,paddingVertical:w}],children:(0,s.jsx)(c.Text,{style:[xr.halfLabel,{fontSize:x}],numberOfLines:1,children:"Yes"})}),(0,s.jsx)(c.View,{style:[xr.half,{paddingHorizontal:b,paddingVertical:w}],children:(0,s.jsx)(c.Text,{style:[xr.halfLabel,{fontSize:x}],numberOfLines:1,children:"No"})})]}),(0,s.jsx)(c.View,{style:[xr.labelRow,{backgroundColor:f.buttonSecondary}],children:(0,s.jsx)(c.Text,{style:[xr.labelText,{color:f.buttonSecondaryText,fontSize:k,letterSpacing:.14*k,fontFamily:u.fonts?.mono??ae(u)}],numberOfLines:1,children:n})})]})}var xr=c.StyleSheet.create({container:{borderWidth:1,overflow:"hidden",flexShrink:0,flexDirection:"column",width:"100%",minWidth:92},topRow:{flexDirection:"row",flex:1,flexShrink:0},half:{flex:1,flexShrink:0,alignItems:"center",justifyContent:"center"},halfLabel:{color:"#ffffff",fontWeight:"600",letterSpacing:.2,flexShrink:0,textAlign:"center"},labelRow:{paddingTop:3,paddingBottom:4,alignItems:"center",justifyContent:"center"},labelText:{fontWeight:"700",textAlign:"center",flexShrink:0}});function kr(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 Sr(e,t,n,o){const[r,i]=(0,a.useState)([]),[l,c]=(0,a.useState)([]),[s,d]=(0,a.useState)([]),[h,u]=(0,a.useState)([]),[g,f]=(0,a.useState)(null),p=(0,a.useMemo)(()=>{const t=new Map;for(const n of e)t.set(n.id,n);return t},[e]),y=(0,a.useMemo)(()=>e.filter(e=>null!=t[e.id]),[e,t]),m=(0,a.useMemo)(()=>e.map(e=>e.id).join(","),[e]),b=(0,a.useRef)(null);(0,a.useEffect)(()=>()=>{b.current=null},[]),(0,a.useEffect)(()=>{if(b.current===m)return;b.current=m;const n=e.filter(e=>!(e.id in t)),o=e.filter(e=>null!=t[e.id]);i(n.map(e=>e.id)),c(kr(n,o).slice(0,3).map(e=>e.id)),d([]),u([]),f(null)},[m,e,t]);const w=(0,a.useMemo)(()=>o?new Set(e.filter(e=>o(e)).map(e=>e.id)):new Set,[e,o]),x=(0,a.useMemo)(()=>{const e=new Set(s);return[...kr(r.map(e=>p.get(e)).filter(e=>!!e&&!w.has(e.id)).filter(t=>!e.has(t.id)),y).map(e=>e.id),...s.filter(e=>r.includes(e)&&!w.has(e))]},[r,p,y,s,w]);(0,a.useEffect)(()=>{c(e=>{const t=new Set(r),n=e.filter(e=>t.has(e)&&!w.has(e));if(0===h.length&&!g){const t=x.slice(0,3);return t.length===n.length&&t.every((e,t)=>e===n[t])?n.length===e.length?e:n:t}if(n.length>=Math.min(3,r.length))return n.length===e.length?e:n;const o=[...n];for(const r of x){if(o.length>=3)break;o.includes(r)||o.push(r)}return o})},[r,x,h,g,w]);const k=(0,a.useMemo)(()=>l.map(e=>p.get(e)).filter(e=>Boolean(e)),[l,p]),S=(0,a.useCallback)((e,t)=>{f(null),t&&n(e,t),u(n=>[...n,{id:e,answer:t}]),c(t=>t.filter(t=>t!==e)),d(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]}),i(n=>{const o=n.filter(t=>t!==e);return t?o:[...o,e]})},[n]),C=(0,a.useCallback)(()=>{const e=h[h.length-1];e&&(e.answer&&n(e.id,e.answer),f({id:e.id,from:"yes"===e.answer?"right":"no"===e.answer?"left":"up"}),u(e=>e.slice(0,-1)),d(t=>t.filter(t=>t!==e.id)),i(t=>[e.id,...t.filter(t=>t!==e.id)]),c(t=>[e.id,...t.filter(t=>t!==e.id)].slice(0,3)))},[h,n]);return{visible:k,canSkip:r.filter(e=>!w.has(e)).length>1,canUndo:h.length>0,restored:g,resolve:S,undo:C}}var Cr=c.Easing.bezier(.32,0,.67,0),Br=c.Easing.bezier(.22,1,.36,1),zr={stiffness:420,damping:34},vr={stiffness:280,damping:28},Fr="#00C853",Wr="#E53935",Tr=e=>"web"===c.Platform.OS?{userSelect:"none",cursor:e?"grabbing":"grab"}:null;function Ar(e){return"up"===e?{x:0,y:-720}:{x:"right"===e?640:-640,y:70}}function Lr(e,t,n){return n&&-t>Math.abs(e)}function Rr({prop:e,theme:t,depth:n=0,enterFrom:o,canSkip:r=!1,onResolve:i,registerApi:l,onDragStateChange:d,children:h}){const u=(0,a.useContext)(yr),g=t??u?.theme??q,f=ce(g),p=g.colors.productYes??Fr,y=g.colors.productNo??Wr,m=0===n,[b,w]=(0,a.useState)(!1),x=(0,a.useRef)(!1),k=(0,a.useRef)({x:0,y:0}),S=(0,a.useRef)({x:0,y:0}),C=(0,a.useRef)(null),B=(0,a.useRef)(0),z=(0,a.useRef)(null),v=(0,a.useRef)(null),F=(0,a.useRef)(null),W=(0,a.useRef)(r);W.current=r;const T=(0,a.useRef)(d);T.current=d;const A=(0,a.useRef)(new c.Animated.ValueXY({x:0,y:0})).current,L=(0,a.useRef)(new c.Animated.Value(0)).current,R=(0,a.useCallback)(()=>{A.setValue({x:k.current.x,y:k.current.y}),L.setValue(Lr(k.current.x,k.current.y,W.current)?1:0)},[L,A]),D=(0,a.useCallback)(()=>{null!=z.current&&(cancelAnimationFrame(z.current),z.current=null),v.current&&(v.current.stop(),v.current=null)},[]),M=(0,a.useCallback)(e=>{D();let t=null;const n=o=>{const r=Math.min(null==t?1/60:(o-t)/1e3,1/30);t=o;const i=k.current,l=S.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,R(),void(z.current=null);R(),z.current=requestAnimationFrame(n)};z.current=requestAnimationFrame(n)},[R,D]),P=(0,a.useCallback)(t=>{if(x.current)return;if("up"===t&&!W.current)return;x.current=!0,D();const n="right"===t?"yes":"left"===t?"no":null,o=Ar(t);k.current={...o},L.setValue("up"===t?1:0),v.current=c.Animated.timing(A,{toValue:o,duration:260,easing:Cr,useNativeDriver:!1}),v.current.start(),F.current=setTimeout(()=>i(e.id,n),260)},[i,e.id,D,L,A]);(0,a.useEffect)(()=>()=>{F.current&&clearTimeout(F.current),null!=z.current&&cancelAnimationFrame(z.current),v.current?.stop(),C.current&&T.current?.(!1)},[]),(0,a.useEffect)(()=>{if(!o)return D(),k.current={x:0,y:0},S.current={x:0,y:0},void R();const e=Ar(o);k.current={x:e.x,y:e.y},S.current={x:0,y:0},R(),M(vr)},[o,R,M,D]),(0,a.useEffect)(()=>{if(m&&l)return l({fly:P}),()=>l(null)},[P,m,l]);const H=(0,a.useMemo)(()=>c.PanResponder.create({onStartShouldSetPanResponder:()=>!1,onMoveShouldSetPanResponder:(e,t)=>!x.current&&(Math.abs(t.dx)>2&&Math.abs(t.dx)>Math.abs(t.dy)||W.current&&-t.dy>2&&-t.dy>Math.abs(t.dx)),onPanResponderGrant:()=>{D(),C.current={x:k.current.x,y:k.current.y},S.current={x:0,y:0},B.current=Date.now(),w(!0),T.current?.(!0)},onPanResponderMove:(e,t)=>{if(x.current||!C.current)return;if(t.numberActiveTouches>1)return;const n=C.current.x+t.dx,o=Math.min(C.current.y+t.dy,0),r=e.nativeEvent.timestamp??Date.now(),i=r-B.current;if(i>0){const e=1-Math.exp(-i/40);S.current.x+=((n-k.current.x)/i*1e3-S.current.x)*e,S.current.y+=((o-k.current.y)/i*1e3-S.current.y)*e,B.current=r}k.current.x=n,k.current.y=o,R()},onPanResponderRelease:e=>{if(!C.current)return;if(C.current=null,w(!1),T.current?.(!1),x.current)return;(e.nativeEvent.timestamp??Date.now())-B.current>90&&(S.current={x:0,y:0});const t=k.current,n=S.current;if(Lr(t.x,t.y,W.current)){if(t.y<-110||n.y<-620)return P("up")}else{if(t.x>110||n.x>620)return P("right");if(t.x<-110||n.x<-620)return P("left")}M(zr)},onPanResponderTerminate:()=>{C.current=null,S.current={x:0,y:0},w(!1),T.current?.(!1),x.current||M(zr)},onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0}),[P,R,M,D]),O=A.x.interpolate({inputRange:[-260,0,260],outputRange:["-16deg","0deg","16deg"],extrapolate:"clamp"}),I=c.Animated.subtract(1,L),E=c.Animated.multiply(I,A.x.interpolate({inputRange:[24,132],outputRange:[0,1],extrapolate:"clamp"})),j=c.Animated.multiply(I,A.x.interpolate({inputRange:[-132,-24],outputRange:[1,0],extrapolate:"clamp"})),N=c.Animated.multiply(L,A.y.interpolate({inputRange:[-120,-30],outputRange:[1,0],extrapolate:"clamp"})),G=(0,a.useRef)(new c.Animated.Value(n)).current;(0,a.useEffect)(()=>{const e=c.Animated.timing(G,{toValue:n,duration:240,easing:Br,useNativeDriver:!1});return e.start(),()=>e.stop()},[n,G]);const Y=G.interpolate({inputRange:[0,3],outputRange:[0,36]}),V=G.interpolate({inputRange:[0,3],outputRange:[1,.88]});return(0,s.jsx)(c.Animated.View,{style:[c.StyleSheet.absoluteFill,{zIndex:3-n,transform:[{translateY:Y},{scale:V}]}],pointerEvents:m?"auto":"none",children:(0,s.jsxs)(c.Animated.View,{style:[{flex:1,transform:[{translateX:A.x},{translateY:A.y},{rotate:O}]},m&&Tr(b)],...m?H.panHandlers:{},children:[h,m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.Animated.View,{pointerEvents:"none",style:[Pr.stamp,Pr.stampLeft,{opacity:E,borderColor:p,transform:[{rotate:"-12deg"}]}],children:(0,s.jsx)(c.Text,{style:[Pr.stampText,{color:p,fontFamily:f}],children:"Yes"})}),(0,s.jsx)(c.Animated.View,{pointerEvents:"none",style:[Pr.stamp,Pr.stampRight,{opacity:j,borderColor:y,transform:[{rotate:"12deg"}]}],children:(0,s.jsx)(c.Text,{style:[Pr.stampText,{color:y,fontFamily:f}],children:"No"})}),r&&(0,s.jsx)(c.Animated.View,{pointerEvents:"none",style:[Pr.skipPillWrap,{opacity:N}],children:(0,s.jsx)(c.View,{style:[Pr.skipPill,{borderColor:g.colors.border,backgroundColor:g.colors.background}],children:(0,s.jsx)(c.Text,{style:[Pr.skipPillText,{color:g.colors.primary}],children:"Skip"})})})]})]})})}function Dr({prop:e}){const{theme:t,headingFont:n,renderTeamLogo:o,renderPropositionSilk:r,displaySportName:i,gameCategory:l,compositeComponentById:a}=br(),d=t.colors,{height:h}=(0,c.useWindowDimensions)(),u=h<700?12:24,g=at(e,a),f=tt(e),p=("racing"===l?[e.away_team?.trim()||e.home_team?.trim()]:[e.home_team?.trim(),e.away_team?.trim()]).filter(Boolean),y=(t,n)=>t&&r?.(t,n)||_r(t??e,o,p.join(" vs "))||null;return(0,s.jsxs)(c.View,{style:[Pr.face,{backgroundColor:j(t),borderColor:d.border}],children:[(0,s.jsx)(c.View,{style:[Pr.matchupBand,{backgroundColor:N(t)}],children:p.length>0?p.map((e,n)=>(0,s.jsxs)(c.View,{style:Pr.matchupTeam,children:[n>0&&(0,s.jsx)(c.Text,{style:[Pr.matchupVs,{color:E(t)}],children:"vs"}),o?.(e),(0,s.jsx)(c.Text,{style:[Pr.matchupName,{color:I(t)}],children:e})]},`${e}-${n}`)):(0,s.jsx)(c.Text,{style:[Pr.matchupName,{color:I(t)}],children:e.league??i(e.sport??"")})}),(0,s.jsxs)(c.View,{style:[Pr.faceBody,{paddingVertical:u,gap:12===u?12:16}],children:[(0,s.jsxs)(c.View,{style:Pr.propositionRow,children:[!g&&y(e,32),g?(0,s.jsxs)(c.View,{style:{flex:1,gap:12},children:[(0,s.jsxs)(c.Text,{style:[Pr.compositeLabel,{color:R(t)}],children:["All ","OR"===g.operator?"or any of these":"of these"]}),(0,s.jsx)(c.View,{style:{gap:8},children:g.legs.map((e,o)=>(0,s.jsxs)(c.View,{style:Pr.compositeLeg,children:[(0,s.jsx)(c.Text,{style:{color:d.primary,fontWeight:"700"},children:"OR"===g.operator?"/":"+"}),y(e.prop,24),(0,s.jsxs)(c.View,{style:Pr.compositeLegBody,children:[e.eventLabel?(0,s.jsx)(c.Text,{style:[Pr.compositeLegEvent,{color:d.textMuted}],children:e.eventLabel}):null,(0,s.jsx)(c.Text,{style:[Pr.compositeLegText,{color:D(t),fontFamily:n}],children:e.text})]})]},o))})]}):(0,s.jsx)(c.Text,{style:[Pr.proposition,{flex:1,color:D(t),fontFamily:n}],children:e.description??e.proposition})]}),e.outcome_description&&e.outcome_description!==e.description&&(0,s.jsx)(c.Text,{style:[Pr.outcome,{color:d.textMuted}],children:e.outcome_description})]}),(0,s.jsxs)(c.View,{style:[Pr.faceFooter,{borderTopColor:d.borderSubtle??d.border}],children:[e.sport?(0,s.jsx)(c.View,{style:[Pr.sportChip,{backgroundColor:d.infoBg}],children:(0,s.jsx)(c.Text,{style:[Pr.sportChipText,{color:d.infoText}],children:i(e.sport)})}):null,f?(0,s.jsx)(c.Text,{style:[Pr.footerMeta,{color:d.textMuted}],children:f.replace(/[_-]+/g," ").toUpperCase()}):null,e.commence_time?(0,s.jsx)(c.Text,{style:[Pr.footerMeta,Pr.footerDate,{color:d.textMuted}],children:yt(e.commence_time)}):null]})]})}function Mr({onBack:e,onNext:t,viewSwitch:n,onDragStateChange:o}){const{theme:r,headingFont:i,propositions:l,selections:d,toggleSelection:h,selectedGame:u,selectedPropositionCount:g,answeredCount:f,selectionValid:p,goToConfirmation:y,goToSportSelection:m,loading:b,error:w,selectedRule:x,compositeComponentById:k}=br(),S=r.colors,C=S.productYes??Fr,B=S.productNo??Wr,{height:z}=(0,c.useWindowDimensions)(),v=Math.max(224,Math.min(.44*z,416)),F=(0,a.useRef)(null);(0,a.useEffect)(()=>{u||(m(),e?.())},[m,e,u]);const W=(0,a.useMemo)(()=>Vo(l,d,k),[l,d,k]),T=(0,a.useCallback)(e=>W.isCapped(e),[W]),{visible:A,canSkip:R,canUndo:D,restored:M,resolve:P,undo:H}=Sr(l,d,h,T),O=u?vt(u,g??void 0,x):{min:0,max:0},I=O.max,E=I>0&&f>=I,N=(()=>{if(!u)return null;if(O.min>0&&O.min===O.max)return O.min;const e=sr(u);return null!=g&&g>0&&("game_set"===e||"pick_your_dividend"===e||dr(u))?g:I>0?I:null})(),G=(0,a.useRef)(f);(0,a.useEffect)(()=>{const e=G.current;if(G.current=f,null==N||e>=N||f!==N)return;const n=setTimeout(()=>{y(),t?.()},420);return()=>clearTimeout(n)},[f,y,t,N]);const Y=!E&&A.length>0,V=(0,a.useCallback)(e=>{F.current=e},[]);if(!u)return null;const U=(e,t,n,o)=>(0,s.jsx)(c.TouchableOpacity,{onPress:n,disabled:o,accessibilityLabel:e,accessibilityRole:"button",style:[Pr.circleButton,{borderColor:S.border,backgroundColor:S.background},o&&Pr.disabled],children:(0,s.jsx)(c.Text,{style:{fontSize:18,color:S.textMuted},children:t})});return(0,s.jsxs)(c.View,{style:Pr.container,children:[n?(0,s.jsx)(c.View,{style:Pr.viewSwitchRow,children:n}):null,b?(0,s.jsx)(c.Text,{style:[Pr.loadingText,{color:S.textMuted}],children:"Loading…"}):w?(0,s.jsx)(c.View,{style:[Pr.errorBox,{backgroundColor:S.errorBg,borderColor:S.error}],children:(0,s.jsx)(c.Text,{style:{fontSize:14,color:S.errorText??S.error,textAlign:"center"},children:w})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.View,{style:Pr.deckArea,children:Y?(0,s.jsx)(c.View,{style:[Pr.deck,{height:v}],children:A.map((e,t)=>(0,s.jsx)(Rr,{prop:e,depth:t,canSkip:R,enterFrom:M?.id===e.id?M.from:null,onResolve:P,registerApi:0===t?V:void 0,onDragStateChange:0===t?o:void 0,children:(0,s.jsx)(Dr,{prop:e})},e.id))}):(0,s.jsxs)(c.View,{style:[Pr.emptyState,{backgroundColor:j(r),borderColor:S.border}],children:[(0,s.jsx)(c.Text,{style:[Pr.emptyTitle,{color:L(r),fontFamily:i}],children:E?"Card full":"That’s the last one"}),(0,s.jsx)(c.Text,{style:[Pr.emptyBody,{color:S.textMuted}],children:E?`You've picked all ${I} 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${O.min>0?` — this game needs at least ${O.min}`:""}. Undo a swipe or head back to widen the pool.`}),D&&(0,s.jsx)(c.TouchableOpacity,{onPress:H,style:[Pr.emptyUndo,{borderColor:S.border}],children:(0,s.jsx)(c.Text,{style:{fontSize:14,fontWeight:"600",color:S.text},children:"Undo last swipe"})})]})}),(0,s.jsxs)(c.View,{style:[Pr.buttonArea,{backgroundColor:j(r),borderColor:S.border}],children:[(0,s.jsxs)(c.View,{style:Pr.buttonRow,children:[U("Undo last swipe","↺",H,!D),(0,s.jsx)(c.TouchableOpacity,{onPress:()=>F.current?.fly("left"),disabled:!Y,style:[Pr.answerButton,{backgroundColor:B},!Y&&Pr.disabled],children:(0,s.jsx)(c.Text,{style:[Pr.answerButtonText,{fontFamily:i}],children:"NO"})}),(0,s.jsx)(c.TouchableOpacity,{onPress:()=>F.current?.fly("right"),disabled:!Y,style:[Pr.answerButton,{backgroundColor:C},!Y&&Pr.disabled],children:(0,s.jsx)(c.Text,{style:[Pr.answerButtonText,{fontFamily:i}],children:"YES"})}),U("Skip this proposition","↑",()=>F.current?.fly("up"),!Y||!R)]}),(0,s.jsx)(c.Text,{style:[Pr.gestureHint,{color:S.textMuted}],children:R?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})]})]})}var Pr=c.StyleSheet.create({container:{flex:1},viewSwitchRow:{flexDirection:"row",justifyContent:"flex-end",paddingBottom:12},loadingText:{paddingVertical:40,textAlign:"center",fontSize:14},errorBox:{borderRadius:12,borderWidth:1,padding:16},deckArea:{flex:1,minHeight:0,justifyContent:"center",paddingTop:12,paddingBottom:32},deck:{width:"100%",maxWidth:384,alignSelf:"center"},face:{flex:1,borderRadius:24,borderWidth:1,overflow:"hidden",shadowColor:"#0A1416",shadowOpacity:.25,shadowRadius:20,shadowOffset:{width:0,height:12},elevation:8},matchupBand:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4,paddingHorizontal:20,paddingVertical:12},matchupTeam:{flexDirection:"row",alignItems:"center",gap:6},matchupVs:{fontSize:12,marginRight:4},matchupName:{fontSize:14,fontWeight:"600"},faceBody:{flex:1,justifyContent:"center",gap:16,paddingHorizontal:20,paddingVertical:24},compositeLabel:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.5},compositeLeg:{flexDirection:"row",alignItems:"flex-start",gap:8},compositeLegBody:{flex:1,minWidth:0},compositeLegEvent:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:.25,lineHeight:13},compositeLegText:{fontSize:16,fontWeight:"700",lineHeight:21},propositionRow:{flexDirection:"row",alignItems:"flex-start",gap:8},proposition:{fontSize:21,fontWeight:"800",lineHeight:27,letterSpacing:-.3},outcome:{fontSize:14,lineHeight:19},faceFooter:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:8,borderTopWidth:1,paddingHorizontal:20,paddingVertical:12},sportChip:{borderRadius:999,paddingHorizontal:8,paddingVertical:2},sportChipText:{fontSize:11,fontWeight:"600",textTransform:"uppercase",letterSpacing:.5},footerMeta:{fontSize:11,letterSpacing:.5},footerDate:{marginLeft:"auto"},stamp:{position:"absolute",top:20,borderWidth:4,borderRadius:12,paddingHorizontal:12,paddingVertical:4},stampLeft:{left:20},stampRight:{right:20},stampText:{fontSize:24,fontWeight:"800",textTransform:"uppercase",letterSpacing:2},skipPillWrap:{position:"absolute",left:0,right:0,bottom:24,alignItems:"center"},skipPill:{borderWidth:1,borderRadius:999,paddingHorizontal:12,paddingVertical:4},skipPillText:{fontSize:12,fontWeight:"600",textTransform:"uppercase",letterSpacing:1.5},emptyState:{width:"100%",maxWidth:384,alignSelf:"center",alignItems:"center",gap:12,borderRadius:24,borderWidth:1,borderStyle:"dashed",paddingHorizontal:24,paddingVertical:40},emptyTitle:{fontSize:16,fontWeight:"800"},emptyBody:{fontSize:14,textAlign:"center",lineHeight:19},emptyUndo:{borderWidth:1,borderRadius:999,paddingHorizontal:20,paddingVertical:8},buttonArea:{flexShrink:0,borderWidth:1,borderRadius:16,paddingHorizontal:12,paddingTop:12,paddingBottom:10},buttonRow:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12,width:"100%",maxWidth:384,alignSelf:"center"},circleButton:{height:44,width:44,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},answerButton:{flex:1,height:56,borderRadius:999,alignItems:"center",justifyContent:"center"},answerButtonText:{fontSize:18,fontWeight:"800",letterSpacing:1.5,color:"#ffffff"},gestureHint:{marginTop:8,textAlign:"center",fontSize:11},disabled:{opacity:.35}});function Hr({propositions:e,title:t,onClose:n}){const{theme:o,selections:r,toggleSelection:i,compositeComponentById:l}=br(),d=o.colors,{height:h}=(0,c.useWindowDimensions)(),u=(0,a.useMemo)(()=>Vo(e,r,l),[e,r,l]),g=(0,a.useCallback)(e=>u.isCapped(e),[u]),{visible:f,canSkip:p,canUndo:y,restored:m,resolve:b,undo:w}=Sr(e,r,i,g),x=(0,a.useRef)(null),k=(0,a.useCallback)(e=>{x.current=e},[]),S=ce(o),C=E(o),B=f.length>0,z=j(o),v=Math.max(224,Math.min(.44*h,416)),F=(e,t,n,o)=>(0,s.jsx)(c.TouchableOpacity,{onPress:n,disabled:o,accessibilityLabel:e,accessibilityRole:"button",style:[Or.circle,{borderColor:d.border,backgroundColor:d.background},o&&Or.disabled],children:(0,s.jsx)(c.Text,{style:{fontSize:18,color:d.textMuted},children:t})}),W=(e,t,n)=>(0,s.jsx)(c.TouchableOpacity,{onPress:()=>x.current?.fly(e),disabled:!B,style:[Or.answer,{backgroundColor:n},!B&&Or.disabled],children:(0,s.jsx)(c.Text,{style:[Or.answerText,{fontFamily:S}],children:t.toUpperCase()})});return(0,s.jsx)(c.Modal,{visible:!0,transparent:!0,animationType:"fade",onRequestClose:n,children:(0,s.jsx)(c.View,{style:Or.backdrop,children:(0,s.jsxs)(c.View,{style:[Or.panel,{backgroundColor:z,borderColor:d.border}],children:[(0,s.jsxs)(c.View,{style:Or.header,children:[(0,s.jsx)(c.Text,{numberOfLines:1,style:[Or.title,{color:I(o),fontFamily:S}],children:t}),(0,s.jsx)(c.TouchableOpacity,{onPress:n,accessibilityLabel:"Close",accessibilityRole:"button",style:[Or.close,{borderColor:d.border}],children:(0,s.jsx)(c.Text,{style:{fontSize:16,color:C},children:"×"})})]}),(0,s.jsx)(c.View,{style:Or.deckArea,children:B?(0,s.jsx)(c.View,{style:[Or.deck,{height:v}],children:f.map((e,t)=>(0,s.jsx)(Rr,{prop:e,depth:t,canSkip:p,enterFrom:m?.id===e.id?m.from:null,onResolve:b,registerApi:0===t?k:void 0,children:(0,s.jsx)(Dr,{prop:e})},e.id))}):(0,s.jsxs)(c.View,{style:[Or.empty,{borderColor:d.border}],children:[(0,s.jsx)(c.Text,{style:[Or.emptyTitle,{color:L(o),fontFamily:S}],children:"That’s the last one"}),(0,s.jsx)(c.Text,{style:[Or.emptyBody,{color:d.textMuted}],children:"You’ve been through every proposition on this fixture. Close to go back to the card, or undo to revisit a pick."})]})}),(0,s.jsxs)(c.View,{style:Or.buttonRow,children:[F("Undo last swipe","↺",w,!y),W("left","No",P(o)),W("right","Yes",M(o)),F("Skip this proposition","↑",()=>x.current?.fly("up"),!B||!p)]}),(0,s.jsx)(c.Text,{style:[Or.hint,{color:d.textMuted}],children:p?"Swipe right for Yes, left for No · ↑ to skip":"Swipe right for Yes, left for No"})]})})})}var Or=c.StyleSheet.create({backdrop:{flex:1,backgroundColor:"rgba(0,0,0,0.6)",alignItems:"center",justifyContent:"center",padding:16},panel:{width:"100%",maxWidth:420,borderRadius:24,borderWidth:1,padding:16,overflow:"hidden"},header:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:12},title:{flex:1,minWidth:0,fontSize:14,fontWeight:"700"},close:{width:32,height:32,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},deckArea:{justifyContent:"center",paddingTop:4,paddingBottom:12},deck:{width:"100%",alignSelf:"center"},empty:{alignItems:"center",gap:12,borderRadius:24,borderWidth:1,borderStyle:"dashed",paddingHorizontal:24,paddingVertical:40},emptyTitle:{fontSize:16,fontWeight:"800"},emptyBody:{fontSize:14,textAlign:"center"},buttonRow:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12,paddingTop:24},circle:{width:44,height:44,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},answer:{flex:1,height:56,borderRadius:999,alignItems:"center",justifyContent:"center"},answerText:{fontSize:18,fontWeight:"800",letterSpacing:1.5,color:"#fff"},hint:{marginTop:8,fontSize:11,textAlign:"center"},disabled:{opacity:.35}});function Ir(e){return new Intl.DateTimeFormat("en-AU",{weekday:"short",day:"numeric",month:"short"}).format(e).replace(",","")}function Er(e){return new Intl.DateTimeFormat("en-AU",{hour:"numeric",minute:"2-digit",hour12:!0}).format(e).replace(/\s/g,"").toLowerCase()}function jr(e){const t=(e??"").trim().split(/\s+/).filter(Boolean);return(t[t.length-1]??"").slice(0,3).toUpperCase()}function Nr(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}function Gr(e){const t=e?.trim();if(t&&"undefined"!==t&&"null"!==t)return t}function Yr(e,t=!1){const n=Object.entries(e).map(([e,n])=>function(e,t,n){const[o,r]=n?[]:e.split(" vs ").map(Gr),i=t.map(Nr).filter(e=>null!==e),l=i.length>0?new Date(Math.min(...i.map(e=>e.getTime()))):null;return{key:e,title:n||!o?n?e:Gr(t[0]?.league??void 0)??"":[o,r].filter(Boolean).join(" vs "),home:o,away:r,racing:n,date:l,props:t}}(e,n,t)),o=n.filter(e=>null!==e.date).sort((e,t)=>e.date.getTime()-t.date.getTime()),r=n.filter(e=>null===e.date),i=new Map;for(const a of o){const e=a.date.toDateString(),t=i.get(e);t?t.events.push(a):i.set(e,{key:e,label:Ir(a.date),events:[a]})}const l=[...i.values()];return r.length>0&&l.push({key:"undated",label:"",events:r}),l}var Vr={split:{fontSize:13,fontWeight:"400",lineHeight:18},compact:{fontSize:11,fontWeight:"400",lineHeight:15}};function Ur({variant:e,groups:t,racing:n,selections:o,onToggleSelection:r,atMax:i,theme:l,renderTeamLogo:d,componentById:h,disableEventSwipe:u=!1}){const g=l.colors,f=j(l),p=N(l),y=g.borderSubtle??g.border,m=I(l),b=E(l),w=D(l),x=R(l),k=L(l),S=ce(l),{width:C}=(0,c.useWindowDimensions)(),[B,z]=(0,a.useState)(null),[v,F]=(0,a.useState)(new Set),[W,T]=(0,a.useState)(new Set),A=e=>t=>e(e=>{const n=new Set(e);return n.delete(t)||n.add(t),n}),M=A(F),P=A(T),H=(0,a.useMemo)(()=>Yr(t,n),[t,n]),{width:O}=(0,c.useWindowDimensions)(),G=(0,a.useMemo)(()=>Vo(Object.values(t).flat(),o,h),[t,o,h]),Y=e=>i&&!(e.id in o)||G.isCapped(e),V=e=>O<640?null:(0,s.jsx)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:4},children:G.slotsFor(Go(e.props[0])).map(({family:e,label:t,filled:n})=>(0,s.jsx)(c.View,{accessibilityLabel:Ho(e,n),style:[Zr.slotChip,{borderColor:n?m:y,borderStyle:n?"solid":"dashed"}],children:(0,s.jsx)(c.Text,{style:[Zr.slotChipText,{color:n?m:b}],children:t})},e))}),U=(e,t)=>{Y(e)||r(e.id,t)},q=(e,t)=>e?d?.(e,t)??null:null,K=(e,t,n)=>(0,s.jsx)(Te,{theme:l,size:t,stretch:n,disabled:Y(e),value:o[e.id]??null,onYes:()=>U(e,"yes"),onNo:()=>U(e,"no")}),Z=(e,t)=>(0,s.jsxs)(c.View,{style:Zr.question,children:[n?_r(e,d,null):null,(0,s.jsx)(ii,{prop:e,colors:g,componentById:h,textStyle:Vr[t],textColor:w})]}),X=e=>{if(u)return null;const t=e.props.filter(e=>!Y(e));return 0===t.length?null:(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>z(e),accessibilityRole:"button",accessibilityLabel:`Swipe ${t.length} proposition${1===t.length?"":"s"}`,style:[Zr.swipePill,{borderColor:y}],children:[(0,s.jsx)(qr,{color:m}),(0,s.jsx)(c.Text,{style:[Zr.swipeLabel,{color:m}],children:"SWIPE"})]})},Q=(e,t)=>(0,s.jsx)(c.TouchableOpacity,{onPress:()=>M(e.key),accessibilityRole:"button",accessibilityState:{expanded:t},accessibilityLabel:`${t?"Hide":"Show"} ${e.props.length} proposition${1===e.props.length?"":"s"}`,style:[Zr.foldButton,{borderColor:y}],children:(0,s.jsx)(c.View,{style:{transform:[{rotate:t?"0deg":"-90deg"}]},children:(0,s.jsx)(Kr,{color:x})})}),J=e=>{if(!e.home&&!e.away)return(0,s.jsx)(c.Text,{numberOfLines:1,style:[Zr.shortLabel,{color:m}],children:e.title});const t=[e.home,e.away].filter(Boolean).join(" v "),n=W.has(e.key);return(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>P(e.key),accessibilityRole:"button",accessibilityLabel:t,accessibilityState:{selected:n},style:{minWidth:0,maxWidth:"100%",flexDirection:"row",alignItems:"center"},children:[(0,s.jsx)(c.Text,{style:[Zr.shortLabel,{color:m,fontFamily:S}],children:n?e.home:jr(e.home)}),(0,s.jsx)(c.Text,{style:[Zr.vs,{color:b}],children:"v"}),(0,s.jsx)(c.Text,{style:[Zr.shortLabel,{color:m,fontFamily:S}],children:n?e.away:jr(e.away)})]})},$=e=>e.racing||!e.home?(0,s.jsx)(c.Text,{numberOfLines:1,style:[Zr.shortLabel,{color:m,fontFamily:S}],children:e.title}):(0,s.jsxs)(c.View,{style:{maxWidth:"100%",flexDirection:"row",alignItems:"center"},children:[(0,s.jsx)(c.Text,{numberOfLines:1,style:[Zr.shortLabel,{color:m,fontFamily:S}],children:jr(e.home)}),(0,s.jsx)(c.Text,{style:[Zr.vs,{color:b}],children:"v"}),(0,s.jsx)(c.Text,{numberOfLines:1,style:[Zr.shortLabel,{color:m,fontFamily:S}],children:jr(e.away)})]}),_=t=>"compact"===e?(e=>(0,s.jsxs)(c.View,{style:[Zr.compactCard,{borderColor:g.border,backgroundColor:f}],children:[(0,s.jsxs)(c.View,{style:[Zr.compactHeader,{backgroundColor:p}],children:[!e.racing&&q(e.home,18),J(e),!e.racing&&q(e.away,18),e.date&&(0,s.jsx)(c.Text,{style:[Zr.compactTime,{color:b}],children:Er(e.date)}),(0,s.jsx)(c.View,{style:{marginLeft:"auto"},children:X(e)})]}),e.props.map(e=>(0,s.jsxs)(c.View,{style:[Zr.compactRow,{borderTopColor:y,opacity:Y(e)?.45:1}],children:[(0,s.jsx)(c.View,{style:{flex:1,minWidth:0},children:Z(e,"compact")}),K(e,"xs")]},e.id))]},e.key))(t):((e,t)=>{const n=!v.has(e.key),o=`${e.props.length} proposition${1===e.props.length?"":"s"}`;return n?(0,s.jsxs)(c.View,{style:[Zr.splitCard,{borderColor:g.border,backgroundColor:f}],children:[(0,s.jsxs)(c.View,{style:[Zr.splitStub,{borderColor:y,backgroundColor:p}],children:[!e.racing&&(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:2},children:[q(e.home,24),q(e.away,24)]}),$(e),e.date&&(0,s.jsx)(c.Text,{style:[Zr.time,{color:b}],children:Er(e.date)}),X(e)]}),(0,s.jsxs)(c.View,{style:{flex:1,minWidth:0},children:[(0,s.jsxs)(c.View,{style:[Zr.splitCountRow,{borderBottomColor:y}],children:[(0,s.jsx)(c.Text,{numberOfLines:1,style:[Zr.splitTitle,{color:m,fontFamily:S}],children:e.title}),(0,s.jsxs)(c.View,{style:{marginLeft:"auto",flexDirection:"row",alignItems:"center",gap:8},children:[V(e),Q(e,n)]})]}),(0,s.jsx)(c.View,{style:Zr.splitBody,children:e.props.map(e=>(0,s.jsxs)(c.View,{style:[t?{flexDirection:"row",alignItems:"center",gap:10}:{flexDirection:"column",gap:10},{opacity:Y(e)?.45:1}],children:[(0,s.jsx)(c.View,{style:{flex:1,minWidth:0},children:Z(e,"split")}),t?K(e,"xs"):K(e,"sm",!0)]},e.id))})]})]},e.key):(0,s.jsxs)(c.View,{style:[Zr.foldedStrip,{borderColor:g.border,backgroundColor:f}],children:[(0,s.jsxs)(c.View,{style:[Zr.foldedStub,{borderColor:y,backgroundColor:p}],children:[!e.racing&&(0,s.jsxs)(s.Fragment,{children:[q(e.home,16),q(e.away,16)]}),J(e)]}),(0,s.jsx)(c.Text,{style:[Zr.count,Zr.foldedCount,{color:b}],children:o}),(0,s.jsx)(c.View,{style:{marginLeft:"auto",paddingRight:8},children:Q(e,n)})]},e.key)})(t,"split-inline"===e);return(0,s.jsxs)(c.View,{style:{paddingBottom:16},children:[H.map(e=>{return(0,s.jsxs)(c.View,{children:[e.label?(t=e.label,(0,s.jsxs)(c.View,{style:Zr.dayHeader,children:[(0,s.jsx)(c.Text,{style:[Zr.dayLabel,{color:k,fontFamily:S}],children:t}),(0,s.jsx)(c.View,{style:[Zr.rule,{backgroundColor:y}]})]})):null,e.events.map(_)]},e.key);var t}),B&&(0,s.jsx)(Hr,{propositions:B.props.filter(e=>!Y(e)),title:B.title,onClose:()=>z(null)})]})}function qr({color:e}){return(0,s.jsxs)(d.default,{width:15,height:15,viewBox:"0 0 24 24",fill:"none",children:[(0,s.jsx)(d.Rect,{x:3,y:5,width:12,height:16,rx:2,stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)(d.Path,{d:"M8.5 3h7a2 2 0 0 1 2 2v12",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Kr({color:e}){return(0,s.jsx)(d.default,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(d.Path,{d:"m6 9 6 6 6-6",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}var Zr=c.StyleSheet.create({question:{flexDirection:"row",alignItems:"flex-start",gap:8,minWidth:0,flex:1},dayHeader:{flexDirection:"row",alignItems:"center",gap:8,marginTop:16,marginBottom:8},dayLabel:{fontSize:11,fontWeight:"700",letterSpacing:.3},rule:{flex:1,height:1},shortLabel:{fontSize:11.5,fontWeight:"700",lineHeight:15},vs:{fontSize:9,fontWeight:"600",paddingHorizontal:2},swipePill:{flexDirection:"row",height:28,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center",gap:4,paddingHorizontal:4},swipeLabel:{fontSize:9,fontWeight:"700",letterSpacing:.25},foldButton:{width:24,height:24,borderRadius:999,borderWidth:1,alignItems:"center",justifyContent:"center"},count:{fontSize:10,fontWeight:"600"},splitTitle:{fontSize:11,fontWeight:"700",flexShrink:1},slotChip:{borderWidth:1,borderRadius:999,paddingHorizontal:6,paddingVertical:1},slotChipText:{fontSize:8.5,fontWeight:"700",letterSpacing:.25,textTransform:"uppercase"},foldedCount:{fontSize:11,paddingHorizontal:12},time:{fontSize:9.5,fontWeight:"500"},foldedStrip:{flexDirection:"row",alignItems:"center",borderRadius:16,borderWidth:1,overflow:"hidden",marginBottom:8},foldedStub:{flexDirection:"row",alignItems:"center",gap:4,alignSelf:"stretch",borderRightWidth:1,paddingHorizontal:8,paddingVertical:6},splitCard:{flexDirection:"row",alignItems:"stretch",borderRadius:16,borderWidth:1,overflow:"hidden",marginBottom:8},splitStub:{width:80,alignItems:"center",justifyContent:"center",gap:6,borderRightWidth:1,paddingHorizontal:8,paddingVertical:12},splitCountRow:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1},splitBody:{justifyContent:"center",gap:12,paddingHorizontal:12,paddingVertical:10},compactCard:{borderRadius:16,borderWidth:1,overflow:"hidden",marginBottom:8},compactHeader:{flexDirection:"row",alignItems:"center",gap:6,minWidth:0,paddingHorizontal:12,paddingVertical:8},compactTime:{fontSize:9,fontWeight:"500"},compactRow:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:12,paddingVertical:10,borderTopWidth:1}}),Xr={today:"Today",weekend:"This weekend",next7:"Next 7 days"},Qr=["today","weekend","next7"];function Jr(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function $r(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:Jr(n,1)};case"weekend":{const e=n.getDay(),t=Jr(n,0===e?-1:(6-e)%7);return{start:t<n?n:t,end:Jr(t,2)}}case"next7":return{start:n,end:Jr(n,7)}}}(t,n);return o>=r&&o<i}function _r(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 ei=640,ti=12;function ni({theme:e,variant:t,disabled:n,onPress:o,children:r}){const i=e.colors,[l,d]=(0,a.useState)(!1),h="primary"===t?{bg:i.buttonPrimary,bgHover:i.buttonPrimaryHover,fg:i.buttonPrimaryText,border:i.buttonPrimary}:{bg:i.buttonSecondary,bgHover:i.buttonSecondaryHover,fg:i.buttonSecondaryText,border:i.border};return(0,s.jsx)(c.TouchableOpacity,{onPress:o,disabled:n,activeOpacity:.85,...ze(()=>d(!0),()=>d(!1)),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:h.border,backgroundColor:l&&!n?h.bgHover:h.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:(0,s.jsx)(c.Text,{style:{color:h.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:r})})}function oi({matchup:e,renderTeamLogo:t,altText:n,mutedColor:o,size:r="sm"}){const{width:i}=(0,c.useWindowDimensions)(),l=i>=ei,[a,d=""]=e.split(" vs "),h=d.length>0,u="md"===r&&l?16:14;if(!h)return(0,s.jsx)(c.Text,{style:{color:n,fontSize:u,fontWeight:"600"},children:e});const g=e=>(0,s.jsxs)(c.View,{style:ai.teamLogoRowWrap,children:[t?.(e),(0,s.jsx)(c.Text,{style:{color:n,fontSize:u,fontWeight:"600",flexShrink:1},children:e})]}),f=(0,s.jsx)(c.Text,{style:{color:o,fontSize:12,flexShrink:0},children:"vs"});return l?(0,s.jsxs)(c.View,{style:ai.matchupTeamsRow,children:[g(a),f,g(d)]}):(0,s.jsxs)(c.View,{style:ai.matchupTeamsStacked,children:[f,(0,s.jsxs)(c.View,{style:{flexShrink:1,minWidth:0},children:[g(a),g(d)]})]})}function ri({label:e,colors:t,onOpenChange:n}){const o="OR"===e?"If either wins, you win.":"Both must win for Yes.",[r,i]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{n?.(r)},[r,n]),(0,s.jsxs)(c.View,{style:{position:"relative",zIndex:r?9999:0,elevation:r?9999:0},children:[(0,s.jsx)(c.Pressable,{onPress:()=>i(e=>!e),onHoverIn:()=>i(!0),onHoverOut:()=>i(!1),hitSlop:6,accessibilityLabel:o,accessibilityRole:"button",accessibilityState:{expanded:r},children:(0,s.jsx)(c.View,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:6,backgroundColor:B(t.primary,.14),borderWidth:1,borderColor:B(t.primary,.45)},children:(0,s.jsx)(c.Text,{style:{color:t.primary,fontSize:10,fontWeight:"700",lineHeight:10,textTransform:"uppercase",letterSpacing:.25},children:e})})}),r&&(0,s.jsx)(c.View,{style:{position:"absolute",top:"100%",left:0,marginTop:4,minWidth:192,maxWidth:352,paddingHorizontal:10,paddingVertical:6,borderRadius:6,backgroundColor:t.backgroundAlt??"#fff",borderWidth:1,borderColor:t.border??B(t.primary,.3),shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:.12,shadowRadius:4,elevation:9999},children:(0,s.jsx)(c.Text,{style:{color:t.text,fontSize:11,lineHeight:15},children:o})})]})}function ii({prop:e,colors:t,size:n="sm",componentById:o,textStyle:r,textColor:i,renderTeamLogo:l}){const{width:d}=(0,c.useWindowDimensions)(),h=d>=ei,u=at(e,o),g=e.description??e.proposition??"",f=r?.fontSize??("md"===n?h?16:14:h?14:12),p=r?.fontWeight??("md"===n?"500":"400"),y=r?.lineHeight,m=r?.textAlign,b=i??t.text,w=t.textMuted??t.textAltMuted??t.text,[x,k]=(0,a.useState)(!1);if(!u)return(0,s.jsx)(c.Text,{style:{color:b,fontSize:f,fontWeight:p,lineHeight:y,textAlign:m,flex:1},children:g});const{operator:S,legs:C}=u;if(C.some(e=>e.eventLabel)){const e=t.backgroundAlt??"transparent";return(0,s.jsx)(c.View,{style:{flex:1,minWidth:0,flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:4,rowGap:2,...x&&{zIndex:9999,elevation:9999,position:"relative"}},children:C.map((n,o)=>{const r=n.prop?.home_team?.trim(),i=n.prop?.away_team?.trim(),d=l&&(r||i)?(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:2,flexShrink:0,backgroundColor:e,borderWidth:1,borderColor:t.border??"transparent",borderRadius:999,paddingHorizontal:4,paddingVertical:2},children:[r?l(r,16):null,r&&i?(0,s.jsx)(c.Text,{style:{color:w,fontSize:9,fontWeight:"600",textTransform:"uppercase"},children:"vs"}):null,i?l(i,16):null]}):null;return(0,s.jsxs)(a.default.Fragment,{children:[o>0&&(0,s.jsx)(ri,{label:S,colors:t,onOpenChange:k}),d,!d&&n.eventLabel&&(0,s.jsx)(c.Text,{style:{backgroundColor:e,color:w,fontSize:9,fontWeight:"700",textTransform:"uppercase",letterSpacing:.25,paddingHorizontal:3},children:n.eventLabel}),(0,s.jsx)(c.Text,{style:{flexShrink:1,color:b,fontSize:f,fontWeight:p,lineHeight:y,textAlign:m},children:n.text})]},o)})})}return(0,s.jsx)(c.View,{style:{flex:1,minWidth:0,...x&&{zIndex:9999,elevation:9999,position:"relative"}},children:(0,s.jsx)(c.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6,rowGap:4},children:C.map((e,n)=>(0,s.jsxs)(a.default.Fragment,{children:[n>0&&(0,s.jsx)(ri,{label:S,colors:t,onOpenChange:k}),(0,s.jsx)(c.Text,{style:{color:b,fontSize:f,fontWeight:p,lineHeight:y,textAlign:m},children:e.text})]},n))})})}function li({game:e,propositions:t,selections:n,onToggleSelection:o,onNext:r,onBack:i,loading:l,error:h,theme:u,colorScheme:g,hideActions:f=!1,initialSport:p,renderTeamLogo:y,disableQuickPick:m=!1,selectedPropositionCount:b,onPropositionCountChange:w,gameCategory:x,headerExtra:k,variant:S,disableEventSwipe:C}){const z=(0,a.useContext)(yr),v=z?.sportBaseKey,F=z?.compositeComponentById,W=S??z?.selectionVariant,T=C??z?.disableEventSwipe??!1,A=le(u,g),R=A.colors,D=j(A),M=G(A),P=R.matchupHeader??(e.color?B(e.color,.14):N(A)),H=R.textAlt??R.text;ce(A);const O=ae(A);L(A);const{width:I}=(0,c.useWindowDimensions)(),E=I>=ei,V=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(A),U=!!(e.allowed_propositions&&e.allowed_propositions.length>0),{min:q,max:K}=vt(e,b),Z=q,X=K,[Q,J]=a.default.useState(()=>new Set(Object.keys(Ut(t,x,v))));a.default.useEffect(()=>{const e=Ut(t,x,v),n=Object.keys(e);n.length>0&&J(e=>n.every(t=>e.has(t))?e:new Set(n))},[t]);const $=Z>0&&Z===X,_=Z||1,ee=X||t.length,te=X||Z||t.length,[ne,oe]=a.default.useState(te),re=Object.keys(n).length,ie=X>0&&re>=X,se=U?null!=b&&re===b:zt(re,e.min_propositions,e.max_propositions);e.min_bet,X>0?Math.max(2,2*X):Math.max(2,2*re);const de=a.default.useRef(re),he=U?null!=b&&re===b:X>0&&re===X;(0,a.useEffect)(()=>{he&&re>de.current&&r?.(),de.current=re},[re,he]);const ue=(0,a.useMemo)(()=>Vo(t,n,F),[t,n,F]),ge=(0,a.useMemo)(()=>t.some(e=>null!==jo(e)),[t]),fe=(e,r)=>{if(e in n)return void o(e,r);if(ie)return;const i=t.find(t=>t.id===e);i&&ue.isCapped(i)||o(e,r)},pe=e=>ge&&0!==e.length?(0,s.jsx)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:4},children:ue.slotsFor(Go(e[0])).map(({family:e,label:t,filled:n})=>(0,s.jsx)(c.View,{accessibilityLabel:Ho(e,n),style:[ai.slotChip,{borderColor:n?H:R.border,borderStyle:n?"solid":"dashed"}],children:(0,s.jsx)(c.Text,{style:[ai.slotChipText,{color:n?H:R.textMuted}],children:t})},e))}):null;(0,a.useEffect)(()=>{const e=X||t.length,n=Z||1;oe(t=>$?X:Math.max(n,Math.min(t,e)))},[t.length,Z,X,$]);const ye=(0,a.useMemo)(()=>new Date,[]),me=(0,a.useMemo)(()=>function(e,t){const n=e.filter(e=>null!=function(e){if(!e.commence_time)return null;const t=new Date(e.commence_time);return Number.isNaN(t.getTime())?null:t}(e));if(n.length<2)return[];const o=[];for(const r of Qr){let e=0,i=0;for(const o of n)if($r(o.commence_time,r,t)?e+=1:i+=1,e>0&&i>0)break;e>0&&i>0&&o.push({id:r,label:Xr[r]})}return o}(t,ye),[t,ye]),[be,we]=(0,a.useState)(null);(0,a.useEffect)(()=>{be&&!me.some(e=>e.id===be)&&we(null)},[me,be]);const xe=(0,a.useMemo)(()=>function(e,t,n){return t?e.filter(e=>$r(e.commence_time,t,n)):e.slice()}(t,be,ye),[t,be,ye]),ke=(0,a.useMemo)(()=>Wt(x,xe,v),[x,xe,v]),Se=(0,a.useMemo)(()=>Ut(xe,x,v),[xe,x,v]),Ce=(0,a.useMemo)(()=>{const e=new Set;for(const t of xe){const n=tt(t);n&&e.add(n)}return Array.from(e).sort((e,t)=>e.localeCompare(t))},[xe]),[Be,ze]=(0,a.useState)(null),[ve,Fe]=(0,a.useState)(!1);(0,a.useEffect)(()=>{Be&&!Ce.includes(Be)&&ze(null)},[Ce,Be]);const We=(0,a.useMemo)(()=>{if(!Be)return Se;const e={};for(const[t,n]of Object.entries(Se)){const o=n.filter(e=>tt(e)===Be);o.length>0&&(e[t]=o)}return e},[Se,Be]),Ae=Object.keys(We);if(l)return(0,s.jsx)(hn,{colors:Y(A)});if(h)return(0,s.jsx)(c.View,{style:ai.centered,children:(0,s.jsx)(c.Text,{style:{color:R.error},children:h})});const Le=!m&&t.length>0,Re=me.length>0||Ce.length>1,De=(null!=be?1:0)+(null!=Be?1:0);return(0,s.jsxs)(c.View,{style:{gap:E?24:16,paddingBottom:64},children:[Re||k?(0,s.jsxs)(c.View,{style:ai.filterHeaderRow,children:[(0,s.jsx)(c.View,{style:ai.filterToggleRow,children:Re?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>Fe(e=>!e),activeOpacity:.85,accessibilityRole:"button",style:[ai.filterToggle,{borderColor:De>0?R.primary:R.border,backgroundColor:De>0?R.primary:R.background??"#fff"}],children:[(0,s.jsx)(qe,{size:13,color:De>0?R.primaryText:R.text}),(0,s.jsx)(c.Text,{style:{fontSize:11,fontWeight:"700",color:De>0?R.primaryText:R.text},children:"Filter"}),De>0&&(0,s.jsxs)(c.Text,{style:{fontSize:11,fontWeight:"700",color:R.primaryText},children:["· ",De]}),(0,s.jsx)(c.View,{style:{transform:[{rotate:ve?"-90deg":"90deg"}],opacity:.75},children:(0,s.jsx)(Ve,{size:13,color:De>0?R.primaryText:R.text})})]}),De>0&&(0,s.jsx)(c.TouchableOpacity,{onPress:()=>{we(null),ze(null)},activeOpacity:.85,accessibilityRole:"button",children:(0,s.jsx)(c.Text,{style:{fontSize:11,fontWeight:"600",color:R.textMuted},children:"Clear"})})]}):null}),k]}):null,ve&&Re&&(0,s.jsxs)(c.View,{style:{gap:10},children:[me.length>0&&(0,s.jsx)(_e,{label:"When",options:[{value:null,label:"All dates"},...me.map(e=>({value:e.id,label:e.label}))],value:be,onChange:e=>we(e),theme:A,bodyFont:O}),Ce.length>1&&(0,s.jsx)(_e,{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:A,bodyFont:O})]}),Le&&(0,s.jsx)(c.View,{style:[ai.topBar,{justifyContent:"flex-end"}],children:(0,s.jsxs)(c.View,{style:[ai.quickPickRow,{gap:E?8:6}],children:[!$&&(0,s.jsxs)(c.View,{style:ai.quickPickCountRow,children:[(0,s.jsx)(c.TextInput,{keyboardType:"number-pad",value:String(ne),onChangeText:e=>{const t=parseInt(e,10);isNaN(t)||oe(Math.max(_,Math.min(ee,t)))},style:[ai.quickPickInput,{width:E?56:40,paddingHorizontal:E?8:4,paddingVertical:E?6:4,fontSize:E?14:12,color:H,backgroundColor:R.backgroundAlt,borderColor:R.border}]}),(0,s.jsxs)(c.Text,{style:{color:R.textMuted,fontSize:12},children:["/ ",t.length]})]}),(0,s.jsx)(wr,{onPress:()=>{const e=$?X:ne;for(const t of Object.keys(n)){const e=Number(t);o(e,n[e])}const{yesPicks:i,noPicks:l}=Zt(t,e);for(const t of i)o(t.id,"yes");for(const t of l)o(t.id,"no");r?.()}})]})}),t.length>0&&W?(0,s.jsx)(Ur,{variant:W,groups:We,racing:ke,selections:n,onToggleSelection:fe,atMax:ie,theme:A,renderTeamLogo:y,componentById:F,disableEventSwipe:T}):null,t.length>0&&!W&&(0,s.jsx)(c.View,{style:ai.matchupList,children:Ae.every(e=>1===We[e].length)?(0,s.jsx)(c.View,{style:[ai.matchupCard,{borderColor:R.border,backgroundColor:D},V],children:Ae.map((e,t)=>{const o=We[e][0],r="yes"===n[o.id],i="no"===n[o.id],l=o.id in n,a=ie&&!l||ue.isCapped(o),d=0===t,h=t===Ae.length-1;return(0,s.jsxs)(c.View,{style:{borderTopColor:R.border,borderTopWidth:d?0:1,opacity:a?.45:1},children:[(0,s.jsxs)(c.View,{style:{paddingHorizontal:16,paddingVertical:E?12:10,backgroundColor:P,borderTopLeftRadius:d?ti:0,borderTopRightRadius:d?ti:0},children:[(0,s.jsx)(c.View,{style:{minWidth:0},children:(0,s.jsx)(oi,{matchup:e,renderTeamLogo:y,altText:H,mutedColor:R.textAltMuted??R.textMuted??H})}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:8,marginTop:2,minWidth:0},children:[o.commence_time&&(0,s.jsx)(c.Text,{style:{color:R.textAltMuted??R.textMuted,fontSize:11,opacity:.7},children:yt(o.commence_time)}),pe([o])]})]}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingHorizontal:16,paddingVertical:E?14:12,backgroundColor:M,borderTopWidth:1,borderTopColor:R.border,borderBottomLeftRadius:h?ti:0,borderBottomRightRadius:h?ti:0},children:[(0,s.jsxs)(c.View,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[_r(o,y,e),(0,s.jsx)(ii,{prop:o,colors:R,componentById:F})]}),(0,s.jsx)(Te,{theme:A,size:"sm",value:r?"yes":i?"no":null,onYes:()=>fe(o.id,"yes"),onNo:()=>fe(o.id,"no"),disabled:a})]})]},o.id)})}):Ae.map(e=>{const t=We[e],o=Q.has(e),r=t.filter(e=>e.id in n).length,i=t[0]?.commence_time;return(0,s.jsxs)(c.View,{style:[ai.matchupCard,{borderColor:R.border,backgroundColor:D},V],children:[(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>{return t=e,J(e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n});var t},style:[ai.matchupHeader,{backgroundColor:P,borderTopLeftRadius:ti,borderTopRightRadius:ti,borderBottomLeftRadius:o?0:ti,borderBottomRightRadius:o?0:ti}],children:[(0,s.jsxs)(c.View,{style:ai.matchupHeaderLeft,children:[(0,s.jsx)(d.default,{width:18,height:18,viewBox:"0 0 24 24",style:{flexShrink:0,transform:[{rotate:o?"180deg":"0deg"}]},children:(0,s.jsx)(d.Path,{d:"m6 9 6 6 6-6",stroke:R.textAltMuted??R.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),(0,s.jsxs)(c.View,{style:ai.matchupTeamWrapper,children:[(0,s.jsx)(oi,{matchup:e,renderTeamLogo:y,altText:H,mutedColor:R.textAltMuted??R.textMuted??H,size:"md"}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:8,marginTop:2,minWidth:0},children:[i&&(0,s.jsx)(c.Text,{style:{color:R.textAltMuted??R.textMuted,fontSize:12,opacity:.7,textAlign:"left"},children:yt(i)}),pe(t)]})]})]}),(0,s.jsx)(c.View,{style:ai.matchupHeaderRight,children:r>0&&(0,s.jsx)(c.View,{style:[ai.answeredBadge,{backgroundColor:R.successBg}],children:(0,s.jsxs)(c.Text,{style:{color:R.successText,fontSize:12,fontWeight:"500"},children:[r,"/",t.length]})})})]}),o&&(0,s.jsx)(c.View,{children:(0,s.jsx)(s.Fragment,{children:t.map((o,r)=>{const i="yes"===n[o.id],l="no"===n[o.id],a=o.id in n,d=ie&&!a||ue.isCapped(o),h=r===t.length-1;return(0,s.jsx)(c.View,{style:{paddingHorizontal:16,paddingVertical:E?14:12,backgroundColor:M,borderTopColor:R.border,borderTopWidth:0===r?0:1,opacity:d?.45:1,borderBottomLeftRadius:h?ti:0,borderBottomRightRadius:h?ti:0},children:(0,s.jsxs)(c.View,{style:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-start",columnGap:E?16:8,rowGap:E?16:8},children:[(0,s.jsxs)(c.View,{style:{flex:1,minWidth:128,flexDirection:"row",alignItems:"flex-start",gap:8},children:[_r(o,y,e),(0,s.jsx)(ii,{prop:o,colors:R,size:"md",componentById:F})]}),(0,s.jsx)(Te,{theme:A,size:"sm",value:i?"yes":l?"no":null,onYes:()=>fe(o.id,"yes"),onNo:()=>fe(o.id,"no"),disabled:d})]})},o.id)})})})]},e)})}),0===t.length&&(0,s.jsx)(c.View,{style:ai.centered,children:(0,s.jsx)(c.Text,{style:{color:R.textMuted},children:"No propositions available at this time"})}),!f&&(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:R.border,backgroundColor:D,marginHorizontal:E?-24:-16,paddingHorizontal:E?24:16,paddingVertical:E?16:12},children:[(0,s.jsx)(ni,{theme:A,variant:"secondary",onPress:i,children:"Back"}),(0,s.jsx)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:E?12:8},children:(0,s.jsx)(ni,{theme:A,variant:"primary",disabled:!se,onPress:r,children:"Wager"})})]})]})}var ai=c.StyleSheet.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:ti,borderWidth:1,overflow:"visible"},matchupHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:16,paddingVertical:14},matchupHeaderLeft:{flexDirection:"row",alignItems:"center",gap:8,flex:1,minWidth:0},matchupTeamWrapper:{flex:1,minWidth:0},matchupTeamsRow:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6,rowGap:4},matchupTeamsStacked:{flexDirection:"row",alignItems:"center",gap:6,alignSelf:"stretch"},teamLogoRowWrap:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:1,minWidth:0},matchupHeaderRight:{flexDirection:"row",alignItems:"center",gap:8,marginLeft:8,flexShrink:0},answeredBadge:{paddingHorizontal:8,paddingVertical:2,borderRadius:999},slotChip:{borderWidth:1,borderRadius:999,paddingHorizontal:6,paddingVertical:1},slotChipText:{fontSize:9,fontWeight:"700",letterSpacing:.25,textTransform:"uppercase"}});function ci({theme:e,variant:t,disabled:n,onPress:o,children:r}){const i=e.colors,[l,d]=(0,a.useState)(!1),h="primary"===t?{bg:i.buttonPrimary,bgHover:i.buttonPrimaryHover,fg:i.buttonPrimaryText,border:i.buttonPrimary}:{bg:i.buttonSecondary,bgHover:i.buttonSecondaryHover,fg:i.buttonSecondaryText,border:i.border};return(0,s.jsx)(c.TouchableOpacity,{onPress:o,disabled:n,activeOpacity:.85,...ze(()=>d(!0),()=>d(!1)),style:{minHeight:44,paddingHorizontal:16,borderRadius:12,borderWidth:1,borderColor:h.border,backgroundColor:l&&!n?h.bgHover:h.bg,opacity:n?.5:1,alignItems:"center",justifyContent:"center",flexDirection:"row"},children:(0,s.jsx)(c.Text,{style:{color:h.fg,fontSize:14,fontWeight:"500",lineHeight:17},children:r})})}var si=c.StyleSheet.create({section:{borderRadius:12,borderWidth:1},emptyState:{alignItems:"center",paddingVertical:32},selectionInfo:{flex:1,minWidth:0},teamsRow:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6,rowGap:2},teamLogoRow:{flexDirection:"row",alignItems:"center",gap:4},teamText:{fontWeight:"600"},vsSmall:{fontSize:12,fontWeight:"400"},propDesc:{fontSize:14,marginTop:4},propTime:{fontSize:12,opacity:.7,marginTop:2},rightControls:{flexDirection:"row",alignItems:"center",gap:8},removeButton:{width:20,height:20,borderRadius:10,alignItems:"center",justifyContent:"center"},summaryRow:{flexDirection:"row",justifyContent:"space-between"}});function di({game:e,propositions:t,selections:n,onToggleSelection:o,onRemoveSelection:r,onSubmit:i,onBack:l,loading:h,error:u,expectedCorrect:g,onExpectedCorrectChange:f,betAmount:p,onBetAmountChange:y,theme:m,colorScheme:b,hideActions:w=!1,winningCounts:x,payouts:k,renderTeamLogo:S,componentById:C,showCustomAmount:B=!1,betAmountLocked:z=!1,betAmountLockedNote:v,canSubmit:F,authenticated:W=!0,userBalance:T,onRecharge:A,boostBanner:M}){const P=le(m,b),H=P.colors,O=j(P),I=ce(P),E=L(P),Y=R(P),V=D(P),U=H.textAlt??H.text,{width:q}=(0,c.useWindowDimensions)(),K=q>=640,Z="dark"===P.colorScheme,X=t.length,Q=e.min_bet??0,J=Math.max(Q,.01),$=e.max_bet??null,_=[5,10,20,50,100,200,500].filter(e=>e>=J&&(null===$||e<=$)).slice(0,4),ee={};for(let a=0;a<=X;a++)ee[a]=p*a;const te=k??ee,ne=te[g]??0,oe=Ft(e),re=oe.enabled&&g===X,[ie,ae]=a.default.useState(null),[se,de]=a.default.useState(!0),[he,ue]=a.default.useState(!1),ge=h||p<J||!1===F,fe=null!=T&&p>T,pe=w&&!!i&&W,ye=n?t.filter(e=>e.id in n):t,me=qt(ye),be=H.matchupHeader??N(P),we=G(P),xe=Object.entries(te).map(([e,t])=>({correct:Number(e),payout:t})).filter(e=>e.correct>0&&e.payout>0).sort((e,t)=>e.correct-t.correct),ke=1===xe.length?xe[0].correct:null;a.default.useEffect(()=>{null!==ke&&g!==ke&&f(ke)},[ke]);const Se={shadowColor:"#000",shadowOpacity:Z?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2};return(0,s.jsxs)(c.View,{style:{gap:K?16:12,paddingBottom:64},children:[M,(0,s.jsxs)(c.View,{style:[hi.section,Se,{padding:K?20:16,backgroundColor:O,borderColor:H.border}],children:[(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>de(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:se},accessibilityLabel:se?"Hide selections":"Show selections",testID:"entry-submission-selections-toggle",style:{flexDirection:"row",alignItems:"center",gap:8,flex:1},activeOpacity:.7,children:[(0,s.jsx)(c.View,{style:{transform:[{rotate:se?"180deg":"0deg"}]},children:(0,s.jsx)(d.default,{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(d.Path,{d:"m6 9 6 6 6-6",stroke:H.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,s.jsx)(c.Text,{style:{fontSize:K?16:14,fontWeight:"600",color:E,fontFamily:I},children:se?"Hide Selections":"Review Selections"})]}),(0,s.jsx)(c.View,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:999,flexShrink:0,backgroundColor:`${H.primary}15`},children:(0,s.jsxs)(c.Text,{style:{color:H.primary,fontSize:12,fontWeight:"600"},children:[ye.length," pick",1!==ye.length?"s":""]})})]}),!se&&(0,s.jsx)(c.Text,{style:{color:H.textMuted,fontSize:12,marginTop:8},children:"Tap to show your picks"}),se&&(0,s.jsx)(c.View,{style:{gap:8,marginTop:12},children:me.map(e=>(0,s.jsxs)(c.View,{style:{borderRadius:8,overflow:"hidden",borderWidth:1,borderColor:H.border},children:[e.key?(0,s.jsxs)(c.View,{style:{paddingHorizontal:12,paddingVertical:8,backgroundColor:be},children:[(0,s.jsx)(oi,{matchup:e.key,renderTeamLogo:S,altText:U,mutedColor:H.textAltMuted??H.textMuted??U}),e.props[0].commence_time?(0,s.jsx)(c.Text,{style:{color:H.textAltMuted??H.textMuted,fontSize:11,marginTop:2,opacity:.7},children:yt(e.props[0].commence_time)}):null]}):null,e.props.map((t,i)=>{const l=n?.[t.id],a="yes"===l,h="no"===l,u=!!o;return(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8,paddingVertical:8,paddingHorizontal:12,backgroundColor:we,borderTopWidth:e.key||i>0?1:0,borderTopColor:H.border},children:[(0,s.jsxs)(c.View,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[_r(t,S,e.key),(0,s.jsx)(ii,{prop:t,colors:H,componentById:C??void 0,textStyle:{fontSize:K?14:12,fontWeight:"400"},textColor:U})]}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:0},children:[u?(0,s.jsx)(Te,{theme:P,size:"xs",value:a?"yes":h?"no":null,onYes:()=>o(t.id,"yes"),onNo:()=>o(t.id,"no")}):l?(0,s.jsx)(Ae,{theme:P,size:"sm",value:"yes"===l?"yes":"no",style:{flexShrink:0}}):null,se&&r&&(0,s.jsx)(c.Pressable,{onPress:()=>{l&&o?.(t.id,l),r(t.id)},...ze(()=>ae(t.id),()=>ae(null)),accessibilityRole:"button",accessibilityLabel:"Remove selection",style:{flexShrink:0,width:44,height:44,alignItems:"center",justifyContent:"center",backgroundColor:"transparent"},children:(0,s.jsx)(c.View,{style:{width:26,height:26,borderRadius:13,alignItems:"center",justifyContent:"center",backgroundColor:ie===t.id?H.error:"transparent"},children:(0,s.jsx)(d.default,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(d.Path,{d:"M6 18L18 6M6 6l12 12",stroke:ie===t.id?"#fff":H.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})})]})]},t.id)})]},e.key??`solo-${e.props[0].id}`))})]}),pe&&(0,s.jsxs)(c.View,{testID:"entry-submission-scroll-hint",style:{flexDirection:"row",alignItems:"center",gap:6,marginTop:-4},children:[(0,s.jsx)(c.Text,{style:{color:H.textMuted,fontSize:K?14:12,fontWeight:"500"},children:"↓"}),(0,s.jsx)(c.Text,{style:{color:H.textMuted,fontSize:K?14:12,fontWeight:"500",flex:1},children:"Scroll down to set your bet and place your entry"})]}),W?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.View,{style:[hi.section,Se,{padding:K?24:16,backgroundColor:O,borderColor:H.border}],children:[(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:K?16:12},children:[(0,s.jsx)(c.Text,{style:{fontSize:K?18:16,fontWeight:"600",color:E,fontFamily:I},children:"How much are you betting?"}),null!=T&&(0,s.jsxs)(c.Text,{style:{fontSize:12,fontWeight:"600",color:H.textMuted},children:["Balance: ",(0,s.jsx)(c.Text,{style:{color:fe?H.error:H.success},children:pt(T)})]})]}),fe&&(0,s.jsxs)(c.View,{style:{marginBottom:12,paddingHorizontal:12,paddingVertical:8,borderRadius:8,backgroundColor:H.errorBg??`${H.error}15`,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,s.jsxs)(c.Text,{style:{flex:1,fontSize:12,fontWeight:"500",color:H.errorText??H.error},children:["Insufficient balance. Your bet of ",pt(p)," exceeds your available ",pt(T),"."]}),A&&(0,s.jsx)(c.TouchableOpacity,{onPress:A,style:{paddingHorizontal:12,paddingVertical:4,borderRadius:6,backgroundColor:H.error},children:(0,s.jsx)(c.Text,{style:{fontSize:12,fontWeight:"600",color:H.buttonPrimaryText??"#fff"},children:"Add funds"})})]}),z?(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:8,paddingHorizontal:12,paddingVertical:10,backgroundColor:H.backgroundAlt,borderWidth:1,borderColor:H.border},children:[(0,s.jsx)(c.Text,{style:{fontSize:12,color:H.textMuted,flex:1},children:v??"Stake is set for this ticket."}),(0,s.jsx)(c.Text,{style:{fontSize:18,fontWeight:"700",color:E,fontFamily:I},children:pt(p)})]}):(0,s.jsxs)(c.View,{style:{gap:16},children:[B&&(0,s.jsxs)(c.View,{children:[(0,s.jsx)(c.Text,{style:{fontSize:K?14:12,fontWeight:"600",color:Y,marginBottom:8},children:"Entry amount"}),(0,s.jsxs)(c.View,{style:{position:"relative"},children:[(0,s.jsx)(c.View,{style:{position:"absolute",left:12,top:0,bottom:0,justifyContent:"center",zIndex:1},pointerEvents:"none",children:(0,s.jsx)(c.Text,{style:{color:H.textMuted},children:"$"})}),(0,s.jsx)(c.TextInput,{keyboardType:"decimal-pad",placeholder:"Enter amount",accessibilityLabel:"Entry amount",value:p?String(p):"",onChangeText:e=>{if(""===e)return void y(0);const t=Number(e);if(!Number.isFinite(t))return;const n=Math.max(0,Math.round(100*t)/100);y(null!==$?Math.min(n,$):n)},onFocus:()=>ue(!0),onBlur:()=>ue(!1),style:{paddingLeft:32,paddingRight:16,paddingVertical:12,borderWidth:1,borderRadius:8,fontSize:18,fontWeight:"600",borderColor:he?H.borderFocus??H.primary:H.border,color:U,backgroundColor:H.backgroundAlt},placeholderTextColor:H.textMuted})]}),(0,s.jsxs)(c.Text,{style:{fontSize:12,marginTop:6,color:H.textMuted},children:["Minimum bet: ",pt(J),null!==$?` · Maximum: ${pt($)}`:""]}),p>0&&p<J&&(0,s.jsxs)(c.Text,{style:{fontSize:12,marginTop:4,color:H.error},children:["Bet amount must be at least ",pt(J)]})]}),(0,s.jsxs)(c.View,{children:[(B||p>0)&&(0,s.jsxs)(c.View,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[B?(0,s.jsx)(c.Text,{style:{fontSize:K?14:12,fontWeight:"600",color:Y},children:"Add to bet"}):(0,s.jsx)(c.View,{}),p>0&&(0,s.jsx)(c.TouchableOpacity,{onPress:()=>y(0),style:{paddingHorizontal:10,paddingVertical:4,borderRadius:6,backgroundColor:H.backgroundAlt,borderWidth:1.5,borderColor:H.border},children:(0,s.jsx)(c.Text,{style:{color:H.textMuted,fontSize:12,fontWeight:"600"},children:"Clear bet"})})]}),(0,s.jsx)(c.View,{style:{flexDirection:"row",gap:8},children:_.map(e=>{const t=null!==$&&p>=$;return(0,s.jsx)(c.TouchableOpacity,{onPress:()=>{const t=p+e;y(null!==$?Math.min(t,$):t)},disabled:t,style:{flex:1,minWidth:0,paddingHorizontal:12,paddingVertical:10,borderRadius:8,backgroundColor:"transparent",borderWidth:1,borderColor:H.border,opacity:t?.5:1,alignItems:"center",justifyContent:"center"},children:(0,s.jsxs)(c.Text,{style:{color:U,fontSize:14,fontWeight:"600"},children:["+",pt(e)]})},e)})})]})]})]}),(0,s.jsx)(c.View,{style:[hi.section,Se,{padding:K?20:16,backgroundColor:O,borderColor:H.border}],children:(()=>{const e=w&&!!i,t=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.View,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[(0,s.jsx)(c.Text,{style:{color:Y,fontSize:14},children:"Bet"}),(0,s.jsx)(c.Text,{style:{color:V,fontSize:14,fontWeight:"600"},children:pt(p)})]}),ne>0&&(0,s.jsxs)(c.View,{style:{flexDirection:"row",flexWrap:"wrap",columnGap:8,justifyContent:"space-between",alignItems:"center",paddingTop:8,borderTopWidth:1,borderTopColor:H.border},children:[(0,s.jsx)(c.Text,{style:{color:Y,fontSize:14,fontWeight:"600"},children:"Potential Payout"}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center"},children:[(0,s.jsx)(c.Text,{style:{color:E,fontSize:18,fontWeight:"700"},children:pt(ne)}),re&&(0,s.jsx)(c.Text,{style:{color:H.warning,fontSize:12,marginLeft:4},children:"+ Jackpot"})]})]}),oe.enabled&&(0,s.jsxs)(c.View,{style:[hi.jackpotBanner,{backgroundColor:`${H.warning}08`,borderColor:`${H.warning}25`}],children:[(0,s.jsxs)(c.Text,{style:{color:H.warning,fontSize:12,fontWeight:"600"},children:["★ ",oe.progressive?"Progressive Jackpot":"Jackpot"]}),(0,s.jsx)(c.Text,{style:{color:H.warning,fontSize:14,fontWeight:"700"},children:oe.progressive?oe.amount>0?pt(oe.amount):oe.limit>0?`Up to ${pt(oe.limit)}`:"Progressive":pt(oe.amount)})]})]});return e?(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"stretch",gap:16},children:[(0,s.jsx)(c.View,{style:{flex:1,minWidth:0},children:t}),(0,s.jsx)(c.View,{style:{width:1,alignSelf:"stretch",backgroundColor:H.border}}),(0,s.jsx)(c.TouchableOpacity,{onPress:i,disabled:ge,accessibilityState:{disabled:ge,busy:!!h},activeOpacity:.7,style:{flexShrink:0,paddingVertical:12,paddingHorizontal:20,borderRadius:8,backgroundColor:H.buttonPrimary,opacity:ge?.5:1,alignItems:"center",justifyContent:"center",minWidth:120},children:h?(0,s.jsxs)(c.View,{style:{alignItems:"center",gap:8},children:[(0,s.jsx)(c.ActivityIndicator,{size:"small",color:H.buttonPrimaryText}),(0,s.jsx)(c.Text,{style:{color:H.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Placing Entry…"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.Text,{style:{color:H.buttonPrimaryText,fontSize:16,fontWeight:"700"},children:"Place Entry"}),(0,s.jsx)(c.Text,{style:{color:H.buttonPrimaryText,fontSize:12,opacity:.9,marginTop:2},children:pt(p)})]})})]}):t})()})]}):(0,s.jsxs)(c.View,{style:[hi.section,Se,{padding:K?24:16,backgroundColor:O,borderColor:H.border}],children:[(0,s.jsx)(c.Text,{style:{fontSize:K?18:16,fontWeight:"600",color:E,fontFamily:I},children:"Log in to place this entry"}),(0,s.jsx)(c.Text,{style:{fontSize:K?14:12,color:H.textMuted,marginTop:4,marginBottom:16},children:"Your picks are held. Log in to set your bet and confirm."}),(0,s.jsx)(c.TouchableOpacity,{onPress:i,style:{paddingVertical:12,paddingHorizontal:24,borderRadius:8,backgroundColor:H.buttonPrimary,alignItems:"center"},children:(0,s.jsx)(c.Text,{style:{color:H.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Log in"})})]}),u&&(0,s.jsx)(c.View,{style:[hi.errorBanner,{backgroundColor:H.errorBg,borderColor:H.error}],children:(0,s.jsx)(c.Text,{style:{color:H.errorText,fontSize:14},children:u})}),!w&&(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:H.border,backgroundColor:H.background,marginHorizontal:K?-24:-16,paddingHorizontal:K?24:16,paddingVertical:K?16:12},children:[(0,s.jsx)(ve,{theme:P,variant:"secondary",disabled:h,onPress:l,children:"Back"}),(0,s.jsx)(c.TouchableOpacity,{onPress:i,disabled:ge,accessibilityState:{disabled:ge,busy:!!h},activeOpacity:.7,style:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,paddingHorizontal:24,paddingVertical:10,borderRadius:8,backgroundColor:H.buttonPrimary,opacity:ge?.5:1},children:h?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.ActivityIndicator,{size:"small",color:H.buttonPrimaryText}),(0,s.jsx)(c.Text,{style:{color:H.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:"Placing Entry…"})]}):(0,s.jsx)(c.Text,{style:{color:H.buttonPrimaryText,fontSize:14,fontWeight:"600"},children:`Place Entry (${pt(p)})`})})]})]})}var hi=c.StyleSheet.create({section:{borderRadius:12,borderWidth:1},jackpotBanner:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingVertical:6,paddingHorizontal:8,borderRadius:4,borderWidth:1,marginTop:8},errorBanner:{padding:12,borderRadius:8,borderWidth:1}}),ui="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 gi({index:e,size:t,wide:n,isWinning:o,isJackpot:r,isSelected:i,bgColor:l,borderFallback:h,warning:u,primary:g,textMuted:f,payout:p,onPress:y,accessibilityLabel:m}){const[b,w]=(0,a.useState)(!1),x=!!y,k=o||r,S=x&&b?1.12:k?1.1:1;return(0,s.jsxs)(c.TouchableOpacity,{onPress:y,disabled:!x,activeOpacity:.7,accessibilityRole:"button",accessibilityLabel:m,accessibilityState:{disabled:!x,selected:i},...ze(()=>w(!0),()=>w(!1)),style:[fi.circle,{width:t,height:t,borderRadius:t/2,backgroundColor:l,borderColor:r?u:o?l:h,zIndex:i?10:r?6:o?5:1,transform:[{scale:S}]},k&&fi.circleWinning,x&&b&&fi.circleHovered],children:[r&&(0,s.jsx)(c.View,{pointerEvents:"none",style:{position:"absolute",top:-3,right:-3,bottom:-3,left:-3,borderRadius:t/2+3,borderWidth:2,borderColor:`${u}80`}}),i&&(0,s.jsx)(c.View,{pointerEvents:"none",style:{position:"absolute",top:-6,right:-6,bottom:-6,left:-6,borderRadius:t/2+6,borderWidth:3,borderColor:g}}),r&&(0,s.jsx)(c.View,{pointerEvents:"none",style:{position:"absolute",top:-6,right:-6},children:(0,s.jsx)(d.default,{width:14,height:14,viewBox:"0 0 24 24",children:(0,s.jsx)(d.Path,{d:ui,fill:u,stroke:u,strokeWidth:1})})}),(0,s.jsx)(c.Text,{style:{fontSize:n?16:14,lineHeight:n?16:14,fontWeight:"600",color:o||r?"#ffffff":f},children:e}),p>0&&(0,s.jsx)(c.Text,{style:{fontSize:n?8:7,lineHeight:n?8:7,fontWeight:"400",color:o||r?"#ffffff":f},children:pt(p)})]})}var fi=c.StyleSheet.create({container:{gap:16},title:{fontSize:14,fontWeight:"600",textAlign:"center"},jackpotBanner:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,paddingVertical:10,paddingHorizontal:16,borderRadius:8,borderWidth:1,overflow:"hidden"},jackpotText:{fontSize:14,fontWeight:"600",textAlign:"center",flexShrink:1},circleGrid:{flexDirection:"row",flexWrap:"wrap",justifyContent:"center"},circle:{borderWidth:2,alignItems:"center",justifyContent:"center"},circleWinning:{elevation:4,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:.25,shadowRadius:4},circleHovered:{elevation:6,shadowColor:"#000",shadowOffset:{width:0,height:4},shadowOpacity:.3,shadowRadius:8},expectedText:{fontSize:12,textAlign:"center"},expectedBold:{fontWeight:"600"}});function pi({iconUrl:e,gameName:t,chipColor:n,textColor:o,iconColor:r,accentColor:i,brandColor:l,height:a=56,showTrademark:d=!0,compact:h=!1,onPress:u}){const g=n??l??"#0F4C5C",f=o??g,p=.85*a,y=1.8*p,m=p/2,b='Manrope, Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif',w=a,x=a,k=y-.18*p*2,S=p-.05*p*2,C=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.Text,{accessibilityLabel:"YESNO",style:{fontFamily:b,fontSize:w,lineHeight:1.15*w,letterSpacing:-1,color:f,includeFontPadding:!1},children:[(0,s.jsx)(c.Text,{style:{fontWeight:"900"},children:"YES"}),(0,s.jsx)(c.Text,{style:{fontWeight:"300"},children:"NO"})]}),(0,s.jsx)(c.View,{accessible:!0,accessibilityRole:"image",accessibilityLabel:t,style:{width:y,height:p,borderRadius:m,backgroundColor:g,alignItems:"center",justifyContent:"center",flexShrink:0,transform:[{translateY:.06*-a}]},children:(0,s.jsx)($t,{iconUrl:e,width:k,height:S,iconColor:r,accentColor:i})}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"flex-start",flexShrink:1,minWidth:0},children:[(0,s.jsx)(c.Text,{style:{fontFamily:b,fontSize:x,lineHeight:1.15*x,fontWeight:"500",color:f,includeFontPadding:!1,flexShrink:1},children:t}),d&&(0,s.jsx)(c.Text,{style:{fontFamily:b,fontSize:.3*x,lineHeight:.3*x,fontWeight:"600",color:f,marginLeft:.06*x,includeFontPadding:!1},children:"TM"})]})]});return u?(0,s.jsx)(c.Pressable,{onPress:u,accessibilityRole:"button",accessibilityLabel:`Play ${t}`,testID:"brand-logo-play",style:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:.2*a,maxWidth:"100%",minWidth:0},children:C}):(0,s.jsx)(c.View,{style:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:.2*a,maxWidth:"100%",minWidth:0},children:C})}function yi({color:e,style:t}){return(0,s.jsx)(c.View,{style:[{backgroundColor:e,opacity:.35,borderRadius:6},t]})}function mi({colors:e}){const t=e.selectionCard??e.backgroundAlt;return(0,s.jsxs)(c.View,{style:{width:"100%"},children:[(0,s.jsx)(c.View,{style:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:e.border,marginBottom:16},children:[0,1].map(t=>(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10},children:[(0,s.jsx)(yi,{color:e.textMuted,style:{height:14,width:68}}),(0,s.jsx)(yi,{color:e.textMuted,style:{height:20,width:20,borderRadius:999}})]},t))}),(0,s.jsx)(c.View,{style:{gap:12,width:"100%"},children:[0,1].map(n=>(0,s.jsxs)(c.View,{style:{borderRadius:8,borderWidth:1,borderColor:e.border,backgroundColor:t,overflow:"hidden",width:"100%"},children:[(0,s.jsxs)(c.View,{style:{width:"100%",paddingHorizontal:16,paddingVertical:12,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,s.jsxs)(c.View,{style:{flex:1,gap:6},children:[(0,s.jsx)(yi,{color:e.textMuted,style:{height:18,width:160,maxWidth:"75%"}}),(0,s.jsx)(yi,{color:e.textMuted,style:{height:12,width:128,maxWidth:"65%"}})]}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:12,flexShrink:0},children:[(0,s.jsx)(yi,{color:e.textMuted,style:{height:14,width:40}}),(0,s.jsx)(yi,{color:e.textMuted,style:{height:24,width:60,borderRadius:999}})]})]}),(0,s.jsx)(c.View,{style:{borderTopWidth:1,borderTopColor:e.border,width:"100%"},children:[0,1,2].map(t=>(0,s.jsxs)(c.View,{style:{paddingHorizontal:16,paddingVertical:10,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:0===t?0:1,borderTopColor:e.border},children:[(0,s.jsxs)(c.View,{style:{flex:1,gap:4},children:[(0,s.jsx)(yi,{color:e.textMuted,style:{height:14,width:"88%"}}),(0,s.jsx)(yi,{color:e.textMuted,style:{height:12,width:"70%"}})]}),(0,s.jsx)(yi,{color:e.textMuted,style:{height:20,width:40,borderRadius:4}})]},t))})]},n))})]})}function bi({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,demoEntries:i,demoGames:l,demoPropositions:h,onSelectEntry:u,theme:g,colorScheme:f,renderTeamLogo:p,filterSport:y}){const m=le(g,f),b=!!(i&&l&&h),w=m.colors,x=ce(m),[k,S]=(0,a.useState)("pending"),[C,B]=(0,a.useState)([]),z=(0,a.useMemo)(()=>new Bo({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),{entries:v,loading:F,error:W,refetch:T}=Wo(z,{user_id:r},{skip:b}),{games:A,loading:L,error:R}=zo(z,void 0,{skip:b}),{propositions:D,loading:M,error:P}=vo(z,void 0,{skip:b}),H=b?i:v,O=b?l:A,I=b?h:D,E=!b&&(F||L||M),j=b?null:W||R||P,N=(0,a.useMemo)(()=>H.map(e=>{const t={...e};return!t.created_at&&t.entry_date&&(t.created_at=t.entry_date),(!t.proposition_ids||0===t.proposition_ids.length)&&t.propositions&&t.propositions.length>0&&(t.proposition_ids=t.propositions.map(e=>e.id)),t}),[H]),G=(0,a.useMemo)(()=>{const e=new Map;for(const t of O)e.set(t.id,t);return e},[O]),V=(0,a.useMemo)(()=>{const e=new Map;for(const t of I)e.set(t.id,t);for(const t of N)if(t.propositions)for(const n of t.propositions)e.has(n.id)||e.set(n.id,n);for(const t of C)e.set(t.id,t);return e},[I,N,C]),U=(0,a.useRef)(new Set);(0,a.useEffect)(()=>{if(E||b)return;const e=[];for(const n of N)for(const t of n.proposition_ids??[])V.has(t)||U.current.has(t)||(e.push(t),U.current.add(t));if(0===e.length)return;let t=!1;return(async()=>{try{const n=await z.getPropositionsByIds(e);!t&&n.length>0&&B(e=>[...e,...n])}catch{}})(),()=>{t=!0}},[N,V,E,b,z]);const q=(0,a.useMemo)(()=>y?N.filter(e=>{const t=e.proposition_ids??[];return 0===t.length||t.some(t=>(V.get(t)??e.propositions?.find(e=>e.id===t))?.sport===y)}):N,[N,y,V]),K=(0,a.useMemo)(()=>q.filter(e=>ft(e.pending)),[q]),Z=(0,a.useMemo)(()=>q.filter(e=>!ft(e.pending)),[q]),X="pending"===k?K:Z;return E?(0,s.jsx)(c.View,{style:xi.container,accessibilityLabel:"Loading entries",children:(0,s.jsx)(mi,{colors:Y(m)})}):j?(0,s.jsx)(c.View,{style:xi.container,children:(0,s.jsxs)(c.View,{style:[xi.errorBanner,{backgroundColor:w.errorBg,borderColor:w.error}],children:[(0,s.jsx)(c.Text,{style:{color:w.errorText},children:j}),(0,s.jsx)(c.TouchableOpacity,{onPress:T,style:xi.retryButton,children:(0,s.jsx)(c.Text,{style:{color:w.error,textDecorationLine:"underline",fontSize:14,fontWeight:"500"},children:"Try again"})})]})}):(0,s.jsxs)(c.View,{style:xi.container,children:[(0,s.jsx)(c.View,{style:[xi.tabBar,{borderBottomColor:w.border}],children:["pending","completed"].map(e=>{const t=k===e,n="pending"===e?K.length:Z.length;return(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>S(e),accessibilityRole:"tab",accessibilityState:{selected:t},style:[xi.tab,{borderBottomColor:t?w.primary:"transparent"}],children:[(0,s.jsx)(c.Text,{style:[xi.tabLabel,{color:t?w.primary:w.textMuted,fontFamily:x}],children:"pending"===e?"Pending":"Completed"}),(0,s.jsx)(c.View,{style:[xi.tabBadge,{backgroundColor:t?`${w.primary}15`:w.backgroundAlt}],children:(0,s.jsx)(c.Text,{style:[xi.tabBadgeText,{color:t?w.primary:w.textMuted}],children:n})})]},e)})}),0===X.length&&(0,s.jsxs)(c.View,{style:xi.emptyState,children:[(0,s.jsx)(c.View,{style:{marginBottom:16},children:(0,s.jsx)(d.default,{width:48,height:48,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(d.Path,{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"})})}),(0,s.jsx)(c.Text,{style:[xi.emptyTitle,{color:w.text}],children:"pending"===k?"No pending entries":"No completed entries"}),(0,s.jsx)(c.Text,{style:[xi.emptySubtitle,{color:w.textMuted}],children:"pending"===k?"Entries awaiting results will appear here":"Settled entries will appear here"})]}),(0,s.jsx)(c.View,{style:xi.entryList,children:X.map(e=>(0,s.jsx)(wi,{entry:e,game:G.get(e.game_id),propositionsById:V,onSelect:u,theme:m,renderTeamLogo:p},e.id))})]})}function wi({entry:e,game:t,propositionsById:n,onSelect:o,theme:r,renderTeamLogo:i}){const l=r.colors,h=j(r),u=ce(r),g="dark"===r.colorScheme,f=e.proposition_ids??[],p=(0,a.useMemo)(()=>f.map(e=>n.get(e)).filter(Boolean),[f,n]),y=f.length,[m,b]=(0,a.useState)(!1),w=y>0,x=(0,a.useMemo)(()=>{const t=new Map;for(const n of e.propositions??[])t.set(n.id,n);return t},[e.propositions]),k=t=>{const o=e.selections?.[t];return null!=o?o:x.get(t)?.user_prediction??n.get(t)?.user_prediction},S=p.filter(e=>null!=e.result&&!e.is_voided).length,C=p.filter(e=>{if(null==e.result||e.is_voided)return!1;const t=k(e.id);return null!=t&&t===e.result}).length,B=null!=e.selections&&Object.keys(e.selections).length>0||(e.propositions??[]).some(e=>null!=e.user_prediction),z=ft(e.pending),v=!z&>(e.winning)>0,F=e.payout_status,W="fulfilled"===F&&v,T=z?"Pending":W?"Won — pay due":"paid_out"===F&&v?"Paid":v?"Won":"Lost",A=z||W?l.warningBg:v?l.successBg:l.errorBg,L=z||W?l.warningText:v?l.successText:l.errorText,R=B&&S>0?`${C}/${y} correct`:y>0?`${y} pick${1!==y?"s":""}`:null,D=B&&S>0?C>0?l.success:l.error:l.textMuted,M=(0,s.jsxs)(c.View,{style:xi.cardHeader,children:[(0,s.jsxs)(c.View,{style:xi.cardHeaderLeft,children:[(()=>{const n=t?t.allowed_propositions&&t.allowed_propositions.length>0&&t.game_name.replace(/\s+\d+\s*$/,"").trim()||t.game_name:`Game #${e.game_id}`;return t?(0,s.jsx)(pi,{iconUrl:fe(t),gameName:n,height:18,chipColor:l.primary,textColor:l.text,iconColor:l.primaryText,accentColor:r.brand?.accent}):(0,s.jsx)(c.Text,{style:[xi.cardGameName,{color:l.text,fontFamily:u}],numberOfLines:1,children:n})})(),(0,s.jsxs)(c.View,{style:xi.metaRow,children:[(e.created_at||e.entry_date)&&(0,s.jsx)(c.Text,{style:[xi.metaText,{color:l.textMuted}],children:yt(e.created_at||e.entry_date)}),R&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.Text,{style:[xi.metaDot,{color:l.textMuted}],children:"·"}),(0,s.jsx)(c.Text,{style:[xi.metaText,{fontWeight:"500",color:D}],children:R})]})]})]}),(0,s.jsxs)(c.View,{style:xi.cardHeaderRight,children:[(0,s.jsxs)(c.View,{style:xi.amounts,children:[gt(e.bet_amount)>0&&(0,s.jsx)(c.Text,{style:[xi.betLabel,{color:l.textMuted}],children:pt(gt(e.bet_amount))}),!z&>(e.winning)>0&&(0,s.jsxs)(c.View,{style:{alignItems:"flex-end"},children:[(0,s.jsx)(c.Text,{style:[xi.winAmount,{color:l.success}],children:pt(gt(e.winning))}),(e.payout_jackpot??0)>0&&(0,s.jsxs)(c.Text,{style:{fontSize:12,fontWeight:"400",color:l.textMuted},children:["incl. ",pt(gt(e.payout_jackpot))," jackpot"]})]})]}),(0,s.jsx)(c.View,{style:[xi.statusPill,{backgroundColor:A}],children:(0,s.jsx)(c.Text,{style:[xi.statusText,{color:L}],children:T})}),w&&(0,s.jsx)(c.View,{style:{transform:[{rotate:m?"180deg":"0deg"}]},accessibilityElementsHidden:!0,children:(0,s.jsx)(d.default,{width:18,height:18,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(d.Path,{d:"m6 9 6 6 6-6",stroke:l.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})]});return(0,s.jsxs)(c.View,{style:[xi.card,{borderColor:l.border,backgroundColor:h,shadowColor:"#000",shadowOpacity:g?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}],children:[(0,s.jsx)(c.TouchableOpacity,{testID:"entry-card",onPress:()=>{w&&b(e=>!e),o?.({entry:e,game:t,propositions:p})},activeOpacity:.7,disabled:!w&&!o,accessibilityLabel:`Entry #${e.id}`,accessibilityState:w?{expanded:m}:void 0,children:M}),m&&y>0&&f.map(t=>{const o=(t=>n.get(t)??e.propositions?.find(e=>e.id===t))(t),a=k(t);if(!o)return(0,s.jsxs)(c.View,{style:[xi.propRow,{borderTopColor:l.border,borderTopWidth:1}],children:[(0,s.jsx)(c.View,{style:xi.propInfo,children:(0,s.jsxs)(c.Text,{style:{fontSize:14,color:l.textMuted},children:["Loading proposition #",t,"…"]})}),null!=a&&(0,s.jsx)(Ae,{theme:r,size:"sm",value:"yes"===a?"yes":"no"})]},t);const d=o.result,h=null!=d,u=!!o.is_voided,g=h&&!u&&null!=a&&a===d;let f,p,y;u?(f="Void",p=`${l.textMuted}20`,y=l.textMuted):h?g?(f="Won",p=l.successBg,y=l.successText):(f="Lost",p=l.errorBg,y=l.errorText):(f="Pending",p=l.warningBg,y=l.warningText);const m=kt(o)?void 0:o.home_team;return(0,s.jsxs)(c.View,{style:[xi.propRow,{borderTopColor:l.border,borderTopWidth:1}],children:[(0,s.jsxs)(c.View,{style:xi.propInfo,children:[(o.home_team||o.away_team)&&(0,s.jsxs)(c.View,{style:xi.teamsRow,children:[i&&m?i(m):null,m?(0,s.jsx)(c.Text,{style:[xi.teamName,{color:l.text}],children:m}):null,m&&o.away_team?(0,s.jsx)(c.Text,{style:[xi.vsText,{color:l.textMuted}],children:"vs"}):null,i&&o.away_team?i(o.away_team):null,o.away_team?(0,s.jsx)(c.Text,{style:[xi.teamName,{color:l.text}],children:o.away_team}):null]}),(o.proposition||o.description)&&(0,s.jsx)(c.Text,{style:{fontSize:12,color:l.textMuted,marginTop:2},children:o.proposition||o.description}),o.commence_time&&(0,s.jsx)(c.Text,{style:{fontSize:12,color:l.textMuted,marginTop:2},children:yt(o.commence_time)})]}),(0,s.jsxs)(c.View,{style:xi.outcomeCol,children:[(0,s.jsx)(c.Text,{style:[xi.outcomeLabel,{color:l.textMuted}],children:"Pick"}),null!=a?(0,s.jsx)(Ae,{theme:r,size:"sm",value:"yes"===a?"yes":"no"}):(0,s.jsx)(c.Text,{style:{fontSize:12,color:l.textMuted},children:"—"})]}),(0,s.jsxs)(c.View,{style:xi.outcomeCol,children:[(0,s.jsx)(c.Text,{style:[xi.outcomeLabel,{color:l.textMuted}],children:"Result"}),(0,s.jsx)(c.View,{style:{paddingHorizontal:8,paddingVertical:2,borderRadius:4,backgroundColor:p},children:(0,s.jsx)(c.Text,{style:{fontSize:12,fontWeight:"700",color:y,textTransform:"uppercase"},children:f})})]})]},t)})]})}var xi=c.StyleSheet.create({container:{flex:1},errorBanner:{padding:16,borderRadius:8,borderWidth:1},retryButton:{marginTop:8},tabBar:{flexDirection:"row",borderBottomWidth:1,marginBottom:16},tab:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:16,paddingVertical:10,borderBottomWidth:2,marginBottom:-1},tabLabel:{fontSize:14,fontWeight:"500"},tabBadge:{minWidth:20,height:20,paddingHorizontal:6,borderRadius:999,alignItems:"center",justifyContent:"center"},tabBadgeText:{fontSize:12,fontWeight:"600"},emptyState:{alignItems:"center",justifyContent:"center",paddingVertical:48,paddingHorizontal:16},emptyTitle:{fontSize:16,fontWeight:"500"},emptySubtitle:{fontSize:14,marginTop:4},entryList:{gap:12},card:{borderRadius:12,borderWidth:1,overflow:"hidden"},cardHeader:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingHorizontal:16,paddingVertical:12,gap:12},cardHeaderLeft:{flex:1,minWidth:0},cardGameName:{fontSize:16,fontWeight:"600"},metaRow:{flexDirection:"row",alignItems:"center",gap:8,marginTop:2},metaText:{fontSize:12},metaDot:{fontSize:12},cardHeaderRight:{flexDirection:"row",alignItems:"center",gap:12,flexShrink:0},amounts:{alignItems:"flex-end"},betLabel:{fontSize:12},winAmount:{fontSize:14,fontWeight:"700"},statusPill:{paddingHorizontal:10,paddingVertical:2,borderRadius:999},statusText:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:.3},propRow:{flexDirection:"row",alignItems:"center",paddingHorizontal:16,paddingVertical:10,gap:12},propInfo:{flex:1},teamsRow:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:6},teamName:{fontSize:14,fontWeight:"500"},vsText:{fontSize:12,fontWeight:"400"},outcomeCol:{alignItems:"center",gap:2,flexShrink:0},outcomeLabel:{fontSize:9,fontWeight:"600",letterSpacing:.225,textTransform:"uppercase"}});function ki({style:e}){const{theme:t,bodyFont:n,eventFilterActive:o,eventFilterLabel:r,clearEventFilter:i,gameCategory:l}=br(),{width:d}=(0,c.useWindowDimensions)(),h=d>=640,[u,g]=a.default.useState(!1);if(!o)return null;const f=t.colors,p=r??("racing"===l?"This race":"This event");return(0,s.jsxs)(c.View,{style:[Si.container,h&&Si.containerWide,{borderColor:`${f.primary}33`,backgroundColor:f.surface},e],children:[(0,s.jsxs)(c.View,{style:Si.textBlock,children:[(0,s.jsx)(c.Text,{style:[Si.kicker,{color:f.primary,fontFamily:n}],children:"Event filter"}),(0,s.jsx)(c.Text,{style:[Si.label,{color:f.text,fontFamily:n}],numberOfLines:1,children:p}),(0,s.jsx)(c.Text,{style:[Si.hint,{color:f.textMuted,fontFamily:n}],children:"Only propositions from this event are shown."})]}),(0,s.jsx)(c.TouchableOpacity,{onPress:i,...ze(()=>g(!0),()=>g(!1)),style:[Si.button,h&&Si.buttonWide,{borderColor:`${f.primary}44`,backgroundColor:f.background,opacity:u?.9:1}],children:(0,s.jsx)(c.Text,{style:[Si.buttonText,{color:f.text,fontFamily:n}],children:"Show all events"})})]})}var Si=c.StyleSheet.create({container:{marginBottom:16,flexDirection:"column",borderWidth:1,borderRadius:12,paddingHorizontal:12,paddingVertical:10,gap:8},containerWide:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},textBlock:{minWidth:0,flexShrink:1},kicker:{fontSize:10,fontWeight:"700",letterSpacing:1.2,textTransform:"uppercase"},label:{fontSize:14,fontWeight:"600"},hint:{fontSize:12},button:{flexShrink:0,alignSelf:"flex-start",borderWidth:1,borderRadius:8,paddingHorizontal:12,paddingVertical:6},buttonWide:{alignSelf:"center"},buttonText:{fontSize:12,fontWeight:"600"}});function Ci({onBack:e,title:t="Go back"}){const{theme:n}=br(),o=n.colors,[r,i]=a.default.useState(!1);return(0,s.jsx)(c.TouchableOpacity,{onPress:e,accessibilityRole:"button",accessibilityLabel:t,...ze(()=>i(!0),()=>i(!1)),style:{padding:2,alignItems:"center",justifyContent:"center",borderRadius:999,transform:[{translateX:r?-2:0}]},children:(0,s.jsx)(d.default,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(d.Path,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:r?o.text:o.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})}function Bi({onBack:e,label:t="Games"}){const{theme:n}=br(),o=n.colors,[r,i]=a.default.useState(!1),l=r?o.primary:o.textMuted;return(0,s.jsxs)(c.TouchableOpacity,{onPress:e,accessibilityRole:"button",accessibilityLabel:t,activeOpacity:.7,...ze(()=>i(!0),()=>i(!1)),style:{flexDirection:"row",alignItems:"center",gap:6,alignSelf:"flex-start",marginBottom:12,transform:[{translateX:r?-2:0}]},children:[(0,s.jsx)(d.default,{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(d.Path,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:l,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})}),(0,s.jsx)(c.Text,{style:{fontSize:14,fontWeight:"600",color:l},children:t})]})}function zi({onBack:e,hideActions:t,label:n,children:o}){const{theme:r}=br(),i=r.colors,{width:l}=(0,c.useWindowDimensions)(),h=l>=640,[u,g]=a.default.useState(!1);if(!e&&null==n&&!o)return null;const f=e=>(0,s.jsx)(c.Text,{style:{fontSize:h?14:12,flexShrink:1,color:e},children:n});return(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:6,marginTop:2},children:[e&&(null!=n?(0,s.jsxs)(c.TouchableOpacity,{onPress:e,accessibilityRole:"button",accessibilityLabel:"Go back",activeOpacity:.7,...ze(()=>g(!0),()=>g(!1)),style:{flexDirection:"row",alignItems:"center",gap:6,minWidth:0,flexShrink:1,transform:[{translateX:u?-2:0}]},children:[(0,s.jsx)(d.default,{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(d.Path,{d:"M19 12H5 M12 19l-7-7 7-7",stroke:u?i.text:i.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})}),f(u?i.text:i.textMuted)]}):(0,s.jsx)(Ci,{onBack:e})),!e&&null!=n&&f(i.textMuted),o]})}function vi({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,howToPlayMarkdown:i,selectedCategory:l,displayCategoryName:a}=br(),d=n.colors,{width:h}=(0,c.useWindowDimensions)(),u=h>=640,g=h>=768;return(0,s.jsxs)(c.View,{style:u&&Fi.headerWide,children:[(0,s.jsxs)(c.View,{style:Fi.titleRow,children:[(0,s.jsx)(c.Text,{style:[Fi.title,u&&Fi.titleWide,g&&Fi.titleDesktop,{color:L(n),fontFamily:o,flex:1}],children:"Choose your game"}),i?.trim()?(0,s.jsx)(c.View,{style:Fi.howToPlayWrap,children:(0,s.jsx)(Ne,{content:i,title:"How to Play",colors:{text:d.text,textMuted:d.textMuted,border:d.border,background:d.background,backgroundAlt:d.backgroundAlt,primary:d.primary,primaryText:d.primaryText},bodyFont:r,headingFont:o})}):null]}),(0,s.jsx)(zi,{onBack:e,hideActions:t,label:l?a(l):void 0})]})}var Fi=c.StyleSheet.create({container:{flex:1},headerWide:{paddingLeft:8},titleRow:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:12},title:{fontSize:18,fontWeight:"700",lineHeight:22.5},titleWide:{fontSize:20,lineHeight:25},titleDesktop:{fontSize:24,lineHeight:30},howToPlayWrap:{flexShrink:0,marginTop:2},content:{flex:1},footer:{flexDirection:"row",alignItems:"center",paddingTop:16},secondaryBtn:{paddingHorizontal:20,paddingVertical:10,borderRadius:8},secondaryBtnText:{fontSize:14,fontWeight:"500"}});function Wi({onBack:e,hideActions:t}={}){const{theme:n}=br(),o=ce(n),r=n.colors,{width:i}=(0,c.useWindowDimensions)(),l=i>=640;return(0,s.jsxs)(c.View,{style:l&&Ai.headerWide,children:[(0,s.jsx)(c.Text,{style:[Ai.sectionTitle,l&&Ai.sectionTitleWide,{color:r.primary,fontFamily:o}],children:"Pick a category"}),(0,s.jsx)(zi,{onBack:e,hideActions:t})]})}function Ti({onSelectCategory:e,onCancel:t,hideTitle:n,hideActions:o,renderCategoryIcon:r,getCategoryTagline:i}){const{theme:l,propositionsForCategoryPicker:d,loading:h,setSelectedCategory:u,setSelectedSport:g,clearSelectedGame:f,displayCategoryName:p}=br(),y=l.colors,m=j(l),b=ae(l),{width:w}=(0,c.useWindowDimensions)(),x=w>=640,k=w>=400,[S,C]=a.default.useState(null),[B,z]=a.default.useState(0),v=k?B>0?(B-(x?12:10))/2:"48%":"100%";St(d);const F=Ct(d);return h?(0,s.jsx)(c.View,{style:Ai.container,children:(0,s.jsx)(pn,{colors:Y(l),bodyFont:b,variant:"category",categoryCount:F.length>0?F.length:2})}):(0,s.jsxs)(c.View,{style:Ai.container,children:[!n&&(0,s.jsx)(c.View,{style:Ai.titleWrap,children:(0,s.jsx)(Wi,{onBack:t,hideActions:o})}),(0,s.jsx)(c.View,{style:Ai.content,children:(0,s.jsx)(c.View,{style:[Ai.grid,x&&Ai.gridWide],onLayout:e=>z(e.nativeEvent.layout.width),children:F.map(t=>{const n=i?.(t)??function(e){return dt[e]??""}(t),o=S===t;return(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>{u(t),g(null),f(),e?.(t)},...ze(()=>C(t),()=>C(e=>e===t?null:e)),style:[Ai.card,x&&Ai.cardWide,{width:v,backgroundColor:m,borderColor:o?y.primary:y.border},o&&Ai.cardHovered],activeOpacity:.85,children:[(0,s.jsx)(Ke,{label:p(t),category:t,icon:r?.(t),theme:l}),n?(0,s.jsx)(c.Text,{style:[Ai.tagline,x&&Ai.taglineWide,{color:y.primary,fontFamily:b}],children:n}):null]},t)})})})]})}var Ai=c.StyleSheet.create({container:{flex:1},centered:{flex:1,flexDirection:"row",justifyContent:"center",alignItems:"center",padding:32},titleWrap:{marginBottom:8},headerWide:{paddingLeft:8},sectionTitle:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.4,marginBottom:12},sectionTitleWide:{fontSize:12,letterSpacing:2.16,marginBottom:16},content:{flex:1},grid:{flexDirection:"row",flexWrap:"wrap",gap:10},gridWide:{gap:12},card:{alignItems:"flex-start",justifyContent:"center",gap:8,minHeight:112,borderRadius:16,borderWidth:1,padding:14},cardWide:{gap:12,minHeight:140,padding:20},cardHovered:{shadowColor:"#000",shadowOpacity:.1,shadowRadius:6,shadowOffset:{width:0,height:4},elevation:3},tagline:{fontSize:10,fontWeight:"500",textTransform:"uppercase",letterSpacing:.8},taglineWide:{fontSize:12,letterSpacing:1.2},footer:{flexDirection:"row",alignItems:"center",paddingTop:16},secondaryBtn:{paddingHorizontal:20,paddingVertical:10,borderRadius:8},secondaryBtnText:{fontSize:14,fontWeight:"500"}});function Li(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 Ri({name:e,renderTeamLogo:t,muted:n,headingFont:o,ink:r,wide:i}){if(!e)return(0,s.jsx)(c.Text,{style:[Mi.teamName,{color:n,fontFamily:o}],children:"TBC"});const l=t?.(e);return(0,s.jsxs)(c.View,{style:Mi.teamMark,children:[null!=l?(0,s.jsx)(c.View,{style:Mi.teamLogo,children:l}):null,(0,s.jsx)(c.Text,{style:[Mi.teamName,i&&Mi.teamNameWide,{color:r,fontFamily:o}],children:e})]})}function Di({onSelectEvent:e}){const{theme:t,loading:n,sameGameMultiEvents:o,selectSameGameMultiEvent:r,renderTeamLogo:i,displaySportName:l}=br(),d=t.colors,h=ae(t),u=ce(t),g=j(t),f=N(t),{width:p}=(0,c.useWindowDimensions)(),y=p>=640,[m,b]=a.default.useState(null),[w,x]=a.default.useState(null);return n?(0,s.jsx)(c.View,{style:Mi.container,children:(0,s.jsx)(pn,{colors:Y(t),bodyFont:h,variant:"event"})}):(0,s.jsxs)(c.View,{style:Mi.container,accessibilityLabel:"Available fixtures",children:[(0,s.jsx)(c.Text,{style:[Mi.intro,{color:d.textMuted,fontFamily:h}],children:"All picks in your multi must come from one game."}),0===o.length?(0,s.jsx)(c.View,{accessibilityRole:"text",accessibilityLiveRegion:"polite",style:[Mi.emptyState,{borderColor:d.border,backgroundColor:g}],children:(0,s.jsx)(c.Text,{style:[Mi.emptyText,{color:d.textMuted,fontFamily:h}],children:"No fixtures with available propositions."})}):(0,s.jsx)(c.View,{style:[Mi.list,y&&Mi.listWide],children:o.map(t=>{const n=m===t.id,o=w===t.id;return(0,s.jsxs)(c.TouchableOpacity,{accessibilityRole:"button",accessibilityLabel:`Select ${yn(t)}`,onPress:()=>{r(t.id),e?.(t.id)},activeOpacity:.85,...ze(()=>b(t.id),()=>b(e=>e===t.id?null:e)),onFocus:()=>x(t.id),onBlur:()=>x(e=>e===t.id?null:e),style:[Mi.card,y&&Mi.cardWide,{borderColor:n||o?d.primary:d.border,backgroundColor:g},n&&Mi.cardHovered],children:[(0,s.jsxs)(c.View,{style:Mi.cardMain,children:[(0,s.jsxs)(c.View,{style:[Mi.matchup,y&&Mi.matchupWide,{backgroundColor:f}],children:[(0,s.jsx)(Ri,{name:t.homeTeam,renderTeamLogo:i,muted:d.textMuted,headingFont:u,ink:d.text,wide:y}),(0,s.jsx)(c.Text,{style:[Mi.vs,{color:d.textMuted,fontFamily:u}],children:"vs"}),(0,s.jsx)(Ri,{name:t.awayTeam,renderTeamLogo:i,muted:d.textMuted,headingFont:u,ink:d.text,wide:y})]}),(0,s.jsxs)(c.Text,{style:[Mi.meta,y&&Mi.metaWide,{color:d.textMuted,fontFamily:h}],children:[Li(t.commenceTime)," · ",t.propositionCount," proposition",1===t.propositionCount?"":"s",t.league||t.sport?` · ${t.league?.toUpperCase()??l(t.sport)}`:""]})]}),(0,s.jsx)(c.View,{style:{flexShrink:0,transform:[{translateX:n?2:0}]},children:(0,s.jsx)(Ve,{size:22,color:d.textMuted})})]},t.id)})})]})}var Mi=c.StyleSheet.create({container:{flex:1},centered:{flex:1,flexDirection:"row",justifyContent:"center",alignItems:"center",padding:32},intro:{fontSize:14,lineHeight:22.75,marginBottom:16},emptyState:{borderWidth:1,borderRadius:16,padding:24,alignItems:"center"},emptyText:{fontSize:14,textAlign:"center"},list:{gap:10},listWide:{gap:12},cardHovered:{shadowColor:"#000",shadowOpacity:.1,shadowRadius:6,shadowOffset:{width:0,height:4},elevation:3},card:{minHeight:64,width:"100%",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderWidth:1,borderRadius:16,paddingHorizontal:14,paddingVertical:14},cardWide:{paddingHorizontal:20,paddingVertical:16},cardMain:{flex:1,minWidth:0},matchup:{flexDirection:"column",alignItems:"flex-start",gap:4,borderRadius:12,paddingHorizontal:12,paddingVertical:10},matchupWide:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:6},teamMark:{flexDirection:"row",alignItems:"center",gap:6,minWidth:0,maxWidth:"100%"},teamLogo:{flexShrink:0},teamName:{fontSize:14,fontWeight:"600",flexShrink:1},teamNameWide:{fontSize:16},vs:{fontSize:12,fontWeight:"400"},meta:{marginTop:8,fontSize:11,fontWeight:"500"},metaWide:{fontSize:12}});function Pi({counts:e,onPick:t,onDoubleAction:n,colors:o,align:r="right",direction:i="down",menuShadow:l="0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -24px rgba(15,23,42,0.22)"}){const[d,u]=(0,a.useState)(!1),[g,f]=(0,a.useState)(!1),[p,y]=(0,a.useState)(null),m=(0,a.useRef)(0),b=(0,a.useRef)(null),w=(0,a.useRef)(null),[x,k]=(0,a.useState)(null),[S,C]=(0,a.useState)(null),B="web"===c.Platform.OS,z=36+36*e.length+12,v="up"===i||g?"up":"down";(0,a.useLayoutEffect)(()=>{if(!d||!B)return;const e=b.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.scrollX||window.pageXOffset||0,o=window.scrollY||window.pageYOffset||0;k({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;f(r<z&&i>r)},[d,B,z]),(0,a.useEffect)(()=>{if(!d)return y(null),void(B||f(!1));if(B){const e=e=>{const t=b.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||w.current&&w.current.contains(n)||u(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}const e=b.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=c.Dimensions.get("window").height-(t+o);f(r<z&&t>r),C({x:e,y:t,width:n,height:o})})},[d,B,z]);const F=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.View,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:o.border},children:(0,s.jsx)(c.Text,{style:{fontSize:10,fontWeight:"700",color:o.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase"},children:"How many picks?"})}),e.map(e=>(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>{t(e),u(!1)},accessibilityRole:"menuitem",...ze(()=>y(e),()=>y(t=>t===e?null:t)),style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:1,borderTopColor:o.border,backgroundColor:p===e?o.backgroundAlt:"transparent"},children:[(0,s.jsxs)(c.Text,{style:{fontSize:14,fontWeight:"600",color:o.text},children:[e," picks"]}),(0,s.jsx)(c.View,{style:{backgroundColor:o.backgroundAlt,paddingHorizontal:6,paddingVertical:2,borderRadius:4},children:(0,s.jsx)(c.Text,{style:{color:o.text,fontSize:10,fontWeight:"700",letterSpacing:.5},children:"QP"})})]},e))]});return(0,s.jsxs)(c.View,{ref:b,style:{position:"relative",flexShrink:0},children:[(0,s.jsx)(wr,{onPress:()=>{if(!n)return void u(e=>!e);const e=Date.now();if(e-m.current<280)return m.current=0,u(!1),void n();m.current=e,setTimeout(()=>{m.current&&Date.now()-m.current>=270&&(m.current=0,u(e=>!e))},290)}}),d&&B&&x&&"undefined"!=typeof document&&(0,h.createPortal)((0,s.jsx)("div",{ref:w,role:"menu",style:{position:"absolute",top:"up"===v?void 0:x.bottom+6,..."up"===v?{top:x.top-6,transform:"translateY(-100%)"}:null,left:"left"===r?x.left:void 0,..."right"===r?{left:x.right,transform:"up"===v?"translate(-100%, -100%)":"translateX(-100%)"}:null,zIndex:20,backgroundColor:o.background,border:`1px solid ${o.border}`,borderRadius:8,minWidth:160,boxShadow:l,overflow:"hidden"},children:F}),document.body),(0,s.jsx)(tn,{visible:d&&!B,anchor:S,onClose:()=>u(!1),flipUp:"up"===v,align:r,children:(0,s.jsx)(c.View,{accessibilityRole:"menu",style:{elevation:8,backgroundColor:o.background,borderRadius:8,borderWidth:1,borderColor:o.border,minWidth:160,shadowColor:"#000",shadowOffset:{width:0,height:6},shadowOpacity:.18,shadowRadius:12,overflow:"hidden"},children:F})})]})}var Hi="Your stake";function Oi(e,t){const n=e?.top_payouts?.find(e=>Number(e.proposition_count)===t);if(!n)return 0;const o=n.bet_amount&&n.bet_amount>0?n.bet_amount:20,r=Number(n.net_payout);return Number.isFinite(r)?r/o*20:0}function Ii({gameKey:e,short:t,size:n=56,footer:o="YESNO Multi",title:r,sportBaseKey:i}){const l=ht(e,i,t),a=function(e){return e.length<=3?92:4===e.length?72:56}(l),c=r??`${l} button`;return(0,s.jsxs)(d.default,{viewBox:"0 0 360 360",width:n,height:n,accessibilityLabel:c,children:[(0,s.jsx)(d.Rect,{x:2,y:2,width:356,height:356,rx:78,fill:"#DDD9D2",stroke:ct,strokeWidth:4}),(0,s.jsx)(d.Rect,{x:50,y:10,width:260,height:260,rx:52,fill:ct,opacity:.3}),(0,s.jsx)(d.Rect,{x:50,y:35,width:260,height:260,rx:52,fill:ct,opacity:.55}),(0,s.jsx)(d.Rect,{x:50,y:60,width:260,height:260,rx:52,fill:ct}),(0,s.jsx)(d.Text,{x:180,y:220,fontFamily:"Manrope, Poppins, sans-serif",fontSize:a,letterSpacing:-3,textAnchor:"middle",fontWeight:"800",fill:"#DFFF1A",children:l}),o&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.Text,{x:180,y:345,fontFamily:"Manrope, Poppins, sans-serif",fontSize:24,letterSpacing:-.5,textAnchor:"middle",fontWeight:"700",fill:ct,children:o}),(0,s.jsx)(d.Text,{x:262,y:333,fontFamily:"Manrope, Poppins, sans-serif",fontSize:10,fontWeight:"600",fill:ct,children:"TM"})]})]})}var Ei="yesno:favourite-sport",ji=null;function Ni(){try{return globalThis.localStorage??null}catch{return null}}function Gi({label:e="Pick your sport",sublabel:t,renderSportLogo:n,style:o}){const{theme:r,sportOptions:i,sportSummaries:l,selectedSport:d,setSelectedSport:h,sportBaseKey:u,displaySportName:g,selections:f,toggleSelection:p,enableSportFavourites:y}=br(),m=r.colors,b=j(r),w=ae(r),x=ce(r),k=L(r),S=H(r),[C,z]=a.default.useState(null);if(a.default.useEffect(()=>{z(y?function(){try{const e=Ni()?.getItem(Ei);if(e)return e}catch{}return ji}():null)},[y]),i.length<2)return null;const v=C?[...i].sort((e,t)=>Number(t.key===C)-Number(e.key===C)):i,F=void 0===t?y?"Tap to select. Star your favourite to pin it up front.":"Tap to select.":t;return(0,s.jsxs)(c.View,{style:[Vi.wrap,o],children:[e?(0,s.jsx)(c.Text,{style:[Vi.label,{color:k,fontFamily:x}],children:e}):null,F?(0,s.jsx)(c.Text,{style:[Vi.hint,{color:m.textMuted,fontFamily:w}],children:F}):null,(0,s.jsx)(Qe,{theme:r,contentContainerStyle:Vi.shelf,children:v.map(({key:e})=>{const t=l.find(t=>t.key===e),o=t?.games_today??0,i=d===e,a=C===e,w=t?.label??g(e);return(0,s.jsxs)(c.View,{style:Vi.slot,children:[(0,s.jsxs)(c.TouchableOpacity,{accessibilityRole:"button",accessibilityState:{selected:i},activeOpacity:.85,onPress:()=>(e=>{if(e!==d){for(const e of Object.keys(f)){const t=Number(e);p(t,f[t])}h(e)}})(e),style:[Vi.card,Yi(r),{backgroundColor:b,borderColor:i?m.primary:m.border,borderWidth:i?2:1,paddingTop:(y?26:12)-(i?1:0),paddingBottom:i?7:8}],children:[(0,s.jsxs)(c.View,{style:Vi.tile,children:[n?n(e):(0,s.jsx)(Ii,{gameKey:e,size:40,footer:null,sportBaseKey:u,title:`${w} button`}),o>0&&(0,s.jsx)(c.View,{style:[Vi.liveDot,{backgroundColor:m.success,borderColor:b}]})]}),(0,s.jsx)(c.Text,{numberOfLines:2,style:[Vi.name,{color:i?k:m.text,fontFamily:x}],children:w})]}),y&&(0,s.jsx)(c.TouchableOpacity,{accessibilityRole:"button",accessibilityState:{selected:a},accessibilityLabel:a?`Unpin ${w}`:`Pin ${w} to the front`,activeOpacity:.7,onPress:()=>(e=>{const t=C===e?null:e;z(t),function(e){ji=e;try{e?Ni()?.setItem(Ei,e):Ni()?.removeItem(Ei)}catch{}}(t)})(e),style:Vi.starHit,children:(0,s.jsx)(c.View,{style:[Vi.star,{backgroundColor:a?B(S,.22):b,borderColor:a?S:m.border}],children:(0,s.jsx)(Xe,{size:12,filled:a,color:a?k:B(m.textMuted,.6)})})})]},e)})})]})}function Yi(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}var Vi=c.StyleSheet.create({wrap:{minWidth:0},label:{paddingLeft:2,fontSize:14,fontWeight:"800",lineHeight:18,letterSpacing:-.2},hint:{marginBottom:6,paddingLeft:2,fontSize:12,lineHeight:16},shelf:{alignItems:"stretch",gap:10,paddingHorizontal:2,paddingTop:4,paddingBottom:10},slot:{position:"relative",width:88},card:{width:88,minHeight:44,borderRadius:16,paddingHorizontal:6,alignItems:"center",gap:6},tile:{position:"relative"},liveDot:{position:"absolute",top:-2,right:-2,width:10,height:10,borderRadius:5,borderWidth:2},name:{fontSize:11,fontWeight:"800",lineHeight:13,letterSpacing:-.2,textAlign:"center"},starHit:{position:"absolute",left:0,top:0,width:32,height:32,alignItems:"center",justifyContent:"center",zIndex:1},star:{width:20,height:20,borderRadius:10,borderWidth:1,alignItems:"center",justifyContent:"center"}});function Ui(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 qi({iconUrl:e,size:t=56}){const{theme:n}=br(),o=n.colors,r=n.brand?.chip??o.primary,i=n.brand?.icon??o.primaryText,l=O(r,H(n),i);return(0,s.jsx)(c.View,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:r,borderWidth:1,borderColor:Ui(i,.16),alignItems:"center",justifyContent:"center",shadowColor:r,shadowOpacity:.45,shadowRadius:9,shadowOffset:{width:0,height:4},elevation:2},children:(0,s.jsx)($t,{iconUrl:e,width:Math.round(.68*t),height:Math.round(.68*t),iconColor:i,accentColor:l})})}function Ki({eyebrow:e,iconUrl:t,gameName:n,tagline:o,style:r}){const{theme:i,screenSize:l}=br(),a=i.colors,d=ce(i),h="mobile"===l,{width:u}=(0,c.useWindowDimensions)(),g=u>=640;return(0,s.jsxs)(c.View,{style:[Zi.block,g&&Zi.blockWide,r],children:[e&&g?(0,s.jsx)(c.Text,{style:[Zi.eyebrow,{color:a.primary,fontFamily:d}],children:e.toUpperCase()}):null,(0,s.jsx)(pi,{iconUrl:t,gameName:n,height:h?20:32,chipColor:a.primary,textColor:a.text,iconColor:a.primaryText,accentColor:i.brand?.accent,compact:h}),o?(0,s.jsx)(c.Text,{style:[Zi.tagline,g&&Zi.taglineWide,{color:a.textMuted}],children:o}):null]})}var Zi=c.StyleSheet.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 Xi({ariaLabel:e,children:t}){const{width:n}=(0,c.useWindowDimensions)();return n>=640?(0,s.jsx)(c.View,{accessibilityRole:"radiogroup",accessibilityLabel:e,style:Ji.grid,children:t}):(0,s.jsx)(c.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,accessibilityRole:"radiogroup",accessibilityLabel:e,contentContainerStyle:Ji.rail,children:t})}function Qi(e,t="21%"){return e?{flexGrow:1,flexBasis:t,minWidth:0}:{width:124,flexGrow:0,flexShrink:0}}var Ji=c.StyleSheet.create({grid:{flexDirection:"row",flexWrap:"wrap",gap:8},rail:{flexDirection:"row",gap:8,paddingBottom:4}});function $i({legs:e,prizeBall:t=!0}){const{theme:n}=br(),o=n.colors.primary,r=H(n);return(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center"},children:[Array.from({length:e}).map((e,t)=>(0,s.jsx)(c.View,{style:{width:5,height:5,borderRadius:1.5,backgroundColor:o,opacity:.85,marginRight:3}},t)),t?(0,s.jsx)(c.View,{style:{width:7,height:7,borderRadius:999,backgroundColor:r,marginLeft:2}}):null]})}function _i({tile:e,label:t,stat:n,detail:o,onSelect:r,children:i}){const{theme:l}=br(),h=l.colors,u=ce(l),g=L(l),f=h.primary,p=h.selectionCard??h.backgroundAlt,{width:y}=(0,c.useWindowDimensions)(),m=y>=640,[b,w]=(0,a.useState)(!1);return(0,s.jsxs)(c.View,{...ze(()=>w(!0),()=>w(!1)),style:[el.card,m&&el.cardWide,{backgroundColor:p,borderColor:b?f:h.border,shadowColor:b?f:"#000",shadowOpacity:b?.28:.08,shadowRadius:b?14:10,shadowOffset:{width:0,height:b?12:8},elevation:b?4:1,transform:[{translateY:b?-2:0}]}],children:[(0,s.jsxs)(c.TouchableOpacity,{onPress:r,activeOpacity:.85,style:[el.cardMain,m&&el.cardMainWide],children:[e,(0,s.jsxs)(c.View,{style:[el.cardText,m&&el.cardTextWide],children:[(0,s.jsxs)(c.View,{style:el.titleRow,children:[(0,s.jsx)(c.Text,{style:[el.cardTitle,m&&el.cardTitleWide,{color:g,fontFamily:u}],children:t}),n?(0,s.jsx)(c.View,{style:[el.statChip,{backgroundColor:Ui(f,.12)}],children:(0,s.jsx)(c.Text,{style:[el.statChipText,{color:f}],children:n.toUpperCase()})}):null]}),o&&o.length>0?(0,s.jsx)(c.View,{style:el.detailBlock,children:(m?o:o.slice(0,1)).map(e=>(0,s.jsx)(c.Text,{style:[el.detailLine,m&&el.detailLineWide,{color:h.textMuted}],children:e},e))}):null]}),(0,s.jsx)(c.View,{style:[el.chevron,{transform:[{translateX:b?2:0}]}],children:(0,s.jsx)(d.default,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(d.Path,{d:"m9 6 6 6-6 6",stroke:f,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]}),i?(0,s.jsx)(c.View,{style:[el.childrenWrap,{borderTopColor:Ui(g,.08)}],children:i}):null]})}var el=c.StyleSheet.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 tl({style:e}){return(0,s.jsx)(Gi,{style:[{marginBottom:16},e]})}function nl({onBack:e,onNext:t,hideActions:n}={}){const{theme:o,headingFont:r,bodyFont:i,selectedGame:l,propositions:a,selections:d,toggleSelection:h,selectedPropositionCount:u,disableQuickPick:g,answeredCount:f,goToConfirmation:p,selectedEventId:y,sameGameMultiEvents:m,selectSameGameMultiEvent:b,selectedRule:w,howToPlayMarkdown:x,maxPayouts:k}=br(),S=o.colors,C=Ce(l),B=po(l??{},l?k?.[l.id]:void 0),{width:z}=(0,c.useWindowDimensions)(),v=z>=640,F=bn(l)&&!y,W=m.find(e=>e.id===y),T=l?vt(l,u,w):{min:0,max:0},R=T.min,D=bn(l)&&y?Math.min(T.max,a.length):T.max,M=R>0&&R===D,P=!(l?.allowed_propositions&&l.allowed_propositions.length>0)&&R>0&&D>R,H=M?D:D||a.length,O=e=>{const t=Math.max(0,Math.min(e??H,a.length));for(const i of Object.keys(d)){const e=Number(i);h(e,d[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)h(i.id,"yes");for(const i of r)h(i.id,"no")},I=!g&&a.length>0,E=P?Array.from({length:D-R+1},(e,t)=>R+t).filter(e=>e<=a.length):[],j=f>0?f:R||H;return(0,s.jsxs)(c.View,{style:[al.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[(0,s.jsxs)(c.View,{children:[(0,s.jsx)(c.Text,{style:[al.title,{fontSize:v?24:20,color:L(o),fontFamily:r}],children:F?"Choose a Game":"Select Propositions"}),l&&(0,s.jsx)(zi,{onBack:y?()=>b(null):e,hideActions:n,label:W?yn(W):l.game_name,children:C||x?.trim()?(0,s.jsx)(Ne,{variant:"icon",content:x,panel:C,theme:o,title:`${l.game_name} — How to Play`,extra:(0,s.jsx)(yo,{tiers:B.hasGenericDividends?B.tiers:[],modes:B.modes,pydDividends:B.pydDividends,minBet:B.minBet,maxBet:B.maxBet,colors:S,bodyFont:i,headingFont:r}),colors:{text:S.text,textMuted:S.textMuted,border:S.border,background:S.background,backgroundAlt:S.backgroundAlt,primary:S.primary,primaryText:S.primaryText},bodyFont:i,headingFont:r}):null})]}),I&&(E.length>1?(0,s.jsx)(Pi,{counts:E,onPick:e=>{O(e),p(),t?.()},onDoubleAction:()=>{O(j),p(),t?.()},colors:S,menuShadow:A(o)}):(0,s.jsx)(c.View,{style:{flexShrink:0},children:(0,s.jsx)(wr,{onPress:()=>{O(),p(),t?.()}})}))]})}function ol({number:e,color:t,size:n=34,label:o,selected:r,onSelect:i}){const l=(e,o)=>({position:"absolute",left:e,top:.4*e,width:n,height:n,borderRadius:.26*n,backgroundColor:t,opacity:o});return(0,s.jsx)(Le,{children:(0,s.jsxs)(c.TouchableOpacity,{accessibilityRole:"button",accessibilityLabel:o,onPress:i,activeOpacity:.8,style:{position:"relative",width:n+.2*n,height:1.3*n},children:[(0,s.jsx)(c.View,{style:l(.44*n,.3)}),(0,s.jsx)(c.View,{style:l(.22*n,.55)}),(0,s.jsx)(c.View,{style:{position:"absolute",left:0,top:0,width:n,height:n,borderRadius:.26*n,backgroundColor:t,alignItems:"center",justifyContent:"center",borderWidth:r?2:0,borderColor:"#fff"},children:(0,s.jsx)(c.Text,{style:{color:"#fff",fontSize:n*(e>9?.42:.5),fontWeight:"800"},children:String(e)})})]})})}function rl({onNext:e,onBack:t,hideButtons:n=!1}){const{theme:o,headingFont:r,selectedGame:i,selectedPropositionCount:l,selectedEventId:d,propositions:h,goToConfirmation:u,selectedRule:g,maxPayouts:f,betAmount:p,setBetAmount:y,selections:m,gamePrice:b,toggleSelection:w}=br(),x=o.colors,k=i?vt(i,l,g):{min:0,max:0},S=k.min,C=bn(i)&&d?Math.min(k.max,h.length):k.max,B=a.default.useRef(!1);a.default.useEffect(()=>{B.current=!1},[i?.id]),a.default.useEffect(()=>{p<=0&&!B.current&&y(Math.max(20,b))},[p,b,y]);const z=a.default.useRef([]);z.current=function(e,t){const n=Object.keys(t).map(Number),o=new Set(n),r=e.filter(e=>o.has(e)),i=n.filter(e=>!r.includes(e)).sort((e,t)=>e-t);return 0===i.length&&r.length===e.length?e:[...r,...i]}(z.current,m);const v=function({selections:e,order:t,minReq:n,maxReq:o,stake:r,payout20:i=0}){const l=[];for(const h of t){const t=e[h];t&&l.push({id:h,number:l.length+1,side:t})}const a=l.length,c=a>=n,s=Math.max(0,n-a),d=c?i*(r/20):0;return{legs:l,count:a,dividend:d,dividendText:pt(d),ctaLabel:c?`Continue with ${a} ›`:0===a?`Select at least ${n}`:`Add ${s} more to continue`,ctaDisabled:!c,atMax:o>0&&a>=o}}({selections:m,order:z.current,minReq:S,maxReq:C,stake:p,payout20:i?Oi(f?.[i.id],z.current.length):0}),F=M(o),W=P(o),T=x.primaryText,A=O(x.primary,H(o),x.primaryText),L={fontSize:10,fontWeight:"700",letterSpacing:.8,textTransform:"uppercase"},R=gr(i),[D,I]=a.default.useState(null),E=v.legs.find(e=>e.id===D)??null,j=E?h.find(e=>e.id===E.id)?.description??h.find(e=>e.id===E.id)?.proposition??"":"";return(0,s.jsxs)(c.View,{children:[(0,s.jsx)(c.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:{minHeight:44,marginBottom:6},contentContainerStyle:{alignItems:"center"},children:0===v.legs.length?(0,s.jsx)(c.Text,{style:{fontSize:13,color:x.textMuted},children:"Tap Yes or No to start building your multi."}):v.legs.map(e=>(0,s.jsx)(ol,{number:e.number,color:"yes"===e.side?F:W,label:`Leg ${e.number}, answered ${e.side}`,selected:e.id===D,onSelect:()=>I(t=>t===e.id?null:e.id)},e.id))}),E?(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:8},children:[(0,s.jsx)(c.Text,{style:{paddingHorizontal:6,paddingVertical:2,borderRadius:4,fontSize:10,fontWeight:"700",textTransform:"uppercase",backgroundColor:"yes"===E.side?F:W,color:"#fff"},children:E.side}),(0,s.jsx)(c.Text,{numberOfLines:2,style:{flex:1,fontSize:12,color:x.text},children:j}),(0,s.jsx)(ve,{theme:o,variant:"ghost",size:"sm",radius:"pill",onPress:()=>{I(null),w(E.id,E.side)},children:"Remove"})]}):v.legs.length>0?(0,s.jsx)(c.Text,{style:{fontSize:12,marginBottom:8,color:x.textMuted},children:"Tap a leg to read it."}):null,(0,s.jsxs)(c.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:10,marginBottom:8},children:[(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:8},children:[(0,s.jsx)(c.Text,{style:[L,{color:x.textMuted}],children:Hi}),R?(0,s.jsxs)(c.View,{accessibilityLabel:`${Hi}. ${fr(i)}`,style:{flexDirection:"row",alignItems:"center",gap:8,borderRadius:10,paddingHorizontal:12,paddingVertical:8,borderWidth:1,borderColor:x.border,backgroundColor:x.backgroundAlt},children:[(0,s.jsx)(c.Text,{style:{fontSize:15,fontWeight:"800",color:x.text},children:pt(p)}),(0,s.jsx)(c.Text,{style:{fontSize:10,color:x.textMuted},children:"locked"})]}):(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",width:108,borderRadius:10,borderWidth:1,borderColor:x.border,backgroundColor:x.background,overflow:"hidden"},children:[(0,s.jsx)(c.Text,{style:{paddingLeft:11,fontSize:16,fontWeight:"800",color:x.text},children:"$"}),(0,s.jsx)(c.TextInput,{keyboardType:"decimal-pad",accessibilityLabel:Hi,value:p>0?String(p):"",onChangeText:e=>{B.current=!0,y(Math.max(0,parseFloat(e)||0))},style:{flex:1,minWidth:0,paddingVertical:8,paddingLeft:3,paddingRight:8,fontSize:15,fontWeight:"800",color:x.text,fontFamily:r}})]})]}),(0,s.jsxs)(c.View,{style:{flexGrow:1,flexBasis:150,minWidth:0,flexDirection:"row",alignItems:"baseline",justifyContent:"flex-end",gap:8,borderRadius:10,paddingHorizontal:12,paddingVertical:6,backgroundColor:x.primary},children:[(0,s.jsx)(c.Text,{style:[L,{color:T,opacity:.7}],children:"Potential dividend"}),(0,s.jsx)(c.Text,{style:{fontSize:20,fontWeight:"800",color:A},children:v.dividendText})]})]}),!n&&(0,s.jsx)(ve,{theme:o,block:!0,size:"md",radius:"lg",disabled:v.ctaDisabled,onPress:()=>{u(),e?.()},children:v.ctaLabel})]})}function il({view:e,onChange:t}){const{theme:n}=br(),o=n.colors,r="list"===e?"swipe":"list",i="swipe"===r;return(0,s.jsxs)(c.TouchableOpacity,{accessibilityRole:"button",onPress:()=>t(r),style:[ll.button,{borderColor:o.primary,backgroundColor:Ui(o.primary,.1)}],children:[(0,s.jsx)(c.Text,{style:[ll.glyph,{color:o.primary}],children:i?"⇆":"☰"}),(0,s.jsx)(c.Text,{style:[ll.label,{color:o.primary}],children:i?"Swipe cards":"List view"})]})}var ll=c.StyleSheet.create({button:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:0,borderRadius:999,borderWidth:1,paddingHorizontal:12,paddingVertical:6},glyph:{fontSize:13},label:{fontSize:11,fontWeight:"700"}}),al=c.StyleSheet.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function cl({tiers:e,selectedCount:t,onSelect:n,colors:o,bodyFont:r,extraBetAmount:i,buttonLabel:l,columnLabel:d="Legs",buildYourOwn:h,quickPickOnly:u,onQuickPick:g,collapsible:f,expanded:p,onExpandedChange:y,summaryTiers:m}){const[b,w]=(0,a.useState)(!1),x=p??b,k=null!=i&&20!==i,S=k?`$${Math.round(i)} returns`:"$20 returns",C=e.some(e=>e.payout20>0),B=!!f&&!x,z=C&&!B,v=(m??e).reduce((e,t)=>t.payout20>e?t.payout20:e,0),F=k&&v>0?v*(i/20):v,W=e.length>0?82*e.length+8*Math.max(0,e.length-1):82,T=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.View,{style:{flexDirection:"column",gap:8,width:70,flexShrink:0},children:[(0,s.jsx)(c.View,{style:{paddingVertical:6,justifyContent:"center"},children:(0,s.jsx)(c.Text,{style:[sl.labelText,{color:o.textMuted,fontFamily:r}],children:u?"Quick Pick":d})}),z&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.View,{style:{paddingVertical:4,justifyContent:"center"},children:(0,s.jsx)(c.Text,{style:[sl.labelText,{color:o.textMuted,fontFamily:r}],children:"Dividend"})}),(0,s.jsx)(c.View,{style:{paddingVertical:4,justifyContent:"center"},children:(0,s.jsx)(c.Text,{style:[sl.labelText,{color:o.textMuted,fontFamily:r}],children:S})})]})]}),u?(0,s.jsxs)(c.View,{style:{gap:8,alignSelf:"flex-start",width:W},children:[(0,s.jsx)(Pi,{counts:(m??e).map(e=>e.count),onPick:e=>g?g(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&&!B&&(0,s.jsx)(c.View,{style:{flexDirection:"row",gap:8},children:e.map(({count:e,payout20:t})=>{const n=k&&t>0?t*(i/20):null;return(0,s.jsxs)(c.View,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[(0,s.jsx)(c.View,{style:[sl.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:(0,s.jsxs)(c.Text,{style:[sl.tableCellText,{color:o.success}],children:[e,"/",e]})}),(0,s.jsx)(c.View,{style:[sl.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:(0,s.jsx)(c.Text,{style:[sl.tableCellText,{color:o.primary}],children:t>0?pt(n??t):"—"})})]},String(e))})})]}):h?(0,s.jsxs)(c.View,{style:{gap:8,alignSelf:"flex-start",width:W},children:[(0,s.jsx)(c.TouchableOpacity,{onPress:()=>n(e[0]?.count??0),style:[sl.optionButton,{paddingHorizontal:0,alignSelf:"stretch",alignItems:"center",borderColor:o.buttonPrimary??o.primary,backgroundColor:o.buttonPrimary??o.primary}],children:(0,s.jsx)(c.Text,{style:[sl.optionButtonText,{color:o.buttonPrimaryText??"#ffffff",fontFamily:r}],children:"Make Your Selections"})}),C&&!B&&(0,s.jsx)(c.View,{style:{flexDirection:"row",gap:8},children:e.map(({count:e,payout20:t})=>{const n=t>0?pt(k?t*(i/20):t):"—";return(0,s.jsxs)(c.View,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[(0,s.jsx)(c.View,{style:[sl.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:(0,s.jsxs)(c.Text,{style:[sl.tableCellText,{color:o.success}],children:[e,"/",e]})}),(0,s.jsx)(c.View,{style:[sl.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:(0,s.jsx)(c.Text,{style:[sl.tableCellText,{color:o.primary}],children:n})})]},String(e))})})]}):e.map(({count:e,payout20:a})=>{const d=t===e,h=k&&a>0?a*(i/20):null;return(0,s.jsxs)(c.View,{style:{flexDirection:"column",gap:8,alignItems:"center",width:82},children:[(0,s.jsx)(c.TouchableOpacity,{onPress:()=>n(e),accessibilityState:{selected:d},style:[sl.optionButton,{alignSelf:"stretch",alignItems:"center",borderColor:d?o.buttonPrimary??o.primary:o.border??o.primary,backgroundColor:d?o.buttonPrimary??o.primary:o.buttonSecondary??o.background}],children:(0,s.jsx)(c.Text,{style:[sl.optionButtonText,{color:d?o.buttonPrimaryText??"#ffffff":o.buttonSecondaryText??o.text,fontFamily:r}],numberOfLines:1,children:l?l(e):`Multi ${e}`})}),!B&&a>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.View,{style:[sl.tableCell,{backgroundColor:`${o.success}15`,alignSelf:"stretch"}],children:(0,s.jsxs)(c.Text,{style:[sl.tableCellText,{color:o.success}],children:[e,"/",e]})}),k?null!=h&&(0,s.jsx)(c.View,{style:[sl.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:(0,s.jsx)(c.Text,{style:[sl.tableCellText,{color:o.primary}],children:pt(h)})}):(0,s.jsx)(c.View,{style:[sl.tableCell,{backgroundColor:`${o.primary}12`,alignSelf:"stretch"}],children:(0,s.jsx)(c.Text,{style:[sl.tableCellText,{color:o.primary}],children:pt(a)})})]})]},String(e))})]});return(0,s.jsxs)(c.View,{style:{flexDirection:"column",gap:8,alignSelf:"stretch"},children:[u?(0,s.jsx)(c.View,{style:{flexDirection:"row",gap:8,alignItems:"flex-start",paddingBottom:6},children:T}):(0,s.jsx)(c.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:{flexDirection:"row",gap:8,alignItems:"flex-start",paddingBottom:6},children:T}),f&&(C?(0,s.jsxs)(c.View,{style:{alignSelf:"flex-start",flexDirection:"row",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4,maxWidth:"100%"},children:[(0,s.jsxs)(c.Text,{style:{fontSize:12,fontWeight:"600",color:o.text,fontFamily:r},children:["Win up to ",(0,s.jsx)(c.Text,{style:{color:o.heading??o.text??o.primary},children:pt(F)}),(0,s.jsx)(c.Text,{style:{color:o.textMuted},children:` for $${k?Math.round(i):20}`})]}),(0,s.jsx)(c.TouchableOpacity,{onPress:()=>{return e=!x,void 0===p&&w(e),void y?.(e);var e},accessibilityRole:"button",accessibilityState:{expanded:x},style:{paddingVertical:4,paddingHorizontal:10,borderRadius:6,backgroundColor:x?o.buttonSecondary:o.background??"#ffffff",borderWidth:1,borderColor:x?o.primary??o.border:o.border},children:(0,s.jsx)(c.Text,{style:{color:o.text,fontSize:12,fontWeight:"600",fontFamily:r},children:x?"Hide dividends":"Show dividends"})})]}):(0,s.jsx)(c.View,{style:{alignSelf:"flex-start",paddingVertical:2,opacity:0},pointerEvents:"none",children:(0,s.jsx)(c.Text,{style:{fontSize:12,fontWeight:"600",fontFamily:r},children:"Show dividends"})}))]})}var sl=c.StyleSheet.create({labelText:{fontSize:12,fontWeight:"400"},optionButton:{borderWidth:1,borderRadius:8,paddingHorizontal:12,paddingVertical:6},optionButtonText:{fontSize:14,fontWeight:"600"},tableCell:{paddingHorizontal:8,paddingVertical:4,borderRadius:6,alignItems:"center",justifyContent:"center"},tableCellText:{fontSize:12,fontWeight:"700"}});function dl(e){return{game_id:e.selectedGame.id,rule_id:e.selectedRule?.id??null,proposition_ids:e.selectedPropositionIds,selections:e.selections,stake:e.betAmount}}function hl({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,selectedGame:r,selectedEventId:i,propositions:l,selections:a,toggleSelection:d,upgradePropositionCount:h,selectedPropositionCount:u,disableQuickPick:g,answeredCount:f,selectedRule:p}=br(),y=n.colors,{width:m}=(0,c.useWindowDimensions)(),b=m>=640,w=r?vt(r,u,p):{min:0,max:0},x=w.min,k=bn(r)&&i?Math.min(w.max,l.length):w.max,S=x>0&&x===k,C=!(r?.allowed_propositions&&r.allowed_propositions.length>0)&&x>0&&k>x,B=S?k:k||l.length,z=e=>{const t=Math.max(0,Math.min(e??B,l.length));for(const r of Object.keys(a)){const e=Number(r);d(e,a[e])}const{yesPicks:n,noPicks:o}=Zt(l,t);for(const r of n)d(r.id,"yes");for(const r of o)d(r.id,"no");h(t)},v=!g&&l.length>0,F=C?Array.from({length:k-x+1},(e,t)=>x+t):[],W=f>0?f:x||B;return(0,s.jsxs)(c.View,{style:[ul.header,{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12}],children:[(0,s.jsxs)(c.View,{children:[(0,s.jsx)(c.Text,{style:[ul.title,{fontSize:b?24:20,color:L(n),fontFamily:o}],children:"Place Your Wager"}),r&&(0,s.jsx)(zi,{onBack:e,hideActions:t,label:r.game_name})]}),v&&(F.length>1?(0,s.jsx)(Pi,{counts:F,onPick:e=>z(e),onDoubleAction:()=>z(W),colors:y,menuShadow:A(n)}):(0,s.jsx)(c.View,{style:{flexShrink:0},children:(0,s.jsx)(wr,{onPress:()=>z()})}))]})}var ul=c.StyleSheet.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"}}),gl=c.Platform.select({ios:"Menlo",default:"monospace"});function fl({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o,bodyFont:r,placedEntry:i}=br(),l=n.colors,{width:a}=(0,c.useWindowDimensions)(),h=a>=640;return(0,s.jsxs)(c.View,{style:pl.titleRow,children:[(0,s.jsxs)(c.View,{style:pl.titleText,children:[(0,s.jsx)(c.Text,{style:[pl.title,h&&pl.titleWide,{color:L(n),fontFamily:o}],children:"Entry Placed!"}),(0,s.jsx)(zi,{onBack:e,hideActions:t,children:(0,s.jsx)(c.Text,{style:[pl.message,{color:l.textMuted,fontFamily:r}],children:i?(0,s.jsxs)(s.Fragment,{children:["Entry"," ",(0,s.jsxs)(c.Text,{style:{color:l.primary,fontWeight:"600",fontFamily:gl},children:["#",i.id]})," ","successfully submitted"]}):"Your entry has been successfully submitted"})})]}),(0,s.jsx)(c.View,{style:[pl.checkCircle,h&&pl.checkCircleWide,{backgroundColor:`${l.success}20`}],children:(0,s.jsx)(d.default,{width:h?28:24,height:h?28:24,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(d.Path,{d:"M5 13l4 4L19 7",stroke:l.success,strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})})})]})}var pl=c.StyleSheet.create({container:{flex:1},content:{flex:1},titleRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,paddingLeft:8},titleText:{flex:1,minWidth:0},checkCircle:{width:48,height:48,borderRadius:999,alignItems:"center",justifyContent:"center",flexShrink:0},checkCircleWide:{width:56,height:56},title:{fontSize:20,fontWeight:"700",lineHeight:28},titleWide:{fontSize:24,lineHeight:32},message:{fontSize:14},summaryCard:{width:"100%",borderRadius:12,padding:16,borderWidth:1},summaryCardWide:{padding:20},summaryHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:12,gap:12},summaryHeading:{fontSize:14,fontWeight:"600"},summaryHeadingWide:{fontSize:16},statsGrid:{flexDirection:"row",flexWrap:"wrap",gap:12},statCell:{flexBasis:"45%",flexGrow:1},statCellWide:{flexBasis:"30%"},statLabel:{fontSize:10,fontWeight:"600",letterSpacing:.25,textTransform:"uppercase"},statValue:{fontSize:14,fontWeight:"600",marginTop:2},pickList:{gap:6},pickRow:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:12,paddingVertical:8,borderRadius:4},footer:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingTop:16}});function yl({onBack:e,hideActions:t}={}){const{theme:n,headingFont:o}=br(),{width:r}=(0,c.useWindowDimensions)(),i=r>=640;return(0,s.jsxs)(c.View,{style:ml.header,children:[(0,s.jsx)(c.Text,{style:[ml.title,{fontSize:i?24:20,color:L(n),fontFamily:o}],children:"Your Entries"}),(0,s.jsx)(zi,{onBack:e,hideActions:t})]})}var ml=c.StyleSheet.create({container:{flex:1},header:{paddingLeft:8},title:{fontWeight:"700"},content:{flex:1}});function bl({onBack:e,hideActions:t,backLabel:n="Category"}={}){const{theme:o,selectedCategory:r}=br(),i=o.colors,l=ce(o),{width:a}=(0,c.useWindowDimensions)(),d=a>=640;return(0,s.jsxs)(c.View,{style:d&&wl.headerWide,children:[(0,s.jsx)(c.Text,{style:[wl.sectionTitle,d&&wl.sectionTitleWide,{color:i.primary,fontFamily:l}],children:Bt(r)}),(0,s.jsx)(zi,{onBack:e,hideActions:t,label:e?n:void 0})]})}var wl=c.StyleSheet.create({container:{flex:1},centered:{flex:1,flexDirection:"row",justifyContent:"center",alignItems:"center",padding:32},titleWrap:{marginBottom:8},headerWide:{paddingLeft:8},sectionTitle:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1.4,marginBottom:12},sectionTitleWide:{fontSize:12,letterSpacing:2.16,marginBottom:16},content:{flex:1},grid:{flexDirection:"row",flexWrap:"wrap",gap: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 xl(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 kl({ink:e,ball:t,size:n,balls:o=1}){return(0,s.jsxs)(d.default,{width:n,height:n,viewBox:"2 12 76 62",fill:"none",children:[(0,s.jsx)(d.Line,{x1:"9",y1:"18",x2:"71",y2:"18",stroke:e,strokeWidth:2.5,strokeLinecap:"round"}),(0,s.jsx)(d.Path,{d:"M12 18L13 25.67 M17.6 18L19 25.67 M17.6 18L13 25.67 M23.2 18L25 25.67 M23.2 18L19 25.67 M28.8 18L31 25.67 M28.8 18L25 25.67 M34.4 18L37 25.67 M34.4 18L31 25.67 M40 18L43 25.67 M40 18L37 25.67 M45.6 18L49 25.67 M45.6 18L43 25.67 M51.2 18L55 25.67 M51.2 18L49 25.67 M56.8 18L61 25.67 M56.8 18L55 25.67 M62.4 18L67 25.67 M62.4 18L61 25.67 M68 18L67 25.67 M13 25.67L15.5 33.33 M19 25.67L21.62 33.33 M19 25.67L15.5 33.33 M25 25.67L27.75 33.33 M25 25.67L21.62 33.33 M31 25.67L33.88 33.33 M31 25.67L27.75 33.33 M37 25.67L40 33.33 M37 25.67L33.88 33.33 M43 25.67L46.12 33.33 M43 25.67L40 33.33 M49 25.67L52.25 33.33 M49 25.67L46.12 33.33 M55 25.67L58.38 33.33 M55 25.67L52.25 33.33 M61 25.67L64.5 33.33 M61 25.67L58.38 33.33 M67 25.67L64.5 33.33 M15.5 33.33L19 41 M21.62 33.33L25 41 M21.62 33.33L19 41 M27.75 33.33L31 41 M27.75 33.33L25 41 M33.88 33.33L37 41 M33.88 33.33L31 41 M40 33.33L43 41 M40 33.33L37 41 M46.12 33.33L49 41 M46.12 33.33L43 41 M52.25 33.33L55 41 M52.25 33.33L49 41 M58.38 33.33L61 41 M58.38 33.33L55 41 M64.5 33.33L61 41 M19 41L23 48.67 M25 41L28.67 48.67 M25 41L23 48.67 M31 41L34.33 48.67 M31 41L28.67 48.67 M37 41L40 48.67 M37 41L34.33 48.67 M43 41L45.67 48.67 M43 41L40 48.67 M49 41L51.33 48.67 M49 41L45.67 48.67 M55 41L57 48.67 M55 41L51.33 48.67 M61 41L57 48.67 M23 48.67L25 56.33 M28.67 48.67L31 56.33 M28.67 48.67L25 56.33 M34.33 48.67L37 56.33 M34.33 48.67L31 56.33 M40 48.67L43 56.33 M40 48.67L37 56.33 M45.67 48.67L49 56.33 M45.67 48.67L43 56.33 M51.33 48.67L55 56.33 M51.33 48.67L49 56.33 M57 48.67L55 56.33 M25 56.33L22 64 M31 56.33L31 60.1 M31 56.33L22 64 M37 56.33L40 59.5 M37 56.33L31 60.1 M43 56.33L49 60.1 M43 56.33L40 59.5 M49 56.33L58 64 M49 56.33L49 60.1 M55 56.33L58 64",fill:"none",stroke:e,strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round",opacity:.9}),(0,s.jsx)(d.Path,{d:"M12 18 C12.17 19.28 12.42 23.12 13 25.67 C13.58 28.23 14.5 30.77 15.5 33.33 C16.5 35.88 17.75 38.44 19 41 C20.25 43.56 22 46.12 23 48.67 C24 51.23 25.17 53.77 25 56.33 C24.83 58.88 22.5 62.72 22 64 M68 18 C67.83 19.28 67.58 23.12 67 25.67 C66.42 28.23 65.5 30.77 64.5 33.33 C63.5 35.88 62.25 38.44 61 41 C59.75 43.56 58 46.12 57 48.67 C56 51.23 54.83 53.77 55 56.33 C55.17 58.88 57.5 62.72 58 64",fill:"none",stroke:e,strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)(d.Ellipse,{cx:"40",cy:"64",rx:"18",ry:"4.5",fill:"none",stroke:e,strokeWidth:2.2}),(o>=2?[{cx:33,cy:52,r:6.6},{cx:48,cy:49,r:6.6}]:[{cx:40,cy:50,r:8}]).map((e,n)=>(0,s.jsx)(d.Circle,{cx:e.cx,cy:e.cy,r:e.r,fill:t},n))]})}function Sl({ink:e,ball:t,size:n}){return(0,s.jsxs)(d.default,{width:n,height:n,viewBox:"0 0 100 100",fill:"none",children:[(0,s.jsx)(d.Circle,{cx:"50",cy:"50",r:"34",stroke:e,strokeWidth:3,opacity:.9}),(0,s.jsx)(d.Circle,{cx:"50",cy:"50",r:"23",stroke:e,strokeWidth:3,opacity:.65}),(0,s.jsx)(d.Circle,{cx:"50",cy:"50",r:"8",fill:t}),(0,s.jsx)(d.Line,{x1:"80",y1:"20",x2:"55",y2:"45",stroke:e,strokeWidth:4,strokeLinecap:"round"}),(0,s.jsx)(d.Path,{d:"M50 50 l8 -3 -3 8 z",fill:e})]})}function Cl({ink:e,ball:t,size:n}){const o=[{x:16,h:22},{x:40,h:40},{x:64,h:60}];return(0,s.jsxs)(d.default,{width:n,height:n,viewBox:"0 0 100 100",fill:"none",children:[(0,s.jsx)(d.Line,{x1:"10",y1:"84",x2:"90",y2:"84",stroke:e,strokeWidth:2,opacity:.5}),o.map((n,r)=>(0,s.jsx)(d.Rect,{x:n.x,y:84-n.h,width:16,height:n.h,rx:3.5,fill:r===o.length-1?t:e,opacity:r===o.length-1?1:.5+.22*r},n.x)),(0,s.jsx)(d.Path,{d:"M14 60 L38 48 L62 30 L86 14",stroke:e,strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),(0,s.jsx)(d.Path,{d:"M86 14 l-9 1 M86 14 l1 9",stroke:e,strokeWidth:3,strokeLinecap:"round"})]})}function Bl({kind:e,balls:t,...n}){return"safety_net"===e?(0,s.jsx)(kl,{...n,balls:t}):"pick"===e?(0,s.jsx)(Cl,{...n}):(0,s.jsx)(Sl,{...n})}function zl({kind:e,size:t=56,balls:n}){const{theme:o}=br(),r=o.colors,i=o.brand?.chip??r.primary,l=o.brand?.icon??r.primaryText,a=H(o);return(0,s.jsx)(c.View,{style:{width:t,height:t,borderRadius:.3*t,backgroundColor:i,borderWidth:1,borderColor:xl(l,.16),alignItems:"center",justifyContent:"center"},children:(0,s.jsx)(Bl,{kind:e,ink:l,ball:a,balls:n,size:Math.round(.68*t)})})}function vl({option:e,renderDividends:t}){const{theme:n}=br(),o=n.colors,r=ce(n),i=o.primary,l=H(n),a=e.dividends??[];return t?(0,s.jsx)(s.Fragment,{children:t(e)}):(0,s.jsxs)(c.View,{style:Ll.dividends,children:[(0,s.jsxs)(c.View,{style:Ll.dividendRow,children:[(0,s.jsx)(c.Text,{style:[Ll.dividendsCaption,{color:o.textMuted}],children:"IF YOU LAND"}),(0,s.jsxs)(c.Text,{style:[Ll.dividendsCaption,{color:o.textMuted}],children:["$",20," RETURNS"]})]}),a.map((t,n)=>{const a=e.tierLegs?.[n];return(0,s.jsxs)(c.View,{style:Ll.dividendTierRow,children:[(0,s.jsxs)(c.View,{style:Ll.dividendLabelCol,children:[(0,s.jsx)(c.Text,{style:[Ll.dividendLabel,{color:o.text}],children:t.label}),null!=a&&a>0&&(0,s.jsxs)(c.View,{style:Ll.tierLegs,accessibilityElementsHidden:!0,importantForAccessibility:"no-hide-descendants",children:[Array.from({length:a}).map((e,t)=>(0,s.jsx)(c.View,{style:[Ll.tierLegDot,{backgroundColor:i}]},t)),0===t.misses&&(0,s.jsx)(c.View,{style:[Ll.tierLegBall,{backgroundColor:l}]})]})]}),(0,s.jsx)(c.Text,{style:[Ll.dividendMult,{color:i,fontFamily:r}],children:pt(t.payout20)})]},t.misses)})]})}function Fl({option:e,renderDividends:t}){const{theme:n}=br(),o=n.colors,r=e.dividends??[],i=r.reduce((e,t)=>t.payout20>e?t.payout20:e,0),[l,d]=(0,a.useState)(!1),u=(0,a.useRef)(null),g=(0,a.useRef)(null),[f,p]=(0,a.useState)(null),[y,m]=(0,a.useState)(!1),[b,w]=(0,a.useState)(null),x="web"===c.Platform.OS,k=40+36*Math.max(r.length,1)+12,S=(0,a.useCallback)(()=>{const e=u.current;if(!e||"function"!=typeof e.getBoundingClientRect)return;const t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom,o=t.top,r=n<k&&o>n;p({left:t.left,top:r?t.top-6:t.bottom+6,flipUp:r})},[k]);(0,a.useLayoutEffect)(()=>{if(!l||!x)return void p(null);S();const e=()=>d(!1),t=()=>S();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[l,x,S]),(0,a.useEffect)(()=>{if(!l)return;if(x){const e=e=>{const t=u.current,n=e.target;t&&"function"==typeof t.contains&&t.contains(n)||g.current&&g.current.contains(n)||d(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}const e=u.current;e&&"function"==typeof e.measureInWindow&&e.measureInWindow((e,t,n,o)=>{const r=c.Dimensions.get("window").height-(t+o);m(r<k&&t>r),w({x:e,y:t,width:n,height:o})})},[l,x,k]);const C=t?(0,s.jsx)(c.View,{style:{paddingHorizontal:12,paddingVertical:8},children:t(e)}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.View,{style:{paddingHorizontal:12,paddingVertical:6,borderBottomWidth:1,borderBottomColor:o.border},children:(0,s.jsxs)(c.Text,{style:{fontSize:10,fontWeight:"700",color:o.text,opacity:.55,letterSpacing:.5,textTransform:"uppercase"},children:["Dividends for $",20]})}),r.map((e,t)=>(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderTopWidth:0===t?0:1,borderTopColor:o.border,gap:12},children:[(0,s.jsx)(c.Text,{style:{fontWeight:"700",color:o.text,fontSize:13,flex:1},children:e.label}),(0,s.jsx)(c.Text,{style:{fontWeight:"700",color:e.payout20>0?o.heading??o.text:o.textMuted,fontSize:13,textAlign:"right"},children:e.payout20>0?pt(e.payout20):"—"})]},e.misses))]});return(0,s.jsxs)(c.View,{style:{alignSelf:"center",maxWidth:"100%",width:"100%",alignItems:"center"},children:[(0,s.jsxs)(c.View,{style:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",columnGap:8,rowGap:4,maxWidth:"100%"},children:[i>0?(0,s.jsxs)(c.Text,{style:{fontSize:12,fontWeight:"600",color:o.text},children:["Win up to ",(0,s.jsx)(c.Text,{style:{color:o.heading??o.text},children:pt(i)}),(0,s.jsxs)(c.Text,{style:{color:o.textMuted},children:[" for $",20]})]}):null,(0,s.jsxs)(c.View,{ref:u,collapsable:!1,style:{position:"relative",alignSelf:"flex-start"},children:[(0,s.jsx)(c.TouchableOpacity,{onPress:()=>d(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:l},style:{paddingVertical:4,paddingHorizontal:10,borderRadius:6,backgroundColor:l?o.buttonSecondary:o.background,borderWidth:1,borderColor:l?o.primary??o.border:o.border},children:(0,s.jsx)(c.Text,{style:{color:o.text,fontSize:12,fontWeight:"600"},children:l?"Hide dividends":"Show dividends"})}),(0,s.jsx)(tn,{visible:l&&!x,anchor:b,onClose:()=>d(!1),flipUp:y,align:"left",children:(0,s.jsx)(c.View,{style:{elevation:8,backgroundColor:o.background,borderRadius:8,borderWidth:1,borderColor:o.border,minWidth:220,shadowColor:"#000",shadowOffset:{width:0,height:6},shadowOpacity:.18,shadowRadius:12,overflow:"hidden"},children:C})})]})]}),l&&x&&f&&"undefined"!=typeof document?(0,h.createPortal)((0,s.jsx)("div",{ref:g,style:{position:"fixed",left:f.left,top:f.top,transform:f.flipUp?"translateY(-100%)":void 0,zIndex:9999,backgroundColor:o.background,border:`1px solid ${o.border}`,borderRadius:8,minWidth:220,overflow:"hidden",boxShadow:"0 8px 24px rgba(0,0,0,0.18)"},children:C}),document.body):null]})}function Wl({kind:e,option:t,onSelect:n,renderDividends:o}){const{theme:r}=br(),i=r.colors,l=ce(r),h=L(r),u=i.primary,g=i.selectionCard??i.backgroundAlt,{width:f}=(0,c.useWindowDimensions)(),p=f>=640,y="safety_net"===e?Math.max(1,(t.detail?.length??2)-1):void 0,m=!!o||(t.dividends?.length??0)>0,b=m&&!!t.dividendsInline,[w,x]=(0,a.useState)(!1);return(0,s.jsxs)(c.View,{...ze(()=>x(!0),()=>x(!1)),style:[Ll.card,p&&Ll.cardWide,{backgroundColor:g,borderColor:w?u:i.border,shadowColor:w?u:"#000",shadowOpacity:w?.28:.08,shadowRadius:w?14:8,shadowOffset:{width:0,height:w?12:8},elevation:w?4:1,transform:[{translateY:w?-2:0}]}],children:[(0,s.jsxs)(c.TouchableOpacity,{onPress:n,activeOpacity:.85,accessibilityRole:"button",style:Ll.cardMain,children:[(0,s.jsx)(zl,{kind:e,balls:y,size:60}),(0,s.jsxs)(c.View,{style:Ll.cardText,children:[(0,s.jsx)(c.Text,{style:[Ll.cardTitle,{color:h,fontFamily:l}],children:t.label}),t.stat?(0,s.jsx)(c.View,{style:[Ll.statChip,{backgroundColor:xl(u,.12)}],children:(0,s.jsx)(c.Text,{style:[Ll.statChipText,{color:u}],children:t.stat.toUpperCase()})}):null,(0,s.jsx)(c.View,{style:Ll.detailBlock,children:t.detail?.map(e=>(0,s.jsx)(c.Text,{style:[Ll.detailLine,{color:i.textMuted}],children:e},e))})]}),(0,s.jsx)(c.View,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:w?2:0}]},children:(0,s.jsx)(d.default,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(d.Path,{d:"m9 6 6 6-6 6",stroke:u,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]}),m?(0,s.jsx)(c.View,{style:[Ll.dividendsWrap,{borderTopColor:xl(h,.08)}],children:b?(0,s.jsx)(vl,{option:t,renderDividends:o}):(0,s.jsx)(Fl,{option:t,renderDividends:o})}):null]})}function Tl({kind:e,highlights:t,onSelect:n,accessibilityLabel:o}){const{theme:r}=br(),i=r.colors,l=L(r),h=H(r),u=i.primary,g=i.selectionCard??i.backgroundAlt,{width:f}=(0,c.useWindowDimensions)(),p=f>=640,[y,m]=(0,a.useState)(!1);return(0,s.jsx)(c.View,{...ze(()=>m(!0),()=>m(!1)),style:[Ll.card,p&&Ll.cardWide,{backgroundColor:g,borderColor:y?u:i.border,shadowColor:y?u:"#000",shadowOpacity:y?.28:.08,shadowRadius:y?14:8,shadowOffset:{width:0,height:y?12:8},elevation:y?4:1,transform:[{translateY:y?-2:0}]}],children:(0,s.jsxs)(c.TouchableOpacity,{onPress:n,activeOpacity:.85,accessibilityRole:"button",accessibilityLabel:o,style:Ll.cardMain,children:[(0,s.jsx)(zl,{kind:e,size:60}),(0,s.jsx)(c.View,{style:{flex:1,minWidth:0,gap:8},children:t.map(e=>(0,s.jsxs)(c.View,{style:Ll.bulletRow,children:[(0,s.jsx)(c.View,{style:[Ll.dot,{backgroundColor:h}]}),(0,s.jsx)(c.Text,{style:[Ll.bulletText,{color:l}],children:e})]},e))}),(0,s.jsx)(c.View,{style:{alignSelf:"center",flexShrink:0,transform:[{translateX:y?2:0}]},children:(0,s.jsx)(d.default,{width:22,height:22,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)(d.Path,{d:"m9 6 6 6-6 6",stroke:u,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})})})]})})}function Al({onContinue:e,onBack:t,hideTitle:n,config:o,renderDividends:r,backLabel:i="Games"}){const{theme:l,selectedGame:d,selectedPropositionCount:h,setExpectedCorrect:u,handlePropositionCountChange:g,bodyFont:f,screenSize:p}=br(),y=l.colors,m=ce(l),b="mobile"===p,{width:w}=(0,c.useWindowDimensions)(),x=w>=640,k=(0,a.useMemo)(()=>o??io(d,h),[o,d,h]),S=k?.options??[],C=t=>{null!=t?.expectedCorrect&&u(t.expectedCorrect),null!=t?.propositionCount&&g(t.propositionCount),e?.()};if(!d||!k)return(0,s.jsx)(c.View,{children:(0,s.jsx)(c.Text,{style:{color:y.textMuted,fontFamily:f},children:"No rule setup required."})});const B=k.kind,z=k.headline??k.heroTitle,v=k.continueLabel??"Continue";return(0,s.jsxs)(c.View,{style:[Ll.container,{backgroundColor:y.background}],children:[t?(0,s.jsx)(c.View,{style:Ll.backRow,children:(0,s.jsx)(Bi,{onBack:t,label:i})}):null,(0,s.jsxs)(Le,{style:Ll.inner,children:[n?null:(0,s.jsx)(c.Text,{accessibilityRole:"header",style:[Ll.sectionTitle,Ll.sectionTitleInBody,{color:y.primary,fontFamily:m,textAlign:"center"}],children:k.title}),(0,s.jsxs)(c.View,{style:Ll.headerBlock,children:[(0,s.jsx)(pi,{iconUrl:fe(d),gameName:d.game_name,height:b?24:32,chipColor:y.primary,textColor:y.text,iconColor:y.primaryText,accentColor:l.brand?.accent,compact:b}),k.subtitle?(0,s.jsx)(c.Text,{style:[Ll.pickSubtitle,{color:y.textMuted}],children:k.subtitle}):null,z||k.heroTagline?(0,s.jsx)(c.Text,{style:[Ll.tagline,{color:y.textMuted}],children:k.heroTagline??z}):null]}),(0,s.jsx)(tl,{}),S.length>0?(0,s.jsx)(c.View,{style:[Ll.cardList,x&&S.length>1&&Ll.cardGrid],children:S.map(e=>(0,s.jsx)(c.View,{style:x&&S.length>1?Ll.cardCell:void 0,children:(0,s.jsx)(Wl,{kind:B,option:e,onSelect:()=>C(e),renderDividends:r})},e.id))}):k.highlights&&k.highlights.length>0?(0,s.jsx)(Tl,{kind:B,highlights:k.highlights,onSelect:()=>C(),accessibilityLabel:v}):null]})]})}var Ll=c.StyleSheet.create({container:{flex:1},backRow:{paddingHorizontal:16,marginBottom:4},inner:{flex:1,paddingHorizontal:16,maxWidth:768,width:"100%",alignSelf:"center"},header:{marginBottom:8,paddingHorizontal:16},headerCompact:{paddingHorizontal:12},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},sectionTitleCompact:{fontSize:10,letterSpacing:1.4,marginBottom:12},sectionTitleInBody:{marginBottom:12},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({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:l,selectedGame:d,selectedPropositionCount:h,handlePropositionCountChange:u,setExpectedCorrect:g,setBetAmount:f,quickPickGame:p,goToSportSelection:y}=br(),m=l.colors,b=ae(l),w=ce(l),x=L(l),k=j(l),{width:S}=(0,c.useWindowDimensions)(),C=S>=640,[B,z]=(0,a.useState)(!1),v=(0,a.useMemo)(()=>r??Xo(d),[r,d]),[F,W]=(0,a.useState)(()=>v?null!=h&&v.legOptions.includes(h)?h:v.defaultLegs:8),[T,A]=(0,a.useState)(()=>v?.defaultStake??20);if(!d||!Ko(d)||!v)return(0,s.jsx)(c.View,{style:[Dl.container,{backgroundColor:m.background}],children:(0,s.jsx)(c.Text,{style:{color:m.textMuted,fontFamily:b},children:"No game set available."})});const R=Zo(T,F,{operatorMargin:v.operatorMargin,perLegProbability:v.perLegProbability}),D=T>=v.minStake,M=(e,t)=>(0,s.jsxs)(c.View,{style:Dl.controlLabelRow,children:[(0,s.jsx)(c.Text,{style:[Dl.controlLabelText,{color:m.textMuted}],children:e}),(0,s.jsx)(c.Text,{style:[Dl.controlValueText,{color:x}],children:t})]});return(0,s.jsxs)(c.View,{style:[Dl.container,{backgroundColor:m.background}],children:[n?(0,s.jsx)(c.View,{style:Dl.backRow,children:(0,s.jsx)(Bi,{onBack:n,label:i})}):null,(0,s.jsxs)(Le,{style:Dl.inner,children:[(0,s.jsx)(Ki,{eyebrow:o?null:"The fastest multi",iconUrl:fe(d),gameName:d.game_name,tagline:v.tagline}),(0,s.jsx)(tl,{}),(0,s.jsxs)(c.View,{style:[Dl.ticket,C&&Dl.ticketWide,{backgroundColor:k,borderColor:m.border,shadowColor:x,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[M("Legs",`${F} legs`),(0,s.jsx)(c.View,{style:Dl.chipRow,children:v.legOptions.map(e=>{const t=e===F;return(0,s.jsx)(c.TouchableOpacity,{onPress:()=>W(e),accessibilityRole:"radio",accessibilityState:{selected:t},activeOpacity:.8,style:[Dl.chip,{backgroundColor:t?m.primary:"transparent",borderColor:t?m.primary:m.border}],children:(0,s.jsx)(c.Text,{style:[Dl.chipText,{color:t?m.primaryText:m.textMuted}],children:e})},e)})}),(0,s.jsxs)(c.View,{style:Dl.hintRow,children:[(0,s.jsx)(c.Text,{style:[Dl.hintText,{color:m.textMuted}],children:"Easier to land"}),(0,s.jsx)(c.Text,{style:[Dl.hintText,{color:m.textMuted}],children:"Bigger prize"})]}),(0,s.jsxs)(c.View,{style:Dl.stakeBlock,children:[M("Stake",pt(T)),(0,s.jsxs)(c.View,{style:[Dl.inputWrap,{borderColor:B?m.borderFocus??m.primary:m.border,backgroundColor:m.backgroundAlt}],children:[(0,s.jsx)(c.Text,{style:[Dl.inputPrefix,{color:m.textMuted}],children:"$"}),(0,s.jsx)(c.TextInput,{keyboardType:"decimal-pad",placeholder:"Enter stake",placeholderTextColor:m.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>z(!0),onBlur:()=>z(!1),value:T?String(T):"",onChangeText:e=>{if(""===e)return void A(0);const t=Number(e);Number.isFinite(t)&&A((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==v.maxStake?Math.min(t,v.maxStake):t})(t))},style:[Dl.input,{color:m.textAlt??m.text,fontFamily:b}]})]}),(0,s.jsx)(c.View,{style:Dl.chipRow,children:v.quickStakes.map(e=>{const t=e===T;return(0,s.jsx)(c.TouchableOpacity,{onPress:()=>A(e),activeOpacity:.8,style:[Dl.stakeChip,{backgroundColor:t?m.primary:"transparent",borderColor:t?m.primary:m.border}],children:(0,s.jsxs)(c.Text,{style:[Dl.chipText,{color:t?m.primaryText:m.textMuted}],children:["$",e]})},e)})}),!D&&T>0?(0,s.jsxs)(c.Text,{style:[Dl.errorText,{color:m.error}],children:["Minimum stake is ",pt(v.minStake),"."]}):null]}),(0,s.jsxs)(c.View,{style:[Dl.dividendBlock,{borderTopColor:Ui(x,.08)}],children:[(0,s.jsxs)(c.View,{style:Dl.dividendCaptionRow,children:[(0,s.jsxs)(c.Text,{style:[Dl.dividendCaption,{color:m.textMuted}],children:["If all ",F," land"]}),(0,s.jsxs)(c.Text,{style:[Dl.dividendCaption,{color:m.textMuted}],children:[pt(T)," returns"]})]}),(0,s.jsxs)(c.View,{style:Dl.dividendMainRow,children:[(0,s.jsxs)(c.View,{style:Dl.dividendMainLeft,children:[(0,s.jsx)(c.Text,{style:[Dl.perfectTicket,{color:m.text}],children:"Perfect ticket"}),(0,s.jsx)($i,{legs:F})]}),(0,s.jsx)(c.Text,{style:[Dl.prize,C&&Dl.prizeWide,{color:m.primary,fontFamily:w}],children:pt(R.prize)})]}),(0,s.jsxs)(c.Text,{style:[Dl.multipleLine,{color:m.textMuted}],children:[(P=R.multiple,`×${(Math.round(10*P)/10).toLocaleString("en-US",{maximumFractionDigits:1})}`)," your stake · total return, stake included"]}),(0,s.jsx)(c.Text,{style:[Dl.allOrNothing,{color:m.textMuted}],children:"All or nothing. Miss a single leg and the ticket does not pay."})]})]}),(0,s.jsxs)(c.View,{style:[Dl.modeCards,C&&Dl.modeCardsWide],children:[(0,s.jsx)(c.View,{style:C?Dl.modeCardCell:void 0,children:(0,s.jsx)(_i,{tile:(0,s.jsx)(qi,{iconUrl:fe(d),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{D&&(u(F),g(F),f(T),y(),t?.())}})}),(0,s.jsx)(c.View,{style:C?Dl.modeCardCell:void 0,children:(0,s.jsx)(_i,{tile:(0,s.jsx)(qi,{iconUrl:`${se}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{D&&(g(F),f(T),p(d,F,T),e?.())}})})]})]})]});var P}var Dl=c.StyleSheet.create({container:{flex:1},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},headerCompact:{paddingHorizontal:12},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},sectionTitleCompact:{fontSize:10,letterSpacing:1.4,marginBottom:12},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 Ml({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:l,selectedGame:d,selectedPropositionCount:h,handlePropositionCountChange:u,setExpectedCorrect:g,setBetAmount:f,quickPickGame:p,goToSportSelection:y}=br(),m=l.colors,b=ae(l),w=ce(l),x=L(l),k=j(l),{width:S}=(0,c.useWindowDimensions)(),C=S>=640,[B,z]=(0,a.useState)(null),[v,F]=(0,a.useState)(null),W=(0,a.useMemo)(()=>r??fo(d),[r,d]),[T,A]=(0,a.useState)(()=>W?.defaultDividend??1e4),[R,D]=(0,a.useState)(()=>{const e=W?.dividends[0]?.rungs.map(e=>e.legs)??[];return null!=h&&e.includes(h)?h:W?.defaultLegs??9});if(!d||!so(d)||!W)return(0,s.jsx)(c.View,{children:(0,s.jsx)(c.Text,{style:{color:m.textMuted,fontFamily:b},children:"No dividend series available."})});const M=W.dividends.find(e=>e.dividend===T)??W.dividends[0],P=M.rungs.find(e=>e.legs===R)??M.rungs[0],H=Math.max(...M.rungs.map(e=>e.legs)),O=Math.min(...M.rungs.map(e=>e.legs));return(0,s.jsxs)(c.View,{style:Pl.container,children:[n?(0,s.jsx)(c.View,{style:Pl.backRow,children:(0,s.jsx)(Bi,{onBack:n,label:i})}):null,(0,s.jsxs)(Le,{style:Pl.inner,children:[(0,s.jsx)(Ki,{eyebrow:o?null:"Pick your dividend",iconUrl:fe(d),gameName:d.game_name,tagline:W.tagline}),(0,s.jsx)(tl,{}),(0,s.jsxs)(c.View,{style:[Pl.ticket,C&&Pl.ticketWide,{backgroundColor:k,borderColor:m.border,shadowColor:x,shadowOpacity:.12,shadowRadius:12,shadowOffset:{width:0,height:8},elevation:1}],children:[(I=pt(M.dividend),(0,s.jsxs)(c.View,{style:Pl.sectionLabelRow,children:[(0,s.jsx)(c.Text,{style:[Pl.sectionLabelText,{color:m.textMuted}],children:"Set dividend"}),I?(0,s.jsx)(c.Text,{style:[Pl.sectionValueText,{color:x}],children:I}):null]})),(0,s.jsx)(Xi,{ariaLabel:"Set dividend",children:W.dividends.map(e=>{const t=e.dividend===T,n=B===e.dividend;return(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>A(e.dividend),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...ze(()=>z(e.dividend),()=>z(null)),style:[Pl.dividendTile,Qi(C),{backgroundColor:t?Ui(m.primary,.08):"transparent",borderColor:t||n?m.primary:m.border}],children:[(0,s.jsx)(c.Text,{style:[Pl.dividendValue,C&&Pl.dividendValueWide,{color:x,fontFamily:w}],children:pt(e.dividend)}),(0,s.jsxs)(c.Text,{style:[Pl.dividendFrom,{color:m.textMuted}],children:["from ",pt(e.rungs[0]?.stake??0)]})]},e.dividend)})}),(0,s.jsx)(c.Text,{style:[Pl.ticketNote,{color:m.textMuted}],children:"One set amount — it does not move, whatever you spend."}),(0,s.jsxs)(c.View,{style:[Pl.ladderDivider,{borderTopColor:Ui(x,.08)}],children:[(0,s.jsxs)(c.View,{style:Pl.ladderHeaderRow,children:[(0,s.jsx)(c.Text,{style:[Pl.ladderHeaderText,{color:m.textMuted}],children:"Legs to land"}),(0,s.jsx)(c.Text,{style:[Pl.ladderHeaderText,{color:m.textMuted}],children:"Your stake"})]}),(0,s.jsx)(c.View,{style:Pl.rungList,children:M.rungs.map(e=>{const t=e.legs===R,n=v===e.legs;return(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>D(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...ze(()=>F(e.legs),()=>F(null)),style:[Pl.rungRow,{backgroundColor:t?Ui(m.primary,.08):"transparent",borderColor:t||n?m.primary:m.border}],children:[(0,s.jsxs)(c.View,{style:Pl.rungLeft,children:[(0,s.jsxs)(c.Text,{style:[Pl.rungLegs,{color:m.text}],children:[e.legs," legs",C?e.legs===H?" · the long climb":e.legs===O?" · the sprint":"":""]}),(0,s.jsx)($i,{legs:e.legs})]}),(0,s.jsx)(c.Text,{style:[Pl.rungStake,C&&Pl.rungStakeWide,{color:m.primary,fontFamily:w}],children:pt(e.stake)})]},e.legs)})}),(0,s.jsx)(c.Text,{style:[Pl.ticketNote,{color:m.textMuted}],children:"Same dividend on every rung — a little for the long climb, more for the short one."})]})]}),(0,s.jsxs)(c.View,{style:[Pl.cardList,C&&Pl.cardListWide],children:[(0,s.jsx)(c.View,{style:C?Pl.cardCell:void 0,children:(0,s.jsx)(_i,{tile:(0,s.jsx)(qi,{iconUrl:fe(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${P.legs} legs`,`${pt(P.stake)} chasing the ${pt(M.dividend)}`],onSelect:()=>{var e;u((e=P).legs),g(e.legs),f(e.stake),y(),t?.()}})}),(0,s.jsx)(c.View,{style:C?Pl.cardCell:void 0,children:(0,s.jsx)(_i,{tile:(0,s.jsx)(qi,{iconUrl:`${se}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${P.legs} legs at ${pt(P.stake)}`,"Straight to the bet slip"],onSelect:()=>{g(P.legs),f(P.stake),p(d,P.legs,P.stake),e?.()}})})]})]})]});var I}var Pl=c.StyleSheet.create({container:{flex:1},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},titleWrap:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},eyebrowLeft:{textAlign:"left"},eyebrowSectionWide:{marginBottom:20},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 Hl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:l,selectedGame:d,selectedPropositionCount:h,handlePropositionCountChange:u,setExpectedCorrect:g,setBetAmount:f,quickPickGame:p,goToSportSelection:y,screenSize:m,bodyFont:b}=br(),w=l.colors,x="mobile"===m,k=ce(l),S=L(l),C=H(l),B=j(l),{width:z}=(0,c.useWindowDimensions)(),v=z>=640,[F,W]=(0,a.useState)(null),T=(0,a.useMemo)(()=>r??nr(d),[r,d]),[A,R]=(0,a.useState)(()=>T?null!=h&&T.ladders.some(e=>e.legs===h)?h:T.defaultLegs:8),[D,M]=(0,a.useState)(()=>T?.defaultStake??50),[P,O]=(0,a.useState)(!1);if(!d||!$o(d)||!T)return(0,s.jsx)(c.View,{children:(0,s.jsx)(c.Text,{style:{color:w.textMuted,fontFamily:b},children:"No ladders available."})});const I=T.ladders.find(e=>e.legs===A)??T.ladders[0],E=er(I,D),N=tr(I,D),G=[...E].reverse(),Y=x&&G.length>4,V=Y&&!P?G.slice(0,3):G,U=(e,t)=>(0,s.jsxs)(c.View,{style:Ol.sectionLabelRow,children:[(0,s.jsx)(c.Text,{style:[Ol.sectionLabelText,{color:w.textMuted}],children:e}),t?(0,s.jsx)(c.Text,{style:[Ol.sectionLabelValue,{color:S}],children:t}):null]});return(0,s.jsxs)(c.View,{style:[Ol.container,{backgroundColor:w.background}],children:[n?(0,s.jsx)(c.View,{style:Ol.backRow,children:(0,s.jsx)(Bi,{onBack:n,label:i})}):null,(0,s.jsxs)(Le,{style:Ol.inner,children:[(0,s.jsx)(Ki,{eyebrow:o?null:"Climb the ladder. Stack the prizes.",iconUrl:fe(d),gameName:d.game_name,tagline:T.tagline}),(0,s.jsx)(tl,{}),(0,s.jsxs)(c.View,{style:[Ol.builder,v&&Ol.builderWide,{backgroundColor:B,borderColor:w.border,shadowColor:S,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[U("Your bet",pt(D)),(0,s.jsx)(c.View,{style:Ol.betRow,children:T.stakes.map(e=>{const t=e===D;return(0,s.jsx)(c.TouchableOpacity,{onPress:()=>M(e),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},style:[Ol.betChip,{backgroundColor:t?w.primary:"transparent",borderColor:t?w.primary:w.border}],children:(0,s.jsxs)(c.Text,{style:[Ol.betChipText,{color:t?w.primaryText:w.textMuted}],children:["$",e]})},e)})}),(0,s.jsx)(c.Text,{style:[Ol.betNote,{color:w.textMuted}],children:"Every prize scales with your bet."}),(0,s.jsxs)(c.View,{style:Ol.laddersBlock,children:[U(`${T.ladders.length} ladders to choose from`),(0,s.jsx)(Xi,{ariaLabel:"Ladder",children:T.ladders.map(e=>{const t=e.legs===A,n=F===e.legs;return(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>R(e.legs),activeOpacity:.85,accessibilityRole:"radio",accessibilityState:{selected:t},...ze(()=>W(e.legs),()=>W(null)),style:[Ol.ladderTile,Qi(v,"17%"),{backgroundColor:t?Ui(w.primary,.08):"transparent",borderColor:t||n?w.primary:w.border}],children:[(0,s.jsxs)(c.Text,{style:[Ol.ladderTileLabel,{color:w.primary}],children:["Ladder ",e.legs]}),(0,s.jsx)(c.Text,{style:[Ol.ladderTilePrize,{color:S,fontFamily:k}],children:pt(tr(e,D))}),(0,s.jsxs)(c.Text,{style:[Ol.ladderTileNote,{color:w.textMuted}],children:["Win from ",e.firstPayingTier," right"]})]},e.legs)})})]}),(0,s.jsxs)(c.View,{style:[Ol.stackTable,{borderTopColor:Ui(S,.08)}],children:[(0,s.jsxs)(c.Text,{style:[Ol.stackIntro,{color:w.text}],children:["Ladder ",I.legs," wins from ",I.firstPayingTier," right — every tier stacks into the"," ",(0,s.jsx)(c.Text,{style:{fontWeight:"700",color:S},children:pt(N)})," Full Stack Prize."]}),(0,s.jsxs)(c.View,{style:Ol.rungHeader,children:[(0,s.jsx)(c.Text,{style:[Ol.rungHeaderCaption,{color:w.textMuted}],children:"Get right"}),(0,s.jsxs)(c.View,{style:Ol.rungHeaderRight,children:[(0,s.jsx)(c.Text,{style:[Ol.rungHeaderCaption,Ol.rungColPrize,{color:w.textMuted}],children:"Tier pays"}),(0,s.jsx)(c.Text,{style:[Ol.rungHeaderCaption,Ol.rungColTotal,{color:w.textMuted}],children:"You collect"})]})]}),(0,s.jsx)(c.View,{style:Ol.rungList,children:V.map(e=>{const t=e.atLeast===I.legs;return(0,s.jsxs)(c.View,{style:Ol.rungRow,children:[(0,s.jsxs)(c.View,{style:Ol.rungLeft,children:[(0,s.jsxs)(c.View,{style:Ol.rungLabelRow,children:[(0,s.jsxs)(c.Text,{style:[Ol.rungLabel,{color:w.text}],children:[e.atLeast," of ",I.legs]}),t&&v?(0,s.jsx)(c.View,{style:[Ol.fullStackChip,{backgroundColor:Ui(C,.35)}],children:(0,s.jsx)(c.Text,{style:[Ol.fullStackChipText,{color:S}],children:"Full stack"})}):null]}),(0,s.jsx)($i,{legs:e.atLeast,prizeBall:t})]}),(0,s.jsxs)(c.View,{style:Ol.rungRight,children:[(0,s.jsx)(c.Text,{style:[Ol.rungPrize,Ol.rungColPrice,{color:w.textMuted}],children:pt(e.prize)}),(0,s.jsx)(c.Text,{style:[Ol.rungCumulative,Ol.rungColTotal,v&&Ol.rungCumulativeWide,{color:w.primary,fontFamily:k}],children:pt(e.cumulative)})]})]},e.atLeast)})}),Y?(0,s.jsx)(c.TouchableOpacity,{onPress:()=>O(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:P},style:[Ol.tierToggle,{borderColor:w.border}],children:(0,s.jsx)(c.Text,{style:[Ol.tierToggleText,{color:w.primary}],children:P?"Show fewer tiers":`Show all ${G.length} tiers`})}):null,(0,s.jsxs)(c.Text,{style:[Ol.stackNote,{color:w.textMuted}],children:["Land below ",I.firstPayingTier," right and the ticket does not pay."]})]})]}),(0,s.jsxs)(c.View,{style:[Ol.modeCards,v&&Ol.modeCardsWide],children:[(0,s.jsx)(c.View,{style:v?Ol.modeCardCell:void 0,children:(0,s.jsx)(_i,{tile:(0,s.jsx)(qi,{iconUrl:fe(d),size:60}),label:"Pick my own",stat:"Your calls",detail:[`A clean yes or no on all ${I.legs} outcomes`,`Win from ${I.firstPayingTier} right — every tier stacks`],onSelect:()=>{u(I.legs),g(I.legs),f(D),y(),t?.()}})}),(0,s.jsx)(c.View,{style:v?Ol.modeCardCell:void 0,children:(0,s.jsx)(_i,{tile:(0,s.jsx)(qi,{iconUrl:`${se}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${I.legs} legs at ${pt(D)}`,"Straight to the bet slip"],onSelect:()=>{g(I.legs),f(D),p(d,I.legs,D),e?.()}})})]})]})]})}var Ol=c.StyleSheet.create({container:{flex:1},inner:{flex:1,paddingHorizontal:16,width:"100%"},backRow:{paddingHorizontal:16},titleWrap:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},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 Il({depth:e,theme:t}){const n=t.colors,o=H(t);return(0,s.jsx)(c.View,{style:Nl.variantEdgeBar,children:Array.from({length:9}).map((t,r)=>{const i=Math.min(r,8-r)<e;return(0,s.jsx)(c.View,{style:[Nl.variantEdgeSlot,i?{backgroundColor:r<4.5?n.primary:o}:{borderWidth:1,borderColor:n.border}]},r)})})}function El({legs:e,correct:t}){const{theme:n}=br(),o=n.colors.primary;return(0,s.jsx)(c.View,{style:{flexDirection:"row",alignItems:"center"},children:Array.from({length:e}).map((e,n)=>{const r=n<t;return(0,s.jsx)(c.Text,{style:{width:14,marginRight:2,fontSize:14,lineHeight:16,fontWeight:"700",textAlign:"center",color:r?o:Ui(o,.45)},children:r?"✓":"✕"},n)})})}function jl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:l,selectedGame:d,selectedPropositionCount:h,handlePropositionCountChange:u,setExpectedCorrect:g,setBetAmount:f,quickPickGame:p,goToSportSelection:y,games:m,selectGame:b}=br(),w=l.colors,x=ae(l),k=ce(l),S=L(l),C=j(l),{width:B}=(0,c.useWindowDimensions)(),z=B>=640,[v,F]=(0,a.useState)(!1),W=(0,a.useMemo)(()=>r??En(d),[r,d]),[T,A]=(0,a.useState)(()=>W?null!=h&&W.legOptions.includes(h)?h:W.defaultLegs:8),[R,D]=(0,a.useState)(()=>W?.defaultStake??20),[M,P]=(0,a.useState)(!1);if(!d||!On(d)||!W)return(0,s.jsx)(c.View,{children:(0,s.jsx)(c.Text,{style:{color:w.textMuted,fontFamily:x},children:"No mirror available."})});const H=W.variant,O=W.legOptions,I=O.includes(T)?T:O[0],E=function(e,t,n,o){const r=Nn(e),i=t*(1-(o?.operatorMargin??.21875)),l=Math.round(Math.pow(2,n)),a=[];let c=0;for(let s=0;s<r.depth;s++){const e=Gn(n,s),t=n-s===s?e:2*e;c+=t,a.push({distance:s,label:r.tierNames[s]??`Tier ${s+1}`,correctCounts:n-s===s?[s]:[n-s,s],prize:Math.round(i/r.depth*l/(2*e)*100)/100,outcomes:t})}return{variant:r.id,legs:n,stake:t,tiers:a,totalOutcomes:l,winningOutcomes:c,oddsOneIn:Math.round(l/c*1e4)/1e4}}(H.id,R,I,{operatorMargin:W.operatorMargin}),N=function(e){const{legs:t}=e;return e.tiers.flatMap(e=>e.correctCounts.map(n=>({correct:n,label:n===t?`All ${t} right`:0===n?`All ${t} wrong`:`${n} of ${t} right`,prize:e.prize})))}(E),G=function(e,t){if(!t)return[];const n=Tn(t);return n<Fn.premier?[]:jn.flatMap(t=>{const o=e.find(e=>On(e)&&Pn(e.rule)===Hn[t.id]&&Tn(e)===n);return o?[{variant:t,game:o}]:[]})}(m,d),Y=I-(H.depth-1);if(G.length>1&&!M)return(0,s.jsxs)(c.View,{style:Nl.container,children:[n?(0,s.jsx)(c.View,{style:Nl.backRow,children:(0,s.jsx)(Bi,{onBack:n,label:i})}):null,(0,s.jsxs)(Le,{style:Nl.inner,children:[(0,s.jsx)(Ki,{eyebrow:o?null:"All right, or all wrong",iconUrl:fe(d),gameName:"Mirror",tagline:"Land near an edge. How wide the edge is, is the mirror you pick."}),(0,s.jsx)(tl,{}),(0,s.jsx)(c.View,{style:[Nl.modeCards,z&&Nl.modeCardsWide],children:G.map(({variant:e,game:t})=>{const n=En(t)?.legOptions??[];return(0,s.jsx)(c.View,{style:z?Nl.modeCardCell:void 0,children:(0,s.jsxs)(_i,{tile:(0,s.jsx)(qi,{iconUrl:fe(t),size:60}),label:e.name,stat:e.waysToWin,detail:[e.description,...n.length>0?[`${n[0]}–${n[n.length-1]} legs`]:[]],onSelect:()=>{b(t),P(!0)},children:[(0,s.jsx)(Il,{depth:e.depth,theme:l}),(0,s.jsxs)(c.View,{style:Nl.variantEdgeLabels,children:[(0,s.jsx)(c.Text,{style:[Nl.variantEdgeText,{color:w.textMuted}],children:"All wrong"}),(0,s.jsx)(c.Text,{style:[Nl.variantEdgeText,{color:w.textMuted}],children:"All right"})]})]})},t.id)})})]})]});const V=R>=W.minStake,U=(e,t)=>(0,s.jsxs)(c.View,{style:Nl.controlLabel,children:[(0,s.jsx)(c.Text,{style:[Nl.controlLabelText,{color:w.textMuted}],children:e}),(0,s.jsx)(c.Text,{style:[Nl.controlValueText,{color:S}],children:t})]});return(0,s.jsxs)(c.View,{style:Nl.container,children:[G.length>1?(0,s.jsx)(c.View,{style:Nl.backRow,children:(0,s.jsx)(Bi,{onBack:()=>P(!1),label:"Mirrors"})}):n?(0,s.jsx)(c.View,{style:Nl.backRow,children:(0,s.jsx)(Bi,{onBack:n,label:i})}):null,(0,s.jsxs)(Le,{style:Nl.inner,children:[(0,s.jsx)(Ki,{eyebrow:o?null:"All right, or all wrong",iconUrl:fe(d),gameName:d.game_name,tagline:W.tagline}),(0,s.jsx)(tl,{}),(0,s.jsxs)(c.View,{style:Nl.variantBlock,children:[U(H.name,H.waysToWin),(0,s.jsx)(Il,{depth:H.depth,theme:l}),(0,s.jsxs)(c.View,{style:Nl.variantEdgeLabels,children:[(0,s.jsx)(c.Text,{style:[Nl.variantEdgeText,{color:w.textMuted}],children:"All wrong"}),(0,s.jsx)(c.Text,{style:[Nl.variantEdgeText,{color:w.textMuted}],children:`${O[0]}–${O[O.length-1]} legs`}),(0,s.jsx)(c.Text,{style:[Nl.variantEdgeText,{color:w.textMuted}],children:"All right"})]})]}),(0,s.jsxs)(c.View,{style:[Nl.ticket,z&&Nl.ticketWide,{backgroundColor:C,borderColor:w.border,shadowColor:S,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[U("Legs",`${I} legs`),(0,s.jsx)(c.View,{style:Nl.chipRow,children:O.map(e=>{const t=e===I;return(0,s.jsx)(c.TouchableOpacity,{onPress:()=>A(e),accessibilityRole:"radio",accessibilityState:{selected:t},style:[Nl.legChip,{backgroundColor:t?w.primary:"transparent",borderColor:t?w.primary:w.border}],children:(0,s.jsx)(c.Text,{style:[Nl.chipText,{color:t?w.primaryText:w.textMuted}],children:e})},e)})}),(0,s.jsxs)(c.View,{style:Nl.hintRow,children:[(0,s.jsx)(c.Text,{style:[Nl.hintText,{color:w.textMuted}],children:"Easier to sweep"}),(0,s.jsx)(c.Text,{style:[Nl.hintText,{color:w.textMuted}],children:"Bigger prize"})]}),(0,s.jsxs)(c.View,{style:Nl.stakeBlock,children:[U("Stake",pt(R)),(0,s.jsxs)(c.View,{style:[Nl.inputWrap,{borderColor:v?w.borderFocus??w.primary:w.border,backgroundColor:w.backgroundAlt}],children:[(0,s.jsx)(c.Text,{style:[Nl.inputPrefix,{color:w.textMuted}],children:"$"}),(0,s.jsx)(c.TextInput,{keyboardType:"numeric",placeholder:"Enter stake",placeholderTextColor:w.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>F(!0),onBlur:()=>F(!1),value:R?String(R):"",onChangeText:e=>{if(""===e)return void D(0);const t=Number(e);Number.isFinite(t)&&D((e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==W.maxStake?Math.min(t,W.maxStake):t})(t))},style:[Nl.input,{color:w.textAlt??w.text,fontFamily:x}]})]}),(0,s.jsx)(c.View,{style:Nl.quickStakeRow,children:W.quickStakes.map(e=>{const t=e===R;return(0,s.jsx)(c.TouchableOpacity,{onPress:()=>D(e),style:[Nl.stakeChip,{backgroundColor:t?w.primary:"transparent",borderColor:t?w.primary:w.border}],children:(0,s.jsx)(c.Text,{style:[Nl.chipText,{color:t?w.primaryText:w.textMuted}],children:`$${e}`})},e)})}),!V&&R>0?(0,s.jsx)(c.Text,{style:[Nl.errorText,{color:w.error}],children:`Minimum stake is ${pt(W.minStake)}.`}):null]}),(0,s.jsxs)(c.View,{style:[Nl.winSection,{borderTopColor:Ui(S,.08)}],children:[(0,s.jsxs)(c.View,{style:Nl.winHeader,children:[(0,s.jsx)(c.Text,{style:[Nl.winHeaderText,{color:w.textMuted}],children:"What it pays"}),(0,s.jsx)(c.Text,{style:[Nl.waysChip,{backgroundColor:Ui(w.primary,.12),color:w.primary}],children:H.waysToWin})]}),(0,s.jsx)(c.View,{style:Nl.winRows,children:N.map(e=>(0,s.jsxs)(c.View,{style:Nl.winRow,children:[(0,s.jsxs)(c.View,{style:Nl.winRowLeft,children:[(0,s.jsx)(c.Text,{style:[Nl.winRowLabel,{color:w.text}],children:e.label}),(0,s.jsx)(El,{legs:I,correct:e.correct})]}),(0,s.jsx)(c.Text,{style:[Nl.winRowPrize,z&&Nl.winRowPrizeWide,{color:w.primary,fontFamily:k}],children:pt(e.prize)})]},e.correct))}),(0,s.jsx)(c.Text,{style:[Nl.splitNote,{color:w.textMuted}],children:"Anything in between — a split card — does not pay."})]})]}),(0,s.jsxs)(c.View,{style:[Nl.cardList,z&&Nl.cardListWide],children:[(0,s.jsx)(c.View,{style:z?Nl.cardCell:void 0,children:(0,s.jsx)(_i,{tile:(0,s.jsx)(qi,{iconUrl:fe(d),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","Aim for the sweep — either direction pays"],onSelect:()=>{V&&(u(I),g(Y),f(R),y(),t?.())}})}),(0,s.jsx)(c.View,{style:z?Nl.cardCell:void 0,children:(0,s.jsx)(_i,{tile:(0,s.jsx)(qi,{iconUrl:`${se}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{V&&(g(Y),f(R),p(d,I,R),e?.())}})})]})]})]})}var Nl=c.StyleSheet.create({container:{flex:1,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},tagline:{marginTop:12,fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384},taglineWide:{fontSize:15,lineHeight:24},ticket:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},ticketWide:{paddingHorizontal:20,paddingVertical:20},variantBlock:{marginBottom:12},variantEdgeBar:{marginTop:8,flexDirection:"row",gap:3},variantEdgeSlot:{flex:1,height:14,borderRadius:4},variantEdgeLabels:{marginTop:4,flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},modeCards:{marginTop:16,gap:12},modeCardsWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},modeCardCell:{flexBasis:"30%",flexGrow:1,minWidth:"30%"},variantEdgeText:{fontSize:9,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},controlLabel:{marginBottom:8,flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},controlLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},controlValueText:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},chipRow:{flexDirection:"row",flexWrap:"wrap",gap:6},legChip:{minWidth:40,flexGrow:1,flexBasis:40,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},chipText:{fontSize:14,fontWeight:"700"},hintRow:{marginTop:8,flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},hintText:{fontSize:11,fontStyle:"italic"},stakeBlock:{marginTop:16},inputWrap:{flexDirection:"row",alignItems:"center",borderWidth:1,borderRadius:8,paddingHorizontal:12},inputPrefix:{fontSize:16,fontWeight:"700",marginRight:4},input:{flex:1,paddingVertical:12,fontSize:18,fontWeight:"600",fontVariant:["tabular-nums"]},quickStakeRow:{marginTop:8,flexDirection:"row",flexWrap:"wrap",gap:6},stakeChip:{minWidth:48,flexGrow:1,flexBasis:48,borderWidth:1,borderRadius:8,paddingHorizontal:4,paddingVertical:8,alignItems:"center",justifyContent:"center"},errorText:{marginTop:8,fontSize:12},winSection:{marginTop:16,borderTopWidth:1,paddingTop:12},winHeader:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between"},winHeaderText:{fontSize:10,fontWeight:"600",textTransform:"uppercase",letterSpacing:1},winRows:{marginTop:6,gap:8},winRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},winRowLeft:{flex:1,minWidth:0,gap:3},waysChip:{fontSize:11,fontWeight:"800",paddingHorizontal:8,paddingVertical:2,borderRadius:999,overflow:"hidden"},winRowLabel:{fontSize:13,fontWeight:"600"},winRowPrize:{fontSize:18,fontWeight:"800",fontVariant:["tabular-nums"]},winRowPrizeWide:{fontSize:20},splitNote:{marginTop:8,fontSize:11,fontStyle:"italic"},cardList:{marginTop:16,gap:12},cardListWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},cardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function Gl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:l,selectedGame:d,selectedPropositionCount:h,handlePropositionCountChange:u,setExpectedCorrect:g,setBetAmount:f,setSelectedRuleId:p,quickPickGame:y,goToSportSelection:m}=br(),b=l.colors,w=ae(l),x=ce(l),k=L(l),S=j(l),{width:C}=(0,c.useWindowDimensions)(),B=C>=640,[z,v]=(0,a.useState)(!1),F=(0,a.useMemo)(()=>r??to(d),[r,d]),[W,T]=(0,a.useState)(()=>F?.defaultModeId??"extra_shot"),[A,R]=(0,a.useState)(()=>{const e=F?.modes.find(e=>e.id===(F?.defaultModeId??"extra_shot"));return e?null!=h&&e.legOptions.includes(h)?h:e.defaultLegs:8}),[D,M]=(0,a.useState)(()=>F?.defaultStake??20);if(!d||!Un(d)||!F)return(0,s.jsx)(c.View,{style:[Yl.container,{backgroundColor:b.background}],children:(0,s.jsx)(c.Text,{style:{color:b.textMuted,fontFamily:w},children:"No safety net available."})});const P=F.modes.find(e=>e.id===W)??F.modes[0],H=Xn(D,A,P.allowedMisses,F.pricing),O=e=>{const t=Math.max(0,Math.round(100*e)/100);return null!==F.maxStake?Math.min(t,F.maxStake):t},I=D>=F.minStake,E=(e,t)=>(0,s.jsxs)(c.View,{style:Yl.controlLabelRow,children:[(0,s.jsx)(c.Text,{style:[Yl.controlLabelText,{color:b.textMuted}],children:e}),(0,s.jsx)(c.Text,{style:[Yl.controlValueText,{color:k}],children:t})]}),N=(e,t,n,o)=>(0,s.jsx)(c.TouchableOpacity,{onPress:o,accessibilityRole:"radio",accessibilityState:{selected:n},activeOpacity:.8,style:[Yl.chip,{backgroundColor:n?b.primary:"transparent",borderColor:n?b.primary:b.border}],children:(0,s.jsx)(c.Text,{style:[Yl.chipText,{color:n?b.primaryText:b.textMuted}],children:t})},e),G=[{label:"Perfect",amount:H.perfect},...H.nearMiss.map((e,t)=>({label:`All but ${t+1}`,amount:e}))];return(0,s.jsxs)(c.View,{style:[Yl.container,{backgroundColor:b.background}],children:[n?(0,s.jsx)(c.View,{style:Yl.backRow,children:(0,s.jsx)(Bi,{onBack:n,label:i})}):null,(0,s.jsxs)(Le,{style:Yl.inner,children:[(0,s.jsx)(Ki,{eyebrow:o?null:"Choose your safety net",iconUrl:fe(d),gameName:d.game_name,tagline:F.tagline}),(0,s.jsx)(tl,{}),(0,s.jsxs)(c.View,{style:[Yl.ticket,B&&Yl.ticketWide,{backgroundColor:S,borderColor:b.border,shadowColor:k,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[E("Safety net",P.label),(0,s.jsx)(c.View,{style:Yl.chipRow,children:F.modes.map(e=>N(e.id,e.label,e.id===P.id,()=>(e=>{const t=F.modes.find(t=>t.id===e);t&&(T(e),p(t.ruleId),t.legOptions.includes(A)||R(t.legOptions.reduce((e,t)=>Math.abs(t-A)<Math.abs(e-A)?t:e,t.legOptions[0])))})(e.id)))}),(0,s.jsx)(c.Text,{style:[Yl.modeExplain,B&&Yl.modeExplainWide,{color:b.textMuted}],children:P.explain}),(0,s.jsxs)(c.View,{style:Yl.legsBlock,children:[E("Legs",`${A} legs`),(0,s.jsx)(c.View,{style:Yl.chipRow,children:P.legOptions.map(e=>N(e,String(e),e===A,()=>R(e)))}),(0,s.jsxs)(c.View,{style:Yl.hintRow,children:[(0,s.jsx)(c.Text,{style:[Yl.hintText,{color:b.textMuted}],children:"Easier to land"}),(0,s.jsx)(c.Text,{style:[Yl.hintText,{color:b.textMuted}],children:"Bigger prizes"})]})]}),(0,s.jsxs)(c.View,{style:Yl.stakeBlock,children:[E("Stake",pt(D)),(0,s.jsxs)(c.View,{style:[Yl.inputWrap,{borderColor:z?b.borderFocus??b.primary:b.border,backgroundColor:b.backgroundAlt}],children:[(0,s.jsx)(c.Text,{style:[Yl.inputPrefix,{color:b.textMuted}],children:"$"}),(0,s.jsx)(c.TextInput,{keyboardType:"decimal-pad",placeholder:"Enter stake",placeholderTextColor:b.textMuted,accessibilityLabel:"Stake amount",onFocus:()=>v(!0),onBlur:()=>v(!1),value:D?String(D):"",onChangeText:e=>{if(""===e)return void M(0);const t=Number(e);Number.isFinite(t)&&M(O(t))},style:[Yl.input,{color:b.textAlt??b.text,fontFamily:w}]})]}),(0,s.jsx)(c.View,{style:Yl.chipRow,children:F.quickAdds.map(e=>(0,s.jsx)(c.TouchableOpacity,{onPress:()=>M(O((D||0)+e)),activeOpacity:.8,style:[Yl.stakeChip,{backgroundColor:"transparent",borderColor:b.border}],children:(0,s.jsxs)(c.Text,{style:[Yl.chipText,{color:b.textMuted}],children:["+$",e]})},e))}),!I&&D>0?(0,s.jsxs)(c.Text,{style:[Yl.errorText,{color:b.error}],children:["Minimum stake is ",pt(F.minStake),"."]}):null]}),(0,s.jsxs)(c.View,{style:[Yl.prizeBlock,{borderTopColor:Ui(k,.08)}],children:[(0,s.jsxs)(c.View,{style:Yl.prizeCaptionRow,children:[(0,s.jsx)(c.Text,{style:[Yl.prizeCaption,{color:b.textMuted}],children:"What you can win"}),(0,s.jsxs)(c.Text,{style:[Yl.prizeCaption,{color:b.textMuted}],children:[pt(D)," returns"]})]}),(0,s.jsxs)(c.View,{style:Yl.prizeRows,children:[G.map(e=>(0,s.jsxs)(c.View,{style:Yl.prizeRow,children:[(0,s.jsx)(c.Text,{style:[Yl.prizeRowLabel,B&&Yl.prizeRowLabelWide,{color:b.text}],children:e.label}),(0,s.jsx)(c.Text,{style:[Yl.prizeRowAmount,B&&Yl.prizeRowAmountWide,{color:b.primary,fontFamily:x}],children:pt(Math.round(e.amount))})]},e.label)),(0,s.jsxs)(c.View,{style:[Yl.sweepRow,{backgroundColor:b.primary}],children:[(0,s.jsxs)(c.View,{style:Yl.sweepLeft,children:[(0,s.jsx)(c.Text,{style:[Yl.sweepLabel,B&&Yl.sweepLabelWide,{color:b.primaryText,fontFamily:x}],children:"Clean sweep"}),(0,s.jsx)(c.Text,{style:[Yl.sweepSub,{color:b.primaryText}],children:"every leg right — all prizes"})]}),(0,s.jsx)(c.Text,{style:[Yl.sweepAmount,B&&Yl.sweepAmountWide,{color:b.primaryText,fontFamily:x}],children:pt(Math.round(H.sweep))})]})]}),(0,s.jsx)(c.Text,{style:[Yl.stakeNote,{color:b.textMuted}],children:"Total returns, stake included."}),(0,s.jsxs)(c.Text,{style:[Yl.missNote,{color:b.textMuted}],children:["Miss ",1===P.allowedMisses?"two":"three"," or more and the ticket does not pay."]})]})]}),(0,s.jsxs)(c.View,{style:[Yl.modeCards,B&&Yl.modeCardsWide],children:[(0,s.jsx)(c.View,{style:B?Yl.modeCardCell:void 0,children:(0,s.jsx)(_i,{tile:(0,s.jsx)(qi,{iconUrl:fe(d),size:60}),label:"Pick my own",stat:"Your calls",detail:["A clean yes or no on every leg","You read the games, you make the calls"],onSelect:()=>{I&&(p(P.ruleId),u(A),g(A-P.allowedMisses),f(D),m(),t?.())}})}),(0,s.jsx)(c.View,{style:B?Yl.modeCardCell:void 0,children:(0,s.jsx)(_i,{tile:(0,s.jsx)(qi,{iconUrl:`${se}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:["We fill every leg for you","Straight to the bet slip"],onSelect:()=>{I&&(p(P.ruleId),g(A-P.allowedMisses),f(D),y(d,A,D),e?.())}})})]})]})]})}var Yl=c.StyleSheet.create({container:{flex:1},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},headerCompact:{paddingHorizontal:12},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},sectionTitleCompact:{fontSize:10,letterSpacing:1.4,marginBottom:12},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 Vl({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,config:r,backLabel:i="Games"}){const{theme:l,selectedGame:d,handlePropositionCountChange:h,setExpectedCorrect:u,setBetAmount:g,setSelectedRuleId:f,quickPickGame:p,goToSportSelection:y}=br(),m=l.colors,b=ae(l),w=ce(l),x=L(l),k=j(l),S=O(m.primary,H(l),m.primaryText),{width:C}=(0,c.useWindowDimensions)(),B=C>=640,z=(0,a.useMemo)(()=>r??cr(d),[r,d]),[v,F]=(0,a.useState)(()=>z?.defaultUnit??10),[W,T]=(0,a.useState)(rr);if(!d||!or(d)||!z)return(0,s.jsx)(c.View,{style:[Ul.container,{backgroundColor:m.background}],children:(0,s.jsx)(c.Text,{style:{color:m.textMuted,fontFamily:b},children:"No card available."})});const A=ir(v,W,z),R=1*v,D=v>z.unitMin,M=v<z.unitMax,P=e=>F(t=>Math.min(z.unitMax,Math.max(z.unitMin,t+e*z.unitStep))),I=()=>{f(A.ruleId),u(A.lowestWinningCount),g(A.stake)},E=(e,t)=>(0,s.jsxs)(c.View,{style:Ul.controlLabelRow,children:[(0,s.jsx)(c.Text,{style:[Ul.controlLabelText,{color:m.textMuted}],children:e}),(0,s.jsx)(c.Text,{style:[Ul.controlValueText,{color:x}],children:t})]}),N=(e,t,n,o)=>(0,s.jsx)(c.TouchableOpacity,{onPress:n,disabled:!t,accessibilityRole:"button",accessibilityLabel:o,activeOpacity:.8,style:[Ul.stepButton,{backgroundColor:m.primary,opacity:t?1:.35}],children:(0,s.jsx)(c.Text,{style:[Ul.stepButtonText,{color:m.primaryText}],children:e})}),G={golden_point:`Go for the decider. Double your win to ${pt(v*z.baseMultiple*z.goldenPointFactor)}.`,captains_challenge:`Collect ${pt(v*z.challengeMultiple)} whenever you land ${z.legs-z.challengeMisses} or ${z.legs} of ${z.legs}. Stacks on a winning slip.`};return(0,s.jsxs)(c.View,{style:[Ul.container,{backgroundColor:m.background}],children:[n?(0,s.jsx)(c.View,{style:Ul.backRow,children:(0,s.jsx)(Bi,{onBack:n,label:i})}):null,(0,s.jsxs)(Le,{style:Ul.inner,children:[(0,s.jsx)(Ki,{eyebrow:o?null:"Set your play",iconUrl:fe(d),gameName:d.game_name,tagline:z.tagline}),(0,s.jsx)(tl,{}),(0,s.jsxs)(c.View,{style:[Ul.ticket,B&&Ul.ticketWide,{backgroundColor:k,borderColor:m.border,shadowColor:x,shadowOpacity:.14,shadowRadius:14,shadowOffset:{width:0,height:10},elevation:1}],children:[(0,s.jsxs)(c.View,{style:[Ul.playCard,{backgroundColor:m.primary}],children:[(0,s.jsxs)(c.View,{style:Ul.playCardSide,children:[(0,s.jsx)(c.Text,{style:[Ul.playCardKey,{color:m.primaryText}],children:"Total stake"}),(0,s.jsx)(c.Text,{style:[Ul.playCardStake,{color:m.primaryText,fontFamily:w}],children:pt(A.stake)})]}),(0,s.jsxs)(c.View,{style:[Ul.playCardSide,Ul.playCardRight],children:[(0,s.jsx)(c.Text,{style:[Ul.playCardKey,{color:m.primaryText}],children:"To win"}),(0,s.jsxs)(c.View,{style:Ul.playCardWinRow,children:[(0,s.jsx)(c.Text,{style:[Ul.playCardWin,{color:S,fontFamily:w}],children:pt(A.base)}),A.challenge>0?(0,s.jsxs)(c.Text,{style:[Ul.playCardChip,{backgroundColor:S,color:x}],children:["+",pt(A.challenge)]}):null]})]})]}),(0,s.jsxs)(c.View,{style:Ul.stakeBlock,children:[E("Your stake",`steps of ${pt(z.unitStep)}`),(0,s.jsxs)(c.View,{style:Ul.stepRow,children:[N("−",D,()=>P(-1),"Lower stake"),(0,s.jsxs)(c.View,{style:Ul.stepMid,children:[(0,s.jsx)(c.Text,{style:[Ul.stepValue,{color:x,fontFamily:w}],children:pt(v)}),(0,s.jsx)(c.Text,{style:[Ul.stepCaption,{color:m.textMuted}],children:"per play"})]}),N("+",M,()=>P(1),"Raise stake")]})]}),(0,s.jsx)(c.Text,{style:[Ul.playNote,{color:m.primary}],children:A.challenge>0?`Captain's Challenge pays ${pt(A.challenge)} on ${z.legs-z.challengeMisses} or ${z.legs} of ${z.legs}.`:""}),(0,s.jsxs)(c.View,{style:Ul.boostBlock,children:[E("Boost your card",`${pt(R)} each`),(0,s.jsx)(c.View,{style:Ul.boostRows,children:z.boosts.map(e=>{const t=W[e.id];return(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>{return t=e.id,T(e=>({...e,[t]:!e[t]}));var t},accessibilityRole:"switch",accessibilityState:{checked:t},activeOpacity:.85,style:[Ul.boostRow,{backgroundColor:t?Ui(m.primary,.08):"transparent",borderColor:t?m.primary:m.border}],children:[(0,s.jsxs)(c.View,{style:Ul.boostBody,children:[(0,s.jsxs)(c.View,{style:Ul.boostTitleRow,children:[(0,s.jsx)(c.Text,{style:[Ul.boostLabel,B&&Ul.boostLabelWide,{color:x,fontFamily:w}],children:e.label}),(0,s.jsx)(c.View,{style:[Ul.boostAmt,{backgroundColor:Ui(m.primary,.12)}],children:(0,s.jsxs)(c.Text,{style:[Ul.boostAmtText,{color:m.primary}],children:["+",pt(R*e.costUnits)]})})]}),(0,s.jsx)(c.Text,{style:[Ul.boostSub,B&&Ul.boostSubWide,{color:m.textMuted}],children:G[e.id]})]}),(0,s.jsx)(c.View,{style:[Ul.toggle,{backgroundColor:t?m.primary:m.border}],children:(0,s.jsx)(c.View,{style:[Ul.toggleKnob,{backgroundColor:m.background,transform:[{translateX:t?20:0}]}]})})]},e.id)})})]})]}),(0,s.jsxs)(c.View,{style:[Ul.modeCards,B&&Ul.modeCardsWide],children:[(0,s.jsx)(c.View,{style:B?Ul.modeCardCell:void 0,children:(0,s.jsx)(_i,{tile:(0,s.jsx)(qi,{iconUrl:fe(d),size:60}),label:`Pick my ${z.legs}`,stat:"Your calls",detail:["A clean yes or no on every call","You read the games, you make the calls"],onSelect:()=>{I(),h(z.legs),y(),t?.()}})}),(0,s.jsx)(c.View,{style:B?Ul.modeCardCell:void 0,children:(0,s.jsx)(_i,{tile:(0,s.jsx)(qi,{iconUrl:`${se}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:[`We fill all ${z.legs} calls for you`,"Straight to the bet slip"],onSelect:()=>{I(),p(d,z.legs,A.stake),e?.()}})})]})]})]})}var Ul=c.StyleSheet.create({container:{flex:1},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},headerCompact:{paddingHorizontal:12},sectionTitle:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},sectionTitleCompact:{fontSize:10,letterSpacing:1.4,marginBottom:12},ticket:{borderWidth:2,borderRadius:24,paddingHorizontal:16,paddingVertical:16},ticketWide:{paddingHorizontal:20,paddingVertical:20},playCard:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderRadius:16,paddingHorizontal:16,paddingVertical:14},playCardSide:{minWidth:0,flexShrink:1},playCardRight:{alignItems:"flex-end"},playCardKey:{fontSize:11,fontWeight:"600",opacity:.72},playCardStake:{fontSize:24,fontWeight:"800"},playCardWinRow:{flexDirection:"row",alignItems:"baseline",gap:6},playCardWin:{fontSize:26,fontWeight:"800",lineHeight:28},playCardChip:{fontSize:11,fontWeight:"800",borderRadius:6,paddingHorizontal:6,paddingVertical:2,overflow:"hidden"},stakeBlock:{marginTop:12},playNote:{marginTop:8,minHeight:16,fontSize:11,fontWeight:"700",textAlign:"center"},controlLabelRow:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",marginBottom:8},controlLabelText:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1},controlValueText:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},stepRow:{flexDirection:"row",alignItems:"center",gap:12},stepButton:{width:44,height:44,borderRadius:12,alignItems:"center",justifyContent:"center"},stepButtonText:{fontSize:24,fontWeight:"800",lineHeight:26},stepMid:{flex:1,alignItems:"center"},stepValue:{fontSize:24,fontWeight:"800",fontVariant:["tabular-nums"]},stepCaption:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:.8},boostBlock:{marginTop:16},boostRows:{gap:8},boostRow:{flexDirection:"row",alignItems:"center",gap:12,borderWidth:1,borderRadius:16,paddingHorizontal:12,paddingVertical:12},boostBody:{flex:1,minWidth:0},boostTitleRow:{flexDirection:"row",alignItems:"center",gap:8},boostLabel:{fontSize:14,fontWeight:"800"},boostLabelWide:{fontSize:15},boostAmt:{borderRadius:6,paddingHorizontal:6,paddingVertical:2},boostAmtText:{fontSize:10,fontWeight:"800",fontVariant:["tabular-nums"]},boostSub:{fontSize:11,lineHeight:15,marginTop:4},boostSubWide:{fontSize:12,lineHeight:16},toggle:{width:48,height:28,borderRadius:999,justifyContent:"center",paddingHorizontal:3},toggleKnob:{width:22,height:22,borderRadius:11},modeCards:{marginTop:16,gap:12},modeCardsWide:{marginTop:20,flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},modeCardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});function ql({onQuickPick:e,onPickYourOwn:t,onBack:n,hideTitle:o,backLabel:r="Games"}){const{theme:i,selectedGame:l,selectedPropositionCount:d,handlePropositionCountChange:h,setExpectedCorrect:u,quickPickGame:g,goToSportSelection:f}=br(),p=i.colors,y=ae(i),{width:m}=(0,c.useWindowDimensions)(),b=m>=640,w=(0,a.useMemo)(()=>{if(!l)return[];if(l.allowed_propositions&&l.allowed_propositions.length>0)return[...l.allowed_propositions].sort((e,t)=>e-t);const{min:e,max:t}=vt(l);return Kt(e,t)},[l]),x=hr(l),k=w[0]??0,S=w[w.length-1]??0,[C]=(0,a.useState)(()=>null!=d&&w.includes(d)?d:S),B=(0,a.useMemo)(()=>io(l,C||void 0),[l,C]);if(!l||0===w.length||"exact"!==B?.kind)return(0,s.jsx)(c.View,{children:(0,s.jsx)(c.Text,{style:{color:p.textMuted,fontFamily:y},children:"No setup available."})});const z=x?["Any yes/no props in the pool",`Pick ${k}–${S} legs — all must land`]:["A clean yes or no on every leg",`All ${C} have to land`],v=x?[`We fill ${C} legs across any markets`,"Straight to the bet slip"]:[`We fill all ${C} legs for you`,"Straight to the bet slip"];return(0,s.jsxs)(c.View,{style:Kl.container,children:[n?(0,s.jsx)(c.View,{style:Kl.backRow,children:(0,s.jsx)(Bi,{onBack:n,label:r})}):null,(0,s.jsxs)(Le,{style:Kl.inner,children:[(0,s.jsx)(Ki,{eyebrow:o?null:B.title,iconUrl:fe(l),gameName:l.game_name,tagline:B.heroTagline}),(0,s.jsx)(tl,{}),(0,s.jsxs)(c.View,{style:[Kl.cardList,b&&Kl.cardListWide],children:[(0,s.jsx)(c.View,{style:b?Kl.cardCell:void 0,children:(0,s.jsx)(_i,{tile:(0,s.jsx)(qi,{iconUrl:fe(l),size:60}),label:"Pick my own",stat:"Your calls",detail:z,onSelect:()=>{x||(h(C),u(C)),f(),t?.()}})}),(0,s.jsx)(c.View,{style:b?Kl.cardCell:void 0,children:(0,s.jsx)(_i,{tile:(0,s.jsx)(qi,{iconUrl:`${se}quickpick`,size:60}),label:"QuickPick for me",stat:"Fastest",detail:v,onSelect:()=>{u(C),g(l,C),e?.()}})})]})]})]})}var Kl=c.StyleSheet.create({container:{flex:1,width:"100%"},header:{marginBottom:8,paddingHorizontal:16},eyebrow:{fontSize:12,fontWeight:"700",textTransform:"uppercase",letterSpacing:2.16,marginBottom:16},backRow:{paddingHorizontal:16},inner:{flex:1,paddingHorizontal:16,width:"100%"},tagline:{fontSize:14,lineHeight:23,textAlign:"center",maxWidth:384,marginTop:12},taglineWide:{fontSize:15,lineHeight:24},cardList:{gap:12},cardListWide:{flexDirection:"row",flexWrap:"wrap",alignItems:"stretch"},cardCell:{flexBasis:"48%",flexGrow:1,minWidth:"45%"}});exports.BladeApiClient=Bo,exports.BrandLockup=function({iconUrl:e,gameName:t,nameLines:n,height:o=56,showTrademark:r=!0}){const{theme:i}=br(),l=L(i),a=H(i),d=i.colors.primaryHover??function(e){const t=/^#([0-9a-f]{6})$/i.exec((e??"").trim());if(!t)return e;const n=parseInt(t[1],16);return`rgba(${n>>16&255}, ${n>>8&255}, ${255&n}, 0.7)`}(l),h=ce(i)??"Manrope, Poppins, sans-serif",u=n&&n.length>0?n:t.split(/\s+/),g=.72*o,f=.5*o,p=Math.min(.62*o/u.length,.3*o);return(0,s.jsxs)(c.View,{accessible:!0,accessibilityRole:"image",accessibilityLabel:`YESNO ${t}`,style:{flexDirection:"row",alignItems:"center",gap:.22*o},children:[(0,s.jsx)($t,{iconUrl:e,width:g,height:g,iconColor:l,accentColor:a}),(0,s.jsxs)(c.Text,{style:{fontFamily:h,fontSize:f,letterSpacing:.045*-f,lineHeight:f,color:l,includeFontPadding:!1},children:[(0,s.jsx)(c.Text,{style:{fontWeight:"800"},children:"YES"}),(0,s.jsx)(c.Text,{style:{fontWeight:"600"},children:"NO"})]}),(0,s.jsx)(c.View,{style:{width:Math.max(2,Math.round(.045*o)),height:.78*o,backgroundColor:d}}),(0,s.jsx)(c.View,{style:{flexDirection:"column"},children:u.map((e,t)=>(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"flex-start"},children:[(0,s.jsx)(c.Text,{style:{fontFamily:h,fontSize:p,fontWeight:"500",letterSpacing:.012*-p,lineHeight:1.14*p,color:l,includeFontPadding:!1},children:e}),r&&t===u.length-1?(0,s.jsx)(c.Text,{style:{fontFamily:h,fontSize:.36*p,fontWeight:"500",color:l,marginLeft:1},children:"™"}):null]},`${e}-${t}`))})]})},exports.CHALLENGE_MISSES=1,exports.CHALLENGE_MULTIPLE=5,exports.CategoryIcon=Ye,exports.CategoryPickerPage=Ti,exports.CategoryPickerPageActions=function({onCancel:e}){const{theme:t,screenSize:n}=br(),o=t.colors;return e&&"mobile"!==n?(0,s.jsx)(c.View,{style:Ai.footer,children:(0,s.jsx)(c.TouchableOpacity,{onPress:e,style:[Ai.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:(0,s.jsx)(c.Text,{style:[Ai.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null},exports.CategoryPickerPageTitle=Wi,exports.ChevronRightIcon=Ve,exports.ConfirmPage=function({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o,hideTitle:r,hideActions:i}){const l=br(),{theme:d,selectedGame:h,selectedPropositions:u,selections:g,compositeComponentById:f,propositions:p,selectedPropositionCount:y,selectedEventId:m,expectedCorrect:b,setExpectedCorrect:w,betAmount:x,setBetAmount:k,submitting:S,submitError:C,canSubmit:B,winningCounts:z,payouts:v,overloadPayouts:F,renderTeamLogo:W,userBalance:T,onRecharge:A,goBack:R,toggleSelection:D,upgradePropositionCount:M,goToSportSelection:P,selectedRule:H}=l,O=d.colors,{width:I}=(0,c.useWindowDimensions)(),E=I>=640;if((0,a.useEffect)(()=>{h||(P(),e?.())},[h,P,e]),!h)return null;const j=!!(h.allowed_propositions&&h.allowed_propositions.length>0),N=vt(h,y,H),G=N.min,Y=bn(h)&&m?Math.min(N.max,p.length):N.max,V=Object.keys(g).length,U=G>0&&V<G,q=!j&&G>0&&Y>G&&V>=G&&V<Y,K=j?[...h.allowed_propositions??[]].sort((e,t)=>e-t).filter(e=>e>(y??0)):[],Z=j&&K.length>0&&!U,X=q||Z,Q=Y-V;O.textAlt??O.text;const J=()=>{R(),e?.()},$=(j?[...h.allowed_propositions??[]].sort((e,t)=>t-e):[]).find(e=>e===V&&e<(y??1/0)),_=j&&V<Math.min(...h.allowed_propositions??[1/0]),ee=j&&U&&!_,te=ur(h),ne=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.`}(H,z,V,v),oe=v[V]||pr(h,V,x),re=(z??[]).length>1?"Top prize":"That pays",ie=null!=$?te.belowRequiredHint($,y??G):te.belowRequiredAddOnlyHint(y??G);return(0,a.useEffect)(()=>{!U||j&&!_||J()},[U,j,_]),(0,s.jsxs)(c.View,{style:ul.container,children:[!r&&(0,s.jsx)(c.View,{style:{marginBottom:24},children:(0,s.jsx)(hl,{onBack:e,hideActions:i})}),(0,s.jsx)(c.View,{style:ul.content,children:(0,s.jsx)(di,{componentById:f,game:h,propositions:u,selections:g,onToggleSelection:D,onRemoveSelection:()=>{},onSubmit:async()=>{n?(await l.handleSubmit(),t?.()):o?.(dl(l))},onBack:J,loading:S,error:C,expectedCorrect:b,onExpectedCorrectChange:w,betAmount:x,onBetAmountChange:k,theme:d,showCustomAmount:!0,betAmountLocked:gr(h),betAmountLockedNote:fr(h),hideActions:!0,winningCounts:z,payouts:v,renderTeamLogo:W,canSubmit:B,authenticated:n,userBalance:T,onRecharge:A,boostBanner:(0,s.jsxs)(s.Fragment,{children:[(ne||oe>0)&&(0,s.jsxs)(c.View,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${O.primary}30`,backgroundColor:`${O.primary}08`,marginBottom:12},children:[(0,s.jsx)(c.Text,{style:{fontSize:10,fontWeight:"700",textTransform:"uppercase",letterSpacing:1,color:O.textMuted,marginBottom:4},children:"How you win"}),ne&&(0,s.jsx)(c.Text,{style:{fontSize:E?14:12,color:O.text},children:ne}),oe>0&&(0,s.jsxs)(c.Text,{style:{fontSize:E?14:12,color:O.textMuted,marginTop:6},children:[`${re} `,(0,s.jsx)(c.Text,{style:{fontWeight:"700",color:L(d)},children:pt(oe)})]})]}),ee&&(0,s.jsxs)(c.View,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${O.warning}40`,backgroundColor:`${O.warning}10`,flexDirection:E?"row":"column",alignItems:E?"center":"flex-start",justifyContent:"space-between",gap:12},children:[(0,s.jsxs)(c.Text,{style:{fontSize:E?14:12,color:O.text,flexShrink:1},children:["You have ",(0,s.jsxs)(c.Text,{style:{fontWeight:"700"},children:[V," pick",1!==V?"s":""]}),`. ${ie}`]}),(0,s.jsxs)(c.View,{style:{flexDirection:"row",gap:8,flexShrink:0},children:[(0,s.jsx)(c.TouchableOpacity,{onPress:J,style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:O.buttonSecondary},children:(0,s.jsx)(c.Text,{style:{fontSize:12,fontWeight:"600",color:O.buttonSecondaryText},children:"Add a pick"})}),null!=$&&(0,s.jsx)(c.TouchableOpacity,{onPress:()=>M($),style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:O.buttonPrimary},children:(0,s.jsx)(c.Text,{style:{fontSize:12,fontWeight:"600",color:O.buttonPrimaryText},children:te.switchTierLabel($)})})]})]}),X&&(0,s.jsx)(c.View,{style:{padding:12,borderRadius:8,borderWidth:1,borderColor:`${O.primary}30`,backgroundColor:`${O.primary}08`},children:Z?(()=>{const e=y??V,t=F[e],n=x>0?x:20,o=null!=t&&t>0?t*(n/20):null;return(0,s.jsxs)(c.View,{children:[(0,s.jsx)(c.Text,{style:{fontSize:14,fontWeight:"600",color:O.primary,marginBottom:4},children:te.overloadTitle}),null!=o&&(0,s.jsxs)(c.Text,{style:{fontSize:12,color:O.textMuted,marginBottom:8},children:["Currently winning up to ",(0,s.jsx)(c.Text,{style:{color:O.heading??O.text,fontWeight:"700"},children:pt(o)}),` with ${e} picks`]}),(0,s.jsx)(cl,{tiers:K.map(e=>({count:e,payout20:F[e]??0})),selectedCount:void 0,onSelect:e=>{M(e),J()},colors:O,bodyFont:l.bodyFont,extraBetAmount:20!==n?n:void 0,columnLabel:te.tableColumnLabel,buttonLabel:te.tierButtonLabel})]})})():(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,s.jsxs)(c.Text,{style:{fontSize:12,color:O.textMuted,flex:1},children:[1===Q?"Add ":"Add up to ",(0,s.jsxs)(c.Text,{style:{color:O.primary,fontWeight:"700"},children:[Q," more pick",1!==Q?"s":""]})]}),(0,s.jsx)(c.TouchableOpacity,{onPress:J,style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:O.buttonPrimary},children:(0,s.jsx)(c.Text,{style:{fontSize:12,fontWeight:"600",color:O.buttonPrimaryText},children:"Add picks"})})]})})]})})}),i&&C?(0,s.jsx)(c.View,{style:{marginTop:12,alignItems:"flex-end"},children:(0,s.jsx)(c.Text,{style:[ul.errorText,{color:O.error}],children:C})}):null]})},exports.ConfirmPageActions=function({onBack:e,onSubmitted:t,authenticated:n=!0,onUnauthenticated:o}){const r=br(),{theme:i,selectedGame:l,expectedCorrect:a,betAmount:d,submitting:h,submitError:u,canSubmit:g,payouts:f,selectedPropositionIds:p,screenSize:y}=r,m=i.colors,{width:b}=(0,c.useWindowDimensions)(),w=b>=640;if(!l)return null;const x=f[a]??0,k=Ft(l),S=a===p.length,C=k?.enabled&&S,B=e&&"mobile"!==y;return(0,s.jsxs)(c.View,{style:ul.footer,children:[B&&(0,s.jsx)(ve,{theme:i,variant:"secondary",onPress:e,children:"Back"}),(0,s.jsxs)(c.View,{style:ul.footerRight,children:[u?(0,s.jsx)(c.Text,{style:[ul.errorText,{color:m.error}],children:u}):null,(x>0||C)&&w&&(0,s.jsxs)(c.View,{style:ul.payoutInfo,children:[(0,s.jsx)(c.Text,{style:[ul.payoutLabel,{color:m.textMuted}],children:"Potential winnings"}),(0,s.jsxs)(c.Text,{style:[ul.payoutAmount,{color:m.heading??m.text}],children:[pt(x),C?(0,s.jsx)(c.Text,{style:{color:m.warning},children:" + Jackpot"}):null]})]}),(0,s.jsx)(ve,{theme:i,variant:"primary",disabled:!g,onPress:async()=>{n?(await r.handleSubmit(),t?.()):o?.(dl(r))},children:n?h?"Placing…":`Place Entry (${pt(d)})`:"Log in to place entry"})]})]})},exports.ConfirmPageTitle=hl,exports.DOUBLE_SHOT_MIN_LEGS=6,exports.EXTRA_SHOT_MIN_LEGS=4,exports.EntriesPage=function({onSelectEntry:e,onBack:t,hideTitle:n,hideActions:o}){const{theme:r,apiUrl:i,apiKey:l,fetchImpl:a,getAuthHeaders:d,userId:h,demoEntries:u,demoGames:g,demoPropositions:f,renderTeamLogo:p,filterSport:y}=br();return(0,s.jsxs)(c.View,{style:ml.container,children:[!n&&(0,s.jsx)(c.View,{style:{marginBottom:24},children:(0,s.jsx)(yl,{onBack:t,hideActions:o})}),(0,s.jsx)(c.View,{style:ml.content,children:(0,s.jsx)(bi,{apiUrl:i,apiKey:l,fetchImpl:a,getAuthHeaders:d,userId:h,demoEntries:u,demoGames:g,demoPropositions:f,onSelectEntry:e,theme:r,renderTeamLogo:p,filterSport:y})})]})},exports.EntriesPageTitle=yl,exports.EntrySubmission=di,exports.EventFilterBanner=ki,exports.EventPickerPage=Di,exports.EventSwipeModal=Hr,exports.FilterChipCarousel=$e,exports.FilterChipRow=_e,exports.GAME_TIER_LEVEL=Fn,exports.GAME_TIER_TABS=Wn,exports.GOLDEN_POINT_FACTOR=2,exports.GameEntries=bi,exports.GameLogo=Ii,exports.GamePage=function({onSelectGame:e,onGameSetup:t,onRuleSetup:n,onGameSetBet:o,onPickYourDividend:r,onLadder:i,onMirror:l,onSafetyNet:d,onQuickPick:h,onCancel:u,hideTitle:g,hideActions:f,showPerfectPickSetup:p=!1,showTierFilter:y=!1}){const m=br(),{theme:b,games:w,loading:x,error:k,selectedGame:S,selectedPropositionCount:C,handlePropositionCountChange:B,maxPayouts:z}=m;b.colors;const v=a.default.useRef(S);v.current=S;const{width:F}=(0,c.useWindowDimensions)(),W=F>=640;return(0,s.jsxs)(c.View,{style:Fi.container,children:[!g&&(0,s.jsx)(c.View,{style:{marginBottom:W?24:16},children:(0,s.jsx)(vi,{onBack:u,hideActions:f})}),(0,s.jsx)(ki,{}),(0,s.jsx)(c.View,{style:Fi.content,children:(0,s.jsx)(So,{games:w,selectedGame:S,onSelectGame:e=>{v.current=e,m.selectGame(e)},loading:x,error:k,theme:b,showTierFilter:y,selectedPropositionCount:C,onPropositionCountChange:B,onPropositionCountSelected:()=>{const a=v.current;if("rule_setup"===sr(a)&&hr(a)&&!p)return m.goToSportSelection(),void e?.();const c=sr(a);if("quick_pick"===c||"selections"===c)return m.goToSportSelection(),void e?.();t?t(c):({game_set:o,pick_your_dividend:r,ladder:i,mirror:l,safety_net:d,rule_setup:n}[c]??n)?.()},onQuickPickGame:(e,t)=>{m.quickPickGame(e,t),h?.()},maxPayouts:z})})]})},exports.GamePageActions=function({onCancel:e,onSelectGame:t}){const{theme:n,screenSize:o}=br(),r=n.colors;return e&&"mobile"!==o?(0,s.jsx)(c.View,{style:[Fi.footer],children:(0,s.jsx)(c.TouchableOpacity,{onPress:e,style:[Fi.secondaryBtn,{backgroundColor:r.buttonSecondary}],children:(0,s.jsx)(c.Text,{style:[Fi.secondaryBtnText,{color:r.buttonSecondaryText}],children:"Cancel"})})}):null},exports.GamePageTitle=vi,exports.GameSelector=So,exports.GameSetBetPage=Rl,exports.GameSetBetPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=br(),r=ce(n),i=n.colors,{width:l}=(0,c.useWindowDimensions)(),a=l<640;return(0,s.jsxs)(c.View,{style:[Dl.header,a&&Dl.headerCompact],children:[(0,s.jsx)(c.Text,{style:[Dl.sectionTitle,a&&Dl.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"The fastest multi"}),(0,s.jsx)(zi,{onBack:e,hideActions:t,label:o?.game_name})]})},exports.GameSetupPage=function({onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r="Games"}){const{theme:i,selectedGame:l,goToSportSelection:a,bodyFont:d}=br(),h={onPickYourOwn:e,onQuickPick:t,onBack:n,hideTitle:o,backLabel:r};switch(sr(l)){case"game_set":return(0,s.jsx)(Rl,{...h});case"pick_your_dividend":return(0,s.jsx)(Ml,{...h});case"ladder":return(0,s.jsx)(Hl,{...h});case"mirror":return(0,s.jsx)(jl,{...h});case"safety_net":return(0,s.jsx)(Gl,{...h});case"six_again":return(0,s.jsx)(Vl,{...h});case"rule_setup":return"exact"===io(l)?.kind?(0,s.jsx)(ql,{...h}):(0,s.jsx)(Al,{onBack:n,hideTitle:o,backLabel:r,onContinue:()=>{a(),e?.()}});default:return(0,s.jsx)(c.View,{children:(0,s.jsx)(c.Text,{style:{color:i.colors.textMuted,fontFamily:d},children:"No setup required — this game goes straight to picks."})})}},exports.HowToPlayButton=Ne,exports.HowToPlayPanel=Pe,exports.LADDER_FAMILY=Jo,exports.LADDER_REFERENCE_BET=50,exports.LADDER_STAKES=Qo,exports.LadderPage=Hl,exports.LadderPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=br(),r=ce(n),i=n.colors;return(0,s.jsxs)(c.View,{style:Ol.titleWrap,children:[(0,s.jsx)(c.Text,{style:[Ol.eyebrow,{color:i.primary,fontFamily:r}],children:"Every step pays"}),(0,s.jsx)(zi,{onBack:e,hideActions:t,label:o?.game_name})]})},exports.LockIcon=Ue,exports.MIRROR_STANDARD_MARGIN=.21875,exports.MirrorPage=jl,exports.MirrorPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=br(),r=ce(n),i=n.colors;return(0,s.jsxs)(c.View,{style:Nl.header,children:[(0,s.jsx)(c.Text,{style:[Nl.eyebrow,{color:i.primary,fontFamily:r}],children:"All right, or all wrong"}),(0,s.jsx)(zi,{onBack:e,hideActions:t,label:o?.game_name})]})},exports.NO_BOOSTS=rr,exports.PYD_LEG_RUNGS=co,exports.PYD_RETAIL_DIVIDENDS=ao,exports.PayoutCircles=function({game:e,totalSelections:t,expectedCorrect:n,onExpectedCorrectChange:o,theme:r=q,colorWinning:i,colorNone:l,winningCounts:h,payouts:u}){const g=r.colors,{width:f}=(0,c.useWindowDimensions)(),p=f>=640,y=i??g.payoutWinning,m=l??g.payoutNone,b=Ft(e),w=p?48:40,[x,k]=(0,a.useState)({width:0,height:0});return(0,s.jsxs)(c.View,{style:fi.container,children:[(0,s.jsx)(c.Text,{style:[fi.title,{color:g.textMuted}],children:"Payout Visualization"}),b.enabled&&(0,s.jsxs)(c.View,{style:[fi.jackpotBanner,{borderColor:`${g.warning}30`}],onLayout:e=>k({width:e.nativeEvent.layout.width,height:e.nativeEvent.layout.height}),children:[x.width>0&&(0,s.jsxs)(d.default,{style:c.StyleSheet.absoluteFill,width:x.width,height:x.height,pointerEvents:"none",children:[(0,s.jsx)(d.Defs,{children:(0,s.jsxs)(d.LinearGradient,{id:"payout-jackpot-grad",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,s.jsx)(d.Stop,{offset:"0%",stopColor:g.warning,stopOpacity:.094}),(0,s.jsx)(d.Stop,{offset:"100%",stopColor:g.warning,stopOpacity:.031})]})}),(0,s.jsx)(d.Rect,{x:0,y:0,width:x.width,height:x.height,fill:"url(#payout-jackpot-grad)"})]}),(0,s.jsx)(d.default,{width:16,height:16,viewBox:"0 0 24 24",style:{flexShrink:0},children:(0,s.jsx)(d.Path,{d:ui,fill:g.warning})}),(0,s.jsx)(c.Text,{style:[fi.jackpotText,{color:g.warning}],children:b.progressive?b.amount>0?`Progressive Jackpot: ${pt(b.amount)}${b.limit>0?` (up to ${pt(b.limit)})`:""} for a perfect pick!`:b.limit>0?`Progressive Jackpot — up to ${pt(b.limit)} for a perfect pick!`:"Progressive Jackpot for a perfect pick!":`Jackpot: ${pt(b.amount)} for a perfect pick!`})]}),(0,s.jsx)(c.View,{style:[fi.circleGrid,{gap:p?8:6}],children:Array.from({length:t+1},(e,r)=>{const i=h.includes(r),l=u[r]??0,a=r===t,c=b.enabled&&a,d=c?g.warning:i?y:m,f=r===n,x=c?b.progressive?`${r} correct wins progressive jackpot${b.amount>0?` (currently ${pt(b.amount)})`:""}${b.limit>0?` up to ${pt(b.limit)}`:""} plus ${pt(l)}`:`${r} correct wins jackpot ${pt(b.amount)} plus ${pt(l)}`:i?`${r} correct wins ${pt(l)}`:l>0?`${r} correct pays ${pt(l)} but does not win`:`${r} correct — no payout`,k=o?`${x}. Tap to select`:x;return(0,s.jsx)(gi,{index:r,size:w,wide:p,isWinning:i,isJackpot:c,isSelected:f,bgColor:d,borderFallback:g.border,warning:g.warning,primary:g.primary,textMuted:g.textMuted,payout:l,onPress:o?()=>o(r):void 0,accessibilityLabel:k},r)})}),(0,s.jsxs)(c.Text,{style:[fi.expectedText,{color:g.textMuted}],children:["Your expected: ",(0,s.jsxs)(c.Text,{style:fi.expectedBold,children:[n," correct"]})]})]})},exports.PerfectPickPage=ql,exports.PerfectPickPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=br(),r=ce(n),i=n.colors;return(0,s.jsxs)(c.View,{style:Kl.header,children:[(0,s.jsx)(c.Text,{style:[Kl.eyebrow,{color:i.primary,fontFamily:r}],children:"All or nothing"}),(0,s.jsx)(zi,{onBack:e,hideActions:t,label:o?.game_name})]})},exports.PickYourDividendPage=Ml,exports.PickYourDividendPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=br(),r=ce(n),i=n.colors;return(0,s.jsxs)(c.View,{style:Pl.titleWrap,children:[(0,s.jsx)(c.Text,{style:[Pl.eyebrow,Pl.eyebrowLeft,{color:i.primary,fontFamily:r}],children:"The dividend is set"}),(0,s.jsx)(zi,{onBack:e,hideActions:t,label:o?.game_name})]})},exports.PlaceEntryProvider=function({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,getUserBalance:i,children:l,theme:c,colorScheme:d,demoGames:h,demoPropositions:u,demoEntries:g,demoMaxPayouts:f,gameCategory:p,jurisdiction:y,initialGameId:m,filterSport:b,initialSport:w,initialEventId:x,initialEventLabel:k,sportBaseKey:S,disableQuickPick:C=!1,renderTeamLogo:B,renderPropositionSilk:z,selectionVariant:v,disableEventSwipe:F,enableSportFavourites:W,onEntryPlaced:T,onBeforeSubmit:A,onCancel:L,onShare:R,onRecharge:D,onClearEventFilter:M,screenSize:P="desktop",howToPlayMarkdown:H,sportDisplayNames:O,categoryDisplayNames:I}){const E=le(c,d),j=ae(E),N=ce(E),G=!(!h||!u),Y=(0,a.useMemo)(()=>new Bo({apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o}),[e,t,n,o]),[V,U]=(0,a.useState)(0),q=(0,a.useRef)(0),[K,Z]=(0,a.useState)(0),[X,Q]=(0,a.useState)([]),[J,$]=(0,a.useState)({}),[_,ee]=(0,a.useState)({}),[te,ne]=(0,a.useState)(void 0),[oe,re]=(0,a.useState)(null),[ie,se]=(0,a.useState)(void 0),de=a.default.useCallback(async()=>{if(i)try{const e=await i();"number"==typeof e&&Number.isFinite(e)&&se(e)}catch(e){}},[i]);(0,a.useEffect)(()=>{i?de():se(void 0)},[i,de]);const he=(0,a.useRef)(null),ue=(0,a.useRef)(null),[ge,fe]=(0,a.useState)(null),[pe,ye]=(0,a.useState)(w??null),[me,be]=(0,a.useState)(x??null);(0,a.useEffect)(()=>{w&&ye(w)},[w]),(0,a.useEffect)(()=>{be(x??null)},[x]);const[we,xe]=(0,a.useState)(x),ke=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(!x)return xe(void 0),void(ke.current=!1);ke.current||xe(x)},[x]);const Se=p??ge??void 0,Ce=Rt(pe??b??w??void 0,S),Be=Rt(b,S)??b,ze=pe??void 0,{games:ve,howToPlayMarkdown:Fe,loading:We,error:Te}=zo(Y,{category:Se,jurisdiction:y,sport:Ce},{skip:G}),{propositions:Ae,loading:Le,error:Re}=vo(Y,{category:Se,sport:Be,event_id:we},{skip:G}),{sports:De,loading:Me}=Fo(Y,{skip:G}),{createEntry:Pe,loading:He,error:Oe,clearSubmitError:Ie}=Ao(Y),{preview:Ee}=Ro(Y),je=(0,a.useMemo)(()=>jt((G?h:ve)??[],{category:Se,sport:Ce??ze,sportBaseKey:S}),[G,h,ve,Se,Ce,ze,S]),Ne=H??Fe??null,{maxPayouts:Ge,refetchGame:Ye}=To(Y,je??[],{skip:G,betAmount:20}),Ve=G?f??mr:Ge,Ue=G?u:Ae,qe=b?(Ue??[]).filter(e=>e.sport===b):Ue,Ke=(0,a.useMemo)(()=>Ct(qe??[]),[qe]),Ze=(0,a.useMemo)(()=>Se||(1===Ke.length?Ke[0]:void 0),[Se,Ke]),Xe=(0,a.useMemo)(()=>{const e=qe??[];return Ze?Ht(e,{category:Ze,sportBaseKey:S}):e},[qe,Ze,S]),Qe=(0,a.useMemo)(()=>ze?Ht(Xe,{sport:ze,sportBaseKey:S}):Xe,[Xe,ze,S]),Je=(0,a.useMemo)(()=>({category:Ze,sport:ze,sportBaseKey:S}),[Ze,ze,S]),$e=(0,a.useMemo)(()=>{const e=(je??[]).filter(e=>e.active);if(!Ze&&Ke.length>1)return[];const t=Ze?jt(e,Je):e;return Ze||ze?function(e,t,n){return n?.category||n?.sport?e.filter(e=>Et(e,t,n)):e}(t,Qe,Je):t},[je,Qe,Je,Ze,ze,Ke.length]),{step:_e,selectedGame:et,selections:tt,placedEntry:nt,setGameOnly:ot,clearSelectedGame:lt,goToSportSelection:at,goToConfirmation:ct,goToSuccess:st,goBack:dt,reset:ht,toggleSelection:ut}=Lo(m),gt=a.default.useCallback(()=>{ke.current=!0,xe(void 0),ht(),M?.()},[ht,M]),ft=!!we,pt=ft?k:void 0,yt=!G&&(We||Le||!!et&&Me),mt=G?null:et?Te||Re:Te,wt=(0,a.useMemo)(()=>et?Gt(Qe,et,S):Qe,[et,Qe,S]),kt=(0,a.useMemo)(()=>{const e=et?Gt(Xe,et,S):Xe,t=et?.allowed_sports,n=new Map;for(const o of e){const r=bt(o,e);"Other"!==r&&(t?.length&&!t.includes(r)||n.set(r,(n.get(r)??0)+1))}return Array.from(n.entries()).sort((e,t)=>t[1]-e[1]).map(([e,t])=>({key:e,count:t}))},[et,Xe,S]),St=(0,a.useMemo)(()=>kt.map(e=>e.key),[kt]),Bt=(0,a.useMemo)(()=>et?wt:Xe,[et,wt,Xe]),Ft=(0,a.useMemo)(()=>Ht(et?wt:Xe,{category:Ze}),[et,wt,Xe,Ze]),Wt=(0,a.useMemo)(()=>{const e=new Set(St);return De.filter(t=>e.has(t.key))},[De,St]),Tt=(0,a.useMemo)(()=>Ht(wt,{category:Ze,sport:pe}),[wt,Ze,pe]),Mt=(0,a.useMemo)(()=>{if(!et||!bn(et))return[];const{min:e}=vt(et,te),t=te??e;return xn(Tt).filter(e=>e.propositionCount>=t)},[et,te,Tt]),Pt=(0,a.useMemo)(()=>bn(et)?zn(Tt,me):Tt,[et,Tt,me]),It=function(e,t){const[n,o]=(0,a.useState)([]),r=(0,a.useRef)(new Set),i=(0,a.useMemo)(()=>{const e=new Map;for(const n of t)e.set(n.id,n);for(const t of n)e.set(t.id,t);return e},[t,n]),l=(0,a.useMemo)(()=>e?function(e){const t=new Set;for(const n of e)if(rt(n))for(const e of it(n))t.add(e);return[...t]}(t).filter(e=>!i.has(e)):[],[e,t,i]);return(0,a.useEffect)(()=>{if(!e||0===l.length)return;const t=l.filter(e=>!r.current.has(e));if(0===t.length)return;for(const e of t)r.current.add(e);let n=!1;return e.getPropositionsByIds(t).then(e=>{!n&&e.length>0&&o(t=>[...t,...e])}).catch(()=>{}),()=>{n=!0}},[e,l]),i}(G?null:Y,(0,a.useMemo)(()=>[...qe??[],...Pt],[qe,Pt])),Nt=(0,a.useMemo)(()=>Vo(wt,tt,It),[wt,tt,It]),Yt=(0,a.useCallback)((e,t)=>{if(!(e in tt)){const t=wt.find(t=>t.id===e);if(t&&Nt.isCapped(t))return}ut(e,t)},[tt,wt,Nt,ut]),Vt=Object.keys(tt).map(Number),Ut=Vt.length,qt=(0,a.useMemo)(()=>Tt.filter(e=>Vt.includes(e.id)),[Tt,Vt]);(0,a.useEffect)(()=>{p||ge||1===Ke.length&&fe(Ke[0])},[p,ge,Ke]),(0,a.useEffect)(()=>{if(!et)return;const e=wt,t=new Set(e.map(xt));let n=ge;n&&t.has(n)||(n=1===t.size?Array.from(t)[0]:null,n!==ge&&fe(n));const o=n?e.filter(e=>xt(e)===n):e,r=new Set(function(e){const t=new Set;for(const n of e){const o=bt(n,e);"Other"!==o&&t.add(o)}return[...t]}(o)),i=et.allowed_sports;ye(e=>e&&r.has(e)&&(!i?.length||i.includes(e))?e:1===i?.length&&r.has(i[0])?i[0]:1===r.size?Array.from(r)[0]:(()=>{const e=new Map;for(const r of o){const t=bt(r,o);"Other"!==t&&(i?.length&&!i.includes(t)||e.set(t,(e.get(t)??0)+1))}let t=null,n=0;for(const[o,r]of e)r>n&&(t=o,n=r);return t})())},[et?.id,wt,ge]),(0,a.useEffect)(()=>{Ie()},[et?.id,_e,Ie]),(0,a.useEffect)(()=>{et&&Ze&&(Ot(et,Ze)||lt())},[et,Ze,lt]),(0,a.useEffect)(()=>{et&&(Et(et,Qe,{category:Ze,sport:pe,sportBaseKey:S})||lt())},[et,Ze,pe,S,Qe,lt]),(0,a.useEffect)(()=>{if(et){const e=he.current,t=ue.current!==et.id;if(ue.current=et.id,null!=e?.stake&&e.stake>0?Z(e.stake):t&&Z(Math.max(20,et.min_bet??0)),e){const{count:t}=e;return he.current=null,ne(t),void U(t)}if(et.allowed_propositions&&et.allowed_propositions.length>0){const e=te;null!=e&&et.allowed_propositions.includes(e)?U(e):(ne(void 0),U(0))}else ne(void 0),U(et.num_propositions||et.max_propositions||0)}},[et]);const Kt=(e,t,n)=>{const o=(Ve[e]?.top_payouts??[]).find(e=>e.proposition_count===t),r=o&&o.bet_amount&&o.bet_amount>0?o.bet_amount:20,i=o&&r>0?o.net_payout/r*n:0;return i>0?i:pr((je??[]).find(t=>t.id===e)??(et?.id===e?et:null),t,n)};(0,a.useEffect)(()=>{if("sport"!==_e&&"confirm"!==_e||!et||G)return;const e=bn(et)&&me?Pt.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 ee({});const o=te??n[0],r=n.filter(e=>e>o);if(0===r.length)return void ee({});t=[o,...r]}else{const{min:n,max:o}=vt(et),r=Math.min(o,e);if(n<=0||r<=n)return void ee({});t=Array.from({length:r-n+1},(e,t)=>n+t)}const n={};for(const o of t)n[o]=Kt(et.id,o,20);ee(n)},[_e,et,te,me,Pt.length,G,Ve]),(0,a.useEffect)(()=>{if("confirm"!==_e||!et)return;const e=Vt.length;if(0===e)return;let t=!1;const n={};for(let r=0;r<=e;r++)n[r]=Kt(et.id,r,K);$(n),e!==q.current?(q.current=e,U(e)):(V>e||V<=0&&e>0)&&U(e);const o=K>0?K:Math.max(et.min_bet??20,.01);return(async()=>{try{const n=await Ee(et.id,{actual:V,predicted:V,total:e,bet_amount:o,rule_id:oe});if(t)return;if(Q(n.winning_counts),K>0&&n.payouts){const e={};for(const[t,o]of Object.entries(n.payouts)){const n=Number(t);e[n]=o>0?o:Kt(et.id,n,K)}$(e)}}catch{t||Q([])}})(),()=>{t=!0}},[_e,et,Vt.length,V,K,Ee,Ve,oe]);const Zt=(0,a.useMemo)(()=>{return t=oe,(e=et)&&null!=t?e.permitted_rules?.find(e=>e.id===t)??null:null;var e,t},[et,oe]),Xt=!bn(et)||vn(qt,me),Qt=et?vt(et,void 0,Zt):null,Jt=!(!et||!Xt)&&(et.allowed_propositions&&et.allowed_propositions.length>0?null!=te&&Ut===te&&zt(Ut,Qt?.min,Qt?.max):zt(Ut,Qt?.min,Qt?.max)),$t=et?.min_bet??0,_t=Math.max($t,.01),en=null==ie||K<=ie,tn=!He&&K>=_t&&Jt&&en,nn=e=>{ne(e),U(e);for(const t of Object.keys(tt))ut(Number(t),tt[Number(t)])},on=e=>{ne(e),U(e)},rn=e=>{be(bn(e)?x??null:null),ot(e)},ln=e=>{if(e!==me){for(const e of Object.keys(tt)){const t=Number(e);ut(t,tt[t])}be(e)}},an=(e,t,n)=>{he.current={count:t,stake:n},ot(e),Ye(e.id);const o=e.allowed_sports??[];let r=null;pe&&o.some(e=>Dt(pe,e,S))?r=pe:1===o.length&&(r=o[0]),ye(r);for(const c of Object.keys(tt)){const e=Number(c);ut(e,tt[e])}let i=Ht(Gt(qe??[],e,S),{category:Ze,sport:r,sportBaseKey:S});const l=Math.max(0,Math.min(t,i.length)),a=function(e,t,n){const o=[],r=new Map;for(const i of e){if(o.length>=t)break;const e=Go(i),l=e?No(i,n):[];if(e&&l.length>0){const t=r.get(e)??new Set;if(l.some(e=>t.has(e)))continue;for(const e of l)t.add(e);r.set(e,t)}o.push(i)}return o}([...i].sort(()=>Math.random()-.5),l,It);for(const c of a)ut(c.id,Math.random()<.5?"yes":"no");ct()},cn=(0,a.useRef)(!1),sn=async()=>{if(et&&Jt&&!cn.current){if(G){const e={id:Math.floor(1e4*Math.random()),game_id:et.id,user_id:r,proposition_ids:Vt,selections:tt,pending:!0,expected_correct:V,bet_amount:K};return T?.(e),st(e),void de()}cn.current=!0;try{A&&await A(K);const e=await Pe({game_id:et.id,user_id:r,proposition_ids:Vt,selections:tt,stake:K,rule_id:Zt?.id??null});T?.(e),st(e),de()}catch(e){}finally{cn.current=!1}}},dn=(0,a.useCallback)(e=>O?.[e]??Wt.find(t=>t.key===e)?.label??At(e,void 0,S),[O,Wt,S]),hn=(0,a.useCallback)(e=>Lt(e,I),[I]),un=(0,a.useMemo)(()=>({theme:E,bodyFont:j,headingFont:N,games:$e,propositions:Pt,compositeComponentById:It,propositionsForCategoryPicker:Bt,sportsForSelectedGame:St,sportOptions:kt,propositionsForSportPicker:Ft,sportSummaries:Wt,loading:yt,error:mt,step:_e,selectedGame:et,selections:tt,placedEntry:nt,selectedPropositionIds:Vt,selectedPropositions:qt,selectionValid:Jt,selectedRuleId:oe,setSelectedRuleId:re,selectedRule:Zt,answeredCount:Ut,betAmount:K,setBetAmount:Z,expectedCorrect:V,setExpectedCorrect:U,selectedPropositionCount:te,handlePropositionCountChange:nn,upgradePropositionCount:on,winningCounts:X,payouts:J,overloadPayouts:_,submitting:He,submitError:Oe,canSubmit:tn,gamePrice:$t,userBalance:ie,hasSufficientBalance:en,refreshUserBalance:de,handleSubmit:sn,selectGame:rn,goToSportSelection:at,goToConfirmation:ct,goBack:dt,reset:ht,clearSelectedGame:lt,toggleSelection:Yt,quickPickGame:an,selectedCategory:ge,setSelectedCategory:fe,selectedSport:pe,setSelectedSport:ye,selectedEventId:me,sameGameMultiEvents:Mt,selectSameGameMultiEvent:ln,apiUrl:e,apiKey:t,fetchImpl:n,getAuthHeaders:o,userId:r,disableQuickPick:C,renderTeamLogo:B,renderPropositionSilk:z,selectionVariant:v,disableEventSwipe:F,enableSportFavourites:W,filterSport:b,initialSport:w,initialEventId:x,sportBaseKey:S,gameCategory:p,eventFilterActive:ft,eventFilterLabel:pt,clearEventFilter:gt,screenSize:P,displaySportName:dn,displayCategoryName:hn,maxPayouts:Ve??{},howToPlayMarkdown:Ne,onEntryPlaced:T,onCancel:L,onShare:R,onRecharge:D,demoEntries:g,demoGames:h,demoPropositions:u}),[E,j,N,$e,Pt,It,Bt,Ft,St,kt,Wt,yt,mt,_e,et,tt,nt,Vt,qt,Jt,Ut,K,V,te,oe,Zt,X,J,_,He,Oe,tn,$t,e,t,r,ie,n,o,C,B,z,v,F,W,b,w,x,S,p,P,ft,pt,gt,ge,pe,me,Mt,Ve,Ne,T,L,R,D,M,g,h,u,nn,dn,hn]);return(0,s.jsx)(yr.Provider,{value:un,children:l})},exports.QuickPickButton=wr,exports.RuleSetupPage=Al,exports.RuleSetupPageActions=function({onContinue:e,canContinue:t,continueLabel:n="Continue"}){const{theme:o,screenSize:r}=br(),i=o.colors;return e&&"mobile"!==r?(0,s.jsx)(c.View,{style:Ll.footer,children:(0,s.jsx)(c.TouchableOpacity,{onPress:e,disabled:!t,accessibilityRole:"button",accessibilityState:{disabled:!t},style:[Ll.smallBtn,{backgroundColor:i.buttonPrimary,opacity:t?1:.45}],children:(0,s.jsx)(c.Text,{style:[Ll.smallBtnText,{color:i.buttonPrimaryText}],children:n})})}):null},exports.RuleSetupPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o,selectedPropositionCount:r}=br(),i=ce(n),l=n.colors,a=io(o,r),{width:d}=(0,c.useWindowDimensions)(),h=d<640;return(0,s.jsxs)(c.View,{style:[Ll.header,h&&Ll.headerCompact],children:[(0,s.jsx)(c.Text,{accessibilityRole:"header",style:[Ll.sectionTitle,h&&Ll.sectionTitleCompact,{color:l.primary,fontFamily:i}],children:a?.title??"About this game"}),(0,s.jsx)(zi,{onBack:e,hideActions:t,label:o?`${o.game_name}${a?.subtitle?` · ${a.subtitle}`:""}`:void 0})]})},exports.SELECTION_VARIANTS=["split","split-inline","compact"],exports.SIX_AGAIN_LEGS=6,exports.SIX_AGAIN_MARGIN=.21875,exports.SafetyNetPage=Gl,exports.SafetyNetPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=br(),r=ce(n),i=n.colors,{width:l}=(0,c.useWindowDimensions)(),a=l<640;return(0,s.jsxs)(c.View,{style:[Yl.header,a&&Yl.headerCompact],children:[(0,s.jsx)(c.Text,{style:[Yl.sectionTitle,a&&Yl.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"Choose your safety net"}),(0,s.jsx)(zi,{onBack:e,hideActions:t,label:o?.game_name})]})},exports.ScrollShelf=Qe,exports.SelectionReview=function({propositions:e,selections:t,onToggleSelection:n,onNext:o,onBack:r,theme:i,colorScheme:l,hideActions:h=!1,renderTeamLogo:u,allowAnswerToggle:g=!0,gameName:f,potentialPayout:p,defaultExpanded:y=!1,componentById:m,addMorePicks:b}){const w=le(i,l),x=w.colors,k=j(w),S=ce(w),C=L(w),B=x.textAlt??x.text,{width:z}=(0,c.useWindowDimensions)(),v=z>=640,F=function(e){return{shadowColor:"#000",shadowOpacity:"dark"===e.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2}}(w),[W,T]=(0,a.useState)(null),[A,R]=(0,a.useState)(y),D=e.filter(e=>e.id in t),M=D.length,P=qt(D),H=x.matchupHeader??N(w),O=G(w),I=v?16:12;return(0,s.jsxs)(c.View,{style:{gap:v?24:16,paddingBottom:64},children:[(0,s.jsxs)(c.View,{style:[si.section,{padding:v?24:16,backgroundColor:k,borderColor:x.border},F],children:[(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>R(e=>!e),accessibilityRole:"button",accessibilityState:{expanded:A},style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:12},children:[(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:8,flex:1,minWidth:0},children:[(0,s.jsx)(d.default,{width:18,height:18,viewBox:"0 0 24 24",style:{flexShrink:0,transform:[{rotate:A?"180deg":"0deg"}]},children:(0,s.jsx)(d.Path,{d:"m6 9 6 6 6-6",stroke:x.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})}),(0,s.jsxs)(c.View,{style:{flex:1,minWidth:0},children:[(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",gap:8},children:[(0,s.jsx)(c.Text,{style:{fontSize:v?18:16,fontWeight:"600",color:C,fontFamily:S},children:"Your Selections"}),(0,s.jsx)(c.View,{style:{backgroundColor:x.primary,paddingHorizontal:6,paddingVertical:2,borderRadius:999},children:(0,s.jsx)(c.Text,{style:{color:x.primaryText,fontSize:12,fontWeight:"600"},children:M})})]}),f&&(0,s.jsx)(c.Text,{numberOfLines:1,style:{color:x.textMuted,fontSize:14,marginTop:2},children:f})]})]}),null!=p&&p>0&&(0,s.jsxs)(c.View,{style:{alignItems:"flex-end",flexShrink:0},children:[(0,s.jsx)(c.Text,{style:{color:x.textMuted,fontSize:10,textTransform:"uppercase",letterSpacing:.25},children:"Potential Payout"}),(0,s.jsx)(c.Text,{style:{color:C,fontSize:14,fontWeight:"700"},children:pt(p)})]})]}),b&&b.remaining>0&&(0,s.jsxs)(c.View,{style:{marginTop:I,padding:12,borderRadius:8,borderWidth:1,borderColor:`${x.primary}30`,backgroundColor:`${x.primary}08`,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,s.jsxs)(c.Text,{style:{flex:1,color:x.textMuted,fontSize:12},children:[1===b.remaining?"Add ":"Add up to ",(0,s.jsxs)(c.Text,{style:{color:x.primary,fontWeight:"700"},children:[b.remaining," more pick",1!==b.remaining?"s":""]}),null!=b.potentialPayout&&b.potentialPayout>0&&(0,s.jsxs)(c.Text,{children:[" ","to win up to"," ",(0,s.jsx)(c.Text,{style:{color:C,fontWeight:"700"},children:pt(b.potentialPayout)})," ","with ",b.max," picks"]})]}),(0,s.jsx)(c.TouchableOpacity,{onPress:()=>b.onAdd(),style:{flexShrink:0,paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:x.buttonPrimary},children:(0,s.jsx)(c.Text,{style:{color:x.buttonPrimaryText,fontSize:12,fontWeight:"600"},children:"Add picks"})})]}),A&&(0===D.length?(0,s.jsx)(c.View,{style:[si.emptyState,{marginTop:I}],children:(0,s.jsx)(c.Text,{style:{color:x.textMuted},children:"No selections made yet"})}):(0,s.jsx)(c.View,{style:{gap:v?12:8,marginTop:I},children:P.map(e=>(0,s.jsxs)(c.View,{style:{borderRadius:8,overflow:"hidden",borderWidth:1,borderColor:x.border},children:[e.key?(0,s.jsxs)(c.View,{style:{paddingHorizontal:12,paddingVertical:8,backgroundColor:H},children:[(0,s.jsx)(oi,{matchup:e.key,renderTeamLogo:u,altText:B,mutedColor:x.textAltMuted??x.textMuted??B}),e.props[0].commence_time?(0,s.jsx)(c.Text,{style:[si.propTime,{color:x.textAltMuted??x.textMuted}],children:yt(e.props[0].commence_time)}):null]}):null,e.props.map((o,i)=>{const l=t[o.id],a="yes"===l,h="no"===l;return(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:v?12:8,paddingHorizontal:12,paddingVertical:v?12:10,backgroundColor:O,borderTopWidth:e.key||i>0?1:0,borderTopColor:x.border},children:[(0,s.jsxs)(c.View,{style:{flex:1,minWidth:0,flexDirection:"row",alignItems:"flex-start",gap:8},children:[_r(o,u,e.key),(0,s.jsx)(ii,{prop:o,colors:x,componentById:m??void 0,textStyle:{fontSize:14,fontWeight:"400",lineHeight:19},textColor:B})]}),(0,s.jsxs)(c.View,{style:si.rightControls,children:[g?(0,s.jsx)(Te,{theme:w,size:"sm",value:a?"yes":h?"no":null,onYes:()=>n(o.id,"yes"),onNo:()=>n(o.id,"no")}):l&&(0,s.jsx)(Ae,{theme:w,size:"sm",value:"yes"===l?"yes":"no"}),(0,s.jsx)(c.TouchableOpacity,{onPress:()=>{n(o.id,t[o.id]),r()},accessibilityLabel:"Remove selection",...ze(()=>T(o.id),()=>T(e=>e===o.id?null:e)),style:[si.removeButton,{backgroundColor:"transparent"}],children:(0,s.jsx)(d.default,{width:12,height:12,viewBox:"0 0 24 24",children:(0,s.jsx)(d.Path,{d:"M6 18L18 6M6 6l12 12",stroke:W===o.id?x.error:x.textAltMuted??x.textMuted,strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})})]})]},o.id)})]},e.key??`solo-${e.props[0].id}`))}))]}),(0,s.jsx)(c.View,{style:[si.section,{padding:v?24:16,backgroundColor:k,borderColor:x.border},F],children:(0,s.jsxs)(c.View,{style:si.summaryRow,children:[(0,s.jsx)(c.Text,{style:{color:x.textMuted,fontSize:14},children:"Total Selections"}),(0,s.jsx)(c.Text,{style:{color:x.text,fontSize:14,fontWeight:"600"},children:D.length})]})}),!h&&(0,s.jsxs)(c.View,{style:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:12,borderTopWidth:1,borderTopColor:x.border,backgroundColor:x.background,marginHorizontal:v?-24:-16,paddingHorizontal:v?24:16,paddingVertical:v?16:12},children:[(0,s.jsx)(ci,{theme:w,variant:"secondary",onPress:r,children:"Back"}),(0,s.jsx)(ci,{theme:w,variant:"primary",disabled:0===D.length,onPress:o,children:"Place bet"})]})]})},exports.SelectionVariantList=Ur,exports.SelectionsPage=function({onNext:e,onBack:t,hideTitle:n,hideActions:o,defaultView:r="list",view:i,onViewChange:l,hideViewSwitch:d,onSwipeDragStateChange:h}){const u=br(),{selectedRule:g}=u,{theme:f,selectedGame:p,propositions:y,selections:m,toggleSelection:b,loading:w,error:x,disableQuickPick:k,renderTeamLogo:S,filterSport:C,initialSport:B,gameCategory:z,selectedPropositionCount:v,handlePropositionCountChange:F,goToConfirmation:W,goBack:T,selectedCategory:A,setSelectedCategory:L,selectedSport:R,selectedEventId:D,propositionsForCategoryPicker:M,answeredCount:P}=u,[H,O]=a.default.useState(r),I=i??H,E=a.default.useCallback(e=>{void 0===i&&O(e),l?.(e)},[i,l]);a.default.useEffect(()=>{p||(u.goToSportSelection(),t?.())},[p,u,t]);const j=a.default.useMemo(()=>{if(!p)return null;const{min:e,max:t}=vt(p,v??void 0,g);if(e>0&&e===t)return e;const n=sr(p);return null!=v&&v>0&&("game_set"===n||"pick_your_dividend"===n||"safety_net"===n||dr(p))?v:null},[p,v]),N=a.default.useRef(P);a.default.useEffect(()=>{const t=N.current;N.current=P,null!=j&&t<j&&P===j&&(W(),e?.())},[P,j]);const G=a.default.useMemo(()=>Ct(M??[]),[M]);if(a.default.useEffect(()=>{p&&1===G.length&&A!==G[0]&&L(G[0])},[p,G,A,L]),!p)return null;const Y=G.length>1&&!A,V=!Y&&bn(p)&&!D,U=(()=>{if(!bn(p)||!D)return p;const e=Math.min(p.max_propositions??y.length,y.length);return{...p,max_propositions:e,allowed_propositions:p.allowed_propositions?.filter(t=>t<=e)}})(),q=()=>{T(),t?.()};return(0,s.jsxs)(c.View,{style:al.container,children:[!n&&(0,s.jsx)(c.View,{style:{marginBottom:24},children:(0,s.jsx)(nl,{onBack:o?q:void 0,onNext:o?e:void 0,hideActions:o})}),!bn(p)&&(0,s.jsx)(ki,{}),(0,s.jsx)(c.View,{style:al.content,children:Y?(0,s.jsx)(Ti,{hideTitle:!0,hideActions:!0,onSelectCategory:e=>L(e)}):V?(0,s.jsx)(Di,{}):"swipe"===I?(0,s.jsx)(Mr,{onBack:q,onNext:e,viewSwitch:d?void 0:(0,s.jsx)(il,{view:I,onChange:E}),onDragStateChange:h}):(0,s.jsx)(li,{game:U,propositions:y,selections:m,onToggleSelection:b,onNext:()=>{W(),e?.()},onBack:q,loading:w,error:x,theme:f,hideActions:!0,initialSport:C??B,renderTeamLogo:S,disableQuickPick:!0,selectedPropositionCount:v,onPropositionCountChange:F,gameCategory:z,headerExtra:d?void 0:(0,s.jsx)(il,{view:I,onChange:E})})}),!o&&!Y&&!V&&(0,s.jsx)(c.View,{style:{marginTop:24},children:(0,s.jsx)(rl,{onNext:e,onBack:t})})]})},exports.SelectionsPageActions=rl,exports.SelectionsPageTitle=nl,exports.SixAgainPage=Vl,exports.SixAgainPageTitle=function({onBack:e,hideActions:t}={}){const{theme:n,selectedGame:o}=br(),r=ce(n),i=n.colors,{width:l}=(0,c.useWindowDimensions)(),a=l<640;return(0,s.jsxs)(c.View,{style:[Ul.header,a&&Ul.headerCompact],children:[(0,s.jsx)(c.Text,{style:[Ul.sectionTitle,a&&Ul.sectionTitleCompact,{color:i.primary,fontFamily:r}],children:"Set your play"}),(0,s.jsx)(zi,{onBack:e,hideActions:t,label:o?.game_name})]})},exports.SportPickerPage=function({onSelectSport:e,onCancel:t,hideTitle:n,hideActions:o,renderSportLogo:r,renderSportTagline:i,backLabel:l,comingSoonSports:d}){const{theme:h,propositionsForSportPicker:u,sportSummaries:g,loading:f,setSelectedSport:p,clearSelectedGame:y,selectedCategory:m,sportBaseKey:b,displaySportName:w}=br(),x=h.colors,k=j(h),S=ce(h),C=ae(h),z=L(h),{width:v}=(0,c.useWindowDimensions)(),F=v>=640,W=F?48:40,[T,A]=a.default.useState(null),R=mt(u),D=Object.keys(R);return f?(0,s.jsx)(c.View,{style:wl.container,children:(0,s.jsx)(pn,{colors:Y(h),bodyFont:C,variant:"sport",categoryCount:D.length>0?D.length:2})}):(0,s.jsxs)(c.View,{style:wl.container,children:[!n&&(0,s.jsx)(c.View,{style:wl.titleWrap,children:(0,s.jsx)(bl,{onBack:t,hideActions:o,backLabel:l})}),(0,s.jsx)(c.View,{style:wl.content,children:(0,s.jsxs)(c.View,{style:wl.grid,children:[D.map(t=>{const n=g.find(e=>e.key===t),o=n?.active_props??R[t].length,l=i?.(t,o)??(n?`${a=n.games_today} game${1===a?"":"s"} today · ${d=n.active_props} pick${1===d?"":"s"} available`:function(e,t){return 0===e?"racing"===t?"No races today":"casino"===t?"No games today":"No picks available":"racing"===t?`${e} race${1===e?"":"s"} today`:"casino"===t?`${e} game${1===e?"":"s"} available`:`${e} pick${1===e?"":"s"} available`}(o,m));var a,d;const h=w(t),u=T===t,f=n?n.games_today>0:o>0;return(0,s.jsxs)(c.TouchableOpacity,{onPress:()=>{p(t),y(),e?.(t)},...ze(()=>A(t),()=>A(e=>e===t?null:e)),style:[wl.gridCard,F&&wl.gridCardWide,{backgroundColor:k,borderColor:u?x.primary:x.border},wl.gridCardRaised],activeOpacity:.85,children:[r?r(t):(0,s.jsx)(Ii,{gameKey:t,size:W,footer:null,sportBaseKey:b,title:`${h} button`}),(0,s.jsxs)(c.View,{style:wl.gridText,children:[(0,s.jsx)(c.Text,{numberOfLines:1,style:[wl.gridName,F&&wl.gridNameWide,{color:z,fontFamily:S}],children:h}),(0,s.jsxs)(c.View,{style:wl.gridTaglineRow,children:[f?(0,s.jsx)(c.View,{style:[wl.liveDot,{backgroundColor:x.success}]}):null,(0,s.jsx)(c.Text,{numberOfLines:1,style:[wl.gridMeta,{color:x.primary,fontFamily:C}],children:l})]})]}),(0,s.jsx)(c.View,{style:wl.gridChevron,children:(0,s.jsx)(Ve,{size:20,color:x.textMuted})})]},t)}),d?.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??ht(e.key,b));return(0,s.jsxs)(c.View,{style:[wl.gridCard,F&&wl.gridCardWide,{backgroundColor:B(x.backgroundAlt,.4),borderColor:B(x.border,.7)}],children:[(0,s.jsx)(c.View,{style:wl.comingSoonLogo,children:r?r(e.key):(0,s.jsx)(Ii,{gameKey:e.key,short:e.short,size:W,footer:null,sportBaseKey:b,title:`${e.label} button`})}),(0,s.jsxs)(c.View,{style:wl.gridText,children:[(0,s.jsx)(c.Text,{numberOfLines:1,style:[wl.gridName,F&&wl.gridNameWide,{color:x.textMuted,fontFamily:S}],children:n&&n!==t?`${t} · ${n}`:t}),(0,s.jsx)(c.Text,{numberOfLines:1,style:[wl.gridMeta,wl.gridMetaSpaced,{color:x.textMuted,fontFamily:C}],children:(o=e.seasonStart,o?`Starts ${o}`:"Coming soon")})]}),(0,s.jsxs)(c.View,{style:[wl.soonPill,{backgroundColor:x.backgroundAlt}],children:[(0,s.jsx)(Ue,{size:12,color:x.textMuted}),(0,s.jsx)(c.Text,{style:[wl.soonPillText,{color:x.textMuted,fontFamily:C}],children:"Soon"})]})]},e.key);var o})]})})]})},exports.SportPickerPageActions=function({onCancel:e}){const{theme:t,screenSize:n}=br(),o=t.colors;return e&&"mobile"!==n?(0,s.jsx)(c.View,{style:wl.footer,children:(0,s.jsx)(c.TouchableOpacity,{onPress:e,style:[wl.secondaryBtn,{backgroundColor:o.buttonSecondary}],children:(0,s.jsx)(c.Text,{style:[wl.secondaryBtnText,{color:o.buttonSecondaryText}],children:"Cancel"})})}):null},exports.SportPickerPageTitle=bl,exports.SportRail=Gi,exports.StarIcon=Xe,exports.SuccessPage=function({onPlayAgain:e,onDone:t,onBack:n,onShare:o,hideTitle:r,hideActions:i}){const l=br(),{theme:d,bodyFont:h,headingFont:u,selectedGame:g,placedEntry:f,betAmount:p,selectedPropositionIds:y,selectedPropositions:m,selections:b,payouts:w,onShare:x}=l,k=d.colors,S=j(d),C=k.textAlt??k.text,{width:B}=(0,c.useWindowDimensions)(),z=B>=640,v={shadowColor:"#000",shadowOpacity:"dark"===d.colorScheme?.4:.12,shadowRadius:12,shadowOffset:{width:0,height:6},elevation:2},F=f?.proposition_ids?f.proposition_ids.length:y.length,W=w[F]??null,T=a.default.useRef(!1);return a.default.useEffect(()=>{f&&g?T.current=!1:(l.goToSportSelection(),T.current||(T.current=!0,e?e():t?.()))},[f,g,l,e,t]),f?(0,s.jsxs)(c.View,{style:pl.container,children:[!r&&(0,s.jsx)(c.View,{style:{marginBottom:24},children:(0,s.jsx)(fl,{onBack:n,hideActions:i})}),(0,s.jsxs)(c.View,{style:[pl.content,{gap:z?16:12}],children:[(0,s.jsxs)(c.View,{style:[pl.summaryCard,z&&pl.summaryCardWide,{backgroundColor:S,borderColor:k.border},v],children:[(0,s.jsxs)(c.View,{style:pl.summaryHeader,children:[(()=>{const e=g?g.allowed_propositions&&g.allowed_propositions.length>0&&g.game_name.replace(/\s+\d+\s*$/,"").trim()||g.game_name:"Entry summary";return g?(0,s.jsx)(c.View,{style:{flex:1,minWidth:0},children:(0,s.jsx)(pi,{iconUrl:fe(g),gameName:e,height:18,chipColor:k.primary,textColor:k.text,iconColor:k.primaryText,accentColor:d.brand?.accent})}):(0,s.jsx)(c.Text,{numberOfLines:1,style:[pl.summaryHeading,z&&pl.summaryHeadingWide,{color:L(d),fontFamily:u,flex:1}],children:e})})(),(0,s.jsx)(c.View,{style:{backgroundColor:`${k.primary}15`,borderRadius:999,paddingHorizontal:8,paddingVertical:2,flexShrink:0},children:(0,s.jsxs)(c.Text,{style:{color:k.primary,fontSize:12,fontWeight:"600",fontFamily:h},children:[F," pick",1!==F?"s":""]})})]}),(0,s.jsxs)(c.View,{style:pl.statsGrid,children:[(0,s.jsxs)(c.View,{style:[pl.statCell,z&&pl.statCellWide],children:[(0,s.jsx)(c.Text,{style:[pl.statLabel,{color:k.textMuted,fontFamily:h}],children:"Selections"}),(0,s.jsx)(c.Text,{style:[pl.statValue,{color:C,fontFamily:h}],children:F})]}),p>0&&(0,s.jsxs)(c.View,{style:[pl.statCell,z&&pl.statCellWide],children:[(0,s.jsx)(c.Text,{style:[pl.statLabel,{color:k.textMuted,fontFamily:h}],children:"Wager"}),(0,s.jsx)(c.Text,{style:[pl.statValue,{color:C,fontFamily:h}],children:pt(p)})]}),null!=W&&W>0&&(0,s.jsxs)(c.View,{style:[pl.statCell,z&&pl.statCellWide],children:[(0,s.jsx)(c.Text,{style:[pl.statLabel,{color:k.textMuted,fontFamily:h}],children:"Potential win"}),(0,s.jsx)(c.Text,{style:[pl.statValue,{color:k.heading??k.text,fontWeight:"700",fontFamily:h}],children:pt(W)})]})]})]}),m.length>0&&(0,s.jsxs)(c.View,{style:[pl.summaryCard,z&&pl.summaryCardWide,{backgroundColor:S,borderColor:k.border},v],children:[(0,s.jsx)(c.Text,{style:[pl.summaryHeading,z&&pl.summaryHeadingWide,{color:L(d),fontFamily:u,marginBottom:8}],children:"Your picks"}),(0,s.jsx)(c.View,{style:pl.pickList,children:m.map((e,t)=>{const n=b?.[e.id],o="yes"===n;return(0,s.jsxs)(c.View,{style:[pl.pickRow,{backgroundColor:k.backgroundAlt}],children:[(0,s.jsx)(c.View,{style:{width:20,height:20,borderRadius:10,backgroundColor:k.primary,alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,s.jsx)(c.Text,{style:{color:k.primaryText,fontSize:10,fontWeight:"700",fontFamily:h},children:t+1})}),(0,s.jsxs)(c.View,{style:{flex:1,minWidth:0},children:[(0,s.jsxs)(c.Text,{numberOfLines:1,style:{color:C,fontSize:z?14:12,fontWeight:"500",fontFamily:h},children:[kt(e)?null:(0,s.jsxs)(s.Fragment,{children:[e.home_team," ",(0,s.jsx)(c.Text,{style:{color:k.textMuted},children:"vs"})," "]}),e.away_team]}),(0,s.jsx)(c.Text,{numberOfLines:1,style:{color:k.textMuted,fontSize:11,fontFamily:h},children:e.description})]}),null!=n&&(0,s.jsx)(Ae,{theme:d,size:"sm",value:o?"yes":"no",style:{alignSelf:"center",flexShrink:0}})]},e.id)})})]})]})]}):null},exports.SuccessPageActions=function({onPlayAgain:e,onDone:t,onShare:n}){const{theme:o,reset:r,placedEntry:i,selectedGame:l,selectedPropositions:a,selections:d,betAmount:h}=br();return o.colors,(0,s.jsxs)(c.View,{style:pl.footer,children:[(0,s.jsx)(ve,{theme:o,variant:"secondary",onPress:()=>{r(),e?.()},children:"Place Another"}),t&&(0,s.jsx)(ve,{theme:o,variant:"primary",onPress:t,children:"Done"})]})},exports.SuccessPageTitle=fl,exports.SwipeCard=Rr,exports.SwipeCardFace=Dr,exports.SwipeDeck=Mr,exports.VISIBLE_DEPTH=3,exports.YesNoCategoryLabel=Ke,exports.availableGameTierTabs=Ln,exports.contrastTextColour=function(e,t="#ffffff",n="#1a1a1a"){if(!e)return n;const o=function(e){const t=e.trim().toLowerCase(),n=t.match(/^#([0-9a-f]{3,8})$/);if(n){let e=n[1];return 3!==e.length&&4!==e.length||(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}const o=t.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);return o?[Number(o[1]),Number(o[2]),Number(o[3])]:null}(e);if(!o)return n;const[r,i,l]=o.map(e=>{const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)});return.2126*r+.7152*i+.0722*l>.4?n:t},exports.darkTheme=Z,exports.defaultGameTierId=Rn,exports.defaultTheme=q,exports.defaultThemeSet=ee,exports.filterGamesByTierLevel=An,exports.filterPropositionsToEvent=zn,exports.formatCurrency=pt,exports.formatDate=yt,exports.formatSameGameMultiEventLabel=yn,exports.fullStackPrize=tr,exports.gameNeedsRuleSetup=lo,exports.gameSetPrize=Zo,exports.getConfirmBoostCopy=ur,exports.getGameFlow=sr,exports.getGameSetBetConfig=Xo,exports.getJackpotInfo=Ft,exports.getLadderConfig=nr,exports.getMirrorConfig=En,exports.getPickYourDividendConfig=fo,exports.getPropositionEventId=wn,exports.getRuleSetupConfig=io,exports.getSafetyNetConfig=to,exports.getSafetyNetPricing=qn,exports.getSixAgainConfig=cr,exports.getSportDisplayName=Tt,exports.getTheme=function(e){return{default:q,green:K,"green-light":Q,dark:Z,gold:X,"gold-light":J,yesno:_,"yesno-light":$}[e]||q},exports.getThemeSet=function(e){return{default:ee,green:te,gold:ne,yesno:oe}[e]||ee},exports.goldLightTheme=J,exports.goldTheme=X,exports.goldThemeSet=ne,exports.greenLightTheme=Q,exports.greenTheme=K,exports.greenThemeSet=te,exports.groupPropositionsBySport=mt,exports.groupSameGameMultiEvents=xn,exports.groupSelectionDays=Yr,exports.isFixedCardExactGame=dr,exports.isGameSetBetGame=Ko,exports.isLadderGame=$o,exports.isMirrorGame=On,exports.isOpenExactMultiGame=hr,exports.isPickYourDividendGame=so,exports.isSafetyNetGame=Un,exports.isSameGameMultiGame=bn,exports.isSelectableSameGameMultiProposition=Bn,exports.isSixAgainGame=or,exports.isThemeSet=U,exports.isValidSelectionCount=zt,exports.ladderCollectAt=function(e,t,n){return _o(e.tiers50.reduce((e,[n,o])=>n<=t?e+o:e,0),n)},exports.ladderTiers=er,exports.mirrorPrize=In,exports.propositionsBelongToEvent=vn,exports.pydLadder=go,exports.pydRung=uo,exports.resolveCategoryDisplayName=Lt,exports.resolveGameTierLevel=Tn,exports.resolvePrice=function(e){return"object"==typeof e&&null!==e?Number(e.amount)||0:Number(e)||0},exports.resolveSportDisplayName=At,exports.resolveTheme=V,exports.roundDividendAmount=Kn,exports.safetyNetCollect=Qn,exports.safetyNetTicket=Xn,exports.sixAgainRuleId=lr,exports.sixAgainStakeMultiples=function(e,t){const n=ir(1,e,t);return{perfect:n.perfect/n.stake,challenge:n.challenge/n.stake}},exports.sixAgainTicket=ir,exports.themeAccent=H,exports.themeBodyFont=ae,exports.themeHeading=L,exports.themeHeadingFont=ce,exports.themeLabel=R,exports.themeSets=ie,exports.themeTextAlt=I,exports.themeTextAltMuted=E,exports.themeValue=D,exports.themes=re,exports.useCalculatePayout=function(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[i,l]=(0,a.useState)(null);return{calculate:(0,a.useCallback)(async(t,o)=>{try{n(!0),r(null);const i=await e.calculatePayout(t,o);return l(i),i}catch(i){const e=i instanceof Error?i.message:"Failed to calculate payout";throw r(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:o,result:i}},exports.useCreateGameEntry=Ao,exports.useEntryPreview=Ro,exports.useEvaluateRule=function(e){const[t,n]=(0,a.useState)(!1),[o,r]=(0,a.useState)(null),[i,l]=(0,a.useState)(null);return{evaluate:(0,a.useCallback)(async(t,o)=>{try{n(!0),r(null);const i=await e.evaluateRule(t,o);return l(i),i}catch(i){const e=i instanceof Error?i.message:"Failed to evaluate rule";throw r(e),new Error(e)}finally{n(!1)}},[e]),loading:t,error:o,result:i}},exports.useGameEntries=Wo,exports.useGameMaxPayouts=To,exports.useGames=zo,exports.usePlaceEntry=br,exports.usePlaceEntryFlow=Lo,exports.usePropositions=vo,exports.useResolvedTheme=le,exports.useSports=Fo,exports.useSwipeDeck=Sr;
|